Loading http://127.0.0.1:8000?lng=de to userdocs/gen/screenshots/de/index.jpg
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:09 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: text/html; charset=utf-8\r\nContent-Language: fr\r\n\r\n'
20130515 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html><head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<title id="title">Lino-Welfare</title>\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css" />\n<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css" />\n<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css" />\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>\n<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>\n<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>\n<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>\n<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>\n<script language="javascript" type="text/javascript">\ntinymce.init({\n        theme : "advanced"\n        // , mode : "textareas"\n});\n</script>\n<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>\n<script type=opened auth!
"text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>\n<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>\n<script type="text/javascript">\nExt.onReady(function(){\nLino.set_subst_user();\nLino.user = { "name": "Alicia Allmanns", "id": 6 };\nLino.main_menu = Lino.main_menu.concat([\'->\',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);\n  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});\n  Lino.viewport.render("body");\nLino.lino.Home.show.run(null,{ "record_id": -99998 })\n}); // end of onReady()\n</script></head><body>\n<div id="body"></div>\n</body></html>'
20130515 authenticate alicia,1234
20130515 authenticate None,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:09 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "message": "Could not authenticate u\'None\'", "success": false }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:09 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Tue, 19 Mar 2013 15:33:52 GMT\r\nContent-Length: 7750\r\nContent-Type: text/css\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\r\n'
20130515 ' Copyright 2009-2013 Luc Saffre\r\n'
20130515 ' This file is part of the Lino project.\r\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \r\n'
20130515 ' it under the terms of the GNU General Public License as published by\r\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\r\n'
20130515 ' (at your option) any later version.\r\n'
20130515 ' Lino is distributed in the hope that it will be useful, \r\n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \r\n'
20130515 ' GNU General Public License for more details.\r\n'
20130515 ' You should have received a copy of the GNU General Public License\r\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'http://stackoverflow.com/questions/2106104/word-wrap-grid-cells-in-ext-js \r\n'
20130515 'e.g. welfare.jobs.NewJobsOverview needs\r\n'
20130515 '*/\r\n'
20130515 '/* \r\n'
20130515 '.x-grid3-cell-inner {\r\n'
20130515 '  /* white-space: normal; changed from nowrap \r\n'
20130515 '  height:18px; \r\n'
20130515 '  overflow:hidden;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-grid3-hd-inner {\r\n'
20130515 '  white-space: normal; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*.lino-phantom-row table.x-grid3-row-table {\r\n'
20130515 '\tcolor: blue; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '.lino-phantom-row td {\r\n'
20130515 '\t/* font-style: italic; */\r\n'
20130515 '\tcolor:white;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-item-disabled, .x-tree-node-disabled, .x-date-disabled\r\n'
20130515 '*/\r\n'
20130515 '.x-item-disabled {\r\n'
20130515 '  color: blue; \r\n'
20130515 '  /*   opacity: 1;  \r\n'
20130515 '  font-weight: bold; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-item-disabled * {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '  /*font-weight: bold !important; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-noicon {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '.x-btn-pressed {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-text {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-menu-active {\r\n'
20130515 "\tcursor: 'wait';\r\n"
20130515 "\tcolor:'red';\r\n"
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* See blog/2011/0603\r\n'
20130515 '*/\r\n'
20130515 '.x-form-item-label{\r\n'
20130515 '    white-space: nowrap; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-form-field { padding: 10px; }\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-panel-body-noheader { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '.x-panel-body { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* TinyMCE specific rules */\r\n'
20130515 '/* \r\n'
20130515 'body.mceContentBody {\r\n'
20130515 '  color: red !important; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 'body.mceNonEditable {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 '\r\n'
20130515 'To display "normal" HTML inside an ExtJS component, \r\n'
20130515 'wrap it into a <div class="htmlText">.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.htmlText {\r\n'
20130515 '\tfont-family: arial,tahoma;\r\n'
20130515 '}\r\n'
20130515 '.htmlText h1 {\r\n'
20130515 '\tfont-size:16px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:12px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText h2 {\r\n'
20130515 '\tfont-size:13px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:10px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText td,th {\r\n'
20130515 '\tpadding:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText p {\r\n'
20130515 '\tmargin-top:0px;\r\n'
20130515 '\tmargin-bottom:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ol {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: decimal; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ul {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: square; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText strong {\r\n'
20130515 '\tfont-weight:bold;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText em {\r\n'
20130515 '\tfont-style: italic;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to http://de.selfhtml.org/css/formate/zentrale.htm\r\n'
20130515 '*/\r\n'
20130515 'table.htmlText tr td {\r\n'
20130515 '\tvertical-align: middle;\r\n'
20130515 '\ttext-align: center;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'The following are \r\n'
20130515 "Alexander Dawson's CSS tooltips\r\n"
20130515 'from <http://sixrevisions.com/css/css-only-tooltips/>,\r\n'
20130515 'adapted for usage in an ExtJS application.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-form-item-label .tooltip {\r\n'
20130515 '\tborder-bottom: 1px dotted #000000; color: #000000; outline: none;\r\n'
20130515 '\tcursor: help; \r\n'
20130515 '\ttext-decoration: none;\r\n'
20130515 '\tposition: relative;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip span {\r\n'
20130515 '\tmargin-left: -999em;\r\n'
20130515 '\tposition: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover span {\r\n'
20130515 '\tborder-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; \r\n'
20130515 '\tbox-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); \r\n'
20130515 '\t-moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);\r\n'
20130515 '\tfont-family: Calibri, Tahoma, Geneva, sans-serif;\r\n'
20130515 '\tposition: absolute; left: 1em; top: 2em; z-index: 99;\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '    white-space: normal; \r\n'
20130515 '\tmargin-left: 0; width: 250px;\r\n'
20130515 '\t\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover img {\r\n'
20130515 '\tborder: 0; margin: -10px 0 0 -55px;\r\n'
20130515 '\tfloat: left; position: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover em {\r\n'
20130515 '\tfont-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold;\r\n'
20130515 '\tdisplay: block; padding: 0.2em 0 0.6em 0;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .classic { padding: 0.8em 1em; }\r\n'
20130515 '.x-form-item-label .custom { padding: 0.5em 0.8em 0.8em 2em; }\r\n'
20130515 '.x-form-item-label * html a:hover { background: transparent; }\r\n'
20130515 '.x-form-item-label .classic {background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '.x-form-item-label .critical { background: #FFCCAA; border: 1px solid #FF3334;\t}\r\n'
20130515 '.x-form-item-label .help { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .info { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .warning { background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 ' 20120229 For css tooltips we need to override some CSS rules of ExtJS.\r\n'
20130515 ' set all overflows \r\n'
20130515 " to 'visible' for CSS tooltips.\r\n"
20130515 " I don't really understand it, and it doesn't yet work,\r\n"
20130515 " but it doesn't seem to  cause any problem.\r\n"
20130515 ' \r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: hidden;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-body .x-panel-body-noheader {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-bwrap {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-box-inner {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-fieldset .x-form-label-top .x-box-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-tip \r\n'
20130515 '  .x-tip-tl\r\n'
20130515 '    .x-tip-tr\r\n'
20130515 '      .x-tip-tc\r\n'
20130515 '        .x-tip-header\r\n'
20130515 '          .x-tip-header-text\r\n'
20130515 '  .x-tip-bwrap\r\n'
20130515 '    .x-tip-ml\r\n'
20130515 '      .x-tip-mr\r\n'
20130515 '        .x-tip-mc\r\n'
20130515 '          .x-tip-body\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: #FFFFAA; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-header-text { border: 0; }\r\n'
20130515 '\r\n'
20130515 '.x-tip div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-ml div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mr div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mc div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-body div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* border: 1px solid #FFAD33;  */\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '.x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/mjames/delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '/*\r\n'
20130515 '.x-item-disabled .x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/default/grid/delete-disabled.gif) !important;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-tbar-new{\r\n'
20130515 '\tbackground-image: url(images/mjames/add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 'ShowDetailAction\r\n'
20130515 '$a.icon_name\r\n'
20130515 '$a.icon_file\r\n'
20130515 '*/\r\n'
20130515 '.x-tbar-detail{\r\n'
20130515 '\tbackground-image: url(images/mjames/application_form.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-save{\r\n'
20130515 '\tbackground-image: url(images/mjames/disk.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-email_add{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-email_send{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_go.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-create-postings{\r\n'
20130515 '\tbackground-image: url(images/mjames/script_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-calendar{\r\n'
20130515 '\tbackground-image: url(images/mjames/calendar.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-print{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-clearcache{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer_delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-duplicate{\r\n'
20130515 '\tbackground-image: url(images/mjames/arrow_divide.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-pdf{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_white_acrobat.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-html{\r\n'
20130515 '\tbackground-image: url(images/mjames/html.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-csv{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_excel.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-vcard{\r\n'
20130515 '\tbackground-image: url(images/mjames/vcard.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-done{\r\n'
20130515 '\tbackground-image: url(images/mjames/accept.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-parameters{\r\n'
20130515 '\tbackground-image: url(images/mjames/database_gear.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to Animal in \r\n'
20130515 'http://www.sencha.com/forum/showthread.php?70195-NumberField-and-Right-Alignment\r\n'
20130515 '*/\r\n'
20130515 '.x-form-num-field {\r\n'
20130515 '    text-align: right;\r\n'
20130515 '}'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:09 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 359788\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible\n'
20130515 ' * Extensible core utilities and functions.\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 '(function(){\n'
20130515 '    \n'
20130515 "    Ext.ns('Ext.ensible.ux', 'Ext.ensible.sample', 'Ext.ensible.plugins', 'Ext.ensible.cal');\n"
20130515 '    \n'
20130515 '    Ext.apply(Ext.ensible, {\n'
20130515 '        /**\n'
20130515 '         * The version of the framework\n'
20130515 '         * @type String\n'
20130515 '         */\n'
20130515 "        version : '1.0.1',\n"
20130515 '        /**\n'
20130515 '         * The version of the framework, broken out into its numeric parts. This returns an\n'
20130515 '         * object that contains the following integer properties: major, minor and patch.\n'
20130515 '         * @type Object\n'
20130515 '         */\n'
20130515 '        versionDetails : {\n'
20130515 '            major: 1,\n'
20130515 '            minor: 0,\n'
20130515 '            patch: 1\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        hasBorderRadius : !(Ext.isIE || Ext.isOpera),\n'
20130515 '        \n'
20130515 '        log : function(s){\n'
20130515 '            //console.log(s);\n'
20130515 '        },\n'
20130515 '    \n'
20130515 '       /**\n'
20130515 '        * @class Ext.ensible.cal.Date\n'
20130515 '        * @extends Object\n'
20130515 '        * <p>Contains utility date functions used by the calendar components.</p>\n'
20130515 '        * @singleton\n'
20130515 '        */\n'
20130515 '\t    Date : {\n'
20130515 '            /**\n'
20130515 '             * Determines whether times used throughout all Extensible components should be displayed as\n'
20130515 '             * 12 hour times with am/pm (default) or 24 hour / military format. Note that some locale files\n'
20130515 '             * may override this value by default.\n'
20130515 '             * @type Boolean\n'
20130515 '             * @property use24HourTime\n'
20130515 '             */\n'
20130515 '            use24HourTime : false,\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns the time duration between two dates in the specified units. For finding the number\n'
20130515 '             * of calendar days (ignoring time) between two dates use {@link Ext.ensible.Date.diffDays diffDays} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 "             * @param {String} unit (optional) The time unit to return. Valid values are 'ms' (milliseconds, the default), 's' (seconds),\n"
20130515 "             * 'm' (minutes) or 'h' (hours).\n"
20130515 '             * @return {Number} The time difference between the dates in the units specified by the unit param\n'
20130515 '             */\n'
20130515 '            diff : function(start, end, unit){\n'
20130515 '                var denom = 1,\n'
20130515 '                    diff = end.getTime() - start.getTime();\n'
20130515 '                \n'
20130515 "                if(unit == 's'){ \n"
20130515 '                    denom = 1000;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'm'){\n"
20130515 '                    denom = 1000*60;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'h'){\n"
20130515 '                    denom = 1000*60*60;\n'
20130515 '                }\n'
20130515 '                return Math.round(diff/denom);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Calculates the number of calendar days between two dates, ignoring time values. \n'
20130515 '             * A time span that starts at 11pm (23:00) on Monday and ends at 1am (01:00) on Wednesday is \n'
20130515 '             * only 26 total hours, but it spans 3 calendar days, so this function would return 3. For the\n'
20130515 '             * exact time difference, use {@link Ext.ensible.Date.diff diff} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 '             * @return {Number} The number of calendar days difference between the dates\n'
20130515 '             */\n'
20130515 '            diffDays : function(start, end){\n'
20130515 '                var day = 1000*60*60*24,\n'
20130515 '                    diff = end.clearTime(true).getTime() - start.clearTime(true).getTime();\n'
20130515 '                \n'
20130515 '                return Math.ceil(diff/day);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 "             * Copies the time value from one date object into another without altering the target's \n"
20130515 '             * date value. This function returns a new Date instance without modifying either original value.\n'
20130515 '             * @param {Date} fromDt The original date from which to copy the time\n'
20130515 '             * @param {Date} toDt The target date to copy the time to\n'
20130515 '             * @return {Date} The new date/time value\n'
20130515 '             */\n'
20130515 '            copyTime : function(fromDt, toDt){\n'
20130515 '                var dt = toDt.clone();\n'
20130515 '                dt.setHours(\n'
20130515 '                    fromDt.getHours(),\n'
20130515 '                    fromDt.getMinutes(),\n'
20130515 '                    fromDt.getSeconds(),\n'
20130515 '                    fromDt.getMilliseconds());\n'
20130515 '                \n'
20130515 '                return dt;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Compares two dates and returns a value indicating how they relate to each other.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Boolean} precise (optional) If true, the milliseconds component is included in the comparison,\n'
20130515 '             * else it is ignored (the default).\n'
20130515 '             * @return {Number} The number of milliseconds difference between the two dates. If the dates are equal\n'
20130515 '             * this will be 0.  If the first date is earlier the return value will be positive, and if the second date\n'
20130515 '             * is earlier the value will be negative.\n'
20130515 '             */\n'
20130515 '            compare : function(dt1, dt2, precise){\n'
20130515 '                var d1 = dt1, d2 = dt2;\n'
20130515 '                if(precise !== true){\n'
20130515 '                    d1 = dt1.clone();\n'
20130515 '                    d1.setMilliseconds(0);\n'
20130515 '                    d2 = dt2.clone();\n'
20130515 '                    d2.setMilliseconds(0);\n'
20130515 '                }\n'
20130515 '                return d2.getTime() - d1.getTime();\n'
20130515 '            },\n'
20130515 '\n'
20130515 '\t        // private helper fn\n'
20130515 '\t        maxOrMin : function(max){\n'
20130515 '\t            var dt = (max ? 0 : Number.MAX_VALUE), i = 0, args = arguments[1], ln = args.length;\n'
20130515 '\t            for(; i < ln; i++){\n'
20130515 "\t                dt = Math[max ? 'max' : 'min'](dt, args[i].getTime());\n"
20130515 '\t            }\n'
20130515 '\t            return new Date(dt);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the maximum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the latest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmax : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [true, arguments]);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the minimum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the earliest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmin : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [false, arguments]);\n'
20130515 '\t        },\n'
20130515 '            \n'
20130515 '            isInRange : function(dt, rangeStart, rangeEnd) {\n'
20130515 '                return  (dt >= rangeStart && dt <= rangeEnd);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if two date ranges overlap (either one starts or ends within the other, or one completely\n'
20130515 '             * overlaps the start and end of the other), else false if they do not.\n'
20130515 '             * @param {Date} start1 The start date of range 1\n'
20130515 '             * @param {Date} end1   The end date of range 1\n'
20130515 '             * @param {Date} start2 The start date of range 2\n'
20130515 '             * @param {Date} end2   The end date of range 2\n'
20130515 '             * @return {Booelan} True if the ranges overlap, else false\n'
20130515 '             */\n'
20130515 '            rangesOverlap : function(start1, end1, start2, end2){\n'
20130515 '                var startsInRange = (start1 >= start2 && start1 <= end2),\n'
20130515 '                    endsInRange = (end1 >= start2 && end1 <= end2),\n'
20130515 '                    spansRange = (start1 <= start2 && end1 >= end2);\n'
20130515 '                \n'
20130515 '                return (startsInRange || endsInRange || spansRange);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date is a Saturday or Sunday, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a weekend day, else false \n'
20130515 '             */\n'
20130515 '            isWeekend : function(dt){\n'
20130515 '                return dt.getDay() % 6 === 0;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date falls on a Monday through Fridey, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a week day, else false \n'
20130515 '             */\n'
20130515 '            isWeekday : function(dt){\n'
20130515 '                return dt.getDay() % 6 !== 0;\n'
20130515 '            }\n'
20130515 '\t    }\n'
20130515 '    });\n'
20130515 '})();\n'
20130515 '//TODO: remove this once we are synced to trunk again\n'
20130515 'Ext.override(Ext.XTemplate, {\n'
20130515 '    applySubTemplate : function(id, values, parent, xindex, xcount){\n'
20130515 '        var me = this,\n'
20130515 '            len,\n'
20130515 '            t = me.tpls[id],\n'
20130515 '            vs,\n'
20130515 '            buf = [];\n'
20130515 '        if ((t.test && !t.test.call(me, values, parent, xindex, xcount)) ||\n'
20130515 '            (t.exec && t.exec.call(me, values, parent, xindex, xcount))) {\n'
20130515 "            return '';\n"
20130515 '        }\n'
20130515 '        vs = t.target ? t.target.call(me, values, parent) : values;\n'
20130515 '        len = vs.length;\n'
20130515 '        parent = t.target ? values : parent;\n'
20130515 '        if(t.target && Ext.isArray(vs)){\n'
20130515 '            Ext.each(vs, function(v, i) {\n'
20130515 '                buf[buf.length] = t.compiled.call(me, v, parent, i+1, len);\n'
20130515 '            });\n'
20130515 "            return buf.join('');\n"
20130515 '        }\n'
20130515 '        return t.compiled.call(me, vs, parent, xindex, xcount);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This fix is in Ext 3.2 */\n'
20130515 'Ext.override(Ext.form.DateField, {\n'
20130515 '\t\n'
20130515 '\taltFormats : "m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j",\n'
20130515 '\t\n'
20130515 '    safeParse : function(value, format) {\n'
20130515 "        if (/[gGhH]/.test(format.replace(/(\\\\.)/g, ''))) {\n"
20130515 '            // if parse format contains hour information, no DST adjustment is necessary\n'
20130515 '            return Date.parseDate(value, format);\n'
20130515 '        } else {\n'
20130515 '            // set time to 12 noon, then clear the time\n'
20130515 "            var parsedDate = Date.parseDate(value + ' ' + this.initTime, format + ' ' + this.initTimeFormat);\n"
20130515 '            if (parsedDate) return parsedDate.clearTime();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This override applies to the current 3.3.x line to fix duplicate remote actions */\n'
20130515 'Ext.override(Ext.data.Store, {\n'
20130515 '    add : function(records) {\n'
20130515 '        var i, record, index;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        if (records.length < 1) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        index = this.data.length;\n'
20130515 '        this.data.addAll(records);\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    insert : function(index, records) {\n'
20130515 '        var i, record;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            this.data.insert(index + i, record);\n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // Interestingly, this method has no changes, but is included here because without it a very strange\n'
20130515 '    // race condition occurs. This method is used as a callback internally for the add event which\n'
20130515 '    // is fired from the add method (overridden above). As long as both methods are here everything is OK\n'
20130515 '    // but with createRecords removed and defaulted to the original class you end up with duplicate copies\n'
20130515 "    // of added records in the store's modified collection (since both methods add to it). Not sure exactly\n"
20130515 '    // how that happens, but including this fixes it.\n'
20130515 '    createRecords : function(store, records, index) {\n'
20130515 '        var modified = this.modified,\n'
20130515 '            length   = records.length,\n'
20130515 '            record, i;\n'
20130515 '        \n'
20130515 '        for (i = 0; i < length; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            if (record.phantom && record.isValid()) {\n'
20130515 '                record.markDirty();  // <-- Mark new records dirty (Ed: why?)\n'
20130515 '                \n'
20130515 '                //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '                if (modified.indexOf(record) == -1) {\n'
20130515 '                    modified.push(record);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if (this.autoSave === true) {\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '// Have to add in full API support so that EventMemoryProxy can do its thing.\n'
20130515 "// Won't hurt normal read-only MemoryProxy read actions.\n"
20130515 'Ext.data.MemoryProxy = function(data){\n'
20130515 '    var api = {};\n'
20130515 '    api[Ext.data.Api.actions.read] = true;\n'
20130515 '    api[Ext.data.Api.actions.create] = true;\n'
20130515 '    api[Ext.data.Api.actions.update] = true;\n'
20130515 '    api[Ext.data.Api.actions.destroy] = true;\n'
20130515 '    Ext.data.MemoryProxy.superclass.constructor.call(this, {\n'
20130515 '        api: api\n'
20130515 '    });\n'
20130515 '    this.data = data;\n'
20130515 '};\n'
20130515 'Ext.extend(Ext.data.MemoryProxy, Ext.data.DataProxy, {\n'
20130515 '    doRequest : function(action, rs, params, reader, callback, scope, arg) {\n'
20130515 '        callback.call(scope, null, arg, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "// This heinous override is required to fix IE9's removal of createContextualFragment.\n"
20130515 "// Unfortunately since DomHelper is a singleton there's not much of a way around it.\n"
20130515 'Ext.apply(Ext.DomHelper,\n'
20130515 'function(){\n'
20130515 '    var tempTableEl = null,\n'
20130515 '        emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,\n'
20130515 '        tableRe = /^table|tbody|tr|td$/i,\n'
20130515 '        confRe = /tag|children|cn|html$/i,\n'
20130515 '        tableElRe = /td|tr|tbody/i,\n'
20130515 '        cssRe = /([a-z0-9-]+)\\s*:\\s*([^;\\s]+(?:\\s*[^;\\s]+)*);?/gi,\n'
20130515 '        endRe = /end/i,\n'
20130515 '        pub,\n'
20130515 '        // kill repeat to save bytes\n'
20130515 "        afterbegin = 'afterbegin',\n"
20130515 "        afterend = 'afterend',\n"
20130515 "        beforebegin = 'beforebegin',\n"
20130515 "        beforeend = 'beforeend',\n"
20130515 "        ts = '<table>',\n"
20130515 "        te = '</table>',\n"
20130515 "        tbs = ts+'<tbody>',\n"
20130515 "        tbe = '</tbody>'+te,\n"
20130515 "        trs = tbs + '<tr>',\n"
20130515 "        tre = '</tr>'+tbe;\n"
20130515 '\n'
20130515 '    // private\n'
20130515 '    function doInsert(el, o, returnElement, pos, sibling, append){\n'
20130515 '        var newNode = pub.insertHtml(pos, Ext.getDom(el), createHtml(o));\n'
20130515 '        return returnElement ? Ext.get(newNode, true) : newNode;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // build as innerHTML where available\n'
20130515 '    function createHtml(o){\n'
20130515 "        var b = '',\n"
20130515 '            attr,\n'
20130515 '            val,\n'
20130515 '            key,\n'
20130515 '            cn;\n'
20130515 '\n'
20130515 '        if(typeof o == "string"){\n'
20130515 '            b = o;\n'
20130515 '        } else if (Ext.isArray(o)) {\n'
20130515 '            for (var i=0; i < o.length; i++) {\n'
20130515 '                if(o[i]) {\n'
20130515 '                    b += createHtml(o[i]);\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '        } else {\n'
20130515 "            b += '<' + (o.tag = o.tag || 'div');\n"
20130515 '            for (attr in o) {\n'
20130515 '                val = o[attr];\n'
20130515 '                if(!confRe.test(attr)){\n'
20130515 '                    if (typeof val == "object") {\n'
20130515 '                        b += \' \' + attr + \'="\';\n'
20130515 '                        for (key in val) {\n'
20130515 "                            b += key + ':' + val[key] + ';';\n"
20130515 '                        };\n'
20130515 '                        b += \'"\';\n'
20130515 '                    }else{\n'
20130515 '                        b += \' \' + ({cls : \'class\', htmlFor : \'for\'}[attr] || attr) + \'="\' + val + \'"\';\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '            // Now either just close the tag or try to add children and close the tag.\n'
20130515 '            if (emptyTags.test(o.tag)) {\n'
20130515 "                b += '/>';\n"
20130515 '            } else {\n'
20130515 "                b += '>';\n"
20130515 '                if ((cn = o.children || o.cn)) {\n'
20130515 '                    b += createHtml(cn);\n'
20130515 '                } else if(o.html){\n'
20130515 '                    b += o.html;\n'
20130515 '                }\n'
20130515 "                b += '</' + o.tag + '>';\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return b;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    function ieTable(depth, s, h, e){\n'
20130515 "        tempTableEl.innerHTML = [s, h, e].join('');\n"
20130515 '        var i = -1,\n'
20130515 '            el = tempTableEl,\n'
20130515 '            ns;\n'
20130515 '        while(++i < depth){\n'
20130515 '            el = el.firstChild;\n'
20130515 '        }\n'
20130515 '//      If the result is multiple siblings, then encapsulate them into one fragment.\n'
20130515 '        if(ns = el.nextSibling){\n'
20130515 '            var df = document.createDocumentFragment();\n'
20130515 '            while(el){\n'
20130515 '                ns = el.nextSibling;\n'
20130515 '                df.appendChild(el);\n'
20130515 '                el = ns;\n'
20130515 '            }\n'
20130515 '            el = df;\n'
20130515 '        }\n'
20130515 '        return el;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @ignore\n'
20130515 "     * Nasty code for IE's broken table implementation\n"
20130515 '     */\n'
20130515 '    function insertIntoTable(tag, where, el, html) {\n'
20130515 '        var node,\n'
20130515 '            before;\n'
20130515 '\n'
20130515 "        tempTableEl = tempTableEl || document.createElement('div');\n"
20130515 '\n'
20130515 "        if(tag == 'td' && (where == afterbegin || where == beforeend) ||\n"
20130515 '           !tableElRe.test(tag) && (where == beforebegin || where == afterend)) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        before = where == beforebegin ? el :\n'
20130515 '                 where == afterend ? el.nextSibling :\n'
20130515 '                 where == afterbegin ? el.firstChild : null;\n'
20130515 '\n'
20130515 '        if (where == beforebegin || where == afterend) {\n'
20130515 '            el = el.parentNode;\n'
20130515 '        }\n'
20130515 '\n'
20130515 "        if (tag == 'td' || (tag == 'tr' && (where == beforeend || where == afterbegin))) {\n"
20130515 '            node = ieTable(4, trs, html, tre);\n'
20130515 "        } else if ((tag == 'tbody' && (where == beforeend || where == afterbegin)) ||\n"
20130515 "                   (tag == 'tr' && (where == beforebegin || where == afterend))) {\n"
20130515 '            node = ieTable(3, tbs, html, tbe);\n'
20130515 '        } else {\n'
20130515 '            node = ieTable(2, ts, html, te);\n'
20130515 '        }\n'
20130515 '        el.insertBefore(node, before);\n'
20130515 '        return node;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '    pub = {\n'
20130515 '        /**\n'
20130515 '         * Returns the markup for the passed Element(s) config.\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @return {String}\n'
20130515 '         */\n'
20130515 '        markup : function(o){\n'
20130515 '            return createHtml(o);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Applies a style specification to an element.\n'
20130515 '         * @param {String/HTMLElement} el The element to apply styles to\n'
20130515 "         * @param {String/Object/Function} styles A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or\n"
20130515 '         * a function which returns such a specification.\n'
20130515 '         */\n'
20130515 '        applyStyles : function(el, styles){\n'
20130515 '            if (styles) {\n'
20130515 '                var matches;\n'
20130515 '\n'
20130515 '                el = Ext.fly(el);\n'
20130515 '                if (typeof styles == "function") {\n'
20130515 '                    styles = styles.call();\n'
20130515 '                }\n'
20130515 '                if (typeof styles == "string") {\n'
20130515 '                    /**\n'
20130515 "                     * Since we're using the g flag on the regex, we need to set the lastIndex.\n"
20130515 '                     * This automatically happens on some implementations, but not others, see:\n'
20130515 '                     * http://stackoverflow.com/questions/2645273/javascript-regular-expression-literal-persists-between-function-calls\n'
20130515 '                     * http://blog.stevenlevithan.com/archives/fixing-javascript-regexp\n'
20130515 '                     */\n'
20130515 '                    cssRe.lastIndex = 0;\n'
20130515 '                    while ((matches = cssRe.exec(styles))) {\n'
20130515 '                        el.setStyle(matches[1], matches[2]);\n'
20130515 '                    }\n'
20130515 '                } else if (typeof styles == "object") {\n'
20130515 '                    el.setStyle(styles);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Inserts an HTML fragment into the DOM.\n'
20130515 '         * @param {String} where Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd.\n'
20130515 '         * @param {HTMLElement} el The context element\n'
20130515 '         * @param {String} html The HTML fragment\n'
20130515 '         * @return {HTMLElement} The new node\n'
20130515 '         */\n'
20130515 '        insertHtml : function(where, el, html){\n'
20130515 '            var hash = {},\n'
20130515 '                hashVal,\n'
20130515 '                setStart,\n'
20130515 '                range,\n'
20130515 '                frag,\n'
20130515 '                rangeEl,\n'
20130515 '                rs,\n'
20130515 '                temp;\n'
20130515 '\n'
20130515 '            where = where.toLowerCase();\n'
20130515 '            // add these here because they are used in both branches of the condition.\n'
20130515 "            hash[beforebegin] = ['BeforeBegin', 'previousSibling'];\n"
20130515 "            hash[afterend] = ['AfterEnd', 'nextSibling'];\n"
20130515 '\n'
20130515 '            if (el.insertAdjacentHTML) {\n'
20130515 '                if(tableRe.test(el.tagName) && (rs = insertIntoTable(el.tagName.toLowerCase(), where, el, html))){\n'
20130515 '                    return rs;\n'
20130515 '                }\n'
20130515 '                // add these two to the hash.\n'
20130515 "                hash[afterbegin] = ['AfterBegin', 'firstChild'];\n"
20130515 "                hash[beforeend] = ['BeforeEnd', 'lastChild'];\n"
20130515 '                if ((hashVal = hash[where])) {\n'
20130515 '                    el.insertAdjacentHTML(hashVal[0], html);\n'
20130515 '                    return el[hashVal[1]];\n'
20130515 '                }\n'
20130515 '            } else {\n'
20130515 '                range = el.ownerDocument.createRange();\n'
20130515 "                setStart = 'setStart' + (endRe.test(where) ? 'After' : 'Before');\n"
20130515 '                if (hash[where]) {\n'
20130515 '                    range[setStart](el);\n'
20130515 '                    if (range.createContextualFragment) {\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                    } else {\n'
20130515 '                        frag = document.createDocumentFragment(), \n'
20130515 "                        temp = document.createElement('div');\n"
20130515 '                        frag.appendChild(temp);\n'
20130515 '                        temp.outerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    el.parentNode.insertBefore(frag, where == beforebegin ? el : el.nextSibling);\n'
20130515 "                    return el[(where == beforebegin ? 'previous' : 'next') + 'Sibling'];\n"
20130515 '                } else {\n'
20130515 "                    rangeEl = (where == afterbegin ? 'first' : 'last') + 'Child';\n"
20130515 '                    if (el.firstChild) {\n'
20130515 '                        range[setStart](el[rangeEl]);\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                        if(where == afterbegin){\n'
20130515 '                            el.insertBefore(frag, el.firstChild);\n'
20130515 '                        }else{\n'
20130515 '                            el.appendChild(frag);\n'
20130515 '                        }\n'
20130515 '                    } else {\n'
20130515 '                        el.innerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    return el[rangeEl];\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '            throw \'Illegal insertion point -> "\' + where + \'"\';\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them before el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertBefore : function(el, o, returnElement){\n'
20130515 '            return doInsert(el, o, returnElement, beforebegin);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them after el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertAfter : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterend, 'nextSibling');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them as the first child of el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertFirst : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterbegin, 'firstChild');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and appends them to el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        append : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, beforeend, '', true);\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and overwrites the contents of el with them.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        overwrite : function(el, o, returnElement){\n'
20130515 '            el = Ext.getDom(el);\n'
20130515 '            el.innerHTML = createHtml(o);\n'
20130515 '            return returnElement ? Ext.get(el.firstChild) : el.firstChild;\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        createHtml : createHtml\n'
20130515 '    };\n'
20130515 '    return pub;\n'
20130515 '}());\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the all-day event container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. Internally the majority of the layout logic is deferred to an instance of\n'
20130515 ' * {@link Ext.ensible.cal.BoxLayoutTemplate}.</p> \n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayBodyTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    this.allDayTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\n'
20130515 '    this.allDayTpl.compile();\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayHeaderTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<div class="ext-cal-hd-ct">\',\n'
20130515 '            \'<table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0">\',\n'
20130515 "                '<tbody>',\n"
20130515 "                    '<tr>',\n"
20130515 '                        \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                        \'<td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner">{allDayTpl}</div></td>\',\n'
20130515 '                        \'<td class="ext-cal-gutter-rt"></td>\',\n'
20130515 "                    '</tr>',\n"
20130515 "                '</tbody>',\n"
20130515 "            '</table>',\n"
20130515 "        '</div>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayHeaderTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        return Ext.ensible.cal.DayHeaderTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            allDayTpl: this.allDayTpl.apply(o)\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate.prototype.apply = Ext.ensible.cal.DayHeaderTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the scrolling body container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayHeaderTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayBodyTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:{dayHeight}px;">\',\n'
20130515 "            '<tbody>',\n"
20130515 '                \'<tr height="1">\',\n'
20130515 '                    \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                    \'<td colspan="{dayCount}">\',\n'
20130515 '                        \'<div class="ext-cal-bg-rows">\',\n'
20130515 '                            \'<div class="ext-cal-bg-rows-inner">\',\n'
20130515 '                                \'<tpl for="times">\',\n'
20130515 '                                    \'<div class="ext-cal-bg-row ext-row-{[xindex]}" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                        \'<div class="ext-cal-bg-row-div {parent.hourSeparatorCls}" style="height:{parent.hourSeparatorHeight}px;"></div>\',\n'
20130515 "                                    '</div>',\n"
20130515 "                                '</tpl>',\n"
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</td>',\n"
20130515 "                '</tr>',\n"
20130515 "                '<tr>',\n"
20130515 '                    \'<td class="ext-cal-day-times">\',\n'
20130515 '                        \'<tpl for="times">\',\n'
20130515 '                            \'<div class="ext-cal-bg-row" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                \'<div class="ext-cal-day-time-inner"  style="height:{parent.hourHeight-1}px;">{.}</div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</tpl>',\n"
20130515 "                    '</td>',\n"
20130515 '                    \'<tpl for="days">\',\n'
20130515 '                        \'<td class="ext-cal-day-col">\',\n'
20130515 '                            \'<div class="ext-cal-day-col-inner">\',\n'
20130515 '                                \'<div id="{[this.id]}-day-col-{.:date("Ymd")}" class="ext-cal-day-col-gutter" style="height:{parent.dayHeight}px;"></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</td>',\n"
20130515 "                    '</tpl>',\n"
20130515 "                '</tr>',\n"
20130515 "            '</tbody>',\n"
20130515 "        '</table>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayBodyTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        this.today = new Date().clearTime();\n'
20130515 '        this.dayCount = this.dayCount || 1;\n'
20130515 '        \n'
20130515 '        var i = 0, days = [],\n'
20130515 '            dt = o.viewStart.clone();\n'
20130515 '            \n'
20130515 '        for(; i<this.dayCount; i++){\n'
20130515 '            days[i] = dt.add(Date.DAY, i);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        var times = [],\n'
20130515 '            start = this.viewStartHour,\n'
20130515 '            end = this.viewEndHour,\n'
20130515 '            mins = this.hourIncrement,\n'
20130515 '            dayHeight = this.hourHeight * (end - start)\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i' : 'ga';\n"
20130515 '        \n'
20130515 "        // use a fixed DST-safe date so times don't get skipped on DST boundaries\n"
20130515 "        dt = new Date('1/1/2010').clearTime().add(Date.HOUR, start);\n"
20130515 '        \n'
20130515 '        for(i=start; i<end; i++){\n'
20130515 '            times.push(dt.format(fmt));\n'
20130515 '            dt = dt.add(Date.MINUTE, mins);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.DayBodyTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            days: days,\n'
20130515 '            dayCount: days.length,\n'
20130515 '            times: times,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            hourSeparatorCls: this.showHourSeparator ? '' : 'no-sep', // the class suppresses the default separator\n"
20130515 '            dayHeight: dayHeight,\n'
20130515 '            hourSeparatorHeight: (this.hourHeight / 2) - 1\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayBodyTemplate.prototype.apply = Ext.ensible.cal.DayBodyTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.BoxLayoutTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render calendar views based on small day boxes within a non-scrolling container (currently\n'
20130515 ' * the {@link Ext.ensible.cal.MonthView MonthView} and the all-day headers for {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div id="{weekLinkId}" class="ext-cal-week-link">{weekNum}</div>\' : \'\';\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.BoxLayoutTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<tpl for="weeks">\',\n'
20130515 '            \'<div id="{[this.id]}-wk-{[xindex-1]}" class="ext-cal-wk-ct" style="top:{[this.getRowTop(xindex, xcount)]}%; height:{[this.getRowHeight(xcount)]}%;">\',\n'
20130515 '                weekLinkTpl,\n'
20130515 '                \'<table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                 \'<td id="{[this.id]}-day-{date:date("Ymd")}" class="{cellCls}">&#160;</td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 '                \'<table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                \'<td id="{[this.id]}-ev-day-{date:date("Ymd")}" class="{titleCls}"><div>{title}</div></td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 "            '</div>',\n"
20130515 "        '</tpl>', {\n"
20130515 '            getRowTop: function(i, ln){\n'
20130515 '                return ((i-1)*(100/ln));\n'
20130515 '            },\n'
20130515 '            getRowHeight: function(ln){\n'
20130515 '                return 100/ln;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.BoxLayoutTemplate, Ext.XTemplate, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} firstWeekDateFormat\n'
20130515 '     * The date format used for the day boxes in the first week of the view only (subsequent weeks\n'
20130515 "     * use the {@link #otherWeeksDateFormat} config). Defaults to 'D j'. Note that if the day names header is displayed\n"
20130515 '     * above the first row (e.g., {@link Ext.ensible.cal.MonthView#showHeader MonthView.showHeader} = true)\n'
20130515 '     * then this value is ignored and {@link #otherWeeksDateFormat} will be used instead.\n'
20130515 '     */\n'
20130515 "    firstWeekDateFormat: 'D j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} otherWeeksDateFormat\n'
20130515 '     * The date format used for the date in day boxes (other than the first week, which is controlled by\n'
20130515 "     * {@link #firstWeekDateFormat}). Defaults to 'j'.\n"
20130515 '     */\n'
20130515 "    otherWeeksDateFormat: 'j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} singleDayDateFormat\n'
20130515 "     * The date format used for the date in the header when in single-day view (defaults to 'l, F j, Y').\n"
20130515 '     */\n'
20130515 "    singleDayDateFormat: 'l, F j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayFirstDayFormat\n'
20130515 "     * The date format used for the date in the header when more than one day are visible (defaults to 'M j, Y').\n"
20130515 '     */\n'
20130515 "    multiDayFirstDayFormat: 'M j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayMonthStartFormat\n'
20130515 "     * The date format to use for the first day in a month when more than one day are visible (defaults to 'M j').\n"
20130515 '     * Note that if this day falls on the first day within the view, {@link #multiDayFirstDayFormat} takes precedence.\n'
20130515 '     */\n'
20130515 "    multiDayMonthStartFormat: 'M j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        \n'
20130515 '        Ext.apply(this, o);\n'
20130515 '        \n'
20130515 "        var w = 0, title = '', first = true, isToday = false, showMonth = false, \n"
20130515 '            prevMonth = false, nextMonth = false, isWeekend = false,\n'
20130515 '            weekendCls = o.weekendCls,\n'
20130515 '            prevMonthCls = o.prevMonthCls,\n'
20130515 '            nextMonthCls = o.nextMonthCls,\n'
20130515 '            todayCls = o.todayCls,\n'
20130515 '            weeks = [[]],\n'
20130515 '            today = new Date().clearTime(),\n'
20130515 '            dt = this.viewStart.clone(),\n'
20130515 '            thisMonth = this.startDate.getMonth();\n'
20130515 '        \n'
20130515 '        for(; w < this.weekCount || this.weekCount == -1; w++){\n'
20130515 '            if(dt > this.viewEnd){\n'
20130515 '                break;\n'
20130515 '            }\n'
20130515 '            weeks[w] = [];\n'
20130515 '            \n'
20130515 '            for(var d = 0; d < this.dayCount; d++){\n'
20130515 '                isToday = dt.getTime() === today.getTime();\n'
20130515 '                showMonth = first || (dt.getDate() == 1);\n'
20130515 '                prevMonth = (dt.getMonth() < thisMonth) && this.weekCount == -1;\n'
20130515 '                nextMonth = (dt.getMonth() > thisMonth) && this.weekCount == -1;\n'
20130515 '                isWeekend = dt.getDay() % 6 === 0;\n'
20130515 '                \n'
20130515 '                if(dt.getDay() == 1){\n'
20130515 "                    // The ISO week format 'W' is relative to a Monday week start. If we\n"
20130515 '                    // make this check on Sunday the week number will be off.\n'
20130515 "                    weeks[w].weekNum = this.showWeekNumbers ? dt.format('W') : '&#160;';\n"
20130515 "                    weeks[w].weekLinkId = 'ext-cal-week-'+dt.format('Ymd');\n"
20130515 '                }\n'
20130515 '                \n'
20130515 '                if(showMonth){\n'
20130515 '                    if(isToday){\n'
20130515 '                        title = this.getTodayText();\n'
20130515 '                    }\n'
20130515 '                    else{\n'
20130515 '                        title = dt.format(this.dayCount == 1 ? this.singleDayDateFormat : \n'
20130515 '                                (first ? this.multiDayFirstDayFormat : this.multiDayMonthStartFormat));\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    var dayFmt = (w == 0 && this.showHeader !== true) ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '                    title = isToday ? this.getTodayText() : dt.format(dayFmt);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                weeks[w].push({\n'
20130515 '                    title: title,\n'
20130515 '                    date: dt.clone(),\n'
20130515 "                    titleCls: 'ext-cal-dtitle ' + (isToday ? ' ext-cal-dtitle-today' : '') + \n"
20130515 "                        (w==0 ? ' ext-cal-dtitle-first' : '') +\n"
20130515 "                        (prevMonth ? ' ext-cal-dtitle-prev' : '') + \n"
20130515 "                        (nextMonth ? ' ext-cal-dtitle-next' : ''),\n"
20130515 "                    cellCls: 'ext-cal-day ' + (isToday ? ' '+todayCls : '') + \n"
20130515 "                        (d==0 ? ' ext-cal-day-first' : '') +\n"
20130515 "                        (prevMonth ? ' '+prevMonthCls : '') +\n"
20130515 "                        (nextMonth ? ' '+nextMonthCls : '') +\n"
20130515 "                        (isWeekend && weekendCls ? ' '+weekendCls : '')\n"
20130515 '                });\n'
20130515 '                dt = dt.add(Date.DAY, 1);\n'
20130515 '                first = false;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.BoxLayoutTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            weeks: weeks\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTodayText : function(){\n'
20130515 "        var timeFmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            todayText = this.showTodayText !== false ? this.todayText : '',\n"
20130515 '            timeText = this.showTime !== false ? \' <span id="\'+this.id+\'-clock" class="ext-cal-dtitle-time">\' + \n'
20130515 "                    new Date().format(timeFmt) + '</span>' : '',\n"
20130515 "            separator = todayText.length > 0 || timeText.length > 0 ? ' &#8212; ' : ''; // &#8212; == &mdash;\n"
20130515 '        \n'
20130515 '        if(this.dayCount == 1){\n'
20130515 '            return new Date().format(this.singleDayDateFormat) + separator + todayText + timeText;\n'
20130515 '        }\n'
20130515 '        fmt = this.weekCount == 1 ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '        return todayText.length > 0 ? todayText + timeText : new Date().format(fmt) + timeText;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate.prototype.apply = Ext.ensible.cal.BoxLayoutTemplate.prototype.applyTemplate;\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthViewTemplate\r\n'
20130515 ' * @extends Ext.XTemplate\r\n'
20130515 ' * <p>This is the template used to render the {@link Ext.ensible.cal.MonthView MonthView}. Internally this class defers to an\r\n'
20130515 ' * instance of {@link Ext.calerndar.BoxLayoutTemplate} to handle the inner layout rendering and adds containing elements around\r\n'
20130515 ' * that to form the month view.</p> \r\n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \r\n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate = function(config){\r\n'
20130515 '    \r\n'
20130515 '    Ext.apply(this, config);\r\n'
20130515 '    \r\n'
20130515 '    this.weekTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\r\n'
20130515 '    this.weekTpl.compile();\r\n'
20130515 '    \r\n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div class="ext-cal-week-link-hd">&#160;</div>\' : \'\';\r\n'
20130515 '    \r\n'
20130515 '    Ext.ensible.cal.MonthViewTemplate.superclass.constructor.call(this,\r\n'
20130515 '\t    \'<div class="ext-cal-inner-ct {extraClasses}">\',\r\n'
20130515 '            \'<div class="ext-cal-hd-ct ext-cal-month-hd">\',\r\n'
20130515 '                weekLinkTpl,\r\n'
20130515 '\t\t        \'<table class="ext-cal-hd-days-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t            '<tbody>',\r\n"
20130515 "                        '<tr>',\r\n"
20130515 '                            \'<tpl for="days">\',\r\n'
20130515 '\t\t                        \'<th class="ext-cal-hd-day{[xindex==1 ? " ext-cal-day-first" : ""]}" title="{title}">{name}</th>\',\r\n'
20130515 "\t\t                    '</tpl>',\r\n"
20130515 "                        '</tr>',\r\n"
20130515 "\t\t            '</tbody>',\r\n"
20130515 "\t\t        '</table>',\r\n"
20130515 "            '</div>',\r\n"
20130515 '\t        \'<div class="ext-cal-body-ct">{weeks}</div>\',\r\n'
20130515 "        '</div>'\r\n"
20130515 '    );\r\n'
20130515 '};\r\n'
20130515 '\r\n'
20130515 'Ext.extend(Ext.ensible.cal.MonthViewTemplate, Ext.XTemplate, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderFormat\r\n'
20130515 "     * The date format to use for day headers, if used (defaults to 'D', e.g. 'Mon' for Monday)\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderFormat: 'D',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderTitleFormat\r\n'
20130515 "     * The date format to use for the day header's HTML title attribute displayed on mouseover \r\n"
20130515 "     * (defaults to 'l, F j, Y', e.g. 'Monday, December 27, 2010')\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderTitleFormat: 'l, F j, Y',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    applyTemplate : function(o){\r\n'
20130515 '        var days = [],\r\n'
20130515 '            weeks = this.weekTpl.apply(o),\r\n'
20130515 '            dt = o.viewStart;\r\n'
20130515 '        \r\n'
20130515 '        for(var i = 0; i < 7; i++){\r\n'
20130515 '            var d = dt.add(Date.DAY, i);\r\n'
20130515 '            days.push({\r\n'
20130515 '                name: d.format(this.dayHeaderFormat),\r\n'
20130515 '                title: d.format(this.dayHeaderTitleFormat)\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        var extraClasses = this.showHeader === true ? '' : 'ext-cal-noheader';\r\n"
20130515 '        if(this.showWeekLinks){\r\n'
20130515 "            extraClasses += ' ext-cal-week-links';\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return Ext.ensible.cal.MonthViewTemplate.superclass.applyTemplate.call(this, {\r\n'
20130515 '            days: days,\r\n'
20130515 '            weeks: weeks,\r\n'
20130515 '            extraClasses: extraClasses\r\n'
20130515 '        });\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate.prototype.apply = Ext.ensible.cal.MonthViewTemplate.prototype.applyTemplate;\r\n'
20130515 '/* @private\n'
20130515 ' * @class Ext.dd.ScrollManager\n'
20130515 ' * <p>Provides automatic scrolling of overflow regions in the page during drag operations.</p>\n'
20130515 ' * <p>The ScrollManager configs will be used as the defaults for any scroll container registered with it,\n'
20130515 ' * but you can also override most of the configs per scroll container by adding a \n'
20130515 ' * <tt>ddScrollConfig</tt> object to the target element that contains these properties: {@link #hthresh},\n'
20130515 ' * {@link #vthresh}, {@link #increment} and {@link #frequency}.  Example usage:\n'
20130515 ' * <pre><code>\n'
20130515 "var el = Ext.get('scroll-ct');\n"
20130515 'el.ddScrollConfig = {\n'
20130515 '    vthresh: 50,\n'
20130515 '    hthresh: -1,\n'
20130515 '    frequency: 100,\n'
20130515 '    increment: 200\n'
20130515 '};\n'
20130515 'Ext.dd.ScrollManager.register(el);\n'
20130515 '</code></pre>\n'
20130515 ' * <b>Note: This class uses "Point Mode" and is untested in "Intersect Mode".</b>\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 'Ext.dd.ScrollManager = function(){\n'
20130515 '    var ddm = Ext.dd.DragDropMgr;\n'
20130515 '    var els = {};\n'
20130515 '    var dragEl = null;\n'
20130515 '    var proc = {};\n'
20130515 '    \n'
20130515 '    var onStop = function(e){\n'
20130515 '        dragEl = null;\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var triggerRefresh = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '             ddm.refreshCache(ddm.dragCurrent.groups);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var doScroll = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '            var dds = Ext.dd.ScrollManager;\n'
20130515 '            var inc = proc.el.ddScrollConfig ?\n'
20130515 '                      proc.el.ddScrollConfig.increment : dds.increment;\n'
20130515 '            if(!dds.animate){\n'
20130515 '                if(proc.el.scroll(proc.dir, inc)){\n'
20130515 '                    triggerRefresh();\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                proc.el.scroll(proc.dir, inc, true, dds.animDuration, triggerRefresh);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var clearProc = function(){\n'
20130515 '        if(proc.id){\n'
20130515 '            clearInterval(proc.id);\n'
20130515 '        }\n'
20130515 '        proc.id = 0;\n'
20130515 '        proc.el = null;\n'
20130515 '        proc.dir = "";\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var startProc = function(el, dir){\n'
20130515 '        clearProc();\n'
20130515 '        proc.el = el;\n'
20130515 '        proc.dir = dir;\n'
20130515 '        var freq = (el.ddScrollConfig && el.ddScrollConfig.frequency) ? \n'
20130515 '                el.ddScrollConfig.frequency : Ext.dd.ScrollManager.frequency,\n'
20130515 '            group = el.ddScrollConfig ? el.ddScrollConfig.ddGroup : undefined;\n'
20130515 '        \n'
20130515 '        if(group === undefined || ddm.dragCurrent.ddGroup == group){\n'
20130515 '            proc.id = setInterval(doScroll, freq);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var onFire = function(e, isDrop){\n'
20130515 '        if(isDrop || !ddm.dragCurrent){ return; }\n'
20130515 '        var dds = Ext.dd.ScrollManager;\n'
20130515 '        if(!dragEl || dragEl != ddm.dragCurrent){\n'
20130515 '            dragEl = ddm.dragCurrent;\n'
20130515 '            // refresh regions on drag start\n'
20130515 '            dds.refreshCache();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var xy = Ext.lib.Event.getXY(e);\n'
20130515 '        var pt = new Ext.lib.Point(xy[0], xy[1]);\n'
20130515 '        for(var id in els){\n'
20130515 '            var el = els[id], r = el._region;\n'
20130515 '            var c = el.ddScrollConfig ? el.ddScrollConfig : dds;\n'
20130515 '            if(r && r.contains(pt) && el.isScrollable()){\n'
20130515 '                if(r.bottom - pt.y <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "down");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(r.right - pt.x <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "left");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.y - r.top <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "up");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.x - r.left <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "right");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    ddm.fireEvents = ddm.fireEvents.createSequence(onFire, ddm);\n'
20130515 '    ddm.stopDrag = ddm.stopDrag.createSequence(onStop, ddm);\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        /**\n'
20130515 '         * Registers new overflow element(s) to auto scroll\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be scrolled or an array of either\n'
20130515 '         */\n'
20130515 '        register : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.register(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                els[el.id] = el;\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Unregisters overflow element(s) so they are no longer scrolled\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be removed or an array of either\n'
20130515 '         */\n'
20130515 '        unregister : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.unregister(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                delete els[el.id];\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the top or bottom edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        vthresh : 25,\n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the right or left edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        hthresh : 25,\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * The number of pixels to scroll in each scroll increment (defaults to 50)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        increment : 100,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The frequency of scrolls in milliseconds (defaults to 500)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        frequency : 500,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * True to animate the scroll (defaults to true)\n'
20130515 '         * @type Boolean\n'
20130515 '         */\n'
20130515 '        animate: true,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The animation duration in seconds - \n'
20130515 '         * MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        animDuration: .4,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Manually trigger a cache refresh.\n'
20130515 '         */\n'
20130515 '        refreshCache : function(){\n'
20130515 '            for(var id in els){\n'
20130515 "                if(typeof els[id] == 'object'){ // for people extending the object prototype\n"
20130515 '                    els[id]._region = els[id].getRegion();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();/**\n'
20130515 ' * @class Ext.ensible.cal.StatusProxy\n'
20130515 ' * A specialized drag proxy that supports a drop status icon, {@link Ext.Layer} styles and auto-repair. It also\n'
20130515 " * contains a calendar-specific drag status message containing details about the dragged event's target drop date range.  \n"
20130515 ' * This is the default drag proxy used by all calendar views.\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.StatusProxy = function(config){\n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    this.id = this.id || Ext.id();\n'
20130515 '    this.el = new Ext.Layer({\n'
20130515 '        dh: {\n'
20130515 "            id: this.id, cls: 'ext-dd-drag-proxy x-dd-drag-proxy '+this.dropNotAllowed, cn: [\n"
20130515 "                {cls: 'x-dd-drop-icon'},\n"
20130515 "                {cls: 'ext-dd-ghost-ct', cn:[\n"
20130515 "                    {cls: 'x-dd-drag-ghost'},\n"
20130515 "                    {cls: 'ext-dd-msg'}\n"
20130515 '                ]}\n'
20130515 '            ]\n'
20130515 '        }, \n'
20130515 '        shadow: !config || config.shadow !== false\n'
20130515 '    });\n'
20130515 '    this.ghost = Ext.get(this.el.dom.childNodes[1].childNodes[0]);\n'
20130515 '    this.message = Ext.get(this.el.dom.childNodes[1].childNodes[1]);\n'
20130515 '    this.dropStatus = this.dropNotAllowed;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.StatusProxy, Ext.dd.StatusProxy, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} moveEventCls\n'
20130515 "     * The CSS class to apply to the status element when an event is being dragged (defaults to 'ext-cal-dd-move').\n"
20130515 '     */\n'
20130515 "    moveEventCls : 'ext-cal-dd-move',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} addEventCls\n'
20130515 "     * The CSS class to apply to the status element when drop is not allowed (defaults to 'ext-cal-dd-add').\n"
20130515 '     */\n'
20130515 "    addEventCls : 'ext-cal-dd-add',\n"
20130515 '\n'
20130515 '    // inherit docs\n'
20130515 '    update : function(html){\n'
20130515 "        if(typeof html == 'string'){\n"
20130515 '            this.ghost.update(html);\n'
20130515 '        }else{\n'
20130515 "            this.ghost.update('');\n"
20130515 "            html.style.margin = '0';\n"
20130515 '            this.ghost.dom.appendChild(html);\n'
20130515 '        }\n'
20130515 '        var el = this.ghost.dom.firstChild;\n'
20130515 '        if(el){\n'
20130515 "            Ext.fly(el).setStyle('float', 'none').setHeight('auto');\n"
20130515 "            Ext.getDom(el).id += '-ddproxy';\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /* @private\n'
20130515 '     * Update the calendar-specific drag status message without altering the ghost element.\n'
20130515 '     * @param {String} msg The new status message\n'
20130515 '     */\n'
20130515 '    updateMsg : function(msg){\n'
20130515 '        this.message.update(msg);\n'
20130515 '    }\n'
20130515 '});/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DragZone = Ext.extend(Ext.dd.DragZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 '    \n'
20130515 '    constructor : function(el, config){\n'
20130515 '        if(!Ext.ensible.cal._statusProxyInstance){\n'
20130515 '            Ext.ensible.cal._statusProxyInstance = new Ext.ensible.cal.StatusProxy();\n'
20130515 '        }\n'
20130515 '        this.proxy = Ext.ensible.cal._statusProxyInstance;\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.constructor.call(this, el, config);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        // Check whether we are dragging on an event first\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                start: t.date,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onInitDrag : function(x, y){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            var ghost = this.dragData.ddel.cloneNode(true),\n'
20130515 "                child = Ext.fly(ghost).child('dl');\n"
20130515 '            \n'
20130515 "            Ext.fly(ghost).setWidth('auto');\n"
20130515 '            \n'
20130515 '            if(child){\n'
20130515 '                // for IE/Opera\n'
20130515 "                child.setHeight('auto');\n"
20130515 '            }\n'
20130515 '            this.proxy.update(ghost);\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        else if(this.dragData.start){\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        this.view.onInitDrag();\n'
20130515 '        return true;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterRepair : function(){\n'
20130515 '        if(Ext.enableFx && this.dragData.ddel){\n'
20130515 "            Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor || 'c3daf9');\n"
20130515 '        }\n'
20130515 '        this.dragging = false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getRepairXY : function(e){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            return Ext.Element.fly(this.dragData.ddel).getXY();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterInvalidDrop : function(e, id){\n'
20130515 "        Ext.select('.ext-dd-shim').hide();\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    destroy : function(){\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.destroy.call(this);\n'
20130515 '        delete Ext.ensible.cal._statusProxyInstance;\n'
20130515 '    }    \n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DropZone = Ext.extend(Ext.dd.DropZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    shims : [],\n'
20130515 '    \n'
20130515 '    getTargetFromEvent : function(e){\n'
20130515 '        var dragOffset = this.dragOffset || 0,\n'
20130515 '            y = e.getPageY() - dragOffset,\n'
20130515 '            d = this.view.getDayAt(e.getPageX(), y);\n'
20130515 '        \n'
20130515 '        return d.el ? d : null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var D = Ext.ensible.Date,\n'
20130515 "            start = data.type == 'eventdrag' ? n.date : D.min(data.start, n.date),\n"
20130515 "            end = data.type == 'eventdrag' ? n.date.add(Date.DAY, D.diffDays(data.eventStart, data.eventEnd)) : \n"
20130515 '                D.max(data.start, n.date);\n'
20130515 '        \n'
20130515 '        if(!this.dragStartDate || !this.dragEndDate || (D.diffDays(start, this.dragStartDate) != 0) || (D.diffDays(end, this.dragEndDate) != 0)){\n'
20130515 '            this.dragStartDate = start;\n'
20130515 '            this.dragEndDate = end.clearTime().add(Date.DAY, 1).add(Date.MINUTE, -30);\n'
20130515 '            this.shim(start, end);\n'
20130515 '            \n'
20130515 '            var range = start.format(this.dateFormat);\n'
20130515 '                \n'
20130515 '            if(D.diffDays(start, end) > 0){\n'
20130515 '                end = end.format(this.dateFormat);\n'
20130515 '                range = String.format(this.dateRangeFormat, range, end);\n'
20130515 '            }\n'
20130515 "            var msg = String.format(data.type == 'eventdrag' ? this.moveText : this.createText, range);\n"
20130515 '            data.proxy.updateMsg(msg);\n'
20130515 '        }\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(start, end){\n'
20130515 '        this.currWeek = -1;\n'
20130515 '        var dt = start.clone(),\n'
20130515 '            i = 0, shim, box,\n'
20130515 '            cnt = Ext.ensible.Date.diffDays(dt, end)+1\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        while(i++ < cnt){\n'
20130515 '            var dayEl = this.view.getDayEl(dt);\n'
20130515 '            \n'
20130515 '            // if the date is not in the current view ignore it (this\n'
20130515 '            // can happen when an event is dragged to the end of the\n'
20130515 '            // month so that it ends outside the view)\n'
20130515 '            if(dayEl){\n'
20130515 '                var wk = this.view.getWeekIndex(dt),\n'
20130515 '                    shim = this.shims[wk];\n'
20130515 '            \n'
20130515 '                if(!shim){\n'
20130515 '                    shim = this.createShim();\n'
20130515 '                    this.shims[wk] = shim;\n'
20130515 '                }\n'
20130515 '                if(wk != this.currWeek){\n'
20130515 '                    shim.boxInfo = dayEl.getBox();\n'
20130515 '                    this.currWeek = wk;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box = dayEl.getBox();\n'
20130515 '                    shim.boxInfo.right = box.right;\n'
20130515 '                    shim.boxInfo.width = box.right - shim.boxInfo.x;\n'
20130515 '                }\n'
20130515 '                shim.isActive = true;\n'
20130515 '            }\n'
20130515 '            dt = dt.add(Date.DAY, 1);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                if(shim.isActive){\n'
20130515 '                    shim.show();\n'
20130515 '                    shim.setBox(shim.boxInfo);\n'
20130515 '                }\n'
20130515 '                else if(shim.isVisible()){\n'
20130515 '                    shim.hide();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    createShim : function(){\n'
20130515 '        var owner = this.view.ownerCalendarPanel ? this.view.ownerCalendarPanel : this.view;\n'
20130515 '        if(!this.shimCt){\n'
20130515 "            this.shimCt = Ext.get('ext-dd-shim-ct-'+owner.id);\n"
20130515 '            if(!this.shimCt){\n'
20130515 "                this.shimCt = document.createElement('div');\n"
20130515 "                this.shimCt.id = 'ext-dd-shim-ct-'+owner.id;\n"
20130515 '                owner.getEl().parent().appendChild(this.shimCt);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 "        var el = document.createElement('div');\n"
20130515 "        el.className = 'ext-dd-shim';\n"
20130515 '        this.shimCt.appendChild(el);\n'
20130515 '        \n'
20130515 '        return new Ext.Layer({\n'
20130515 '            shadow:false, \n'
20130515 '            useDisplay:true, \n'
20130515 '            constrain:false\n'
20130515 '        }, el);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    clearShims : function(){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerOver : function(dd, e, data){\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onCalendarDragComplete : function(){\n'
20130515 '        delete this.dragStartDate;\n'
20130515 '        delete this.dragEndDate;\n'
20130515 '        this.clearShims();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel),\n'
20130515 '                    dt = Ext.ensible.Date.copyTime(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], n.date);\n'
20130515 '                    \n'
20130515 '                this.view.onEventDrop(rec, dt);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerDrop : function(dd, e, data){\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDragZone = Ext.extend(Ext.ensible.cal.DragZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    resizeSelector : '.ext-evt-rsz',\n"
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        var t = e.getTarget(this.resizeSelector, 2, true);\n'
20130515 '        if(t){\n'
20130515 '            var p = t.parent(this.eventSelector), \n'
20130515 '                rec = this.view.getEventRecordFromEl(p);\n'
20130515 '            \n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventresize',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: p.dom,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging/resizing an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                dayInfo: t,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDropZone = Ext.extend(Ext.ensible.cal.DropZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var dt, text = this.createText,\n'
20130515 "            timeFormat = Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia';\n"
20130515 '            \n'
20130515 "        if(data.type == 'caldrag'){\n"
20130515 '            if(!this.dragStartMarker){\n'
20130515 '                // Since the container can scroll, this gets a little tricky.\n'
20130515 '                // There is no el in the DOM that we can measure by default since\n'
20130515 '                // the box is simply calculated from the original drag start (as opposed\n'
20130515 '                // to dragging or resizing the event where the orig event box is present).\n'
20130515 '                // To work around this we add a placeholder el into the DOM and give it\n'
20130515 "                // the original starting time's box so that we can grab its updated\n"
20130515 '                // box measurements as the underlying container scrolls up or down.\n'
20130515 '                // This placeholder is removed in onNodeDrop.\n'
20130515 '                this.dragStartMarker = n.el.parent().createChild({\n'
20130515 "                    style: 'position:absolute;'\n"
20130515 '                });\n'
20130515 '                // use the original dayInfo values from the drag start\n'
20130515 '                this.dragStartMarker.setBox(data.dayInfo.timeBox);\n'
20130515 '                this.dragCreateDt = data.dayInfo.date;\n'
20130515 '            }\n'
20130515 '            var endDt, box = this.dragStartMarker.getBox();\n'
20130515 '            box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '            \n'
20130515 '            if(e.xy[1] < box.y){\n'
20130515 '                box.height += n.timeBox.height;\n'
20130515 '                box.y = box.y - box.height + n.timeBox.height;\n'
20130515 '                endDt = this.dragCreateDt.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            this.shim(this.dragCreateDt, box);\n'
20130515 '            \n'
20130515 '            var curr = Ext.ensible.Date.copyTime(n.date, this.dragCreateDt);\n'
20130515 '            this.dragStartDate = Ext.ensible.Date.min(this.dragCreateDt, curr);\n'
20130515 '            this.dragEndDate = endDt || Ext.ensible.Date.max(this.dragCreateDt, curr);\n'
20130515 '                \n'
20130515 '            dt = String.format(this.dateRangeFormat, this.dragStartDate.format(timeFormat), this.dragEndDate.format(timeFormat));\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            var evtEl = Ext.get(data.ddel),\n'
20130515 '                dayCol = evtEl.parent().parent(),\n'
20130515 '                box = evtEl.getBox();\n'
20130515 '            \n'
20130515 '            box.width = dayCol.getWidth();\n'
20130515 '            \n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                if(this.dragOffset === undefined){\n'
20130515 '                    // on fast drags there is a lag between the original drag start xy position and\n'
20130515 "                    // that first detected within the drop zone's getTargetFromEvent method (which is \n"
20130515 '                    // where n.timeBox comes from). to avoid a bad offset we calculate the\n'
20130515 '                    // timeBox based on the initial drag xy, not the current target xy.\n'
20130515 '                    var initialTimeBox = this.view.getDayAt(data.xy[0], data.xy[1]).timeBox;\n'
20130515 '                    this.dragOffset = initialTimeBox.y - box.y;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box.y = n.timeBox.y;\n'
20130515 '                }\n'
20130515 "                dt = n.date.format(this.dateFormat + ' ' + timeFormat);\n"
20130515 '                box.x = n.el.getLeft();\n'
20130515 '                \n'
20130515 '                this.shim(n.date, box);\n'
20130515 '                text = this.moveText;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                if(!this.resizeDt){\n'
20130515 '                    this.resizeDt = n.date;\n'
20130515 '                }\n'
20130515 '                box.x = dayCol.getLeft();\n'
20130515 '                box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '                if(e.xy[1] < box.y){\n'
20130515 '                    box.y -= box.height;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '                }\n'
20130515 '                this.shim(this.resizeDt, box);\n'
20130515 '                \n'
20130515 '                var curr = Ext.ensible.Date.copyTime(n.date, this.resizeDt),\n'
20130515 '                    start = Ext.ensible.Date.min(data.eventStart, curr),\n'
20130515 '                    end = Ext.ensible.Date.max(data.eventStart, curr);\n'
20130515 '                    \n'
20130515 '                data.resizeDates = {\n'
20130515 '                    StartDate: start,\n'
20130515 '                    EndDate: end\n'
20130515 '                }\n'
20130515 '                dt = String.format(this.dateRangeFormat, start.format(timeFormat), end.format(timeFormat));\n'
20130515 '                text = this.resizeText;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        data.proxy.updateMsg(String.format(text, dt));\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(dt, box){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var shim = this.shims[0];\n'
20130515 '        if(!shim){\n'
20130515 '            shim = this.createShim();\n'
20130515 '            this.shims[0] = shim;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        shim.isActive = true;\n'
20130515 '        shim.show();\n'
20130515 '        shim.setBox(box);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventDrop(rec, n.date);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.dragOffset;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventResize(rec, data.resizeDates);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.resizeDt;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                Ext.destroy(this.dragStartMarker);\n'
20130515 '                delete this.dragStartMarker;\n'
20130515 '                delete this.dragCreateDt;\n'
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.EventStore = Ext.extend(Ext.data.Store, {\n'
20130515 '    constructor: function(config){\n'
20130515 '        // By default autoLoad will cause the store to load itself during the\n'
20130515 '        // constructor, before the owning calendar view has a chance to set up\n'
20130515 '        // the initial date params to use during loading.  We replace autoLoad\n'
20130515 '        // with a deferLoad property that the view can check for and use to set\n'
20130515 '        // up default params as needed, then call the load itself. \n'
20130515 '        this.deferLoad = config.autoLoad;\n'
20130515 '        config.autoLoad = false;\n'
20130515 '        \n'
20130515 '        //this._dateCache = [];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.constructor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    load : function(o){\n'
20130515 "        Ext.ensible.log('store load');\n"
20130515 '        \n'
20130515 '        // if params are passed delete the one-time defaults\n'
20130515 '        if(o.params){\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        // this.initialParams will only be set if the store is being loaded manually\n'
20130515 '        // for the first time (autoLoad = false) so the owning calendar view set\n'
20130515 '        // the initial start and end date params to use. Every load after that will\n'
20130515 '        // have these params set automatically during normal UI navigation.\n'
20130515 '        if(this.initialParams){\n'
20130515 '            o = Ext.isObject(o) ? o : {};\n'
20130515 '            o.params = o.params || {};\n'
20130515 '            Ext.apply(o.params, this.initialParams);\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.load.call(this, o);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '//    execute : function(action, rs, options, /* private */ batch) {\n'
20130515 "//        if(action=='read'){\n"
20130515 '//            var i = 0, \n'
20130515 '//                dc = this._dateCache, \n'
20130515 '//                len = dc.length,\n'
20130515 '//                range,\n'
20130515 '//                p = options.params,\n'
20130515 '//                start = p.start,\n'
20130515 '//                end = p.end;\n'
20130515 '//                \n'
20130515 '//            //options.add = true;\n'
20130515 '//            for(i; i<len; i++){\n'
20130515 '//                range = dc[i];\n'
20130515 '//                \n'
20130515 '//            }\n'
20130515 '//        }\n'
20130515 '//        Ext.ensible.cal.EventStore.superclass.execute.apply(this, arguments);\n'
20130515 '//    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventstore', Ext.ensible.cal.EventStore);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * <p>A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.EventRecord EventRecord}s so that they can be easily overridden.</p>\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Event record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the EventMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings;\n'
20130515 "M.Title.mapping = 'evt_title';\n"
20130515 "M.Title.name = 'EventTitle';\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default EventMappings:\n'
20130515 'Ext.ensible.cal.EventMappings.Timestamp = {\n'
20130515 "    name: 'Timestamp',\n"
20130515 "    mapping: 'timestamp',\n"
20130515 "    type: 'date'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire EventMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard EventRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'EventId') should <b>NOT</b> be changed for the default EventMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID', mapping:'evt_id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID', mapping: 'cal_id', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle', mapping: 'evt_title'},\n"
20130515 "    StartDate:   {name: 'StartDt', mapping: 'start_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDt', mapping: 'end_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'},\n"
20130515 "    Location:    {name: 'Location', mapping: 'location'},\n"
20130515 "    Notes:       {name: 'Desc', mapping: 'full_desc'},\n"
20130515 "    Url:         {name: 'LinkUrl', mapping: 'link_url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay', mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'reminder'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard EventRecord:\n'
20130515 "    CreatedBy:   {name: 'CreatedBy', mapping: 'created_by'},\n"
20130515 "    IsPrivate:   {name: 'Private', mapping:'private', type:'boolean'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>EventId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.EventMappings.EventId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'EventId', mapping:'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalendarId', mapping: 'cid', type: 'int'},\n"
20130515 "    Title:       {name: 'Title', mapping: 'title', type: 'string'},\n"
20130515 "    StartDate:   {name: 'StartDate', mapping: 'start', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDate', mapping: 'end', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'}, // not currently used\n"
20130515 "    Location:    {name: 'Location', mapping: 'loc', type: 'string'},\n"
20130515 "    Notes:       {name: 'Notes', mapping: 'notes', type: 'string'},\n"
20130515 "    Url:         {name: 'Url', mapping: 'url', type: 'string'},\n"
20130515 "    IsAllDay:    {name: 'IsAllDay', mapping: 'ad', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'rem', type: 'string'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.CalendarRecord CalendarRecord}s so that they can be easily overridden.\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Calendar record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the CalendarMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 "M.Title.mapping = 'cal_title';\n"
20130515 "M.Title.name = 'CalTitle';\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default CalendarMappings:\n'
20130515 'Ext.ensible.cal.CalendarMappings.Owner = {\n'
20130515 "    name: 'Owner',\n"
20130515 "    mapping: 'owner',\n"
20130515 "    type: 'string'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire CalendarMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard CalendarRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'CalendarId') should <b>NOT</b> be changed for the default CalendarMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Desc', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden', mapping: 'hidden', type: 'boolean'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard CalendarRecord:\n'
20130515 "    Owner:        {name: 'Owner', mapping: 'owner'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>CalendarId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'CalendarId', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'Title', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Description', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'ColorId', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'IsHidden', mapping: 'hidden', type: 'boolean'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.EventRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar event data used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s underlying store. It can be overridden as \n"
20130515 ' * necessary to customize the fields supported by events, although the existing field definition names \n'
20130515 ' * should not be altered. If your model fields are named differently you should update the <b>mapping</b>\n'
20130515 ' * configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new event record instance are <tt>StartDate</tt> and\n'
20130515 ' * <tt>EndDate</tt>.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.EventRecord({\n'
20130515 "    StartDate: '2101-01-12 12:00:00',\n"
20130515 "    EndDate: '2101-01-12 13:30:00',\n"
20130515 "    Title: 'My cool event',\n"
20130515 "    Notes: 'Some notes'\n"
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.EventMappings EventMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the field names match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings,\n'
20130515 '    rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '\n'
20130515 "rec.data[M.StartDate.name] = '2101-01-12 12:00:00';\n"
20130515 "rec.data[M.EndDate.name] = '2101-01-12 13:30:00';\n"
20130515 "rec.data[M.Title.name] = 'My cool event';\n"
20130515 "rec.data[M.Notes.name] = 'Some notes';\n"
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.EventMappings EventMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.EventMappings} for complete details and \n'
20130515 ' * examples of reconfiguring an EventRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated EventRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.EventMappings,\n'
20130515 '        proto = C.EventRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.EventRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar items used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s calendar store. If your model fields \n"
20130515 ' * are named differently you should update the <b>mapping</b> configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new calendar record instance are CalendarId and\n'
20130515 ' * Title.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord({\n'
20130515 '    CalendarId: 5,\n'
20130515 "    Title: 'My Holidays',\n"
20130515 "    Description: 'My personal holiday schedule',\n"
20130515 '    ColorId: 3\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.CalendarMappings CalendarMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the fields match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 '\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord();\n'
20130515 'rec.data[M.CalendarId.name] = 5;\n'
20130515 "rec.data[M.Title.name] = 'My Holidays';\n"
20130515 "rec.data[M.Description.name] = 'My personal holiday schedule';\n"
20130515 'rec.data[M.ColorId.name] = 3;\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.CalendarMappings CalendarMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.CalendarMappings} for complete details and \n'
20130515 ' * examples of reconfiguring a CalendarRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated CalendarRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.CalendarMappings,\n'
20130515 '        proto = C.CalendarRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.CalendarRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();/* @private\n'
20130515 ' * This is an internal helper class for the calendar views and should not be overridden.\n'
20130515 ' * It is responsible for the base event rendering logic underlying all views based on a \n'
20130515 ' * box-oriented layout that supports day spanning (MonthView, MultiWeekView, DayHeaderView).\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekEventRenderer = function(){\n'
20130515 '    \n'
20130515 '    var getEventRow = function(id, week, index){\n'
20130515 "        var indexOffset = 1; //skip row with date #'s\n"
20130515 "        var evtRow, wkRow = Ext.get(id+'-wk-'+week);\n"
20130515 '        if(wkRow){\n'
20130515 "            var table = wkRow.child('.ext-cal-evt-tbl', true);\n"
20130515 '            evtRow = table.tBodies[0].childNodes[index+indexOffset];\n'
20130515 '            if(!evtRow){\n'
20130515 "                evtRow = Ext.DomHelper.append(table.tBodies[0], '<tr></tr>');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return Ext.get(evtRow);\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        render: function(o){\n'
20130515 '            var w = 0, grid = o.eventGrid, \n'
20130515 '                dt = o.viewStart.clone(),\n'
20130515 '                eventTpl = o.tpl,\n'
20130515 '                max = o.maxEventsPerDay != undefined ? o.maxEventsPerDay : 999,\n'
20130515 '                weekCount = o.weekCount < 1 ? 6 : o.weekCount,\n'
20130515 '                dayCount = o.weekCount == 1 ? o.dayCount : 7;\n'
20130515 '            \n'
20130515 '            for(; w < weekCount; w++){\n'
20130515 '                var row, d = 0, wk = grid[w];\n'
20130515 '                var startOfWeek = dt.clone();\n'
20130515 '                var endOfWeek = startOfWeek.add(Date.DAY, dayCount).add(Date.MILLI, -1);\n'
20130515 '                \n'
20130515 '                for(; d < dayCount; d++){\n'
20130515 '                    if(wk && wk[d]){\n'
20130515 '                        var ev = emptyCells = skipped = 0, \n'
20130515 '                            day = wk[d], ct = day.length, evt;\n'
20130515 '                        \n'
20130515 '                        for(; ev < ct; ev++){\n'
20130515 '                            if(!day[ev]){\n'
20130515 '                                emptyCells++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            if(emptyCells > 0 && ev-emptyCells < max){\n'
20130515 '                                row = getEventRow(o.id, w, ev-emptyCells);\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+ct+'-day-'+dt.format('Ymd')\n"
20130515 '                                }\n'
20130515 '                                if(emptyCells > 1 && max-ev > emptyCells){\n'
20130515 '                                    cellCfg.rowspan = Math.min(emptyCells, max-ev);\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                                emptyCells = 0;\n'
20130515 '                            }\n'
20130515 '                            \n'
20130515 '                            if(ev >= max){\n'
20130515 '                                skipped++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            evt = day[ev];\n'
20130515 '                            \n'
20130515 '                            if(!evt.isSpan || evt.isSpanStart){ //skip non-starting span cells\n'
20130515 '                                var item = evt.data || evt.event.data;\n'
20130515 '                                item._weekIndex = w;\n'
20130515 '                                item._renderAsAllDay = item[Ext.ensible.cal.EventMappings.IsAllDay.name] || evt.isSpanStart;\n'
20130515 '                                item.spanLeft = item[Ext.ensible.cal.EventMappings.StartDate.name].getTime() < startOfWeek.getTime();\n'
20130515 '                                item.spanRight = item[Ext.ensible.cal.EventMappings.EndDate.name].getTime() > endOfWeek.getTime();\n'
20130515 "                                item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \n"
20130515 "                                    'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\n"
20130515 '                                        \n'
20130515 '                                var row = getEventRow(o.id, w, ev),\n'
20130515 '                                    cellCfg = {\n'
20130515 "                                        tag: 'td',\n"
20130515 "                                        cls: 'ext-cal-ev',\n"
20130515 '                                        cn : eventTpl.apply(o.templateDataFn(item))\n'
20130515 '                                    },\n'
20130515 '                                    diff = Ext.ensible.Date.diffDays(dt, item[Ext.ensible.cal.EventMappings.EndDate.name]) + 1,\n'
20130515 '                                    cspan = Math.min(diff, dayCount-d);\n'
20130515 '                                    \n'
20130515 '                                if(cspan > 1){\n'
20130515 '                                    cellCfg.colspan = cspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                        if(ev > max){\n'
20130515 '                            row = getEventRow(o.id, w, max);\n'
20130515 '                            Ext.DomHelper.append(row, {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev-more',\n"
20130515 "                                id: 'ext-cal-ev-more-'+dt.format('Ymd'),\n"
20130515 '                                cn: {\n'
20130515 "                                    tag: 'a',\n"
20130515 '                                    html: String.format(o.getMoreText(skipped), skipped)\n'
20130515 '                                }\n'
20130515 '                            });\n'
20130515 '                        }\n'
20130515 '                        if(ct < o.evtMaxCount[w]){\n'
20130515 '                            row = getEventRow(o.id, w, ct);\n'
20130515 '                            if(row){\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    //html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+(ct+1)+'-day-'+dt.format('Ymd')\n"
20130515 '                                };\n'
20130515 '                                var rowspan = o.evtMaxCount[w] - ct;\n'
20130515 '                                if(rowspan > 1){\n'
20130515 '                                    cellCfg.rowspan = rowspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                    }else{\n'
20130515 '                        row = getEventRow(o.id, w, 0);\n'
20130515 '                        if(row){\n'
20130515 '                            var cellCfg = {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev',\n"
20130515 "                                html: '&#160;',\n"
20130515 "                                id: o.id+'-empty-day-'+dt.format('Ymd')\n"
20130515 '                            };\n'
20130515 '                            if(o.evtMaxCount[w] > 1){\n'
20130515 '                                cellCfg.rowspan = o.evtMaxCount[w];\n'
20130515 '                            }\n'
20130515 '                            Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                        }\n'
20130515 '                    }\n'
20130515 '                    dt = dt.add(Date.DAY, 1);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarCombo\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing from the list of available calendars to assign an event to. You must\n'
20130515 ' * pass a populated calendar store as the store config or the combo will not work.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 "fieldLabel: 'Calendar',\n"
20130515 "triggerAction: 'all',\n"
20130515 "mode: 'local',\n"
20130515 'forceSelection: true,\n'
20130515 'width: 200\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 "    fieldLabel: 'Calendar',\n"
20130515 "    triggerAction: 'all',\n"
20130515 "    mode: 'local',\n"
20130515 '    forceSelection: true,\n'
20130515 '    selectOnFocus: true,\n'
20130515 '    width: 200,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 "    defaultCls: 'x-cal-default',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        var C = Ext.ensible.cal,\n'
20130515 '            M = C.CalendarMappings;\n'
20130515 '        \n'
20130515 '        C.CalendarCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.valueField = M.CalendarId.name;\n'
20130515 '        this.displayField = M.Title.name;\n'
20130515 '        \n'
20130515 '        this.tpl = this.tpl ||\n'
20130515 '              \'<tpl for="."><div class="x-combo-list-item x-cal-{\' + M.ColorId.name +\n'
20130515 '              \'}"><div class="ext-cal-picker-icon">&#160;</div>{\' + this.displayField + \'}</div></tpl>\';\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.wrap = this.el.up('.x-form-field-wrap');\n"
20130515 "        this.wrap.addClass('ext-calendar-picker');\n"
20130515 '        \n'
20130515 '        this.icon = Ext.DomHelper.append(this.wrap, {\n'
20130515 "            tag: 'div', cls: 'ext-cal-picker-icon ext-cal-picker-mainicon'\n"
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    assertValue  : function(){\n'
20130515 '        var val = this.getRawValue(),\n'
20130515 '            rec = this.findRecord(this.displayField, val);\n'
20130515 '\n'
20130515 '        if(!rec && this.forceSelection){\n'
20130515 '            if(val.length > 0 && val != this.emptyText){\n'
20130515 '                // Override this method simply to fix the original logic that was here.\n'
20130515 '                // The orignal method simply reverts the displayed text but the store remains\n'
20130515 '                // filtered with the invalid query, meaning it contains no records. This causes\n'
20130515 '                // problems with redisplaying the field -- much better to clear the filter and\n'
20130515 '                // reset the original value so everything works as expected.\n'
20130515 '                this.store.clearFilter();\n'
20130515 '                this.setValue(this.value);\n'
20130515 '                this.applyEmptyText();\n'
20130515 '            }else{\n'
20130515 '                this.clearValue();\n'
20130515 '            }\n'
20130515 '        }else{\n'
20130515 '            if(rec){\n'
20130515 '                if (val == rec.get(this.displayField) && this.value == rec.get(this.valueField)){\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '                val = rec.get(this.valueField || this.displayField);\n'
20130515 '            }\n'
20130515 '            this.setValue(val);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getStyleClass: function(calendarId){\n'
20130515 "        if(calendarId && calendarId !== ''){\n"
20130515 '            var rec = this.store.getById(calendarId);\n'
20130515 "            return 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    setValue: function(value) {\n'
20130515 '        this.wrap.removeClass(this.getStyleClass(this.getValue()));\n'
20130515 '        value = value || this.store.getAt(0).data[Ext.ensible.cal.CalendarMappings.CalendarId.name];\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.setValue.call(this, value);\n'
20130515 '        this.wrap.addClass(this.getStyleClass(value));\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcombo', Ext.ensible.cal.CalendarCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 160,\n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'pattern',\n"
20130515 "    valueField: 'id',\n"
20130515 '    \n'
20130515 '    recurrenceText: {\n'
20130515 "        none: 'Does not repeat',\n"
20130515 "        daily: 'Daily',\n"
20130515 "        weekly: 'Weekly',\n"
20130515 "        monthly: 'Monthly',\n"
20130515 "        yearly: 'Yearly'\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 "        this.addEvents('recurrencechange');\n"
20130515 '        \n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 "            fields: ['id', 'pattern'],\n"
20130515 '            idIndex: 0,\n'
20130515 '            data: [\n'
20130515 "                ['NONE', this.recurrenceText.none],\n"
20130515 "                ['DAILY', this.recurrenceText.daily],\n"
20130515 "                ['WEEKLY', this.recurrenceText.weekly],\n"
20130515 "                ['MONTHLY', this.recurrenceText.monthly],\n"
20130515 "                ['YEARLY', this.recurrenceText.yearly]\n"
20130515 '            ]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initValue : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initValue.call(this);\n'
20130515 '        if(this.value != undefined){\n'
20130515 "            this.fireEvent('recurrencechange', this.value);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        var old = this.value;\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.setValue.call(this, v);\n'
20130515 '        if(old != v){\n'
20130515 "            this.fireEvent('recurrencechange', v);\n"
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencecombo', Ext.ensible.cal.RecurrenceCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' * Rrule info: http://www.kanzaki.com/docs/ical/rrule.html\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceField = Ext.extend(Ext.form.Field, {\n'
20130515 '    \n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 '    startDate: new Date().clearTime(),\n'
20130515 '    enableFx: true,\n'
20130515 '    \n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.initComponent.call(this);\n'
20130515 '        if(!this.height){\n'
20130515 '            this.autoHeight = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.frequencyCombo = new Ext.ensible.cal.RecurrenceCombo({\n'
20130515 "                id: this.id+'-frequency',\n"
20130515 '                listeners: {\n'
20130515 "                    'recurrencechange': {\n"
20130515 '                        fn: this.showOptions,\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            if(this.fieldLabel){\n'
20130515 '                this.frequencyCombo.fieldLabel = this.fieldLabel;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.innerCt = new Ext.Container({\n'
20130515 "                cls: 'extensible-recur-inner-ct',\n"
20130515 '                items: []\n'
20130515 '            });\n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'extensible-recur-ct',\n"
20130515 '                renderTo: ct,\n'
20130515 '                items: [this.frequencyCombo, this.innerCt]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.innerCt.ownerCt = this.fieldCt;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll(this.initSubComponents());\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '//    afterRender : function(){\n'
20130515 '//        Ext.ensible.cal.RecurrenceField.superclass.afterRender.call(this);\n'
20130515 '//        this.setStartDate(this.startDate);\n'
20130515 '//    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initValue : function(){\n'
20130515 '        this.setStartDate(this.startDate);\n'
20130515 '        \n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else if(this.frequency !== undefined){\n'
20130515 "            this.setValue('FREQ='+this.frequency);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('NONE');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showOptions : function(o){\n'
20130515 "        var layoutChanged = false, unit = 'day';\n"
20130515 '        \n'
20130515 "        if(o != 'NONE'){\n"
20130515 '            this.hideSubPanels();\n'
20130515 '        }\n'
20130515 '        this.frequency = o;\n'
20130515 '        \n'
20130515 '        switch(o){\n'
20130515 "            case 'DAILY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'WEEKLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.weekly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'week';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'MONTHLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.monthly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'month';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'YEARLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.yearly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'year';\n"
20130515 '                break;\n'
20130515 '            \n'
20130515 '            default:\n'
20130515 '                // case NONE\n'
20130515 '                this.hideInnerCt();\n'
20130515 '                return; \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(layoutChanged){\n'
20130515 '            this.innerCt.doLayout();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.showInnerCt();\n'
20130515 '        this.repeatEvery.updateLabel(unit);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showSubPanel : function(p){\n'
20130515 '        if (p.rendered) {\n'
20130515 '            p.show();\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(this.repeatEvery.rendered){\n'
20130515 '                // make sure weekly/monthly options show in the middle\n'
20130515 '                p = this.innerCt.insert(1, p);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                p = this.innerCt.add(p);\n'
20130515 '            }\n'
20130515 '            p.show();\n'
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showInnerCt: function(){\n'
20130515 '        if(!this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideIn('t', {\n"
20130515 '                    duration: .3\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.show();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideInnerCt: function(){\n'
20130515 '        if(this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideOut('t', {\n"
20130515 '                    duration: .3,\n'
20130515 "                    easing: 'easeIn',\n"
20130515 '                    callback: this.hideSubPanels,\n'
20130515 '                    scope: this\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.hide();\n'
20130515 '                this.hideSubPanels();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setStartDate : function(dt){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setStartDate(dt);\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getValue : function(){\n'
20130515 '        if(!this.rendered) {\n'
20130515 '            return this.value;\n'
20130515 '        }\n'
20130515 "        if(this.frequency=='NONE'){\n"
20130515 "            return '';\n"
20130515 '        }\n'
20130515 "        var value = 'FREQ='+this.frequency;\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            if(p.isVisible()){\n'
20130515 '                value += p.getValue();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        return value;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        this.value = v;\n'
20130515 '        \n'
20130515 "        if(v == null || v == '' || v == 'NONE'){\n"
20130515 "            this.frequencyCombo.setValue('NONE');\n"
20130515 "            this.showOptions('NONE');\n"
20130515 '            return this;\n'
20130515 '        }\n'
20130515 "        var parts = v.split(';');\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setValue(parts);\n'
20130515 '        });\n'
20130515 '        Ext.each(parts, function(p){\n'
20130515 "            if(p.indexOf('FREQ') > -1){\n"
20130515 "                var freq = p.split('=')[1];\n"
20130515 '                this.frequencyCombo.setValue(freq);\n'
20130515 '                this.showOptions(freq);\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideSubPanels : function(){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.hide();\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initSubComponents : function(){\n'
20130515 '        Ext.ensible.cal.recurrenceBase = Ext.extend(Ext.Container, {\n'
20130515 "            fieldLabel: ' ',\n"
20130515 "            labelSeparator: '',\n"
20130515 '            hideLabel: true,\n'
20130515 "            layout: 'table',\n"
20130515 "            anchor: '100%',\n"
20130515 '            startDate: this.startDate,\n'
20130515 '\n'
20130515 '            //TODO: This is not I18N-able:\n'
20130515 '            getSuffix : function(n){\n'
20130515 '                if(!Ext.isNumber(n)){\n'
20130515 "                    return '';\n"
20130515 '                }\n'
20130515 '                switch (n) {\n'
20130515 '                    case 1:\n'
20130515 '                    case 21:\n'
20130515 '                    case 31:\n'
20130515 '                        return "st";\n'
20130515 '                    case 2:\n'
20130515 '                    case 22:\n'
20130515 '                        return "nd";\n'
20130515 '                    case 3:\n'
20130515 '                    case 23:\n'
20130515 '                        return "rd";\n'
20130515 '                    default:\n'
20130515 '                        return "th";\n'
20130515 '                }\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            //shared by monthly and yearly components:\n'
20130515 '            initNthCombo: function(cbo){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    dt = this.startDate,\n'
20130515 '                    store = cbo.getStore(),\n'
20130515 '                    last = dt.getLastDateOfMonth().getDate(),\n'
20130515 '                    dayNum = dt.getDate(),\n'
20130515 "                    nthDate = dt.format('jS') + ' day',\n"
20130515 "                    isYearly = this.id.indexOf('-yearly') > -1,\n"
20130515 "                    yearlyText = ' in ' + dt.format('F'),\n"
20130515 '                    nthDayNum, nthDay, lastDay, lastDate, idx, data, s;\n'
20130515 '                    \n'
20130515 '                nthDayNum = Math.ceil(dayNum / 7);\n'
20130515 "                nthDay = nthDayNum + this.getSuffix(nthDayNum) + dt.format(' l');\n"
20130515 '                if(isYearly){\n'
20130515 '                    nthDate += yearlyText;\n'
20130515 '                    nthDay += yearlyText;\n'
20130515 '                }\n'
20130515 '                data = [[nthDate],[nthDay]];\n'
20130515 '                \n'
20130515 "                s = isYearly ? yearlyText : '';\n"
20130515 '                if(last-dayNum < 7){\n'
20130515 "                    data.push(['last '+dt.format('l')+s]);\n"
20130515 '                }\n'
20130515 '                if(last == dayNum){\n'
20130515 "                    data.push(['last day'+s]);\n"
20130515 '                }\n'
20130515 '                \n'
20130515 "                idx = store.find('field1', cbo.getValue());\n"
20130515 '                store.removeAll();\n'
20130515 '                cbo.clearValue();\n'
20130515 '                store.loadData(data);\n'
20130515 '                \n'
20130515 '                if(idx > data.length-1){\n'
20130515 '                    idx = data.length-1;\n'
20130515 '                }\n'
20130515 '                cbo.setValue(store.getAt(idx > -1 ? idx : 0).data.field1);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            setValue:Ext.emptyFn\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.repeatEvery = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-every',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'Repeat every'\n"
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-every-num',\n"
20130515 '                value: 1,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                enableKeyEvents: true,\n'
20130515 '                listeners: {\n'
20130515 "                    'keyup': {\n"
20130515 '                        fn: function(){\n'
20130515 '                            this.repeatEvery.updateLabel();\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-every-label'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.updateLabel();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = Ext.getCmp(this.id+'-num').getValue();\n"
20130515 "                return v > 1 ? ';INTERVAL='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('INTERVAL') > -1){\n"
20130515 "                        var interval = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(interval);\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            updateLabel: function(type){\n'
20130515 '                if(this.rendered){\n'
20130515 "                    var s = Ext.getCmp(this.id+'-num').getValue() == 1 ? '' : 's';\n"
20130515 "                    this.type = type ? type.toLowerCase() : this.type || 'day';\n"
20130515 "                    var lbl = Ext.getCmp(this.id+'-label');\n"
20130515 '                    if(lbl.rendered){\n'
20130515 "                        lbl.update(this.type + s + ' beginning ' + this.startDate.format('l, F j'));\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            afterRender: function(){\n'
20130515 '                Ext.ensible.cal.recurrenceBase.superclass.afterRender.call(this);\n'
20130515 '                this.updateLabel();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.weekly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-weekly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 2\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on:'\n"
20130515 '            },{\n'
20130515 "                xtype: 'checkboxgroup',\n"
20130515 "                id: this.id+'-weekly-days',\n"
20130515 '                items: [\n'
20130515 "                    {boxLabel: 'Sun', name: 'SU', id: this.id+'-weekly-SU'},\n"
20130515 "                    {boxLabel: 'Mon', name: 'MO', id: this.id+'-weekly-MO'},\n"
20130515 "                    {boxLabel: 'Tue', name: 'TU', id: this.id+'-weekly-TU'},\n"
20130515 "                    {boxLabel: 'Wed', name: 'WE', id: this.id+'-weekly-WE'},\n"
20130515 "                    {boxLabel: 'Thu', name: 'TH', id: this.id+'-weekly-TH'},\n"
20130515 "                    {boxLabel: 'Fri', name: 'FR', id: this.id+'-weekly-FR'},\n"
20130515 "                    {boxLabel: 'Sat', name: 'SA', id: this.id+'-weekly-SA'}\n"
20130515 '                ]\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.selectToday();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            selectToday: function(){\n'
20130515 '                this.clearValue();\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                Ext.getCmp(this.id + '-days').setValue(day, true);\n"
20130515 '            },\n'
20130515 '            clearValue: function(){\n'
20130515 "                Ext.getCmp(this.id + '-days').setValue([false, false, false, false, false, false, false]);\n"
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = '', sel = Ext.getCmp(this.id+'-days').getValue();\n"
20130515 '                Ext.each(sel, function(chk){\n'
20130515 '                    if(v.length > 0){\n'
20130515 "                        v += ',';\n"
20130515 '                    }\n'
20130515 '                    v += chk.name;\n'
20130515 '                });\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                return v.length > 0 && v != day ? ';BYDAY='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                this.clearValue();\n'
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('BYDAY') > -1){\n"
20130515 "                        var days = p.split('=')[1].split(','),\n"
20130515 '                            vals = {};\n'
20130515 '                            \n'
20130515 '                        Ext.each(days, function(d){\n'
20130515 '                            vals[d] = true;\n'
20130515 '                        }, this);\n'
20130515 '                        \n'
20130515 "                        Ext.getCmp(this.id+'-days').setValue(vals);\n"
20130515 '                        return set = true;\n'
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                \n'
20130515 '                if(!set){\n'
20130515 '                    this.selectToday();\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.monthly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-monthly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-monthly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 150,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'of each month'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase();\n"
20130515 '                \n'
20130515 '                if (idx > -1) {\n'
20130515 '                    switch(idx){\n'
20130515 "                        case 0:  return ';BYMONTHDAY='+dt.format('j');\n"
20130515 "                        case 1:  return ';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return ';BYDAY=-1'+day;\n"
20130515 "                        default: return ';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.yearly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-yearly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-yearly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 170,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'each year'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase(),\n"
20130515 "                    byMonth = ';BYMONTH='+dt.format('n');\n"
20130515 '                \n'
20130515 '                if(idx > -1){\n'
20130515 '                    switch(idx){\n'
20130515 '                        case 0:  return byMonth;\n'
20130515 "                        case 1:  return byMonth+';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return byMonth+';BYDAY=-1'+day;\n"
20130515 "                        default: return byMonth+';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.until = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-until',\n"
20130515 "            untilDateFormat: 'Ymd\\\\T000000\\\\Z',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 5\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'and continuing'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-until-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 85,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 "                value: 'forever',\n"
20130515 "                store: ['forever', 'for', 'until'],\n"
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(cbo, rec){\n'
20130515 "                            var dt = Ext.getCmp(this.id+'-until-date');\n"
20130515 "                            if(rec.data.field1 == 'until'){\n"
20130515 '                                dt.show();\n'
20130515 "                                if (dt.getValue() == '') {\n"
20130515 '                                    dt.setValue(this.startDate.add(Date.DAY, 5));\n'
20130515 '                                    dt.setMinValue(this.startDate.clone().add(Date.DAY, 1));\n'
20130515 '                                }\n'
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 '                                dt.hide();\n'
20130515 '                            }\n'
20130515 "                            if(rec.data.field1 == 'for'){\n"
20130515 "                                Ext.getCmp(this.id+'-until-num').show();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').show();\n"
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 "                                Ext.getCmp(this.id+'-until-num').hide();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').hide();\n"
20130515 '                            }\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'datefield',\n"
20130515 "                id: this.id+'-until-date',\n"
20130515 '                showToday: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-until-num',\n"
20130515 '                value: 5,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-until-endlabel',\n"
20130515 "                text: 'occurrences',\n"
20130515 '                hidden: true\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var dt = Ext.getCmp(this.id+'-date');\n"
20130515 '                if(dt.isVisible()){\n'
20130515 "                    return ';UNTIL='+dt.getValue().format(this.untilDateFormat);\n"
20130515 '                }\n'
20130515 "                var ct = Ext.getCmp(this.id+'-num');\n"
20130515 '                if(ct.isVisible()){\n'
20130515 "                    return ';COUNT='+ct.getValue();\n"
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('COUNT') > -1){\n"
20130515 "                        var count = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('for');\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(count).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').show();\n"
20130515 '                    }\n'
20130515 "                    else if(p.indexOf('UNTIL') > -1){\n"
20130515 "                        var dt = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('until');\n"
20130515 "                        Ext.getCmp(this.id+'-date').setValue(Date.parseDate(dt, this.untilDateFormat)).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').hide();\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        return [this.repeatEvery, this.weekly, this.monthly, this.yearly, this.until];\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencefield', Ext.ensible.cal.RecurrenceField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DateRangeField\n'
20130515 ' * @extends Ext.form.Field\n'
20130515 ' * <p>A combination field that includes start and end dates and times, as well as an optional all-day checkbox.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DateRangeField = Ext.extend(Ext.form.Field, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} toText\n'
20130515 "     * The text to display in between the date/time fields (defaults to 'to')\n"
20130515 '     */\n'
20130515 "    toText: 'to',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} allDayText\n'
20130515 "     * The text to display as the label for the all day checkbox (defaults to 'All day')\n"
20130515 '     */\n'
20130515 "    allDayText: 'All day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String/Boolean} singleLine\n'
20130515 '     * This value can be set explicitly to <code>true</code> or <code>false</code> to force the field to render on\n'
20130515 "     * one line or two lines respectively.  The default value is <code>'auto'</code> which means that the field will\n"
20130515 "     * calculate its container's width and compare it to {@link singleLineMinWidth} to determine whether to render \n"
20130515 '     * on one line or two automatically.  Note that this only applies at render time -- once the field is rendered\n'
20130515 '     * the layout cannot be changed.\n'
20130515 '     */\n'
20130515 "    singleLine: 'auto',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} singleLineMinWidth\n'
20130515 "     * If {@link singleLine} is set to 'auto' it will use this value to determine whether to render the field on one\n"
20130515 '     * line or two. This value is the approximate minimum width required to render the field on a single line, so if\n'
20130515 "     * the field's container is narrower than this value it will automatically be rendered on two lines.\n"
20130515 '     */\n'
20130515 '    singleLineMinWidth: 490,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} dateFormat\n'
20130515 "     * The date display format used by the date fields (defaults to 'n/j/Y') \n"
20130515 '     */\n'
20130515 "    dateFormat: 'n/j/Y',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.startDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-start-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.startTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-start-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.endTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-end-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            })\n'
20130515 '            this.endDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-end-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.allDay = new Ext.form.Checkbox({\n'
20130515 "                id: this.id+'-allday',\n"
20130515 '                hidden: this.showTimes === false || this.showAllDay === false,\n'
20130515 '                boxLabel: this.allDayText,\n'
20130515 '                handler: function(chk, checked){\n'
20130515 '                    this.startTime.setVisible(!checked);\n'
20130515 '                    this.endTime.setVisible(!checked);\n'
20130515 '                },\n'
20130515 '                scope: this\n'
20130515 '            });\n'
20130515 '            this.toLabel = new Ext.form.Label({\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-to-label',\n"
20130515 '                text: this.toText\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            var singleLine = this.singleLine;\n'
20130515 "            if(singleLine == 'auto'){\n"
20130515 "                var el, w = this.ownerCt.getWidth() - this.ownerCt.getEl().getPadding('lr');\n"
20130515 "                if(el = this.ownerCt.getEl().child('.x-panel-body')){\n"
20130515 "                    w -= el.getPadding('lr');\n"
20130515 '                }\n'
20130515 "                if(el = this.ownerCt.getEl().child('.x-form-item-label')){\n"
20130515 "                    w -= el.getWidth() - el.getPadding('lr');\n"
20130515 '                }\n'
20130515 '                singleLine = w <= this.singleLineMinWidth ? false : true;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'ext-dt-range',\n"
20130515 '                renderTo: ct,\n'
20130515 "                layout: 'table',\n"
20130515 '                layoutConfig: {\n'
20130515 '                    columns: singleLine ? 6 : 3\n'
20130515 '                },\n'
20130515 '                defaults: {\n'
20130515 '                    hideParent: true\n'
20130515 '                },\n'
20130515 '                items:[\n'
20130515 '                    this.startDate,\n'
20130515 '                    this.startTime,\n'
20130515 '                    this.toLabel,\n'
20130515 '                    singleLine ? this.endTime : this.endDate,\n'
20130515 '                    singleLine ? this.endDate : this.endTime,\n'
20130515 '                    this.allDay\n'
20130515 '                ]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll([this.startDate, this.endDate, this.toLabel, this.startTime, this.endTime, this.allDay]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.onRender.call(this, ct, position);\n'
20130515 '        \n'
20130515 '        if(!singleLine){\n'
20130515 "            this.el.child('tr').addClass('ext-dt-range-row1');\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onFieldChange: function(type, startend){\n'
20130515 '        this.checkDates(type, startend);\n'
20130515 "        this.fireEvent('change', this, this.getValue());\n"
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    checkDates: function(type, startend){\n'
20130515 "        var startField = Ext.getCmp(this.id+'-start-'+type),\n"
20130515 "            endField = Ext.getCmp(this.id+'-end-'+type),\n"
20130515 "            startValue = this.getDT('start'),\n"
20130515 "            endValue = this.getDT('end');\n"
20130515 '\n'
20130515 '        if(startValue > endValue){\n'
20130515 "            if(startend=='start'){\n"
20130515 '                endField.setValue(startValue);\n'
20130515 '            }else{\n'
20130515 '                startField.setValue(endValue);\n'
20130515 "                this.checkDates(type, 'start');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        if(type=='date'){\n"
20130515 "            this.checkDates('time', startend);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns an array containing the following values in order:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The start date/time</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The end date/time</div></li>\n'
20130515 '     * <li><b><code>Boolean</code></b> : <div class="sub-desc">True if the dates are all-day, false \n'
20130515 '     * if the time values should be used</div></li><ul></div>\n'
20130515 '     * @return {Array} The array of return values\n'
20130515 '     */\n'
20130515 '    getValue: function(){\n'
20130515 '        return [\n'
20130515 "            this.getDT('start'), \n"
20130515 "            this.getDT('end'),\n"
20130515 '            this.allDay.getValue()\n'
20130515 '        ];\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private getValue helper\n'
20130515 '    getDT: function(startend){\n'
20130515 "        var time = this[startend+'Time'].getValue(),\n"
20130515 "            dt = this[startend+'Date'].getValue();\n"
20130515 '            \n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format(this[startend+'Date'].format);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            return null;\n'
20130515 '        };\n'
20130515 "        if(time != ''){\n"
20130515 "            return Date.parseDate(dt+' '+time, this[startend+'Date'].format+' '+this[startend+'Time'].format);\n"
20130515 '        }\n'
20130515 "        return Date.parseDate(dt, this[startend+'Date'].format);\n"
20130515 '        \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the values to use in the date range.\n'
20130515 '     * @param {Array/Date/Object} v The value(s) to set into the field. Valid types are as follows:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>Array</code></b> : <div class="sub-desc">An array containing, in order, a start date, end date and all-day flag.\n'
20130515 '     * This array should exactly match the return type as specified by {@link #getValue}.</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">A single Date object, which will be used for both the start and\n'
20130515 '     * end dates in the range.  The all-day flag will be defaulted to false.</div></li>\n'
20130515 '     * <li><b><code>Object</code></b> : <div class="sub-desc">An object containing properties for StartDate, EndDate and IsAllDay\n'
20130515 '     * as defined in {@link Ext.ensible.cal.EventMappings}.</div></li><ul></div>\n'
20130515 '     */\n'
20130515 '    setValue: function(v){\n'
20130515 '        if(Ext.isArray(v)){\n'
20130515 "            this.setDT(v[0], 'start');\n"
20130515 "            this.setDT(v[1], 'end');\n"
20130515 '            this.allDay.setValue(!!v[2]);\n'
20130515 '        }\n'
20130515 '        else if(Ext.isDate(v)){\n'
20130515 "            this.setDT(v, 'start');\n"
20130515 "            this.setDT(v, 'end');\n"
20130515 '            this.allDay.setValue(false);\n'
20130515 '        }\n'
20130515 '        else if(v[Ext.ensible.cal.EventMappings.StartDate.name]){ //object\n'
20130515 "            this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'start');\n"
20130515 "            if(!this.setDT(v[Ext.ensible.cal.EventMappings.EndDate.name], 'end')){\n"
20130515 "                this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'end');\n"
20130515 '            }\n'
20130515 '            this.allDay.setValue(!!v[Ext.ensible.cal.EventMappings.IsAllDay.name]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private setValue helper\n'
20130515 '    setDT: function(dt, startend){\n'
20130515 '        if(dt && Ext.isDate(dt)){\n'
20130515 "            this[startend+'Date'].setValue(dt);\n"
20130515 "            this[startend+'Time'].setValue(dt.format(this[startend+'Time'].format));\n"
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    isDirty: function(){\n'
20130515 '        var dirty = false;\n'
20130515 '        if(this.rendered && !this.disabled) {\n'
20130515 '            this.items.each(function(item){\n'
20130515 '                if (item.isDirty()) {\n'
20130515 '                    dirty = true;\n'
20130515 '                    return false;\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDisable : function(){\n'
20130515 "        this.delegateFn('disable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEnable : function(){\n'
20130515 "        this.delegateFn('enable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    reset : function(){\n'
20130515 "        this.delegateFn('reset');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    delegateFn : function(fn){\n'
20130515 '        this.items.each(function(item){\n'
20130515 '            if (item[fn]) {\n'
20130515 '                item[fn]();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    beforeDestroy: function(){\n'
20130515 '        Ext.destroy(this.fieldCt);\n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.beforeDestroy.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @method getRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    getRawValue : Ext.emptyFn,\n'
20130515 '    /**\n'
20130515 '     * @method setRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    setRawValue : Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daterangefield', Ext.ensible.cal.DateRangeField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ReminderField\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing a reminder setting for an event.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 'width: 200,\n'
20130515 "fieldLabel: 'Reminder',\n"
20130515 "mode: 'local',\n"
20130515 "triggerAction: 'all',\n"
20130515 'forceSelection: true,\n'
20130515 "displayField: 'desc',\n"
20130515 "valueField: 'value',\n"
20130515 "noneText: 'None',\n"
20130515 "atStartTimeText: 'At start time',\n"
20130515 "reminderValueFormat: '{0} {1} before start'\n"
20130515 '</code></pre>\n'
20130515 ' * <p>To customize the descriptions in the dropdown list override the following methods: \n'
20130515 ' * {@link #getMinutesText}, {@link #getHoursText}, {@link #getDaysText} and {@link #getWeeksText}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ReminderField = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 200,\n'
20130515 "    fieldLabel: 'Reminder',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'desc',\n"
20130515 "    valueField: 'value',\n"
20130515 "    noneText: 'None',\n"
20130515 "    atStartTimeText: 'At start time',\n"
20130515 "    reminderValueFormat: '{0} {1} before start',\n"
20130515 '    \n'
20130515 '    // the following are all deprecated in favor of the corresponding get* template methods.\n'
20130515 '    // they are still here only for backwards-compatibility and will be removed in a future release.\n'
20130515 "    minutesText: 'minutes',\n"
20130515 "    hourText: 'hour',\n"
20130515 "    hoursText: 'hours',\n"
20130515 "    dayText: 'day',\n"
20130515 "    daysText: 'days',\n"
20130515 "    weekText: 'week',\n"
20130515 "    weeksText: 'weeks',\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the list of reminder values used as the contents of the combo list. This method is provided so that\n'
20130515 '     * the value list can be easily overridden as needed.\n'
20130515 '     * @return {Array} A 2-dimensional array of type [{String}, {String}] which contains the value and description\n'
20130515 '     * respectively of each item in the combo list. By default the value is the number of minutes for the selected \n'
20130515 "     * time value (e.g., value 120 == '2 hours') with empty string for no value, but these can be set to anything.\n"
20130515 '     */\n'
20130515 '    getValueList: function(){\n'
20130515 '        var me = this,\n'
20130515 '            fmt = me.reminderValueFormat,\n'
20130515 '            stringFormat = String.format;\n'
20130515 '            \n'
20130515 '        return [\n'
20130515 "            ['', me.noneText],\n"
20130515 "            ['0', me.atStartTimeText],\n"
20130515 "            ['5', stringFormat(fmt, '5', me.getMinutesText(5))],\n"
20130515 "            ['15', stringFormat(fmt, '15', me.getMinutesText(15))],\n"
20130515 "            ['30', stringFormat(fmt, '30', me.getMinutesText(30))],\n"
20130515 "            ['60', stringFormat(fmt, '1', me.getHoursText(1))],\n"
20130515 "            ['90', stringFormat(fmt, '1.5', me.getHoursText(1.5))],\n"
20130515 "            ['120', stringFormat(fmt, '2', me.getHoursText(2))],\n"
20130515 "            ['180', stringFormat(fmt, '3', me.getHoursText(3))],\n"
20130515 "            ['360', stringFormat(fmt, '6', me.getHoursText(6))],\n"
20130515 "            ['720', stringFormat(fmt, '12', me.getHoursText(12))],\n"
20130515 "            ['1440', stringFormat(fmt, '1', me.getDaysText(1))],\n"
20130515 "            ['2880', stringFormat(fmt, '2', me.getDaysText(2))],\n"
20130515 "            ['4320', stringFormat(fmt, '3', me.getDaysText(3))],\n"
20130515 "            ['5760', stringFormat(fmt, '4', me.getDaysText(4))],\n"
20130515 "            ['7200', stringFormat(fmt, '5', me.getDaysText(5))],\n"
20130515 "            ['10080', stringFormat(fmt, '1', me.getWeeksText(1))],\n"
20130515 "            ['20160', stringFormat(fmt, '2', me.getWeeksText(2))]\n"
20130515 '        ]\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of minutes\n'
20130515 "     * prior to the due time (defaults to 'minute' when the passed value === 1, else 'minutes').\n"
20130515 '     * @param {Number} numMinutes The number of minutes prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getMinutesText: function(numMinutes){\n'
20130515 '        return numMinutes === 1 ? this.minuteText : this.minutesText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of hours\n'
20130515 "     * prior to the due time (defaults to 'hour' when the passed value === 1, else 'hours').\n"
20130515 '     * @param {Number} numHours The number of hours prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getHoursText: function(numHours){\n'
20130515 '        return numHours === 1 ? this.hourText : this.hoursText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of days\n'
20130515 "     * prior to the due time (defaults to 'day' when the passed value === 1, else 'days').\n"
20130515 '     * @param {Number} numDays The number of days prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getDaysText: function(numDays){\n'
20130515 '        return numDays === 1 ? this.dayText : this.daysText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of weeks\n'
20130515 "     * prior to the due time (defaults to 'week' when the passed value === 1, else 'weeks').\n"
20130515 '     * @param {Number} numWeeks The number of weeks prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getWeeksText: function(numWeeks){\n'
20130515 '        return numWeeks === 1 ? this.weekText : this.weeksText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ReminderField.superclass.initComponent.call(this);\n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 '            fields: [this.valueField, this.displayField],\n'
20130515 '            idIndex: 0,\n'
20130515 '            data: this.getValueList()\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    initValue : function(){\n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.reminderfield', Ext.ensible.cal.ReminderField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ColorPalette\n'
20130515 ' * @extends Ext.ColorPalette\n'
20130515 ' * Simple color palette class for choosing colors specifically for calendars. This is a lightly modified version\n'
20130515 ' * of the default Ext ColorPalette that is based on calendar ids rather than hex color codes so that the colors\n'
20130515 ' * can be easily modified via CSS and automatically applied to calendars. The specific colors used by default are\n'
20130515 ' * also chosen to provide good color contrast when displayed in calendars.\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * Create a new ColorPalette\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype extensible.calendarcolorpalette\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ColorPalette = Ext.extend(Ext.ColorPalette, {\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    colorCount: 32,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Function} handler\n'
20130515 '     * Optional. A function that will handle the select event of this color palette.\n'
20130515 '     * The handler is passed the following parameters:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><code>palette</code> : ColorPalette<div class="sub-desc">The {@link #palette Ext.ensible.cal.ColorPalette} instance.</div></li>\n'
20130515 '     * <li><code>colorId</code> : String<div class="sub-desc">The id that identifies the selected color and relates it to a calendar.</div></li>\n'
20130515 '     * </ul></div>\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ColorPalette.superclass.initComponent.call(this);\n'
20130515 "        this.addClass('x-calendar-palette');\n"
20130515 '        this.tpl = new Ext.XTemplate(\'<tpl for="."><a class="x-unselectable x-cal-color" id="\' + this.id +\n'
20130515 '            \'-color-{.}" href="#" hidefocus="on"><em><span class="x-cal-{.}">&#160;</span></em></a></tpl>\');\n'
20130515 '            \n'
20130515 '        if(this.handler){\n'
20130515 "            this.on('select', this.handler, this.scope || this);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.colors = [];\n'
20130515 '        for(var i=1; i<=this.colorCount; i++){\n'
20130515 '            this.colors.push(i);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleClick : function(e, t){\n'
20130515 '        e.preventDefault();\n'
20130515 "        var el = e.getTarget('.x-cal-color', 3, true);\n"
20130515 '        if(el){\n'
20130515 "            var id = el.id.split('-color-')[1];\n"
20130515 '            this.select(id);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Selects the specified color in the palette (fires the {@link #select} event)\n'
20130515 '     * @param {Number} colorId The id that identifies the selected color and relates it to a calendar\n'
20130515 '     * @param {Boolean} suppressEvent (optional) True to stop the select event from firing. Defaults to <tt>false</tt>.\n'
20130515 '     */\n'
20130515 '    select : function(colorId, suppressEvent){\n'
20130515 '        if(colorId != this.value){\n'
20130515 '            if(this.value){\n'
20130515 "                Ext.fly(this.id+'-color-'+this.value).removeClass('x-color-palette-sel');\n"
20130515 '            }\n'
20130515 "            Ext.get(this.id+'-color-'+colorId).addClass('x-color-palette-sel');\n"
20130515 '            this.value = colorId;\n'
20130515 '            \n'
20130515 '            if(suppressEvent !== true){\n'
20130515 "                this.fireEvent('select', this, colorId);\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcolorpalette', Ext.ensible.cal.ColorPalette);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarListMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * <p>A menu containing a {@link Ext.ensible.cal.ColorPalette palette} for choosing calendar colors, \n'
20130515 ' * as well as other calendar-specific options.</p>\n'
20130515 ' * @xtype extensible.calendarlistmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarListMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} cls\n'
20130515 "     * An optional extra CSS class that will be added to this component's Element (defaults to 'x-calendar-list-menu'). \n"
20130515 '     * This can be useful for adding customized styles to the component or any of its children using standard CSS rules.\n'
20130515 '     */\n'
20130515 "    cls : 'x-calendar-list-menu',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} displayOnlyThisCalendarText\n'
20130515 "     * The text to display for the 'Display only this calendar' option in the menu.\n"
20130515 '     */\n'
20130515 "    displayOnlyThisCalendarText: 'Display only this calendar',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} calendarId\n'
20130515 '     * The id of the calendar to be associated with this menu. This calendarId will be passed\n'
20130515 '     * back with any events from this menu to identify the calendar to be acted upon. The calendar\n'
20130515 '     * id can also be changed at any time after creation by calling {@link setCalendar}.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @property palette\n'
20130515 '     * @type ColorPalette\n'
20130515 '     * The {@link Ext.ensible.cal.ColorPalette ColorPalette} instance for this CalendarListMenu\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 "            'showcalendar',\n"
20130515 "            'hidecalendar',\n"
20130515 "            'radiocalendar',\n"
20130515 "            'colorchange'\n"
20130515 '        );\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.displayOnlyThisCalendarText,\n'
20130515 "                iconCls: 'extensible-cal-icon-cal-show',\n"
20130515 '                handler: this.handleRadioCalendarClick.createDelegate(this)\n'
20130515 "            }, '-', {\n"
20130515 "                xtype: 'extensible.calendarcolorpalette',\n"
20130515 '                handler: this.handleColorSelect.createDelegate(this)\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.afterRender.call(this);\n'
20130515 "        this.palette = this.findByType('extensible.calendarcolorpalette')[0];\n"
20130515 '        \n'
20130515 '        if(this.colorId){\n'
20130515 '            this.palette.select(this.colorId, true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendarClick: function(e, t){\n'
20130515 "        this.fireEvent('radiocalendar', this, this.calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorSelect: function(cp, selColorId){\n'
20130515 "        this.fireEvent('colorchange', this, this.calendarId, selColorId, this.colorId);\n"
20130515 '        this.colorId = selColorId;\n'
20130515 '        this.menuHide();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the calendar id and color id to be associated with this menu. This should be called each time the\n'
20130515 '     * menu is shown relative to a new calendar.\n'
20130515 '     * @param {Number} calendarId The id of the calendar to be associated\n'
20130515 '     * @param {Number} colorId The id of the color to be pre-selected in the color palette\n'
20130515 '     * @return {Ext.ensible.cal.CalendarListMenu} this\n'
20130515 '     */\n'
20130515 '    setCalendar: function(id, cid){\n'
20130515 '        this.calendarId = id;\n'
20130515 '        this.colorId = cid;\n'
20130515 '        \n'
20130515 '        if(this.rendered){\n'
20130515 '            this.palette.select(cid, true);\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    menuHide : function(){\n'
20130515 '        if(this.hideOnClick){\n'
20130515 '            this.hide(true);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlistmenu', Ext.ensible.cal.CalendarListMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.EventContextMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * The context menu displayed for calendar events in any {@link Ext.ensible.cal.CalendarView CalendarView} subclass. \n'
20130515 ' * @xtype extensible.eventcontextmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventContextMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} editDetailsText\n'
20130515 "     * The text to display for the 'Edit Details' option in the menu.\n"
20130515 '     */\n'
20130515 "    editDetailsText: 'Edit Details',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} deleteText\n'
20130515 "     * The text to display for the 'Delete' option in the menu.\n"
20130515 '     */\n'
20130515 "    deleteText: 'Delete',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} moveToText\n'
20130515 "     * The text to display for the 'Move to...' option in the menu.\n"
20130515 '     */\n'
20130515 "    moveToText: 'Move to...',\n"
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the event details\n'
20130515 '             * (by default, in an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should \n'
20130515 '             * transfer the current event record to the appropriate instance of the detailed form by showing\n'
20130515 '             * the form and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'editdetails',\n"
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after the user selectes the option to delete an event. Note that this menu does not actually\n'
20130515 '             * delete the event from the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the deletion and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be deleted\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'eventdelete',\n"
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after the user selects a date in the calendar picker under the "move event" menu option. Note that this menu does not actually\n'
20130515 '             * update the event in the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the move action and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be moved\n'
20130515 '             * @param {Date} dt The new start date for the event (the existing event start time will be preserved)\n'
20130515 '             */\n'
20130515 "            'eventmove'\n"
20130515 '        );\n'
20130515 '        this.buildMenu();\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Overrideable method intended for customizing the menu items. This should only to be used for overriding \n'
20130515 '     * or called from a subclass and should not be called directly from application code.\n'
20130515 '     */\n'
20130515 '    buildMenu: function(){\n'
20130515 '        if(this.rendered){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.dateMenu = new Ext.menu.DateMenu({\n'
20130515 '            scope: this,\n'
20130515 '            handler: function(dp, dt){\n'
20130515 '                dt = Ext.ensible.Date.copyTime(this.rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt);\n'
20130515 "                this.fireEvent('eventmove', this, this.rec, dt);\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.editDetailsText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-edit',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('editdetails', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 '            },{\n'
20130515 '                text: this.deleteText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-del',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('eventdelete', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 "            },'-',{\n"
20130515 '                text: this.moveToText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-move',\n"
20130515 '                menu: this.dateMenu\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the specified event at the given XY position. \n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event\n'
20130515 '     * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '     * @param {Array} xy The X & Y [x, y] values for the position at which to show the menu (coordinates are page-based) \n'
20130515 '     */\n'
20130515 '    showForEvent: function(rec, el, xy){\n'
20130515 '        this.rec = rec;\n'
20130515 '        this.ctxEl = el;\n'
20130515 '        this.dateMenu.picker.setValue(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        this.showAt(xy);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onHide : function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.onHide.call(this);\n'
20130515 '        delete this.ctxEl;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventcontextmenu', Ext.ensible.cal.EventContextMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarList\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is a {@link Ext.Panel panel} subclass that renders a list of available calendars\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarList = Ext.extend(Ext.Panel, {\n'
20130515 "    title: 'Calendars',\n"
20130515 '    collapsible: true,\n'
20130515 '    autoHeight: true,\n'
20130515 "    layout: 'fit',\n"
20130515 "    menuSelector: 'em',\n"
20130515 "    width: 100, // this should be overridden by this container's layout\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} store\n'
20130515 '     * A {@link Ext.data.Store store} containing records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * This is a required config and is used to populate the calendar list.  The CalendarList widget will also listen for events from\n'
20130515 '     * the store and automatically refresh iteself in the event that the underlying calendar records in the store change.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 "        this.addClass('x-calendar-list');\n"
20130515 '        Ext.ensible.cal.CalendarList.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(ct, position){\n'
20130515 '        Ext.ensible.cal.CalendarList.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        if(this.store){\n'
20130515 '            this.setStore(this.store, true);\n'
20130515 '        }\n'
20130515 '        this.refresh();\n'
20130515 '        \n'
20130515 "        this.body.on('click', this.onClick, this);\n"
20130515 "        this.body.on('mouseover', this.onMouseOver, this, {delegate: 'li'});\n"
20130515 "        this.body.on('mouseout', this.onMouseOut, this, {delegate: 'li'});\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getListTemplate : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evr {colorCls} {hiddenCls}">{title}<em>&#160;</em></li>\',\n'
20130515 "                    '</tpl></ul>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evo {colorCls} {hiddenCls}">\',\n'
20130515 '                            \'<div class="ext-cal-evm">\',\n'
20130515 '                                \'<div class="ext-cal-evi">{title}<em>&#160;</em></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</li>',\n"
20130515 "                    '</tpl></ul>'\n"
20130515 '                );\n'
20130515 '            this.tpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.tpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the store used to display the available calendars. It should contain \n'
20130515 '     * records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        if(!initial && this.store){\n'
20130515 '            this.store.un("load", this.refresh, this);\n'
20130515 '            this.store.un("add", this.refresh, this);\n'
20130515 '            this.store.un("remove", this.refresh, this);\n'
20130515 '            this.store.un("update", this.onUpdate, this);\n'
20130515 '            this.store.un("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("load", this.refresh, this);\n'
20130515 '            store.on("add", this.refresh, this);\n'
20130515 '            store.on("remove", this.refresh, this);\n'
20130515 '            store.on("update", this.onUpdate, this);\n'
20130515 '            store.on("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onUpdate : function(ds, rec, operation){\n'
20130515 '        // ignore EDIT notifications, only refresh after a commit\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.refresh();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Refreshes the calendar list so that it displays based on the most current state of\n'
20130515 '     * the underlying calendar store. Usually this method does not need to be called directly\n'
20130515 "     * as the control is automatically bound to the store's events, but it is available in the\n"
20130515 '     * event that a manual refresh is ever needed.\n'
20130515 '     */\n'
20130515 '    refresh: function(){\n'
20130515 '        if(this.skipRefresh){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        var data = [], i = 0, o = null,\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            o = {\n'
20130515 "                cmpId: this.id + '__' + recs[i].data[CM.CalendarId.name],\n"
20130515 '                title: recs[i].data[CM.Title.name],\n'
20130515 '                colorCls: this.getColorCls(recs[i].data[CM.ColorId.name])\n'
20130515 '            };\n'
20130515 '            if(recs[i].data[CM.IsHidden.name] === true){\n'
20130515 "                o.hiddenCls = 'ext-cal-hidden';\n"
20130515 '            }\n'
20130515 '            data[data.length] = o;\n'
20130515 '        }\n'
20130515 '        this.getListTemplate().overwrite(this.body, data);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getColorCls: function(colorId){\n'
20130515 "        return 'x-cal-'+colorId+'-ad';\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    toggleCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id),\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            isHidden = rec.data[CM.IsHidden.name]; \n'
20130515 '        \n'
20130515 '        rec.set([CM.IsHidden.name], !isHidden);\n'
20130515 '        \n'
20130515 '        if(commit !== false){\n'
20130515 '            rec.commit();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    hideCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] !== true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    radioCalendar: function(id){\n'
20130515 '        var i = 0, recId,\n'
20130515 '            calendarId = Ext.ensible.cal.CalendarMappings.CalendarId.name,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            recId = recs[i].data[calendarId];\n'
20130515 '            // make a truthy check so that either numeric or string ids can match\n'
20130515 '            if(recId == id){\n'
20130515 '                this.showCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.hideCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // store.commitChanges() just loops over each modified record and calls rec.commit(),\n'
20130515 '        // which in turns fires an update event that would cause a full refresh for each record.\n'
20130515 '        // To avoid this we simply set a flag and make sure we only refresh once per commit set.\n'
20130515 '        this.skipRefresh = true;\n'
20130515 '        this.store.commitChanges();\n'
20130515 '        delete this.skipRefresh;\n'
20130515 '        this.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOver: function(e, t){\n'
20130515 "        Ext.fly(t).addClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOut: function(e, t){\n'
20130515 "        Ext.fly(t).removeClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarId: function(el){\n'
20130515 "        return el.id.split('__')[1];\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarItemEl: function(calendarId){\n'
20130515 "        return Ext.get(this.id+'__'+calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        var el;\n'
20130515 '        if(el = e.getTarget(this.menuSelector, 3, true)){\n'
20130515 '            this.showEventMenu(el, e.getXY());\n'
20130515 '        }\n'
20130515 "        else if(el = e.getTarget('li', 3, true)){\n"
20130515 '            this.toggleCalendar(this.getCalendarId(el));\n'
20130515 '        } \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorChange: function(menu, id, colorId, origColorId){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name] = colorId;\n'
20130515 '        rec.commit();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendar: function(menu, id){\n'
20130515 '        this.radioCalendar(id);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showEventMenu : function(el, xy){\n'
20130515 "        var id = this.getCalendarId(el.parent('li')),\n"
20130515 '            rec = this.store.getById(id),\n'
20130515 '            colorId = rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n'
20130515 '            \n'
20130515 '        if(!this.menu){\n'
20130515 '            this.menu = new Ext.ensible.cal.CalendarListMenu();\n'
20130515 "            this.menu.on('colorchange', this.handleColorChange, this);\n"
20130515 "            this.menu.on('radiocalendar', this.handleRadioCalendar, this);\n"
20130515 '        }\n'
20130515 '        this.menu.setCalendar(id, colorId);\n'
20130515 '        this.menu.showAt(xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlist', Ext.ensible.cal.CalendarList);/**\n"
20130515 ' * @class Ext.ensible.cal.EventEditForm\n'
20130515 ' * @extends Ext.form.FormPanel\n'
20130515 ' * <p>A custom form used for detailed editing of events.</p>\n'
20130515 ' * <p>This is pretty much a standard form that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. It is also configured to automatically bind records of type {@link Ext.ensible.cal.EventRecord}\n'
20130515 ' * to and from the form.</p>\n'
20130515 ' * <p>This form also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 'labelWidth: 65,\n'
20130515 'labelWidthRightCol: 65,\n'
20130515 'colWidthLeft: .6,\n'
20130515 'colWidthRight: .4,\n'
20130515 "title: 'Event Form',\n"
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "reminderLabelText: 'Reminder',\n"
20130515 "notesLabelText: 'Notes',\n"
20130515 "locationLabelText: 'Location',\n"
20130515 "webLinkLabelText: 'Web Link',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "repeatsLabelText: 'Repeats',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 'border: false,\n'
20130515 "buttonAlign: 'center',\n"
20130515 'autoHeight: true // to allow for the notes field to autogrow\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditForm = Ext.extend(Ext.form.FormPanel, {\n'
20130515 '    labelWidth: 65,\n'
20130515 '    labelWidthRightCol: 65,\n'
20130515 '    colWidthLeft: .6,\n'
20130515 '    colWidthRight: .4,\n'
20130515 "    title: 'Event Form',\n"
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    reminderLabelText: 'Reminder',\n"
20130515 "    notesLabelText: 'Notes',\n"
20130515 "    locationLabelText: 'Location',\n"
20130515 "    webLinkLabelText: 'Web Link',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    repeatsLabelText: 'Repeats',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 '    border: false,\n'
20130515 "    buttonAlign: 'center',\n"
20130515 '    autoHeight: true, // to allow for the notes field to autogrow\n'
20130515 '    \n'
20130515 '    /* // not currently supported\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false,\n'
20130515 '    \n'
20130515 '    // private properties:\n'
20130515 "    layout: 'column',\n"
20130515 "    cls: 'ext-evt-edit-form',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true\n'
20130515 '        });\n'
20130515 '                \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 "            anchor: '90%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 '            fieldLabel: this.datesLabelText,\n'
20130515 '            singleLine: false,\n'
20130515 "            anchor: '90%',\n"
20130515 '            listeners: {\n'
20130515 "                'change': this.onDateChange.createDelegate(this)\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        this.reminderField = new Ext.ensible.cal.ReminderField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Reminder.name,\n'
20130515 '            fieldLabel: this.reminderLabelText\n'
20130515 '        });\n'
20130515 '        this.notesField = new Ext.form.TextArea({\n'
20130515 '            fieldLabel: this.notesLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Notes.name,\n'
20130515 '            grow: true,\n'
20130515 '            growMax: 150,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.locationField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.locationLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Location.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.urlField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.webLinkLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Url.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        \n'
20130515 '        var leftFields = [this.titleField, this.dateRangeField, this.reminderField], \n'
20130515 '            rightFields = [this.notesField, this.locationField, this.urlField];\n'
20130515 '            \n'
20130515 '        if(this.enableRecurrence){\n'
20130515 '            this.recurrenceField = new Ext.ensible.cal.RecurrenceField({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.RRule.name,\n'
20130515 '                fieldLabel: this.repeatsLabelText,\n'
20130515 "                anchor: '100%'\n"
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.recurrenceField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                store: this.calendarStore,\n'
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name\n'
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.calendarField);\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.items = [{\n'
20130515 "            id: this.id+'-left-col',\n"
20130515 '            columnWidth: this.colWidthLeft,\n'
20130515 "            layout: 'form',\n"
20130515 '            border: false,\n'
20130515 '            items: leftFields\n'
20130515 '        },{\n'
20130515 "            id: this.id+'-right-col',\n"
20130515 '            columnWidth: this.colWidthRight,\n'
20130515 "            layout: 'form',\n"
20130515 '            labelWidth: this.labelWidthRightCol || this.labelWidth,\n'
20130515 '            border: false,\n'
20130515 '            items: rightFields\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        this.fbar = [{\n'
20130515 '            text:this.saveButtonText, scope: this, handler: this.onSave\n'
20130515 '        },{\n'
20130515 "            cls:'ext-del-btn', text:this.deleteButtonText, scope:this, handler:this.onDelete\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, scope: this, handler: this.onCancel\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditForm.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDateChange: function(dateRangeField, val){\n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(val[0]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    loadRecord: function(rec){\n'
20130515 '        this.form.reset().loadRecord.apply(this.form, arguments);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        \n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        }\n'
20130515 '        if(this.calendarStore){\n'
20130515 "            this.form.setValues({'calendar': rec.data[Ext.ensible.cal.EventMappings.CalendarId.name]});\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        //this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '        if(rec.phantom){\n'
20130515 '            //rec.markDirty();\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(false);\n"
20130515 '        }\n'
20130515 '        else {\n'
20130515 '            this.setTitle(this.titleTextEdit);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(true);\n"
20130515 '        }\n'
20130515 '        this.titleField.focus();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    updateRecord: function(){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '        \n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = this.form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        //delete rec.store; // make sure the record does not try to autosave\n'
20130515 '        rec.endEdit();\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '        this.cleanup(true);\n'
20130515 "        this.fireEvent('eventcancel', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '        \n'
20130515 '        if(this.form.isDirty()){\n'
20130515 '            this.form.reset();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        if(!this.updateRecord()){\n'
20130515 '            this.onCancel();\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        this.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "        this.fireEvent('eventdelete', this, this.activeRecord);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditform', Ext.ensible.cal.EventEditForm);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventEditWindow\n'
20130515 ' * @extends Ext.Window\n'
20130515 ' * <p>A custom window containing a basic edit form used for quick editing of events.</p>\n'
20130515 ' * <p>This window also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 'width: 600,\n'
20130515 'border: true,\n'
20130515 "closeAction: 'hide',\n"
20130515 'modal: false,\n'
20130515 'resizable: false,\n'
20130515 "buttonAlign: 'left',\n"
20130515 'labelWidth: 65,\n'
20130515 "detailsLinkText: 'Edit Details...',\n"
20130515 "savingMessage: 'Saving changes...',\n"
20130515 "deletingMessage: 'Deleting event...',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "bodyStyle: 'padding:5px 10px;',\n"
20130515 'enableEditDetails: true\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditWindow = Ext.extend(Ext.Window, {\n'
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 '    width: 600,\n'
20130515 '    border: true,\n'
20130515 "    closeAction: 'hide',\n"
20130515 '    modal: false,\n'
20130515 '    resizable: false,\n'
20130515 "    buttonAlign: 'left',\n"
20130515 '    labelWidth: 65,\n'
20130515 "    detailsLinkText: 'Edit Details...',\n"
20130515 "    savingMessage: 'Saving changes...',\n"
20130515 "    deletingMessage: 'Deleting event...',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "    bodyStyle: 'padding:5px 10px;',\n"
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.fbar = ['->',{\n"
20130515 '            text:this.saveButtonText, disabled:false, handler:this.onSave, scope:this\n'
20130515 '        },{\n'
20130515 "            id:this.id+'-delete-btn', text:this.deleteButtonText, disabled:false, handler:this.onDelete, scope:this, hideMode:'offsets'\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, disabled:false, handler:this.onCancel, scope:this\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        if(this.enableEditDetails !== false){\n'
20130515 '            this.fbar.unshift({\n'
20130515 '                xtype: \'tbtext\', text: \'<a href="#" class="\'+this.editDetailsLinkClass+\'">\'+this.detailsLinkText+\'</a>\'\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender : function(ct, position){\n'
20130515 "        this.deleteBtn = Ext.getCmp(this.id+'-delete-btn');\n"
20130515 '        \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 "            anchor: '95%',\n"
20130515 '            fieldLabel: this.datesLabelText\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var items = [this.titleField, this.dateRangeField];\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name,\n'
20130515 "                anchor: '100%',\n"
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                store: this.calendarStore\n'
20130515 '            });\n'
20130515 '            items.push(this.calendarField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.formPanel = new Ext.FormPanel({\n'
20130515 '            labelWidth: this.labelWidth,\n'
20130515 '            frame: false,\n'
20130515 '            bodyBorder: false,\n'
20130515 '            border: false,\n'
20130515 '            items: items\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.add(this.formPanel);\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.afterRender.call(this);\n'
20130515 '\t\t\n'
20130515 "\t\tthis.el.addClass('ext-cal-event-win');\n"
20130515 "        this.el.select('.'+this.editDetailsLinkClass).on('click', this.onEditDetailsClick, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetailsClick: function(e){\n'
20130515 '        e.stopEvent();\n'
20130515 '        this.updateRecord(true);\n'
20130515 "        this.fireEvent('editdetails', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\t\n'
20130515 '\t/**\n'
20130515 '     * Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden.\n'
20130515 '\t * @param {Ext.data.Record/Object} o Either a {@link Ext.data.Record} if showing the form\n'
20130515 '\t * for an existing event in edit mode, or a plain object containing a StartDate property (and \n'
20130515 '\t * optionally an EndDate property) for showing the form in add mode. \n'
20130515 '     * @param {String/Element} animateTarget (optional) The target element or id from which the window should\n'
20130515 '     * animate while opening (defaults to null with no animation)\n'
20130515 '     * @return {Ext.Window} this\n'
20130515 '     */\n'
20130515 '    show: function(o, animateTarget){\n'
20130515 '\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\tvar anim = (Ext.isIE8 && Ext.isStrict) ? null : animateTarget,\n'
20130515 '            M = Ext.ensible.cal.EventMappings;\n'
20130515 '\n'
20130515 '\t\tExt.ensible.cal.EventEditWindow.superclass.show.call(this, anim, function(){\n'
20130515 '            this.titleField.focus(false, 100);\n'
20130515 '        });\n'
20130515 "        this.deleteBtn[o.data && o.data[M.EventId.name] ? 'show' : 'hide']();\n"
20130515 '        \n'
20130515 '        var rec, f = this.formPanel.form;\n'
20130515 '\n'
20130515 '        if(o.data){\n'
20130515 '            rec = o;\n'
20130515 '\t\t\t//this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '\t\t\tif(rec.phantom){\n'
20130515 '\t\t\t\t// Enable adding the default record that was passed in\n'
20130515 "\t\t\t\t// if it's new even if the user makes no changes \n"
20130515 '\t\t\t\t//rec.markDirty();\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextAdd);\n'
20130515 '\t\t\t}\n'
20130515 '\t\t\telse{\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextEdit);\n'
20130515 '\t\t\t}\n'
20130515 '            \n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '\t\t\t//this.isAdd = true;\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 '\n'
20130515 '            var start = o[M.StartDate.name],\n'
20130515 "                end = o[M.EndDate.name] || start.add('h', 1);\n"
20130515 '                \n'
20130515 '            rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '            //rec.data[M.EventId.name] = this.newId++;\n'
20130515 '            rec.data[M.StartDate.name] = start;\n'
20130515 '            rec.data[M.EndDate.name] = end;\n'
20130515 '            rec.data[M.IsAllDay.name] = !!o[M.IsAllDay.name] || start.getDate() != end.clone().add(Date.MILLI, 1).getDate();\n'
20130515 '            \n'
20130515 '            f.reset();\n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField.setValue(rec.data[M.CalendarId.name]);\n'
20130515 '        }\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 "        this.el.setStyle('z-index', 12000);\n"
20130515 '        \n'
20130515 '\t\treturn this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    roundTime: function(dt, incr){\n'
20130515 '        incr = incr || 15;\n'
20130515 '        var m = parseInt(dt.getMinutes());\n'
20130515 "        return dt.add('mi', incr - (m % incr));\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '    \tthis.cleanup(true);\n'
20130515 "\t\tthis.fireEvent('eventcancel', this, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '\t\t\n'
20130515 '        if(hide===true){\n'
20130515 '\t\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\t\t//var anim = afterDelete || (Ext.isIE8 && Ext.isStrict) ? null : this.animateTarget;\n'
20130515 '            this.hide();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateRecord: function(keepEditing){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            form = this.formPanel.form,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '\n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        \n'
20130515 '        if(!keepEditing){\n'
20130515 '            rec.endEdit();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.formPanel.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\t\tif(!this.updateRecord()){\n'
20130515 '\t\t\tthis.onCancel();\n'
20130515 '\t\t\treturn;\n'
20130515 '\t\t}\n'
20130515 "\t\tthis.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "\t\tthis.fireEvent('eventdelete', this, this.activeRecord, this.animateTarget);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditwindow', Ext.ensible.cal.EventEditWindow);/**\r\n"
20130515 ' * @class Ext.ensible.cal.CalendarView\r\n'
20130515 ' * @extends Ext.BoxComponent\r\n'
20130515 ' * <p>This is an abstract class that serves as the base for other calendar views. This class is not\r\n'
20130515 ' * intended to be directly instantiated.</p>\r\n'
20130515 ' * <p>When extending this class to create a custom calendar view, you must provide an implementation\r\n'
20130515 ' * for the <code>renderItems</code> method, as there is no default implementation for rendering events\r\n'
20130515 ' * The rendering logic is totally dependent on how the UI structures its data, which\r\n'
20130515 ' * is determined by the underlying UI template (this base class does not have a template).</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.CalendarView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\r\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\r\n'
20130515 '     * config), and either can be used interchangeably.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\r\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\r\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\r\n'
20130515 '     * the default calendar (and color).\r\n'
20130515 '     */\r\n'
20130515 '    /*\r\n'
20130515 '     * @cfg {Boolean} enableRecurrence\r\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\r\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\r\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\r\n'
20130515 '     * if the server supports it.\r\n'
20130515 '     */\r\n'
20130515 '    //enableRecurrence: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} readOnly\r\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} startDay\r\n'
20130515 '     * The 0-based index for the day on which the calendar week begins (0=Sunday, which is the default)\r\n'
20130515 '     */\r\n'
20130515 '    startDay : 0,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} spansHavePriority\r\n'
20130515 '     * Allows switching between two different modes of rendering events that span multiple days. When true,\r\n'
20130515 '     * span events are always sorted first, possibly at the expense of start dates being out of order (e.g., \r\n'
20130515 '     * a span event that starts at 11am one day and spans into the next day would display before a non-spanning \r\n'
20130515 '     * event that starts at 10am, even though they would not be in date order). This can lead to more compact\r\n'
20130515 '     * layouts when there are many overlapping events. If false (the default), events will always sort by start date\r\n'
20130515 '     * first which can result in a less compact, but chronologically consistent layout.\r\n'
20130515 '     */\r\n'
20130515 '    spansHavePriority: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} trackMouseOver\r\n'
20130515 '     * Whether or not the view tracks and responds to the browser mouseover event on contained elements (defaults to\r\n'
20130515 "     * true). If you don't need mouseover event highlighting you can disable this.\r\n"
20130515 '     */\r\n'
20130515 '\ttrackMouseOver: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableFx\r\n'
20130515 '     * Determines whether or not visual effects for CRUD actions are enabled (defaults to true). If this is false\r\n'
20130515 '     * it will override any values for {@link #enableAddFx}, {@link #enableUpdateFx} or {@link enableRemoveFx} and\r\n'
20130515 '     * all animations will be disabled.\r\n'
20130515 '     */\r\n'
20130515 '\tenableFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableAddFx\r\n'
20130515 '     * True to enable a visual effect on adding a new event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doAddFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableAddFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableUpdateFx\r\n'
20130515 '     * True to enable a visual effect on updating an event, false to disable it (the default). Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doUpdateFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableUpdateFx: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableRemoveFx\r\n'
20130515 '     * True to enable a visual effect on removing an event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doRemoveFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableRemoveFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableDD\r\n'
20130515 '     * True to enable drag and drop in the calendar view (the default), false to disable it\r\n'
20130515 '     */\r\n'
20130515 '    enableDD: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableContextMenus\r\n'
20130515 '     * True to enable automatic right-click context menu handling in the calendar views (the default), false to disable\r\n'
20130515 '     * them. Different context menus are provided when clicking on events vs. the view background.\r\n'
20130515 '     */\r\n'
20130515 '    enableContextMenus: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} suppressBrowserContextMenu\r\n'
20130515 '     * When {@link #enableContextMenus} is true, the browser context menu will automatically be suppressed whenever a\r\n'
20130515 '     * custom context menu is displayed. When this option is true, right-clicks on elements that do not have a custom\r\n'
20130515 '     * context menu will also suppress the default browser context menu (no menu will be shown at all). When false,\r\n'
20130515 '     * the browser context menu will still show if the right-clicked element has no custom menu (this is the default).\r\n'
20130515 '     */\r\n'
20130515 '    suppressBrowserContextMenu: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} monitorResize\r\n'
20130515 "     * True to monitor the browser's resize event (the default), false to ignore it. If the calendar view is rendered\r\n"
20130515 "     * into a fixed-size container this can be set to false. However, if the view can change dimensions (e.g., it's in \r\n"
20130515 '     * fit layout in a viewport or some other resizable container) it is very important that this config is true so that\r\n'
20130515 '     * any resize event propagates properly to all subcomponents and layouts get recalculated properly.\r\n'
20130515 '     */\r\n'
20130515 '    monitorResize: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayText\r\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\r\n"
20130515 '     */\r\n'
20130515 "    todayText: 'Today',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddCreateEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \r\n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddCreateEventText: 'Create event for {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddMoveEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \r\n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddMoveEventText: 'Move event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddResizeEventText\r\n'
20130515 '     * The string displayed to the user in the drag proxy while dragging the resize handle of an event (defaults to \r\n'
20130515 "     * 'Update event to {0}' where {0} is the updated event start-end range supplied by the view). Note that \r\n"
20130515 '     * this text is only used in views\r\n'
20130515 '     * that allow resizing of events.\r\n'
20130515 '     */\r\n'
20130515 "    ddResizeEventText: 'Update event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} defaultEventTitleText\r\n'
20130515 "     * The default text to display as the title of an event that has a null or empty string title value (defaults to '(No title)')\r\n"
20130515 '     */\r\n'
20130515 "    defaultEventTitleText: '(No title)',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamStart\r\n'
20130515 "     * The param name representing the start date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'start').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamStart: 'start',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamEnd\r\n'
20130515 "     * The param name representing the end date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'end').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamEnd: 'end',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamFormat\r\n'
20130515 "     * The format to use for date parameters sent with requests to retrieve events for the calendar (defaults to 'Y-m-d', e.g. '2010-10-31')\r\n"
20130515 '     */\r\n'
20130515 "    dateParamFormat: 'Y-m-d',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} editModal\r\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\r\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\r\n'
20130515 '     * config will no longer apply. \r\n'
20130515 '     */\r\n'
20130515 '    editModal: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableEditDetails\r\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\r\n'
20130515 '     * link and disable detailed event editing. \r\n'
20130515 '     */\r\n'
20130515 '    enableEditDetails: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekendCls\r\n'
20130515 "     * A CSS class to apply to weekend days in the current view (defaults to 'ext-cal-day-we' which highlights weekend days in light blue). \r\n"
20130515 "     * To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    weekendCls: 'ext-cal-day-we',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} prevMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month previous to the current view's month (defaults to 'ext-cal-day-prev' which \r\n"
20130515 "     * highlights previous month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    prevMonthCls: 'ext-cal-day-prev',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} nextMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month after the current view's month (defaults to 'ext-cal-day-next' which \r\n"
20130515 "     * highlights next month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    nextMonthCls: 'ext-cal-day-next',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayCls\r\n'
20130515 "     * A CSS class to apply to the current date when it is visible in the current view (defaults to 'ext-cal-day-today' which \r\n"
20130515 "     * highlights today in yellow). To disable this styling set the value to null or ''.\r\n"
20130515 '     */\r\n'
20130515 "    todayCls: 'ext-cal-day-today',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 '    weekCount: 1,\r\n'
20130515 '    dayCount: 1,\r\n'
20130515 "    eventSelector : '.ext-cal-evt',\r\n"
20130515 "    eventOverClass: 'ext-evt-over',\r\n"
20130515 "\teventElIdDelimiter: '-evt-',\r\n"
20130515 "    dayElIdDelimiter: '-day-',\r\n"
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns a string of HTML template markup to be used as the body portion of the event template created\r\n'
20130515 "     * by {@link #getEventTemplate}. This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. This string can include any valid {@link Ext.Template} code, and\r\n'
20130515 '     * any data tokens accessible to the containing event template can be referenced in this string.\r\n'
20130515 '     * @return {String} The body template string\r\n'
20130515 '     */\r\n'
20130515 '    getEventBodyMarkup : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\r\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with events. Internally this method\r\n'
20130515 "     * by default generates different markup for browsers that support CSS border radius and those that don't.\r\n"
20130515 '     * This method can be overridden as needed to customize the markup generated.</p>\r\n'
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\r\n'
20130515 "     * from the surrounding container markup.  This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \r\n'
20130515 '     * overridden version also does the same.</p>\r\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\r\n'
20130515 '     */\r\n'
20130515 '    getEventTemplate : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * This is undefined by default, but can be implemented to allow custom CSS classes and template data to be\r\n'
20130515 '     * conditionally applied to events during rendering. This function will be called with the parameter list shown\r\n'
20130515 "     * below and is expected to return the CSS class name (or empty string '' for none) that will be added to the \r\n"
20130515 "     * event element's wrapping div. To apply multiple class names, simply return them space-delimited within the \r\n"
20130515 "     * string (e.g., 'my-class another-class'). Example usage, applied in a CalendarPanel config:\r\n"
20130515 '     * <pre><code>\r\n'
20130515 "// This example assumes a custom field of 'IsHoliday' has been added to EventRecord\r\n"
20130515 'viewConfig: {\r\n'
20130515 '    getEventClass: function(rec, allday, templateData, store){\r\n'
20130515 '        if(rec.data.IsHoliday){\r\n'
20130515 "            templateData.iconCls = 'holiday';\r\n"
20130515 "            return 'evt-holiday';\r\n"
20130515 '        }\r\n'
20130515 "        templateData.iconCls = 'plain';\r\n"
20130515 "        return '';\r\n"
20130515 '    },\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        // This is simplified, but shows the symtax for how you could add a\r\n'
20130515 '        // custom placeholder that maps back to the templateData property created\r\n'
20130515 '        // in getEventClass. Note that this is standard Ext template syntax.\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 '            this.eventBodyMarkup = \'&lt;span class="{iconCls}">&lt;/span> {Title}\';\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    }\r\n'
20130515 '}\r\n'
20130515 '</code></pre>\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} being rendered\r\n'
20130515 '     * @param {Boolean} isAllDay A flag indicating whether the event will be <em>rendered</em> as an all-day event. Note that this\r\n'
20130515 '     * will not necessarily correspond with the value of the <tt>EventRecord.IsAllDay</tt> field &mdash; events that span multiple\r\n'
20130515 '     * days will be rendered using the all-day event template regardless of the field value. If your logic for this function\r\n'
20130515 '     * needs to know whether or not the event will be rendered as an all-day event, this value should be used. \r\n'
20130515 '     * @param {Object} templateData A plain JavaScript object that is empty by default. You can add custom properties\r\n'
20130515 '     * to this object that will then be passed into the event template for the specific event being rendered. If you have \r\n'
20130515 '     * overridden the default event template and added custom data placeholders, you can use this object to pass the data\r\n'
20130515 '     * into the template that will replace those placeholders.\r\n'
20130515 '     * @param {Ext.data.Store} store The Event data store in use by the view\r\n'
20130515 '     * @method getEventClass\r\n'
20130515 "     * @return {String} A space-delimited CSS class string (or '')\r\n"
20130515 '     */\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        this.setStartDate(this.startDate || new Date());\r\n'
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '        \r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 "            this.addClass('ext-cal-readonly');\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventsrendered\r\n'
20130515 '             * Fires after events are finished rendering in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this \r\n'
20130515 '             */\r\n'
20130515 '            eventsrendered: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventclick\r\n'
20130515 '             * Fires after the user clicks on an event element. This is a cancelable event, so returning false from a \r\n'
20130515 '             * handler will cancel the click without displaying the event editor view. This could be useful for \r\n'
20130515 '             * validating the rules by which events should be editable by the user.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            eventclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventover\r\n'
20130515 '             * Fires anytime the mouse is over an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            eventover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventout\r\n'
20130515 '             * Fires anytime the mouse exits an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\r\n'
20130515 '             */\r\n'
20130515 '            eventout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforedatechange\r\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\r\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\r\n'
20130515 '             * view change and the setting of the start date.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\r\n'
20130515 '             */\r\n'
20130515 '            beforedatechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event datechange\r\n'
20130515 '             * Fires after the start date of the view has changed. If you need to cancel the date change you should handle the \r\n'
20130515 '             * {@link #beforedatechange} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\r\n'
20130515 '             */\r\n'
20130515 '            datechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event rangeselect\r\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event. This is a \r\n'
20130515 '             * cancelable event, so returning false from a handler will cancel the drag operation and clean up any drag shim elements\r\n'
20130515 '             * without displaying the event editor view. This could be useful for validating that a user can only create events within\r\n'
20130515 '             * a certain range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\r\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\r\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\r\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\r\n'
20130515 '             * function call (e.g., callback()).\r\n'
20130515 '             */\r\n'
20130515 '\t\t\trangeselect: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventmove\r\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the move operation. This could be useful for validating that a user can \r\n'
20130515 '             * only move events within a certain date range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\r\n'
20130515 '             * @param {Date} dt The new start date to be set (the end date will be automaticaly adjusted to match the event duration)\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventmove\r\n'
20130515 '             * Fires after an event element has been dragged by the user and dropped in a new position. If you need to cancel the \r\n'
20130515 '             * move operation you should handle the {@link #beforeeventmove} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\r\n'
20130515 '             * updated start and end dates\r\n'
20130515 '             */\r\n'
20130515 '\t\t\teventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event initdrag\r\n'
20130515 '             * Fires when a drag operation is initiated in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             */\r\n'
20130515 '            initdrag: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayover\r\n'
20130515 '             * Fires while the mouse is over a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is being moused over\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayout\r\n'
20130515 '             * Fires when the mouse exits a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is exited\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\r\n'
20130515 '             */\r\n'
20130515 '            dayout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event editdetails\r\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\r\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\r\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\r\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            editdetails: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventadd\r\n'
20130515 '             * Fires after a new event has been added to the underlying store\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\r\n'
20130515 '             */\r\n'
20130515 '            eventadd: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventupdate\r\n'
20130515 '             * Fires after an existing event has been updated\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\r\n'
20130515 '             */\r\n'
20130515 '            eventupdate: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventcancel\r\n'
20130515 '             * Fires after an event add/edit operation has been canceled by the user and no store update took place\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\r\n'
20130515 '             */\r\n'
20130515 '            eventcancel: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventdelete\r\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \r\n'
20130515 '             * will cancel the delete operation.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventdelete: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventdelete\r\n'
20130515 '             * Fires after an event has been deleted by the user. If you need to cancel the delete operation you should handle the \r\n'
20130515 '             * {@link #beforeeventdelete} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            eventdelete: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.afterRender.call(this);\r\n'
20130515 '\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        \r\n'
20130515 '        if(this.store){\r\n'
20130515 '            this.setStore(this.store, true);\r\n'
20130515 '            if(this.store.deferLoad){\r\n'
20130515 '                this.reloadStore(this.store.deferLoad);\r\n'
20130515 '                delete this.store.deferLoad;\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.store.initialParams = this.getStoreParams();\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        if(this.calendarStore){\r\n'
20130515 '            this.setCalendarStore(this.calendarStore, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'mouseover': this.onMouseOver,\r\n"
20130515 "            'mouseout': this.onMouseOut,\r\n"
20130515 "            'click': this.onClick,\r\n"
20130515 "\t\t\t'resize': this.onResize,\r\n"
20130515 '            scope: this\r\n'
20130515 '        });\r\n'
20130515 '        \r\n'
20130515 '        // currently the context menu only contains CRUD actions so do not show it if read-only\r\n'
20130515 '        if(this.enableContextMenus && this.readOnly !== true){\r\n'
20130515 "            this.el.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.el.unselectable();\r\n'
20130515 '        \r\n'
20130515 '        if(this.enableDD && this.readOnly !== true && this.initDD){\r\n'
20130515 '\t\t\tthis.initDD();\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        this.on('eventsrendered', this.forceSize);\r\n"
20130515 '        this.forceSize.defer(100, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing the start and end dates to be passed as params in all calls\r\n'
20130515 '     * to load the event store. The param names are customizable using {@link #dateParamStart}\r\n'
20130515 '     * and {@link #dateParamEnd} and the date format used in requests is defined by {@link #dateParamFormat}.\r\n'
20130515 '     * If you need to add additional parameters to be sent when loading the store see {@link #getStoreParams}.\r\n'
20130515 '     * @return {Object} An object containing the start and end dates\r\n'
20130515 '     */\r\n'
20130515 '    getStoreDateParams : function(){\r\n'
20130515 '        var o = {};\r\n'
20130515 '        o[this.dateParamStart] = this.viewStart.format(this.dateParamFormat);\r\n'
20130515 '        o[this.dateParamEnd] = this.viewEnd.format(this.dateParamFormat);\r\n'
20130515 '        return o;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing all key/value params to be passed when loading the event store.\r\n'
20130515 '     * By default the returned object will simply be the same object returned by {@link #getStoreDateParams},\r\n'
20130515 '     * but this method is intended to be overridden if you need to pass anything in addition to start and end dates.\r\n'
20130515 '     * See the inline code comments when overriding for details.\r\n'
20130515 '     * @return {Object} An object containing all params to be sent when loading the event store\r\n'
20130515 '     */\r\n'
20130515 '    getStoreParams : function(){\r\n'
20130515 '        // This is needed if you require the default start and end dates to be included\r\n'
20130515 '        var params = this.getStoreDateParams();\r\n'
20130515 '        \r\n'
20130515 '        // Here is where you can add additional custom params, e.g.:\r\n'
20130515 '        // params.now = new Date().format(this.dateParamFormat);\r\n'
20130515 "        // params.foo = 'bar';\r\n"
20130515 '        // params.number = 123;\r\n'
20130515 '        \r\n'
20130515 '        return params;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Reloads the view's underlying event store using the params returned from {@link #getStoreParams}.\r\n"
20130515 '     * Reloading the store is typically managed automatically by the view itself, but the method is\r\n'
20130515 '     * available in case a manual reload is ever needed.\r\n'
20130515 "     * @param {Object} options (optional) An object matching the format used by Store's {@link Ext.data.Store#load load} method\r\n"
20130515 '     */\r\n'
20130515 '    reloadStore : function(o){\r\n'
20130515 "        Ext.ensible.log('reloadStore');\r\n"
20130515 '        o = Ext.isObject(o) ? o : {};\r\n'
20130515 '        o.params = o.params || {};\r\n'
20130515 '        \r\n'
20130515 '        Ext.apply(o.params, this.getStoreParams());\r\n'
20130515 '        this.store.load(o);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        if(this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.child('.ext-cal-hd-ct'),\r\n"
20130515 "                bd = this.el.child('.ext-cal-body-ct');\r\n"
20130515 '                \r\n'
20130515 '            if(bd==null || hd==null) return;\r\n'
20130515 '                \r\n'
20130515 '            var headerHeight = hd.getHeight(),\r\n'
20130515 '                sz = this.el.parent().getSize();\r\n'
20130515 '                   \r\n'
20130515 '            bd.setHeight(sz.height-headerHeight);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Refresh the current view, optionally reloading the event store also. While this is normally\r\n'
20130515 '     * managed internally on any navigation and/or CRUD action, there are times when you might want\r\n'
20130515 "     * to refresh the view manually (e.g., if you'd like to reload using different {@link #getStoreParams params}).\r\n"
20130515 '     * @param {Boolean} reloadData True to reload the store data first, false to simply redraw the view using current \r\n'
20130515 '     * data (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    refresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (base), reload = '+reloadData);\r\n"
20130515 '        if(reloadData === true){\r\n'
20130515 '            this.reloadStore();\r\n'
20130515 '        }\r\n'
20130515 '        this.prepareData();\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        this.renderItems();\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getWeekCount : function(){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd);\r\n'
20130515 '        return Math.ceil(days / this.dayCount);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareData : function(){\r\n'
20130515 '        var lastInMonth = this.startDate.getLastDateOfMonth(),\r\n'
20130515 '            w = 0, row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            weeks = this.weekCount < 1 ? 6 : this.weekCount;\r\n'
20130515 '        \r\n'
20130515 '        this.eventGrid = [[]];\r\n'
20130515 '        this.allDayGrid = [[]];\r\n'
20130515 '        this.evtMaxCount = [];\r\n'
20130515 '        \r\n'
20130515 '        var evtsInView = this.store.queryBy(function(rec){\r\n'
20130515 '            return this.isEventVisible(rec.data);\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        for(; w < weeks; w++){\r\n'
20130515 '            this.evtMaxCount[w] = 0;\r\n'
20130515 '            if(this.weekCount == -1 && dt > lastInMonth){\r\n'
20130515 '                //current week is fully in next month so skip\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            this.eventGrid[w] = this.eventGrid[w] || [];\r\n'
20130515 '            this.allDayGrid[w] = this.allDayGrid[w] || [];\r\n'
20130515 '            \r\n'
20130515 '            for(d = 0; d < this.dayCount; d++){\r\n'
20130515 '                if(evtsInView.getCount() > 0){\r\n'
20130515 '                    var evts = evtsInView.filterBy(function(rec){\r\n'
20130515 '                        var startsOnDate = (dt.getTime() == rec.data[Ext.ensible.cal.EventMappings.StartDate.name].clearTime(true).getTime());\r\n'
20130515 '                        var spansFromPrevView = (w == 0 && d == 0 && (dt > rec.data[Ext.ensible.cal.EventMappings.StartDate.name]));\r\n'
20130515 '                        return startsOnDate || spansFromPrevView;\r\n'
20130515 '                    }, this);\r\n'
20130515 '                    \r\n'
20130515 '                    this.sortEventRecordsForDay(evts);\r\n'
20130515 '                    this.prepareEventGrid(evts, w, d);\r\n'
20130515 '                }\r\n'
20130515 '                dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.currentWeekCount = w;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGrid : function(evts, w, d){\r\n'
20130515 '        var row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            max = this.maxEventsPerDay ? this.maxEventsPerDay : 999;\r\n'
20130515 '        \r\n'
20130515 '        evts.each(function(evt){\r\n'
20130515 '            var M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '            \r\n'
20130515 '            if(Ext.ensible.Date.diffDays(evt.data[M.StartDate.name], evt.data[M.EndDate.name]) > 0){\r\n'
20130515 '                var daysInView = Ext.ensible.Date.diffDays(\r\n'
20130515 '                    Ext.ensible.Date.max(this.viewStart, evt.data[M.StartDate.name]),\r\n'
20130515 '                    Ext.ensible.Date.min(this.viewEnd, evt.data[M.EndDate.name])) + 1;\r\n'
20130515 '                    \r\n'
20130515 '                this.prepareEventGridSpans(evt, this.eventGrid, w, d, daysInView);\r\n'
20130515 '                this.prepareEventGridSpans(evt, this.allDayGrid, w, d, daysInView, true);\r\n'
20130515 '            }\r\n'
20130515 '            else{\r\n'
20130515 '                row = this.findEmptyRowIndex(w,d);\r\n'
20130515 '                this.eventGrid[w][d] = this.eventGrid[w][d] || [];\r\n'
20130515 '                this.eventGrid[w][d][row] = evt;\r\n'
20130515 '                \r\n'
20130515 '                if(evt.data[M.IsAllDay.name]){\r\n'
20130515 '                    row = this.findEmptyRowIndex(w,d, true);\r\n'
20130515 '                    this.allDayGrid[w][d] = this.allDayGrid[w][d] || [];\r\n'
20130515 '                    this.allDayGrid[w][d][row] = evt;\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            if(this.evtMaxCount[w] < this.eventGrid[w][d].length){\r\n'
20130515 '                this.evtMaxCount[w] = Math.min(max+1, this.eventGrid[w][d].length);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGridSpans : function(evt, grid, w, d, days, allday){\r\n'
20130515 '        // this event spans multiple days/weeks, so we have to preprocess\r\n'
20130515 '        // the events and store special span events as placeholders so that\r\n'
20130515 '        // the render routine can build the necessary TD spans correctly.\r\n'
20130515 '        var w1 = w, d1 = d, \r\n'
20130515 '            row = this.findEmptyRowIndex(w,d,allday),\r\n'
20130515 '            dt = this.viewStart.clone();\r\n'
20130515 '        \r\n'
20130515 '        var start = {\r\n'
20130515 '            event: evt,\r\n'
20130515 '            isSpan: true,\r\n'
20130515 '            isSpanStart: true,\r\n'
20130515 '            spanLeft: false,\r\n'
20130515 '            spanRight: (d == 6)\r\n'
20130515 '        };\r\n'
20130515 '        grid[w][d] = grid[w][d] || [];\r\n'
20130515 '        grid[w][d][row] = start;\r\n'
20130515 '        \r\n'
20130515 '        while(--days){\r\n'
20130515 '            dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            if(dt > this.viewEnd){\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            if(++d1>6){\r\n'
20130515 '                // reset counters to the next week\r\n'
20130515 '                d1 = 0; w1++;\r\n'
20130515 '                row = this.findEmptyRowIndex(w1,0);\r\n'
20130515 '            }\r\n'
20130515 '            grid[w1] = grid[w1] || [];\r\n'
20130515 '            grid[w1][d1] = grid[w1][d1] || [];\r\n'
20130515 '            \r\n'
20130515 '            grid[w1][d1][row] = {\r\n'
20130515 '                event: evt,\r\n'
20130515 '                isSpan: true,\r\n'
20130515 '                isSpanStart: (d1 == 0),\r\n'
20130515 '                spanLeft: (w1 > w) && (d1 % 7 == 0),\r\n'
20130515 '                spanRight: (d1 == 6) && (days > 1)\r\n'
20130515 '            };\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    findEmptyRowIndex : function(w, d, allday){\r\n'
20130515 '        var grid = allday ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            day = grid[w] ? grid[w][d] || [] : [],\r\n'
20130515 '            i = 0, ln = day.length;\r\n'
20130515 '            \r\n'
20130515 '        for(; i < ln; i++){\r\n'
20130515 '            if(day[i] == null){\r\n'
20130515 '                return i;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return ln;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderTemplate : function(){\r\n'
20130515 '        if(this.tpl){\r\n'
20130515 '            this.tpl.overwrite(this.el, this.getTemplateParams());\r\n'
20130515 '            this.lastRenderStart = this.viewStart.clone();\r\n'
20130515 '            this.lastRenderEnd = this.viewEnd.clone();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateParams : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            viewEnd: this.viewEnd,\r\n'
20130515 '            startDate: this.startDate,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            weekendCls: this.weekendCls,\r\n'
20130515 '            prevMonthCls: this.prevMonthCls,\r\n'
20130515 '            nextMonthCls: this.nextMonthCls,\r\n'
20130515 '            todayCls: this.todayCls\r\n'
20130515 '        };\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Disable store event monitoring within this view. Note that if you do this the view will no longer\r\n'
20130515 '     * refresh itself automatically when CRUD actions occur. To enable store events see {@link #enableStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tdisableStoreEvents : function(){\r\n'
20130515 '\t\tthis.monitorStoreEvents = false;\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable store event monitoring within this view if disabled by {@link #disbleStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tenableStoreEvents : function(refresh){\r\n'
20130515 '\t\tthis.monitorStoreEvents = true;\r\n'
20130515 '\t\tif(refresh === true){\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '\t\t}\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tthis.refresh(false);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 "        this.fireEvent('initdrag', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonEventDrop : function(rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonCalendarEndDrag : function(start, end, onComplete){\r\n'
20130515 "        // set this flag for other event handlers that might conflict while we're waiting\r\n"
20130515 '        this.dragPending = true;\r\n'
20130515 '        \r\n'
20130515 '        var dates = {},\r\n'
20130515 '            onComplete = this.onCalendarEndDragComplete.createDelegate(this, [onComplete]);\r\n'
20130515 '        \r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.StartDate.name] = start;\r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.EndDate.name] = end;\r\n'
20130515 '        \r\n'
20130515 "        if(this.fireEvent('rangeselect', this, dates, onComplete) !== false){\r\n"
20130515 '            this.showEventEditor(dates, null);\r\n'
20130515 "            this.editWin.on('hide', onComplete, this, {single:true});\r\n"
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 '            // client code canceled the selection so clean up immediately\r\n'
20130515 '            this.onCalendarEndDragComplete(onComplete);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onCalendarEndDragComplete : function(onComplete){\r\n'
20130515 '        // callback for the drop zone to clean up\r\n'
20130515 '        onComplete();\r\n'
20130515 '        // clear flag for other events to resume normally\r\n'
20130515 '        this.dragPending = false;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onUpdate : function(ds, rec, operation){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\r\n'
20130515 "            Ext.ensible.log('onUpdate');\r\n"
20130515 '            this.dismissEventEditor();\r\n'
20130515 '            \r\n'
20130515 '            var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '            // if the event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // any event instances were updated on the server\r\n'
20130515 "            this.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '            \r\n'
20130515 '\t\t\tif(this.enableFx && this.enableUpdateFx){\r\n'
20130515 '\t\t\t\tthis.doUpdateFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                    scope: this\r\n'
20130515 '                });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is updated. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was updated. The default \r\n'
20130515 '     * effect is {@link Ext.Element#highlight highlight}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableUpdateFx} is true (it is false by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the updated event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoUpdateFx : function(els, o){\r\n'
20130515 '\t\tthis.highlightEvent(els, null, o);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onAdd : function(ds, recs, index){\r\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs; \r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false || rec.phantom){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(rec._deleting){\r\n'
20130515 '            delete rec._deleting;\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onAdd');\r\n"
20130515 '        \r\n'
20130515 '\t\tvar rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '        \r\n'
20130515 '        this.dismissEventEditor();    \r\n'
20130515 '\t\tthis.tempEventId = rec.id;\r\n'
20130515 '        // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '        // new event instances were generated on the server\r\n'
20130515 "\t\tthis.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '\t\t\r\n'
20130515 '\t\tif(this.enableFx && this.enableAddFx){\r\n'
20130515 '\t\t\tthis.doAddFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                scope: this\r\n'
20130515 '            });\r\n'
20130515 '\t\t};\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is added. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was added. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeIn fadeIn}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableAddFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the added event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoAddFx : function(els, o){\r\n'
20130515 '\t\tels.fadeIn(Ext.apply(o, {duration:2}));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onRemove : function(ds, rec){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onRemove');\r\n"
20130515 '        this.dismissEventEditor();\r\n'
20130515 '        \r\n'
20130515 '        var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name],\r\n'
20130515 '            // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // new event instances were generated on the server\r\n'
20130515 "            isRecurring = rrule !== undefined && rrule !== '';\r\n"
20130515 '        \r\n'
20130515 '\t\tif(this.enableFx && this.enableRemoveFx){\r\n'
20130515 '\t\t\tthis.doRemoveFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '\t            remove: true,\r\n'
20130515 '\t            scope: this,\r\n'
20130515 '\t\t\t\tcallback: this.refresh.createDelegate(this, [isRecurring])\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]).remove();\r\n'
20130515 '            this.refresh(isRecurring);\r\n'
20130515 '\t\t}\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is removed. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was removed. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeOut fadeOut}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableRemoveFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the removed event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object contains the following properties:\r\n'
20130515 '     * <pre><code>\r\n'
20130515 '{\r\n'
20130515 '   remove: true, // required by fadeOut to actually remove the element(s)\r\n'
20130515 '   scope: this,  // required for the callback\r\n'
20130515 '   callback: fn  // required to refresh the view after the fx finish\r\n'
20130515 '} \r\n'
20130515 '     * </code></pre>\r\n'
20130515 '     * While you can modify this options object as needed if you change the effect used, please note that the\r\n'
20130515 '     * callback method (and scope) MUST still be passed in order for the view to refresh correctly after the removal.\r\n'
20130515 '     * Please see the inline code comments before overriding this method. \r\n'
20130515 '     */\r\n'
20130515 '\tdoRemoveFx : function(els, o){\r\n'
20130515 '        // Please make sure you keep this entire code block or removing events might not work correctly!\r\n'
20130515 '        // Removing is a little different because we have to wait for the fx to finish, then we have to actually\r\n'
20130515 '        // refresh the view AFTER the fx are run (this is different than add and update).\r\n'
20130515 '        if(els.getCount() == 0 && Ext.isFunction(o.callback)){\r\n'
20130515 '            // if there are no matching elements in the view make sure the callback still runs.\r\n'
20130515 '            // this can happen when an event accessed from the "more" popup is deleted.\r\n'
20130515 '            o.callback.call(o.scope || this);\r\n'
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 "            // If you'd like to customize the remove fx do so here. Just make sure you\r\n"
20130515 '            // DO NOT override the default callback property on the options object, and that\r\n'
20130515 '            // you still pass that object in whatever fx method you choose.\r\n'
20130515 '            els.fadeOut(o);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * Visually highlights an event using {@link Ext.Fx#highlight} config options.\r\n'
20130515 '\t * @param {Ext.CompositeElement} els The element(s) to highlight\r\n'
20130515 '\t * @param {Object} color (optional) The highlight color. Should be a 6 char hex \r\n'
20130515 "\t * color without the leading # (defaults to yellow: 'ffff9c')\r\n"
20130515 '\t * @param {Object} o (optional) Object literal with any of the {@link Ext.Fx} config \r\n'
20130515 '\t * options. See {@link Ext.Fx#highlight} for usage examples.\r\n'
20130515 '\t */\r\n'
20130515 '\thighlightEvent : function(els, color, o) {\r\n'
20130515 '\t\tif(this.enableFx){\r\n'
20130515 '\t\t\tvar c;\r\n'
20130515 '\t\t\t!(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tels.highlight(color, o) :\r\n'
20130515 '\t\t\t\t// Fun IE/Opera handling:\r\n'
20130515 '\t\t\t\tels.each(function(el){\r\n'
20130515 "\t\t\t\t\tel.highlight(color, Ext.applyIf({attr:'color'}, o));\r\n"
20130515 "\t\t\t\t\tif(c = el.child('.ext-cal-evm')) {\r\n"
20130515 '\t\t\t\t\t\tc.highlight(color, o);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}, this);\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 "\t * Retrieve an Event object's id from its corresponding node in the DOM.\r\n"
20130515 '\t * @param {String/Element/HTMLElement} el An {@link Ext.Element}, DOM node or id\r\n'
20130515 '\t */\r\n'
20130515 '//\tgetEventIdFromEl : function(el){\r\n'
20130515 '//\t\tel = Ext.get(el);\r\n'
20130515 '//\t\tvar id = el.id.split(this.eventElIdDelimiter)[1];\r\n'
20130515 "//        if(id.indexOf('-w_') > -1){\r\n"
20130515 '//            //This id has the index of the week it is rendered in as part of the suffix.\r\n'
20130515 '//            //This allows events that span across weeks to still have reproducibly-unique DOM ids.\r\n'
20130515 "//            id = id.split('-w_')[0];\r\n"
20130515 '//        }\r\n'
20130515 '//        return id;\r\n'
20130515 '//\t},\r\n'
20130515 '    getEventIdFromEl : function(el){\r\n'
20130515 '        el = Ext.get(el);\r\n'
20130515 "        var parts, id = '', cls, classes = el.dom.className.split(' ');\r\n"
20130515 '        \r\n'
20130515 '        Ext.each(classes, function(cls){\r\n'
20130515 '            parts = cls.split(this.eventElIdDelimiter);\r\n'
20130515 '            if(parts.length > 1){\r\n'
20130515 '                id = parts[1];\r\n'
20130515 '                return false;\r\n'
20130515 '            }\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        return id;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t// private\r\n'
20130515 '\tgetEventId : function(eventId){\r\n'
20130515 '\t\tif(eventId === undefined && this.tempEventId){\r\n'
20130515 '            // temp record id assigned during an add, will be overwritten later\r\n'
20130515 '\t\t\teventId = this.tempEventId;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn eventId;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @param {Boolean} forSelect\r\n'
20130515 '\t * @return {String} The selector class\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventSelectorCls : function(eventId, forSelect){\r\n'
20130515 "\t\tvar prefix = forSelect ? '.' : '';\r\n"
20130515 '\t\treturn prefix + this.id + this.eventElIdDelimiter + this.getEventId(eventId);\r\n'
20130515 '\t},\r\n'
20130515 '\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @return {Ext.CompositeElement} The matching CompositeElement of nodes\r\n'
20130515 '\t * that comprise the rendered event.  Any event that spans across a view \r\n'
20130515 '\t * boundary will contain more than one internal Element.\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventEls : function(eventId){\r\n'
20130515 '\t\tvar els = this.el.select(this.getEventSelectorCls(this.getEventId(eventId), true), false);\r\n'
20130515 '\t\treturn new Ext.CompositeElement(els);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\r\n"
20130515 '     * @return {Boolean} True or false\r\n'
20130515 '     */\r\n'
20130515 '    isToday : function(){\r\n'
20130515 '        var today = new Date().clearTime().getTime();\r\n'
20130515 '        return this.viewStart.getTime() <= today && this.viewEnd.getTime() >= today;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    onDataChanged : function(store){\r\n'
20130515 "        Ext.ensible.log('onDataChanged');\r\n"
20130515 '        this.refresh(false);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isEventVisible : function(evt){\r\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            data = evt.data ? evt.data : evt,\r\n'
20130515 '            calId = data[M.CalendarId.name],\r\n'
20130515 '            calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '            \r\n'
20130515 '        if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '            // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '            return false;\r\n'
20130515 '        }\r\n'
20130515 '            \r\n'
20130515 '        var start = this.viewStart.getTime(),\r\n'
20130515 '            end = this.viewEnd.getTime(),\r\n'
20130515 '            evStart = data[M.StartDate.name].getTime(),\r\n'
20130515 '            evEnd = data[M.EndDate.name].getTime();\r\n'
20130515 '            \r\n'
20130515 '        return Ext.ensible.Date.rangesOverlap(start, end, evStart, evEnd);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isOverlapping : function(evt1, evt2){\r\n'
20130515 '        var ev1 = evt1.data ? evt1.data : evt1,\r\n'
20130515 '            ev2 = evt2.data ? evt2.data : evt2,\r\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            start1 = ev1[M.StartDate.name].getTime(),\r\n'
20130515 '            end1 = ev1[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 '            start2 = ev2[M.StartDate.name].getTime(),\r\n'
20130515 '            end2 = ev2[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 "            startDiff = Ext.ensible.Date.diff(ev1[M.StartDate.name], ev2[M.StartDate.name], 'm');\r\n"
20130515 '            \r\n'
20130515 '            if(end1<start1){\r\n'
20130515 '                end1 = start1;\r\n'
20130515 '            }\r\n'
20130515 '            if(end2<start2){\r\n'
20130515 '                end2 = start2;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '//            var ev1startsInEv2 = (start1 >= start2 && start1 <= end2),\r\n'
20130515 '//            ev1EndsInEv2 = (end1 >= start2 && end1 <= end2),\r\n'
20130515 '//            ev1SpansEv2 = (start1 < start2 && end1 > end2),\r\n'
20130515 '            var evtsOverlap = Ext.ensible.Date.rangesOverlap(start1, end1, start2, end2),\r\n'
20130515 '                minimumMinutes = this.minEventDisplayMinutes || 0, // applies in day/week body view only for vertical overlap\r\n'
20130515 '                ev1MinHeightOverlapsEv2 = minimumMinutes > 0 && (startDiff > -minimumMinutes && startDiff < minimumMinutes);\r\n'
20130515 '        \r\n'
20130515 '        //return (ev1startsInEv2 || ev1EndsInEv2 || ev1SpansEv2 || ev1MinHeightOverlapsEv2);\r\n'
20130515 '        return (evtsOverlap || ev1MinHeightOverlapsEv2);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayEl : function(dt){\r\n'
20130515 '        return Ext.get(this.getDayId(dt));\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayId : function(dt){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 "            dt = dt.format('Ymd');\r\n"
20130515 '        }\r\n'
20130515 '        return this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \r\n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\r\n'
20130515 '     * to the user use {@link #getViewBounds}.\r\n'
20130515 '     * @return {Date} The start date\r\n'
20130515 '     */\r\n'
20130515 '    getStartDate : function(){\r\n'
20130515 '        return this.startDate;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \r\n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\r\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\r\n'
20130515 '     */\r\n'
20130515 '    setStartDate : function(start, /*private*/reload){\r\n'
20130515 "        Ext.ensible.log('setStartDate (base) '+start.format('Y-m-d'));\r\n"
20130515 "        if(this.fireEvent('beforedatechange', this, this.startDate, start, this.viewStart, this.viewEnd) !== false){\r\n"
20130515 '            this.startDate = start.clearTime();\r\n'
20130515 '            this.setViewBounds(start);\r\n'
20130515 '            if(this.rendered){\r\n'
20130515 '                this.refresh(reload);\r\n'
20130515 '            }\r\n'
20130515 "            this.fireEvent('datechange', this, this.startDate, this.viewStart, this.viewEnd);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    setViewBounds : function(startDate){\r\n'
20130515 '        var start = startDate || this.startDate,\r\n'
20130515 '            offset = start.getDay() - this.startDay;\r\n'
20130515 '        \r\n'
20130515 '        if(offset < 0){\r\n'
20130515 '            // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '            offset += 7;\r\n'
20130515 '        }\r\n'
20130515 '        switch(this.weekCount){\r\n'
20130515 '            case 0:\r\n'
20130515 '            case 1:\r\n'
20130515 '                this.viewStart = this.dayCount < 7 && !this.startDayIsStatic ? start : start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.dayCount || 7).add(Date.SECOND, -1);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            case -1: // auto by month\r\n'
20130515 '                start = start.getFirstDateOfMonth();\r\n'
20130515 '                offset = start.getDay() - this.startDay;\r\n'
20130515 '                if(offset < 0){\r\n'
20130515 '                    // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '                    offset += 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                \r\n'
20130515 '                // start from current month start, not view start:\r\n'
20130515 '                var end = start.add(Date.MONTH, 1).add(Date.SECOND, -1);\r\n'
20130515 '                // fill out to the end of the week:\r\n'
20130515 '                offset = this.startDay;\r\n'
20130515 '                if(offset > end.getDay()){\r\n'
20130515 '                    // if the offset is larger than the end day index then the last row will be empty so skip it\r\n'
20130515 '                    offset -= 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewEnd = end.add(Date.DAY, 6-end.getDay()+offset);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            default:\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.weekCount * 7).add(Date.SECOND, -1);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start and end boundary dates currently displayed in the view. The method\r\n'
20130515 '     * returns an object literal that contains the following properties:<ul>\r\n'
20130515 '     * <li><b>start</b> Date : <div class="sub-desc">The start date of the view</div></li>\r\n'
20130515 '     * <li><b>end</b> Date : <div class="sub-desc">The end date of the view</div></li></ul>\r\n'
20130515 '     * For example:<pre><code>\r\n'
20130515 'var bounds = view.getViewBounds();\r\n'
20130515 "alert('Start: '+bounds.start);\r\n"
20130515 "alert('End: '+bounds.end);\r\n"
20130515 '</code></pre>\r\n'
20130515 '     * @return {Object} An object literal containing the start and end values\r\n'
20130515 '     */\r\n'
20130515 '    getViewBounds : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            start: this.viewStart,\r\n'
20130515 '            end: this.viewEnd\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t/* private\r\n'
20130515 '\t * Sort events for a single day for display in the calendar.  This sorts allday\r\n'
20130515 '\t * events first, then non-allday events are sorted either based on event start\r\n'
20130515 '\t * priority or span priority based on the value of {@link #spansHavePriority} \r\n'
20130515 '\t * (defaults to event start priority).\r\n'
20130515 '\t * @param {MixedCollection} evts A {@link Ext.util.MixedCollection MixedCollection}  \r\n'
20130515 '\t * of {@link #Ext.ensible.cal.EventRecord EventRecord} objects\r\n'
20130515 '\t */\r\n'
20130515 '\tsortEventRecordsForDay: function(evts){\r\n'
20130515 '        if(evts.length < 2){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "\t\tevts.sort('ASC', function(evtA, evtB){\r\n"
20130515 '\t\t\tvar a = evtA.data, b = evtB.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Always sort all day events before anything else\r\n'
20130515 '\t\t\tif (a[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse if (b[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (this.spansHavePriority) {\r\n'
20130515 '\t\t\t\t// This logic always weights span events higher than non-span events \r\n'
20130515 '\t\t\t\t// (at the possible expense of start time order). This seems to \r\n'
20130515 '\t\t\t\t// be the approach used by Google calendar and can lead to a more\r\n'
20130515 '\t\t\t\t// visually appealing layout in complex cases, but event order is\r\n'
20130515 '\t\t\t\t// not guaranteed to be consistent.\r\n'
20130515 '\t\t\t\tvar diff = Ext.ensible.Date.diffDays;\r\n'
20130515 '\t\t\t\tif (diff(a[M.StartDate.name], a[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\tif (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\t\t// Both events are multi-day\r\n'
20130515 '\t\t\t\t\t\tif (a[M.StartDate.name].getTime() == b[M.StartDate.name].getTime()) {\r\n'
20130515 '\t\t\t\t\t\t\t// If both events start at the same time, sort the one\r\n'
20130515 '\t\t\t\t\t\t\t// that ends later (potentially longer span bar) first\r\n'
20130515 '\t\t\t\t\t\t\treturn b[M.EndDate.name].getTime() - a[M.EndDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse if (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\t// Doing this allows span and non-span events to intermingle but\r\n'
20130515 '\t\t\t\t// remain sorted sequentially by start time. This seems more proper\r\n'
20130515 '\t\t\t\t// but can make for a less visually-compact layout when there are\r\n'
20130515 '\t\t\t\t// many such events mixed together closely on the calendar.\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}.createDelegate(this));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to contain the passed date\r\n'
20130515 '     * @param {Date} dt The date to display\r\n'
20130515 '     */\r\n'
20130515 '    moveTo : function(dt, /*private*/reload){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 '            this.setStartDate(dt, reload);\r\n'
20130515 '            return this.startDate;\r\n'
20130515 '        }\r\n'
20130515 '        return dt;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the next consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveNext : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(this.viewEnd.add(Date.DAY, 1), reload);\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the previous consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    movePrev : function(/*private*/reload){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd)+1;\r\n'
20130515 '        return this.moveDays(-days, reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of months relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of months (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveMonths : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.MONTH, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of weeks relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of weeks (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveWeeks : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value*7), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveDays : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to show today\r\n'
20130515 "     * @return {Date} Today's date\r\n"
20130515 '     */\r\n'
20130515 '    moveToday : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(new Date(), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setStore : function(store, initial){\r\n'
20130515 '        var currStore = this.store;\r\n'
20130515 '        \r\n'
20130515 '        if(!initial && currStore){\r\n'
20130515 '            currStore.un("datachanged", this.onDataChanged, this);\r\n'
20130515 '            currStore.un("clear", this.refresh, this);\r\n'
20130515 '            currStore.un("write", this.onWrite, this);\r\n'
20130515 '            currStore.un("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.onDataChanged, this);\r\n'
20130515 '            store.on("clear", this.refresh, this);\r\n'
20130515 '            store.on("write", this.onWrite, this);\r\n'
20130515 '            store.on("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.store = store;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onException : function(proxy, type, action, o, res, arg){\r\n'
20130515 '        // form edits are explicitly canceled, but we may not know if a drag/drop operation\r\n'
20130515 '        // succeeded until after a server round trip. if the update failed we have to explicitly\r\n'
20130515 "        // reject the changes so that the record doesn't stick around in the store's modified list \r\n"
20130515 '        if(arg.reject){\r\n'
20130515 '            arg.reject();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the calendar store used by the calendar (contains records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}).\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setCalendarStore : function(store, initial){\r\n'
20130515 '        if(!initial && this.calendarStore){\r\n'
20130515 '            this.calendarStore.un("datachanged", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("add", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("remove", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.refresh, this);\r\n'
20130515 '            store.on("add", this.refresh, this);\r\n'
20130515 '            store.on("remove", this.refresh, this);\r\n'
20130515 '            store.on("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.calendarStore = store;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    getEventRecord : function(id){\r\n'
20130515 '        var idx = this.store.find(Ext.ensible.cal.EventMappings.EventId.name, id);\r\n'
20130515 '        return this.store.getAt(idx);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetEventRecordFromEl : function(el){\r\n'
20130515 '\t\treturn this.getEventRecord(this.getEventIdFromEl(el));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventEditor : function(){\r\n'
20130515 '        // only create one instance of the edit window, even if there are multiple CalendarPanels\r\n'
20130515 "        this.editWin = this.editWin || Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '         \r\n'
20130515 '        if(!this.editWin){\r\n'
20130515 '            this.editWin = new Ext.ensible.cal.EventEditWindow({\r\n'
20130515 "                id: 'ext-cal-editwin',\r\n"
20130515 '                calendarStore: this.calendarStore,\r\n'
20130515 '                modal: this.editModal,\r\n'
20130515 '                enableEditDetails: this.enableEditDetails,\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'eventadd': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventAdd(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventupdate': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventUpdate(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventdelete': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventDelete(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'editdetails': {\r\n"
20130515 '                        fn: function(win, rec, animTarget, view){\r\n'
20130515 '                            win.hide(animTarget);\r\n'
20130515 "                            win.currentView.fireEvent('editdetails', win.currentView, rec, animTarget);\r\n"
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventcancel': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            this.dismissEventEditor(animTarget);\r\n'
20130515 '                            win.currentView.onEventCancel();\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    }\r\n'
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        // allows the window to reference the current scope in its callbacks\r\n'
20130515 '        this.editWin.currentView = this;\r\n'
20130515 '        return this.editWin;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\r\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\r\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\r\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\r\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    showEventEditor : function(rec, animateTarget){\r\n'
20130515 '        this.getEventEditor().show(rec, animateTarget, this);\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\r\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \r\n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\r\n"
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    dismissEventEditor : function(dismissMethod, /*private*/ animTarget){\r\n'
20130515 '        if(this.newRecord && this.newRecord.phantom){\r\n'
20130515 '            this.store.remove(this.newRecord);\r\n'
20130515 '        }\r\n'
20130515 '        delete this.newRecord;\r\n'
20130515 '        \r\n'
20130515 "        // grab the manager's ref so that we dismiss it properly even if the active view has changed\r\n"
20130515 "        var editWin = Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '        if(editWin){\r\n'
20130515 "            editWin[dismissMethod ? dismissMethod : 'hide'](animTarget);\r\n"
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    save: function(){\r\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\r\n"
20130515 '        // method will have already internally caused a save to execute on\r\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\r\n'
20130515 "        // otherwise we'll create duplicate transactions.\r\n"
20130515 '        if(!this.store.autoSave){\r\n'
20130515 '            this.store.save();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\r\n'
20130515 '        switch(action){\r\n'
20130515 "            case 'create': \r\n"
20130515 '                this.onAdd(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'update':\r\n"
20130515 '                this.onUpdate(store, rec, Ext.data.Record.COMMIT);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'destroy':\r\n"
20130515 '                this.onRemove(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventAdd: function(form, rec){\r\n'
20130515 '        this.newRecord = rec;\r\n'
20130515 '        if(!rec.store){\r\n'
20130515 '            this.store.add(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 '        }\r\n'
20130515 "        this.fireEvent('eventadd', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventUpdate: function(form, rec){\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventDelete: function(form, rec){\r\n'
20130515 '        if(rec.store){\r\n'
20130515 '            this.store.remove(rec);\r\n'
20130515 '        }\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventCancel: function(form, rec){\r\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private -- called from subclasses\r\n'
20130515 '    onDayClick: function(dt, ad, el){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('dayclick', this, dt, ad, el) !== false){\r\n"
20130515 '            var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '                data = {};\r\n'
20130515 '                \r\n'
20130515 '            data[M.StartDate.name] = dt;\r\n'
20130515 '            data[M.IsAllDay.name] = ad;\r\n'
20130515 '                \r\n'
20130515 '            this.showEventEditor(data, el);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    showEventMenu : function(el, xy){\r\n'
20130515 '        if(!this.eventMenu){\r\n'
20130515 '            this.eventMenu = new Ext.ensible.cal.EventContextMenu({\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'editdetails': this.onEditDetails.createDelegate(this),\r\n"
20130515 "                    'eventdelete': this.onDeleteEvent.createDelegate(this),\r\n"
20130515 "                    'eventmove': this.onMoveEvent.createDelegate(this)\r\n"
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.eventMenu.showForEvent(this.getEventRecordFromEl(el), el, xy);\r\n'
20130515 '        this.menuActive = true;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEditDetails : function(menu, rec, el){\r\n'
20130515 "        this.fireEvent('editdetails', this, rec, el);\r\n"
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMoveEvent : function(menu, rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Move the event to a new start date, preserving the original event duration.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     * @param {Object} dt The new start date\r\n'
20130515 '     */\r\n'
20130515 '    moveEvent : function(rec, dt){\r\n'
20130515 '        if(Ext.ensible.Date.compare(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt) === 0){\r\n'
20130515 '            // no changes\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('beforeeventmove', this, rec, dt) !== false){\r\n"
20130515 '            var diff = dt.getTime() - rec.data[Ext.ensible.cal.EventMappings.StartDate.name].getTime();\r\n'
20130515 '            rec.beginEdit();\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.StartDate.name, dt);\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.EndDate.name, rec.data[Ext.ensible.cal.EventMappings.EndDate.name].add(Date.MILLI, diff));\r\n'
20130515 '            rec.endEdit();\r\n'
20130515 '            this.save();\r\n'
20130515 '            \r\n'
20130515 "            this.fireEvent('eventmove', this, rec);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDeleteEvent: function(menu, rec, el){\r\n'
20130515 '        rec._deleting = true;\r\n'
20130515 '        this.deleteEvent(rec, el);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Delete the specified event.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     */\r\n'
20130515 '    deleteEvent: function(rec, /* private */el){\r\n'
20130515 "        if(this.fireEvent('beforeeventdelete', this, rec, el) !== false){\r\n"
20130515 '            this.store.remove(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 "            this.fireEvent('eventdelete', this, rec, el);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onContextMenu : function(e, t){\r\n'
20130515 '        var el, match = false;\r\n'
20130515 '        \r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            this.dismissEventEditor().showEventMenu(el, e.getXY());\r\n'
20130515 '            match = true;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        if(match || this.suppressBrowserContextMenu === true){\r\n'
20130515 '            e.preventDefault();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /*\r\n'
20130515 '     * Shared click handling.  Each specific view also provides view-specific\r\n'
20130515 '     * click handling that calls this first.  This method returns true if it\r\n'
20130515 '     * can handle the click (and so the subclass should ignore it) else false.\r\n'
20130515 '     */\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dropZone){\r\n'
20130515 '            this.dropZone.clearShims();\r\n'
20130515 '        }\r\n'
20130515 '        if(this.menuActive === true){\r\n'
20130515 '            // ignore the first click if a context menu is active (let it close)\r\n'
20130515 '            this.menuActive = false;\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        var el = e.getTarget(this.eventSelector, 5);\r\n'
20130515 '        if(el){\r\n'
20130515 '            var id = this.getEventIdFromEl(el),\r\n'
20130515 '                rec = this.getEventRecord(id);\r\n'
20130515 '            \r\n'
20130515 "            if(this.fireEvent('eventclick', this, rec, el) !== false){\r\n"
20130515 '                this.showEventEditor(rec, el);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOver : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'over')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'over');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOut : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'out')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'out');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleEventMouseEvent : function(e, t, type){\r\n'
20130515 '        var el;\r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            var rel = Ext.get(e.getRelatedTarget());\r\n'
20130515 '            if(el == rel || el.contains(rel)){\r\n'
20130515 '                return true;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            var evtId = this.getEventIdFromEl(el);\r\n'
20130515 '            \r\n'
20130515 "            if(this.eventOverClass != ''){\r\n"
20130515 '                var els = this.getEventEls(evtId);\r\n'
20130515 "                els[type == 'over' ? 'addClass' : 'removeClass'](this.eventOverClass);\r\n"
20130515 '            }\r\n'
20130515 "            this.fireEvent('event'+type, this, this.getEventRecord(evtId), el);\r\n"
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        return false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDateFromId : function(id, delim){\r\n'
20130515 '        var parts = id.split(delim);\r\n'
20130515 '        return parts[parts.length-1];\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 "        if(t = e.getTarget('td', 3)){\r\n"
20130515 '            if(t.id && t.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var dt = this.getDateFromId(t.id, this.dayElIdDelimiter),\r\n'
20130515 '                    rel = Ext.get(e.getRelatedTarget()),\r\n'
20130515 '                    relTD, relDate;\r\n'
20130515 '                \r\n'
20130515 '                if(rel){\r\n'
20130515 "                    relTD = rel.is('td') ? rel : rel.up('td', 3);\r\n"
20130515 "                    relDate = relTD && relTD.id ? this.getDateFromId(relTD.id, this.dayElIdDelimiter) : '';\r\n"
20130515 '                }\r\n'
20130515 '                if(!rel || dt != relDate){\r\n'
20130515 '                    var el = this.getDayEl(dt);\r\n'
20130515 "                    if(el && this.dayOverClass != ''){\r\n"
20130515 "                        el[type == 'over' ? 'addClass' : 'removeClass'](this.dayOverClass);\r\n"
20130515 '                    }\r\n'
20130515 '                    this.fireEvent(\'day\'+type, this, Date.parseDate(dt, "Ymd"), el);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private, MUST be implemented by subclasses\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 "        throw 'This method must be implemented by a subclass';\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.el){\r\n'
20130515 "            this.el.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '        Ext.destroy(\r\n'
20130515 '            this.editWin, \r\n'
20130515 '            this.eventMenu,\r\n'
20130515 '            this.dragZone,\r\n'
20130515 '            this.dropZone\r\n'
20130515 '        );\r\n'
20130515 '    }\r\n'
20130515 '});/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthView\r\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\r\n'
20130515 ' * <p>Displays a calendar view by month. This class does not usually need ot be used directly as you can\r\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\r\n'
20130515 ' * the month view.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthView = Ext.extend(Ext.ensible.cal.CalendarView, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} moreText\r\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMoreText} instead.</p>\r\n'
20130515 '     * <p>The text to display in a day box when there are more events than can be displayed and a link is provided to\r\n'
20130515 "     * show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @deprecated\r\n'
20130515 '     */\r\n'
20130515 "    moreText: '+{0} more...',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} detailsTitleDateFormat\r\n'
20130515 '     * The date format for the title of the details panel that shows when there are hidden events and the "more" link \r\n'
20130515 "     * is clicked (defaults to 'F j').\r\n"
20130515 '     */\r\n'
20130515 "    detailsTitleDateFormat: 'F j',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTime\r\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTime: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTodayText\r\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTodayText: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showHeader\r\n'
20130515 "     * True to display a header beneath the navigation bar containing the week names above each week's column, false not to \r\n"
20130515 '     * show it and instead display the week names in the first row of days in the calendar (defaults to false).\r\n'
20130515 '     */\r\n'
20130515 '    showHeader: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekLinks\r\n'
20130515 '     * True to display an extra column before the first day in the calendar that links to the {@link Ext.ensible.cal.WeekView view}\r\n'
20130515 '     * for each individual week, false to not show it (defaults to false). If true, the week links can also contain the week \r\n'
20130515 '     * number depending on the value of {@link #showWeekNumbers}.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekLinks: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekNumbers\r\n'
20130515 '     * True to show the week number for each week in the calendar in the week link column, false to show nothing (defaults to false).\r\n'
20130515 '     * Note that if {@link #showWeekLinks} is false this config will have no affect even if true.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekNumbers: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekLinkOverClass\r\n'
20130515 '     * The CSS class name applied when the mouse moves over a week link element (only applies when {@link #showWeekLinks} is true,\r\n'
20130515 "     * defaults to 'ext-week-link-over').\r\n"
20130515 '     */\r\n'
20130515 "    weekLinkOverClass: 'ext-week-link-over',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 "    daySelector: '.ext-cal-day',\r\n"
20130515 "    moreSelector : '.ext-cal-ev-more',\r\n"
20130515 "    weekLinkSelector : '.ext-cal-week-link',\r\n"
20130515 '    weekCount: -1, // defaults to auto by month\r\n'
20130515 '    dayCount: 7,\r\n'
20130515 "\tmoreElIdDelimiter: '-more-',\r\n"
20130515 "    weekLinkIdDelimiter: 'ext-cal-week-',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.initComponent.call(this);\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayclick\r\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \r\n'
20130515 '             * for validating that a user can only create events on certain days.\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\r\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \r\n'
20130515 '             * MonthView always return true for this param.\r\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            dayclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event weekclick\r\n'
20130515 '             * Fires after the user clicks within a week link (when {@link #showWeekLinks is true)\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The start date of the week that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            weekclick: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayout: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tinitDD : function(){\r\n'
20130515 '\t\tvar cfg = {\r\n'
20130515 '\t\t\tview: this,\r\n'
20130515 '\t\t\tcreateText: this.ddCreateEventText,\r\n'
20130515 '\t\t\tmoveText: this.ddMoveEventText,\r\n'
20130515 "            ddGroup : this.ddGroup || this.id+'-MonthViewDD'\r\n"
20130515 '\t\t};\r\n'
20130515 '        \r\n'
20130515 '        this.dragZone = new Ext.ensible.cal.DragZone(this.el, cfg);\r\n'
20130515 '        this.dropZone = new Ext.ensible.cal.DropZone(this.el, cfg);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDestroy : function(){\r\n'
20130515 '        Ext.destroy(this.ddSelector);\r\n'
20130515 '\t\tExt.destroy(this.dragZone);\r\n'
20130515 '\t\tExt.destroy(this.dropZone);\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onDestroy.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '            this.tpl = new Ext.ensible.cal.MonthViewTemplate({\r\n'
20130515 '                id: this.id,\r\n'
20130515 '                showTodayText: this.showTodayText,\r\n'
20130515 '                todayText: this.todayText,\r\n'
20130515 '                showTime: this.showTime,\r\n'
20130515 '                showHeader: this.showHeader,\r\n'
20130515 '                showWeekLinks: this.showWeekLinks,\r\n'
20130515 '                showWeekNumbers: this.showWeekNumbers\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 "        this.addClass('ext-cal-monthview ext-cal-ct');\r\n"
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.afterRender.call(this);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tif(this.monitorResize){\r\n'
20130515 '\t\t\tthis.maxEventsPerDay = this.getMaxEventsPerDay();\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        // Compensate for the week link gutter width if visible\r\n'
20130515 '        if(this.showWeekLinks && this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.select('.ext-cal-hd-days-tbl'),\r\n"
20130515 "                bgTbl = this.el.select('.ext-cal-bg-tbl'),\r\n"
20130515 "                evTbl = this.el.select('.ext-cal-evt-tbl'),\r\n"
20130515 "                wkLinkW = this.el.child('.ext-cal-week-link').getWidth(),\r\n"
20130515 '                w = this.el.getWidth()-wkLinkW;\r\n'
20130515 '            \r\n'
20130515 '            hd.setWidth(w);\r\n'
20130515 '            bgTbl.setWidth(w);\r\n'
20130515 '            evTbl.setWidth(w);\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.forceSize.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    //private\r\n'
20130515 '    initClock : function(){\r\n'
20130515 "        if(Ext.fly(this.id+'-clock') !== null){\r\n"
20130515 '            this.prevClockDay = new Date().getDay();\r\n'
20130515 '            if(this.clockTask){\r\n'
20130515 '                Ext.TaskMgr.stop(this.clockTask);\r\n'
20130515 '            }\r\n'
20130515 '            this.clockTask = Ext.TaskMgr.start({\r\n'
20130515 '                run: function(){ \r\n'
20130515 "                    var el = Ext.fly(this.id+'-clock'),\r\n"
20130515 '                        t = new Date();\r\n'
20130515 '                        \r\n'
20130515 '                    if(t.getDay() == this.prevClockDay){\r\n'
20130515 '                        if(el){\r\n'
20130515 "                            el.update(t.format(Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia'));\r\n"
20130515 '                        }\r\n'
20130515 '                    }\r\n'
20130515 '                    else{\r\n'
20130515 '                        this.prevClockDay = t.getDay();\r\n'
20130515 '                        this.moveTo(t);\r\n'
20130515 '                    }\r\n'
20130515 '                },\r\n'
20130515 '                scope: this,\r\n'
20130515 '                interval: 1000\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * <p>Returns the text to display in a day box when there are more events than can be displayed and a link is \r\n'
20130515 "     * provided to show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @param {Integer} numEvents The number of events currently hidden from view\r\n'
20130515 '     * @return {String} The text to display for the "more" link \r\n'
20130515 '     */\r\n'
20130515 '    getMoreText: function(numEvents){\r\n'
20130515 '        return this.moreText;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\r\n"
20130515 '\t            \'<tpl if="_isReminder">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="_isRecurring">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanLeft">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spl">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanRight">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>'\r\n"
20130515 "\t        ].join('');\r\n"
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventTemplate : function(){\r\n'
20130515 '        if(!this.eventTpl){\r\n'
20130515 '\t        var tpl, body = this.getEventBodyMarkup();\r\n'
20130515 '            \r\n'
20130515 '\t        tpl = !(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tnew Ext.XTemplate(\r\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 '\t\t                body,\r\n'
20130515 "\t\t            '</div>'\r\n"
20130515 '\t\t        ) \r\n'
20130515 '\t\t\t\t: new Ext.XTemplate(\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evo">\',\r\n'
20130515 '\t\t                    \'<div class="ext-cal-evm">\',\r\n'
20130515 '\t\t                        \'<div class="ext-cal-evi">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            \'<tpl if="!_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            body,\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 "\t\t                        '</div>',\r\n"
20130515 "\t\t                    '</div>',\r\n"
20130515 "\t\t            '</tpl>',\r\n"
20130515 "\t\t                '</div>'\r\n"
20130515 '\t        \t);\r\n'
20130515 '            tpl.compile();\r\n'
20130515 '            this.eventTpl = tpl;\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventTpl;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\r\n'
20130515 '            data = {},\r\n'
20130515 "            recurring = evt[M.RRule.name] != '',\r\n"
20130515 "            colorCls = 'x-cal-default',\r\n"
20130515 '\t\t    title = evt[M.Title.name],\r\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ';\r\n"
20130515 '        \r\n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\r\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\r\n'
20130515 '            if(rec){\r\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '');\r\n"
20130515 '        extraClasses.push(colorCls);\r\n'
20130515 '        \r\n'
20130515 '        if(this.getEventClass){\r\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\r\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\r\n'
20130515 '            extraClasses.push(cls);\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "\t\tdata._extraCls = extraClasses.join(' ');\r\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\r\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\r\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\r\n"
20130515 '        \r\n'
20130515 '        return Ext.applyIf(data, evt);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\trefresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (MonthView)');\r\n"
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\tExt.ensible.cal.MonthView.superclass.refresh.call(this, reloadData);\r\n'
20130515 '        \r\n'
20130515 '        if(this.showTime !== false){\r\n'
20130515 '            this.initClock();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 '        Ext.ensible.cal.WeekEventRenderer.render({\r\n'
20130515 '            eventGrid: this.allDayOnly ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            tpl: this.getEventTemplate(),\r\n'
20130515 '            maxEventsPerDay: this.maxEventsPerDay,\r\n'
20130515 '            id: this.id,\r\n'
20130515 '            templateDataFn: this.getTemplateEventData.createDelegate(this),\r\n'
20130515 '            evtMaxCount: this.evtMaxCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            getMoreText: this.getMoreText.createDelegate(this)\r\n'
20130515 '        });\r\n'
20130515 "        this.fireEvent('eventsrendered', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayEl : function(dt){\r\n'
20130515 '\t\treturn Ext.get(this.getDayId(dt));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayId : function(dt){\r\n'
20130515 '\t\tif(Ext.isDate(dt)){\r\n'
20130515 "\t\t\tdt = dt.format('Ymd');\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\treturn this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetWeekIndex : function(dt){\r\n'
20130515 "\t\tvar el = this.getDayEl(dt).up('.ext-cal-wk-ct');\r\n"
20130515 "\t\treturn parseInt(el.id.split('-wk-')[1]);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDaySize : function(contentOnly){\r\n'
20130515 '        var box = this.el.getBox(),\r\n'
20130515 '            padding = this.getViewPadding(),\r\n'
20130515 '            w = (box.width - padding.width) / this.dayCount,\r\n'
20130515 '            h = (box.height - padding.height) / this.getWeekCount();\r\n'
20130515 '            \r\n'
20130515 '\t\tif(contentOnly){\r\n'
20130515 '            // measure last row instead of first in case text wraps in first row\r\n'
20130515 "\t\t\tvar hd = this.el.select('.ext-cal-dtitle').last().parent('tr');\r\n"
20130515 '\t\t\th = hd ? h-hd.getHeight(true) : h;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn {height: h, width: w};\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventHeight : function(){\r\n'
20130515 '        if(!this.eventHeight){\r\n'
20130515 "            var evt = this.el.select('.ext-cal-evt').first();\r\n"
20130515 '            if(evt){\r\n'
20130515 "                this.eventHeight = evt.parent('tr').getHeight();\r\n"
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                return 16; // no events rendered, so try setting this.eventHeight again later\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventHeight;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetMaxEventsPerDay : function(){\r\n'
20130515 '\t\tvar dayHeight = this.getDaySize(true).height,\r\n'
20130515 '\t\t\th = this.getEventHeight(),\r\n'
20130515 '            bottomPad = 5,\r\n'
20130515 '            max = Math.max(Math.floor((dayHeight-h-bottomPad) / h), 0);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\treturn max;\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getViewPadding: function(sides) {\r\n'
20130515 "        var sides = sides || 'tlbr',\r\n"
20130515 "            top = sides.indexOf('t') > -1,\r\n"
20130515 "            left = sides.indexOf('l') > -1,\r\n"
20130515 "            right = sides.indexOf('r') > -1,\r\n"
20130515 "            height = this.showHeader && top ? this.el.select('.ext-cal-hd-days-tbl').first().getHeight() : 0,\r\n"
20130515 '            width = 0;\r\n'
20130515 '        \r\n'
20130515 '        if (this.isHeaderView) {\r\n'
20130515 '            if (left) {\r\n'
20130515 "                width = this.el.select('.ext-cal-gutter').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '            if (right) {\r\n'
20130515 "                width += this.el.select('.ext-cal-gutter-rt').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else if (this.showWeekLinks && left) {\r\n'
20130515 "            width = this.el.select('.ext-cal-week-link').first().getWidth();\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return {\r\n'
20130515 '            height: height,\r\n'
20130515 '            width: width\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayAt : function(x, y){\r\n'
20130515 '\t\tvar box = this.el.getBox(),\r\n'
20130515 "            padding = this.getViewPadding('tl'), // top/left only since we only want the xy offsets\r\n"
20130515 '\t\t\tdaySize = this.getDaySize(),\r\n'
20130515 '\t\t\tdayL = Math.floor(((x - box.x - padding.width) / daySize.width)),\r\n'
20130515 '\t\t\tdayT = Math.floor(((y - box.y - padding.height) / daySize.height)),\r\n'
20130515 '\t\t\tdays = (dayT * 7) + dayL;\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tvar dt = this.viewStart.add(Date.DAY, days);\r\n'
20130515 '\t\treturn {\r\n'
20130515 '\t\t\tdate: dt,\r\n'
20130515 '\t\t\tel: this.getDayEl(dt)\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    moveNext : function(){\r\n'
20130515 '        return this.moveMonths(1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    movePrev : function(){\r\n'
20130515 '        return this.moveMonths(-1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onInitDrag.call(this);\r\n'
20130515 '\t\tExt.select(this.daySelector).removeClass(this.dayOverClass);\r\n'
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonMoreClick : function(dt){\r\n'
20130515 '\t\tif(!this.detailPanel){\r\n'
20130515 '\t        this.detailPanel = new Ext.Panel({\r\n'
20130515 "\t\t\t\tid: this.id+'-details-panel',\r\n"
20130515 '\t\t\t\ttitle: dt.format(this.detailsTitleDateFormat),\r\n'
20130515 "\t\t\t\tlayout: 'fit',\r\n"
20130515 '\t\t\t\tfloating: true,\r\n'
20130515 '\t\t\t\trenderTo: Ext.getBody(),\r\n'
20130515 '\t\t\t\ttools: [{\r\n'
20130515 "\t\t\t\t\tid: 'close',\r\n"
20130515 '\t\t\t\t\thandler: function(e, t, p){\r\n'
20130515 '\t\t\t\t\t\tp.hide();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}],\r\n'
20130515 '\t\t\t\titems: {\r\n'
20130515 "\t\t\t\t\txtype: 'extensible.monthdaydetailview',\r\n"
20130515 "\t\t\t\t\tid: this.id+'-details-view',\r\n"
20130515 '\t\t\t\t\tdate: dt,\r\n'
20130515 '\t\t\t\t\tview: this,\r\n'
20130515 '\t\t\t\t\tstore: this.store,\r\n'
20130515 '                    calendarStore: this.calendarStore,\r\n'
20130515 '\t\t\t\t\tlisteners: {\r\n'
20130515 "\t\t\t\t\t\t'eventsrendered': this.onDetailViewUpdated.createDelegate(this)\r\n"
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 "            this.detailPanel.body.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.detailPanel.setTitle(dt.format(this.detailsTitleDateFormat));\r\n'
20130515 '\t\t}\r\n'
20130515 "\t\tthis.detailPanel.getComponent(this.id+'-details-view').update(dt);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonDetailViewUpdated : function(view, dt, numEvents){\r\n'
20130515 '\t\tvar p = this.detailPanel,\r\n'
20130515 '\t\t\tframeH = p.getFrameHeight(),\r\n'
20130515 '            evtH = this.getEventHeight(),\r\n'
20130515 '\t\t\tbodyH = frameH + (numEvents * evtH) + 3,\r\n'
20130515 '\t\t\tdayEl = this.getDayEl(dt),\r\n'
20130515 '\t\t\tbox = dayEl.getBox();\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tp.setHeight(bodyH);\r\n'
20130515 '\t\tp.setWidth(Math.max(box.width, 220));\r\n'
20130515 '\t\tp.show();\r\n'
20130515 "\t\tp.getPositionEl().alignTo(dayEl, 't-t?');\r\n"
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onHide : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onHide.call(this);\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.moreSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.moreElIdDelimiter)[1];\r\n'
20130515 "            this.onMoreClick(Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.weekLinkSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.weekLinkIdDelimiter)[1];\r\n'
20130515 "            this.fireEvent('weekclick', this, Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(Ext.ensible.cal.MonthView.superclass.onClick.apply(this, arguments)){\r\n'
20130515 '            // The superclass handled the click already so exit\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(el = e.getTarget('td', 3)){\r\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\r\n'
20130515 '                    dt = parts[parts.length-1];\r\n'
20130515 '                    \r\n'
20130515 "                //this.fireEvent('dayclick', this, Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 '                return;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 '        var el = e.getTarget(this.weekLinkSelector, 3, true);\r\n'
20130515 '        if(el){\r\n'
20130515 "            el[type == 'over' ? 'addClass' : 'removeClass'](this.weekLinkOverClass);\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.handleDayMouseEvent.apply(this, arguments);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.detailsPanel){\r\n'
20130515 "            this.detailPanel.body.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthview', Ext.ensible.cal.MonthView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>This is the header area container within the day and week views where all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayBodyView DayBodyView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    // private configs\n'
20130515 '    weekCount: 1,\n'
20130515 '    dayCount: 1,\n'
20130515 '    allDayOnly: true,\n'
20130515 '    monitorResize: false,\n'
20130515 '    isHeaderView: true,\n'
20130515 '    \n'
20130515 "    // The event is declared in MonthView but we're just overriding the docs:\n"
20130515 '    /**\n'
20130515 '     * @event dayclick\n'
20130515 '     * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '     * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '     * for validating that a user can only create events on certain days.\n'
20130515 '     * @param {Ext.ensible.cal.DayHeaderView} this\n'
20130515 '     * @param {Date} dt The date/time that was clicked on\n'
20130515 '     * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '     * DayHeaderView always return true for this param.\n'
20130515 '     * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayHeaderTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 "        this.addClass('ext-cal-day-header');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.afterRender.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayHeaderView)');\n"
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.refresh.call(this, reloadData);\n'
20130515 '        this.recalcHeaderBox();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    recalcHeaderBox : function(){\n'
20130515 "        var tbl = this.el.child('.ext-cal-evt-tbl'),\n"
20130515 '            h = tbl.getHeight();\n'
20130515 '        \n'
20130515 '        this.el.setHeight(h+7);\n'
20130515 '        \n'
20130515 '        // These should be auto-height, but since that does not work reliably\n'
20130515 '        // across browser / doc type, we have to size them manually\n'
20130515 "        this.el.child('.ext-cal-hd-ad-inner').setHeight(h+5);\n"
20130515 "        this.el.child('.ext-cal-bg-tbl').setHeight(h+5);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.moveDays(this.dayCount);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    movePrev : function(){\n'
20130515 '        this.moveDays(-this.dayCount);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 "        if(el = e.getTarget('td', 3)){\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\n'
20130515 '                    dt = parts[parts.length-1];\n'
20130515 '                    \n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt, true)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.onClick.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayheaderview', Ext.ensible.cal.DayHeaderView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyView\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\n'
20130515 ' * <p>This is the scrolling container within the day and week views where non-all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayHeaderView DayHeaderView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyView = Ext.extend(Ext.ensible.cal.CalendarView, {\n'
20130515 '    //private\n'
20130515 "    dayColumnElIdDelimiter: '-day-col-',\n"
20130515 '    hourIncrement: 60,\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        if(this.readOnly === true){\n'
20130515 '            this.enableEventResize = false;\n'
20130515 '        }\n'
20130515 '        this.incrementsPerHour = this.hourIncrement / this.ddIncrement;\n'
20130515 '        this.minEventHeight = this.minEventDisplayMinutes / (this.hourIncrement / this.hourHeight);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The original {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * @param {Object} data An object containing the new start and end dates that will be set into the event record if the\n'
20130515 '             * event is not canceled. Format of the object is: {StartDate: [date], EndDate: [date]}\n'
20130515 '             */\n'
20130515 '            beforeeventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user has drag-dropped the resize handle of an event and the resize operation is complete. If you need \n'
20130515 '             * to cancel the resize operation you should handle the {@link #beforeeventresize} event and return false from your handler function.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            eventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '             * for validating that a user can only create events on certain days.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '             * DayBodyView always return false for this param.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            dayclick: true\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initDD : function(){\n'
20130515 '        var cfg = {\n'
20130515 '            view: this,\n'
20130515 '            createText: this.ddCreateEventText,\n'
20130515 '            moveText: this.ddMoveEventText,\n'
20130515 '            resizeText: this.ddResizeEventText,\n'
20130515 '            ddIncrement: this.ddIncrement,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '\n'
20130515 '        this.el.ddScrollConfig = {\n'
20130515 '            // scrolling is buggy in IE/Opera for some reason.  A larger vthresh\n'
20130515 '            // makes it at least functional if not perfect\n'
20130515 '            vthresh: Ext.isIE || Ext.isOpera ? 100 : 40,\n'
20130515 '            hthresh: -1,\n'
20130515 '            frequency: 50,\n'
20130515 '            increment: 100,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.dragZone = new Ext.ensible.cal.DayViewDragZone(this.el, Ext.apply({\n'
20130515 '            containerScroll: true\n'
20130515 '        }, cfg));\n'
20130515 '        \n'
20130515 '        this.dropZone = new Ext.ensible.cal.DayViewDropZone(this.el, cfg);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayBodyView)');\n"
20130515 '        var top = this.el.getScroll().top;\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.refresh.call(this, reloadData);\n'
20130515 '        \n'
20130515 '        // skip this if the initial render scroll position has not yet been set.\n'
20130515 '        // necessary since IE/Opera must be deferred, so the first refresh will\n'
20130515 '        // override the initial position by default and always set it to 0.\n'
20130515 '        if(this.scrollReady){\n'
20130515 '            this.scrollTo(top);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Scrolls the container to the specified vertical position. If the view is large enough that\n'
20130515 '     * there is no scroll overflow then this method will have no affect.\n'
20130515 '     * @param {Number} y The new vertical scroll position in pixels \n'
20130515 '     * @param {Boolean} defer (optional) <p>True to slightly defer the call, false to execute immediately.</p> \n'
20130515 '     * <p>This method will automatically defer itself for IE and Opera (even if you pass false) otherwise\n'
20130515 '     * the scroll position will not update in those browsers. You can optionally pass true, however, to\n'
20130515 '     * force the defer in all browsers, or use your own custom conditions to determine whether this is needed.</p>\n'
20130515 '     * <p>Note that this method should not generally need to be called directly as scroll position is managed internally.</p>\n'
20130515 '     */\n'
20130515 '    scrollTo : function(y, defer){\n'
20130515 '        defer = defer || (Ext.isIE || Ext.isOpera);\n'
20130515 '        if(defer){\n'
20130515 '            (function(){\n'
20130515 "                this.el.scrollTo('top', y);\n"
20130515 '                this.scrollReady = true;\n'
20130515 '            }).defer(10, this);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.el.scrollTo('top', y);\n"
20130515 '            this.scrollReady = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayBodyTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                dayCount: this.dayCount,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime,\n'
20130515 '                showHourSeparator: this.showHourSeparator,\n'
20130515 '                viewStartHour: this.viewStartHour,\n'
20130515 '                viewEndHour: this.viewEndHour,\n'
20130515 '                hourIncrement: this.hourIncrement,\n'
20130515 '                hourHeight: this.hourHeight\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 '        \n'
20130515 "        this.addClass('ext-cal-body-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        // default scroll position to scrollStartHour (7am by default) or min view hour if later\n'
20130515 '        var startHour = Math.max(this.scrollStartHour, this.viewStartHour),\n'
20130515 '            scrollStart = Math.max(0, startHour - this.viewStartHour);\n'
20130515 '            \n'
20130515 '        if(scrollStart > 0){\n'
20130515 '            this.scrollTo(scrollStart * this.hourHeight);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private -- called from DayViewDropZone\n'
20130515 '    onEventResize : function(rec, data){\n'
20130515 "        if(this.fireEvent('beforeeventresize', this, rec, data) !== false){\n"
20130515 '            var D = Ext.ensible.Date,\n'
20130515 '                start = Ext.ensible.cal.EventMappings.StartDate.name,\n'
20130515 '                end = Ext.ensible.cal.EventMappings.EndDate.name;\n'
20130515 '                \n'
20130515 '            if(D.compare(rec.data[start], data.StartDate) === 0 &&\n'
20130515 '                D.compare(rec.data[end], data.EndDate) === 0){\n'
20130515 '                // no changes\n'
20130515 '                return;\n'
20130515 '            } \n'
20130515 '            rec.set(start, data.StartDate);\n'
20130515 '            rec.set(end, data.EndDate);\n'
20130515 '            this.onEventUpdate(null, rec);\n'
20130515 '            \n'
20130515 "            this.fireEvent('eventresize', this, rec);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    getEventBodyMarkup : function(){\n'
20130515 '        if(!this.eventBodyMarkup){\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\n"
20130515 '                \'<tpl if="_isReminder">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                '</tpl>',\n"
20130515 '                \'<tpl if="_isRecurring">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                '</tpl>'\n"
20130515 '//                \'<tpl if="spanLeft">\',\n'
20130515 '//                    \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "//                '</tpl>',\n"
20130515 '//                \'<tpl if="spanRight">\',\n'
20130515 '//                    \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "//                '</tpl>'\n"
20130515 "            ].join('');\n"
20130515 '        }\n'
20130515 '        return this.eventBodyMarkup;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    getEventTemplate : function(){\n'
20130515 '        if(!this.eventTpl){\n'
20130515 '            this.eventTpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="{_extraCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        \'<div class="ext-evt-bd">\', this.getEventBodyMarkup(), \'</div>\',\n'
20130515 '                        this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                    '</div>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="ext-cal-evt {_extraCls}" style="left: {_left}%; width: {_width}%; top: {_top}px;">\',\n'
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 '                        \'<dl style="height: {_height}px;" class="ext-cal-evdm">\',\n'
20130515 '                            \'<dd class="ext-evt-bd">\',\n'
20130515 '                                this.getEventBodyMarkup(),\n'
20130515 "                            '</dd>',\n"
20130515 '                            this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                        '</dl>',\n"
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 "                    '</div>'\n"
20130515 '                );\n'
20130515 '            this.eventTpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.eventTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with <strong>all-day</strong> events. \n'
20130515 '     * Internally this method by default generates different markup for browsers that support CSS border radius \n'
20130515 "     * and those that don't. This method can be overridden as needed to customize the markup generated.</p>\n"
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\n'
20130515 "     * from the surrounding container markup.  This provdes the flexibility to customize what's in the body without\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \n'
20130515 '     * overridden version also does the same.</p>\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\n'
20130515 '     */\n'
20130515 '    getEventAllDayTemplate : function(){\n'
20130515 '        if(!this.eventAllDayTpl){\n'
20130515 '            var tpl, body = this.getEventBodyMarkup();\n'
20130515 '            \n'
20130515 '            tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        body,\n'
20130515 "                    '</div>'\n"
20130515 '                ) \n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div class="ext-cal-evt" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evo">\',\n'
20130515 '                        \'<div class="ext-cal-evm">\',\n'
20130515 '                            \'<div class="ext-cal-evi">\',\n'
20130515 '                                body,\n'
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</div></div>'\n"
20130515 '                );\n'
20130515 '            tpl.compile();\n'
20130515 '            this.eventAllDayTpl = tpl;\n'
20130515 '        }\n'
20130515 '        return this.eventAllDayTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventData : function(evt){\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\n'
20130515 '            data = {},\n'
20130515 "            colorCls = 'x-cal-default',\n"
20130515 '            title = evt[M.Title.name],\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            recurring = evt[M.RRule.name] != '';\n"
20130515 '        \n'
20130515 '        this.getTemplateEventBox(evt);\n'
20130515 '        \n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\n'
20130515 '            if(rec){\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '') + (Ext.isIE || Ext.isOpera ? '-x' : '');\n"
20130515 '        extraClasses.push(colorCls);\n'
20130515 '        \n'
20130515 '        if(this.getEventClass){\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\n'
20130515 '            extraClasses.push(cls);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        data._extraCls = extraClasses.join(' ');\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\n"
20130515 '        \n'
20130515 '        return Ext.applyIf(data, evt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getEventPositionOffsets: function(){\n'
20130515 '        return {\n'
20130515 '            top: 1,\n'
20130515 '            height: -2\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventBox : function(evt){\n'
20130515 '        var heightFactor = this.hourHeight / this.hourIncrement,\n'
20130515 '            start = evt[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '            end = evt[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '            startOffset = Math.max(start.getHours() - this.viewStartHour, 0),\n'
20130515 '            endOffset = Math.min(end.getHours() - this.viewStartHour, this.viewEndHour - this.viewStartHour),\n'
20130515 '            startMins = startOffset * this.hourIncrement,\n'
20130515 '            endMins = endOffset * this.hourIncrement,\n'
20130515 '            viewEndDt = end.clearTime(true).add(Date.HOUR, this.viewEndHour),\n'
20130515 '            evtOffsets = this.getEventPositionOffsets();\n'
20130515 '            \n'
20130515 '        if(start.getHours() >= this.viewStartHour){\n'
20130515 '            // only add the minutes if the start is visible, otherwise it offsets the event incorrectly\n'
20130515 '            startMins += start.getMinutes();\n'
20130515 '        }\n'
20130515 '        if(end <= viewEndDt){\n'
20130515 '            // only add the minutes if the end is visible, otherwise it offsets the event incorrectly\n'
20130515 '            endMins += end.getMinutes();\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        evt._left = 0;\n'
20130515 '        evt._width = 100;\n'
20130515 '        evt._top = startMins * heightFactor + evtOffsets.top;\n'
20130515 '        evt._height = Math.max(((endMins - startMins) * heightFactor), this.minEventHeight) + evtOffsets.height;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        var day = 0, evts = [];\n'
20130515 '        for(; day < this.dayCount; day++){\n'
20130515 '            var ev = emptyCells = skipped = 0, \n'
20130515 '                d = this.eventGrid[0][day],\n'
20130515 '                ct = d ? d.length : 0, \n'
20130515 '                evt;\n'
20130515 '            \n'
20130515 '            for(; ev < ct; ev++){\n'
20130515 '                evt = d[ev];\n'
20130515 '                if(!evt){\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                var item = evt.data || evt.event.data,\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\n'
20130515 '                    ad = item[M.IsAllDay.name] === true,\n'
20130515 '                    span = Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0,\n'
20130515 '                    renderAsAllDay = ad || span;\n'
20130515 '                         \n'
20130515 '                if(renderAsAllDay){\n'
20130515 '                    // this event is already rendered in the header view\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                Ext.apply(item, {\n'
20130515 "                    cls: 'ext-cal-ev',\n"
20130515 '                    _positioned: true\n'
20130515 '                });\n'
20130515 '                evts.push({\n'
20130515 '                    data: this.getTemplateEventData(item),\n'
20130515 '                    date: this.viewStart.add(Date.DAY, day)\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // overlapping event pre-processing loop\n'
20130515 '        var i = j = 0, overlapCols = [], l = evts.length, prevDt;\n'
20130515 '        for(; i<l; i++){\n'
20130515 '            var evt = evts[i].data, \n'
20130515 '                evt2 = null, \n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '            \n'
20130515 '            for(j=0; j<l; j++){\n'
20130515 '                if(i==j)continue;\n'
20130515 '                evt2 = evts[j].data;\n'
20130515 '                if(this.isOverlapping(evt, evt2)){\n'
20130515 '                    evt._overlap = evt._overlap == undefined ? 1 : evt._overlap+1;\n'
20130515 '                    if(i<j){\n'
20130515 '                        if(evt._overcol===undefined){\n'
20130515 '                            evt._overcol = 0;\n'
20130515 '                        }\n'
20130515 '                        evt2._overcol = evt._overcol+1;\n'
20130515 '                        overlapCols[dt] = overlapCols[dt] ? Math.max(overlapCols[dt], evt2._overcol) : evt2._overcol;\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // rendering loop\n'
20130515 '        for(i=0; i<l; i++){\n'
20130515 '            var evt = evts[i].data,\n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '                \n'
20130515 '            if(evt._overlap !== undefined){\n'
20130515 '                var colWidth = 100 / (overlapCols[dt]+1),\n'
20130515 '                    evtWidth = 100 - (colWidth * evt._overlap);\n'
20130515 '                    \n'
20130515 '                evt._width = colWidth;\n'
20130515 '                evt._left = colWidth * evt._overcol;\n'
20130515 '            }\n'
20130515 '            var markup = this.getEventTemplate().apply(evt),\n'
20130515 "                target = this.id+'-day-col-'+evts[i].date.format('Ymd');\n"
20130515 '                \n'
20130515 '            Ext.DomHelper.append(target, markup);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('eventsrendered', this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayEl : function(dt){\n'
20130515 '        return Ext.get(this.getDayId(dt));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayId : function(dt){\n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format('Ymd');\n"
20130515 '        }\n'
20130515 '        return this.id + this.dayColumnElIdDelimiter + dt;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDaySize : function(){\n'
20130515 "        var box = this.el.child('.ext-cal-day-col-inner').getBox();\n"
20130515 '        return {height: box.height, width: box.width};\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayAt : function(x, y){\n'
20130515 "        var sel = '.ext-cal-body-ct',\n"
20130515 "            xoffset = this.el.child('.ext-cal-day-times').getWidth(),\n"
20130515 '            viewBox = this.el.getBox(),\n'
20130515 '            daySize = this.getDaySize(false),\n'
20130515 '            relX = x - viewBox.x - xoffset,\n'
20130515 '            dayIndex = Math.floor(relX / daySize.width), // clicked col index\n'
20130515 '            scroll = this.el.getScroll(),\n'
20130515 "            row = this.el.child('.ext-cal-bg-row'), // first avail row, just to calc size\n"
20130515 '            rowH = row.getHeight() / this.incrementsPerHour,\n'
20130515 '            relY = y - viewBox.y - rowH + scroll.top,\n'
20130515 '            rowIndex = Math.max(0, Math.ceil(relY / rowH)),\n'
20130515 '            mins = rowIndex * (this.hourIncrement / this.incrementsPerHour),\n'
20130515 '            dt = this.viewStart.add(Date.DAY, dayIndex).add(Date.MINUTE, mins).add(Date.HOUR, this.viewStartHour),\n'
20130515 '            el = this.getDayEl(dt),\n'
20130515 '            timeX = x;\n'
20130515 '        \n'
20130515 '        if(el){\n'
20130515 '            timeX = el.getLeft();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return {\n'
20130515 '            date: dt,\n'
20130515 '            el: el,\n'
20130515 '            // this is the box for the specific time block in the day that was clicked on:\n'
20130515 '            timeBox: {\n'
20130515 '                x: timeX,\n'
20130515 '                y: (rowIndex * this.hourHeight / this.incrementsPerHour) + viewBox.y - scroll.top,\n'
20130515 '                width: daySize.width,\n'
20130515 '                height: rowH\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        if(this.dragPending || Ext.ensible.cal.DayBodyView.superclass.onClick.apply(this, arguments)){\n'
20130515 '            // The superclass handled the click already so exit\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        if(e.getTarget('.ext-cal-day-times', 3) !== null){\n"
20130515 '            // ignore clicks on the times-of-day gutter\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        var el = e.getTarget('td', 3);\n"
20130515 '        if(el){\n'
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var dt = this.getDateFromId(el.id, this.dayElIdDelimiter);\n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        var day = this.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(day && day.date){\n'
20130515 '            this.onDayClick(day.date, false, null);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daybodyview', Ext.ensible.cal.DayBodyView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayView\n'
20130515 ' * @extends Ext.Container\n'
20130515 ' * <p>Unlike other calendar views, is not actually a subclass of {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 ' * Instead it is a {@link Ext.Container Container} subclass that internally creates and manages the layouts of\n'
20130515 ' * a {@link Ext.ensible.cal.DayHeaderView DayHeaderView} and a {@link Ext.ensible.cal.DayBodyView DayBodyView}. As such\n'
20130515 ' * DayView accepts any config values that are valid for DayHeaderView and DayBodyView and passes those through\n'
20130515 ' * to the contained views. It also supports the interface required of any calendar view and in turn calls methods\n'
20130515 ' * on the contained views as necessary.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayView = Ext.extend(Ext.Container, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\n"
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddCreateEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddCreateEventText: Ext.ensible.cal.CalendarView.prototype.ddCreateEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddMoveEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddMoveEventText: Ext.ensible.cal.CalendarView.prototype.ddMoveEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 1). Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 1,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEventResize\n'
20130515 "     * True to allow events in the view's scrolling body area to be updated by a resize handle at the \n"
20130515 '     * bottom of the event, false to disallow it (defaults to true). If {@link #readOnly} is true event \n'
20130515 '     * resizing will be disabled automatically.\n'
20130515 '     */\n'
20130515 '    enableEventResize: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} ddIncrement\n'
20130515 '     * <p>The number of minutes between each step during various drag/drop operations in the view (defaults to 30).\n'
20130515 '     * This controls the number of times the dragged object will "snap" to the view during a drag operation, and does\n'
20130515 '     * not have to match with the time boundaries displayed in the view. E.g., the view could be displayed in 30 minute\n'
20130515 '     * increments (the default) but you could configure ddIncrement to 10, which would snap a dragged object to the\n'
20130515 '     * view at 10 minute increments.</p>\n'
20130515 '     * <p>This config currently applies while dragging to move an event, resizing an event by its handle or dragging \n'
20130515 '     * on the view to create a new event.</p>\n'
20130515 '     */\n'
20130515 '    ddIncrement: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} minEventDisplayMinutes\n'
20130515 '     * This is the minimum <b>display</b> height, in minutes, for events shown in the view (defaults to 30). This setting\n'
20130515 '     * ensures that events with short duration are still readable (e.g., by default any event where the start and end\n'
20130515 '     * times were the same would have 0 height). It also applies when calculating whether multiple events should be\n'
20130515 '     * displayed as overlapping. In datetime terms, an event that starts and ends at 9:00 and another event that starts\n'
20130515 '     * and ends at 9:05 do not overlap, but visually the second event would obscure the first in the view. This setting\n'
20130515 '     * provides a way to ensure that such events will still be calculated as overlapping and displayed correctly.\n'
20130515 '     */\n'
20130515 '    minEventDisplayMinutes: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showHourSeparator\n'
20130515 '     * True to display a dotted line that separates each hour block in the scrolling body area at the half-hour mark \n'
20130515 '     * (the default), false to hide it.\n'
20130515 '     */\n'
20130515 '    showHourSeparator: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewStartHour\n'
20130515 "     * The hour of the day at which to begin the scrolling body area's times (defaults to 0, which equals early 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be less than the value of {@link viewEndHour}.\n'
20130515 '     */\n'
20130515 '    viewStartHour: 0,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewEndHour\n'
20130515 "     * The hour of the day at which to end the scrolling body area's times (defaults to 24, which equals late 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be greater than the value of {@link viewStartHour}. \n'
20130515 '     */\n'
20130515 '    viewEndHour: 24,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} scrollStartHour\n'
20130515 '     * The default hour of the day at which to set the body scroll position on view load (defaults to 7, which equals 7am / 07:00).\n'
20130515 '     * Note that if the body is not sufficiently overflowed to allow this positioning this setting will have no effect.\n'
20130515 '     * This setting should be equal to or greater than {@link viewStartHour}.\n'
20130515 '     */\n'
20130515 '    scrollStartHour: 7,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} hourHeight\n'
20130515 '     * <p>The height, in pixels, of each hour block displayed in the scrolling body area of the view (defaults to 42).</p> \n'
20130515 '     * <br><p><b>Important note:</b> While this config can be set to any reasonable integer value, note that it is also used to \n'
20130515 '     * calculate the ratio used when assigning event heights. By default, an hour is 60 minutes and 42 pixels high, so the\n'
20130515 '     * pixel-to-minute ratio is 42 / 60, or 0.7. This same ratio is then used when rendering events. When rendering a \n'
20130515 '     * 30 minute event, the rendered height would be 30 minutes * 0.7 = 21 pixels (as expected).</p>\n'
20130515 '     * <p>This is important to understand when changing this value because some browsers may handle pixel rounding in\n'
20130515 '     * different ways which could lead to inconsistent visual results in some cases. If you have any problems with pixel\n'
20130515 '     * precision in how events are laid out, you might try to stick with hourHeight values that will generate discreet ratios.\n'
20130515 '     * This is easily done by simply multiplying 60 minutes by different discreet ratios (.6, .8, 1.1, etc.) to get the \n'
20130515 '     * corresponding hourHeight pixel values (36, 48, 66, etc.) that will map back to those ratios. By contrast, if you \n'
20130515 '     * chose an hourHeight of 50 for example, the resulting height ratio would be 50 / 60 = .833333... This will work just\n'
20130515 '     * fine, just be aware that browsers may sometimes round the resulting height values inconsistently.\n'
20130515 '     */\n'
20130515 '    hourHeight: 42,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        // day count is only supported between 1 and 7 days\n'
20130515 '        this.dayCount = this.dayCount > 7 ? 7 : (this.dayCount < 1 ? 1 : this.dayCount);\n'
20130515 '        \n'
20130515 '        var cfg = Ext.apply({}, this.initialConfig);\n'
20130515 '        cfg.showTime = this.showTime;\n'
20130515 '        cfg.showTodayText = this.showTodayText;\n'
20130515 '        cfg.todayText = this.todayText;\n'
20130515 '        cfg.dayCount = this.dayCount;\n'
20130515 '        cfg.weekCount = 1;\n'
20130515 '        cfg.readOnly = this.readOnly;\n'
20130515 '        cfg.ddIncrement = this.ddIncrement;\n'
20130515 '        cfg.minEventDisplayMinutes = this.minEventDisplayMinutes;\n'
20130515 '        \n'
20130515 '        var header = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.dayheaderview',\n"
20130515 "            id: this.id+'-hd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        var body = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.daybodyview',\n"
20130515 '            enableEventResize: this.enableEventResize,\n'
20130515 '            showHourSeparator: this.showHourSeparator,\n'
20130515 '            viewStartHour: this.viewStartHour,\n'
20130515 '            viewEndHour: this.viewEndHour,\n'
20130515 '            scrollStartHour: this.scrollStartHour,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            id: this.id+'-bd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        this.items = [header, body];\n'
20130515 "        this.addClass('ext-cal-dayview ext-cal-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayView.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        Ext.ensible.cal.DayView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.header = Ext.getCmp(this.id+'-hd');\n"
20130515 "        this.body = Ext.getCmp(this.id+'-bd');\n"
20130515 "        this.body.on('eventsrendered', this.forceSize, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(){\n'
20130515 "        Ext.ensible.log('refresh (DayView)');\n"
20130515 '        this.header.refresh();\n'
20130515 '        this.body.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: function(){\n'
20130515 "        // The defer call is mainly for good ol' IE, but it doesn't hurt in\n"
20130515 '        // general to make sure that the window resize is good and done first\n'
20130515 '        // so that we can properly calculate sizes.\n'
20130515 '        (function(){\n'
20130515 "            var ct = this.el.up('.x-panel-body'),\n"
20130515 "                hd = this.el.child('.ext-cal-day-header'),\n"
20130515 '                h = ct.getHeight() - hd.getHeight();\n'
20130515 '            \n'
20130515 "            this.el.child('.ext-cal-body-ct').setHeight(h-1);\n"
20130515 '        }).defer(10, this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onResize : function(){\n'
20130515 '        this.forceSize();\n'
20130515 '        this.refresh.defer(1, this); //IE needs the defer\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /*\n'
20130515 '     * We have to "relay" this Component method so that the hidden\n'
20130515 "     * state will be properly reflected when the views' active state changes\n"
20130515 '     */\n'
20130515 '    doHide: function(){\n'
20130515 '        this.header.doHide.apply(this, arguments);\n'
20130515 '        this.body.doHide.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getViewBounds : function(){\n'
20130515 '        return this.header.getViewBounds();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\n'
20130515 '     * to the user use {@link #getViewBounds}.\n'
20130515 '     * @return {Date} The start date\n'
20130515 '     */\n'
20130515 '    getStartDate : function(){\n'
20130515 '        return this.header.getStartDate();\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 '        this.header.setStartDate(dt, true);\n'
20130515 '        this.body.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        this.header.renderItems();\n'
20130515 '        this.body.renderItems();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\n"
20130515 '     * @return {Boolean} True or false\n'
20130515 '     */\n'
20130515 '    isToday : function(){\n'
20130515 '        return this.header.isToday();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to contain the passed date\n'
20130515 '     * @param {Date} dt The date to display\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveTo : function(dt){\n'
20130515 '        this.header.moveTo(dt);\n'
20130515 '        return this.body.moveTo(dt, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the next consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.header.moveNext();\n'
20130515 '        return this.body.moveNext(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the previous consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    movePrev : function(noRefresh){\n'
20130515 '        this.header.movePrev();\n'
20130515 '        return this.body.movePrev(true);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveDays : function(value){\n'
20130515 '        this.header.moveDays(value);\n'
20130515 '        return this.body.moveDays(value, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to show today\n'
20130515 "     * @return {Date} Today's date\n"
20130515 '     */\n'
20130515 '    moveToday : function(){\n'
20130515 '        this.header.moveToday();\n'
20130515 '        return this.body.moveToday(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\n'
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    showEventEditor : function(rec, animateTarget){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.showEventEditor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\n"
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    dismissEventEditor : function(dismissMethod){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.dismissEventEditor.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayview', Ext.ensible.cal.DayView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.MultiDayView\n'
20130515 ' * @extends Ext.ensible.cal.DayView\n'
20130515 ' * <p>Displays a calendar view by day, more than one day at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiDayView = Ext.extend(Ext.ensible.cal.DayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 3).  Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 3,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} startDayIsStatic\n'
20130515 '     * <p>By default, any configuration of a multi-day view that contains fewer than 7 days will have a rolling\n'
20130515 '     * start day. If you view the next or previous views, the dates will be adjusted as needed so that each\n'
20130515 '     * view is contiguous (e.g., if the last day in the current view is Wednesday and you go to the next view\n'
20130515 '     * it will always begin with Thursday, regardless of the value of {@link #startDay}.</p>\n'
20130515 '     * <p>If you set <tt>startDayIsStatic</tt> to <tt>true</tt>, then the view will <em>always</em> begin on\n'
20130515 '     * {@link #startDay}. For any {@link #dayCount} less than 7, days outside the startDay + dayCount range\n'
20130515 '     * will not be viewable. If a date that is not in the viewable range is set into the view it will \n'
20130515 '     * automatically advance to the first viewable date for the current range.  This could be useful for \n'
20130515 '     * creating custom views like a weekday-only or weekend-only view.</p>\n'
20130515 '     * <p>Some example {@link Ext.ensible.cal.CalendarPanel CalendarPanel} configs:</p>\n'
20130515 '     * <pre><code>\n'
20130515 '    // Weekdays only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 5,\n'
20130515 '        startDay: 1,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    // Weekends only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 2,\n'
20130515 '        startDay: 6,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '     * </code></pre>\n'
20130515 '     */\n'
20130515 '    startDayIsStatic: false,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? 7 : this.dayCount, reload);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? -7 : -this.dayCount, reload);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multidayview', Ext.ensible.cal.MultiDayView);/**\n"
20130515 ' * @class Ext.ensible.cal.WeekView\n'
20130515 ' * @extends Ext.ensible.cal.MultiDayView\n'
20130515 ' * <p>Displays a calendar view by week. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\n'
20130515 ' * the week view.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekView = Ext.extend(Ext.ensible.cal.MultiDayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 7)\n'
20130515 '     */\n'
20130515 '    dayCount: 7\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.weekview', Ext.ensible.cal.WeekView);/**\n"
20130515 ' * @class Ext.ensible.cal.MultiWeekView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>Displays a calendar view by week, more than one week at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiWeekView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} weekCount\n'
20130515 '     * The number of weeks to display in the view (defaults to 2)\n'
20130515 '     */\n'
20130515 '    weekCount: 2,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(){\n'
20130515 '        return this.moveWeeks(this.weekCount, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(){\n'
20130515 '        return this.moveWeeks(-this.weekCount, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multiweekview', Ext.ensible.cal.MultiWeekView);/*\r\n"
20130515 ' * This is the view used internally by the panel that displays overflow events in the\r\n'
20130515 ' * month view. Anytime a day cell cannot display all of its events, it automatically displays\r\n'
20130515 ' * a link at the bottom to view all events for that day. When clicked, a panel pops up that\r\n'
20130515 ' * uses this view to display the events for that day.\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthDayDetailView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            eventsrendered: true\r\n'
20130515 '\t\t});\r\n'
20130515 '\t\t\r\n'
20130515 '        if(!this.el){\r\n'
20130515 "            this.el = document.createElement('div');\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        this.tpl = this.getTemplate();\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.MonthDayDetailView.superclass.afterRender.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'click': this.view.onClick,\r\n"
20130515 "\t\t\t'mouseover': this.view.onMouseOver,\r\n"
20130515 "\t\t\t'mouseout': this.view.onMouseOut,\r\n"
20130515 '            scope: this.view\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    getTemplate : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '\t        this.tpl = new Ext.XTemplate(\r\n'
20130515 '                \'<div class="ext-cal-mdv x-unselectable">\',\r\n'
20130515 '\t                \'<table class="ext-cal-mvd-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t\t\t\t\t'<tbody>',\r\n"
20130515 '\t\t\t\t\t\t\t\'<tpl for=".">\',\r\n'
20130515 '\t\t                        \'<tr><td class="ext-cal-ev">{markup}</td></tr>\',\r\n'
20130515 "\t\t\t\t\t\t\t'</tpl>',\r\n"
20130515 "\t                    '</tbody>',\r\n"
20130515 "\t                '</table>',\r\n"
20130515 "                '</div>'\r\n"
20130515 '\t        );\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 '        return this.tpl;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tupdate : function(dt){\r\n'
20130515 '\t\tthis.date = dt;\r\n'
20130515 '\t\tthis.refresh();\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    refresh : function(){\r\n'
20130515 '\t\tif(!this.rendered){\r\n'
20130515 '\t\t\treturn;\r\n'
20130515 '\t\t}\r\n'
20130515 '        var eventTpl = this.view.getEventTemplate(),\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\ttemplateData = [];\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tevts = this.store.queryBy(function(rec){\r\n'
20130515 '\t\t\t\tvar thisDt = this.date.clearTime(true).getTime(),\r\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '\t\t\t\t\trecStart = rec.data[M.StartDate.name].clearTime(true).getTime(),\r\n'
20130515 '\t            \tstartsOnDate = (thisDt == recStart),\r\n'
20130515 '\t\t\t\t\tspansDate = false,\r\n'
20130515 '                    calId = rec.data[M.CalendarId.name],\r\n'
20130515 '                    calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '                    \r\n'
20130515 '                if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '                    // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '                    return false;\r\n'
20130515 '                }\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tif(!startsOnDate){\r\n'
20130515 '\t\t\t\t\tvar recEnd = rec.data[Ext.ensible.cal.EventMappings.EndDate.name].clearTime(true).getTime();\r\n'
20130515 '\t            \tspansDate = recStart < thisDt && recEnd >= thisDt;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t            return startsOnDate || spansDate;\r\n'
20130515 '\t        }, this);\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.CalendarView.prototype.sortEventRecordsForDay.call(this, evts);\r\n'
20130515 '        \r\n'
20130515 '\t\tevts.each(function(evt){\r\n'
20130515 '            var item = evt.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '                \r\n'
20130515 '\t\t\titem._renderAsAllDay = item[M.IsAllDay.name] || Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0;\r\n'
20130515 '            item.spanLeft = Ext.ensible.Date.diffDays(item[M.StartDate.name], this.date) > 0;\r\n'
20130515 '            item.spanRight = Ext.ensible.Date.diffDays(this.date, item[M.EndDate.name]) > 0;\r\n'
20130515 "            item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \r\n"
20130515 "                'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\r\n"
20130515 '\r\n'
20130515 '\t\t\ttemplateData.push({markup: eventTpl.apply(this.getTemplateEventData(item))});\r\n'
20130515 '\t\t}, this);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.tpl.overwrite(this.el, templateData);\r\n'
20130515 "\t\tthis.fireEvent('eventsrendered', this, this.date, evts.getCount());\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tgetTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar data = this.view.getTemplateEventData(evt);\r\n'
20130515 "\t\tdata._elId = 'dtl-'+data._elId;\r\n"
20130515 '\t\treturn data;\r\n'
20130515 '\t}\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthdaydetailview', Ext.ensible.cal.MonthDayDetailView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarPanel\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is the default container for calendar views. It supports day, week, multi-week and month views as well\n'
20130515 ' * as a built-in event edit form. The only requirement for displaying a calendar is passing in a valid\n'
20130515 ' * {@link #Ext.data.Store store} config containing records of type {@link Ext.ensible.cal.EventRecord EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarPanel = Ext.extend(Ext.Panel, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} activeItem\n'
20130515 '     * The 0-based index within the available views to set as the default active view (defaults to undefined). If not \n'
20130515 '     * specified the default view will be set as the last one added to the panel. You can retrieve a reference to the\n'
20130515 '     * active {@link Ext.ensible.cal.CalendarView view} at any time using the {@link #activeView} property.\n'
20130515 '     */\n'
20130515 '    /*\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false, // not currently implemented\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showDayView\n'
20130515 '     * True to include the day view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showDayView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiDayView\n'
20130515 '     * True to include the multi-day view (and toolbar button), false to hide them (defaults to false).\n'
20130515 '     */\n'
20130515 '    showMultiDayView: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showWeekView\n'
20130515 '     * True to include the week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiWeekView\n'
20130515 '     * True to include the multi-week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showMultiWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMonthView\n'
20130515 '     * True to include the month view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     * If all other views are hidden, the month view will show by default even if this config is false.\n'
20130515 '     */\n'
20130515 '    showMonthView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavBar\n'
20130515 '     * True to display the calendar navigation toolbar, false to hide it (defaults to true). Note that\n'
20130515 "     * if you hide the default navigation toolbar you'll have to provide an alternate means of navigating the calendar.\n"
20130515 '     */\n'
20130515 '    showNavBar: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * Text to use for the 'Today' nav bar button.\n"
20130515 '     */\n'
20130515 "    todayText: 'Today',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to show the value of {@link #todayText} instead of today's date in the calendar's current day box,\n"
20130515 '     * false to display the day number(defaults to true).\n'
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time next to the date in the calendar's current day box, false to not show it \n"
20130515 '     * (defaults to true).\n'
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or calendar views from providing CRUD capabilities, false to enable CRUD \n'
20130515 '     * (the default). This option is passed into all views managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    readOnly: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavToday\n'
20130515 '     * True to display the "Today" button in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavToday: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavJump\n'
20130515 '     * True to display the "Jump to:" label in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavJump: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavNextPrev\n'
20130515 "     * True to display the left/right arrow buttons in the calendar panel's navigation header, false to not\n"
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavNextPrev: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} jumpToText\n'
20130515 "     * Text to use for the 'Jump to:' navigation label.\n"
20130515 '     */\n'
20130515 "    jumpToText: 'Jump to:',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} goText\n'
20130515 "     * Text to use for the 'Go' navigation button.\n"
20130515 '     */\n'
20130515 "    goText: 'Go',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} dayText\n'
20130515 "     * Text to use for the 'Day' nav bar button.\n"
20130515 '     */\n'
20130515 "    dayText: 'Day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiDayText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiDayText: '{0} Days',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} weekText\n'
20130515 "     * Text to use for the 'Week' nav bar button.\n"
20130515 '     */\n'
20130515 "    weekText: 'Week',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiWeekText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiWeekText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiWeekText: '{0} Weeks',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} monthText\n'
20130515 "     * Text to use for the 'Month' nav bar button.\n"
20130515 '     */\n'
20130515 "    monthText: 'Month',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} editModal\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\n'
20130515 '     * config will no longer apply. \n'
20130515 '     */\n'
20130515 '    editModal: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEditDetails\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\n'
20130515 '     * link and disable detailed event editing. \n'
20130515 '     */\n'
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\n'
20130515 '     * config), and either can be used interchangeably.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\n'
20130515 '     * the default calendar (and color).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} viewConfig\n'
20130515 '     * A config object that will be applied to all {@link Ext.ensible.cal.CalendarView views} managed by this CalendarPanel. Any\n'
20130515 '     * options on this object that do not apply to any particular view will simply be ignored.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} dayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.DayView DayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiDayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiDayView MultiDayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} weekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.WeekView WeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiWeekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiWeekView MultiWeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} monthViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MonthView MonthView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} editViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.EventEditForm EventEditForm} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * A reference to the {@link Ext.ensible.cal.CalendarView view} that is currently active.\n'
20130515 '     * @type {Ext.ensible.cal.CalendarView}\n'
20130515 '     * @property activeView\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    layoutConfig: {\n'
20130515 '        layoutOnCardChange: true,\n'
20130515 '        deferredRender: true\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private property\n'
20130515 '    startDate: new Date(),\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.tbar = {\n'
20130515 "            cls: 'ext-cal-toolbar',\n"
20130515 '            border: true,\n'
20130515 '            items: []\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.viewCount = 0;\n'
20130515 '        \n'
20130515 '        var multiDayViewCount = (this.multiDayViewCfg && this.multiDayViewCfg.dayCount) || 3,\n'
20130515 '            multiWeekViewCount = (this.multiWeekViewCfg && this.multiWeekViewCfg.weekCount) || 2;\n'
20130515 '        \n'
20130515 '        if(this.showNavToday){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-today', text: this.todayText, handler: this.onTodayClick, scope: this\n"
20130515 '            });\n'
20130515 '        }\n'
20130515 '        if(this.showNavNextPrev){\n'
20130515 '            this.tbar.items.push([\n'
20130515 "                {id: this.id+'-tb-prev', handler: this.onPrevClick, scope: this, iconCls: 'x-tbar-page-prev'},\n"
20130515 "                {id: this.id+'-tb-next', handler: this.onNextClick, scope: this, iconCls: 'x-tbar-page-next'}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        if(this.showNavJump){\n'
20130515 '            this.tbar.items.push([\n'
20130515 '                this.jumpToText,\n'
20130515 "                {id: this.id+'-tb-jump-dt', xtype: 'datefield', showToday: false},\n"
20130515 "                {id: this.id+'-tb-jump', text: this.goText, handler: this.onJumpClick, scope: this}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.tbar.items.push('->');\n"
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-day', text: this.dayText, handler: this.onDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var text = String.format(this.getMultiDayText(multiDayViewCount), multiDayViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiday', text: text, handler: this.onMultiDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-week', text: this.weekText, handler: this.onWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var text = String.format(this.getMultiWeekText(multiWeekViewCount), multiWeekViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiweek', text: text, handler: this.onMultiWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView || this.viewCount == 0){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-month', text: this.monthText, handler: this.onMonthNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '            this.showMonthView = true;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var idx = this.viewCount-1;\n'
20130515 '        this.activeItem = this.activeItem === undefined ? idx : (this.activeItem > idx ? idx : this.activeItem);\n'
20130515 '        \n'
20130515 '        if(this.showNavBar === false){\n'
20130515 '            delete this.tbar;\n'
20130515 "            this.addClass('x-calendar-nonav');\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added to the underlying store\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventdelete\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \n'
20130515 '             * will cancel the delete operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            beforeeventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted by the user.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event viewchange\n'
20130515 '             * Fires after a different calendar view is activated (but not when the event edit form is activated)\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.CalendarView} view The view being activated (any valid {@link Ext.ensible.cal.CalendarView CalendarView} subclass)\n'
20130515 '             * @param {Object} info Extra information about the newly activated view. This is a plain object \n'
20130515 '             * with following properties:<div class="mdetail-params"><ul>\n'
20130515 '             * <li><b><code>activeDate</code></b> : <div class="sub-desc">The currently-selected date</div></li>\n'
20130515 '             * <li><b><code>viewStart</code></b> : <div class="sub-desc">The first date in the new view range</div></li>\n'
20130515 '             * <li><b><code>viewEnd</code></b> : <div class="sub-desc">The last date in the new view range</div></li>\n'
20130515 '             * </ul></div>\n'
20130515 '             */\n'
20130515 '            viewchange: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the selected event in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}). Handling code should hide the active\n'
20130515 '             * event editor and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this The CalendarPanel\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} view The currently active {@link Ext.ensible.cal.CalendarView CalendarView} subclass\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '            \n'
20130515 '            \n'
20130515 '            //\n'
20130515 '            // NOTE: CalendarPanel also relays the following events from contained views as if they originated from this:\n'
20130515 '            //\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * @event eventsrendered\n'
20130515 '             * Fires after events are finished rendering in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this \n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventclick\n'
20130515 '             * <p>Fires after the user clicks on an event element.</p>\n'
20130515 '             * <p><strong>NOTE:</strong> This version of <code>eventclick</code> differs from the same event fired directly by\n'
20130515 '             * {@link Ext.ensible.cal.CalendarView CalendarView} subclasses in that it provides a default implementation (showing\n'
20130515 '             * the default edit window) and is also cancelable (if a handler returns <code>false</code> the edit window will not be shown).\n'
20130515 '             * This event when fired from a view class is simply a notification that an event was clicked and has no default behavior.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event rangeselect\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\n'
20130515 '             * function call (e.g., callback()).\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventover\n'
20130515 '             * Fires anytime the mouse is over an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventout\n'
20130515 '             * Fires anytime the mouse exits an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforedatechange\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\n'
20130515 '             * view change and the setting of the start date.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within a day/week view container and not on an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event datechange\n'
20130515 '             * Fires after the start date of the view changes\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventmove\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the move operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after an event element is dragged by the user and dropped in a new position\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\n'
20130515 '             * updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event initdrag\n'
20130515 '             * Fires when a drag operation is initiated in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayover\n'
20130515 '             * Fires while the mouse is over a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is being moused over\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayout\n'
20130515 '             * Fires when the mouse exits a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is exited\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event and the resize operation is complete. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.layout = 'card'; // do not allow override\n"
20130515 "        this.addClass('x-cal-panel');\n"
20130515 '        \n'
20130515 '        if(this.eventStore){\n'
20130515 '            this.store = this.eventStore;\n'
20130515 '            delete this.eventStore;\n'
20130515 '        }\n'
20130515 '        this.setStore(this.store);\n'
20130515 '        \n'
20130515 '        var sharedViewCfg = {\n'
20130515 '            showToday: this.showToday,\n'
20130515 '            todayText: this.todayText,\n'
20130515 '            showTodayText: this.showTodayText,\n'
20130515 '            showTime: this.showTime,\n'
20130515 '            readOnly: this.readOnly,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            store: this.store,\n'
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            editModal: this.editModal,\n'
20130515 '            enableEditDetails: this.enableEditDetails,\n'
20130515 '            ownerCalendarPanel: this\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            var day = Ext.apply({\n'
20130515 "                xtype: 'extensible.dayview',\n"
20130515 '                title: this.dayText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            day = Ext.apply(Ext.apply(day, this.viewConfig), this.dayViewCfg);\n'
20130515 "            day.id = this.id+'-day';\n"
20130515 '            this.initEventRelay(day);\n'
20130515 '            this.add(day);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var mday = Ext.apply({\n'
20130515 "                xtype: 'extensible.multidayview',\n"
20130515 '                title: this.getMultiDayText(multiDayViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mday = Ext.apply(Ext.apply(mday, this.viewConfig), this.multiDayViewCfg);\n'
20130515 "            mday.id = this.id+'-multiday';\n"
20130515 '            this.initEventRelay(mday);\n'
20130515 '            this.add(mday);\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            var wk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.weekview',\n"
20130515 '                title: this.weekText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            wk = Ext.apply(Ext.apply(wk, this.viewConfig), this.weekViewCfg);\n'
20130515 "            wk.id = this.id+'-week';\n"
20130515 '            this.initEventRelay(wk);\n'
20130515 '            this.add(wk);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var mwk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.multiweekview',\n"
20130515 '                title: this.getMultiWeekText(multiWeekViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mwk = Ext.apply(Ext.apply(mwk, this.viewConfig), this.multiWeekViewCfg);\n'
20130515 "            mwk.id = this.id+'-multiweek';\n"
20130515 '            this.initEventRelay(mwk);\n'
20130515 '            this.add(mwk);\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView){\n'
20130515 '            var month = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.monthview',\n"
20130515 '                title: this.monthText,\n'
20130515 '                listeners: {\n'
20130515 "                    'weekclick': {\n"
20130515 '                        fn: function(vw, dt){\n'
20130515 '                            this.showWeek(dt);\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            month = Ext.apply(Ext.apply(month, this.viewConfig), this.monthViewCfg);\n'
20130515 "            month.id = this.id+'-month';\n"
20130515 '            this.initEventRelay(month);\n'
20130515 '            this.add(month);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        this.add(Ext.applyIf({\n'
20130515 "            xtype: 'extensible.eventeditform',\n"
20130515 "            id: this.id+'-edit',\n"
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            listeners: {\n'
20130515 "                'eventadd':    { scope: this, fn: this.onEventAdd },\n"
20130515 "                'eventupdate': { scope: this, fn: this.onEventUpdate },\n"
20130515 "                'eventdelete': { scope: this, fn: this.onEventDelete },\n"
20130515 "                'eventcancel': { scope: this, fn: this.onEventCancel }\n"
20130515 '            }\n'
20130515 '        }, this.editViewCfg));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initEventRelay: function(cfg){\n'
20130515 '        cfg.listeners = cfg.listeners || {};\n'
20130515 '        cfg.listeners.afterrender = {\n'
20130515 '            fn: function(c){\n'
20130515 '                // relay view events so that app code only has to handle them in one place.\n'
20130515 '                // these events require no special handling by the calendar panel \n'
20130515 "                this.relayEvents(c, ['eventsrendered','eventclick','dayclick','eventover','eventout','beforedatechange',\n"
20130515 "                    'datechange','rangeselect','beforeeventmove','eventmove','initdrag','dayover','dayout','beforeeventresize',\n"
20130515 "                    'eventresize','eventadd','eventupdate','beforeeventdelete','eventdelete','eventcancel']);\n"
20130515 '                \n'
20130515 "                c.on('editdetails', this.onEditDetails, this);\n"
20130515 '            },\n'
20130515 '            scope: this,\n'
20130515 '            single: true\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.afterRender.call(this);\n'
20130515 "        this.body.addClass('x-cal-body');\n"
20130515 '        this.activeView = this.getLayout().activeItem;\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onLayout: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.onLayout.call(this);\n'
20130515 '        if(!this.navInitComplete){\n'
20130515 '            this.updateNavState();\n'
20130515 '            this.navInitComplete = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).\n"
20130515 '     */\n'
20130515 '    getMultiDayText: function(numDays){\n'
20130515 '        return this.multiDayText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).\n"
20130515 '     */\n'
20130515 '    getMultiWeekText: function(numWeeks){\n'
20130515 '        return this.multiWeekText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        var currStore = this.store;\n'
20130515 '        \n'
20130515 '        if(!initial && currStore){\n'
20130515 '            currStore.un("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreAdd : function(ds, recs, index){\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs;\n'
20130515 '        if(rec.phantom){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreUpdate : function(ds, rec, operation){\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.hideEditForm();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onStoreRemove : function(ds, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\n'
20130515 '        switch(action){\n'
20130515 "            case 'create': \n"
20130515 '                this.onStoreAdd(store, rec);\n'
20130515 '                break;\n'
20130515 "            case 'update':\n"
20130515 '                this.onStoreUpdate(store, rec, Ext.data.Record.COMMIT);\n'
20130515 '                break;\n'
20130515 "            case 'destroy':\n"
20130515 '                this.onStoreRemove(store, rec);\n'
20130515 '                break;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetails: function(vw, rec, el){\n'
20130515 "        if(this.fireEvent('editdetails', this, vw, rec, el) !== false){\n"
20130515 '            this.showEditForm(rec);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    save: function(){\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\n"
20130515 '        // method will have already internally caused a save to execute on\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\n'
20130515 "        // otherwise we'll create duplicate transactions.\n"
20130515 '        if(!this.store.autoSave){\n'
20130515 '            this.store.save();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    onEventAdd: function(form, rec){\n'
20130515 '        if(!rec.store){\n'
20130515 '            this.store.add(rec);\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('eventadd', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventUpdate: function(form, rec){\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventDelete: function(form, rec){\n'
20130515 '        this.store.remove(rec);\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventCancel: function(form, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the built-in event edit form for the passed in event record.  This method automatically\n'
20130515 '     * hides the calendar views and navigation toolbar.  To return to the calendar, call {@link #hideEditForm}.\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} record The event record to edit\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    showEditForm: function(rec){\n'
20130515 '        this.preEditView = this.layout.activeItem.id;\n'
20130515 "        this.setActiveView(this.id+'-edit');\n"
20130515 '        this.layout.activeItem.loadRecord(rec);\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Hides the built-in event edit form and returns to the previous calendar view. If the edit form is\n'
20130515 '     * not currently visible this method has no effect.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    hideEditForm: function(){\n'
20130515 '        if(this.preEditView){\n'
20130515 '            this.setActiveView(this.preEditView);\n'
20130515 '            delete this.preEditView;\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    setActiveView: function(id){\n'
20130515 '        var l = this.layout,\n'
20130515 '            tb = this.getTopToolbar();\n'
20130515 '            \n'
20130515 '        l.setActiveItem(id);\n'
20130515 '        this.activeView = l.activeItem;\n'
20130515 '        \n'
20130515 "        if(id == this.id+'-edit'){\n"
20130515 '            if(tb){\n'
20130515 '                tb.hide();\n'
20130515 '            }\n'
20130515 '            this.doLayout();\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(id !== this.preEditView){\n'
20130515 '                l.activeItem.setStartDate(this.startDate, true);\n'
20130515 '            }\n'
20130515 '            if(tb){\n'
20130515 '               tb.show();\n'
20130515 '           }\n'
20130515 '           this.updateNavState();\n'
20130515 '        }\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    fireViewChange: function(){\n'
20130515 '        var info = null, \n'
20130515 '            view = this.layout.activeItem;\n'
20130515 '            \n'
20130515 '        if(view.getViewBounds){\n'
20130515 '            var vb = view.getViewBounds(),\n'
20130515 '            info = {\n'
20130515 '                activeDate: view.getStartDate(),\n'
20130515 '                viewStart: vb.start,\n'
20130515 '                viewEnd: vb.end\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if(view.dismissEventEditor){\n'
20130515 '            view.dismissEventEditor();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('viewchange', this, view, info);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateNavState: function(){\n'
20130515 '        if(this.showNavBar !== false){\n'
20130515 '            var item = this.layout.activeItem,\n'
20130515 "                suffix = item.id.split(this.id+'-')[1];\n"
20130515 '            \n'
20130515 '            if(this.showNavToday){\n'
20130515 "                Ext.getCmp(this.id+'-tb-today').setDisabled(item.isToday());\n"
20130515 '            }\n'
20130515 "            var btn = Ext.getCmp(this.id+'-tb-'+suffix);\n"
20130515 '            btn.toggle(true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date for the currently-active calendar view.\n'
20130515 '     * @param {Date} dt The new start date\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 "        Ext.ensible.log('setStartDate (CalendarPanel');\n"
20130515 '        this.startDate = dt;\n'
20130515 '        this.layout.activeItem.setStartDate(dt, true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    showWeek: function(dt){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '        this.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onTodayClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveToday(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onJumpClick: function(){\n'
20130515 "        var dt = Ext.getCmp(this.id+'-tb-jump-dt').getValue();\n"
20130515 "        if(dt !== ''){\n"
20130515 '            this.startDate = this.layout.activeItem.moveTo(dt, true);\n'
20130515 '            this.updateNavState();\n'
20130515 '            // TODO: check that view actually changed:\n'
20130515 '            this.fireViewChange();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onPrevClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.movePrev(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onNextClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveNext(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-day');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiday');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiweek');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMonthNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-month');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Return the calendar view that is currently active, which will be a subclass of\n'
20130515 '     * {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} The active view\n'
20130515 '     */\n'
20130515 '    getActiveView: function(){\n'
20130515 '        return this.layout.activeItem;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarpanel', Ext.ensible.cal.CalendarPanel);"
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:10 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 5613\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/*\n'
20130515 ' * French (France) locale\n'
20130515 ' * Contributors: devil1591, Alain Deseine, Yannick Torres\n'
20130515 ' */\n'
20130515 '\n'
20130515 'Ext.ensible.Date.use24HourTime = true;\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarView.prototype, {\n'
20130515 '        startDay: 1,\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        defaultEventTitleText: '(Pas de titre)',\n"
20130515 "        ddCreateEventText: 'Cr\xc3\xa9er \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddMoveEventText: 'D\xc3\xa9placer \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddResizeEventText: 'Mettre \xc3\xa0 jour l\\'\xc3\xa9v\xc3\xa9nement au {0}'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthView.prototype, {\n'
20130515 "        moreText: '+{0} autres ...',\n"
20130515 '        getMoreText: function(numEvents){\n'
20130515 "            return '+{0} autres ...';\n"
20130515 '        },\n'
20130515 "        detailsTitleDateFormat: 'd F'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarPanel) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarPanel.prototype, {\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        dayText: 'Jour',\n"
20130515 "        weekText: 'Semaine',\n"
20130515 "        monthText: 'Mois',\n"
20130515 "        jumpToText: 'Aller au :',\n"
20130515 "        goText: 'Ok',\n"
20130515 "        multiDayText: '{0} jours',\n"
20130515 "        multiWeekText: '{0} semaines',\n"
20130515 '        getMultiDayText: function(numDays){\n'
20130515 "            return '{0} jours';\n"
20130515 '        },\n'
20130515 '        getMultiWeekText: function(numWeeks){\n'
20130515 "            return '{0} semaines';\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditWindow) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditWindow.prototype, {\n'
20130515 '        width: 650,\n'
20130515 '        labelWidth: 65,\n'
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        savingMessage: 'Sauvegarde des changements...',\n"
20130515 "        deletingMessage: 'Suppression de l\\'\xc3\xa9v\xc3\xa8nement...',\n"
20130515 "        detailsLinkText: 'D\xc3\xa9tail de l\\'\xc3\xa9v\xc3\xa9nement...',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        calendarLabelText: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditForm) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditForm.prototype, {\n'
20130515 '        labelWidth: 55,\n'
20130515 '        labelWidthRightCol: 80,\n'
20130515 "        title: 'Formulaire \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        reminderLabelText: 'Rappel',\n"
20130515 "        notesLabelText: 'Notes',\n"
20130515 "        locationLabelText: 'Lieu',\n"
20130515 "        webLinkLabelText: 'Lien internet',\n"
20130515 "        calendarLabelText: 'Agenda',\n"
20130515 "        repeatsLabelText: 'R\xc3\xa9p\xc3\xa9ter'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        toText: 'au',\n"
20130515 "        allDayText: 'Toute la journ\xc3\xa9e'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarCombo.prototype, {\n'
20130515 "        fieldLabel: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarList) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarList.prototype, {\n'
20130515 "        title: 'Agendas'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarListMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarListMenu.prototype, {\n'
20130515 "        displayOnlyThisCalendarText: 'N\\'afficher que cet agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.RecurrenceCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.RecurrenceCombo.prototype, {\n'
20130515 "        fieldLabel: 'R\xc3\xa9ccurence',\n"
20130515 '        recurrenceText: {\n'
20130515 "            none: 'Ne pas r\xc3\xa9p\xc3\xa9ter',\n"
20130515 "            daily: 'Quotidien',\n"
20130515 "            weekly: 'Hebdomadaire',\n"
20130515 "            monthly: 'Mensuel',\n"
20130515 "            yearly: 'Annuel'\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.ReminderField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.ReminderField.prototype, {\n'
20130515 "        fieldLabel: 'Rappel',\n"
20130515 "        noneText: 'Aucun',\n"
20130515 "        atStartTimeText: 'au d\xc3\xa9but',\n"
20130515 '        getMinutesText: function(numMinutes){\n'
20130515 "            return numMinutes === 1 ? 'minute' : 'minutes';\n"
20130515 '        },\n'
20130515 '        getHoursText: function(numHours){\n'
20130515 "            return numHours === 1 ? 'heure' : 'heures';\n"
20130515 '        },\n'
20130515 '        getDaysText: function(numDays){\n'
20130515 "            return numDays === 1 ? 'jour' : 'jours';\n"
20130515 '        },\n'
20130515 '        getWeeksText: function(numWeeks){\n'
20130515 "            return numWeeks === 1 ? 'semaine' : 'semaines';\n"
20130515 '        },\n'
20130515 '        reminderValueFormat: \'{0} {1} avant le d\xc3\xa9but\' // e.g. "2 hours before start"\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        dateFormat: 'd/m/Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventContextMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventContextMenu.prototype, {\n'
20130515 "        editDetailsText: '\xc3\x89diter les d\xc3\xa9tails',\n"
20130515 "        deleteText: 'Effacer',\n"
20130515 "        moveToText: 'D\xc3\xa9placer au...'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat: 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DayViewDropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DayViewDropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat : 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.BoxLayoutTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.BoxLayoutTemplate.prototype, {\n'
20130515 "        firstWeekDateFormat: 'D d',\n"
20130515 "        otherWeeksDateFormat: 'd',\n"
20130515 "        singleDayDateFormat: 'l d F Y',\n"
20130515 "        multiDayFirstDayFormat: 'd M Y',\n"
20130515 "        multiDayMonthStartFormat: 'd M'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthViewTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthViewTemplate.prototype, {\n'
20130515 "        dayHeaderFormat: 'D',\n"
20130515 "        dayHeaderTitleFormat: 'l d F Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:10 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21304\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/** ************************************************************\r\n'
20130515 '\tExt.ux.TinyMCE v0.8.5\r\n'
20130515 '\tExtJS form field containing TinyMCE v3.\r\n'
20130515 '\t\r\n'
20130515 '\tAuthor: Andrew Mayorov et al.\r\n'
20130515 '\thttp://blogs.byte-force.com/xor\r\n'
20130515 '  \r\n'
20130515 '\tCopyright (c)2008-2010 BYTE-force\r\n'
20130515 '\twww.byte-force.com\r\n'
20130515 '\t\r\n'
20130515 '\tLicense: LGPLv2.1 or later\r\n'
20130515 '  \r\n'
20130515 '  Modifs by Luc Saffre:\r\n'
20130515 '  \r\n'
20130515 '  disable function sets ``this.disabled = true;`` \r\n'
20130515 '  (enable function the opposite)\r\n'
20130515 '  \r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '(function() {\r\n'
20130515 '\r\n'
20130515 '\tExt.namespace("Ext.ux");\r\n'
20130515 '\r\n'
20130515 '\tvar tmceInitialized = false;\r\n'
20130515 '\r\n'
20130515 '\t// Lazy references to classes. To be filled in the initTinyMCE method.\r\n'
20130515 '\tvar WindowManager;\r\n'
20130515 '\tvar ControlManager;\r\n'
20130515 '\r\n'
20130515 '\t// Create a new Windows Group for the dialogs\r\n'
20130515 '\t/*var windowGroup = new Ext.WindowGroup();\r\n'
20130515 '\twindowGroup.zseed = 12000;*/\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\t/** ----------------------------------------------------------\r\n'
20130515 '\tExt.ux.TinyMCE\r\n'
20130515 '\t*/\r\n'
20130515 '\tExt.ux.TinyMCE = Ext.extend( Ext.form.Field, {\r\n'
20130515 '\r\n'
20130515 '\t\t// TinyMCE Settings specified for this instance of the editor.\r\n'
20130515 '\t\ttinymceSettings: null,\r\n'
20130515 '\r\n'
20130515 '\t\t// Validation properties\r\n'
20130515 '\t\tallowBlank: true,\r\n'
20130515 '\t\tinvalidText: "The value in this field is invalid",\r\n'
20130515 '\t\tinvalidClass: "invalid-content-body",\r\n'
20130515 "\t\tminLengthText : 'The minimum length for this field is {0}',\r\n"
20130515 "\t\tmaxLengthText : 'The maximum length for this field is {0}',\r\n"
20130515 "\t\tblankText : 'This field is required',\r\n"
20130515 '\r\n'
20130515 '\t\t// HTML markup for this field\r\n'
20130515 "\t\thideMode: 'offsets',\r\n"
20130515 '\t\tdefaultAutoCreate: {\r\n'
20130515 '\t\t\ttag: "textarea",\r\n'
20130515 '\t\t\tstyle: "width:1px;height:1px;",\r\n'
20130515 '\t\t\tautocomplete: "off"\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tconstructor: function(cfg) {\r\n'
20130515 '\r\n'
20130515 '\t\t\tvar config = {\r\n'
20130515 '\t\t\t\ttinymceSettings: {\r\n'
20130515 '\t\t\t\t\taccessibility_focus: false\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.apply(config, cfg);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Add events\r\n'
20130515 '\t\t\tthis.addEvents({\r\n'
20130515 '\t\t\t\t"editorcreated": true\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.constructor.call(this, config);\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitComponent: function() {\r\n'
20130515 '\t\t\tthis.tinymceSettings = this.tinymceSettings || {};\r\n'
20130515 "      //~ console.log('initComponent',this.tinymceSettings);\r\n"
20130515 '\t\t\tExt.ux.TinyMCE.initTinyMCE({ language: this.tinymceSettings.language });\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitEvents: function() {\r\n'
20130515 '\t\t\tthis.originalValue = this.getValue();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonRender: function(ct, position) {\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Fix size if it was specified in config\r\n'
20130515 '\t\t\tif (Ext.type(this.width) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.width = this.width;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (Ext.type(this.height) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.height = this.height;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 "\t\t\t//this.el.dom.style.border = '0 none';\r\n"
20130515 "\t\t\tthis.el.dom.setAttribute('tabIndex', -1);\r\n"
20130515 "\t\t\tthis.el.addClass('x-hidden');\r\n"
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Wrap textarea into DIV\r\n'
20130515 '\t\t\tthis.textareaEl = this.el;\r\n'
20130515 '\t\t\tvar wrapElStyle = { overflow: "hidden" };\r\n'
20130515 '\t\t\tif( Ext.isIE ) { // fix IE 1px bogus margin\r\n'
20130515 '\t\t\t\twrapElStyle["margin-top"] = "-1px";\r\n'
20130515 '\t\t\t\twrapElStyle["margin-bottom"] = "-1px";\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tthis.wrapEl = this.el.wrap({ style: wrapElStyle });\r\n'
20130515 '\t\t\tthis.actionMode = "wrapEl"; // Set action element to the new wrapper\r\n'
20130515 '\t\t\tthis.positionEl = this.wrapEl;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar id = this.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Create TinyMCE editor.\r\n'
20130515 '\t\t\tthis.ed = new tinymce.Editor(id, this.tinymceSettings);\r\n'
20130515 '      \r\n'
20130515 '      // LS 20110602\r\n'
20130515 '      //~ this.ed.addShortcut(\'ctrl+c\', "Close editor window", ct.close,this);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Validate value onKeyPress\r\n'
20130515 '\t\t\tvar validateContentTask = new Ext.util.DelayedTask( this.validate, this );\r\n'
20130515 '\t\t\tthis.ed.onKeyPress.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvalidateContentTask.delay( 250 );\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 "\t\t\t// Set up editor events' handlers\r\n"
20130515 '\t\t\tthis.ed.onBeforeRenderUI.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\t// Replace control manager\r\n'
20130515 '\t\t\t\ted.controlManager = new ControlManager(this, ed);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.ed.onPostRender.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvar s = ed.settings;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Modify markup.\r\n'
20130515 '\t\t\t\tvar tbar = Ext.get(Ext.DomQuery.selectNode("#" + this.ed.id + "_tbl td.mceToolbar"));\r\n'
20130515 '\t\t\t\tif( tbar != null ) {\r\n'
20130515 '\t\t\t\t\t// If toolbar is present\r\n'
20130515 '\t\t\t\t\tvar tbars = tbar.select("> table.mceToolbar");\r\n'
20130515 '\t\t\t\t\tExt.DomHelper\r\n'
20130515 '\t\t\t\t\t\t.append( tbar,\r\n'
20130515 '\t\t\t\t\t\t\t{ tag: "div", id: this.ed.id + "_xtbar", style: { overflow: "hidden"} }\r\n'
20130515 '\t\t\t\t\t\t\t, true )\r\n'
20130515 '\t\t\t\t\t\t.appendChild(tbars);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\t// Change window manager\r\n'
20130515 '\t\t\t\ted.windowManager = new WindowManager({\r\n'
20130515 '\t\t\t\t\teditor: this.ed,\r\n'
20130515 '\t\t\t\t\tmanager: this.manager\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t\t// Patch css-style for validation body like ExtJS\r\n'
20130515 "\t\t\t\tExt.get(ed.getContentAreaContainer()).addClass('patch-content-body');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t// Event of focused body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("focus", this.onFocus, this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Event of blur body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("blur", this.onBlur, this,\r\n'
20130515 '\t\t\t\t\t\tthis.inEditor && Ext.isWindows && Ext.isGecko ? { buffer: 10} : null\r\n'
20130515 '\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Set event handler on editor init.\r\n'
20130515 '\t\t\t//this.ed.onInit.add(function() {\r\n'
20130515 '\t\t\t//} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Wire "change" event\r\n'
20130515 '\t\t\tthis.ed.onChange.add(function(ed, l) {\r\n'
20130515 '\t\t\t\tthis.fireEvent("change", ed, l);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Render the editor\r\n'
20130515 '\t\t\tthis.ed.render();\r\n'
20130515 '\t\t\ttinyMCE.add(this.ed);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Fix editor size when control will be visible\r\n'
20130515 '\t\t\t(function fixEditorSize() {\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t\t// If element is not visible yet, wait.\r\n'
20130515 '\t\t\t\tif( !this.isVisible() ) {\r\n'
20130515 '\t\t\t\t\targuments.callee.defer( 50, this );\r\n'
20130515 '\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tvar size = this.getSize();\r\n'
20130515 '\t\t\t\tthis.withEd( function() {\r\n'
20130515 '\t\t\t\t\tthis._setEditorSize( size.width, size.height );\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t\t// Indicate that editor is created\r\n'
20130515 '\t\t\t\t\tthis.fireEvent("editorcreated");\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t}).call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetResizeEl: function() {\r\n'
20130515 '\t\t\treturn this.wrapEl;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t* Returns the name attribute of the field if available\r\n'
20130515 '\t\t* @return {String} name The field name\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetName: function() {\r\n'
20130515 '\t\t\treturn this.rendered && this.textareaEl.dom.name\r\n'
20130515 "\t\t\t\t? this.textareaEl.dom.name : (this.name || '');\r\n"
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif (!this.rendered)\r\n'
20130515 '\t\t\t\tExt.ux.TinyMCE.superclass.initValue.call(this);\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\tif (this.value !== undefined) {\r\n'
20130515 '\t\t\t\t\tthis.setValue(this.value);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse {\r\n'
20130515 '\t\t\t\t\tvar v = this.textareaEl.value; \r\n'
20130515 '\t\t\t\t\tif ( v )\r\n'
20130515 '\t\t\t\t\t\tthis.setValue( v );\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tbeforeDestroy: function() {\r\n'
20130515 '\t\t\tif( this.ed ) tinyMCE.remove( this.ed );\r\n'
20130515 '\t\t\tif( this.wrapEl ) Ext.destroy( this.wrapEl );\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.beforeDestroy.call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetRawValue : function(){\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '\t\t\tif(v === this.emptyText){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '      //~ console.log(v);\r\n'
20130515 '\t\t\tif( v === this.emptyText || v === undefined ){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetRawValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setRawValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t\tthis.validate();\r\n'
20130515 '\t\t\t\t\t//this.ed.resizeToContent();\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tisDirty: function() {\r\n'
20130515 '\t\t\tif (this.disabled || !this.rendered) {\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn this.ed && this.ed.initialized && this.ed.isDirty();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsyncValue: function() {\r\n'
20130515 '\t\t\tif (this.rendered && this.ed.initialized)\r\n'
20130515 '\t\t\t\tthis.ed.save();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetEd: function() {\r\n'
20130515 '\t\t\treturn this.ed;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tdisable: function() {\r\n'
20130515 '      this.disabled = true;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = true;\r\n'
20130515 '        //~ this.ed.setupContentEditable(false);\r\n'
20130515 '        //~ this.ed.controlManager.setDisabled(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = true;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceContentBody')) {\r\n"
20130515 "          //~ console.log('Ext.ux.TinyMCE.disable() 3') \r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceContentBody');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceNonEditable');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.readonly = true;\r\n'
20130515 '\t\t\t\t\t//~ bodyEl.setAttribute("disabled", "disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tenable: function() {\r\n'
20130515 '      this.disabled = false;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = false;\r\n'
20130515 '        //~ this.ed.setupContentEditable(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = false;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceNonEditable')) {\r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceNonEditable');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceContentBody');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.removeAttribute("disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonResize: function(aw, ah) {\r\n'
20130515 '\t\t\tif( Ext.type( aw ) != "number" ){\r\n'
20130515 '\t\t\t\taw = this.getWidth();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif( Ext.type(ah) != "number" ){\r\n'
20130515 '\t\t\t\tah = this.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (aw == 0 || ah == 0)\r\n'
20130515 '\t\t\t\treturn;\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( this.rendered && this.isVisible() ) {\r\n'
20130515 '\t\t\t\tthis.withEd(function() { this._setEditorSize( aw, ah ); });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tSets control size to the given width and height\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\t_setEditorSize: function( width, height ) {\r\n'
20130515 '\t\t  //~ console.log("_setEditorSize",arguments);\r\n'
20130515 '\t\t\t// We currently support only advanced theme resize\r\n'
20130515 '\t\t\tif( !this.ed.theme.AdvancedTheme ) {\r\n'
20130515 '          //~ console.log("We currently support only advanced theme resize, but this.ed.theme is",this.ed.theme);\r\n'
20130515 '          return;\r\n'
20130515 '      }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\t// Minimal width and height for advanced theme\r\n'
20130515 '\t\t\tif( width < 100 ) width = 100;\r\n'
20130515 '\t\t\tif( height < 129 ) height = 129;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Set toolbar div width\r\n'
20130515 '\t\t\tvar edTable = Ext.get(this.ed.id + "_tbl"), \r\n'
20130515 '\t\t\t\tedIframe = Ext.get(this.ed.id + "_ifr"),\r\n'
20130515 '\t\t\t\tedToolbar = Ext.get(this.ed.id + "_xtbar");\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarWidth = width;\r\n'
20130515 '\t\t\tif( edTable ) \r\n'
20130515 '\t\t\t\ttoolbarWidth = width - edTable.getFrameWidth( "lr" );\t\t\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarHeight = 0;\r\n'
20130515 '\t\t\tif( edToolbar ) {\r\n'
20130515 '\t\t\t\ttoolbarHeight = edToolbar.getHeight();\r\n'
20130515 '\t\t\t\tvar toolbarTd = edToolbar.findParent( "td", 5, true );\r\n'
20130515 '\t\t\t\ttoolbarHeight += toolbarTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\tedToolbar.setWidth( toolbarWidth );\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar edStatusbarTd = edTable.child( ".mceStatusbar" );\r\n'
20130515 '\t\t\tvar statusbarHeight = 0;\r\n'
20130515 '\t\t\tif( edStatusbarTd ) {\r\n'
20130515 '\t\t\t\tstatusbarHeight += edStatusbarTd.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar iframeHeight = height - toolbarHeight - statusbarHeight;\r\n'
20130515 '\t\t\tvar iframeTd = edIframe.findParent( "td", 5, true );\r\n'
20130515 '\t\t\tif( iframeTd )\r\n'
20130515 '\t\t\t\tiframeHeight -= iframeTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t// Resize iframe and container\r\n'
20130515 '\t\t\tedTable.setSize( width, height );\r\n'
20130515 '\t\t\tedIframe.setSize( toolbarWidth, iframeHeight );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tfocus: function(selectText, delay) {\r\n'
20130515 '\t\t\tif (delay) {\r\n'
20130515 "\t\t\t\tthis.focus.defer(typeof delay == 'number' ? delay : 10, this, [selectText, false]);\r\n"
20130515 '\t\t\t\treturn;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\tthis.ed.focus();\r\n'
20130515 '\t\t\t\t/*if (selectText === true) {\r\n'
20130515 "\t\t\t\t// TODO: Select editor's content\r\n"
20130515 '\t\t\t\t}*/\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\treturn this;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tprocessValue : function( value ){\r\n'
20130515 '\t\t\treturn Ext.util.Format.stripTags( value );\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tvalidateValue: function( value ) {\r\n'
20130515 '\t\t\tif(Ext.isFunction(this.validator)){\r\n'
20130515 '\t\t\t\tvar msg = this.validator(value);\r\n'
20130515 '\t\t\t\tif(msg !== true){\r\n'
20130515 '\t\t\t\t\tthis.markInvalid(msg);\r\n'
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 "\t\t\tif(value.length < 1 || value === this.emptyText){ // if it's blank\r\n"
20130515 '\t\t\t\t if(this.allowBlank){\r\n'
20130515 '\t\t\t\t\t this.clearInvalid();\r\n'
20130515 '\t\t\t\t\t return true;\r\n'
20130515 '\t\t\t\t }else{\r\n'
20130515 '\t\t\t\t\t this.markInvalid(this.blankText);\r\n'
20130515 '\t\t\t\t\t return false;\r\n'
20130515 '\t\t\t\t }\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length < this.minLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.minLengthText, this.minLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length > this.maxLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.maxLengthText, this.maxLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\t\r\n'
20130515 '\t\t\tif(this.vtype){\r\n'
20130515 '\t\t\t\tvar vt = Ext.form.VTypes;\r\n'
20130515 '\t\t\t\tif(!vt[this.vtype](value, this)){\r\n'
20130515 "\t\t\t\t\tthis.markInvalid(this.vtypeText || vt[this.vtype +'Text']);\r\n"
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(this.regex && !this.regex.test(value)){\r\n'
20130515 '\t\t\t\tthis.markInvalid(this.regexText);\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn true;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\tIf ed (local editor instance) is already initilized, calls\r\n'
20130515 '\t\tspecified function directly. Otherwise - adds it to ed.onInit event.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\twithEd: function(func) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t// If editor is not created yet, reschedule this call.\r\n'
20130515 '\t\t\tif (!this.ed) this.on(\r\n'
20130515 '\t\t\t\t"editorcreated",\r\n'
20130515 '\t\t\t\tfunction() { this.withEd(func); },\r\n'
20130515 '\t\t\t\tthis);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created and initialized\r\n'
20130515 '\t\t\telse if (this.ed.initialized) func.call(this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created but not initialized yet.\r\n'
20130515 '\t\t\telse this.ed.onInit.add(function() { func.defer(10, this); } .createDelegate(this));\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\t// Add static members\r\n'
20130515 '\tExt.apply(Ext.ux.TinyMCE, {\r\n'
20130515 '\r\n'
20130515 '\t\t/**\r\n'
20130515 '\t\tStatic field with all the plugins that should be loaded by TinyMCE.\r\n'
20130515 '\t\tShould be set before first component would be created.\r\n'
20130515 '\t\t@static\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\ttinymcePlugins: "pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template",\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tInits TinyMCE and other necessary dependencies.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitTinyMCE: function(settings) {\r\n'
20130515 '\t\t\tif (!tmceInitialized) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Create lazy classes\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tWindowManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tWindowManager = Ext.extend( tinymce.WindowManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t\tConfig parameters:\r\n'
20130515 '\t\t\t\t\t\teditor - reference to TinyMCE intstance.\r\n'
20130515 '\t\t\t\t\t\tmangager - WindowGroup to use for the popup window. Could be empty.\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function( cfg ) {\r\n'
20130515 '\t\t\t\t\t\tWindowManager.superclass.constructor.call(this, cfg.editor);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Set window group\r\n'
20130515 '\t\t\t\t\t\tthis.manager = cfg.manager;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\talert: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.alert("", txt, function() {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this);\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconfirm: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.confirm("", txt, function(btn) {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this, btn == "yes");\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\topen: function(s, p) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts = s || {};\r\n'
20130515 '\t\t\t\t\t\tp = p || {};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tif (!s.type)\r\n'
20130515 "\t\t\t\t\t\t\tthis.bookmark = this.editor.selection.getBookmark('simple');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts.width = parseInt(s.width || 320);\r\n'
20130515 '\t\t\t\t\t\ts.height = parseInt(s.height || 240) + (tinymce.isIE ? 8 : 0);\r\n'
20130515 '\t\t\t\t\t\ts.min_width = parseInt(s.min_width || 150);\r\n'
20130515 '\t\t\t\t\t\ts.min_height = parseInt(s.min_height || 100);\r\n'
20130515 '\t\t\t\t\t\ts.max_width = parseInt(s.max_width || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.max_height = parseInt(s.max_height || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.movable = true;\r\n'
20130515 '\t\t\t\t\t\ts.resizable = true;\r\n'
20130515 '\t\t\t\t\t\tp.mce_width = s.width;\r\n'
20130515 '\t\t\t\t\t\tp.mce_height = s.height;\r\n'
20130515 '\t\t\t\t\t\tp.mce_inline = true;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tthis.features = s;\r\n'
20130515 '\t\t\t\t\t\tthis.params = p;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar win = new Ext.Window(\r\n'
20130515 '\t\t\t\t\t\t{\r\n'
20130515 '\t\t\t\t\t\t\ttitle: s.name,\r\n'
20130515 '\t\t\t\t\t\t\twidth: s.width,\r\n'
20130515 '\t\t\t\t\t\t\theight: s.height,\r\n'
20130515 '\t\t\t\t\t\t\tminWidth: s.min_width,\r\n'
20130515 '\t\t\t\t\t\t\tminHeight: s.min_height,\r\n'
20130515 '\t\t\t\t\t\t\tresizable: true,\r\n'
20130515 '\t\t\t\t\t\t\tmaximizable: s.maximizable,\r\n'
20130515 '\t\t\t\t\t\t\tminimizable: s.minimizable,\r\n'
20130515 '\t\t\t\t\t\t\tmodal: true,\r\n'
20130515 '\t\t\t\t\t\t\tstateful: false,\r\n'
20130515 '\t\t\t\t\t\t\tconstrain: true,\r\n'
20130515 '\t\t\t\t\t\t\tmanager: this.manager,\r\n'
20130515 '\t\t\t\t\t\t\tlayout: "fit",\r\n'
20130515 '\t\t\t\t\t\t\titems: [\r\n'
20130515 '\t\t\t\t\t\t\t\tnew Ext.BoxComponent({\r\n'
20130515 '\t\t\t\t\t\t\t\t\tautoEl: {\r\n'
20130515 "\t\t\t\t\t\t\t\t\t\ttag: 'iframe',\r\n"
20130515 '\t\t\t\t\t\t\t\t\t\tsrc: s.url || s.file\r\n'
20130515 '\t\t\t\t\t\t\t\t\t},\r\n'
20130515 "\t\t\t\t\t\t\t\t\tstyle : 'border-width: 0px;'\r\n"
20130515 '\t\t\t\t\t\t\t\t})\r\n'
20130515 '\t\t\t\t\t\t\t]\r\n'
20130515 '\t\t\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tp.mce_window_id = win.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\twin.show(null,\r\n'
20130515 '\t\t\t\t\t\t\tfunction() {\r\n'
20130515 '\t\t\t\t\t\t\t\tif (s.left && s.top)\r\n'
20130515 '\t\t\t\t\t\t\t\t\twin.setPagePosition(s.left, s.top);\r\n'
20130515 '\t\t\t\t\t\t\t\tvar pos = win.getPosition();\r\n'
20130515 '\t\t\t\t\t\t\t\ts.left = pos[0];\r\n'
20130515 '\t\t\t\t\t\t\t\ts.top = pos[1];\r\n'
20130515 '\t\t\t\t\t\t\t\tthis.onOpen.dispatch(this, s, p);\r\n'
20130515 '\t\t\t\t\t\t\t},\r\n'
20130515 '\t\t\t\t\t\t\tthis\r\n'
20130515 '\t\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn win;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tclose: function(win) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.close.call(this, win);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tthis.onClose.dispatch(this);\r\n'
20130515 '\t\t\t\t\t\t\tw.close();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tsetTitle: function(win, ti) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.setTitle.call(this, win, ti);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setTitle(ti);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tresizeBy: function(dw, dh, id) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tvar size = w.getSize();\r\n'
20130515 '\t\t\t\t\t\t\tw.setSize(size.width + dw, size.height + dh);\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tfocus: function(id) {\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setActive(true);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tControlManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tControlManager = Ext.extend( tinymce.ControlManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t// Reference to ExtJS control Ext.ux.TinyMCE.\r\n'
20130515 '\t\t\t\t\tcontrol: null,\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function(control, ed, s) {\r\n'
20130515 '\t\t\t\t\t\tthis.control = control;\r\n'
20130515 '\t\t\t\t\t\tControlManager.superclass.constructor.call(this, ed, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateDropMenu: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createDropMenu.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(\'menu_\' + this.id).setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateColorSplitButton: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createColorSplitButton.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(this.id + \'_menu\').setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Init TinyMCE\r\n'
20130515 '\t\t\t\tvar s = {\r\n'
20130515 '\t\t\t\t\tmode: "none",\r\n'
20130515 '\t\t\t\t\tplugins: Ext.ux.TinyMCE.tinymcePlugins,\r\n'
20130515 '\t\t\t\t\ttheme: "advanced"\r\n'
20130515 '\t\t\t\t};\r\n'
20130515 '\t\t\t\tExt.apply(s, settings);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\tif (!tinymce.dom.Event.domLoaded)\r\n'
20130515 '\t\t\t\t\ttinymce.dom.Event._pageInit();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\ttinyMCE.init(s);\r\n'
20130515 '\t\t\t\ttmceInitialized = true;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\tExt.ComponentMgr.registerType("tinymce", Ext.ux.TinyMCE);\r\n'
20130515 '\r\n'
20130515 '})();'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:10 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21047\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '// vim: ts=4:sw=4:nu:fdc=4:nospell\r\n'
20130515 '/*global Ext */\r\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ux.form.DateTime\r\n'
20130515 ' * @extends Ext.form.Field\r\n'
20130515 ' *\r\n'
20130515 ' * DateTime field, combination of DateField and TimeField\r\n'
20130515 ' *\r\n'
20130515 ' * @author      Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @copyright (c) 2008, Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @version   2.0\r\n'
20130515 ' * @revision  $Id: Ext.ux.form.DateTime.js 813 2010-01-29 23:32:36Z jozo $\r\n'
20130515 ' *\r\n'
20130515 ' * @license Ext.ux.form.DateTime is licensed under the terms of\r\n'
20130515 ' * the Open Source LGPL 3.0 license.  Commercial use is permitted to the extent\r\n'
20130515 ' * that the code/component(s) do NOT become part of another Open Source or Commercially\r\n'
20130515 ' * licensed development library or toolkit without explicit permission.\r\n'
20130515 ' * \r\n'
20130515 ' * <p>License details: <a href="http://www.gnu.org/licenses/lgpl.html"\r\n'
20130515 ' * target="_blank">http://www.gnu.org/licenses/lgpl.html</a></p>\r\n'
20130515 ' *\r\n'
20130515 ' * @forum      22661\r\n'
20130515 ' *\r\n'
20130515 ' * @donate\r\n'
20130515 ' * <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">\r\n'
20130515 ' * <input type="hidden" name="cmd" value="_s-xclick">\r\n'
20130515 ' * <input type="hidden" name="hosted_button_id" value="3430419">\r\n'
20130515 ' * <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" \r\n'
20130515 ' * border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">\r\n'
20130515 ' * <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">\r\n'
20130515 ' * </form>\r\n'
20130515 ' */\r\n'
20130515 '\r\n'
20130515 "Ext.ns('Ext.ux.form');\r\n"
20130515 '\r\n'
20130515 '/**\r\n'
20130515 ' * Creates new DateTime\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config A config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ux.form.DateTime = Ext.extend(Ext.form.Field, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} dateValidator A custom validation function to be called during date field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '     dateValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String/Object} defaultAutoCreate DomHelper element spec\r\n'
20130515 '     * Let superclass to create hidden field instead of textbox. Hidden will be submittend to server\r\n'
20130515 '     */\r\n'
20130515 "    ,defaultAutoCreate:{tag:'input', type:'hidden'}\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dtSeparator Date - Time separator. Used to split date and time (defaults to ' ' (space))\r\n"
20130515 '     */\r\n'
20130515 "    ,dtSeparator:' '\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} hiddenFormat Format of datetime used to store value in hidden field\r\n'
20130515 "     * and submitted to server (defaults to 'Y-m-d H:i:s' that is mysql format)\r\n"
20130515 '     */\r\n'
20130515 "    ,hiddenFormat:'Y-m-d H:i:s'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} otherToNow Set other field to now() if not explicly filled in (defaults to true)\r\n'
20130515 '     */\r\n'
20130515 '    ,otherToNow:true\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} emptyToNow Set field value to now on attempt to set empty value.\r\n'
20130515 '     * If it is true then setValue() sets value of field to current date and time (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timePosition Where the time field should be rendered. 'right' is suitable for forms\r\n"
20130515 "     * and 'below' is suitable if the field is used as the grid editor (defaults to 'right')\r\n"
20130515 '     */\r\n'
20130515 "    ,timePosition:'right' // valid values:'below', 'right'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} timeValidator A custom validation function to be called during time field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} timeWidth Width of time field in pixels (defaults to 100)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeWidth:100\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dateFormat Format of DateField. Can be localized. (defaults to 'm/y/d')\r\n"
20130515 '     */\r\n'
20130515 "    ,dateFormat:'m/d/y'\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timeFormat Format of TimeField. Can be localized. (defaults to 'g:i A')\r\n"
20130515 '     */\r\n'
20130515 "    ,timeFormat:'g:i A'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} dateConfig Config for DateField constructor.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} timeConfig Config for TimeField constructor.\r\n'
20130515 '     */\r\n'
20130515 '\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * creates DateField and TimeField and installs the necessary event handlers\r\n'
20130515 '     */\r\n'
20130515 '    ,initComponent:function() {\r\n'
20130515 '        // call parent initComponent\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.initComponent.call(this);\r\n'
20130515 '\r\n'
20130515 '        // create DateField\r\n'
20130515 '        var dateConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-date'\r\n"
20130515 '            ,format:this.dateFormat || Ext.form.DateField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.dateValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.dateConfig);\r\n'
20130515 '        this.df = new Ext.form.DateField(dateConfig);\r\n'
20130515 '        this.df.ownerCt = this;\r\n'
20130515 '        delete(this.dateFormat);\r\n'
20130515 '\r\n'
20130515 '        // create TimeField\r\n'
20130515 '        var timeConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-time'\r\n"
20130515 '            ,format:this.timeFormat || Ext.form.TimeField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.timeValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.timeConfig);\r\n'
20130515 '        this.tf = new Ext.form.TimeField(timeConfig);\r\n'
20130515 '        this.tf.ownerCt = this;\r\n'
20130515 '        delete(this.timeFormat);\r\n'
20130515 '\r\n'
20130515 '        // relay events\r\n'
20130515 "        this.relayEvents(this.df, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 "        this.relayEvents(this.tf, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 '\r\n'
20130515 "        this.on('specialkey', this.onSpecialKey, this);\r\n"
20130515 '\r\n'
20130515 '    } // eo function initComponent\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Renders underlying DateField and TimeField and provides a workaround for side error icon bug\r\n'
20130515 '     */\r\n'
20130515 '    ,onRender:function(ct, position) {\r\n'
20130515 "        // don't run more than once\r\n"
20130515 '        if(this.isRendered) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // render underlying hidden field\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '        // render DateField and TimeField\r\n'
20130515 '        // create bounding table\r\n'
20130515 '        var t;\r\n'
20130515 "        if('below' === this.timePosition || 'bellow' === this.timePosition) {\r\n"
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                 {tag:'tr',children:[{tag:'td', style:'padding-bottom:1px', cls:'ux-datetime-date'}]}\r\n"
20130515 "                ,{tag:'tr',children:[{tag:'td', cls:'ux-datetime-time'}]}\r\n"
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                {tag:'tr',children:[\r\n"
20130515 "                    {tag:'td',style:'padding-right:4px', cls:'ux-datetime-date'},{tag:'td', cls:'ux-datetime-time'}\r\n"
20130515 '                ]}\r\n'
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.tableEl = t;\r\n'
20130515 "        this.wrap = t.wrap({cls:'x-form-field-wrap'});\r\n"
20130515 '//        this.wrap = t.wrap();\r\n'
20130515 '        this.wrap.on("mousedown", this.onMouseDown, this, {delay:10});\r\n'
20130515 '\r\n'
20130515 '        // render DateField & TimeField\r\n'
20130515 "        this.df.render(t.child('td.ux-datetime-date'));\r\n"
20130515 "        this.tf.render(t.child('td.ux-datetime-time'));\r\n"
20130515 '\r\n'
20130515 '        // workaround for IE trigger misalignment bug\r\n'
20130515 '        // see http://extjs.com/forum/showthread.php?p=341075#post341075\r\n'
20130515 '//        if(Ext.isIE && Ext.isStrict) {\r\n'
20130515 "//            t.select('input').applyStyles({top:0});\r\n"
20130515 '//        }\r\n'
20130515 '\r\n'
20130515 "        this.df.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 "        this.tf.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 '\r\n'
20130515 '        // create icon for side invalid errorIcon\r\n'
20130515 "        if('side' === this.msgTarget) {\r\n"
20130515 "            var elp = this.el.findParent('.x-form-element', 10, true);\r\n"
20130515 '            if(elp) {\r\n'
20130515 "                this.errorIcon = elp.createChild({cls:'x-form-invalid-icon'});\r\n"
20130515 '            }\r\n'
20130515 '\r\n'
20130515 '            var o = {\r\n'
20130515 '                 errorIcon:this.errorIcon\r\n'
20130515 "                ,msgTarget:'side'\r\n"
20130515 '                ,alignErrorIcon:this.alignErrorIcon.createDelegate(this)\r\n'
20130515 '            };\r\n'
20130515 '            Ext.apply(this.df, o);\r\n'
20130515 '            Ext.apply(this.tf, o);\r\n'
20130515 '//            this.df.errorIcon = this.errorIcon;\r\n'
20130515 '//            this.tf.errorIcon = this.errorIcon;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // setup name for submit\r\n'
20130515 '        this.el.dom.name = this.hiddenName || this.name || this.id;\r\n'
20130515 '\r\n'
20130515 '        // prevent helper fields from being submitted\r\n'
20130515 '        this.df.el.dom.removeAttribute("name");\r\n'
20130515 '        this.tf.el.dom.removeAttribute("name");\r\n'
20130515 '\r\n'
20130515 "        // we're rendered flag\r\n"
20130515 '        this.isRendered = true;\r\n'
20130515 '\r\n'
20130515 '        // update hidden field\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '    } // eo function onRender\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,adjustSize:Ext.BoxComponent.prototype.adjustSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,alignErrorIcon:function() {\r\n'
20130515 "        this.errorIcon.alignTo(this.tableEl, 'tl-tr', [2, 0]);\r\n"
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private initializes internal dateValue\r\n'
20130515 '     */\r\n'
20130515 '    ,initDateValue:function() {\r\n'
20130515 '        this.dateValue = this.otherToNow ? new Date() : new Date(1970, 0, 1, 0, 0, 0);\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls clearInvalid on the DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,clearInvalid:function(){\r\n'
20130515 '        this.df.clearInvalid();\r\n'
20130515 '        this.tf.clearInvalid();\r\n'
20130515 '    } // eo function clearInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls markInvalid on both DateField and TimeField\r\n'
20130515 '     * @param {String} msg Invalid message to display\r\n'
20130515 '     */\r\n'
20130515 '    ,markInvalid:function(msg){\r\n'
20130515 '        this.df.markInvalid(msg);\r\n'
20130515 '        this.tf.markInvalid(msg);\r\n'
20130515 '    } // eo function markInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * called from Component::destroy. \r\n'
20130515 "     * Destroys all elements and removes all listeners we've created.\r\n"
20130515 '     */\r\n'
20130515 '    ,beforeDestroy:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '//            this.removeAllListeners();\r\n'
20130515 '            this.wrap.removeAllListeners();\r\n'
20130515 '            this.wrap.remove();\r\n'
20130515 '            this.tableEl.remove();\r\n'
20130515 '            this.df.destroy();\r\n'
20130515 '            this.tf.destroy();\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function beforeDestroy\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Disable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,disable:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '            this.df.disabled = this.disabled;\r\n'
20130515 '            this.df.onDisable();\r\n'
20130515 '            this.tf.onDisable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = true;\r\n'
20130515 '        this.df.disabled = true;\r\n'
20130515 '        this.tf.disabled = true;\r\n'
20130515 '        this.fireEvent("disable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function disable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,enable:function() {\r\n'
20130515 '        if(this.rendered){\r\n'
20130515 '            this.df.onEnable();\r\n'
20130515 '            this.tf.onEnable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = false;\r\n'
20130515 '        this.df.disabled = false;\r\n'
20130515 '        this.tf.disabled = false;\r\n'
20130515 '        this.fireEvent("enable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function enable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Focus date filed\r\n'
20130515 '     */\r\n'
20130515 '    ,focus:function() {\r\n'
20130515 '        this.df.focus();\r\n'
20130515 '    } // eo function focus\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getPositionEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getResizeEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Date/String} Returns value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,getValue:function() {\r\n'
20130515 '        // create new instance of date\r\n'
20130515 "        return this.dateValue ? new Date(this.dateValue) : '';\r\n"
20130515 '    } // eo function getValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * @private Calls isValid methods of underlying DateField and TimeField and returns the result\r\n'
20130515 '     */\r\n'
20130515 '    ,isValid:function() {\r\n'
20130515 '        return this.df.isValid() && this.tf.isValid();\r\n'
20130515 '    } // eo function isValid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns true if this component is visible\r\n'
20130515 '     * @return {boolean} \r\n'
20130515 '     */\r\n'
20130515 '    ,isVisible : function(){\r\n'
20130515 '        return this.df.rendered && this.df.getActionEl().isVisible();\r\n'
20130515 '    } // eo function isVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Handles blur event\r\n'
20130515 '     */\r\n'
20130515 '    ,onBlur:function(f) {\r\n'
20130515 '        // called by both DateField and TimeField blur events\r\n'
20130515 '\r\n'
20130515 '        // revert focus to previous field if clicked in between\r\n'
20130515 '        if(this.wrapClick) {\r\n'
20130515 '            f.focus();\r\n'
20130515 '            this.wrapClick = false;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // update underlying value\r\n'
20130515 '        if(f === this.df) {\r\n'
20130515 '            this.updateDate();\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.updateTime();\r\n'
20130515 '        }\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        this.validate();\r\n'
20130515 '\r\n'
20130515 '        // fire events later\r\n'
20130515 '        (function() {\r\n'
20130515 '            if(!this.df.hasFocus && !this.tf.hasFocus) {\r\n'
20130515 '                var v = this.getValue();\r\n'
20130515 '                if(String(v) !== String(this.startValue)) {\r\n'
20130515 '                    this.fireEvent("change", this, v, this.startValue);\r\n'
20130515 '                }\r\n'
20130515 '                this.hasFocus = false;\r\n'
20130515 "                this.fireEvent('blur', this);\r\n"
20130515 '            }\r\n'
20130515 '        }).defer(100, this);\r\n'
20130515 '\r\n'
20130515 '    } // eo function onBlur\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Handles focus event\r\n'
20130515 '     */\r\n'
20130515 '    ,onFocus:function() {\r\n'
20130515 '        if(!this.hasFocus){\r\n'
20130515 '            this.hasFocus = true;\r\n'
20130515 '            this.startValue = this.getValue();\r\n'
20130515 '            this.fireEvent("focus", this);\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Just to prevent blur event when clicked in the middle of fields\r\n'
20130515 '     */\r\n'
20130515 '    ,onMouseDown:function(e) {\r\n'
20130515 '        if(!this.disabled) {\r\n'
20130515 "            this.wrapClick = 'td' === e.target.nodeName.toLowerCase();\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Handles Tab and Shift-Tab events\r\n'
20130515 '     */\r\n'
20130515 '    ,onSpecialKey:function(t, e) {\r\n'
20130515 '        var key = e.getKey();\r\n'
20130515 '        if(key === e.TAB) {\r\n'
20130515 '            if(t === this.df && !e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.tf.focus();\r\n'
20130515 '            }\r\n'
20130515 '            if(t === this.tf && e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.df.focus();\r\n'
20130515 '            }\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '        // otherwise it misbehaves in editor grid\r\n'
20130515 '        if(key === e.ENTER) {\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '    } // eo function onSpecialKey\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Resets the current field value to the originally loaded value \r\n'
20130515 '     * and clears any validation messages. See Ext.form.BasicForm.trackResetOnLoad\r\n'
20130515 '     */\r\n'
20130515 '    ,reset:function() {\r\n'
20130515 '        this.df.setValue(this.originalValue);\r\n'
20130515 '        this.tf.setValue(this.originalValue);\r\n'
20130515 '    } // eo function reset\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Sets the value of DateField\r\n'
20130515 '     */\r\n'
20130515 '    ,setDate:function(date) {\r\n'
20130515 '        this.df.setValue(date);\r\n'
20130515 '    } // eo function setDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Sets the value of TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,setTime:function(date) {\r\n'
20130515 '        this.tf.setValue(date);\r\n'
20130515 '    } // eo function setTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Sets correct sizes of underlying DateField and TimeField\r\n'
20130515 '     * With workarounds for IE bugs\r\n'
20130515 '     */\r\n'
20130515 '    ,setSize:function(w, h) {\r\n'
20130515 '        if(!w) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if('below' === this.timePosition) {\r\n"
20130515 '            this.df.setSize(w, h);\r\n'
20130515 '            this.tf.setSize(w, h);\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w);\r\n"
20130515 "                this.tf.el.up('td').setWidth(w);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.df.setSize(w - this.timeWidth - 4, h);\r\n'
20130515 '            this.tf.setSize(this.timeWidth, h);\r\n'
20130515 '\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w - this.timeWidth - 4);\r\n"
20130515 "                this.tf.el.up('td').setWidth(this.timeWidth);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function setSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @param {Mixed} val Value to set\r\n'
20130515 '     * Sets the value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,setValue:function(val) {\r\n'
20130515 '        if(!val && true === this.emptyToNow) {\r\n'
20130515 '            this.setValue(new Date());\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        else if(!val) {\r\n'
20130515 "            this.setDate('');\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '            this.updateValue();\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if ('number' === typeof val) {\r\n"
20130515 '          val = new Date(val);\r\n'
20130515 '        }\r\n'
20130515 "        else if('string' === typeof val && this.hiddenFormat) {\r\n"
20130515 '            val = Date.parseDate(val, this.hiddenFormat);\r\n'
20130515 '        }\r\n'
20130515 '        val = val ? val : new Date(1970, 0 ,1, 0, 0, 0);\r\n'
20130515 '        var da;\r\n'
20130515 '        if(val instanceof Date) {\r\n'
20130515 '            this.setDate(val);\r\n'
20130515 '            this.setTime(val);\r\n'
20130515 '            this.dateValue = new Date(Ext.isIE ? val.getTime() : val);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            da = val.split(this.dtSeparator);\r\n'
20130515 '            this.setDate(da[0]);\r\n'
20130515 '            if(da[1]) {\r\n'
20130515 '                if(da[2]) {\r\n'
20130515 '                    // add am/pm part back to time\r\n'
20130515 '                    da[1] += da[2];\r\n'
20130515 '                }\r\n'
20130515 '                this.setTime(da[1]);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.updateValue();\r\n'
20130515 '    } // eo function setValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Hide or show this component by boolean\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,setVisible: function(visible){\r\n'
20130515 '        if(visible) {\r\n'
20130515 '            this.df.show();\r\n'
20130515 '            this.tf.show();\r\n'
20130515 '        }else{\r\n'
20130515 '            this.df.hide();\r\n'
20130515 '            this.tf.hide();\r\n'
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function setVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,show:function() {\r\n'
20130515 '        return this.setVisible(true);\r\n'
20130515 '    } // eo function show\r\n'
20130515 '    //}}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,hide:function() {\r\n'
20130515 '        return this.setVisible(false);\r\n'
20130515 '    } // eo function hide\r\n'
20130515 '    //}}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the date part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateDate:function() {\r\n'
20130515 '\r\n'
20130515 '        var d = this.df.getValue();\r\n'
20130515 '        if(d) {\r\n'
20130515 '            if(!(this.dateValue instanceof Date)) {\r\n'
20130515 '                this.initDateValue();\r\n'
20130515 '                if(!this.tf.getValue()) {\r\n'
20130515 '                    this.setTime(this.dateValue);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            this.dateValue.setMonth(0); // because of leap years\r\n'
20130515 '            this.dateValue.setFullYear(d.getFullYear());\r\n'
20130515 '            this.dateValue.setMonth(d.getMonth(), d.getDate());\r\n'
20130515 '//            this.dateValue.setDate(d.getDate());\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            this.dateValue = '';\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '        }\r\n'
20130515 '    } // eo function updateDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Updates the time part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateTime:function() {\r\n'
20130515 '        var t = this.tf.getValue();\r\n'
20130515 '        if(t && !(t instanceof Date)) {\r\n'
20130515 '            t = Date.parseDate(t, this.tf.format);\r\n'
20130515 '        }\r\n'
20130515 '        if(t && !this.df.getValue()) {\r\n'
20130515 '            this.initDateValue();\r\n'
20130515 '            this.setDate(this.dateValue);\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dateValue instanceof Date) {\r\n'
20130515 '            if(t) {\r\n'
20130515 '                this.dateValue.setHours(t.getHours());\r\n'
20130515 '                this.dateValue.setMinutes(t.getMinutes());\r\n'
20130515 '                this.dateValue.setSeconds(t.getSeconds());\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.dateValue.setHours(0);\r\n'
20130515 '                this.dateValue.setMinutes(0);\r\n'
20130515 '                this.dateValue.setSeconds(0);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function updateTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the underlying hidden field value\r\n'
20130515 '     */\r\n'
20130515 '    ,updateHidden:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 "            var value = this.dateValue instanceof Date ? this.dateValue.format(this.hiddenFormat) : '';\r\n"
20130515 '            this.el.dom.value = value;\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates all of Date, Time and Hidden\r\n'
20130515 '     */\r\n'
20130515 '    ,updateValue:function() {\r\n'
20130515 '\r\n'
20130515 '        this.updateDate();\r\n'
20130515 '        this.updateTime();\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        return;\r\n'
20130515 '    } // eo function updateValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * calls validate methods of DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,validate:function() {\r\n'
20130515 '        return this.df.validate() && this.tf.validate();\r\n'
20130515 '    } // eo function validate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns renderer suitable to render this field\r\n'
20130515 '     * @param {Object} Column model config\r\n'
20130515 '     */\r\n'
20130515 '    ,renderer: function(field) {\r\n'
20130515 '        var format = field.editor.dateFormat || Ext.ux.form.DateTime.prototype.dateFormat;\r\n'
20130515 "        format += ' ' + (field.editor.timeFormat || Ext.ux.form.DateTime.prototype.timeFormat);\r\n"
20130515 '        var renderer = function(val) {\r\n'
20130515 '            var retval = Ext.util.Format.date(val, format);\r\n'
20130515 '            return retval;\r\n'
20130515 '        };\r\n'
20130515 '        return renderer;\r\n'
20130515 '    } // eo function renderer\r\n'
20130515 '    // }}}\r\n'
20130515 '\r\n'
20130515 '}); // eo extend\r\n'
20130515 '\r\n'
20130515 '// register xtype\r\n'
20130515 "Ext.reg('xdatetime', Ext.ux.form.DateTime);\r\n"
20130515 '\r\n'
20130515 '// eof'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:10 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 15 May 2013 08:45:09 GMT\r\nContent-Length: 2000115\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\n'
20130515 ' Copyright 2009-2013 Luc Saffre\n'
20130515 ' This file is part of the Lino project.\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \n'
20130515 ' it under the terms of the GNU General Public License as published by\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\n'
20130515 ' (at your option) any later version.\n'
20130515 ' Lino is distributed in the hope that it will be useful, \n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \n'
20130515 ' GNU General Public License for more details.\n'
20130515 ' You should have received a copy of the GNU General Public License\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\n'
20130515 '*/\n'
20130515 '\n'
20130515 '// lino.js --- generated Wed May 15 11:45:07 2013 by Lino version 1.6.7.\n'
20130515 "Ext.BLANK_IMAGE_URL = 'http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif';\n"
20130515 'LANGUAGE_CHOICES = [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ];\n'
20130515 'MEDIA_URL = "/media";\n'
20130515 '\n'
20130515 '/* MonthPickerPlugin: thanks to keypoint @ sencha forum\n'
20130515 '   http://www.sencha.com/forum/showthread.php?74002-3.x-Ext.ux.MonthMenu&p=356860#post356860\n'
20130515 '*/\n'
20130515 "Ext.namespace('Ext.ux'); \n"
20130515 '\n'
20130515 'Ext.ux.MonthPickerPlugin = function() { \n'
20130515 '    var picker; \n'
20130515 '    var oldDateDefaults; \n'
20130515 '\n'
20130515 '    this.init = function(pk) { \n'
20130515 '        picker = pk; \n'
20130515 '        picker.onTriggerClick = picker.onTriggerClick.createSequence(onClick); \n'
20130515 '        picker.getValue = picker.getValue.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '        picker.beforeBlur = picker.beforeBlur.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '    }; \n'
20130515 '\n'
20130515 '    function setDefaultMonthDay() { \n'
20130515 '        oldDateDefaults = Date.defaults.d; \n'
20130515 '        Date.defaults.d = 1; \n'
20130515 '        return true; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function restoreDefaultMonthDay(ret) { \n'
20130515 '        Date.defaults.d = oldDateDefaults; \n'
20130515 '        return ret; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function onClick(e, el, opt) { \n'
20130515 '        var p = picker.menu.picker; \n'
20130515 '        p.activeDate = p.activeDate.getFirstDateOfMonth(); \n'
20130515 '        if (p.value) { \n'
20130515 '            p.value = p.value.getFirstDateOfMonth(); \n'
20130515 '        } \n'
20130515 '\n'
20130515 '        p.showMonthPicker(); \n'
20130515 '         \n'
20130515 '        if (!p.disabled) { \n'
20130515 '            p.monthPicker.stopFx(); \n'
20130515 '            p.monthPicker.show(); \n'
20130515 '\n'
20130515 "            p.mun(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mun(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '            p.onMonthClick = p.onMonthClick.createSequence(pickerClick); \n'
20130515 '            p.onMonthDblClick = p.onMonthDblClick.createSequence(pickerDblclick); \n'
20130515 "            p.mon(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mon(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerClick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 "        if (el.is('button.x-date-mp-cancel')) { \n"
20130515 '            picker.menu.hide(); \n'
20130515 "        } else if(el.is('button.x-date-mp-ok')) { \n"
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerDblclick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 '        if (el.parent() \n'
20130515 "            && (el.parent().is('td.x-date-mp-month') \n"
20130515 "            || el.parent().is('td.x-date-mp-year'))) { \n"
20130515 '\n'
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '}; \n'
20130515 '\n'
20130515 "Ext.preg('monthPickerPlugin', Ext.ux.MonthPickerPlugin);  \n"
20130515 '\n'
20130515 '//~ /* \n'
20130515 '  //~ http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/\n'
20130515 '//~ */\n'
20130515 '//~ /**\n'
20130515 ' //~ * This submit action is basically the same as the normal submit action,\n'
20130515 ' //~ * only that it uses the fields getSubmitValue() to compose the values to submit,\n'
20130515 ' //~ * instead of looping over the input-tags in the form-tag of the form.\n'
20130515 ' //~ *\n'
20130515 ' //~ * To use it, just use the OOSubmit-plugin on either a FormPanel or a BasicForm,\n'
20130515 " //~ * or explicitly call form.doAction('oosubmit');\n"
20130515 ' //~ *\n'
20130515 ' //~ * @param {Object} form\n'
20130515 ' //~ * @param {Object} options\n'
20130515 ' //~ */\n'
20130515 '//~ Ext.ux.OOSubmitAction = function(form, options){\n'
20130515 '    //~ Ext.ux.OOSubmitAction.superclass.constructor.call(this, form, options);\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.extend(Ext.ux.OOSubmitAction, Ext.form.Action.Submit, {\n'
20130515 '    //~ /**\n'
20130515 "    //~ * @cfg {boolean} clientValidation Determines whether a Form's fields are validated\n"
20130515 '    //~ * in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission.\n'
20130515 "    //~ * Pass <tt>false</tt> in the Form's submit options to prevent this. If not defined, pre-submission field validation\n"
20130515 '    //~ * is performed.\n'
20130515 '    //~ */\n'
20130515 "    //~ type : 'oosubmit',\n"
20130515 '\n'
20130515 '    //~ // private\n'
20130515 '    //~ /**\n'
20130515 '     //~ * This is nearly a copy of the original submit action run method\n'
20130515 '     //~ */\n'
20130515 '    //~ run : function(){\n'
20130515 '        //~ var o = this.options;\n'
20130515 '        //~ var method = this.getMethod();\n'
20130515 "        //~ var isPost = method == 'POST';\n"
20130515 '\n'
20130515 '        //~ var params = this.options.params || {};\n'
20130515 '        //~ if (isPost) Ext.applyIf(params, this.form.baseParams);\n'
20130515 '\n'
20130515 '        //~ //now add the form parameters\n'
20130515 '        //~ this.form.items.each(function(field)\n'
20130515 '        //~ {\n'
20130515 '            //~ if (!field.disabled)\n'
20130515 '            //~ {\n'
20130515 '                //~ //check if the form item provides a specialized getSubmitValue() and use that if available\n'
20130515 '                //~ if (typeof field.getSubmitValue == "function")\n'
20130515 '                    //~ params[field.getName()] = field.getSubmitValue();\n'
20130515 '                //~ else\n'
20130515 '                    //~ params[field.getName()] = field.getValue();\n'
20130515 '            //~ }\n'
20130515 '        //~ });\n'
20130515 '\n'
20130515 '        //~ //convert params to get style if we are not post\n'
20130515 '        //~ if (!isPost) params=Ext.urlEncode(params);\n'
20130515 '\n'
20130515 '        //~ if(o.clientValidation === false || this.form.isValid()){\n'
20130515 '            //~ Ext.Ajax.request(Ext.apply(this.createCallback(o), {\n'
20130515 '                //~ url:this.getUrl(!isPost),\n'
20130515 '                //~ method: method,\n'
20130515 '                //~ params:params, //add our values\n'
20130515 '                //~ isUpload: this.form.fileUpload\n'
20130515 '            //~ }));\n'
20130515 '\n'
20130515 '        //~ }else if (o.clientValidation !== false){ // client validation failed\n'
20130515 '            //~ this.failureType = Ext.form.Action.CLIENT_INVALID;\n'
20130515 '            //~ this.form.afterAction(this, false);\n'
20130515 '        //~ }\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '//~ });\n'
20130515 '//~ //add our action to the registry of known actions\n'
20130515 "//~ Ext.form.Action.ACTION_TYPES['oosubmit'] = Ext.ux.OOSubmitAction;\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/**\n'
20130515 'JC Watsons solution (adapted to ExtJS 3.3.1 by LS) is elegant and simple:\n'
20130515 '`A "fix" for unchecked checkbox submission  behaviour\n'
20130515 '<http://www.sencha.com/forum/showthread.php?28449>`_\n'
20130515 '\n'
20130515 'Added special handling for checkbox inputs. \n'
20130515 'ExtJS defines disabled checkboxes `readonly`, not `disabled` as for other inputs.\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Ext.lib.Ajax.serializeForm = function(form) {\n'
20130515 "    //~ console.log('20120203 linolib.js serializeForm',form);\n"
20130515 '    var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements, \n'
20130515 '        hasSubmit = false, \n'
20130515 '        encoder = encodeURIComponent, \n'
20130515 '        name, \n'
20130515 "        data = '', \n"
20130515 '        type, \n'
20130515 '        hasValue;\n'
20130515 '\n'
20130515 '    Ext.each(fElements, function(element){\n'
20130515 '        name = element.name;\n'
20130515 '        type = element.type;\n'
20130515 '\n'
20130515 "        if (!element.disabled && name && !(type == 'checkbox' && element.readonly)) {\n"
20130515 '            if (/select-(one|multiple)/i.test(type)) {\n'
20130515 '                Ext.each(element.options, function(opt){\n'
20130515 '                    if (opt.selected) {\n'
20130515 "                        hasValue = opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified;\n"
20130515 '                        data += String.format("{0}={1}&", encoder(name), encoder(hasValue ? opt.value : opt.text));\n'
20130515 '                    }\n'
20130515 '                });\n'
20130515 '            } else if (!(/file|undefined|reset|button/i.test(type))) {\n'
20130515 "                //~ if (!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)) {\n"
20130515 "                if (!(type == 'submit' && hasSubmit)) {\n"
20130515 "                    if (type == 'checkbox') {\n"
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&');\n"
20130515 "                        data += encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&';\n"
20130515 '                    } else {\n'
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + encoder(element.value) + '&');\n"
20130515 "                        data += encoder(name) + '=' + encoder(element.value) + '&';\n"
20130515 '                    }\n'
20130515 '                    hasSubmit = /submit/i.test(type);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        //~ } else {\n'
20130515 '            //~ console.log(name,type,element.readonly);\n'
20130515 '        }\n'
20130515 '    });\n'
20130515 '    return data.substr(0, data.length - 1);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Set a long timeout of fifteen minutes. \n'
20130515 'See /blog/2012/0307\n'
20130515 '*/\n'
20130515 'Ext.Ajax.timeout = 15 * 60 * 1000; \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'My fix for the "Cannot set QuickTips dismissDelay to 0" bug,\n'
20130515 'see http://www.sencha.com/forum/showthread.php?183515 \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.QuickTip,{\n'
20130515 '  showAt : function(xy){\n'
20130515 '        var t = this.activeTarget;\n'
20130515 '        //~ console.log("20120224 QuickTip.showAt",this.title,this.dismissDelay,t.dismissDelay);\n'
20130515 '        if(t){\n'
20130515 '            if(!this.rendered){\n'
20130515 '                this.render(Ext.getBody());\n'
20130515 '                this.activeTarget = t;\n'
20130515 '            }\n'
20130515 '            if(t.width){\n'
20130515 '                this.setWidth(t.width);\n'
20130515 '                this.body.setWidth(this.adjustBodyWidth(t.width - this.getFrameWidth()));\n'
20130515 '                this.measureWidth = false;\n'
20130515 '            } else{\n'
20130515 '                this.measureWidth = true;\n'
20130515 '            }\n'
20130515 "            this.setTitle(t.title || '');\n"
20130515 '            this.body.update(t.text);\n'
20130515 '            this.autoHide = t.autoHide;\n'
20130515 '            // bugfix by Luc 20120226\n'
20130515 '            if (t.dismissDelay != undefined) this.dismissDelay = t.dismissDelay;\n'
20130515 '            //~ this.dismissDelay = t.dismissDelay || this.dismissDelay;\n'
20130515 '            if(this.lastCls){\n'
20130515 '                this.el.removeClass(this.lastCls);\n'
20130515 '                delete this.lastCls;\n'
20130515 '            }\n'
20130515 '            if(t.cls){\n'
20130515 '                this.el.addClass(t.cls);\n'
20130515 '                this.lastCls = t.cls;\n'
20130515 '            }\n'
20130515 '            if(this.anchor){\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else if(t.align){ \n'
20130515 '                xy = this.el.getAlignToXY(t.el, t.align);\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else{\n'
20130515 '                this.constrainPosition = true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.QuickTip.superclass.showAt.call(this, xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Another hack. See /docs/blog/2012/0228\n'
20130515 '*/\n'
20130515 'Ext.Element.addMethods(\n'
20130515 '    function() {\n'
20130515 '        var VISIBILITY      = "visibility",\n'
20130515 '            DISPLAY         = "display",\n'
20130515 '            HIDDEN          = "hidden",\n'
20130515 '            NONE            = "none",\n'
20130515 '            XMASKED         = "x-masked",\n'
20130515 '            XMASKEDRELATIVE = "x-masked-relative",\n'
20130515 '            data            = Ext.Element.data;\n'
20130515 '\n'
20130515 '        return {\n'
20130515 '            \n'
20130515 '            mask : function(msg, msgCls) {\n'
20130515 '                var me  = this,\n'
20130515 '                    dom = me.dom,\n'
20130515 '                    dh  = Ext.DomHelper,\n'
20130515 '                    EXTELMASKMSG = "ext-el-mask-msg",\n'
20130515 '                    el,\n'
20130515 '                    mask;\n'
20130515 '                // removed the following lines. See /docs/blog/2012/0228\n'
20130515 "                //~ if (!(/^body/i.test(dom.tagName) && me.getStyle('position') == 'static')) {\n"
20130515 '                    //~ console.log(20120228,dom.tagName,me);\n'
20130515 '                    //~ me.addClass(XMASKEDRELATIVE); \n'
20130515 '                //~ }\n'
20130515 "                if (el = data(dom, 'maskMsg')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 "                if (el = data(dom, 'mask')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 '\n'
20130515 '                mask = dh.append(dom, {cls : "ext-el-mask"}, true);\n'
20130515 "                data(dom, 'mask', mask);\n"
20130515 '\n'
20130515 '                me.addClass(XMASKED);\n'
20130515 '                mask.setDisplayed(true);\n'
20130515 '                \n'
20130515 "                if (typeof msg == 'string') {\n"
20130515 "                    var mm = dh.append(dom, {cls : EXTELMASKMSG, cn:{tag:'div'}}, true);\n"
20130515 "                    data(dom, 'maskMsg', mm);\n"
20130515 '                    mm.dom.className = msgCls ? EXTELMASKMSG + " " + msgCls : EXTELMASKMSG;\n'
20130515 '                    mm.dom.firstChild.innerHTML = msg;\n'
20130515 '                    mm.setDisplayed(true);\n'
20130515 '                    mm.center(me);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                \n'
20130515 "                if (Ext.isIE && !(Ext.isIE7 && Ext.isStrict) && me.getStyle('height') == 'auto') {\n"
20130515 '                    mask.setSize(undefined, me.getHeight());\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                return mask;\n'
20130515 '            }\n'
20130515 '\n'
20130515 '            \n'
20130515 '        };\n'
20130515 '    }()\n'
20130515 ');\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 "Ext.namespace('Lino');\n"
20130515 '    \n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.subst_user_field = new Ext.form.ComboBox({});\n'
20130515 '//~ Lino.subst_user = null;\n'
20130515 'Lino.insert_subst_user = function(p){\n'
20130515 "    //~ console.log('20120714 insert_subst_user',Lino.subst_user,p);\n"
20130515 '    //~ if (Lino.subst_user_field.getValue()) {\n'
20130515 '    if (p.su) return;\n'
20130515 '    if (Lino.subst_user) {\n'
20130515 '        //~ p.su = Lino.subst_user_field.getValue();\n'
20130515 '        p.su = Lino.subst_user;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ delete p.su;\n'
20130515 '    }\n'
20130515 "    //~ console.log('20120714 insert_subst_user -->',Lino.subst_user,p);\n"
20130515 '}\n'
20130515 '\n'
20130515 'Lino.login_window = null;\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_login_window = function() {\n'
20130515 "  //~ console.log('20121103 show_login_window',arguments);\n"
20130515 '  //~ var current_window = Lino.current_window;\n'
20130515 '  if (Lino.login_window == null) {\n'
20130515 '    \n'
20130515 '      function do_login() { \n'
20130515 '            Lino.viewport.loadMask.show()\n'
20130515 '            //~ Lino.body_loadMask.show()\n'
20130515 '            login_panel.getForm().submit({ \n'
20130515 "                method:'POST', \n"
20130515 "                waitTitle:'Connecting', \n"
20130515 "                waitMsg:'Sending data...',\n"
20130515 '                success:function(){ \n'
20130515 "                  //~ console.log('20121104 logged in',arguments);\n"
20130515 '                  Lino.login_window.hide();\n'
20130515 '                  Lino.close_all_windows();\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                },\n'
20130515 '                failure: function(form,action) { \n'
20130515 '                  //~ this.loadMask.hide();\n'
20130515 '                  Lino.on_submit_failure(form,action);\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                  //~ if (Lino.current_window) Lino.current_window.main_item.loadMask.hide()\n'
20130515 '                }\n'
20130515 '                //~ failure:function(form, action){ \n'
20130515 '                    //~ alert_msg\n'
20130515 "                    //~ if(action.failureType == 'server'){ \n"
20130515 '                        //~ obj = Ext.util.JSON.decode(action.response.responseText); \n'
20130515 "                        //~ Ext.Msg.alert('Login Failed!', obj.errors.reason); \n"
20130515 '                    //~ }else{ \n'
20130515 "                        //~ Ext.Msg.alert('Warning!', 'Authentication server is unreachable : ' + action.response.responseText); \n"
20130515 '                    //~ } \n'
20130515 '                    //~ Lino.login_panel.getForm().reset(); \n'
20130515 '                //~ } \n'
20130515 '            }); \n'
20130515 '      };\n'
20130515 '    \n'
20130515 '      var login_button = new Ext.Button({ \n'
20130515 '        text:"Log in",\n'
20130515 '        formBind: true,\t \n'
20130515 '        // Function that fires when user clicks the button \n'
20130515 '        handler: do_login});\n'
20130515 '    \n'
20130515 '      var login_panel = new Ext.FormPanel({ \n'
20130515 '        //~ inspired by http://www.sencha.com/learn/a-basic-login/\n'
20130515 '        autoHeight:true,\n'
20130515 '        labelWidth:90,\n'
20130515 "        url:'/auth', \n"
20130515 '        frame:true, \n'
20130515 "        defaultType:'textfield',\n"
20130515 '        monitorValid:true,\n'
20130515 '        items:[{ \n'
20130515 '            fieldLabel:"Username", \n'
20130515 "            id: 'username',\n"
20130515 "            name:'username', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        },{ \n'
20130515 '            fieldLabel:"Password", \n'
20130515 "            name:'password', \n"
20130515 "            inputType:'password', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        }],        \n'
20130515 '        buttons:[ login_button ]});\n'
20130515 '        \n'
20130515 '      Lino.login_window = new Ext.Window({\n'
20130515 "          layout:'fit',\n"
20130515 "          defaultButton: 'username',\n"
20130515 '          width:300,\n'
20130515 '          title:"Log in", \n'
20130515 '          autoHeight:true,\n'
20130515 '          modal: true,\n'
20130515 '          closeAction: "hide",\n'
20130515 '          keys: {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            fn: function() { do_login()}\n'
20130515 '          },\n'
20130515 '          //~ defaultButton: login_button,\n'
20130515 "          //~ height:'auto',\n"
20130515 '          //~ closable: false,\n'
20130515 '          //~ resizable: false,\n'
20130515 '          //~ plain: true,\n'
20130515 '          //~ border: false,\n'
20130515 '          items: [login_panel] });\n'
20130515 '  };\n'
20130515 '  Lino.login_window.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.logout = function(id,name) {\n'
20130515 "    //~ console.log('20121104 gonna log out',arguments);\n"
20130515 '    //~ Lino.do_action\n'
20130515 "    Lino.call_ajax_action(Lino.viewport,'GET','/auth',{},'logout',undefined,undefined,function(){\n"
20130515 "        //~ console.log('20121104 logged out',arguments);\n"
20130515 '        //~ Lino.login_window.hide();\n'
20130515 '        Lino.close_all_windows();\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.set_subst_user = function(id,name) {\n'
20130515 "    //~ console.log(20120714,'Lino.set_subst_user',id,name);\n"
20130515 '    Lino.subst_user = id;\n'
20130515 '\n'
20130515 '    if(id) {\n'
20130515 '        Lino.eventStore.setBaseParam("su",id);\n'
20130515 '    } else {\n'
20130515 "      delete Lino.eventStore.baseParams['su'];\n"
20130515 '    }\n'
20130515 '\n'
20130515 '    if (Lino.current_window) \n'
20130515 '        Lino.current_window.main_item.set_base_param("su",id);\n'
20130515 '    if (Lino.viewport) Lino.permalink_handler(Lino.current_window)();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.select_subst_user = function(cmp,rec,value){\n'
20130515 '    //~ Lino.subst_user=value;\n'
20130515 '    //~ console.log(20120713,rec);\n'
20130515 '//~ }\n'
20130515 '    \n'
20130515 'Lino.current_window = null;\n'
20130515 'Lino.window_history = Array();\n'
20130515 '    \n'
20130515 'Lino.chars2width = function(cols) {  return cols * 9; }\n'
20130515 'Lino.rows2height = function(cols) {  return cols * 20; }\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Viewport = Ext.extend(Ext.Viewport,{\n'
20130515 '  layout:"fit"\n'
20130515 '  ,initComponent : function(){\n'
20130515 '    Lino.Viewport.superclass.initComponent.call(this);\n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.el,{msg:"Please wait..."});\n'
20130515 '      //~ console.log("20121118 Lino.viewport.loadMask",this.loadMask);\n'
20130515 '    },this);\n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,refresh : function() {\n'
20130515 '      var caller = this;\n'
20130515 '      console.log("20121120 Lino.Viewport.refresh()");\n'
20130515 '      if (caller.loadMask) caller.loadMask.show();\n'
20130515 '      var success = function(response) {\n'
20130515 '        if (caller.loadMask) caller.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '          if (result.html) {\n'
20130515 "              Ext.getCmp('main_area').update(result.html);\n"
20130515 '          }\n'
20130515 '          if (result.message) {\n'
20130515 '              if (result.alert) {\n'
20130515 "                  //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "                  Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '              } else {\n'
20130515 '                  Lino.notify(result.message);\n'
20130515 '              }\n'
20130515 '          }\n'
20130515 '          \n'
20130515 '          if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '          if (result.js_code) { \n'
20130515 '            var jsr = result.js_code(caller);\n'
20130515 "            //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '          };\n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      var action = {\n'
20130515 "        url : '/api/main_html',\n"
20130515 '        waitMsg: "Please wait...",\n'
20130515 '        failure: Lino.ajax_error_handler(caller),\n'
20130515 '        success: success,\n'
20130515 "        method: 'GET',\n"
20130515 '        params: {}\n'
20130515 '      };\n'
20130515 '      Lino.insert_subst_user(action.params);\n'
20130515 '      Ext.Ajax.request(action);\n'
20130515 '    \n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.open_window = function(win,st,requesting_panel) {\n'
20130515 '  //~ console.log("20120918 Lino.open_window()",win,st);\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  if (cw) {\n'
20130515 '    //~ console.log("20120918 Lino.open_window() save current status",cw.main_item.get_status());\n'
20130515 '    Lino.window_history.push({\n'
20130515 '      window:cw,\n'
20130515 '      status:cw.main_item.get_status()\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '  Lino.current_window = win;\n'
20130515 '  //~ if (st.su) \n'
20130515 '      //~ Lino.subst_user_field.setValue(st.su);\n'
20130515 '  win.main_item.set_status(st,requesting_panel);\n'
20130515 '  win.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.load_url = function(url) {\n'
20130515 '    //~ foo.bar.baz = 2; \n'
20130515 '    //~ console.log("20121120 Lino.load_url()");\n'
20130515 '    //~ Lino.body_loadMask.show();\n'
20130515 '    Lino.viewport.loadMask.show();\n'
20130515 '    //~ location.replace(url);\n'
20130515 '    document.location = url;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.close_window = function(status_update) {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  var ww = Lino.window_history.pop();\n'
20130515 '  if (ww) {\n'
20130515 '    //~ if (status_update) Ext.apply(ww.status,status_update);\n'
20130515 '    if (status_update) status_update(ww);\n'
20130515 '    ww.window.main_item.set_status(ww.status);\n'
20130515 '    Lino.current_window = ww.window;\n'
20130515 '  } else {\n'
20130515 '    Lino.current_window = null;\n'
20130515 '  }\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.close_all_windows = function() {\n'
20130515 '  if (Lino.window_history.length == 0) {\n'
20130515 '      //~ Lino.viewport.refresh();\n'
20130515 '      var url =  "/"\n'
20130515 '      //~ console.log("20121120 Lino.close_all_windows() : no window_history");\n'
20130515 '      //~ if (ADMIN_URL) \n'
20130515 '      var p = {};\n'
20130515 '      Lino.insert_subst_user(p)\n'
20130515 '      if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '      Lino.load_url(url);\n'
20130515 '  } else {\n'
20130515 '    //~ console.log("20121120 Lino.close_all_windows() with window_history");\n'
20130515 '    while (Lino.window_history.length > 0) {\n'
20130515 '      Lino.close_window();\n'
20130515 '      //~ Lino.window_history.pop().hide_really();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '  //~ Lino.current_window = null;\n'
20130515 '  //~ Lino.close_window();\n'
20130515 '  //~ var ww = \n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.kill_current_window = function() {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  Lino.current_window = null;\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.calling_window = function() {\n'
20130515 '    if (Lino.window_history.length) return Lino.window_history[Lino.window_history.length-1];\n'
20130515 '}\n'
20130515 '\n'
20130515 '//~ Lino.WindowAction = function(mainItemClass,windowConfig,mainConfig,ppf) {\n'
20130515 'Lino.WindowAction = function(windowConfig,main_item_fn) {\n'
20130515 '    //~ if(!mainConfig) mainConfig = {};\n'
20130515 '    //~ mainConfig.is_main_window = true;\n'
20130515 '    this.windowConfig = windowConfig;\n'
20130515 '    this.main_item_fn = main_item_fn;\n'
20130515 '    //~ if (ppf) mainConfig.params_panel.fields = ppf;\n'
20130515 '    //~ this.mainConfig = mainConfig;\n'
20130515 '    //~ this.mainItemClass = mainItemClass;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.WindowAction = Ext.extend(Lino.WindowAction,{\n'
20130515 '    window : null,\n'
20130515 '    //~ mainItemClass: null,\n'
20130515 '    get_window : function() {\n'
20130515 '      //~ if(mainConfig) Ext.apply(this.mainConfig,mainConfig);\n'
20130515 '      if (this.window == null)  {\n'
20130515 '          //~ this.windowConfig.main_item = new this.mainItemClass(this.mainConfig);\n'
20130515 '          this.windowConfig.main_item = this.main_item_fn();\n'
20130515 '          this.window = new Lino.Window(this.windowConfig);\n'
20130515 '      }\n'
20130515 '      return this.window;\n'
20130515 '    },\n'
20130515 '    run : function(requesting_panel,status) {\n'
20130515 "      //~ console.log('20120625 window_action.run()',this)\n"
20130515 '      Lino.open_window(this.get_window(),status,requesting_panel);\n'
20130515 '    }\n'
20130515 '  \n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.PanelMixin = {\n'
20130515 '  get_containing_window : function (){\n'
20130515 '      if (this.containing_window) return this.containing_window;\n'
20130515 '      return this.containing_panel.get_containing_window();\n'
20130515 '  }\n'
20130515 '  ,set_window_title : function(title) {\n'
20130515 '    //~ this.setTitle(title);\n'
20130515 '    var cw = this.get_containing_window();\n'
20130515 '\n'
20130515 '    //~ if (cw) {\n'
20130515 '    //~ if (cw && cw.closable) {\n'
20130515 '    if (cw && !cw.main_item.hide_window_title) {\n'
20130515 "      //~ console.log('20111202 set_window_title(',title,') for',this.containing_window);\n"
20130515 '      //~ if (! this.containing_window.rendered) console.log("WARNING: not rendered!");\n'
20130515 '      cw.setTitle(title);\n'
20130515 '    //~ } else {\n'
20130515 '      //~ document.title = title;\n'
20130515 '    }\n'
20130515 "    //~ else console.log('20111202 not set_window_title(',title,') for',this);\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 "Lino.status_bar = new Ext.ux.StatusBar({defaultText:'Lino version 1.6.7.'});\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.edit_tinymce_text = function(panel,options) {\n'
20130515 '  // `panel` is the RichTextPanel\n'
20130515 '  //~ console.log(20111220,panel);\n'
20130515 '  //~ var rec = panel.get_current_record();\n'
20130515 '  var rec = panel.containing_panel.get_current_record();\n'
20130515 "  var value = rec ? rec.data[panel.editor.name] : '';\n"
20130515 '  var saving = false;\n'
20130515 '  var todo_after_save = false;\n'
20130515 '  var discard_changes = false;\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  function save() {\n'
20130515 "    //~ if (todo_after_save) {alert('tried to save again'); return; }\n"
20130515 "    if (saving) {alert('tried to save again'); return; }\n"
20130515 '    //~ var url = panel.containing_window.main_item.get_record_url(rec.id);\n'
20130515 '    var url = panel.containing_panel.get_record_url(rec.id);\n'
20130515 '    var params = Ext.apply({},panel.containing_panel.get_base_params());\n'
20130515 '    params[panel.editor.name] = editor.getValue();\n'
20130515 '    //~ params.su = Lino.subst_user;\n'
20130515 '    //~ Lino.insert_subst_user(params);\n'
20130515 '    var a = { \n'
20130515 '      params: params, \n'
20130515 "      method: 'PUT',\n"
20130515 '      url: url,\n'
20130515 '      failure: function() {\n'
20130515 '          //~ if (editor.ed.getContainer()) \n'
20130515 '          editor.ed.setProgressState(0);\n'
20130515 '          todo_after_save = false;\n'
20130515 '          saving = false;\n'
20130515 "          console.log('tinymce.save() failed. sorry.',arguments);\n"
20130515 '        },\n'
20130515 '      success: function() {\n'
20130515 '        saving = false;\n'
20130515 '        //~ if (editor.ed.getContainer()) \n'
20130515 '        editor.ed.setProgressState(0);\n'
20130515 '        rec.data[panel.editor.name] = editor.getValue();\n'
20130515 '        if(todo_after_save) {\n'
20130515 '            var fn = todo_after_save;\n'
20130515 '            todo_after_save = false;\n'
20130515 '            fn();\n'
20130515 '        }\n'
20130515 '        //~ panel.containing_window.set_current_record(rec);\n'
20130515 '        panel.refresh();\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    //~ if (editor.ed.getContainer()) \n'
20130515 '    editor.ed.setProgressState(1); // Show progress\n'
20130515 '    saving = true;\n'
20130515 '    //~ console.log(a);\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '  };\n'
20130515 '  function save_callback() {\n'
20130515 '      save();\n'
20130515 '      //~ save(function(){editor.ed.setDirty(false);})\n'
20130515 '      /* return true have the save button disabled.  \n'
20130515 "      That's not perfect because the PUT is asynchronous \n"
20130515 '      and the response is not yet known.\n'
20130515 '      */\n'
20130515 '      return true;\n'
20130515 '  }\n'
20130515 '  //~ var actions = [\n'
20130515 '    //~ {text:"Save",handler:save}\n'
20130515 '  //~ ]; \n'
20130515 '  //~ console.log(20110610,panel.editor.disabled);\n'
20130515 '  var settings = {};\n'
20130515 '  Ext.apply(settings,{\n'
20130515 '        readonly: panel.editor.disabled,\n'
20130515 '        //~ language: "de",\n'
20130515 '        plugins : "save,emotions,spellchecker,advhr,insertdatetime,preview,table,searchreplace,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "save,cancel,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect,|,search,replace",\n'
20130515 '        theme_advanced_buttons2 : "cut,copy,paste,template,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,|,code,preview,|,forecolor,backcolor",\n'
20130515 '        theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions,|,tablecontrols",      \n'
20130515 '        theme_advanced_resizing : false,\n'
20130515 '        convert_urls : false,\n'
20130515 '        save_onsavecallback : save_callback,\n'
20130515 '        save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '  });\n'
20130515 '  Ext.apply(settings,options);\n'
20130515 '  var editor = new Ext.ux.TinyMCE({\n'
20130515 '      value : value,\n'
20130515 '      tinymceSettings: settings\n'
20130515 '    });\n'
20130515 '  var win = new Ext.Window({\n'
20130515 '    title: rec.title, \n'
20130515 '    //~ bbar: actions,\n'
20130515 "    layout: 'fit',\n"
20130515 '    items: editor,\n'
20130515 '    width: 600, \n'
20130515 '    height:500,\n'
20130515 '    minWidth: 100,\n'
20130515 '\t\tminHeight: 100,\n'
20130515 '    modal: true,\n'
20130515 '    resizable: true,\n'
20130515 '    maximizable: true,\n'
20130515 '    //~ maximized: true,\n'
20130515 '    //~ closeAction: "close"\n'
20130515 '    closeAction: "hide"\n'
20130515 '    //~ hideMode: "offsets",\n'
20130515 '    //~ constrainHeader: true,\n'
20130515 "    //~ bodyStyle: 'padding: 10px'\n"
20130515 '  });\n'
20130515 '\n'
20130515 "  //~ win.on('beforeclose',function() {\n"
20130515 "  win.on('beforehide',function() {\n"
20130515 '    if (todo_after_save) return false;\n'
20130515 '    if (discard_changes) return true;\n'
20130515 '    if (editor.isDirty()) {\n'
20130515 '        //~ var ok = false;\n'
20130515 '        //~ var allowClose = true;\n'
20130515 '        var config = {title:"Confirmation"};\n'
20130515 '        config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        config.msg = "Save changes to text ?";\n'
20130515 '        config.modal = true;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 "          //~ console.log('do_when_clean',buttonId)\n"
20130515 '          if (buttonId == "yes") {\n'
20130515 "              /* we cancel this close, but save()'s onSuccess will call again.*/\n"
20130515 '              //~ allowClose = false;\n'
20130515 '              todo_after_save = function(){win.hide();}\n'
20130515 "              editor.ed.execCommand('mceSave');\n"
20130515 '              //~ editor.ed.save(function(){win.close();});\n'
20130515 '          } else if (buttonId == "no") { \n'
20130515 '              discard_changes = true;\n'
20130515 '              win.hide()\n'
20130515 '          //~ } else if (buttonId == "cancel") { \n'
20130515 '            //~ ok = true;\n'
20130515 '              //~ allowClose = false;\n'
20130515 '          //~ } else { \n'
20130515 "            //~ console.log('unknwon buttonId:',buttonId);\n"
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return false;\n'
20130515 '        //~ return allowClose;\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '  win.show();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/* \n'
20130515 '  Originally copied from Ext JS Library 3.3.1\n'
20130515 '  Modifications by Luc Saffre : \n'
20130515 '  - rendering of phantom records\n'
20130515 '  - fire afteredit event\n'
20130515 '  - react on dblclcik, not on single click\n'
20130515 '\n'
20130515 ' */\n'
20130515 'Lino.CheckColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 '\n'
20130515 '    processEvent : function(name, e, grid, rowIndex, colIndex){\n'
20130515 "        //~ console.log('20110713 Lino.CheckColumn.processEvent',name)\n"
20130515 "        if (name == 'click') {\n"
20130515 "        //~ if (name == 'mousedown') {\n"
20130515 "        //~ if (name == 'dblclick') {\n"
20130515 '            return this.toggleValue(grid, rowIndex, colIndex);\n'
20130515 '        } else {\n'
20130515 '            return Ext.grid.ActionColumn.superclass.processEvent.apply(this, arguments);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    toggleValue : function (grid,rowIndex,colIndex) {\n'
20130515 '        var record = grid.store.getAt(rowIndex);\n'
20130515 '        var dataIndex = grid.colModel.getDataIndex(colIndex);\n'
20130515 '        // 20120514\n'
20130515 '        //~ if(record.data.disabled_fields && record.data.disabled_fields[dataIndex]) {\n'
20130515 '          //~ Lino.notify("This field is disabled");\n'
20130515 '          //~ return false;\n'
20130515 '        //~ }\n'
20130515 '      \n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("This field is disabled.");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        var startValue = record.data[dataIndex];\n'
20130515 '        var value = !startValue;\n'
20130515 '        //~ record.set(this.dataIndex, value);\n'
20130515 '        var e = {\n'
20130515 '            grid: grid,\n'
20130515 '            record: record,\n'
20130515 '            field: dataIndex,\n'
20130515 '            originalValue: startValue,\n'
20130515 '            value: value,\n'
20130515 '            row: rowIndex,\n'
20130515 '            column: colIndex,\n'
20130515 '            cancel: false\n'
20130515 '        };\n'
20130515 '        if(grid.fireEvent("beforeedit", e) !== false && !e.cancel){\n'
20130515 '        //~ if(grid.fireEvent("validateedit", e) !== false && !e.cancel){\n'
20130515 '            record.set(dataIndex, value);\n'
20130515 '            delete e.cancel;\n'
20130515 '            grid.fireEvent("afteredit", e);\n'
20130515 '        }\n'
20130515 '        return false; // Cancel event propagation\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    renderer : function(v, p, record){\n'
20130515 "        if (record.phantom) return '';\n"
20130515 "        p.css += ' x-grid3-check-col-td'; \n"
20130515 '        return String.format(\'<div class="x-grid3-check-col{0}">&#160;</div>\', v ? \'-on\' : \'\');\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // Deprecate use as a plugin. Remove in 4.0\n'
20130515 '    // init: Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 '// register ptype. Deprecate. Remove in 4.0\n'
20130515 "// Ext.preg('checkcolumn', Lino.CheckColumn);\n"
20130515 '\n'
20130515 '// backwards compat. Remove in 4.0\n'
20130515 '// Ext.grid.CheckColumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '// register Column xtype\n'
20130515 'Ext.grid.Column.types.checkcolumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '\n'
20130515 '/* 20110725 : \n'
20130515 'Lino.on_tab_activate is necessary \n'
20130515 'in contacts.Person.2.dtl \n'
20130515 "(but don't ask me why...)\n"
20130515 '*/\n'
20130515 'Lino.on_tab_activate = function(item) {\n'
20130515 "  //~ console.log('activate',item); \n"
20130515 '  if (item.rendered && item.doLayout) item.doLayout();\n'
20130515 '  //~ if (item.rendered) item.doLayout();\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.TimeField = Ext.extend(Ext.form.TimeField,{\n'
20130515 "  format: 'H:i',\n"
20130515 '  increment: 15\n'
20130515 '  });\n'
20130515 'Lino.DateField = Ext.extend(Ext.form.DateField,{\n'
20130515 '  boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  });\n'
20130515 'Lino.DatePickerField = Ext.extend(Ext.DatePicker,{\n'
20130515 '  //~ boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  //~ altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  formatDate : function(date){\n'
20130515 '      console.log("20121203 formatDate",this.name,date);\n'
20130515 '      return Ext.isDate(date) ? date.dateFormat(this.format) : date;\n'
20130515 '  }\n'
20130515 '  });\n'
20130515 'Lino.DateTimeField = Ext.extend(Ext.ux.form.DateTime,{\n'
20130515 "  dateFormat: 'd.m.Y',\n"
20130515 "  timeFormat: 'H:i',\n"
20130515 "  //~ hiddenFormat: 'd.m.Y H:i'\n"
20130515 '  });\n'
20130515 'Lino.URLField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 "  //~ triggerClass : 'x-form-world-trigger',\n"
20130515 "  vtype: 'url',\n"
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    window.open(this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 'Lino.IncompleteDateField = Ext.extend(Ext.form.TextField,{\n'
20130515 '  //~ regex: /^-?\\d+-[01]\\d-[0123]\\d$/,\n'
20130515 '  //~ regex: /^[0123]\\d\\.[01]\\d\\.-?\\d+$/,\n'
20130515 '  maxLength: 10,\n'
20130515 '  boxMinWidth: Lino.chars2width(10),\n'
20130515 '  regex: /^[0123]?\\d\\.[01]?\\d\\.-?\\d+$/,\n'
20130515 "  regexText: 'Enter a date in format YYYY-MM-DD (use zeroes for unknown parts).'\n"
20130515 '  });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.make_dropzone = function(cmp) {\n'
20130515 "    //~ cmp.on('render', function(ct, position){\n"
20130515 '      //~ ct.el.on({\n'
20130515 '        //~ dragenter:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,dragover:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ event.stopEvent();\n'
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,drop:{\n'
20130515 '          //~ scope:this\n'
20130515 '          //~ ,fn:function(event){\n'
20130515 '            //~ event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            //~ var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            //~ if(files === undefined){\n'
20130515 '              //~ return true;\n'
20130515 '            //~ }\n'
20130515 '            //~ var len = files.length;\n'
20130515 '            //~ while(--len >= 0){\n'
20130515 '              //~ console.log(files[len]);\n'
20130515 '              //~ // this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            //~ }\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ });\n'
20130515 '    //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.FileUploadField = Ext.ux.form.FileUploadField;\n'
20130515 '\n'
20130515 'Lino.FileUploadField = Ext.extend(Ext.ux.form.FileUploadField,{\n'
20130515 '    onRender : function(ct, position){\n'
20130515 '      Lino.FileUploadField.superclass.onRender.call(this, ct, position);\n'
20130515 '      this.el.on({\n'
20130515 '        dragenter:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,dragover:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          event.stopEvent();\n'
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,drop:{\n'
20130515 '          scope:this\n'
20130515 '          ,fn:function(event){\n'
20130515 '            event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            if(files === undefined){\n'
20130515 '              return true;\n'
20130515 '            }\n'
20130515 '            var len = files.length;\n'
20130515 '            while(--len >= 0){\n'
20130515 '              console.log(files[len]);\n'
20130515 '              //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.FileField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 '  editable: false,\n'
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    if (this.getValue()) window.open(MEDIA_URL + '/'+this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.file_field_handler = function(panel,config) {\n'
20130515 '  //~ if (instanceof Lino.DetailWrapper) {\n'
20130515 "  if (panel.action_name == 'insert') {\n"
20130515 '  //~ if (panel.get_current_record().phantom) {\n'
20130515 '      panel.has_file_upload = true;\n'
20130515 '\n'
20130515 '      var f = new Lino.FileUploadField(config);\n'
20130515 '      //~ Lino.make_dropzone(f);\n'
20130515 '      return f;\n'
20130515 '      //~ return new Ext.ux.form.FileUploadField(config);\n'
20130515 '      //~ return new Lino.FileField(config);\n'
20130515 '      \n'
20130515 '  } else {\n'
20130515 '      //~ return new Lino.URLField(config);\n'
20130515 '      return new Lino.FileField(config);\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.VBorderPanel = Ext.extend(Ext.Panel,{\n'
20130515 '    constructor : function(config) {\n'
20130515 "      config.layout = 'border';\n"
20130515 '      delete config.layoutConfig;\n'
20130515 '      Lino.VBorderPanel.superclass.constructor.call(this,config);\n'
20130515 '      for(var i=0; i < this.items.length;i++) {\n'
20130515 '        var item = this.items.get(i);\n'
20130515 '        if (this.isVertical(item) && item.collapsible) {\n'
20130515 "          item.on('collapse',this.onBodyResize,this);\n"
20130515 "          item.on('expand',this.onBodyResize,this);\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '    },\n'
20130515 '    isVertical : function(item) {\n'
20130515 "       return (item.region == 'north' || item.region == 'south' || item.region == 'center');\n"
20130515 '    },\n'
20130515 '    onBodyResize: function(w, h){\n'
20130515 "        //~ console.log('VBorderPanel.onBodyResize',this.title)\n"
20130515 '      if (this.isVisible()) { // to avoid "Uncaught TypeError: Cannot call method \'getHeight\' of undefined."\n'
20130515 '        var sumflex = 0;\n'
20130515 '        var availableHeight = this.getInnerHeight();\n'
20130515 '        var me = this;\n'
20130515 '        this.items.each(function(item){\n'
20130515 '          if (me.isVertical(item)) {\n'
20130515 '              if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  if (item.rendered) availableHeight -= item.getHeight();\n'
20130515 '              } else {\n'
20130515 '                  sumflex += item.flex;\n'
20130515 '              }\n'
20130515 '          } \n'
20130515 '          \n'
20130515 '        });\n'
20130515 '        //~ for(var i=0; i < this.items.length;i++) {\n'
20130515 '          //~ var item = this.items.get(i);\n'
20130515 '          //~ // if (this.isVertical(item) && item.getResizeEl()) {\n'
20130515 '          //~ if (this.isVertical(item)) {\n'
20130515 '              //~ if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  //~ // item.syncSize()\n'
20130515 '                  //~ // item.doLayout()\n'
20130515 '                  //~ // if (item.region == "north") console.log(\'region north\',item.getHeight(),item.id, item);\n'
20130515 "                  //~ // if (item.getHeight() == 0) console.log(20100921,'both flex and getHeight() are 0!');\n"
20130515 '                  //~ availableHeight -= item.getHeight();\n'
20130515 '              //~ } else {\n'
20130515 '                  //~ sumflex += item.flex;\n'
20130515 '                  //~ // console.log(item.flex);\n'
20130515 '              //~ }\n'
20130515 '          //~ } \n'
20130515 "          //~ // else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        //~ }\n'
20130515 '        var hunit = availableHeight / sumflex;\n'
20130515 "        //~ console.log('sumflex=',sumflex,'hunit=',hunit, 'availableHeight=',availableHeight);\n"
20130515 '        for(var i=0; i < this.items.length;i++) {\n'
20130515 '          var item = this.items.get(i);\n'
20130515 '          if (this.isVertical(item)) {\n'
20130515 '              if (item.flex != 0 && ! item.collapsed) {\n'
20130515 '                  item.setHeight(hunit * item.flex);\n'
20130515 "                  //~ console.log(item.region,' : height set to',item.getHeight());\n"
20130515 '              }\n'
20130515 '          }\n'
20130515 "          //~ else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '      Lino.VBorderPanel.superclass.onBodyResize.call(this, w, h);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 '  modifications to the standard behaviour of a CellSelectionModel:\n'
20130515 '  \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.grid.CellSelectionModel, {\n'
20130515 '//~ var dummy = {\n'
20130515 '\n'
20130515 '    handleKeyDown : function(e){\n'
20130515 "        /* removed because F2 wouldn't pass\n"
20130515 '        if(!e.isNavKeyPress()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        */\n'
20130515 "        //~ console.log('handleKeyDown',e)\n"
20130515 '        var k = e.getKey(),\n'
20130515 '            g = this.grid,\n'
20130515 '            s = this.selection,\n'
20130515 '            sm = this,\n'
20130515 '            walk = function(row, col, step){\n'
20130515 '                return g.walkCells(\n'
20130515 '                    row,\n'
20130515 '                    col,\n'
20130515 '                    step,\n'
20130515 '                    g.isEditor && g.editing ? sm.acceptsNav : sm.isSelectable, \n'
20130515 '                    sm\n'
20130515 '                );\n'
20130515 '            },\n'
20130515 '            cell, newCell, r, c, ae;\n'
20130515 '\n'
20130515 '        switch(k){\n'
20130515 '            case e.ESC:\n'
20130515 '            case e.PAGE_UP:\n'
20130515 '            case e.PAGE_DOWN:\n'
20130515 '                break;\n'
20130515 '            default:\n'
20130515 "                // e.stopEvent(); // removed because Browser keys like Alt-Home, Ctrl-R wouldn't work\n"
20130515 '                break;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        if(!s){\n'
20130515 '            cell = walk(0, 0, 1); \n'
20130515 '            if(cell){\n'
20130515 '                this.select(cell[0], cell[1]);\n'
20130515 '            }\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        cell = s.cell;  \n'
20130515 '        r = cell[0];    \n'
20130515 '        c = cell[1];    \n'
20130515 '        \n'
20130515 '        switch(k){\n'
20130515 '            case e.TAB:\n'
20130515 '                if(e.shiftKey){\n'
20130515 '                    newCell = walk(r, c - 1, -1);\n'
20130515 '                }else{\n'
20130515 '                    newCell = walk(r, c + 1, 1);\n'
20130515 '                }\n'
20130515 '                break;\n'
20130515 '            case e.HOME:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  if (!e.hasModifier()){\n'
20130515 '                      newCell = [r, 0];\n'
20130515 "                      //~ console.log('home',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '                      if (activePage > 1) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          t.moveFirst();\n'
20130515 '                          return;\n'
20130515 '                      }\n'
20130515 '                      newCell = [0, c];\n'
20130515 '                      break;\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.END:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  c = g.colModel.getColumnCount()-1;\n'
20130515 '                  if (!e.hasModifier()) {\n'
20130515 '                      newCell = [r, c];\n'
20130515 "                      //~ console.log('end',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var d = t.getPageData();\n'
20130515 '                      if (d.activePage < d.pages) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          var self = this;\n'
20130515 "                          t.on('change',function(tb,pageData) {\n"
20130515 '                              var r = g.store.getCount()-2;\n'
20130515 '                              self.select(r, c);\n'
20130515 "                              //~ console.log('change',r,c);\n"
20130515 '                          },this,{single:true});\n'
20130515 '                          t.moveLast();\n'
20130515 '                          return;\n'
20130515 '                      } else {\n'
20130515 '                          newCell = [g.store.getCount()-1, c];\n'
20130515 "                          //~ console.log('ctrl-end',newCell);\n"
20130515 '                          break;\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.DOWN:\n'
20130515 '                newCell = walk(r + 1, c, 1);\n'
20130515 '                break;\n'
20130515 '            case e.UP:\n'
20130515 '                newCell = walk(r - 1, c, -1);\n'
20130515 '                break;\n'
20130515 '            case e.RIGHT:\n'
20130515 '                newCell = walk(r, c + 1, 1);\n'
20130515 '                break;\n'
20130515 '            case e.LEFT:\n'
20130515 '                newCell = walk(r, c - 1, -1);\n'
20130515 '                break;\n'
20130515 '            case e.F2:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.isEditor && !g.editing) {\n'
20130515 '                        g.startEditing(r, c);\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.INSERT:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.ls_insert_handler && !g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.show_insert(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.DELETE:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (!g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.delete_selected(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.ENTER:\n'
20130515 '                e.stopEvent();\n'
20130515 '                g.onCellDblClick(r,c);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '\n'
20130515 '        if(newCell){\n'
20130515 '          e.stopEvent();\n'
20130515 '          r = newCell[0];\n'
20130515 '          c = newCell[1];\n'
20130515 '          this.select(r, c); \n'
20130515 '          if(g.isEditor && g.editing){ \n'
20130515 '            ae = g.activeEditor;\n'
20130515 '            if(ae && ae.field.triggerBlur){\n'
20130515 '                ae.field.triggerBlur();\n'
20130515 '            }\n'
20130515 '            g.startEditing(r, c);\n'
20130515 '          }\n'
20130515 '        //~ } else if (g.isEditor && !g.editing && e.charCode) {\n'
20130515 '        //~ // } else if (!e.isSpecialKey() && g.isEditor && !g.editing) {\n'
20130515 '            //~ g.set_start_value(String.fromCharCode(e.charCode));\n'
20130515 '            //~ // g.set_start_value(String.fromCharCode(k));\n'
20130515 '            //~ // g.set_start_value(e.charCode);\n'
20130515 '            //~ g.startEditing(r, c);\n'
20130515 '            //~ // e.stopEvent();\n'
20130515 '            //~ return;\n'
20130515 '        // } else {\n'
20130515 "          // console.log('20120513',e,g);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ };\n'
20130515 '});\n'
20130515 '\n'
20130515 ' \n'
20130515 '\n'
20130515 'function PseudoConsole() {\n'
20130515 '    this.log = function() {};\n'
20130515 '};\n'
20130515 "if (typeof(console) == 'undefined') console = new PseudoConsole();\n"
20130515 '\n'
20130515 'Lino.notify = function(msg) {\n'
20130515 "  if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg);\n"
20130515 '  Lino.status_bar.setStatus({\n'
20130515 '    text: msg,\n'
20130515 "    iconCls: 'ok-icon',\n"
20130515 '    clear: true // auto-clear after a set interval\n'
20130515 '  });\n'
20130515 "  //~ Ext.getCmp('konsole').setTitle(msg.replace(/\\n/g,'<br/>'));\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg.replace(/\\n/g,'<br/>'));\n"
20130515 '};\n'
20130515 'Lino.alert = function(msg) {\n'
20130515 "  //~ if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  Ext.MessageBox.alert('Notify',msg);\n"
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.show_about = function() {\n'
20130515 '  //~ new Ext.Window({\n'
20130515 '    //~ width: 400, height: 400,\n'
20130515 '    //~ title: "About",\n'
20130515 '    //~ html: \'<a href="http://www.extjs.com" target="_blank">ExtJS</a> version \' + Ext.version\n'
20130515 '  //~ }).show();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'function obj2str(o) {\n'
20130515 "  if (typeof o != 'object') return String(o);\n"
20130515 "  var s = '';\n"
20130515 '  for (var p in o) {\n'
20130515 "    s += p + ': ' + obj2str(o[p]) + '\\n';\n"
20130515 '  }\n'
20130515 '  return s;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.on_store_exception = function (store,type,action,options,response,arg) {\n'
20130515 '  //~ throw response;\n'
20130515 '  console.log("on_store_exception: store=",store,\n'
20130515 '    "type=",type,\n'
20130515 '    "action=",action,\n'
20130515 '    "options=",options,\n'
20130515 '    "response=",response,\n'
20130515 '    "arg=",arg);\n'
20130515 '  if (arg) { console.log(arg.stack)};\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.on_submit_success = function(form, action) {\n'
20130515 '   //~ Lino.notify(action.result.message);\n'
20130515 '   //~ this.close();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.on_submit_failure = function(form, action) {\n'
20130515 '    //~ Lino.notify();\n'
20130515 '  // action may be undefined\n'
20130515 '    switch (action.failureType) {\n'
20130515 '        case Ext.form.Action.CLIENT_INVALID:\n'
20130515 "            Ext.Msg.alert('Client-side failure', 'Form fields may not be submitted with invalid values');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.CONNECT_FAILURE:\n'
20130515 "            Ext.Msg.alert('Connection failure', 'Ajax communication failed');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.SERVER_INVALID:\n'
20130515 "            Ext.Msg.alert('Server-side failure', action.result.message);\n"
20130515 '   }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Lino.save_wc_handler = function(ww) {\n'
20130515 '  return function(event,toolEl,panel,tc) {\n'
20130515 '    var pos = panel.getPosition();\n'
20130515 '    var size = panel.getSize();\n'
20130515 '    wc = ww.get_window_config();\n'
20130515 '    Ext.applyIf(wc,{ \n'
20130515 '      x:pos[0],y:pos[1],height:size.height,width:size.width,\n'
20130515 '      maximized:panel.maximized});\n'
20130515 "    Lino.do_action(ww,{url:'/window_configs/'+ww.config.permalink_name,params:wc,method:'POST'});\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '*/\n'
20130515 '\n'
20130515 'Lino.show_in_own_window_button = function(handler) {\n'
20130515 '  return {\n'
20130515 '    qtip: "Show this panel in own window", \n'
20130515 '    id: "up",\n'
20130515 '    handler: function(event,toolEl,panel, tc) {\n'
20130515 "      //~ console.log('20111206 report_window_button',panel,handler);\n"
20130515 '      //~ var bp = ww.get_master_params();\n'
20130515 '      //~ panel.containing_window = ww; // for HtmlBox. see blog/2010/1022\n'
20130515 '      //~ handler(panel,{base_params:bp});\n'
20130515 '      //~ handler(panel,{base_params:panel.get_master_params()});\n'
20130515 '      handler.run(null,{base_params:panel.containing_panel.get_master_params()});\n'
20130515 '      //~ handler(panel,{master_panel:panel.containing_window.main_item});\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.delete_selected = function(panel) {\n'
20130515 '  //~ console.log("Lino.delete_selected",panel);\n'
20130515 '  var recs1 = panel.get_selected();\n'
20130515 '  var recs = [];\n'
20130515 '  for ( var i=0; i < recs1.length; i++ ) { if (! recs1[i].phantom) recs.push(recs1[i]); }\n'
20130515 '  if (recs.length == 0) {\n'
20130515 '    Lino.notify("Please select at least one record.");\n'
20130515 '    return;\n'
20130515 '  };\n'
20130515 '  if (recs.length == 1) {\n'
20130515 '      if (recs[0].disable_delete) {\n'
20130515 '        Lino.alert(recs[0].disable_delete);\n'
20130515 '        return;\n'
20130515 '      }\n'
20130515 '  };\n'
20130515 '  //~ console.log(recs);\n'
20130515 '  Ext.MessageBox.show({\n'
20130515 '    title: "Confirmation",\n'
20130515 '    msg: String.format("Delete {0} rows. Are you sure?",String(recs.length)),\n'
20130515 '    //~ msg: "Delete " + String(recs.length) + " rows. Are you sure?",\n'
20130515 '    //~ buttons: Ext.MessageBox.YESNOCANCEL,\n'
20130515 '    buttons: Ext.MessageBox.YESNO,\n'
20130515 '    fn: function(btn) {\n'
20130515 "      if (btn == 'yes') {\n"
20130515 '        for ( var i=0; i < recs.length; i++ ) {\n'
20130515 '          Lino.do_action(panel,{\n'
20130515 "              method:'DELETE',\n"
20130515 "              url:  '/api' + panel.ls_url + '/' + recs[i].id,\n"
20130515 '              after_success: panel.after_delete.createDelegate(panel)\n'
20130515 '          })\n'
20130515 '        }\n'
20130515 '        //~ caller.after_delete();\n'
20130515 '      }\n'
20130515 '      else Lino.notify("Dann eben nicht.");\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.action_handler = function (panel,on_success,on_confirm) {\n'
20130515 '  return function (response) {\n'
20130515 '    //~ console.log(20120608,panel);\n'
20130515 '    if (panel instanceof Lino.GridPanel) {\n'
20130515 '        //~ gridmode = false;\n'
20130515 '        gridmode = true;\n'
20130515 "        //~ console.log('20120608 yes');\n"
20130515 '    } else {\n'
20130515 '        gridmode = false;\n'
20130515 "        //~ console.log('20120608 no');\n"
20130515 '    }\n'
20130515 '    panel.loadMask.hide(); // 20120211\n'
20130515 '    if (!response.responseText) return ;\n'
20130515 '    var result = Ext.decode(response.responseText);\n'
20130515 "    //~ console.log('Lino.action_handler()','result is',result,'on_confirm is',on_confirm);\n"
20130515 '    \n'
20130515 '    if (result.eval_js) {\n'
20130515 '        //~ console.log(20120618,result.eval_js);\n'
20130515 '        eval(result.eval_js);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.xcallback) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        var config = {title:result.xcallback.title};\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        config.buttons = result.xcallback.buttons;\n'
20130515 '        config.msg = result.message;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 '          panel.loadMask.show(); \n'
20130515 '          //~ Lino.insert_subst_user(p);\n'
20130515 '          Ext.Ajax.request({\n'
20130515 "            method: 'GET',\n"
20130515 "            url: '/callbacks/'+result.xcallback.id + '/' + buttonId,\n"
20130515 '            //~ params: {bi: buttonId},\n'
20130515 '            success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '          });\n'
20130515 "          //~ Lino.call_ajax_action(panel,'GET',)\n"
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (on_success && result.success) on_success(result);\n'
20130515 '    \n'
20130515 '    //~ if (on_confirm && result.confirm_message) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        //~ // config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        //~ config.msg = result.confirm_message;\n'
20130515 '        //~ config.fn = function(buttonId,text,opt) {\n'
20130515 '          //~ if (buttonId == "yes") {\n'
20130515 '              //~ on_confirm(panel,undefined,result.step);\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '        //~ Ext.MessageBox.show(config);\n'
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    //~ if (result.dialog_fn) {\n'
20130515 "        //~ console.log('20120928 TODO',result.dialog_fn);\n"
20130515 '    //~ }\n'
20130515 '    if (result.message) {\n'
20130515 '        //~ if (result.alert && ! gridmode) {\n'
20130515 '        if (result.alert) { // 20120628b \n'
20130515 "            //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '            if (result.alert === true) result.alert = "Alert";\n'
20130515 '            Ext.MessageBox.alert(result.alert,result.message);\n'
20130515 '        } else {\n'
20130515 '            Lino.notify(result.message);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    // \n'
20130515 '    if (result.data_record && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 '        panel.set_status({data_record:result.data_record});\n'
20130515 '    }\n'
20130515 '    else if (result.new_status && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.set_status(result.new_status);\n'
20130515 '    }\n'
20130515 '    else if (result.goto_record_id != undefined && ! gridmode) {\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.load_record_id(result.goto_record_id);\n'
20130515 '    }\n'
20130515 '    else if (result.refresh_all) {\n'
20130515 '        var cw = panel.get_containing_window();\n'
20130515 '        //~ console.log("20120123 refresh_all");\n'
20130515 '        if (cw) {\n'
20130515 '          cw.main_item.refresh();\n'
20130515 '        }\n'
20130515 '        else console.log("20120123 cannot refresh_all",panel);\n'
20130515 '    } else {\n'
20130515 '        //~ console.log("20121212 b gonna refresh",panel);\n'
20130515 '        if (result.refresh) panel.refresh();\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.open_url) {\n'
20130515 '        //~ console.log(20111126,result.open_url);\n'
20130515 '        //~ if (!result.message)\n'
20130515 '            //~ Lino.notify(\'Open new window <a href="\'+result.open_url+\'" target="_blank">\'+result.open_url+\'</a>\');\n'
20130515 '        window.open(result.open_url,\'foo\',"");\n'
20130515 '        //~ document.location = result.open_url;\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.do_action = function(caller,action) {\n'
20130515 '  action.success = function(response) {\n'
20130515 '    if (caller.loadMask) caller.loadMask.hide();\n'
20130515 "    //~ console.log('Lino.do_action()',action,'action success',response);\n"
20130515 '    if (action.after_success) {\n'
20130515 "        //~ console.log('Lino.do_action() calling after_success');\n"
20130515 '        action.after_success();\n'
20130515 '    }\n'
20130515 '    if (response.responseText) {\n'
20130515 '      var result = Ext.decode(response.responseText);\n'
20130515 "      //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '      if (result.message) {\n'
20130515 '          if (result.alert) {\n'
20130515 "              //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "              Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '          } else {\n'
20130515 '              Lino.notify(result.message);\n'
20130515 '          }\n'
20130515 '      }\n'
20130515 '      \n'
20130515 "      //~ if (result.alert_msg) Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '      //~ if (result.message) Lino.notify(result.message);\n'
20130515 '      if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '      if (result.js_code) { \n'
20130515 "        //~ console.log('Lino.do_action()',action,'gonna call js_code in',result);\n"
20130515 '        var jsr = result.js_code(caller);\n'
20130515 "        //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '        if (action.after_js_code) {\n'
20130515 "          //~ console.log('Lino.do_action()',action,'gonna call after_js_code');\n"
20130515 '          action.after_js_code(jsr);\n'
20130515 "          //~ console.log('Lino.do_action()',action,'returned from after_js_code');\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('Lino.do_action()',action,' : after_js_code is false');\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '    }\n'
20130515 '  };\n'
20130515 '  Ext.applyIf(action,{\n'
20130515 '    waitMsg: "Please wait...",\n'
20130515 '    failure: Lino.ajax_error_handler(caller),\n'
20130515 '    params: {}\n'
20130515 '  });\n'
20130515 '  //~ action.params.su = Lino.subst_user;\n'
20130515 '  Lino.insert_subst_user(action.params);\n'
20130515 '  \n'
20130515 '  Ext.Ajax.request(action);\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gup = function( name )\n'
20130515 '//~ {\n'
20130515 '  //~ // Thanks to http://www.netlobo.com/url_query_string_javascript.html\n'
20130515 '  //~ name = name.replace(/[\\[]/,"\\\\\\[").replace(/[\\]]/,"\\\\\\]");\n'
20130515 '  //~ var regexS = "[\\\\?&]"+name+"=([^&#]*)";\n'
20130515 '  //~ var regex = new RegExp( regexS );\n'
20130515 '  //~ var results = regex.exec( window.location.href );\n'
20130515 '  //~ if( results == null )\n'
20130515 '    //~ return "";\n'
20130515 '  //~ else\n'
20130515 '    //~ return results[1];\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.refresh_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 "      //~ console.log('refresh',ww);\n"
20130515 '      //~ ww.main_item.doLayout(false,true);\n'
20130515 '      //~ ww.main_item.syncSize();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.tools_close_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 '      //~ ww.close();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 'Lino.permalink_handler = function (ww) {\n'
20130515 '  return function() { \n'
20130515 '    //~ console.log(20100923,ww.get_permalink());\n'
20130515 '    //~ document.location = ww.main_item.get_permalink();\n'
20130515 '    Lino.load_url(ww.main_item.get_permalink());\n'
20130515 '    //~ console.log(20120715, ww.main_item.get_permalink());\n'
20130515 '    //~ document.location = "?permalink=" + ww.get_permalink();\n'
20130515 '    //~ document.location = "?permalink=" + ww.config.permalink_name +\'()\';\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '//~ Lino.run_permalink = function() {\n'
20130515 "  //~ var plink = Lino.gup('permalink');\n"
20130515 "  //~ if(plink) { eval('Lino.'+plink); }\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.MainPanel = {\n'
20130515 '  is_home_page : false,\n'
20130515 '  setting_param_values : false,\n'
20130515 '  config_containing_window : function(wincfg) { }\n'
20130515 '  ,init_containing_window : function(win) { }\n'
20130515 '  ,is_loading : function() { return true; } // overridden by subclasses\n'
20130515 '  ,do_when_clean : function(auto_save,todo) { todo() }\n'
20130515 '  ,get_master_params : function() {\n'
20130515 '    var p = {}\n'
20130515 "    p['mt'] = this.content_type; \n"
20130515 '    rec = this.get_current_record()\n'
20130515 '    if (rec) {\n'
20130515 '      if (rec.phantom) {\n'
20130515 "          p['mk'] = undefined; \n"
20130515 '      }else{\n'
20130515 "          p['mk'] = rec.id; \n"
20130515 '      }\n'
20130515 '    } else {\n'
20130515 "      p['mk'] = undefined;\n"
20130515 '    }\n'
20130515 "    //~ console.log('get_master_params returns',p,'using record',rec);\n"
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,get_permalink : function() {\n'
20130515 '    //~ var p = this.main_item.get_base_params() || {};\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    delete p.fmt;\n'
20130515 '    //~ if (p.fmt) delete p.fmt;\n'
20130515 '    Ext.apply(p,this.get_permalink_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "     //~ p.fmt = 'html';\n"
20130515 "    //~ console.log('get_permalink',p,this.get_permalink_params());\n"
20130515 '    if (this.is_home_page)\n'
20130515 "        //~ var url = '';\n"
20130515 "        var url = '/';\n"
20130515 '    else \n'
20130515 '        var url = this.get_permalink_url();\n'
20130515 '    if (p.su == null) \n'
20130515 '        delete p.su;\n'
20130515 '    if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '    return url;\n'
20130515 '  }\n'
20130515 '  ,get_record_url : function(record_id) {\n'
20130515 "      var url = '/api' + this.ls_url\n"
20130515 '      //~ var url = this.containing_window.config.url_data; // ls_url;\n'
20130515 "      url += '/' + (record_id === undefined ? '-99999' : String(record_id));\n"
20130515 "      //~ if (record_id !== undefined) url += '/' + String(record_id);\n"
20130515 "      //~ url += '/' + String(record_id);\n"
20130515 '      return url;\n'
20130515 '  }\n'
20130515 '  ,get_permalink_url : function() {\n'
20130515 "      return '/api' + this.ls_url;\n"
20130515 '  }\n'
20130515 '  ,get_permalink_params : function() {\n'
20130515 "      //~ return {an:'grid'};\n"
20130515 '      var p = {};\n'
20130515 '      if (this.action_name)\n'
20130515 '          p.an = this.action_name;\n'
20130515 '      this.add_param_values(p)\n'
20130515 '      return p;\n'
20130515 '  }\n'
20130515 '  ,set_status : function(status) {}\n'
20130515 '  ,get_status : function() { return {}}\n'
20130515 '  ,refresh : function() {}\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,add_params_panel : function (tbar) {\n'
20130515 '      if (this.params_panel) {\n'
20130515 '        tbar = tbar.concat([{ scope:this, \n'
20130515 '          //~ text: "$_("[parameters]")", // gear\n'
20130515 "          iconCls: 'x-tbar-parameters',\n"
20130515 '          tooltip:"Show or hide the table parameters panel",\n'
20130515 '          enableToggle: true,\n'
20130515 '          //~ pressed: ! this.params_panel.hidden,\n'
20130515 '          pressed: ! this.params_panel_hidden,\n'
20130515 '          toggleHandler: function(btn,state) { \n'
20130515 '            //~ if (this.params_panel.isVisible()) \n'
20130515 '                //~ this.params_panel.hide();\n'
20130515 '            //~ else\n'
20130515 '                //~ this.params_panel.show();\n'
20130515 '            //~ console.log("20120210 add_params_panel",state,this.params_panel);\n'
20130515 '            if (state) {\n'
20130515 '              this.params_panel.show();\n'
20130515 '              this.params_panel.doLayout();\n'
20130515 '            } else this.params_panel.hide();\n'
20130515 '            this.get_containing_window().doLayout();\n'
20130515 '          }\n'
20130515 '        }]);\n'
20130515 '        var t = this;\n'
20130515 '        var refresh = function() {if (!t.setting_param_values) t.refresh();}\n'
20130515 '        Ext.each(this.params_panel.fields,function(f) {\n'
20130515 "          //~ f.on('valid',function() {t.refresh()});\n"
20130515 '          if (f instanceof Ext.form.Checkbox) {\n'
20130515 "              f.on('check',refresh);\n"
20130515 '          } else if (f instanceof Ext.DatePicker) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 '          } else if (f instanceof Ext.form.TriggerField) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 "              //~ f.on('change',refresh);\n"
20130515 "              //~ f.on('valid',refresh);\n"
20130515 '          } else {\n'
20130515 '              if (! f.on) \n'
20130515 '                  console.log("20121010 no method \'on\'",f);\n'
20130515 '              else\n'
20130515 "                  f.on('change',refresh);\n"
20130515 '            }\n'
20130515 '          });\n'
20130515 '      }\n'
20130515 '      return tbar;\n'
20130515 '  }\n'
20130515 '  ,add_param_values : function (p) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 '      /* \n'
20130515 '      20120918 add param_values to the request string \n'
20130515 '      *only if the params_form is dirty*.\n'
20130515 '      Otherwise Actor.default_params() would never be used.\n'
20130515 '      \n'
20130515 '      20121023 But IntegClients.params_default has non-empty default values. \n'
20130515 '      Users must have the possibility to make them empty.\n'
20130515 '      */\n'
20130515 '      if (this.params_panel.form.isDirty()) {\n'
20130515 '        p.pv = this.get_param_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_param_values) \n'
20130515 '          p.pv = Lino.fields2array(\n'
20130515 '            this.params_panel.fields,this.status_param_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.params_panel.form.isDirty()) return;\n'
20130515 '      //~ p.pv = this.get_param_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  get_param_values : function() { // similar to get_field_values()\n'
20130515 '      return Lino.fields2array(this.params_panel.fields);\n'
20130515 '  },\n'
20130515 '  set_param_values : function(pv) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_param_values = pv;\n'
20130515 '      //~ this.params_panel.form.suspendEvents(false);\n'
20130515 '      this.setting_param_values = true;\n'
20130515 '      if (pv) { \n'
20130515 '          this.params_panel.form.my_loadRecord(pv);\n'
20130515 '      } else { \n'
20130515 '        this.params_panel.form.reset(); \n'
20130515 '      }\n'
20130515 '      this.setting_param_values = false;\n'
20130515 '      //~ this.params_panel.form.resumeEvents();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ajax_error_handler = function(panel) {\n'
20130515 '  return function(response,options) {\n'
20130515 "    console.log('Ajax failure:',response,options);\n"
20130515 '    if (panel.loadMask) panel.loadMask.hide();\n'
20130515 '    if (response.responseText) {\n'
20130515 "      var lines = response.responseText.split('\\n');\n"
20130515 '      if (lines.length > 10) {\n'
20130515 '          line = lines.splice(5,lines.length-10,"(...)");\n'
20130515 '      }\n'
20130515 '      Ext.MessageBox.alert(\n'
20130515 '        response.statusText,\n'
20130515 "        lines.join('<br/>')\n"
20130515 "        //~ response.responseText.replace(/\\n/g,'<br/>'))\n"
20130515 '      )\n'
20130515 '    } else {\n'
20130515 "      Ext.MessageBox.alert('Action failed',\n"
20130515 "        'Lino server did not respond to Ajax request');\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 "// Ext.Ajax.on('requestexception',Lino.ajax_error_handler)\n"
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 'Ext.QuickTips.init();\n'
20130515 '\n'
20130515 '/* setting QuickTips dismissDelay to 0 */\n'
20130515 '// Apply a set of config properties to the singleton\n'
20130515 '//~ Ext.apply(Ext.QuickTips.getQuickTip(), {\n'
20130515 '//~ Ext.apply(Ext.ToolTip, {\n'
20130515 '    //~ dismissDelay: 0\n'
20130515 '    //~ autoHide: false,\n'
20130515 '    //~ closable: true,\n'
20130515 '    //~ maxWidth: 200,\n'
20130515 '    //~ minWidth: 100,\n'
20130515 '    //~ showDelay: 50      // Show 50ms after entering target\n'
20130515 '    //~ ,trackMouse: true\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Ext.apply(Ext.QuickTip, {\n'
20130515 '    //~ dismissDelay: 0,\n'
20130515 '//~ });\n'
20130515 '  \n'
20130515 'Lino.quicktip_renderer = function(title,body) {\n'
20130515 '  return function(c) {\n'
20130515 '    //~ if (c instanceof Ext.Panel) var t = c.bwrap; else // 20130129\n'
20130515 '    if (c instanceof Ext.Panel) var t = c.header; else // 20130129\n'
20130515 '    var t = c.getEl();\n'
20130515 '    //~ console.log(20130129,t,title,body);\n'
20130515 '    //~ t.dismissDelay = 0;\n'
20130515 '    Ext.QuickTips.register({\n'
20130515 '      target: t,\n'
20130515 "      //~ cls: 'lino-quicktip-classical',\n"
20130515 '      dismissDelay: 0,\n'
20130515 '      //~ autoHide: false,\n'
20130515 '      showDelay: 50,      // Show 50ms after entering target\n'
20130515 '      //~ title: title,\n'
20130515 '      text: body\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '  \n'
20130515 'Lino.help_text_editor = function() {\n'
20130515 '  //~ var bp = {\n'
20130515 '      //~ mk:this.content_type,\n'
20130515 '      //~ mt:1\n'
20130515 '    //~ };\n'
20130515 '    //~ console.log(20120202,bp);\n'
20130515 '  //~ Lino.lino.ContentTypes.detail({},{base_params:bp});\n'
20130515 '  //~ Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '  Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '}\n'
20130515 '\n'
20130515 '// Path to the blank image should point to a valid location on your server\n'
20130515 "//~ Ext.BLANK_IMAGE_URL = MEDIA_URL + '/extjs/resources/images/default/s.gif'; \n"
20130515 '\n'
20130515 '\n'
20130515 '// used as Ext.grid.Column.renderer for id columns in order to hide the special id value -99999\n'
20130515 'Lino.id_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.raw_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.text_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return "not implemented"; \n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.NullNumberColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 "    align : 'right', \n"
20130515 "    format : '0,00/i', \n"
20130515 '    renderer : function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '        //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "        if (value === null) return '';\n"
20130515 '        return Ext.util.Format.number(value, this.format);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.NullNumberColumn = Ext.extend(Ext.grid.NumberColumn, {\n'
20130515 "    //~ align : 'right', \n"
20130515 '    //~ constructor: function(cfg){\n'
20130515 '        //~ Ext.grid.NumberColumn.superclass.constructor.call(this, cfg);\n'
20130515 '        //~ var t = this;\n'
20130515 '        //~ this.renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '          //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "          //~ if (value === null) return '';\n"
20130515 '          //~ return Ext.util.Format.number(value, t.format);\n'
20130515 '      //~ };\n'
20130515 '    //~ }\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.cell_button_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return \'<input type="button" onclick="alert(value)" value=" ? ">\' ;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.default_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  //~ return value;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.fk_renderer = function(fkname,handlername) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    //~ if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'.run(null,{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.lfk_renderer = function(panel,fkname) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 "  var handlername = 'console.log';\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'({},{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gfk_renderer = function() {\n'
20130515 '  //~ return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ if (record.phantom) return '';\n"
20130515 "    //~ console.log('Lino.gfk_renderer',value,colIndex,record,metaData,store);\n"
20130515 '    //~ return value;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.build_buttons = function(panel,actions) {\n'
20130515 '  //~ console.log("20121006 Lino.build_buttons",actions);\n'
20130515 '  if (actions) {\n'
20130515 '    var buttons = Array(actions.length);\n'
20130515 '    var cmenu = Array(actions.length);\n'
20130515 '    for (var i=0; i < actions.length; i++) { \n'
20130515 '      buttons[i] = new Ext.Toolbar.Button(actions[i]);\n'
20130515 '      cmenu[i] = actions[i]\n'
20130515 '      cmenu[i].text = actions[i].menu_item_text;\n'
20130515 '      if (actions[i].panel_btn_handler) {\n'
20130515 '          var h = actions[i].panel_btn_handler.createCallback(panel,buttons[i]);\n'
20130515 '          //~ if (actions[i].must_save) {\n'
20130515 '          if (actions[i].auto_save == true) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[true,h]));\n"
20130515 '          } else if (actions[i].auto_save == null) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[false,h]));\n"
20130515 '          } else if (actions[i].auto_save == false) {\n'
20130515 "              buttons[i].on('click',h);\n"
20130515 '          } else {\n'
20130515 '              console.log("20120703 unhandled auto_save value",actions[i])\n'
20130515 '          }\n'
20130515 '          cmenu[i].handler = actions[i].panel_btn_handler.createCallback(panel,cmenu[i]);\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    return {bbar:buttons, cmenu:new Ext.menu.Menu(cmenu)};\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.do_when_visible = function(cmp,todo) {\n'
20130515 '  //~ if (cmp.el && cmp.el.dom) \n'
20130515 '  if (cmp.isVisible()) { \n'
20130515 "    // 'visible' means 'rendered and not hidden'\n"
20130515 "    //~ console.log(cmp.title,'-> cmp is visible now');\n"
20130515 '    todo(); \n'
20130515 '  //~ } else {\n'
20130515 "      //~ cmp.on('resize',todo,cmp,{single:true});\n"
20130515 '  //~ }\n'
20130515 '  //~ if (false) { // 20120213\n'
20130515 '  } else { \n'
20130515 "    //~ console.log('Lino.do_when_visible() must defer because not isVisible()',todo,cmp);\n"
20130515 '    if (cmp.rendered) {\n'
20130515 "      //~ console.log(cmp,'-> cmp is rendered but not visible: and now?');\n"
20130515 "      //~ console.log(cmp.title,'-> cmp is rendered but not visible: try again in a moment...');\n"
20130515 '      //~ var fn = function() {Lino.do_when_visible(cmp,todo)};\n'
20130515 '      //~ fn.defer(100);\n'
20130515 '      \n'
20130515 '      Lino.do_when_visible.defer(50,this,[cmp,todo]);\n'
20130515 '      //~ Lino.do_when_visible.defer(100,this,[cmp,todo]);\n'
20130515 '      \n'
20130515 '    } else {\n'
20130515 "      //~ console.log(cmp.title,'-> after render');\n"
20130515 "      cmp.on('afterrender',todo,cmp,{single:true});\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '};    \n'
20130515 '\n'
20130515 '/*\n'
20130515 '*/\n'
20130515 'Lino.do_on_current_record = function(panel,fn,phantom_fn) {\n'
20130515 '  var rec = panel.get_current_record();\n'
20130515 '  if (rec == undefined) {\n'
20130515 '    Lino.notify("There\'s no selected record.");\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  // 20120307 A VirtualTable with a Detail (lino.Models) has only "phantom" records.\n'
20130515 '  if (rec.phantom) {\n'
20130515 '    //~ if (!panel.editable) { console.log("20120312 not editable:",panel)}\n'
20130515 '    if (phantom_fn) {\n'
20130515 '      phantom_fn(panel);\n'
20130515 '    } else {\n'
20130515 '      Lino.notify("Action not available on phantom record.");\n'
20130515 '    }\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  return fn(rec);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.call_ajax_action = function(panel,method,url,p,actionName,step,on_confirm,on_success) {\n'
20130515 '  p.an = actionName;\n'
20130515 '  if (!panel) panel = Lino.viewport;\n'
20130515 '  Ext.apply(p,panel.get_base_params());\n'
20130515 '  //~ console.log("20121212 Lino.call_ajax_action",panel);\n'
20130515 '  panel.loadMask.show(); \n'
20130515 '  //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 '  //~ Lino.insert_subst_user(p);\n'
20130515 '    \n'
20130515 "  //~ if (step) p['$ext_requests.URL_PARAM_ACTION_STEP'] = step;\n"
20130515 '  //~ if (pp) pp(p); // "parameter processor" : first used for read beid card\n'
20130515 '  Ext.Ajax.request({\n'
20130515 '    method: method,\n'
20130515 '    url: url,\n'
20130515 '    params: p,\n'
20130515 '    success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.row_action_handler = function(actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      if (pp) { p = pp(); if (! p) return; }\n'
20130515 '      Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '          //~ console.log(panel);\n'
20130515 '          //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '          Lino.call_ajax_action(panel,hm,panel.get_record_url(rec.id),p,actionName,step,fn);\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.list_action_handler = function(ls_url,actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 "  var url = '/api' + ls_url\n"
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      //~ console.log("20121210 Lino.list_action_handler",arguments);\n'
20130515 "      //~ var url = ADMIN_URL + '/api' + panel.ls_url\n"
20130515 '      if (pp) { p = pp();  if (! p) return; }\n'
20130515 '      Lino.call_ajax_action(panel,hm,url,p,actionName,step,fn);\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.param_action_handler = function(window_action) { // 20121012\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '      //~ console.log(panel);\n'
20130515 '      //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '      window_action.run(panel.getId(),{}); \n'
20130515 '    });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.run_row_action = function(requesting_panel,url,pk,actionName,pp) {\n'
20130515 '  //~ var panel = action.get_window().main_item;\n'
20130515 "  url = '/api' + url  + '/' + pk;\n"
20130515 '  var panel = Ext.getCmp(requesting_panel);\n'
20130515 '  if (pp) var p = pp(); else var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    //~ 20120723 Lino.call_ajax_action(panel,pk,actionName,step,fn);\n'
20130515 "    Lino.call_ajax_action(panel,'GET',url,p,actionName,step,fn);\n"
20130515 '  }\n'
20130515 '  fn(panel,null,null);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_detail = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel, \n'
20130515 '    function(rec) {\n'
20130515 '      //~ panel.loadMask.show();\n'
20130515 '      var bp = panel.get_base_params();\n'
20130515 '      //~ var bp = {};\n'
20130515 '      panel.add_param_values(bp); // 20120918\n'
20130515 '      var status = {\n'
20130515 '        record_id:rec.id,\n'
20130515 '        base_params:bp\n'
20130515 '        //~ param_values: pv.$ext_requests.URL_PARAM_PARAM_VALUES\n'
20130515 '      }\n'
20130515 '      //~ console.log("20120918 Lino.show_detail",status);\n'
20130515 '      panel.ls_detail_handler.run(null,status);\n'
20130515 '      //~ panel.loadMask.hide();\n'
20130515 '      //~ panel.containing_window.window.hideMask();\n'
20130515 '      //~ panel.el.unmask();\n'
20130515 '    },\n'
20130515 '    Lino.show_insert\n'
20130515 '  );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_fk_detail = function(combo,detail_action) {\n'
20130515 '    //~ console.log("Lino.show_fk_detail",combo,handler);\n'
20130515 '    pk = combo.getValue();\n'
20130515 '    if (pk) {\n'
20130515 '        detail_action.run(null,{record_id: pk})\n'
20130515 '      } else {\n'
20130515 '        Lino.notify("Cannot show detail for empty foreign key.");\n'
20130515 '      }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert = function(panel,btn) {\n'
20130515 '  var bp = panel.get_base_params();\n'
20130515 "  //~ console.log('20120125 Lino.show_insert',bp)\n"
20130515 '  //~ panel.ls_insert_handler.run(null,{record_id:-99999,base_params:bp});\n'
20130515 '  panel.ls_insert_handler.run(panel.getId(),{record_id:-99999,base_params:bp});\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert_duplicate = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel,\n'
20130515 '    function(rec) {\n'
20130515 '      var newRec = {};\n'
20130515 '      Ext.apply(newRec,rec);\n'
20130515 '      newRec.id = -99999;\n'
20130515 '      panel.ls_insert_handler.run(null,{data_record:rec});\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.update_row_handler = function(action_name) {\n'
20130515 '  //~ return function(panel,btn) {\n'
20130515 '    //~ Lino.notify("Sorry, " + action_name + " is not implemented.");\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'if (Ext.ux.grid !== undefined) {\n'
20130515 '    Lino.GridFilters = Ext.extend(Ext.ux.grid.GridFilters,{\n'
20130515 '      encode:true,\n'
20130515 '      local:false\n'
20130515 '    });\n'
20130515 '} else {\n'
20130515 '    Lino.GridFilters = function() {}; // dummy\n'
20130515 '    Ext.override(Lino.GridFilters,{\n'
20130515 '      init : function() {}\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.TextField,{\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.Field,{\n'
20130515 '    //~ editable : false,\n'
20130515 '    //~ constructor : function(ww,config,params){\n'
20130515 '      //~ this.containing_window = ww;\n'
20130515 '      //~ if (params) Ext.apply(config,params);\n'
20130515 '      //~ Lino.ButtonField.superclass.constructor.call(this, config);\n'
20130515 '    //~ },\n'
20130515 '    //~ setButtons : function(buttons){\n'
20130515 "      //~ console.log('setButtons',buttons);\n"
20130515 '    //~ },\n'
20130515 '    //~ onRender : function(ct, position){\n'
20130515 '        //~ if(!this.el){\n'
20130515 '            //~ this.panel = new Ext.Container({items:[\n'
20130515 "              //~ {xtype:'button',text:'upload'},\n"
20130515 "              //~ {xtype:'button',text:'show'},\n"
20130515 "              //~ {xtype:'button',text:'edit'}\n"
20130515 '            //~ ]});\n'
20130515 '            //~ this.panel.ownerCt = this;\n'
20130515 '            //~ this.el = this.panel.getEl();\n'
20130515 '\n'
20130515 '        //~ }\n'
20130515 '        //~ Lino.ButtonField.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '  \n'
20130515 '//~ });\n'
20130515 '\n'
20130515 'Lino.FieldBoxMixin = {\n'
20130515 '  before_init : function(config,params) {\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    if (actions) config.bbar = actions.bbar;\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.containing_window = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  do_when_clean : function(auto_save,todo) { todo() },\n'
20130515 '  //~ format_data : function(html) { return \'<div class="htmlText">\' + html + \'</div>\' },\n'
20130515 '  format_data : function(html) { return html },\n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '    //~ if (p.param_values) this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,{\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  constructor : function(config,params) {\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    Lino.HtmlBoxPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.constructor.call(this, ww,config,params);\n'
20130515 '  //~ },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  //~ disable : function() { var tb = this.getBottomToolbar(); if(tb) tb.disable()},\n'
20130515 '  //~ enable : function() { var tb = this.getBottomToolbar(); if(tb) tb.enable()},\n'
20130515 '  onRender : function(ct, position){\n'
20130515 '    Lino.HtmlBoxPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ console.log(20111125,this.containing_window);\n'
20130515 '    if (this.containing_panel) {\n'
20130515 "      this.containing_panel.on('enable',this.enable,this);\n"
20130515 "      this.containing_panel.on('disable',this.disable,this);\n"
20130515 '    }\n'
20130515 '    this.el.on({\n'
20130515 '      dragenter:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,dragover:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        event.stopEvent();\n'
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,drop:{\n'
20130515 '        scope:this\n'
20130515 '        ,fn:function(event){\n'
20130515 '          event.stopEvent();\n'
20130515 '          //~ console.log(20110516);\n'
20130515 '          var files = event.browserEvent.dataTransfer.files;\n'
20130515 '          if(files === undefined){\n'
20130515 '            return true;\n'
20130515 '          }\n'
20130515 '          var len = files.length;\n'
20130515 '          while(--len >= 0){\n'
20130515 '            console.log(files[len]);\n'
20130515 '            //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '          }\n'
20130515 '          Lino.show_insert(this);\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '      var record = this.containing_panel.get_current_record();\n'
20130515 "      //~ console.log('HtmlBox.refresh()',this.title,record,record.title);\n"
20130515 '      var box = this.items.get(0);\n'
20130515 '      var todo = function() {\n'
20130515 '        if (this.disabled) return;\n'
20130515 '        //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '        var el = box.getEl();\n'
20130515 '        if (el) {\n'
20130515 "          el.update(record ? this.format_data(record.data[this.name]) : '');\n"
20130515 "          //~ console.log('HtmlBox.refresh()',this.name);\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('HtmlBox.refresh() failed for',this.name);\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '      Lino.do_when_visible(box,todo.createDelegate(this));\n'
20130515 '    //~ }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.RichTextPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,{\n'
20130515 '    \n'
20130515 '  //~ initComponent : function(){\n'
20130515 '    //~ Lino.RichTextPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ },\n'
20130515 '  constructor : function(config,params) {\n'
20130515 "    //~ console.log('Lino.RichTextPanel.initComponent',this);\n"
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + String(rec.id) + "/" + config.name;\n'
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + config.name;\n'
20130515 '    var t = this;\n'
20130515 '    var tinymce_options = {\n'
20130515 '        theme : "advanced",\n'
20130515 "        content_css: '/media/lino/extjs/lino.css',\n"
20130515 "        language: 'de',\n"
20130515 '        //~ template_external_list_url : url,\n'
20130515 '        theme_advanced_toolbar_location : "top",\n'
20130515 '        theme_advanced_toolbar_align : "left",\n'
20130515 '        theme_advanced_statusbar_location : "bottom",\n'
20130515 '        template_popup_width : 700,\n'
20130515 '        template_popup_height : 500,\n'
20130515 '        template_replace_values : { \n'
20130515 '            data_field : function(element){ \n'
20130515 '                //~ console.log(20110722,fieldName,t.containing_window.get_current_record()); \n'
20130515 '                var fieldName = element.innerHTML;\n'
20130515 '                element.innerHTML = t.containing_panel.get_current_record().data[fieldName];\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '    var editorConfig = {\n'
20130515 '      tinymceSettings: {\n'
20130515 '        plugins : "noneditable,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,template",\n'
20130515 '        theme_advanced_buttons2 : "",\n'
20130515 '        theme_advanced_buttons3 : "", // ,|,sub,sup,|,charmap",      \n'
20130515 '        theme_advanced_resizing : false\n'
20130515 '        //~ save_onsavecallback : save_callback,\n'
20130515 '        //~ save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '        \n'
20130515 '    }};\n'
20130515 '    Ext.apply(editorConfig.tinymceSettings,tinymce_options);\n'
20130515 '    //~ editorConfig.name = config.action_name;\n'
20130515 '    editorConfig.name = config.name;\n'
20130515 '    delete config.name;\n'
20130515 '    //~ config.title = config.label;\n'
20130515 '    //~ delete config.label;\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    \n'
20130515 '    this.editor = new Ext.ux.TinyMCE(editorConfig);\n'
20130515 '    var t = this;\n'
20130515 '    config.tools = [{\n'
20130515 '                      qtip: "Edit text in own window", \n'
20130515 '                      id: "up",\n'
20130515 '                      handler: function(){\n'
20130515 '                        if(t.editor.isDirty()) {\n'
20130515 '                            var record = t.containing_panel.get_current_record();\n'
20130515 '                            record.data[t.editor.name] = t.editor.getValue();\n'
20130515 '                        }\n'
20130515 '                        Lino.edit_tinymce_text(t,tinymce_options)\n'
20130515 '                      }\n'
20130515 '                    }];\n'
20130515 '    \n'
20130515 '    config.items = this.editor;\n'
20130515 '    config.layout = "fit";\n'
20130515 '    Lino.RichTextPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    var record = this.containing_panel.get_current_record();\n'
20130515 "    //~ console.log('RichTextPanel.refresh()',this.title,record.title,record);\n"
20130515 '    var todo = function() {\n'
20130515 '      //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '      if (record) {\n'
20130515 '        var url = \'/templates\' + this.containing_panel.ls_url + "/" \n'
20130515 '            + String(record.id) + "/" + this.editor.name;\n'
20130515 "        //~ console.log('RichTextPanel.refresh()',url);\n"
20130515 '        if (this.editor.ed) this.editor.ed.settings.template_external_list_url = url;\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 "        //~ var v = record ? this.format_data(record.data[this.editor.name]) : ''\n"
20130515 '        var v = this.format_data(record.data[this.editor.name])\n'
20130515 '        this.editor.setValue(v);\n'
20130515 '      } else {\n'
20130515 "        this.editor.setValue('(no data)');\n"
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.PanelMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 "  //~ layout:'fit'\n"
20130515 '  //~ ,autoHeight: true\n'
20130515 '  //~ ,frame: true\n'
20130515 '  window_title: "Action Parameters",\n'
20130515 '  constructor : function(config){\n'
20130515 '    config.bbar = [\n'
20130515 "        {text:'OK',handler:this.on_ok,scope:this},\n"
20130515 "        {text:'Cancel',handler:this.on_cancel,scope:this}\n"
20130515 '    ];\n'
20130515 '    //~ config.items = config.params_panel;\n'
20130515 '    Lino.ActionFormPanel.superclass.constructor.call(this, config);\n'
20130515 '  }\n'
20130515 '  //~ ,initComponent : function(){\n'
20130515 '    //~ Lino.ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '    //~ var rp = this.requesting_panel;\n'
20130515 '    //~ console.log("on_ok",this.requesting_panel,arguments);\n'
20130515 '    //~ Lino.row_action_handler()\n'
20130515 '    var panel = this.requesting_panel;\n'
20130515 '    var actionName = this.action_name;\n'
20130515 '    var rec = panel.get_current_record();\n'
20130515 '    var self = this;\n'
20130515 '    function on_success() { self.get_containing_window().close(); };\n'
20130515 '    var fn = function(panel,btn,step) {\n'
20130515 '      var p = {};\n'
20130515 '      self.add_field_values(p)\n'
20130515 "      Lino.call_ajax_action(panel,'GET',panel.get_record_url(rec.id),p,actionName,step,fn,on_success);\n"
20130515 '    }\n'
20130515 '    fn(panel,null,null);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '  }\n'
20130515 '  ,set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 ActionFormPanel.set_status()',status,rp,this.requesting_panel);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_field_values(status.field_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,add_field_values : function (p) { // similar to add_param_values()\n'
20130515 '      //~ 20121023 \n'
20130515 '      if (this.form.isDirty()) {\n'
20130515 '        p.fv = this.get_field_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_field_values) \n'
20130515 '          p.fv = Lino.fields2array(this.fields,this.status_field_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.form.isDirty()) return;\n'
20130515 '      //~ p.$ext_requests.URL_PARAM_FIELD_VALUES = this.get_field_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '  }\n'
20130515 '  ,get_field_values : function() {\n'
20130515 '      return Lino.fields2array(this.fields);\n'
20130515 '  }\n'
20130515 '  ,set_field_values : function(pv) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_field_values = pv;\n'
20130515 '      if (pv) this.form.my_loadRecord(pv);\n'
20130515 '      else this.form.reset(); \n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.title = this.window_title;\n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.fields2array = function(fields,values) {\n'
20130515 "    //~ console.log('20120116 gonna loop on', fields);\n"
20130515 '    var pv = Array(fields.length);\n'
20130515 '    for(var i=0; i < fields.length;i++) {\n'
20130515 '        var f = fields[i]\n'
20130515 '        if (values) \n'
20130515 '          var v = values[f.name];\n'
20130515 '        else \n'
20130515 '          var v = f.getValue();\n'
20130515 '        if (f.formatDate) {\n'
20130515 '            pv[i] = f.formatDate(v); \n'
20130515 '        } else {\n'
20130515 '            pv[i] = v; // f.getValue(); \n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    return pv;\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.FormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,Lino.PanelMixin);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  //~ base_params : {},\n'
20130515 '  //~ trackResetOnLoad : true,\n'
20130515 '  //~ query_params : {},\n'
20130515 "  //~ 20110119b quick_search_text : '',\n"
20130515 '  constructor : function(config,params){\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    this.base_params = {};\n'
20130515 "    //~ ww.config.base_params.query = ''; // 20111018\n"
20130515 '    //~ console.log(config);\n'
20130515 "    //~ console.log('FormPanel.constructor() 1',config)\n"
20130515 '    //~ Ext.applyIf(config,{base_params:{}});\n'
20130515 "    //~ console.log('FormPanel.constructor() 2',config)\n"
20130515 '      \n'
20130515 '    config.trackResetOnLoad = true;\n'
20130515 '    \n'
20130515 '    Lino.FormPanel.superclass.constructor.call(this, config);\n'
20130515 '      \n'
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',null); // 20111018\n"
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',''); // 20111018\n"
20130515 '      \n'
20130515 '  },\n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    //~ console.log("20111201 containing_window",this.containing_window,this);\n'
20130515 '    \n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    if (actions) {\n'
20130515 '        this.bbar = actions.bbar;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ this.bbar = [];\n'
20130515 '    }\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ var config = this;\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window instanceof Lino.DetailWrapper) {\n'
20130515 '    \n'
20130515 "    //~ console.log('20120121 initComponent', this.action_name);\n"
20130515 "    //~ if (this.action_name == 'detail' | this.action_name == 'show') {\n"
20130515 "    //~ if (this.action_name != 'insert') {\n"
20130515 '    if (! this.hide_top_toolbar) {\n'
20130515 '      this.tbar = [];\n'
20130515 '      // 20111015    \n'
20130515 '      if (! this.hide_navigator) {\n'
20130515 '        this.record_selector = new Lino.RemoteComboFieldElement({\n'
20130515 '          store: new Lino.ComplexRemoteComboStore({\n'
20130515 '            //~ baseParams: this.containing_window.config.base_params,\n'
20130515 '            baseParams: this.get_base_params(),\n'
20130515 '            //~ value: this.containing_window.config.base_params.query,\n'
20130515 '            proxy: new Ext.data.HttpProxy({\n'
20130515 "              url: '/choices' + this.ls_url,\n"
20130515 "              method:'GET'\n"
20130515 '            })\n'
20130515 '          }),\n'
20130515 '          pageSize:25,\n'
20130515 '          listeners: { \n'
20130515 '            scope:this, \n'
20130515 '            select:function(combo,record,index) {\n'
20130515 "              //~ console.log('jumpto_select',arguments);\n"
20130515 '              this.goto_record_id(record.id);\n'
20130515 '            }\n'
20130515 '          },\n'
20130515 '          emptyText: "Go to record"\n'
20130515 '        })\n'
20130515 '        this.tbar = this.tbar.concat([this.record_selector]);\n'
20130515 '        \n'
20130515 '        this.tbar = this.tbar.concat([\n'
20130515 '          this.first = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"First",disabled:true,handler:this.moveFirst,scope:this,iconCls:\'x-tbar-page-first\'}),\n'
20130515 '          this.prev = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Previous",disabled:true,handler:this.movePrev,scope:this,iconCls:\'x-tbar-page-prev\'}),\n'
20130515 '          this.next = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Next",disabled:true,handler:this.moveNext,scope:this,iconCls:\'x-tbar-page-next\'}),\n'
20130515 '          this.last = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Last",disabled:true,handler:this.moveLast,scope:this,iconCls:\'x-tbar-page-last\'})\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      this.tbar = this.add_params_panel(this.tbar);\n'
20130515 '      \n'
20130515 '      //~ console.log(20101117,this.containing_window.refresh);\n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 '        {\n'
20130515 "          //~ text:'Refresh',\n"
20130515 '          handler:function(){ this.do_when_clean(true,this.refresh.createDelegate(this)) },\n'
20130515 "          iconCls: 'x-tbar-loading',\n"
20130515 '          tooltip:"Reload current record",\n'
20130515 '          scope:this}\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '      if (this.bbar) { // since 20121016\n'
20130515 '        if (this.tbar) {\n'
20130515 "            this.tbar = this.tbar.concat(['-']) ;\n"
20130515 '        } else {\n'
20130515 '          this.tbar = [];\n'
20130515 '        }\n'
20130515 '        this.tbar = this.tbar.concat(this.bbar) ;\n'
20130515 '        this.bbar = undefined;\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 "          '->',\n"
20130515 '          this.displayItem = new Ext.Toolbar.TextItem({})\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '    }\n'
20130515 "    //~ if (this.content_type && this.action_name != 'insert') {\n"
20130515 '      //~ this.bbar = this.bbar.concat([\n'
20130515 "        //~ '->',\n"
20130515 '        //~ { text: "[$_(\'Help Text Editor\')]",\n'
20130515 '          //~ handler: Lino.help_text_editor,\n'
20130515 '          //~ qtip: "$_(\'Edit help texts for fields on this model.\')",\n'
20130515 '          //~ scope: this}\n'
20130515 '      //~ ])\n'
20130515 '    //~ }\n'
20130515 '    //~ this.before_row_edit = config.before_row_edit.createDelegate(this);\n'
20130515 '      \n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '        //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '    //~ }\n'
20130515 '      \n'
20130515 '    Lino.FormPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.bwrap,{msg:"Please wait..."});\n'
20130515 '    },this);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.cascade(function(cmp){\n'
20130515 '      //~ // var active_field = false;\n'
20130515 '      //~ for (i = 0; i < this_.active_fields.length; i++) {\n'
20130515 '        //~ if (cmp.name == this_.active_fields[i]) {\n'
20130515 '            //~ // active_field = true; break;\n'
20130515 '            //~ cmp.on("change",function() {this_.save()});\n'
20130515 '        //~ }\n'
20130515 '      //~ };\n'
20130515 '      //~ if (active_field) {\n'
20130515 '      // if (cmp instanceof Lino.GridPanel) {\n'
20130515 '          //~ cmp.on("change",function() {this_.save()});\n'
20130515 '      //~ }\n'
20130515 '    //~ });\n'
20130515 '    \n'
20130515 "    if (this.action_name == 'insert') {\n"
20130515 '      this.cascade(function(cmp){\n'
20130515 "        // console.log('20110613 cascade',cmp);\n"
20130515 '        if (cmp.disabled_in_insert_window) {\n'
20130515 '            //~ cmp.disable();\n'
20130515 '            cmp.hide();\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    if (this.current_record == null) return true; \n'
20130515 '    var loading = false;\n'
20130515 '    this.cascade(function(cmp){\n'
20130515 '        if (cmp instanceof Lino.GridPanel && cmp.is_loading()) {\n'
20130515 "            //~ console.log(cmp.title,'is loading');\n"
20130515 '            loading = true;\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    return loading;\n'
20130515 '    //~ var a = this.findByType(Lino.GridPanel);\n'
20130515 '    //~ for (i=0;i<a.length;i++) {\n'
20130515 '        //~ if (a[i].is_loading()) return true;\n'
20130515 '    //~ }\n'
20130515 '    //~ return false;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '      var st = {\n'
20130515 '        base_params: this.get_base_params(),\n'
20130515 '        data_record : this.get_current_record()\n'
20130515 '        }\n'
20130515 '      var tp = this.items.get(0);\n'
20130515 '      if (tp instanceof Ext.TabPanel) {\n'
20130515 '        st.active_tab = tp.getActiveTab();\n'
20130515 '      }\n'
20130515 '      st.param_values = this.status_param_values;\n'
20130515 '      return st;\n'
20130515 '  },\n'
20130515 '  set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 FormPanel.set_status()',status);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '    var tp = this.items.get(0);\n'
20130515 '    if (tp instanceof Ext.TabPanel) {\n'
20130515 '      if (status.active_tab) {\n'
20130515 "        //~ console.log('20111201 active_tab',this.active_tab,this.items.get(0));\n"
20130515 '        //~ tp.activeTab = status.active_tab;\n'
20130515 '        tp.setActiveTab(status.active_tab);\n'
20130515 '        //~ this.main_item.items.get(0).activate(status.active_tab);\n'
20130515 '      } else {\n'
20130515 '        tp.setActiveTab(0);\n'
20130515 '      }\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '    if (status.data_record) {\n'
20130515 "      //~ console.log('20111201 Lino.FormPanel with data_record',this.data_record.title,this.containing_window);\n"
20130515 '      //~ this.main_item.on_master_changed.defer(2000,this.main_item,[status.data_record]);\n'
20130515 '      //~ Lino.do_when_visible(this.main_item,function(){this.on_master_changed(status.data_record)});\n'
20130515 "      //~ this.main_item.on('afterrender',function(){\n"
20130515 '      //~   this.main_item.on_master_changed(status.data_record)},this,{single:true});\n'
20130515 "      /* must defer because because set_window_title() didn't work otherwise */\n"
20130515 '      this.set_current_record.createDelegate(this,[status.data_record]).defer(100);\n'
20130515 '      //~ this.set_current_record(this.data_record);\n'
20130515 '      //~ return;\n'
20130515 '    } else if (status.record_id != undefined) { \n'
20130515 '      /* possible values include 0 and null, 0 being a valid record id, \n'
20130515 '      null the equivalent of undefined\n'
20130515 '      */\n'
20130515 '      //~ this.main_item.goto_record_id(this.status.record_id);\n'
20130515 '      this.load_record_id(status.record_id);\n'
20130515 '    } else {\n'
20130515 '      this.set_current_record(undefined);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '    \n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert_action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.base_params;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 "    delete p['query'] // 20120725\n"
20130515 '    Ext.apply(this.base_params,p);\n'
20130515 '    if (this.record_selector) {\n'
20130515 '        var store = this.record_selector.getStore();\n'
20130515 '        for (k in p) store.setBaseParam(k,p[k]);\n'
20130515 '        delete this.record_selector.lastQuery;\n'
20130515 '        //~ console.log("20120725 record_selector.setBaseParam",p)\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '        \n'
20130515 '      //~ if (this.record_selector) {\n'
20130515 '          //~ var store = this.record_selector.getStore();\n'
20130515 '          //~ for (k in store.baseParams) store.setBaseParam(k,undefined);\n'
20130515 '          //~ delete this.record_selector.lastQuery;\n'
20130515 '          //~ console.log("20120725 record_selector.getBaseParams() -->",store.baseParams)\n'
20130515 '      //~ }\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '    //~ if (this.record_selector) {\n'
20130515 '        //~ this.record_selector.getStore().setBaseParam(k,v);\n'
20130515 '        //~ delete this.record_selector.lastQuery;\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  after_delete : function() {\n'
20130515 '    if (this.current_record.navinfo.next)\n'
20130515 '      this.moveNext();\n'
20130515 '    else if (this.current_record.navinfo.prev)\n'
20130515 '      this.movePrev();\n'
20130515 '    else \n'
20130515 '      this.abandon();\n'
20130515 '  },\n'
20130515 '  moveFirst : function() {this.goto_record_id(this.current_record.navinfo.first)},\n'
20130515 '  movePrev : function() {this.goto_record_id(this.current_record.navinfo.prev)},\n'
20130515 '  moveNext : function() {this.goto_record_id(this.current_record.navinfo.next)},\n'
20130515 '  moveLast : function() {this.goto_record_id(this.current_record.navinfo.last)},\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ console.log('20120121 Lino.FormPanel.refresh()',this);\n"
20130515 '    if (this.current_record) {\n'
20130515 '        this.load_record_id(this.current_record.id,after);\n'
20130515 '    } else {\n'
20130515 '        this.set_current_record(undefined,after);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  do_when_clean : function(auto_save,todo) {\n'
20130515 '    var this_ = this;\n'
20130515 '    if (this.form.isDirty()) {\n'
20130515 '        if (auto_save) {\n'
20130515 '            this_.save(todo);\n'
20130515 '        } else {\n'
20130515 "          //~ console.log('20111217 do_when_clean() form is dirty',this.form);\n"
20130515 '          var config = {title:"Confirmation"};\n'
20130515 '          config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '          config.msg = "Save changes to current record ?";\n'
20130515 '          config.fn = function(buttonId,text,opt) {\n'
20130515 "            //~ console.log('do_when_clean',buttonId)\n"
20130515 '            if (buttonId == "yes") {\n'
20130515 '                //~ Lino.submit_detail(this_,undefined,todo);\n'
20130515 '                //~ this_.containing_window.save(todo);\n'
20130515 '                this_.save(todo);\n'
20130515 '            } else if (buttonId == "no") { \n'
20130515 '              todo();\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '    }else{\n'
20130515 "      //~ console.log('do_when_clean : now!')\n"
20130515 '      todo();\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  goto_record_id : function(record_id) {\n'
20130515 "    //~ console.log('20110701 Lino.FormPanel.goto_record_id()',record_id);\n"
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.do_when_clean(function() { this_.load_record_id(record_id) }\n'
20130515 '    this.do_when_clean(true,this.load_record_id.createDelegate(this,[record_id]));\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  load_record_id : function(record_id,after) {\n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var p = { fmt: this.containing_window.config.action_name};\n'
20130515 '    //~ var p = Ext.apply({},this.containing_window.config.base_params);\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "    //~ console.log('20110713 action_name=',this.containing_window.config.action_name,\n"
20130515 "      //~ 'base_params=',this.containing_window.config.base_params);\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ p.an = this.action_name;\n'
20130515 '    //~ p.an = this.containing_window.config.action_name;\n'
20130515 "    //~ p.fmt = 'json';\n"
20130515 "    //~ p.fmt = '$ext_requests.URL_FORMAT_JSON';\n"
20130515 '    p.rp = this.getId();\n'
20130515 '    //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 "    p.fmt = 'json';\n"
20130515 "    //~ 20110119b p['$URL_PARAM_FILTER'] = this.quick_search_text;\n"
20130515 '    //~ Ext.apply(p,this.query_params);\n'
20130515 '    this.add_param_values(p);\n'
20130515 "    //~ console.log('20121120 FormPanel.load_record_id',record_id,p);\n"
20130515 '    if (this.loadMask) this.loadMask.show();\n'
20130515 '    Ext.Ajax.request({ \n'
20130515 "      waitMsg: 'Loading record...',\n"
20130515 "      method: 'GET',\n"
20130515 '      params: p,\n'
20130515 '      scope: this,\n'
20130515 '      url: this.get_record_url(record_id),\n'
20130515 '      success: function(response) {   \n'
20130515 '        // todo: convert to Lino.action_handler.... but result \n'
20130515 '        if (this.loadMask) this.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var rec = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('20120918 goto_record_id success',rec);\n"
20130515 '          this.set_param_values(rec.param_values);\n'
20130515 '          this.set_current_record(rec,after);\n'
20130515 '        }\n'
20130515 '      },\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  abandon : function () {\n'
20130515 "    Ext.MessageBox.alert('Note',\n"
20130515 '      "No more records to display. Detail window has been closed.");\n'
20130515 '    Lino.close_window();\n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ this.containing_window.hide();\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_current_record : function(record,after) {\n'
20130515 "    //~ console.log('20120722 Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    if (this.record_selector) {\n'
20130515 '        this.record_selector.clearValue();\n'
20130515 "        // e.g. InsertWrapper FormPanel doesn't have a record_selector\n"
20130515 '    }\n'
20130515 '    this.current_record = record;\n'
20130515 '    //~ if (record) \n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    //~ else\n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record);\n"
20130515 '    //~ this.config.main_panel.form.load(record);    \n'
20130515 '    if (record) {\n'
20130515 '      this.enable();\n'
20130515 '      this.form.my_loadRecord(record.data);\n'
20130515 '      this.set_window_title(record.title);\n'
20130515 '      //~ this.getBottomToolbar().enable();\n'
20130515 '      var da = record.data.disabled_actions;\n'
20130515 '      if (da) {\n'
20130515 "          //~ console.log('20120528 disabled_actions =',da,this.getBottomToolbar());\n"
20130515 '          //~ 20121016 this.getBottomToolbar().items.each(function(item,index,length){\n'
20130515 '          var tb = this.getTopToolbar();\n'
20130515 '          if (tb) tb.items.each(function(item,index,length){\n'
20130515 "              //~ console.log('20120528 ',item.itemId,'-->',da[item.itemId]);\n"
20130515 '              if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '          });\n'
20130515 '      };\n'
20130515 '      if (this.disable_editing | record.data.disable_editing) {\n'
20130515 '          //~ console.log("20120202 disable_editing",record.title);\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            if (!cmp.always_enabled) cmp.disable();\n'
20130515 '          },this);\n'
20130515 '      } else {\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            //~ console.log("20120202",cmp);\n'
20130515 '            if (record.data.disabled_fields[cmp.name]) cmp.disable();\n'
20130515 '            else cmp.enable();\n'
20130515 '          },this);\n'
20130515 '        \n'
20130515 '          //~ if (record.data.disabled_fields) {\n'
20130515 '              //~ for (i = 0; i < record.data.disabled_fields.length; i++) {\n'
20130515 "                  //~ var flds = this.find('name',record.data.disabled_fields[i]);\n"
20130515 '                  //~ if (flds.length == 1) { \n'
20130515 '                    //~ flds[0].disable(); \n'
20130515 '                  //~ }\n'
20130515 '              //~ }\n'
20130515 '          //~ }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '      if (record.navinfo && ! this.hide_top_toolbar && ! this.hide_navigator) {\n'
20130515 '        //~ if (record.navinfo.recno == 0) {\n'
20130515 '            //~ this.first.setDisabled(true);\n'
20130515 '            //~ this.prev.setDisabled(true);\n'
20130515 '            //~ this.next.setDisabled(true);\n'
20130515 '            //~ this.last.setDisabled(true);\n'
20130515 '        //~ } else {\n'
20130515 '            this.first.setDisabled(!record.navinfo.first);\n'
20130515 '            this.prev.setDisabled(!record.navinfo.prev);\n'
20130515 '            this.next.setDisabled(!record.navinfo.next);\n'
20130515 '            this.last.setDisabled(!record.navinfo.last);\n'
20130515 '        //~ }\n'
20130515 '        this.displayItem.setText(record.navinfo.message);\n'
20130515 '      }\n'
20130515 '    } else {\n'
20130515 '      if (this.form.rendered) \n'
20130515 '        this.form.reset(); /* FileUploadField would fail when resetting a non-rendered form */\n'
20130515 '      //~ this.disable();\n'
20130515 '      //~ this.getBottomToolbar().disable();\n'
20130515 '      this.form.items.each(function(cmp){\n'
20130515 '        cmp.disable();\n'
20130515 '      },this);\n'
20130515 '      this.set_window_title(this.empty_title);\n'
20130515 '      //~ this.containing_window.window.setTitle(this.empty_title);\n'
20130515 '      if (!this.hide_navigator) {\n'
20130515 '        this.first.disable();\n'
20130515 '        this.prev.disable();\n'
20130515 '        this.next.disable();\n'
20130515 '        this.last.disable();\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 "    //~ console.log('20100531 Lino.DetailMixin.on_load_master_record',this.main_form);\n"
20130515 '    this.before_row_edit(record);\n'
20130515 '    if (after) after();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_selected : function() { return [ this.current_record ] },\n'
20130515 '  get_current_record : function() {  \n'
20130515 '    //~ console.log(20100714,this.current_record);\n'
20130515 '    return this.current_record \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_permalink_url : function() {\n'
20130515 '      var rec = this.get_current_record();\n'
20130515 '      if (rec && ! rec.phantom && rec.id != -99998)\n'
20130515 "          return '/api' + this.ls_url + '/' + rec.id;\n"
20130515 "      return '/api' + this.ls_url;\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  get_permalink_params : function() {\n'
20130515 '    var p = {};\n'
20130515 "    //~ var p = {an:'detail'};\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ var p = {an:this.action_name};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.activeTab) {\n'
20130515 '      var tab = main.items.indexOf(main.activeTab);\n'
20130515 "      //~ console.log('main.activeTab',tab,main.activeTab);\n"
20130515 '      if (tab) p.tab = tab;\n'
20130515 '    }\n'
20130515 '    this.add_param_values(p)\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.FormPanel.save() \n'
20130515 '  */\n'
20130515 '  save : function(after,switch_to_detail,action_name) {\n'
20130515 '    //~ var panel = this;\n'
20130515 "    //~ console.log('20121120 FormPanel.save');\n"
20130515 '    this.loadMask.show();\n'
20130515 '    var rec = this.get_current_record();\n'
20130515 '    if (this.has_file_upload) this.form.fileUpload = true;\n'
20130515 "    //~ console.log('FormPanel.save()',rec);\n"
20130515 '    if (!action_name) action_name = this.action_name;\n'
20130515 '    if (rec) {\n'
20130515 '      var p = {};\n'
20130515 '      Ext.apply(p,this.get_base_params());\n'
20130515 '      p.rp = this.getId();\n'
20130515 '      //~ if (this.action_name) \n'
20130515 '          //~ p.$ext_requests.URL_PARAM_ACTION_NAME = this.action_name;\n'
20130515 '      p.an = action_name;\n'
20130515 '      if (rec.phantom) {\n'
20130515 "        //~ if (this.action_name != 'insert') \n"
20130515 '            //~ console.log("Warning: phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url,\n"
20130515 "          method: 'POST',\n"
20130515 '          params: p, \n'
20130515 '          scope: this,\n'
20130515 '          success: function(form, action) {\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            /***\n'
20130515 '            Close this window, but update the status of the \n'
20130515 '            calling window.\n'
20130515 '            If the calling window is a detail on the same table,\n'
20130515 '            then it should skip to the new record. But only then.\n'
20130515 '            A successful response usually has a data_record,\n'
20130515 '            except if it is a fileupload form where some mysterious \n'
20130515 '            decoding problems (20120209) force us to return a record_id \n'
20130515 '            which will lead to an additional GET.\n'
20130515 '            ***/\n'
20130515 '            var url = this.ls_url;\n'
20130515 '            var ww = Lino.calling_window();\n'
20130515 '            if (ww && ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                   && ww.window.main_item.ls_url == this.ls_url) {\n'
20130515 '                //~ console.log("20120217 case 1");\n'
20130515 '                ww.status.record_id = action.result.record_id;\n'
20130515 '                ww.status.data_record = action.result.data_record;\n'
20130515 '                Lino.close_window();\n'
20130515 '            } else if (this.ls_detail_handler && switch_to_detail) {\n'
20130515 '                //~ console.log("20120217 case 2");\n'
20130515 '                Lino.kill_current_window();\n'
20130515 '                this.ls_detail_handler.run(null,{\n'
20130515 '                    record_id:action.result.record_id,\n'
20130515 '                    data_record: action.result.data_record,\n'
20130515 '                    base_params:this.get_base_params()\n'
20130515 '                });\n'
20130515 '            } else {\n'
20130515 '                //~ console.log("20120217 case 3");\n'
20130515 '                Lino.close_window();\n'
20130515 '            }\n'
20130515 '            //~ Lino.close_window(function(ww){\n'
20130515 '                //~ if (ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                    //~ && ww.window.main_item.ls_url == url) {\n'
20130515 '                  //~ ww.status.record_id = action.result.record_id,\n'
20130515 '                  //~ ww.status.data_record = action.result.data_record\n'
20130515 '                //~ }\n'
20130515 '            //~ });\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action);\n'
20130515 '          },\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      } else {\n'
20130515 "        //~ if (this.action_name != 'detail') \n"
20130515 '            //~ console.log("Warning: non-phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url + '/' + rec.id,\n"
20130515 "          method: 'PUT',\n"
20130515 "          //~ headers: { 'HTTP_X_REQUESTED_WITH' : 'XMLHttpRequest'},\n"
20130515 '          scope: this,\n'
20130515 '          params: p, \n'
20130515 '          success: function(form, action) {\n'
20130515 '            //~ panel.form.setValues(rec.data);\n'
20130515 '            //~ 20110701 panel.form.my_loadRecord(rec);\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            if (action.result.data_record)\n'
20130515 '                this.set_current_record(action.result.data_record,after);\n'
20130515 '            else\n'
20130515 '                console.log("Warning: no data_record in response to FormPanel.PUT")\n'
20130515 '            //~ this.refresh_with_after(after);\n'
20130515 '            //~ if (after) after(); else panel.refresh();\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action)},\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      }\n'
20130515 '    } else Lino.notify("Sorry, no current record.");\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '      this.save(null,true);\n'
20130515 '      //~ var rec = this.get_current_record();\n'
20130515 '      //~ if (rec && rec.phantom)\n'
20130515 '          //~ this.do_when_clean(true,function() { Lino.close_window(); });\n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok, scope:this }\n'
20130515 '        ,{ key: Ext.EventObject.ESCAPE, fn: this.on_cancel, scope:this }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  /* not used (no longer possible without .dtl files)\n'
20130515 '  , edit_detail_config : function () {\n'
20130515 '    var active_tab = {};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.getActiveTab !== undefined) {\n'
20130515 '      var tabitem = main.getActiveTab();\n'
20130515 '      Ext.apply(active_tab,{$ext_requests.URL_PARAM_TAB : main.items.indexOf(tabitem)});\n'
20130515 '    }\n'
20130515 '    var editor = new Ext.form.TextArea();\n'
20130515 '    var close = function() { win.close(); }\n'
20130515 '    var _this = this;\n'
20130515 '    var save = function() { \n'
20130515 '      //~ console.log(20110609,arguments); \n'
20130515 '      var params = {desc: editor.getValue()};\n'
20130515 '      Ext.apply(params,active_tab);\n'
20130515 '      var a = { \n'
20130515 '        params: params, \n'
20130515 "        method: 'PUT',\n"
20130515 "        url: ADMIN_URL + '/detail_config' + _this.ls_url,\n"
20130515 '        failure : Lino.ajax_error_handler(this),\n'
20130515 '        success: Lino.action_handler( _this, function(result) {\n'
20130515 "          //~ console.log('detail_config/save success',result);\n"
20130515 '          win.close();\n'
20130515 '          document.location = _this.get_permalink();\n'
20130515 '        })\n'
20130515 '      };\n'
20130515 "      //~ console.log('detail_config/save sent',a);\n"
20130515 '      _this.loadMask.show(); // 20120211\n'
20130515 '      Ext.Ajax.request(a);\n'
20130515 '    }\n'
20130515 "    var save_btn = new Ext.Button({text:'Save',handler:save,disabled:true});\n"
20130515 "    var win = new Ext.Window({title:'Detail Layout',\n"
20130515 "      items:editor, layout:'fit',\n"
20130515 '      width:500,height:500,\n'
20130515 "      bbar:[{text:'Cancel',handler:close},save_btn]});\n"
20130515 '    var a = { \n'
20130515 '      params:active_tab, \n'
20130515 "      method:'GET',\n"
20130515 "      url:ADMIN_URL+'/detail_config'+_this.ls_url,\n"
20130515 '      success : function(response) {\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 '          if (result.success) {\n'
20130515 '            editor.setValue(result.desc);\n'
20130515 '            save_btn.enable();\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    win.show();\n'
20130515 '  }\n'
20130515 '  */\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.getRowClass = function(record, rowIndex, rowParams, store) {\n'
20130515 '  if (record.phantom) {\n'
20130515 '    //~ console.log(20101009,record);\n'
20130515 '    //~ rowParams.bodyStyle = "color:red;background-color:blue";\n'
20130515 "    return 'lino-phantom-row';\n"
20130515 '    }\n'
20130515 "  //~ console.log('20101009 not a phantom:',record);\n"
20130515 "  return '';\n"
20130515 '}\n'
20130515 '\n'
20130515 '//~ FOO = 0;\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.GridStore = Ext.extend(Ext.data.ArrayStore,{ \n'
20130515 '  autoLoad: false\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    if (!options) options = {};\n'
20130515 '    if (!options.params) options.params = {};\n'
20130515 "    options.params.fmt = 'json';\n"
20130515 '    options.params.rp = this.grid_panel.getId();\n'
20130515 '    Lino.insert_subst_user(options.params); // since 20121016\n'
20130515 '      \n'
20130515 '    \n'
20130515 '    if (this.grid_panel.hide_top_toolbar) {\n'
20130515 '        //~ console.log("20120206 GridStore.load() toolbar is hidden");\n'
20130515 '        options.params.start = 0;\n'
20130515 '        if (this.grid_panel.preview_limit) {\n'
20130515 '          options.params.limit = this.grid_panel.preview_limit;\n'
20130515 '        }\n'
20130515 '    } else {\n'
20130515 '        var ps = this.grid_panel.calculatePageSize();\n'
20130515 '        if (!ps) {\n'
20130515 "            //~ this.gridpanel.on('render',this.load())\n"
20130515 '          //~ console.log("20120814 GridStore.load() failed to calculate pagesize");\n'
20130515 '          return false;\n'
20130515 '            //~ params.$URL_PARAM_LIMIT = 1;\n'
20130515 "            //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '            //~ return;\n'
20130515 '        } \n'
20130515 '        options.params.limit = ps;\n'
20130515 '      \n'
20130515 '        //~ options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '        //~ if (this.grid_panel.getTopToolbar().pageSize !=  ps) {\n'
20130515 '          //~ console.log("20120206 abort load because toolbar says pagesize",\n'
20130515 '            //~ this.grid_panel.getTopToolbar().pageSize,\n'
20130515 '            //~ "while actual pagesize is",ps);\n'
20130515 '            //~ return;\n'
20130515 '        //~ }\n'
20130515 '        \n'
20130515 '        this.grid_panel.getTopToolbar().pageSize =  ps;\n'
20130515 '        if (options.params.start == undefined)\n'
20130515 '            options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    this.grid_panel.add_param_values(options.params);\n'
20130515 '    //~ Lino.insert_subst_user(options.params);\n'
20130515 '    //~ console.log("20120814 GridStore.load()",options.params,this.baseParams);\n'
20130515 '    //~ if (FOO > 0) {\n'
20130515 '        //~ foo.bar = baz;\n'
20130515 '    //~ } else FOO += 1;\n'
20130515 '    return Lino.GridStore.superclass.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '    \n'
20130515 'Lino.GridPanel = Ext.extend(Ext.grid.EditorGridPanel,Lino.MainPanel);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,Lino.PanelMixin);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 "  quick_search_text : '',\n"
20130515 '  is_searching : false,\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  clicksToEdit:2,\n'
20130515 '  enableColLock: false,\n'
20130515 '  autoHeight: false,\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  preview_limit : undefined, \n'
20130515 '  //~ loadMask: true,\n'
20130515 '  //~ viewConfig: {\n'
20130515 '          //~ getRowClass: Lino.getRowClass,\n'
20130515 '          //~ emptyText:"$_(\'No data to display.\')"\n'
20130515 '        //~ },\n'
20130515 '  loadMask: {msg:"Please wait..."},\n'
20130515 '  \n'
20130515 '  constructor : function(config){\n'
20130515 '\n'
20130515 '    config.plugins = [new Lino.GridFilters()];\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ console.log("20111206 install refresh");\n'
20130515 "        //~ this.containing_window.on('show',this.refresh,this);\n"
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    //~ return this.store.getCount() > 0; \n'
20130515 '    return !this.loadMask.disabled; \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_config_containing_window : function(wincfg) { \n'
20130515 '      //~ temporarily remove save_grid_config button (see /blog(2012/1107)\n'
20130515 '      if (wincfg.tools != undefined) \n'
20130515 '        wincfg.tools = [\n'
20130515 '          //~ {handler:this.save_grid_data,\n'
20130515 '            //~ qtip:"$_("Save Grid Data")",\n'
20130515 '            //~ scope:this, id:"save_data"}, // 20120814\n'
20130515 '          {handler:this.save_grid_config,\n'
20130515 '            qtip:"Save Grid Configuration",\n'
20130515 '            scope:this, id:"save"}\n'
20130515 '        ].concat(wincfg.tools);\n'
20130515 '      //~ wincfg.listeners = { show: ... };\n'
20130515 '  },\n'
20130515 '  init_containing_window : function(win) { \n'
20130515 '    //~ console.log("20111206 install refresh");\n'
20130515 "    //~ win.on('show',this.refresh,this);\n"
20130515 '  },\n'
20130515 '  \n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    /* \n'
20130515 '    Problem 20111206:\n'
20130515 "    When a GridPanel is the main item of the window, then it doesn't \n"
20130515 "    have it's own header but uses the window's header bar.\n"
20130515 '    We must do this in initComponent because e.g. in beforerender \n'
20130515 "    it's already to late: a header element has been created because \n"
20130515 '    there was a title.\n'
20130515 '    But Lino.Window adds itself as `this.containing_window` \n'
20130515 '    only after the GridPanel has been initialized.\n'
20130515 '    Workaround is to generate a line "params.containing_window = true;" \n'
20130515 '    in the handler function.\n'
20130515 '    */ \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '    if (this.is_main_window) {\n'
20130515 "        //~ console.log(20111206, 'delete title',this.title,'from',this);\n"
20130515 '        //~ delete this.title;\n'
20130515 '        this.tools = undefined;  \n'
20130515 '        this.title = undefined;  /* simply deleting it \n'
20130515 "          isn't enough because that would only \n"
20130515 '          unhide the title defined in some base class. */\n'
20130515 '    } \n'
20130515 "    //~ else console.log(20111206, 'dont delete title',this.title,'from',this);\n"
20130515 '    \n'
20130515 '    /* e.g. when slave gridwindow called from a permalink */\n'
20130515 '    //~ if (this.base_params) Ext.apply(bp,this.base_params);  \n'
20130515 "    //~ bp['fmt'] = 'json';\n"
20130515 '    \n'
20130515 '    //~ function on_proxy_write( proxy, action,data, response,rs,options) {\n'
20130515 "      //~ console.log('20120814 on_proxy_write',action,data,response)\n"
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '    //~ }\n'
20130515 '    //~ function on_proxy_load( proxy, transactionObject, callbackOptions ) {\n'
20130515 "      //~ console.log('on_proxy_load',transactionObject)\n"
20130515 '    //~ }\n'
20130515 '    var proxy = new Ext.data.HttpProxy({ \n'
20130515 '      // 20120814 \n'
20130515 "      url: '/api' + this.ls_url\n"
20130515 '      ,method: "GET"\n'
20130515 "      //~ ,url: ADMIN_URL + '/restful' + this.ls_url\n"
20130515 '      //~ ,restful: true \n'
20130515 '      //~ ,listeners: {load:on_proxy_load} \n'
20130515 '      //~ ,listeners: {write:on_proxy_write} \n'
20130515 '    });\n'
20130515 '    //~ config.store = new Ext.data.JsonStore({ \n'
20130515 '    //~ this.store = new Ext.data.ArrayStore({ \n'
20130515 '    this.store = new Lino.GridStore({ \n'
20130515 '      grid_panel: this\n'
20130515 '      ,listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,remoteSort: true\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      //~ ,id: "id" \n'
20130515 '      ,proxy: proxy\n'
20130515 '      //~ autoLoad: this.containing_window ? true : false\n'
20130515 '      ,idIndex: this.pk_index\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,fields: this.ls_store_fields\n'
20130515 '      ,idProperty: this.ls_id_property \n'
20130515 '      // 20120814\n'
20130515 '      //~ ,writer : new Ext.data.JsonWriter({\n'
20130515 '        //~ writeAllFields: false\n'
20130515 '        //~ ,listful: true\n'
20130515 '      //~ })\n'
20130515 '      //~ ,restful : true\n'
20130515 '    });\n'
20130515 '      \n'
20130515 "    //~ console.log('config.pk_index',config.pk_index,config.store),\n"
20130515 '    delete this.ls_store_fields;\n'
20130515 '      \n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var grid = this;\n'
20130515 "    this.store.on('load', function() {\n"
20130515 "        //~ console.log('20120814 GridStore.on(load)',this_.store);\n"
20130515 '        //~ var da = this_.store.reader.arrayData.disabled_actions;\n'
20130515 '        //~ if (da) {\n'
20130515 '            //~ this.cmenu.cascade(function(item){ \n'
20130515 '              //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '              //~ if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '            //~ });\n'
20130515 '        //~ };\n'
20130515 '        this_.set_param_values(this_.store.reader.arrayData.param_values);\n'
20130515 '        //~ this_.set_status(this_.store.reader.arrayData.status);\n'
20130515 '        //~ 20120918\n'
20130515 '        if (this_.store.reader.arrayData.no_data_text) {\n'
20130515 '            //~ this.viewConfig.emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().refresh();\n'
20130515 '        }\n'
20130515 '        if (this_.containing_window)\n'
20130515 '            this_.set_window_title(this_.store.reader.arrayData.title);\n'
20130515 '            //~ this_.containing_window.setTitle(this_.store.reader.arrayData.title);\n'
20130515 '        if (!this.is_searching) { // disabled 20121025: quick_search_field may not lose focus\n'
20130515 '          this.is_searching = false;\n'
20130515 '          if (this_.selModel.getSelectedCell){\n'
20130515 '              if (this_.getStore().getCount()) // there may be no data\n'
20130515 '                  this_.selModel.select(0,0); \n'
20130515 '          } else {\n'
20130515 '              this_.selModel.selectFirstRow();\n'
20130515 '              this_.getView().focusEl.focus();\n'
20130515 '          }\n'
20130515 '        } \n'
20130515 '        //~ else console.log("is_searching -> no focussing");\n'
20130515 '        //~ var t = this.getTopToolbar();\n'
20130515 '        //~ var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '        //~ this.quick_search_field.focus(); // 20121024\n'
20130515 '      }, this\n'
20130515 '    );\n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar, this.cmenu = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ this.cmenu = new Ext.menu.Menu({items: config.bbar});\n'
20130515 '    delete this.ls_bbar_actions\n'
20130515 '    if (actions) {\n'
20130515 '        this.cmenu = actions.cmenu;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (!this.hide_top_toolbar) {  \n'
20130515 '      var tbar = [ \n'
20130515 '        this.quick_search_field = new Ext.form.TextField({ \n'
20130515 '          //~ fieldLabel: "Search"\n'
20130515 '          listeners: { \n'
20130515 '            scope:this_\n'
20130515 '            //~ ,change:this_.search_change\n'
20130515 '            \n'
20130515 '            ,render: Lino.quicktip_renderer("Quick Search","Enter a text to use as quick search filter")\n'
20130515 '            \n'
20130515 '            //~ ,keypress: this.search_keypress \n'
20130515 '            ,blur: function() { this.is_searching = false}\n'
20130515 '          }\n'
20130515 '          ,validator:function(value) { return this_.search_validate(value) }\n'
20130515 '          //~ ,tooltip: "Enter a quick search text, then press TAB"\n'
20130515 '          //~ value: text\n'
20130515 '          //~ scope:this, \n'
20130515 '          //~ ,enableKeyEvents: true\n'
20130515 '          //~ listeners: { keypress: this.search_keypress }, \n'
20130515 '          //~ id: "seachString" \n'
20130515 '      })];\n'
20130515 '      tbar = this.add_params_panel(tbar);\n'
20130515 '      tbar = tbar.concat([\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[csv]", \n'
20130515 '          tooltip: "Export this table to a .csv file", \n'
20130515 "          iconCls: 'x-tbar-csv',\n"
20130515 '          handler: function() { \n'
20130515 '            //~ 20130116 var p = Ext.apply({},this.get_base_params());\n'
20130515 "            //~ 20130116 p.fmt = 'csv';\n"
20130515 '            //~ url += "?" + Ext.urlEncode(p);\n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "csv";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            \n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        //~ { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          //~ handler: function() { \n'
20130515 '            //~ var p = this.get_current_grid_config();\n'
20130515 '            //~ Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PRINTER";\n'
20130515 '            //~ this.add_param_values(p);\n'
20130515 '            //~ window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          //~ } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          tooltip: "Show this table in plain html", \n'
20130515 "          iconCls: 'x-tbar-html',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ since 20121226 p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PLAIN";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            //~ since 20121226 window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '            window.open(\'/plain\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[pdf]", \n'
20130515 '          tooltip: "Show this table as a pdf document", \n'
20130515 "          iconCls: 'x-tbar-pdf',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "pdf";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } }\n'
20130515 '      ]);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      var menu = [];\n'
20130515 '      var set_gc = function(index) {\n'
20130515 '        return function() {\n'
20130515 "          //~ console.log('set_gc() 20100812');\n"
20130515 '          this.getColumnModel().setConfig(\n'
20130515 '              this.apply_grid_config(index,this.ls_grid_configs,this.ls_columns));\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      for (var i = 0; i < this.ls_grid_configs.length;i++) {\n'
20130515 '        var gc = this.ls_grid_configs[i];\n'
20130515 '        menu.push({text:gc.label,handler:set_gc(i),scope:this})\n'
20130515 '      }\n'
20130515 '      if(menu.length > 1) {\n'
20130515 '        tbar = tbar.concat([\n'
20130515 '          { text:"View",\n'
20130515 '            menu: menu,\n'
20130515 '            tooltip:"Select another view of this report"\n'
20130515 '          }\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      if (actions) {\n'
20130515 '        tbar = tbar.concat(actions.bbar);\n'
20130515 '          //~ this.bbar = actions.bbar;\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      this.tbar = new Ext.PagingToolbar({ \n'
20130515 '        store: this.store, \n'
20130515 '        prependButtons: true, \n'
20130515 '        //~ pageSize: this.page_length, \n'
20130515 '        pageSize: 1, \n'
20130515 '        displayInfo: true, \n'
20130515 '        beforePageText: "Page",\n'
20130515 '        afterPageText: "of {0}",\n'
20130515 '        displayMsg: "Displaying {0} - {1} of {2}",\n'
20130515 '        firstText: "Premi\xc3\xa8re page",\n'
20130515 '        lastText: "Derni\xc3\xa8re page",\n'
20130515 '        prevText: "Page pr\xc3\xa9c\xc3\xa9dente",\n'
20130515 '        nextText: "Page suivante",\n'
20130515 '        items: tbar\n'
20130515 '      });\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ var ps = this.calculatePageSize();\n'
20130515 '          //~ if (ps && ps != this.getTopToolbar().pageSize) {\n'
20130515 "              //~ // console.log('20120203 resize : pageSize',this.getTopToolbar().pageSize,'->',ps);\n"
20130515 '              //~ // this.getTopToolbar().pageSize =  ps;\n'
20130515 '              //~ cmp.refresh();\n'
20130515 '              //~ // this.getTopToolbar().doRefresh();\n'
20130515 '          //~ }\n'
20130515 '        //~ }, this);\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ cmp.getTopToolbar().pageSize = this.calculatePageSize(aw,ah,rw,rh) || 10;\n'
20130515 '          //~ cmp.refresh();\n'
20130515 '        //~ }, this, {delay:500});\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ delete this.page_length\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      \n'
20130515 '    if (this.ls_quick_edit) {\n'
20130515 '      this.selModel = new Ext.grid.CellSelectionModel()\n'
20130515 '      this.get_selected = function() {\n'
20130515 '        //~ console.log(this.getSelectionModel().selection);\n'
20130515 '        if (this.selModel.selection)\n'
20130515 '            return [ this.selModel.selection.record ];\n'
20130515 '        return [this.store.getAt(0)];\n'
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        if (this.getSelectionModel().selection) \n'
20130515 '          return this.selModel.selection.record;\n'
20130515 '        return this.store.getAt(0);\n'
20130515 '      };\n'
20130515 '    } else { \n'
20130515 '      this.selModel = new Ext.grid.RowSelectionModel() \n'
20130515 '      this.get_selected = function() {\n'
20130515 '        var sels = this.selModel.getSelections();\n'
20130515 '        if (sels.length == 0) sels = [this.store.getAt(0)];\n'
20130515 '        return sels\n'
20130515 '        //~ var sels = this.getSelectionModel().getSelections();\n'
20130515 "        //~ return Ext.pluck(sels,'id');\n"
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        var rec = this.selModel.getSelected();\n'
20130515 '        if (rec == undefined) rec = this.store.getAt(0);\n'
20130515 '        return rec\n'
20130515 '      };\n'
20130515 '    };\n'
20130515 '    delete this.ls_quick_edit;\n'
20130515 '    \n'
20130515 '    this.columns  = this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns);\n'
20130515 '    \n'
20130515 '    //~ var grid = this;\n'
20130515 '    //~ this.colModel = new Ext.grid.ColumnModel({\n'
20130515 '      //~ columns: this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns),\n'
20130515 '      //~ isCellEditable: function(col, row) {\n'
20130515 '        //~ var record = grid.store.getAt(row);\n'
20130515 "        //~ console.log('20120514',col,record); // dataIndex\n"
20130515 '        //~ var dataIndex = grid.colModel.getDataIndex(col);\n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("$_("This field is disabled")");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        //~ return Ext.grid.ColumnModel.prototype.isCellEditable.call(this, col, row);\n'
20130515 '      //~ }\n'
20130515 '    //~ });    \n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) \n'
20130515 "        //~ this.on('afterlayout', this.refresh, this);\n"
20130515 "        //~ this.on('afterrender', this.refresh,this);\n"
20130515 '    //~ else\n'
20130515 "        //~ this.on('show', this.refresh,this);\n"
20130515 "    //~ this.on('afterlayout', function() {\n"
20130515 '      //~ if (this.id == "ext-comp-1157") \n'
20130515 '        //~ console.log("20120213 afterlayout",this); \n'
20130515 '      //~ // this.refresh();\n'
20130515 '      //~ },this);\n'
20130515 "    //~ this.on('afterrender', this.refresh);\n"
20130515 "    //~ this.on('resize', this.refresh,this,{delay:500});\n"
20130515 '    //~ this.on(\'resize\', function(){console.log("20120213 resize",arguments)},this);\n'
20130515 "    this.on('resize', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments)\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('viewready', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments);\n'
20130515 '      this.view_is_ready = true;\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('afteredit', this.on_afteredit); // 20120814\n"
20130515 "    //~ this.on('afteredit', this.new_on_afteredit);\n"
20130515 "    this.on('beforeedit', this.on_beforeedit);\n"
20130515 "    this.on('beforeedit',function(e) { this.before_row_edit(e.record)},this);\n"
20130515 "    this.on('cellcontextmenu', Lino.cell_context_menu, this);\n"
20130515 "    //~ this.on('contextmenu', Lino.grid_context_menu, this);\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ if (this.id == "ext-comp-1157") captureEvents(this);    \n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ onResize : function(){\n'
20130515 '      //~ console.log("20120206 GridPanel.onResize",arguments);\n'
20130515 '      //~ Lino.GridPanel.superclass.onResize.apply(this, arguments);\n'
20130515 '      //~ this.refresh();\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '    var st = { base_params : this.get_base_params()};\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '        st.current_page = this.getTopToolbar().current;\n'
20130515 '    }\n'
20130515 '    st.param_values = this.status_param_values;\n'
20130515 '    //~ console.log("20120213 GridPanel.get_status",st);\n'
20130515 '    return st;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.GridPanel.set_status() \n'
20130515 '  */\n'
20130515 '  set_status : function(status){\n'
20130515 '    //~ console.log("20120918 GridPanel.set_status",status);\n'
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) { \n'
20130515 '      this.set_base_params(status.base_params);\n'
20130515 '    }\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '      //~ console.log("20120213 GridPanel.getTopToolbar().changePage",\n'
20130515 '          //~ status.current_page || 1);\n'
20130515 '      this.getTopToolbar().changePage(status.current_page || 1);\n'
20130515 '    }\n'
20130515 "    //~ this.fireEvent('resize');\n"
20130515 '    //~ this.refresh.defer(100,this); \n'
20130515 '    //~ this.onResize.defer(100,this); \n'
20130515 '    //~ this.refresh(); \n'
20130515 '    //~ this.doLayout(); \n'
20130515 '    //~ this.onResize(); \n'
20130515 '    //~ this.store.load();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '    this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ Lino.notify('20120204 Lino.GridPanel.refresh');\n"
20130515 "    //~ Lino.notify('Lino.GridPanel.refresh '+this.store.proxy.url);\n"
20130515 "    //~ var bp = { fmt:'json' }\n"
20130515 '    if (this.containing_panel) {\n'
20130515 '        //~ Ext.apply(p,this.master_panel.get_master_params());\n'
20130515 '        //~ Ext.apply(options.params,this.containing_panel.get_master_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (! this.view_is_ready) return;\n'
20130515 '    \n'
20130515 '    var options = {};\n'
20130515 '    if (after) {\n'
20130515 '        options.callback = function(r,options,success) {if(success) after()}\n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    //~ if (!this.rendered) {\n'
20130515 '        //~ console.log("20120206 GridPanel.refresh() must wait until rendered",options);\n'
20130515 "        //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    this.store.load(options);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* pageSize depends on grid height (Trying to remove scrollbar)\n'
20130515 '  Thanks to \n'
20130515 '  - Christophe Badoit on http://www.sencha.com/forum/showthread.php?82647\n'
20130515 '  - http://www.sencha.com/forum/archive/index.php/t-37231.html\n'
20130515 '  */\n'
20130515 '  calculatePageSize : function(second_attempt) {\n'
20130515 '    //~ if (!this.rendered) { \n'
20130515 '    if (!this.view_is_ready) { \n'
20130515 "      //~ console.log('Cannot calculatePageSize() : not rendered');\n"
20130515 '      return false; }\n'
20130515 '    //~ if (!this.isVisible()) { \n'
20130515 "      //~ console.log('calculatePageSize : not visible');\n"
20130515 '      //~ return false; }\n'
20130515 '      \n'
20130515 "    //~ console.log('getFrameHeight() is',this.getFrameHeight());\n"
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('mainBody.getHeight() is',this.getView().mainBody.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() is',this.getInnerHeight());\n"
20130515 "    //~ console.log('getHeight() is',this.getHeight());\n"
20130515 "    //~ console.log('el.getHeight() is',this.getEl().getHeight());\n"
20130515 "    //~ console.log('getGridEl().getHeight() is',this.getGridEl().getHeight());\n"
20130515 "    //~ console.log('getOuterSize().height is',this.getOuterSize().height);\n"
20130515 "    //~ console.log('getBox().height is',this.getBox().height);\n"
20130515 "    //~ console.log('getResizeEl.getHeight() is',this.getResizeEl().getHeight());\n"
20130515 "    //~ console.log('getLayoutTarget().getHeight() is',this.getLayoutTarget().getHeight());\n"
20130515 '      \n'
20130515 '    var rowHeight = this.getFrameHeight();\n'
20130515 '    //~ var rowHeight = 52; // experimental value\n'
20130515 '    var row = this.view.getRow(0);\n'
20130515 '    if (row) {\n'
20130515 "      //~ console.log('20120213 yes');\n"
20130515 '      rowHeight = Ext.get(row).getHeight();\n'
20130515 '    }\n'
20130515 "    //~ console.log('rowHeight is ',rowHeight,this,caller);\n"
20130515 '    //~ this.getView().syncScroll();\n'
20130515 '    //~ this.getView().initTemplates();\n'
20130515 '    var height = this.getView().scroller.getHeight();\n'
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() - getFrameHeight() is',\n"
20130515 "      //~ this.getInnerHeight(), '-',\n"
20130515 "      //~ this.getFrameHeight(), '=',\n"
20130515 '      //~ this.getInnerHeight() - this.getFrameHeight());\n'
20130515 '    //~ var height = this.getView().mainBody.getHeight();\n'
20130515 '    //~ var height = this.getView().mainWrap.getHeight();\n'
20130515 '    //~ var height = this.getView().resizeMarker.getHeight();\n'
20130515 '    //~ this.syncSize();\n'
20130515 '    //~ var height = this.getInnerHeight() - this.getFrameHeight();\n'
20130515 '    //~ var height = this.getHeight() - this.getFrameHeight();\n'
20130515 '    height -= Ext.getScrollBarWidth(); // leave room for a possible horizontal scrollbar... \n'
20130515 '    //~ height -= this.getView().scrollOffset;\n'
20130515 '    var ps = Math.floor(height / rowHeight);\n'
20130515 "    //~ console.log('20120203 calculatePageSize():',height,'/',rowHeight,'->',ps);\n"
20130515 '    ps -= 1; // leave room for a possible phantom row\n'
20130515 '    //~ return (ps > 1 ? ps : false);\n'
20130515 '    if (ps > 1) return ps;\n'
20130515 "    //~ console.log('calculatePageSize() found less than 1 row:',height,'/',rowHeight,'->',ps);\n"
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    return 5; // preview_limit\n'
20130515 '    //~ if (second_attempt) {\n'
20130515 "        //~ console.log('calculatePageSize() abandons after second attempt:',\n"
20130515 "          //~ height,'/',rowHeight,'->',ps);\n"
20130515 '      //~ return 5;\n'
20130515 '    //~ }\n'
20130515 '    //~ return this.calculatePageSize.defer(500,this,[true]);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  onCellDblClick : function(grid, row, col){\n'
20130515 '      //~ console.log("20120307 onCellDblClick",this,grid, row, col);\n'
20130515 '      if (this.ls_detail_handler) {\n'
20130515 "          //~ Lino.notify('show detail');\n"
20130515 '          Lino.show_detail(this);\n'
20130515 '          return false;\n'
20130515 '      }else{\n'
20130515 "        //~ console.log('startEditing');\n"
20130515 '        this.startEditing(row,col);\n'
20130515 '      }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_base_params : function() {\n'
20130515 '    //~ return this.containing_window.config.base_params;\n'
20130515 '    //~ console.log(20120717,this.store.baseParams);\n'
20130515 '    var p = Ext.apply({},this.store.baseParams);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    //~ console.log("20120717 GRidPanel.get_base_params() returns",p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.store.baseParams;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 "    //~ console.log('GridPanel.set_base_params',p)\n"
20130515 '    for (k in p) this.store.setBaseParam(k,p[k]);\n'
20130515 '    //~ this.store.baseParams = p;\n'
20130515 '    if (p.query) \n'
20130515 '        this.quick_search_field.setValue(p.query);\n'
20130515 '    //~ if (p.param_values) \n'
20130515 '        //~ this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.store.baseParams = {};\n'
20130515 '      Lino.insert_subst_user(this.store.baseParams);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.store.setBaseParam(k,v);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ get_permalink_params : function() {\n'
20130515 '    //~ var p = {};\n'
20130515 '    //~ return p;\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '    \n'
20130515 '  //~ search_keypress : function(){\n'
20130515 '    //~ console.log("2012124 search_keypress",arguments);\n'
20130515 '  //~ },\n'
20130515 '  search_validate : function(value) {\n'
20130515 '    if (value == this.quick_search_text) return true;\n'
20130515 '    this.is_searching = true;\n'
20130515 "    //~ console.log('search_validate',value)\n"
20130515 '    this.quick_search_text = value;\n'
20130515 "    this.set_base_param('query',value); \n"
20130515 '    //~ this.getTopToolbar().changePage(1);\n'
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '    return true;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  apply_grid_config : function(index,grid_configs,rpt_columns) {\n'
20130515 '    //~ var rpt_columns = this.ls_columns;\n'
20130515 '    var gc = grid_configs[index];    \n'
20130515 "    //~ console.log('apply_grid_config() 20100812',name,gc);\n"
20130515 '    this.gc_name = index;\n'
20130515 '    if (gc == undefined) {\n'
20130515 '      return rpt_columns;\n'
20130515 '      //~ config.columns = config.ls_columns;\n'
20130515 '      //~ return;\n'
20130515 '    } \n'
20130515 '    //~ delete config.ls_filters\n'
20130515 '    \n'
20130515 '    //~ console.log(20100805,config.ls_columns);\n'
20130515 '    var columns = Array(gc.columns.length);\n'
20130515 '    for (var j = 0; j < rpt_columns.length;j++) {\n'
20130515 '      var col = rpt_columns[j];\n'
20130515 '      for (var i = 0; i < gc.columns.length; i++) {\n'
20130515 '        if (col.dataIndex == gc.ci[i]) {\n'
20130515 '          col.width = gc.cw[i];\n'
20130515 '          col.hidden = gc.ch[i];\n'
20130515 '          columns[i] = col;\n'
20130515 '          break;\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ var columns = Array(rpt_columns.length);\n'
20130515 '    //~ for (var i = 0; i < rpt_columns.length; i++) {\n'
20130515 '      //~ columns[i] = rpt_columns[gc.columns[i]];\n'
20130515 '      //~ columns[i].width = gc.widths[i];\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    //~ if (gc.hidden_cols) {\n'
20130515 '      //~ for (var i = 0; i < gc.hidden_cols.length; i++) {\n'
20130515 '        //~ var hc = gc.hidden_cols[i];\n'
20130515 '        //~ for (var j = 0; j < columns.length;j++) {\n'
20130515 '          //~ var col = columns[j];\n'
20130515 '          //~ if (col.dataIndex == hc) {\n'
20130515 '            //~ col.hidden = true;\n'
20130515 '            //~ break\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '    if (gc.filters) {\n'
20130515 "      //~ console.log(20100811,'config.ls_filters',config.ls_filters);\n"
20130515 "      //~ console.log(20100811,'config.ls_grid_config.filters',config.ls_grid_config.filters);\n"
20130515 '      for (var i = 0; i < gc.filters.length; i++) {\n'
20130515 '        var fv = gc.filters[i];\n'
20130515 '        for (var j = 0; j < columns.length;j++) {\n'
20130515 '          var col = columns[j];\n'
20130515 '          if (col.dataIndex == fv.field) {\n'
20130515 "            //~ console.log(20100811, f,' == ',fv);\n"
20130515 "            if (fv.type == 'string') {\n"
20130515 '              col.filter.value = fv.value;\n'
20130515 '              //~ if (fv.comparison !== undefined) f.comparison = fv.comparison;\n'
20130515 '            } else {\n'
20130515 '              //~ console.log(20100811, fv);\n'
20130515 '              col.filter.value = {};\n'
20130515 '              col.filter.value[fv.comparison] = fv.value;\n'
20130515 '            }\n'
20130515 '            break;\n'
20130515 '          }\n'
20130515 '        };\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    return columns;\n'
20130515 '    //~ config.columns = cols;\n'
20130515 '    //~ delete config.ls_columns\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_current_grid_config : function () {\n'
20130515 '    var cm = this.getColumnModel();\n'
20130515 '    var widths = Array(cm.config.length);\n'
20130515 '    var hiddens = Array(cm.config.length);\n'
20130515 '    //~ var hiddens = Array(cm.config.length);\n'
20130515 '    var columns = Array(cm.config.length);\n'
20130515 '    //~ var columns = Array(cm.config.length);\n'
20130515 '    //~ var hidden_cols = [];\n'
20130515 '    //~ var filters = this.filters.getFilterValues();\n'
20130515 '    var p = this.filters.buildQuery(this.filters.getFilterData())\n'
20130515 '    for (var i = 0; i < cm.config.length; i++) {\n'
20130515 '      var col = cm.config[i];\n'
20130515 '      columns[i] = col.dataIndex;\n'
20130515 '      //~ hiddens[i] = col.hidden;\n'
20130515 '      widths[i] = col.width;\n'
20130515 '      hiddens[i] = col.hidden;\n'
20130515 '      //~ if (col.hidden) hidden_cols.push(col.dataIndex);\n'
20130515 '    }\n'
20130515 "    //~ p['hidden_cols'] = hidden_cols;\n"
20130515 '    p.cw = widths;\n'
20130515 '    p.ch = hiddens;\n'
20130515 '    p.ci = columns;\n'
20130515 "    //~ p['widths'] = widths;\n"
20130515 "    //~ p['hiddens'] = hiddens;\n"
20130515 "    //~ p['columns'] = columns;\n"
20130515 "    p['name'] = this.gc_name;\n"
20130515 '    //~ var gc = this.ls_grid_configs[this.gc_name];\n'
20130515 '    //~ if (gc !== undefined) \n'
20130515 "        //~ p['label'] = gc.label\n"
20130515 "    //~ console.log('20100810 save_grid_config',p);\n"
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_manage_grid_configs : function() {\n'
20130515 '    var data = [];\n'
20130515 '    for (k in this.ls_grid_configs) {\n'
20130515 '      var v = this.ls_grid_configs[k];\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i)\n'
20130515 '    }\n'
20130515 '    if (this.ls_grid_configs[this.gc_name] == undefined) {\n'
20130515 '      var v = this.get_current_grid_config();\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i);\n'
20130515 '    }\n'
20130515 '    //~ console.log(20100811, data);\n'
20130515 '    var main = new Ext.grid.GridPanel({\n'
20130515 '      store: new Ext.data.ArrayStore({\n'
20130515 '        idIndex:0,\n'
20130515 "        fields:['name','columns','hidden_cols','filters'],\n"
20130515 '        autoDestroy:true,\n'
20130515 '        data: data}),\n'
20130515 '      //~ autoHeight:true,\n'
20130515 '      selModel: new Ext.grid.RowSelectionModel(),\n'
20130515 '      listeners: { \n'
20130515 '        rowdblclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row doubleclicked',grid, rowIndex,e);\n"
20130515 '        },\n'
20130515 '        rowclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row clicked',grid, rowIndex,e);\n"
20130515 '        }\n'
20130515 '      },\n'
20130515 '      columns: [ \n'
20130515 "        {dataIndex:'name',header:'Name'}, \n"
20130515 "        {dataIndex:'columns',header:'columns'}, \n"
20130515 "        {dataIndex:'hidden_cols',header:'hidden columns'}, \n"
20130515 "        {dataIndex:'filters',header:'filters'} \n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 "    var win = new Ext.Window({title:'GridConfigs Manager',layout:'fit',items:main,height:200});\n"
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_edit_grid_config : function(name) {\n'
20130515 '    gc = this.ls_grid_configs[name];\n'
20130515 '    var win = new Ext.Window({\n'
20130515 "      title:'Edit Grid Config',layout:'vbox', \n"
20130515 "      //~ layoutConfig:'stretch'\n"
20130515 '      items:[\n'
20130515 "        {xtype:'text', value: gc.name},\n"
20130515 "        {xtype:'text', value: gc.columns},\n"
20130515 "        {xtype:'text', value: gc.hidden_cols},\n"
20130515 "        {xtype:'text', value: gc.filters}\n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  save_grid_config : function () {\n'
20130515 "    //~ console.log('TODO: save_grid_config',this);\n"
20130515 "    //~ p.column_widths = Ext.pluck(this.colModel.columns,'width');\n"
20130515 '    var a = { \n'
20130515 '      params:this.get_current_grid_config(), \n'
20130515 "      method:'PUT',\n"
20130515 "      url:'/grid_config' + this.ls_url,\n"
20130515 '      success: Lino.action_handler(this),\n'
20130515 '      scope: this,\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    //~ Lino.do_action(this,a);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_beforeedit : function(e) {\n'
20130515 "    //~ console.log('20130128 GridPanel.on_beforeedit()',e,e.record.data.disable_editing);\n"
20130515 '    if(this.disable_editing | e.record.data.disable_editing) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This record is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    if(e.record.data.disabled_fields && e.record.data.disabled_fields[e.field]) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This field is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    //~ if (e.record.data.disabled_fields) {\n'
20130515 '      //~ for (i in e.record.data.disabled_fields) {\n'
20130515 '        //~ if(e.record.data.disabled_fields[i] == e.field) {\n'
20130515 '          //~ e.cancel = true;\n'
20130515 '          //~ Lino.notify(String.format(\'Field "{0}" is disabled for this record\',e.field));\n'
20130515 '          //~ return\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  save_grid_data : function() {\n'
20130515 '      //~ console.log("20120814 save_grid_data");\n'
20130515 '      this.getStore().commitChanges();\n'
20130515 '  },\n'
20130515 '  new_on_afteredit : function(e) {\n'
20130515 '      //~ this.getStore().commitChanges();\n'
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '      console.log("20120814 new_on_afteredit",e);\n'
20130515 '  },\n'
20130515 '  on_afteredit : function(e) {\n'
20130515 '    /*\n'
20130515 '    e.grid - The grid that fired the event\n'
20130515 '    e.record - The record being edited\n'
20130515 '    e.field - The field name being edited\n'
20130515 '    e.value - The value being set\n'
20130515 '    e.originalValue - The original value for the field, before the edit.\n'
20130515 '    e.row - The grid row index\n'
20130515 '    e.column - The grid column index\n'
20130515 '    */\n'
20130515 '    var p = {};\n'
20130515 "    //~ console.log('20101130 modified: ',e.record.modified);\n"
20130515 "    //~ console.log('20101130 value: ',e.value);\n"
20130515 '    //~ var p = e.record.getChanges();\n'
20130515 "    //~ console.log('20101130 getChanges: ',e.record.getChanges());\n"
20130515 '    //~ this.before_row_edit(e.record);\n'
20130515 '    for(k in e.record.getChanges()) {\n'
20130515 '        var v = e.record.get(k);\n'
20130515 '    //~ for(k in e.record.modified) {\n'
20130515 "        //~ console.log('20101130',k,'=',v);\n"
20130515 '        //~ var cm = e.grid.getColumnModel();\n'
20130515 '        //~ var di = cm.getDataIndex(k);\n'
20130515 '        var f = e.record.fields.get(k);\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 '        //~ var v = e.record.get(di);\n'
20130515 "        if (f.type.type == 'date') {\n"
20130515 '            p[k] = Ext.util.Format.date(v, f.dateFormat);\n'
20130515 '        }else{\n'
20130515 '            p[k] = v;\n'
20130515 "            var v = e.record.get(k+'Hidden');\n"
20130515 '            if (v !== undefined) {\n'
20130515 "              p[k+'Hidden'] = v;\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        //~ var i = cm.findColumnIndex(k);\n'
20130515 '        //~ var r = cm.getRenderer(i);\n'
20130515 '        //~ var editor = cm.getCellEditor(i,e.row);\n'
20130515 '        //~ var col = e.grid.getColumnModel().getColumnById(k);\n'
20130515 "        //~ console.log('20101130 r = ',r(v));\n"
20130515 '        //~ var f = e.record.fields[k];\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 "        //~ console.log('20101130 editor = ',editor);\n"
20130515 '        //~ p[k] = f.getValue();\n'
20130515 '        //~ p[k] = r(v);\n'
20130515 '    }\n'
20130515 "    //~ console.log('20101130 p:',p);\n"
20130515 '    //~ var cm = e.grid.getColumnModel();\n'
20130515 '    //~ var di = cm.getDataIndex(e.column);\n'
20130515 '    //~ var f = e.record.fields.get(di);\n'
20130515 "    //~ console.log('20101130 f = ',f);\n"
20130515 "    //~ if (f.type.type == 'date') e.record.set(di,Ext.util.Format.date(e.value, f.dateFormat));\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var p = e.record.data;\n'
20130515 '    \n'
20130515 '    // var p = {};\n'
20130515 "    //~ p['grid_afteredit_colname'] = e.field;\n"
20130515 '    //~ p[e.field] = e.value;\n'
20130515 "    //~ console.log('20100723 GridPanel.on_afteredit()',e);\n"
20130515 '    // add value used by ForeignKeyStoreField CHOICES_HIDDEN_SUFFIX\n'
20130515 '    // not sure whether this is still needed:\n'
20130515 "    p[e.field+'Hidden'] = e.value;\n"
20130515 '    //~ p.su = Lino.subst_user;\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    // this one is needed so that this field can serve as choice context:\n'
20130515 "    e.record.data[e.field+'Hidden'] = e.value;\n"
20130515 '    // p[pk] = e.record.data[pk];\n'
20130515 '    // console.log("grid_afteredit:",e.field,\'=\',e.value);\n'
20130515 '    Ext.apply(p,this.get_base_params()); // needed for POST, ignored for PUT\n'
20130515 '    //~ Ext.apply(p,this.containing_window.config.base_params);\n'
20130515 "    //~ 20121109 p['$ext_requests.URL_PARAM_ACTION_NAME'] = 'grid';\n"
20130515 '    var self = this;\n'
20130515 '    var req = {\n'
20130515 '        params:p,\n'
20130515 "        waitMsg: 'Saving your data...',\n"
20130515 '        success: Lino.action_handler( this, function(result) {\n'
20130515 '          //~ if (result.data_record) {\n'
20130515 '          if (result.refresh_all) {\n'
20130515 '              var cw = self.get_containing_window();\n'
20130515 '              if (cw) {\n'
20130515 '                  cw.main_item.refresh();\n'
20130515 '              }\n'
20130515 '              else console.log("20120123 cannot refresh_all",self);\n'
20130515 '          } else if (result.rows) {\n'
20130515 '              //~ self.getStore().loadData(result,true);\n'
20130515 '              var r = self.getStore().reader.readRecords(result);\n'
20130515 '              if (e.record.phantom) {\n'
20130515 '                  //~ console.log("20120816 afteredit.success POST",r);\n'
20130515 '                  self.getStore().insert(e.row,r.records);\n'
20130515 '              }else{\n'
20130515 '                  //~ console.log("20120816 afteredit.success PUT",r);\n'
20130515 '                  self.getStore().doUpdate(r.records[0]);\n'
20130515 '              }\n'
20130515 '              self.getStore().rejectChanges(); /* \n'
20130515 '              get rid of the red triangles without saving the record again\n'
20130515 '              */\n'
20130515 '              //~ self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '          } else {\n'
20130515 '              self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '              self.getStore().reload();        // reload our datastore.\n'
20130515 '          }\n'
20130515 '          }),\n'
20130515 '        scope: this,\n'
20130515 '        failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    if (e.record.phantom) {\n'
20130515 "      req.params.an = 'post'; // SubmitInsert.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'POST',\n"
20130515 "        url: '/api' + this.ls_url\n"
20130515 '      });\n'
20130515 '    } else {\n'
20130515 "      req.params.an = 'put'; // SubmitDetail.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'PUT',\n"
20130515 "        url: '/api' + this.ls_url + '/' + e.record.id\n"
20130515 '      });\n'
20130515 '    }\n'
20130515 "    //~ console.log('20110406 on_afteredit',req);\n"
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(req);\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  afterRender : function() {\n'
20130515 '    Lino.GridPanel.superclass.afterRender.call(this);\n'
20130515 '    // this.getView().mainBody.focus();\n'
20130515 '    // console.log(20100114,this.getView().getRows());\n'
20130515 '    // if (this.getView().getRows().length > 0) {\n'
20130515 '    //  this.getView().focusRow(1);\n'
20130515 '    // }\n'
20130515 '    //~ this.my_load_mask = new Ext.LoadMask(this.getEl(), {\n'
20130515 '        //~ msg:\'$_("Please wait...")\',\n'
20130515 '        //~ store:this.store});\n'
20130515 '      \n'
20130515 '    var tbar = this.getTopToolbar();\n'
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 "    // tbar.on('change',function() {this.getSelectionModel().selectFirstRow();this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 '    this.nav = new Ext.KeyNav(this.getEl(),{\n'
20130515 '      pageUp: function() {tbar.movePrevious(); },\n'
20130515 '      pageDown: function() {tbar.moveNext(); },\n'
20130515 '      home: function() {tbar.moveFirst(); },\n'
20130515 '      end: function() {tbar.moveLast(); },\n'
20130515 '      scope: this\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  after_delete : function() {\n'
20130515 "    //~ console.log('Lino.GridPanel.after_delete');\n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  add_row_listener : function(fn,scope) {\n'
20130515 "    this.getSelectionModel().addListener('rowselect',fn,scope);\n"
20130515 '  },\n'
20130515 '  postEditValue : function(value, originalValue, r, field){\n'
20130515 '    value = Lino.GridPanel.superclass.postEditValue.call(this,value,originalValue,r,field);\n'
20130515 "    //~ console.log('GridPanel.postEdit()',value, originalValue, r, field);\n"
20130515 '    return value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_start_value : function(v) {\n'
20130515 '      this.start_value = v;\n'
20130515 '  },\n'
20130515 '  preEditValue : function(r, field){\n'
20130515 '      if (this.start_value) {\n'
20130515 '        var v = this.start_value;\n'
20130515 '        delete this.start_value;\n'
20130515 '        this.activeEditor.selectOnFocus = false;\n'
20130515 '        return v;\n'
20130515 '      }\n'
20130515 '      var value = r.data[field];\n'
20130515 '      return this.autoEncode && Ext.isString(value) ? Ext.util.Format.htmlDecode(value) : value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_master_changed : function() {\n'
20130515 '    //~ if (! this.enabled) return;\n'
20130515 '    //~ cmp = this;\n'
20130515 "    //~ console.log('Lino.GridPanel.on_master_changed()',this.title);\n"
20130515 '    if (! this.rendered) return; // 20120213\n'
20130515 '    var todo = function() {\n'
20130515 '      if (this.disabled) return;\n'
20130515 '      //~ if (this.disabled) return;\n'
20130515 '      //~ if (this.enabled) {\n'
20130515 '          //~ var src = caller.config.url_data + "/" + record.id + ".jpg"\n'
20130515 '          //~ console.log(20111125, this.containing_window);\n'
20130515 '          //~ for (k in p) this.getStore().setBaseParam(k,p[k]);\n'
20130515 "          //~ console.log('Lino.GridPanel.on_master_changed()',this.title,p);\n"
20130515 '          this.refresh();\n'
20130515 '          //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '          //~ this.getStore().load(); \n'
20130515 '      //~ }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '  \n'
20130515 '\n'
20130515 '//~ Lino.MainPanelMixin = {\n'
20130515 '  //~ tbar_items : function() {\n'
20130515 '      //~ return ;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.override(Lino.GridPanel,Lino.MainPanelMixin);\n'
20130515 '//~ Ext.override(Lino.FormPanel,Lino.MainPanelMixin);\n'
20130515 '\n'
20130515 '//~ Lino.grid_context_menu = function(e) {\n'
20130515 "  //~ console.log('contextmenu',arguments);\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.cell_context_menu = function(grid,row,col,e) {\n'
20130515 "  //~ console.log('20120531 cellcontextmenu',grid,row,col,e,grid.store.reader.arrayData.rows[row]);\n"
20130515 '  e.stopEvent();\n'
20130515 '  //~ grid.getView().focusCell(row,col);\n'
20130515 '  grid.getSelectionModel().select(row,col);\n'
20130515 '  //~ console.log(grid.store.getAt(row));\n'
20130515 '  //~ grid.getView().focusRow(row);\n'
20130515 '  //~ return;\n'
20130515 '  if(!grid.cmenu.el){grid.cmenu.render(); }\n'
20130515 '  //~ if(e.record.data.disabled_fields) {\n'
20130515 '  \n'
20130515 '  var da = grid.store.reader.arrayData.rows[row][grid.disabled_actions_index];\n'
20130515 '  if (da) {\n'
20130515 '      this.cmenu.cascade(function(item){ \n'
20130515 '        //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '        if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  \n'
20130515 '  var xy = e.getXY();\n'
20130515 '  xy[1] -= grid.cmenu.el.getHeight();\n'
20130515 '  grid.cmenu.showAt(xy);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.load_main_menu = function() {\n'
20130515 '  //~ Ext.Ajax.request({\n'
20130515 "    //~ waitMsg: 'Loading main menu...',\n"
20130515 "    //~ method: 'GET',\n"
20130515 "    //~ url: '/menu',\n"
20130515 '    //~ success: Lino.on_load_menu,\n'
20130515 '    //~ failure: Lino.ajax_error_handler\n'
20130515 '  //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.SlavePlugin = function(caller) {\n'
20130515 '  //~ this.caller = caller;\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.chooser_handler = function(combo,name) {\n'
20130515 '  return function(cmp,newValue,oldValue) {\n'
20130515 "    //~ console.log('Lino.chooser_handler()',cmp,oldValue,newValue);\n"
20130515 '    combo.setContextValue(name,newValue);\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ComboBox = Ext.extend(Ext.form.ComboBox,{\n'
20130515 '  forceSelection: true,\n'
20130515 "  triggerAction: 'all',\n"
20130515 '  minListWidth:230,\n'
20130515 '  autoSelect: false,\n'
20130515 '  selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  submitValue: true,\n'
20130515 "  displayField: 'text', // 'text', \n"
20130515 "  valueField: 'value', // 'value',\n"
20130515 '  \n'
20130515 '  //~ initComponent : Ext.form.ComboBox.prototype.initComponent.createSequence(function() {\n'
20130515 '  initComponent : function(){\n'
20130515 '      this.contextParams = {};\n'
20130515 '      //~ Ext.form.ComboBox.initComponent(this);\n'
20130515 '      Lino.ComboBox.superclass.initComponent.call(this);\n'
20130515 '  },\n'
20130515 '  setValue : function(v,record_data){\n'
20130515 '      /*\n'
20130515 '      Based on feature request developed in http://extjs.net/forum/showthread.php?t=75751\n'
20130515 '      */\n'
20130515 '      /* `record_data` is used to get the text corresponding to this value */\n'
20130515 "      //~ if(this.name == 'city') \n"
20130515 "      //~ console.log('20120203', this.name,'.setValue(', v ,') this=', this,'record_data=',record_data);\n"
20130515 '      var text = v;\n'
20130515 '      if(this.valueField){\n'
20130515 "        if(v == null || v == '') { \n"
20130515 "            //~ if (this.name == 'birth_country') \n"
20130515 "                //~ console.log(this.name,'.setValue',v,'no lookup needed, value is empty');\n"
20130515 '            //~ v = undefined;\n'
20130515 "            v = '';\n"
20130515 "            //~ text = '';\n"
20130515 '        } else if (Ext.isDefined(record_data)) {\n'
20130515 '          text = record_data[this.name];\n'
20130515 "          //~ if (this.name == 'birth_country') \n"
20130515 "            //~ console.log(this.name,'.setValue',v,'got text ',text,' from record ',record);\n"
20130515 '        } else {\n'
20130515 "          // if(this.mode == 'remote' && !Ext.isDefined(this.store.totalLength)){\n"
20130515 "          if(this.mode == 'remote' && ( this.lastQuery === null || (!Ext.isDefined(this.store.totalLength)))){\n"
20130515 "              //~ if (this.name == 'birth_country') console.log(this.name,'.setValue',v,'store not yet loaded');\n"
20130515 "              this.store.on('load', this.setValue.createDelegate(this, arguments), null, {single: true});\n"
20130515 '              if(this.store.lastOptions === null || this.lastQuery === null){\n'
20130515 '                  var params;\n'
20130515 '                  if(this.valueParam){\n'
20130515 '                      params = {};\n'
20130515 '                      params[this.valueParam] = v;\n'
20130515 '                  }else{\n'
20130515 '                      var q = this.allQuery;\n'
20130515 '                      this.lastQuery = q;\n'
20130515 '                      this.store.setBaseParam(this.queryParam, q);\n'
20130515 '                      params = this.getParams(q);\n'
20130515 '                  }\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : call load() with params ',params);\n"
20130515 '                  this.store.load({params: params});\n'
20130515 '              //~ }else{\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : but store is loading',this.store.lastOptions);\n"
20130515 '              }\n'
20130515 '              return;\n'
20130515 '          //~ }else{\n'
20130515 "              //~ if (this.name == 'birth_country') \n"
20130515 '                //~ console.log(this.name,\'.setValue\',v,\' : store is loaded, lastQuery is "\',this.lastQuery,\'"\');\n'
20130515 '          }\n'
20130515 '          var r = this.findRecord(this.valueField, v);\n'
20130515 '          if(r){\n'
20130515 '              text = r.data[this.displayField];\n'
20130515 '          }else if(this.valueNotFoundText !== undefined){\n'
20130515 '              text = this.valueNotFoundText;\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      this.lastSelectionText = text;\n'
20130515 '      //~ this.lastSelectionText = v;\n'
20130515 '      if(this.hiddenField){\n'
20130515 '          //~ this.hiddenField.originalValue = v;\n'
20130515 '          this.hiddenField.value = v;\n'
20130515 '      }\n'
20130515 '      Ext.form.ComboBox.superclass.setValue.call(this, text);\n'
20130515 '      this.value = v; // needed for grid.afteredit\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  getParams : function(q){\n'
20130515 '    // p = Ext.form.ComboBox.superclass.getParams.call(this, q);\n'
20130515 '    // causes "Ext.form.ComboBox.superclass.getParams is undefined"\n'
20130515 '    var p = {};\n'
20130515 '    //p[this.queryParam] = q;\n'
20130515 '    if(this.pageSize){\n'
20130515 '        //~ p.start = 0;\n'
20130515 '        //~ p.limit = this.pageSize;\n'
20130515 "        p['start'] = 0;\n"
20130515 "        p['limit'] = this.pageSize;\n"
20130515 '    }\n'
20130515 '    // now my code:\n'
20130515 '    if(this.contextParams) Ext.apply(p,this.contextParams);\n'
20130515 '    //~ if(this.contextParams && this.contextValues) {\n'
20130515 '      //~ for(i = 0; i <= this.contextParams.length; i++)\n'
20130515 '        //~ p[this.contextParams[i]] = this.contextValues[i];\n'
20130515 '    //~ }\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  setContextValue : function(name,value) {\n'
20130515 "    //~ console.log('setContextValue',this,this.name,':',name,'=',value);\n"
20130515 '    //~ if (this.contextValues === undefined) {\n'
20130515 '        //~ this.contextValues = Array(); // this.contextParams.length);\n'
20130515 '    //~ }\n'
20130515 '    if (this.contextParams[name] != value) {\n'
20130515 "      //~ console.log('setContextValue 1',this.contextParams);\n"
20130515 '      this.contextParams[name] = value;\n'
20130515 '      this.lastQuery = null;\n'
20130515 "      //~ console.log('setContextValue 2',this.contextParams);\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ChoicesFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'local'\n"
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  forceSelection: true,\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.SimpleRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value' ], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ComplexRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.ComplexRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value','text'], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.RemoteComboFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'remote',\n"
20130515 '  //~ forceSelection:false,\n'
20130515 '  minChars: 2, // default 4 is too much\n'
20130515 '  queryDelay: 300, // default 500 is maybe slow\n'
20130515 "  queryParam: 'query', \n"
20130515 '  //~ typeAhead: true,\n'
20130515 '  //~ selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  resizable: true\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Thanks to Animal for posting the basic idea:\n'
20130515 'http://www.sencha.com/forum/showthread.php?15842-2.0-SOLVED-Combobox-twintrigger-clear&p=76130&viewfull=1#post76130\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Lino.TwinCombo = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "    trigger2Class : 'x-form-search-trigger',\n"
20130515 "    //~ trigger2Class : 'x-tbar-detail',\n"
20130515 '    initComponent : function() {\n'
20130515 '        //~ Lino.TwinCombo.superclass.initComponent.call(this);\n'
20130515 '        Lino.ComboBox.prototype.initComponent.call(this);\n'
20130515 '        Ext.form.TwinTriggerField.prototype.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    onTrigger2Click : function() {\n'
20130515 "        //~ console.log('onTrigger2Click',this,arguments);\n"
20130515 '    }\n'
20130515 '  });\n'
20130515 '//~ Lino.TwinCombo.prototype.initComponent = Ext.form.TwinTriggerField.prototype.initComponent;\n'
20130515 'Lino.TwinCombo.prototype.getTrigger = Ext.form.TwinTriggerField.prototype.getTrigger;\n'
20130515 'Lino.TwinCombo.prototype.getOuterSize = Ext.form.TwinTriggerField.prototype.getOuterSize;\n'
20130515 'Lino.TwinCombo.prototype.initTrigger = Ext.form.TwinTriggerField.prototype.initTrigger;\n'
20130515 'Lino.TwinCombo.prototype.onTrigger1Click = Ext.form.ComboBox.prototype.onTriggerClick;\n'
20130515 '//~ Lino.TwinCombo.prototype.onTrigger2Click = function() {\n'
20130515 "    //~ console.log('onTrigger2Click',arguments);\n"
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboFieldElement = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "  displayField: 'value', \n"
20130515 '  valueField: null,\n'
20130515 '  forceSelection: false\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Window = Ext.extend(Ext.Window,{\n'
20130515 '  //~ layout: "fit", \n'
20130515 "  closeAction : 'hide',\n"
20130515 "  renderTo: 'main_area', \n"
20130515 '  constrain: true,\n'
20130515 '  maximized: true,\n'
20130515 '  draggable: false,\n'
20130515 '  width: 700,\n'
20130515 '  height: 500,\n'
20130515 '  maximizable: false,\n'
20130515 '  constructor : function (config) {\n'
20130515 '    if (config.main_item.params_panel) {\n'
20130515 "        config.layout = 'border';\n"
20130515 "        config.main_item.region = 'center';\n"
20130515 "        config.main_item.params_panel.region = 'north';\n"
20130515 '        config.main_item.params_panel.hidden = config.main_item.params_panel_hidden;\n'
20130515 '        config.items = [config.main_item.params_panel, config.main_item];\n'
20130515 '    } else {\n'
20130515 "        config.layout = 'fit';\n"
20130515 '        config.items = config.main_item;\n'
20130515 '    }\n'
20130515 '    this.main_item = config.main_item; \n'
20130515 '    \n'
20130515 '    delete config.main_item;\n'
20130515 '    //~ delete config.params_item;\n'
20130515 '    \n'
20130515 '    //~ this.main_item = config.items.get(0);\n'
20130515 '    this.main_item.containing_window = this;\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 1');\n"
20130515 '    //~ if (Lino.current_window) { // all windows except the top are closable\n'
20130515 '    if (this.main_item.hide_window_title) { \n'
20130515 '      config.closable = false;\n'
20130515 '      config.frame = false;\n'
20130515 '      config.shadow = false;\n'
20130515 '      //~ config.border = true;\n'
20130515 '      //~ config.title = undefined;\n'
20130515 '      //~ config.tools = null;\n'
20130515 '      delete config.title;\n'
20130515 '      delete config.tools;\n'
20130515 '    } else {\n'
20130515 '      config.title = this.main_item.empty_title;\n'
20130515 '      config.closable = true;\n'
20130515 '      config.tools = [ \n'
20130515 '        { qtip: \'permalink\', handler: Lino.permalink_handler(this), id: "pin" }\n'
20130515 '      ];\n'
20130515 "      if (this.main_item.content_type && this.main_item.action_name != 'insert') {\n"
20130515 '        config.tools = [ {\n'
20130515 '          handler: Lino.help_text_editor,\n'
20130515 '          qtip: "Edit help texts for fields on this model.",\n'
20130515 '          scope: this.main_item,\n'
20130515 '          id: "gear"\n'
20130515 '        }].concat(config.tools);\n'
20130515 '      }\n'
20130515 '        \n'
20130515 '    //~ { qtip: \'\', handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: this.config.qtip, handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: \'Call doLayout() on main Container.\', handler: Lino.refresh_handler(this), id: "refresh" },\n'
20130515 '    //~ if (this.main_item.params_panel) {\n'
20130515 '        //~ config.tools = config.tools.concat([ \n'
20130515 '          //~ { qtip: \'Show/hide parameter panel\', handler: this.toggle_params_panel, id: "gear", scope:this } \n'
20130515 '        //~ ]);\n'
20130515 '    //~ }\n'
20130515 '    //~ if (config.closable !== false) {\n'
20130515 '      // if undefined, will take default behaviour\n'
20130515 '      //~ config.tools = config.tools.concat([ \n'
20130515 '        //~ { qtip: \'close\', handler: this.hide, id: "close", scope:this } \n'
20130515 '      //~ ]);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    this.main_item.config_containing_window(config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 2');\n"
20130515 '    Lino.Window.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 3');\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.main_item.init_containing_window(this);\n'
20130515 '    Lino.Window.superclass.initComponent.call(this);\n'
20130515 '  \n'
20130515 '  },\n'
20130515 '  hide : function() { \n'
20130515 '      this.main_item.do_when_clean(false,function() { \n'
20130515 '        Lino.close_window(); });\n'
20130515 '  },\n'
20130515 '  hide_really : function() { \n'
20130515 '    Lino.Window.superclass.hide.call(this);\n'
20130515 '  },\n'
20130515 '  onRender : function(ct, position){\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 1');\n"
20130515 '    Lino.Window.superclass.onRender.call(this, ct, position);\n'
20130515 "    var main_area = Ext.getCmp('main_area')\n"
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 2');\n"
20130515 '  \n'
20130515 "    this.on('show', function(win) {\n"
20130515 "        //~ console.log('20120110 Lino.Window.on show 1');\n"
20130515 "        main_area.on('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    this.on('hide', function(win) {\n"
20130515 "        main_area.un('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 3');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.unused_ParamWindow = Ext.extend(Lino.Window,{\n'
20130515 '  //~ layout: "border", \n'
20130515 '  constructor : function (config) {\n'
20130515 '    Lino.ParamWindow.superclass.constructor.call(this,config);\n'
20130515 '    this.main_item = config.items; // `items` must be a single component\n'
20130515 "    config.layout = 'border';\n"
20130515 "    this.main_item.region = 'center';\n"
20130515 "    config.params.region = 'north';\n"
20130515 '    config.items = [config.params, config.items];\n'
20130515 '    //~ delete config.params;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '(function(){\n'
20130515 "    var ns = Ext.ns('Ext.ux.plugins');\n"
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @class Ext.ux.plugins.DefaultButton\n'
20130515 '     * @extends Object\n'
20130515 '     *\n'
20130515 '     * Plugin for Button that will click() the button if the user presses ENTER while\n'
20130515 "     * a component in the button's form has focus.\n"
20130515 '     *\n'
20130515 '     * @author Stephen Friedrich\n'
20130515 '     * @date 09-DEC-2009\n'
20130515 '     * @version 0.1\n'
20130515 '     *\n'
20130515 '     */\n'
20130515 '    ns.DefaultButton =  Ext.extend(Object, {\n'
20130515 '        init: function(button) {\n'
20130515 "            button.on('afterRender', setupKeyListener, button);\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '\n'
20130515 '    function setupKeyListener() {\n'
20130515 "        var formPanel = this.findParentByType('form');\n"
20130515 '        new Ext.KeyMap(formPanel.el, {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            shift: false,\n'
20130515 '            alt: false,\n'
20130515 '            fn: function(keyCode, e){\n'
20130515 "                if(e.target.type === 'textarea' && !e.ctrlKey) {\n"
20130515 '                    return true;\n'
20130515 '                }\n'
20130515 '\n'
20130515 "                this.el.select('button').item(0).dom.click();\n"
20130515 '                return false;\n'
20130515 '            },\n'
20130515 '            scope: this\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '\n'
20130515 "    Ext.ComponentMgr.registerPlugin('defaultButton', ns.DefaultButton);\n"
20130515 '\n'
20130515 '})(); \n'
20130515 '\n'
20130515 'Ext.override(Ext.form.BasicForm,{\n'
20130515 '    my_loadRecord : function(values){\n'
20130515 '    //~ loadRecord : function(record){\n'
20130515 "        /* Same as ExtJS's loadRecord() (setValues()), except that we \n"
20130515 '        forward also the record to field.setValue() so that Lino.Combobox \n'
20130515 '        can use it. \n'
20130515 '        */\n'
20130515 "        //~ console.log('20120918 my_loadRecord',values)\n"
20130515 '        if(Ext.isArray(values)){ \n'
20130515 '            for(var i = 0, len = values.length; i < len; i++){\n'
20130515 '                var v = values[i];\n'
20130515 '                var f = this.findField(v.id);\n'
20130515 '                if(f){\n'
20130515 '                    f.setValue(v.value,values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        f.originalValue = f.getValue();\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }else{ \n'
20130515 '            var field, id;\n'
20130515 '            for(id in values){\n'
20130515 '                if(!Ext.isFunction(values[id]) && (field = this.findField(id))){\n'
20130515 '                    field.setValue(values[id],values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        field.originalValue = field.getValue();\n'
20130515 '                        //~ if (field.hiddenField) {\n'
20130515 '                          //~ field.hiddenField.originalValue = field.hiddenField.value;\n'
20130515 '                        //~ }\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'function initializeFooBarDropZone(cmp) {\n'
20130515 "    //~ console.log('initializeFooBarDropZone',cmp);\n"
20130515 '    cmp.dropTarget = new Ext.dd.DropTarget(cmp.bwrap, {\n'
20130515 "      //~ ddGroup     : 'gridDDGroup',\n"
20130515 '      notifyEnter : function(ddSource, e, data) {\n'
20130515 "        console.log('notifyEnter',ddSource,e,data);\n"
20130515 '        //Add some flare to invite drop.\n'
20130515 '        cmp.body.stopFx();\n'
20130515 '        cmp.body.highlight();\n'
20130515 '      },\n'
20130515 '      notifyDrop  : function(ddSource, e, data){\n'
20130515 "        console.log('notifyDrop',ddSource,e,data);\n"
20130515 '        // Reference the record (single selection) for readability\n'
20130515 '        //~ var selectedRecord = ddSource.dragData.selections[0];\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Load the record into the form\n'
20130515 '        //~ formPanel.getForm().my_loadRecord(selectedRecord);\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Delete record from the grid.  not really required.\n'
20130515 '        //~ ddSource.grid.store.remove(selectedRecord);\n'
20130515 '\n'
20130515 '        return(true);\n'
20130515 '      }\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_mti_child = function(fieldname,detail_handler) {\n'
20130515 "  //~ console.log('show_mti_child',this);\n"
20130515 '  //~ console.log(\'show_mti_child\',panel.find("main_area"));\n'
20130515 '  rec = Lino.current_window.main_item.get_current_record();\n'
20130515 '  //~ rec = panel.get_current_record();\n'
20130515 '  if (rec) {\n'
20130515 "    //~ console.log('show_mti_child',Lino.current_window,rec);\n"
20130515 '    if (rec.phantom) {\n'
20130515 "      Lino.notify('Not allowed on phantom record.');\n"
20130515 '    }else if (rec.data[fieldname]) {\n'
20130515 "      //~ console.log('show_mti_child',rec.id);\n"
20130515 '      //~ detail_handler(Lino.current_window.main_item,{},{record_id:rec.id});\n'
20130515 '      detail_handler.run(null,{record_id:rec.id});\n'
20130515 "      //~ window.open(urlroot + '/' + rec.id);\n"
20130515 "      //~ document.location = urlroot + '/' + rec.id;\n"
20130515 "      //~ window.open(urlroot + '/' + rec.id,'_blank');\n"
20130515 '    } else {\n'
20130515 '      Lino.alert("Cannot show MTI child if checkbox is off.");\n'
20130515 '    }\n'
20130515 '  } else {\n'
20130515 "    Lino.notify('No current record.');\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelCalendars\n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelCalendars.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID',       mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'babel_name', type: 'string'},\n"
20130515 "    Description:  {name:'Desc',     mapping: 'description', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color',    mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden',   mapping: 'is_hidden', type: 'boolean'},    \n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();  \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelEvents \n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelEvents.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID',        mapping: 'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID',     mapping: 'calendarHidden', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle',  mapping: 'summary'},\n"
20130515 "    StartDate:   {name: 'StartDt',   mapping: 'start_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s" },\n'
20130515 "    EndDate:     {name: 'EndDt',     mapping: 'end_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s"},\n'
20130515 "    RRule:       {name: 'RecurRule', mapping: 'rsetHidden'},\n"
20130515 "    Location:    {name: 'Location',  mapping: 'placeHidden'},\n"
20130515 "    Notes:       {name: 'Desc',      mapping: 'description'},\n"
20130515 "    Url:         {name: 'LinkUrl',   mapping: 'url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay',    mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder',  mapping: 'reminder'}\n"
20130515 '    \n'
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.on_eventclick = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventclick",arguments);\n'
20130515 '  //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '  Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_editdetails = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_editdetails",arguments);\n'
20130515 '  if (rec.data.ID)\n'
20130515 '      //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '      Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.format_time = function(dt) {\n'
20130515 "    return dt.getHours() + ':' + dt.getMinutes();\n"
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventdelete = function() {\n'
20130515 '  //~ console.log("Lino.on_eventdelete",arguments);\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.on_eventadd  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventadd ",arguments);\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventresize  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventresize ",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventupdate  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventupdate",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.eventStore = new Ext.ensible.cal.EventStore({ \n'
20130515 '//~ Lino.eventStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.eventStore = new Ext.data.JsonStore({ \n'
20130515 '  listeners: { exception: Lino.on_store_exception }\n'
20130515 "  ,url: '/restful/cal/PanelEvents'\n"
20130515 '  ,restful : true\n'
20130515 '  ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "      url: '/restful/cal/PanelEvents', \n"
20130515 '      disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '      //~ disableCaching:true,\n'
20130515 '  })\n'
20130515 '  ,fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '  ,totalProperty: "count"\n'
20130515 '  ,root: "rows"\n'
20130515 '  ,idProperty: Ext.ensible.cal.EventMappings.EventId.mapping\n'
20130515 '  ,writer : new Ext.data.JsonWriter({\n'
20130515 '    writeAllFields: false\n'
20130515 '  })\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '      if (!options) options = {};\n'
20130515 '      if (!options.params) options.params = {};\n'
20130515 '      //~ options.params.$ext_requests.URL_PARAM_TEAM_VIEW = Lino.calendar_app.team_view_button.pressed;\n'
20130515 '      \n'
20130515 '      var view = this.cal_panel.getActiveView();\n'
20130515 '      var bounds = view.getViewBounds();\n'
20130515 "      //~ var p = {sd:'05.02.2012',ed:'11.02.2012'};\n"
20130515 '      //~ var p = {};\n'
20130515 '      options.params[view.dateParamStart] = bounds.start.format(view.dateParamFormat);\n'
20130515 '      options.params[view.dateParamEnd] = bounds.end.format(view.dateParamFormat);\n'
20130515 '      Lino.insert_subst_user(options.params);\n'
20130515 '      //~ Ext.apply(options.params,p)\n'
20130515 "      //~ console.log('20120710 eventStore.load()',this.baseParams,options);\n"
20130515 '    \n'
20130515 '    return Ext.data.JsonStore.prototype.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.calendarStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.calendarStore = new Ext.data.JsonStore({ \n'
20130515 '      listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,restful : true\n'
20130515 '      ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "          url: '/restful/cal/PanelCalendars?fmt=json', \n"
20130515 '          disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '          //~ restful : true\n'
20130515 '          //~ method: "GET"\n'
20130515 '      })\n'
20130515 '      //~ ,autoLoad: true\n'
20130515 '      //~ ,remoteSort: true\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      ,fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '      ,idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '      //~ ,idIndex: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '    });\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarCfg = {\n'
20130515 "    dateParamFormat: 'd.m.Y',\n"
20130515 "    dateParamStart:'sd',\n"
20130515 "    dateParamEnd:'ed'\n"
20130515 '};\n'
20130515 '//~ 20120704 Lino.CalendarPanel = Ext.extend(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 '//~ Lino.CalendarPanel = Ext.extend(Lino.CalendarPanel,{\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 '  ,activeItem: 1 // 0: day, 1: week\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  //~ ,disableCaching:true\n'
20130515 '  ,eventStore: Lino.eventStore\n'
20130515 '  ,calendarStore: Lino.calendarStore\n'
20130515 '  ,listeners: { \n'
20130515 '    editdetails: Lino.on_editdetails\n'
20130515 '    ,eventclick: Lino.on_eventclick\n'
20130515 '    //~ ,eventadd: Lino.on_eventadd\n'
20130515 '    //~ ,eventdelete: Lino.on_eventdelete\n'
20130515 '    //~ ,eventresize: Lino.on_eventresize\n'
20130515 '    ,afterrender : function(config) {\n'
20130515 '      //~ console.log("20120704 afterrender");\n'
20130515 '      Lino.calendarStore.load();\n'
20130515 '      //~ console.log("20120704 afterrender calls eventStore.load()",p);\n'
20130515 '      Lino.eventStore.cal_panel = this;\n'
20130515 '      //~ Lino.eventStore.load({params:p});\n'
20130515 '      Lino.eventStore.load();\n'
20130515 '      //~ Lino.CalendarPanel.superclass.constructor.call(this, config);\n'
20130515 '      //~ console.log(20120118, config,this);\n'
20130515 '    }\n'
20130515 '    }\n'
20130515 '  ,enableEditDetails: false\n'
20130515 '  //~ ,monthViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,weekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiDayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiWeekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,dayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,initComponent : function() {\n'
20130515 "    //~ // this.on('eventadd',Lino.on_eventadd);\n"
20130515 '    //~ Lino.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Ext.Panel,Lino.MainPanel);\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Lino.CalendarAppPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  ,set_status : function(status) { this.refresh();}\n'
20130515 '  ,refresh : function() {Lino.eventStore.reload();}\n'
20130515 "  ,layout: 'fit'\n"
20130515 '  ,is_loading : function() { \n'
20130515 '      var loading = Lino.calendarStore.getCount() == 0 | Lino.eventStore.getCount() == 0\n'
20130515 '      //~ console.log("CalendarPanel loading:",loading);\n'
20130515 '      return loading; \n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() {\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '  }\n'
20130515 '  ,clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  }\n'
20130515 '  ,set_base_param : function(k,v) {\n'
20130515 '      if (!this.base_params) this.base_params = {};\n'
20130515 '      this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.calendar_app = function() { return {\n'
20130515 '  get_main_panel : function() {\n'
20130515 '      return new Lino.CalendarAppPanel({ items : \n'
20130515 '        //~ [{\n'
20130515 "          //~ id: 'app-header',\n"
20130515 "          //~ region: 'north',\n"
20130515 '          //~ height: 35,\n'
20130515 '          //~ border: false,\n'
20130515 "          // contentEl: 'app-header-content'\n"
20130515 '        //~ },\n'
20130515 '      {\n'
20130515 "          id: 'app-center',\n"
20130515 "          title: '...', // will be updated to the current view's date range\n"
20130515 "          region: 'center',\n"
20130515 "          layout: 'border',\n"
20130515 '          listeners: {\n'
20130515 "              'afterrender': function(){\n"
20130515 "                  Ext.getCmp('app-center').header.addClass('app-center-header');\n"
20130515 '              }\n'
20130515 '          },\n'
20130515 '          items: [{\n'
20130515 "              id:'app-west',\n"
20130515 "              region: 'west',\n"
20130515 '              width: 176,\n'
20130515 '              border: false,\n'
20130515 '              items: [{\n'
20130515 "                  xtype: 'datepicker',\n"
20130515 "                  id: 'app-nav-picker',\n"
20130515 "                  cls: 'ext-cal-nav-picker',\n"
20130515 '                  listeners: {\n'
20130515 "                      'select': {\n"
20130515 '                          fn: function(dp, dt){\n'
20130515 '                              Lino.calendarPanel.setStartDate(dt);\n'
20130515 '                          },\n'
20130515 '                          scope: this\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '              //~ },{ \n'
20130515 "                //~ layout:'fit',\n"
20130515 '                //~ items: [\n'
20130515 '                  //~ new Ext.form.Checkbox({\n'
20130515 '                    //~ boxLabel:"$_(\'Team view\')",\n'
20130515 '                    //~ hideLabel:true\n'
20130515 '                    //~ listeners: { click: }\n'
20130515 '                  //~ })\n'
20130515 '                //~ ]\n'
20130515 '              },{ \n'
20130515 "                layout:'form',\n"
20130515 '                items: [\n'
20130515 '                  this.team_view_button = new Ext.Button({\n'
20130515 '                    text:"Team view",\n'
20130515 '                    enableToggle:true,\n'
20130515 '                    pressed:false,\n'
20130515 '                    toggleHandler: function(btn,state) { \n'
20130515 "                      //~ console.log('20120716 teamView.toggle()');\n"
20130515 "                      Lino.eventStore.setBaseParam('tv',state);\n"
20130515 '                      Lino.eventStore.load();\n'
20130515 '                      //~ Lino.eventStore.load({params:{$ext_requests.URL_PARAM_TEAM_VIEW:state}});\n'
20130515 '                      //~ console.log("team view",state);\n'
20130515 '                    }\n'
20130515 '                  })\n'
20130515 '                ]\n'
20130515 '              },{\n'
20130515 "                  xtype: 'extensible.calendarlist',\n"
20130515 '                  store: Lino.calendarStore,\n'
20130515 '                  border: false,\n'
20130515 '                  width: 175\n'
20130515 '              }]\n'
20130515 '          },{\n'
20130515 "              xtype: 'extensible.calendarpanel',\n"
20130515 '              eventStore: Lino.eventStore,\n'
20130515 '              calendarStore: Lino.calendarStore,\n'
20130515 '              border: false,\n'
20130515 "              id:'app-calendar',\n"
20130515 "              region: 'center',\n"
20130515 '              //~ activeItem: 3, // month view\n'
20130515 '              \n'
20130515 '              // Any generic view options that should be applied to all sub views:\n'
20130515 '              viewConfig: {\n'
20130515 '                  // Lino.CalendarCfg\n'
20130515 "                  dateParamFormat: 'd.m.Y',\n"
20130515 "                  dateParamStart:'sd',\n"
20130515 "                  dateParamEnd:'ed',\n"
20130515 '                \n'
20130515 '                  //enableFx: false,\n'
20130515 '                  //ddIncrement: 10, //only applies to DayView and subclasses, but convenient to put it here\n'
20130515 '                  viewStartHour: 8,\n'
20130515 '                  viewEndHour: 18\n'
20130515 '                  //minEventDisplayMinutes: 15\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // View options specific to a certain view (if the same options exist in viewConfig\n'
20130515 '              // they will be overridden by the view-specific config):\n'
20130515 '              monthViewCfg: {\n'
20130515 '                  showHeader: true,\n'
20130515 '                  showWeekLinks: true,\n'
20130515 '                  showWeekNumbers: true,\n'
20130515 "                  eventBodyMarkup: ['{Title}',\n"
20130515 '                    //~ \'<tpl if="url">\',\n'
20130515 '                        //~ \'<a href="{url}">XX</a>\',\n'
20130515 "                    //~ '</tpl>',\n"
20130515 '                    \'<tpl if="_isReminder">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="_isRecurring">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanLeft">\',\n'
20130515 '                        \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanRight">\',\n'
20130515 '                        \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "                    '</tpl>'\n"
20130515 "                ].join('')\n"
20130515 '              },\n'
20130515 '              \n'
20130515 '              multiWeekViewCfg: {\n'
20130515 '                  //weekCount: 3\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // Some optional CalendarPanel configs to experiment with:\n'
20130515 '              //readOnly: true,\n'
20130515 '              //showDayView: false,\n'
20130515 '              //showMultiDayView: true,\n'
20130515 '              //showWeekView: false,\n'
20130515 '              //showMultiWeekView: false,\n'
20130515 '              //showMonthView: false,\n'
20130515 '              //showNavBar: false,\n'
20130515 '              //showTodayText: false,\n'
20130515 '              //showTime: false,\n'
20130515 '              //editModal: true,\n'
20130515 '              //enableEditDetails: false,\n'
20130515 "              //title: 'My Calendar', // the header of the calendar, could be a subtitle for the app\n"
20130515 '              \n'
20130515 '              // Once this component inits it will set a reference to itself as an application\n'
20130515 '              // member property for easy reference in other functions within App.\n'
20130515 '              initComponent: function() {\n'
20130515 '                  Lino.calendarPanel = this;\n'
20130515 '                  this.constructor.prototype.initComponent.apply(this, arguments);\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              listeners: {\n'
20130515 "                  //~ 'eventclick': {\n"
20130515 '                      //~ fn: function(vw, rec, el){\n'
20130515 '                          //~ this.clearMsg();\n'
20130515 '                      //~ },\n'
20130515 '                      //~ scope: this\n'
20130515 '                  //~ },\n'
20130515 "                  'eventover': function(vw, rec, el){\n"
20130515 "                      //console.log('Entered evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventout': function(vw, rec, el){\n"
20130515 "                      //console.log('Leaving evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]+', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventadd': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was added');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventupdate': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          //this.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventcancel': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          // edit canceled\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'viewchange': {\n"
20130515 '                      fn: function(p, vw, dateInfo){\n'
20130515 '                          if(this.editWin){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          };\n'
20130515 '                          if(dateInfo !== null){\n'
20130515 '                              // will be null when switching to the event edit form so ignore\n'
20130515 "                              Ext.getCmp('app-nav-picker').setValue(dateInfo.activeDate);\n"
20130515 '                              this.updateTitle(dateInfo.viewStart, dateInfo.viewEnd);\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'dayclick': {\n"
20130515 '                      fn: function(vw, dt, ad, el){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'rangeselect': {\n"
20130515 '                      fn: function(vw, dates, onComplete){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventmove': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          var time = rec.data[Ext.ensible.cal.EventMappings.IsAllDay.name] ? '' : ' \\\\a\\\\t g:i a';\n"
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was moved to '+\n"
20130515 "                              rec.data[Ext.ensible.cal.EventMappings.StartDate.name].format('F jS'+time));\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventresize': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(win, rec){\n'
20130515 '                          Lino.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'initdrag': {\n"
20130515 '                      fn: function(vw){\n'
20130515 '                          if(this.editWin && this.editWin.isVisible()){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  }\n'
20130515 '              }\n'
20130515 '          }]\n'
20130515 '        }\n'
20130515 '        //~ ]\n'
20130515 '        \n'
20130515 '      });\n'
20130515 '      \n'
20130515 '  }\n'
20130515 '  ,updateTitle: function(startDt, endDt){\n'
20130515 "      var p = Ext.getCmp('app-center');\n"
20130515 '      \n'
20130515 '      if(startDt.clearTime().getTime() == endDt.clearTime().getTime()){\n'
20130515 "          p.setTitle(startDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '      else if(startDt.getFullYear() == endDt.getFullYear()){\n'
20130515 '          if(startDt.getMonth() == endDt.getMonth()){\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('j, Y'));\n"
20130515 '          }\n'
20130515 '          else{\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '          }\n'
20130515 '      }\n'
20130515 '      else{\n'
20130515 "          p.setTitle(startDt.format('F j, Y') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '  }\n'
20130515 '  // This is an application-specific way to communicate CalendarPanel event messages back to the user.\n'
20130515 '  // This could be replaced with a function to do "toast" style messages, growl messages, etc. This will\n'
20130515 "  // vary based on application requirements, which is why it's not baked into the CalendarPanel.\n"
20130515 '  ,showMsg: function(msg){\n'
20130515 '      Lino.notify(msg);\n'
20130515 "      //~ Ext.fly('app-msg').update(msg).removeClass('x-hidden');\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,clearMsg: function(){\n'
20130515 "      Lino.notify('');\n"
20130515 "      //~ Ext.fly('app-msg').update('').addClass('x-hidden');\n"
20130515 '  }\n'
20130515 '}\n'
20130515 '}();\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'captureEvents utility by Aaron Conran\n'
20130515 '<http://www.sencha.com/learn/grid-faq/>\n'
20130515 '\n'
20130515 'Ext.onReady(function(){\n'
20130515 '    var grid = new Ext.grid.GridPanel({\n'
20130515 '        ... \n'
20130515 '    });\n'
20130515 '    captureEvents(grid);\n'
20130515 '});\n'
20130515 '*/\n'
20130515 'function captureEvents(observable) {\n'
20130515 '    Ext.util.Observable.capture(\n'
20130515 '        observable,\n'
20130515 '        function(eventName) {\n'
20130515 '            console.info(eventName);\n'
20130515 '        },\n'
20130515 '        this\n'
20130515 '    );\t\t\n'
20130515 '}\n'
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.main_menu = [ { "menu": { "items": [ { "text": "Personnes", "handler": function() {Lino.contacts.Persons.grid.run(null)} }, { "text": " \\u25b6 Clients", "handler": function() {Lino.pcsw.Clients.grid.run(null)} }, { "text": "Organisations", "handler": function() {Lino.contacts.Companies.grid.run(null)} }, { "text": "M\\u00e9nages", "handler": function() {Lino.households.Households.grid.run(null)} }, "-", { "text": "Partenaires (tous)", "handler": function() {Lino.contacts.Partners.grid.run(null)} } ] }, "text": "Contacts" }, { "menu": { "items": [ { "text": "Mon courrier sortant", "handler": function() {Lino.outbox.MyOutbox.grid.run(null)} }, { "menu": { "items": [ { "text": "Mes Envois postaux", "handler": function() {Lino.postings.MyPostings.grid.run(null)} }, { "text": "Envois postaux \\u00e0 imprimer", "handler": function() {Lino.postings.PostingsReady.grid.run(null)} }, { "text": "Envois postaux imprim\\u00e9s", "handler": function() {Lino.postings.PostingsPrinted.grid.run(null)} }, { "text": "Envois postaux envoy\\u00e9s", "handler": function() {Lino.postings.PostingsSent.grid.run(null)} } ] }, "text": "Envois postaux" }, { "text": "Mes notes", "handler": function() {Lino.notes.MyNotes.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Calendrier", "iconCls": "x-tbar-calendar", "handler": function() {Lino.cal.CalendarPanel.grid.run(null)} }, { "text": "Events", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my calendar events.") }, "handler": function() {Lino.cal.MyEvents.grid.run(null)} }, "-", { "text": "Mes T\\u00e2ches", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my tasks.") }, "handler": function() {Lino.cal.MyTasks.grid.run(null)} }, { "text": "To-do list", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of my tasks marked \'to do\'.") }, "handler": function() {Lino.cal.MyTasksToDo.grid.run(null)} }, "-", { "text": "Mes pr\\u00e9sences", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows all my presences in calendar events, independently of their state.") }, "handler": function() {Lino.cal.MyPresences.grid.run(null)} }, { "text": "Mes invitations re\\u00e7ues", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows received invitations which I must accept or reject.") }, "handler": function() {Lino.cal.MyPendingInvitations.grid.run(null)} } ] }, "text": "Calendrier" }, { "menu": { "items": [ { "text": "Clients", "listeners": { "render": Lino.quicktip_renderer("Foo","Wie Kontakte \\u25b8 Klienten, aber mit DSBE-spezifischen Kolonnen und Filterparametern.") }, "handler": function() {Lino.pcsw.IntegClients.grid.run(null)} }, { "text": "PIISs", "handler": function() {Lino.isip.MyContracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.MyContracts.grid.run(null)} }, { "text": "Employants", "handler": function() {Lino.jobs.JobProviders.grid.run(null)} }, { "text": "Emplois", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    Eine Stelle ist ein Arbeitsplatz bei einem Stellenabieter. \\n    ") }, "handler": function() {Lino.jobs.Jobs.grid.run(null)} }, { "text": "Offres d\'emploi", "handler": function() {Lino.jobs.Offers.grid.run(null)} }, { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.NewJobsOverview.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Int\\u00e9gration" }, { "menu": { "items": [ { "text": "Organisateurs de cours", "handler": function() {Lino.courses.CourseProviders.grid.run(null)} }, { "text": "Offres de cours", "handler": function() {Lino.courses.CourseOffers.grid.run(null)} }, { "text": "Demandes de cours ouvertes", "handler": function() {Lino.courses.PendingCourseRequests.grid.run(null)} } ] }, "text": "Cours" }, { "menu": { "items": [ { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.JobsOverview.show.run(null,{ "record_id": -99998 })} }, { "text": "Agents et leurs clients", "handler": function() {Lino.pcsw.UsersWithClients.grid.run(null)} } ] }, "text": "Listings" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "Mes Text Field Templates", "handler": function() {Lino.ui.MyTextFieldTemplates.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Pays", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    A country is a geographic entity considered a \\"nation\\".\\n    ") }, "handler": function() {Lino.countries.Countries.grid.run(null)} }, { "text": "Langues", "handler": function() {Lino.countries.Languages.grid.run(null)} } ] }, "text": "Contacts" } ] }, "text": "Configuration" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "PIISs", "handler": function() {Lino.isip.Contracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.Contracts.grid.run(null)} } ] }, "text": "Int\\u00e9gration" } ] }, "text": "Explorateur" }, { "menu": { "items": [ { "text": "About", "listeners": { "render": Lino.quicktip_renderer("Foo","Show information about this site.") }, "handler": function() {Lino.about.About.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Site" }, { "text": "D\\u00e9part", "handler": function() {Lino.close_all_windows()} } ];\n'
20130515 "Ext.namespace('Lino.ui.SiteConfigs')\n"
20130515 "Ext.namespace('Lino.ui.ContentTypes')\n"
20130515 "Ext.namespace('Lino.ui.HelpTexts')\n"
20130515 "Ext.namespace('Lino.ui.TextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.Users')\n"
20130515 "Ext.namespace('Lino.users.MySettings')\n"
20130515 "Ext.namespace('Lino.users.UsersOverview')\n"
20130515 "Ext.namespace('Lino.users.Teams')\n"
20130515 "Ext.namespace('Lino.users.Memberships')\n"
20130515 "Ext.namespace('Lino.users.Authorities')\n"
20130515 "Ext.namespace('Lino.changes.Changes')\n"
20130515 "Ext.namespace('Lino.countries.Languages')\n"
20130515 "Ext.namespace('Lino.countries.Countries')\n"
20130515 "Ext.namespace('Lino.countries.Cities')\n"
20130515 "Ext.namespace('Lino.properties.PropGroups')\n"
20130515 "Ext.namespace('Lino.properties.PropTypes')\n"
20130515 "Ext.namespace('Lino.properties.Properties')\n"
20130515 "Ext.namespace('Lino.properties.PropChoices')\n"
20130515 "Ext.namespace('Lino.contacts.CompanyTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Partners')\n"
20130515 "Ext.namespace('Lino.contacts.Companies')\n"
20130515 "Ext.namespace('Lino.contacts.RoleTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Roles')\n"
20130515 "Ext.namespace('Lino.postings.Postings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByState')\n"
20130515 "Ext.namespace('Lino.postings.PostingsReady')\n"
20130515 "Ext.namespace('Lino.postings.PostingsPrinted')\n"
20130515 "Ext.namespace('Lino.postings.PostingsSent')\n"
20130515 "Ext.namespace('Lino.outbox.Recipients')\n"
20130515 "Ext.namespace('Lino.outbox.Mails')\n"
20130515 "Ext.namespace('Lino.outbox.Attachments')\n"
20130515 "Ext.namespace('Lino.cal.Calendars')\n"
20130515 "Ext.namespace('Lino.cal.Subscriptions')\n"
20130515 "Ext.namespace('Lino.cal.Places')\n"
20130515 "Ext.namespace('Lino.cal.Priorities')\n"
20130515 "Ext.namespace('Lino.cal.Events')\n"
20130515 "Ext.namespace('Lino.cal.MyEvents')\n"
20130515 "Ext.namespace('Lino.cal.MyUnclearEvents')\n"
20130515 "Ext.namespace('Lino.cal.EventsAssignedToMe')\n"
20130515 "Ext.namespace('Lino.cal.MyEventsToday')\n"
20130515 "Ext.namespace('Lino.cal.Tasks')\n"
20130515 "Ext.namespace('Lino.cal.GuestRoles')\n"
20130515 "Ext.namespace('Lino.cal.Guests')\n"
20130515 "Ext.namespace('Lino.cal.PanelCalendars')\n"
20130515 "Ext.namespace('Lino.cal.PanelEvents')\n"
20130515 "Ext.namespace('Lino.uploads.UploadTypes')\n"
20130515 "Ext.namespace('Lino.uploads.Uploads')\n"
20130515 "Ext.namespace('Lino.households.Types')\n"
20130515 "Ext.namespace('Lino.households.Households')\n"
20130515 "Ext.namespace('Lino.households.Roles')\n"
20130515 "Ext.namespace('Lino.households.Members')\n"
20130515 "Ext.namespace('Lino.accounts.Charts')\n"
20130515 "Ext.namespace('Lino.accounts.Groups')\n"
20130515 "Ext.namespace('Lino.accounts.Accounts')\n"
20130515 "Ext.namespace('Lino.notes.NoteTypes')\n"
20130515 "Ext.namespace('Lino.notes.EventTypes')\n"
20130515 "Ext.namespace('Lino.notes.Notes')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledges')\n"
20130515 "Ext.namespace('Lino.cv.PersonProperties')\n"
20130515 "Ext.namespace('Lino.contacts.Persons')\n"
20130515 "Ext.namespace('Lino.pcsw.Clients')\n"
20130515 "Ext.namespace('Lino.pcsw.DebtsClients')\n"
20130515 "Ext.namespace('Lino.pcsw.IntegClients')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsTest')\n"
20130515 "Ext.namespace('Lino.pcsw.PersonGroups')\n"
20130515 "Ext.namespace('Lino.pcsw.Activities')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Exclusions')\n"
20130515 "Ext.namespace('Lino.pcsw.AidTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.OverlappingContracts')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContactTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContacts')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Coachings')\n"
20130515 "Ext.namespace('Lino.isip.ContractTypes')\n"
20130515 "Ext.namespace('Lino.isip.ExamPolicies')\n"
20130515 "Ext.namespace('Lino.isip.ContractEndings')\n"
20130515 "Ext.namespace('Lino.isip.Contracts')\n"
20130515 "Ext.namespace('Lino.isip.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Schedules')\n"
20130515 "Ext.namespace('Lino.jobs.Regimes')\n"
20130515 "Ext.namespace('Lino.jobs.JobProviders')\n"
20130515 "Ext.namespace('Lino.jobs.ContractTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Sectors')\n"
20130515 "Ext.namespace('Lino.jobs.Functions')\n"
20130515 "Ext.namespace('Lino.jobs.Contracts')\n"
20130515 "Ext.namespace('Lino.jobs.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Offers')\n"
20130515 "Ext.namespace('Lino.jobs.StudyTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Studies')\n"
20130515 "Ext.namespace('Lino.jobs.Experiences')\n"
20130515 "Ext.namespace('Lino.jobs.Candidatures')\n"
20130515 "Ext.namespace('Lino.jobs.Jobs')\n"
20130515 "Ext.namespace('Lino.jobs.JobTypes')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsSearch')\n"
20130515 "Ext.namespace('Lino.courses.CourseProviders')\n"
20130515 "Ext.namespace('Lino.courses.CourseContents')\n"
20130515 "Ext.namespace('Lino.courses.Courses')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffers')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequests')\n"
20130515 "Ext.namespace('Lino.courses.PendingCourseRequests')\n"
20130515 "Ext.namespace('Lino.newcomers.Brokers')\n"
20130515 "Ext.namespace('Lino.newcomers.Faculties')\n"
20130515 "Ext.namespace('Lino.newcomers.Competences')\n"
20130515 "Ext.namespace('Lino.newcomers.NewClients')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoaches')\n"
20130515 "Ext.namespace('Lino.debts.Budgets')\n"
20130515 "Ext.namespace('Lino.debts.Actors')\n"
20130515 "Ext.namespace('Lino.debts.Entries')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByType')\n"
20130515 "Ext.namespace('Lino.cbss.Sectors')\n"
20130515 "Ext.namespace('Lino.cbss.Purposes')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.sessions.SessionTable')\n"
20130515 "Ext.namespace('Lino.ui.MyTextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.MembershipsByUser')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesGiven')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesTaken')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCity')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCountry')\n"
20130515 "Ext.namespace('Lino.properties.PropsByGroup')\n"
20130515 "Ext.namespace('Lino.properties.PropsByType')\n"
20130515 "Ext.namespace('Lino.properties.ChoicesByType')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCity')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCountry')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByCompany')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByPerson')\n"
20130515 "Ext.namespace('Lino.postings.MyPostings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByPartner')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientsByMail')\n"
20130515 "Ext.namespace('Lino.outbox.MyOutbox')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByUser')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.SentByPartner')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByMail')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByUser')\n"
20130515 "Ext.namespace('Lino.cal.EventsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.EventsByPlace')\n"
20130515 "Ext.namespace('Lino.cal.EventsByProject')\n"
20130515 "Ext.namespace('Lino.cal.TasksByUser')\n"
20130515 "Ext.namespace('Lino.cal.MyTasks')\n"
20130515 "Ext.namespace('Lino.cal.MyTasksToDo')\n"
20130515 "Ext.namespace('Lino.cal.TasksByProject')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByEvent')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByRole')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByPartner')\n"
20130515 "Ext.namespace('Lino.cal.MyPresences')\n"
20130515 "Ext.namespace('Lino.cal.MyPendingInvitations')\n"
20130515 "Ext.namespace('Lino.uploads.MyUploads')\n"
20130515 "Ext.namespace('Lino.households.HouseholdsByType')\n"
20130515 "Ext.namespace('Lino.households.MembersByHousehold')\n"
20130515 "Ext.namespace('Lino.households.MembersByPerson')\n"
20130515 "Ext.namespace('Lino.households.MembersByRole')\n"
20130515 "Ext.namespace('Lino.accounts.GroupsByChart')\n"
20130515 "Ext.namespace('Lino.accounts.AccountsByGroup')\n"
20130515 "Ext.namespace('Lino.notes.MyNotes')\n"
20130515 "Ext.namespace('Lino.notes.NotesByType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByEventType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByProject')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledgesByPerson')\n"
20130515 "Ext.namespace('Lino.cv.KnowledgesByLanguage')\n"
20130515 "Ext.namespace('Lino.cv.PropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.PersonPropsByProp')\n"
20130515 "Ext.namespace('Lino.cv.ConfiguredPropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SoftSkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.ObstaclesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsByNationality')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionsByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ContactsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByUser')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByCompany')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.FunctionsBySector')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByJob')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByRegime')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsBySchedule')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCountry')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCity')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesBySector')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByJob')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByType')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverviewByType')\n"
20130515 "Ext.namespace('Lino.courses.CoursesByOffer')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByProvider')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByContent')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByContent')\n"
20130515 "Ext.namespace('Lino.courses.RequestsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.ParticipantsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.CandidatesByCourse')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByUser')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.MyCompetences')\n"
20130515 "Ext.namespace('Lino.newcomers.ClientsByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoachesByClient')\n"
20130515 "Ext.namespace('Lino.debts.MyBudgets')\n"
20130515 "Ext.namespace('Lino.debts.BudgetsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.IncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.LiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.AssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DistByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.MyIdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyRetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.uploads.UploadsByController')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByController')\n"
20130515 "Ext.namespace('Lino.cal.TasksByController')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByController')\n"
20130515 "Ext.namespace('Lino.changes.ChangesByMaster')\n"
20130515 "Ext.namespace('Lino.ui.HelpTextsByModel')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByController')\n"
20130515 "Ext.namespace('Lino.cal.EventsByController')\n"
20130515 "Ext.namespace('Lino.about.Models')\n"
20130515 "Ext.namespace('Lino.about.FieldsByModel')\n"
20130515 "Ext.namespace('Lino.about.Inspector')\n"
20130515 "Ext.namespace('Lino.about.SourceFiles')\n"
20130515 "Ext.namespace('Lino.pcsw.UsersWithClients')\n"
20130515 "Ext.namespace('Lino.debts.PrintEntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintIncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintLiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintAssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.SummaryTable')\n"
20130515 "Ext.namespace('Lino.debts.ResultByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DebtsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.BailiffDebtsByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonResult')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsResult')\n"
20130515 "Ext.namespace('Lino.ui.Home')\n"
20130515 "Ext.namespace('Lino.about.About')\n"
20130515 "Ext.namespace('Lino.cal.CalendarPanel')\n"
20130515 "Ext.namespace('Lino.lino.Home')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverview')\n"
20130515 "Ext.namespace('Lino.jobs.NewJobsOverview')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestStates')\n"
20130515 "Ext.namespace('Lino.postings.PostingStates')\n"
20130515 "Ext.namespace('Lino.cal.DurationUnits')\n"
20130515 "Ext.namespace('Lino.cal.TaskStates')\n"
20130515 "Ext.namespace('Lino.cal.Weekdays')\n"
20130515 "Ext.namespace('Lino.lino.UserLevels')\n"
20130515 "Ext.namespace('Lino.lino.UserProfiles')\n"
20130515 "Ext.namespace('Lino.cal.EventStates')\n"
20130515 "Ext.namespace('Lino.accounts.AccountTypes')\n"
20130515 "Ext.namespace('Lino.cv.CefLevel')\n"
20130515 "Ext.namespace('Lino.properties.HowWell')\n"
20130515 "Ext.namespace('Lino.jobs.CandidatureStates')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientType')\n"
20130515 "Ext.namespace('Lino.countries.CityTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.BeIdCardTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.CivilState')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientStates')\n"
20130515 "Ext.namespace('Lino.cal.GuestStates')\n"
20130515 "Ext.namespace('Lino.properties.DoYouLike')\n"
20130515 "Ext.namespace('Lino.cbss.RequestLanguages')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAction')\n"
20130515 "Ext.namespace('Lino.pcsw.RefusalReasons')\n"
20130515 "Ext.namespace('Lino.lino.UserGroups')\n"
20130515 "Ext.namespace('Lino.cbss.RequestStates')\n"
20130515 "Ext.namespace('Lino.lino.ChangeTypes')\n"
20130515 "Ext.namespace('Lino.cal.AccessClasses')\n"
20130515 "Ext.namespace('Lino.cbss.QueryRegister')\n"
20130515 "Ext.namespace('Lino.lino.Genders')\n"
20130515 "Ext.namespace('Lino.pcsw.ResidenceType')\n"
20130515 '\n'
20130515 '// ChoiceLists: \n'
20130515 'Lino.courses.CourseRequestStates = [ [ "10", "Open" ], [ "20", "Registered" ], [ "30", "R\\u00e9ussi" ], [ "40", "Bien r\\u00e9ussi" ], [ "50", "echec" ], [ "60", "Abandonn\\u00e9" ], [ "70", "Inactif" ] ];\n'
20130515 'Lino.postings.PostingStates = [ [ "10", "Ouvert" ], [ "20", "Pr\\u00e8t \\u00e0 imprimer" ], [ "30", "Imprim\\u00e9" ], [ "40", "Ex\\u00e9cut\\u00e9" ], [ "50", "Retour" ] ];\n'
20130515 'Lino.cal.DurationUnits = [ [ "s", "secondes" ], [ "m", "minutes" ], [ "h", "heures" ], [ "D", "jours" ], [ "W", "semaines" ], [ "M", "mois" ], [ "Y", "ann\\u00e9es" ] ];\n'
20130515 'Lino.cal.TaskStates = [ [ "10", "\\u00e0 faire" ], [ "20", "Started" ], [ "30", "accomplie" ], [ "50", "Annul\\u00e9" ] ];\n'
20130515 'Lino.cal.Weekdays = [ [ "1", "Lundi" ], [ "2", "Mardi" ], [ "3", "Mercredit" ], [ "4", "Jeudi" ], [ "5", "Vendredi" ], [ "6", "Samedi" ], [ "7", "Dimanche" ] ];\n'
20130515 'Lino.lino.UserLevels = [ [ "10", "Guest" ], [ "20", "Secr\\u00e9taire" ], [ "30", "Utilisateur" ], [ "40", "Manager" ], [ "50", "Administrateur" ], [ "90", "Expert" ] ];\n'
20130515 'Lino.lino.UserProfiles = [ [ "000", "000 (Anonyme)" ], [ "100", "100 (Agent d\'insertion)" ], [ "110", "110 (Agent d\'insertion (chef de service))" ], [ "200", "200 (Consultat nouveaux clients)" ], [ "300", "300 (Consultate m\\u00e9diateur dettes)" ], [ "500", "500 (BCSS seulement)" ], [ "900", "900 (Administrateur)" ] ];\n'
20130515 'Lino.cal.EventStates = [ [ "10", "Propos\\u00e9" ], [ "20", "Draft" ], [ "30", "Communiqu\\u00e9" ], [ "40", "Planif\\u00e9" ], [ "50", "a eu lieu" ], [ "60", "D\\u00e9plac\\u00e9" ], [ "70", "Annul\\u00e9" ], [ "80", "Absent" ] ];\n'
20130515 'Lino.accounts.AccountTypes = [ [ "A", "Actifs" ], [ "L", "Obligations" ], [ "I", "Revenus" ], [ "E", "D\\u00e9penses" ], [ "C", "Capital" ], [ "B", "Bank accounts" ] ];\n'
20130515 'Lino.cv.CefLevel = [ [ "A1", "A1 (basic language skills)" ], [ "A2", "A2 (basic language skills)" ], [ "A2+", "A2+ (basic language skills)" ], [ "B1", "B1 (independent use of language)" ], [ "B2", "B2 (independent use of language)" ], [ "B2+", "B2+ (independent use of language)" ], [ "C1", "C1 (proficient use of language)" ], [ "C2", "C2 (proficient use of language)" ], [ "C2+", "C2+ (proficient use of language)" ] ];\n'
20130515 'Lino.properties.HowWell = [ [ "0", "not at all" ], [ "1", "a bit" ], [ "2", "moderate" ], [ "3", "quite well" ], [ "4", "very well" ] ];\n'
20130515 'Lino.jobs.CandidatureStates = [ [ "10", "Active" ], [ "20", "p\\u00e9riode d\'essai" ], [ "25", "Probation failed" ], [ "27", "Travaille" ], [ "30", "Inactive" ] ];\n'
20130515 'Lino.outbox.RecipientType = [ [ "to", "to" ], [ "cc", "cc" ], [ "bcc", "bcc" ] ];\n'
20130515 'Lino.countries.CityTypes = [ [ "10", "Member State" ], [ "11", "Division" ], [ "12", "Region" ], [ "13", "Community" ], [ "14", "Territory" ], [ "20", "County" ], [ "21", "Province" ], [ "22", "Shire" ], [ "23", "Subregion" ], [ "24", "Department" ], [ "25", "Arrondissement" ], [ "26", "Prefecture" ], [ "27", "District" ], [ "28", "Secteur" ], [ "50", "Ville" ], [ "51", "Town" ], [ "52", "Municipality" ], [ "54", "Parish" ], [ "55", "Township" ], [ "56", "Quarter" ], [ "61", "Borough" ], [ "62", "Small borough" ], [ "70", "Village" ] ];\n'
20130515 'Lino.pcsw.BeIdCardTypes = [ [ "1", "Registre national" ], [ "6", "Kids card (< 12 year)" ], [ "11", "Foreigner card A" ], [ "12", "Foreigner card B" ], [ "13", "Foreigner card C" ], [ "14", "Foreigner card D" ], [ "15", "Foreigner card E" ], [ "16", "Foreigner card E+" ], [ "17", "Foreigner card F" ], [ "18", "Foreigner card F+" ] ];\n'
20130515 'Lino.pcsw.CivilState = [ [ "10", "c\\u00e9libataire" ], [ "13", "C\\u00e9libateire cohabitant" ], [ "18", "C\\u00e9libataire avec enfant" ], [ "20", "mari\\u00e9" ], [ "21", "Mari\\u00e9 (habitant seul)" ], [ "22", "Mari\\u00e9 (vivant avec autre partenaire)" ], [ "30", "veuf/veuve" ], [ "33", "Veuf cohabitant" ], [ "40", "divorc\\u00e9" ], [ "50", "s\\u00e9par\\u00e9" ] ];\n'
20130515 'Lino.pcsw.ClientStates = [ [ "10", "Nouveau" ], [ "20", "Refus\\u00e9" ], [ "30", "Accompagn\\u00e9" ], [ "50", "Ancien" ] ];\n'
20130515 'Lino.cal.GuestStates = [ [ "10", "Invit\\u00e9" ], [ "20", "Accept\\u00e9" ], [ "30", "Rejet\\u00e9" ], [ "40", "Pr\\u00e9sent" ], [ "50", "Absent" ] ];\n'
20130515 'Lino.properties.DoYouLike = [ [ "0", "certainly not" ], [ "1", "rather not" ], [ "2", "normally" ], [ "3", "quite much" ], [ "4", "very much" ] ];\n'
20130515 'Lino.cbss.RequestLanguages = [ [ "nl", "Dutch" ], [ "fr", "French" ], [ "de", "German" ] ];\n'
20130515 'Lino.cbss.ManageAction = [ [ "1", "Int\\u00e9grer" ], [ "2", "Annuler int\\u00e9gration" ], [ "3", "Listing" ] ];\n'
20130515 'Lino.pcsw.RefusalReasons = [ [ "10", "Information request (No coaching needed)" ], [ "20", "CPAS n\'est pas comp\\u00e9tent" ], [ "30", "Client n\'est plus revenu" ] ];\n'
20130515 'Lino.lino.UserGroups = [ [ "office", "office (Office)" ], [ "accounting", "accounting (Comptabilit\\u00e9)" ], [ "integ", "integ (Int\\u00e9gration)" ], [ "newcomers", "newcomers (Nouvelles demandes)" ], [ "debts", "debts (M\\u00e9diation de dettes)" ], [ "cbss", "cbss (BCSS)" ] ];\n'
20130515 'Lino.cbss.RequestStates = [ [ "10", "Ex\\u00e9cut\\u00e9" ], [ "20", "echec" ], [ "25", "Valid\\u00e9" ], [ "30", "OK" ], [ "40", "Avertissements" ], [ "50", "Erreurs" ] ];\n'
20130515 'Lino.lino.ChangeTypes = [ [ "C", "Cr\\u00e9er" ], [ "U", "Update" ], [ "D", "Supprimer" ], [ "R", "Remove child" ], [ "A", "Add child" ], [ "M", "Merge" ] ];\n'
20130515 'Lino.cal.AccessClasses = [ [ "10", "Priv\\u00e9" ], [ "20", "Montrer \\"occup\\u00e9\\"" ], [ "30", "Public" ] ];\n'
20130515 'Lino.cbss.QueryRegister = [ [ "1", "Primaire" ], [ "2", "Secondaire" ], [ "3", "Tous" ] ];\n'
20130515 'Lino.lino.Genders = [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ];\n'
20130515 'Lino.pcsw.ResidenceType = [ [ "1", "Registre national" ], [ "2", "Registre des \\u00e9trangers" ], [ "3", "Registre d\'attente " ] ];\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1534 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1535 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1536 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1537 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1538 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1539 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1534, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1535, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1536, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1537, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1538, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1539, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1534, type1535, show_past1536, show_active1537, show_coming1538, today1539 ];\n'
20130515 '    Lino.jobs.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client_state1776 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1777 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1778 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1779 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1780 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var also_obsolete1781 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1782 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1776, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1777, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1778, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1779, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1780, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var aged_from1789 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1790 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1791 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var nationality1792 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1793 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1789, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1790, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1791, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1792, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var language1798 = new Lino.TwinCombo({ "fieldLabel": "Connaissance de langue", "name": "language", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Languages.detail)}, "emptyText": "Choisir Langue...", "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/language", "method": "GET" }) }) });\n'
20130515 '    var wanted_property1799 = new Lino.TwinCombo({ "fieldLabel": "Comp\\u00e9tence requise", "name": "wanted_property", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.properties.Properties.detail)}, "emptyText": "Choisir Propri\\u00e9t\\u00e9...", "selectOnFocus": true, "hiddenName": "wanted_propertyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/wanted_property", "method": "GET" }) }) });\n'
20130515 '    var group1800 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/group", "method": "GET" }) }) });\n'
20130515 '    var only_active1801 = new Ext.form.Checkbox({ "boxLabel": "Clients actifs seulement", "listeners": { "render": Lino.quicktip_renderer("Clients actifs seulement","Show only clients in \'active\' integration phases") }, "hideLabel": true, "checked": false, "name": "only_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_3_panel1802 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1798, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": wanted_property1799, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1800, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_active1801, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1782, main_2_panel1793, main_3_panel1802 ];\n'
20130515 '    this.fields = [ client_state1776, coached_by1777, and_coached_by1778, coached_on1779, only_primary1780, also_obsolete1781, aged_from1789, aged_to1790, gender1791, nationality1792, language1798, wanted_property1799, group1800, only_active1801 ];\n'
20130515 '    Lino.pcsw.IntegClients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2454 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2455 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var job_type2456 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    this.items = [ { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2454, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2455, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2456, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2454, date2455, job_type2456 ];\n'
20130515 '    Lino.jobs.JobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from1753 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1754 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1755 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1756 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1757 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1753, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1754, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1755, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1756, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state1762 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1763 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1764 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1765 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1766 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality1767 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1768 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1762, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1763, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1764, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1765, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1766, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1767, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1757, main_2_panel1768 ];\n'
20130515 '    this.fields = [ aged_from1753, aged_to1754, gender1755, also_obsolete1756, client_state1762, coached_by1763, and_coached_by1764, coached_on1765, only_primary1766, nationality1767 ];\n'
20130515 '    Lino.pcsw.Clients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1427 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1428 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1429 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1430 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1431 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1432 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1427, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1428, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1429, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1430, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1431, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1432, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1427, type1428, show_past1429, show_active1430, show_coming1431, today1432 ];\n'
20130515 '    Lino.isip.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var dates_from836 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Date du","Nur Termine ab diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date du</span>", "anchor": "-20", "name": "dates_from" });\n'
20130515 '    var dates_to837 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("au ","Nur Termine bis zu diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">au </span>", "anchor": "-20", "name": "dates_to" });\n'
20130515 '    var user838 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Responsible user</span>", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Responsible user","Nur Termine dieses Benutzers.") }, "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to839 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Attribu\\u00e9 \\u00e0</span>", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Attribu\\u00e9 \\u00e0","Nur Termine, die diesem Benutzer zugewiesen sind.") }, "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var state840 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "state", "hiddenName": "stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Termine in diesem Bearbeitungszustand.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.EventStates });\n'
20130515 '    var unclear841 = new Ext.form.Checkbox({ "boxLabel": "Mes rendez-vous \\u00e0 clarifier", "hideLabel": true, "checked": false, "name": "unclear", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel842 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 252, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_from836, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_to837, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user838, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to839, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state840, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unclear841, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel842 ];\n'
20130515 '    this.fields = [ dates_from836, dates_to837, user838, assigned_to839, state840, unclear841 ];\n'
20130515 '    Lino.cal.MyEvents.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 126,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var job_type2463 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/NewJobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    var today2464 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2463, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today2464, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ job_type2463, today2464 ];\n'
20130515 '    Lino.jobs.NewJobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from2128 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to2129 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender2130 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete2131 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel2132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from2128, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to2129, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2130, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete2131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state2137 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by2138 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by2139 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on2140 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary2141 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality2142 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2143 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state2137, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by2138, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by2139, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on2140, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary2141, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality2142, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var request_state2150 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "name": "request_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "hiddenName": "request_stateHidden" });\n'
20130515 '    var course_content2151 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "name": "course_content", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "course_contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_content", "method": "GET" }) }) });\n'
20130515 '    var course_provider2152 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "name": "course_provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "course_providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_provider", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel2153 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": request_state2150, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_content2151, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_provider2152, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel2132, main_2_panel2143, main_3_panel2153 ];\n'
20130515 '    this.fields = [ aged_from2128, aged_to2129, gender2130, also_obsolete2131, client_state2137, coached_by2138, and_coached_by2139, coached_on2140, only_primary2141, nationality2142, request_state2150, course_content2151, course_provider2152 ];\n'
20130515 '    Lino.courses.PendingCourseRequests.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2420 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverviewByType/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2421 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2420, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2421, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2420, date2421 ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var gender1098 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1099 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1100 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 47, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1098, "labelAlign": "top" }, { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1099, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1100 ];\n'
20130515 '    this.fields = [ gender1098, also_obsolete1099 ];\n'
20130515 '    Lino.contacts.Persons.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 90,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Refuser",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var reason13 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "reason", "allowBlank": false, "hiddenName": "reasonHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "name": "reason" });\n'
20130515 '    var remark14 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    this.items = [ { "items": reason13, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": remark14, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ];\n'
20130515 '    this.fields = [ reason13, remark14 ];\n'
20130515 '    Lino.pcsw.Clients.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 387,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Rejeter",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var notify_subject6 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "notify_subject" });\n'
20130515 '    var notify_body7 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "notify_body" });\n'
20130515 '    var notify_silent8 = new Ext.form.Checkbox({ "boxLabel": "Don\'t send email notification", "hideLabel": true, "checked": false, "name": "notify_silent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    this.items = [ { "items": notify_subject6, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": notify_body7, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, { "items": notify_silent8, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ notify_subject6, notify_body7, notify_silent8 ];\n'
20130515 '    Lino.cal.GuestsByEvent.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to18 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/pcsw/Clients/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var pcsw_Coaching19 = new Ext.form.Checkbox({ "boxLabel": "Accompagnements", "hideLabel": true, "checked": false, "name": "pcsw_Coaching", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var cv_LanguageKnowledge20 = new Ext.form.Checkbox({ "boxLabel": "Connaissances de langue", "hideLabel": true, "checked": false, "name": "cv_LanguageKnowledge", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_1_panel21 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": pcsw_Coaching19, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cv_LanguageKnowledge20, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var properties_PersonProperty24 = new Ext.form.Checkbox({ "boxLabel": "Propri\\u00e9t\\u00e9s", "hideLabel": true, "checked": false, "name": "properties_PersonProperty", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_panel25 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Auch verg\\u00e4ngliche verkn\\u00fcpfte Objekte \\u00fcberweisen", "items": [ keep_volatiles_1_panel21, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": properties_PersonProperty24, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var reason27 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to18, "anchor": "-20", "labelAlign": "top" }, keep_volatiles_panel25, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason27, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to18, pcsw_Coaching19, cv_LanguageKnowledge20, properties_PersonProperty24, reason27 ];\n'
20130515 '    Lino.pcsw.Clients.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to1 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/contacts/Companies/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var reason2 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to1, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason2, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to1, reason2 ];\n'
20130515 '    Lino.contacts.Companies.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var start_date818 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time819 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel820 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date818, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date823 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time824 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel825 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date823, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time824, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var main_2_panel828 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ start_panel820, end_panel825 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var calendar829 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var project830 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel831 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar829, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project830, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel834 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary817, "anchor": "-20", "labelAlign": "top" }, main_2_panel828, main_3_panel831 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel834;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1608 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var job1609 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var main_panel1610 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1608, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1609, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1610;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1609.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1440 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1441 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1442 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1443 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1444 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var general_1_panel1445 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1440, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1441, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1442, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1443, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1444, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type1451 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1452 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1453 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1454 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel1455 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1451, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1452, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1453, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1454, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1460 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var applies_until1461 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1462 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var general_3_panel1463 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1460, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1461, "labelAlign": "top" }, { "flex": 55, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1462, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1467 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1468 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1469 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1470 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var general_4_panel1471 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1467, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1468, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1469, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1470, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid1476 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 47 });\n'
20130515 '    var cal_EventsByController_grid1483 = new Lino.cal.EventsByController.GridPanel({ "flex": 52, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ], "master_panel": this });\n'
20130515 '    var general_5_panel1484 = new Ext.Panel({ "flex": 55, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ cal_TasksByController_grid1476, cal_EventsByController_grid1483 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1485 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1445, general_2_panel1455, general_3_panel1463, general_4_panel1471, general_5_panel1484 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var stages1486 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "stages", "title": "stages" });\n'
20130515 '    var goals1487 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "goals", "title": "buts" });\n'
20130515 '    var isip_1_panel1488 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ stages1486, goals1487 ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_asd1489 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_asd", "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1490 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_dsbe", "title": "devois ISP" });\n'
20130515 '    var isip_2_panel1491 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_asd1489, duties_dsbe1490 ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_company1492 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_company", "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1493 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_person", "title": "Devoirs personne" });\n'
20130515 '    var isip_3_panel1494 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_company1492, duties_person1493 ], "region": "south", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var isip_panel1495 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "PIIS", "hideCheckBoxLabels": true, "items": [ isip_1_panel1488, isip_2_panel1491, isip_3_panel1494 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1496 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1485, isip_panel1495 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1496;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1453.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      cal_TasksByController_grid1476.on_master_changed();\n'
20130515 '      cal_EventsByController_grid1483.on_master_changed();\n'
20130515 '      stages1486.refresh();\n'
20130515 '      goals1487.refresh();\n'
20130515 '      duties_asd1489.refresh();\n'
20130515 '      duties_dsbe1490.refresh();\n'
20130515 '      duties_company1492.refresh();\n'
20130515 '      duties_person1493.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1452.on('change',Lino.chooser_handler(contact_person1453,'company'));\n"
20130515 '      Lino.isip.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1452.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1497 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var type1498 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1499 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1500 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1498, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1499, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1503 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1497, "anchor": "-20", "labelAlign": "top" }, main_2_panel1500 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1499.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name2378 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2379 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2380 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2381 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2379, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2380, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2384 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2378, "anchor": "-20", "labelAlign": "top" }, main_2_panel2381 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2384;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var subject673 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project674 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var date675 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date","\\n        The official date to be printed on the document.\\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date</span>", "name": "date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel676 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject673, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project674, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date675, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var user680 = new Lino.TwinCombo({ "fieldLabel": "exp\\u00e9diteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/user", "method": "GET" }) }) });\n'
20130515 '    var sent681 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "sent", "anchor": "-20", "value": "<br>", "name": "sent" });\n'
20130515 '    var id682 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var owner_disp683 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_2_panel684 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user680, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent681, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id682, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp683, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var RecipientsByMail_grid695 = new Lino.outbox.RecipientsByMail.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.RecipientsByMail.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var AttachmentsByMail_htmlbox696 = new Lino.HtmlBoxPanel({ "flex": 22, "layout": "fit", "name": "AttachmentsByMail", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Pi\\u00e8ces jointes", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.outbox.AttachmentsByMail.grid) ] });\n'
20130515 '    var UploadsByController_htmlbox697 = new Lino.HtmlBoxPanel({ "flex": 22, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel698 = new Ext.Panel({ "flex": 29, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ RecipientsByMail_grid695, AttachmentsByMail_htmlbox696, UploadsByController_htmlbox697 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var body699 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 58, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel700 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel676, main_2_panel684, main_3_panel698, body699 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel700;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      RecipientsByMail_grid695.on_master_changed();\n'
20130515 '      AttachmentsByMail_htmlbox696.refresh();\n'
20130515 '      UploadsByController_htmlbox697.refresh();\n'
20130515 '      body699.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date636 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var event_type637 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type638 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var left_1_panel639 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date636, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type637, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type638, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var subject643 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project644 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company645 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var left_3_panel646 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project644, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company645, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var id649 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var user650 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/user", "method": "GET" }) }) });\n'
20130515 '    var language651 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var build_time652 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var left_4_panel653 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id649, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user650, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language651, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time652, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var body658 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 55, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var left_panel659 = new Ext.Panel({ "flex": 66, "layout": "vbox", "items": [ left_1_panel639, { "items": subject643, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, left_3_panel646, left_4_panel653, body658 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox661 = new Lino.HtmlBoxPanel({ "flex": 16, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var outbox_MailsByController_grid707 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var postings_PostingsByController_grid718 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var cal_TasksByController_grid724 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var right_panel725 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ UploadsByController_htmlbox661, outbox_MailsByController_grid707, postings_PostingsByController_grid718, cal_TasksByController_grid724 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel726 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ left_panel659, right_panel725 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel727 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel726 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel727;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body658.refresh();\n'
20130515 '      UploadsByController_htmlbox661.refresh();\n'
20130515 '      outbox_MailsByController_grid707.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid718.on_master_changed();\n'
20130515 '      cal_TasksByController_grid724.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var preview_htmlbox2461 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "preview", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2462 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ preview_htmlbox2461 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2462;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      preview_htmlbox2461.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.NewJobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name550 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id551 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language552 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel553 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix549, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name550, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id551, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language552, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity559 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }) });\n'
20130515 '    var type560 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel561 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id558, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity559, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type560, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account1565 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete567 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel568 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1565, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2566, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete567, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel572 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel553, intro_box_2_panel561, intro_box_3_panel568 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country573 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }) });\n'
20130515 '    var region574 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel575 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country573, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region574, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city578 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code579 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel580 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city578, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code579, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix583 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street584 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no585 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box586 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel587 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix583, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street584, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no585, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box586, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2592 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel593 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel575, box3_2_panel580, box3_3_panel587, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2592, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email595 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url596 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone597 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm598 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel599 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email595, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url596, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone597, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm598, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel604 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel593, box4_panel599 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks605 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var is_courseprovider606 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un organisateur de cours (<a href=\\"javascript:Lino.show_mti_child(\'is_courseprovider\',Lino.courses.CourseProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_courseprovider" });\n'
20130515 '    var is_jobprovider607 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est Employant (<a href=\\"javascript:Lino.show_mti_child(\'is_jobprovider\',Lino.jobs.JobProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_jobprovider" });\n'
20130515 '    var client_contact_type608 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de contact client", "name": "client_contact_type", "pageSize": 20, "emptyText": "Choisir Type de contact client...", "selectOnFocus": true, "hiddenName": "client_contact_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }) });\n'
20130515 '    var box5_2_panel609 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 261, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_courseprovider606, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_jobprovider607, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_contact_type608, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var box5_panel613 = new Ext.Panel({ "flex": 57, "layout": "vbox", "items": [ { "items": remarks605, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 }, box5_2_panel609 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByCompany_grid619 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel620 = new Ext.Panel({ "flex": 46, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box5_panel613, contacts_RolesByCompany_grid619 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel621 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel572, address_box_panel604, bottom_box_panel620 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid741 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var main_panel742 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel621, pcsw_NotesByCompany_grid741 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel742;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region574.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid619.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid741.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country573.on('change',Lino.chooser_handler(region574,'country'));\n"
20130515 "      country573.on('change',Lino.chooser_handler(city578,'country'));\n"
20130515 "      region574.on('change',Lino.chooser_handler(city578,'region'));\n"
20130515 '      Lino.contacts.Companies.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name504 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language505 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email506 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel507 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language505, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email506, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel510 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name504, "anchor": "-20", "labelAlign": "top" }, main_2_panel507 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel510;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var title1085 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var first_name1086 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1087 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1085, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1086, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1087, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1092 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1093 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_2_panel1094 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1092, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1093, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1097 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel1088, main_2_panel1094 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1097;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2212 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2213 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var main_1_panel2214 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2212, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2213, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2217 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2218 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2220 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2217, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2218, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2219, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2224 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2225 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2226 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2227 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2224, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2225, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2226, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2231 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2220, p2_2_panel2227 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2232 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel2214, p2_panel2231 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2232;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2212.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.lino.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2445 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var welcome_htmlbox2446 = new Lino.HtmlBoxPanel({ "flex": 10, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var UsersWithClients_htmlbox2447 = new Lino.HtmlBoxPanel({ "flex": 28, "layout": "fit", "name": "UsersWithClients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Agents et leurs clients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.pcsw.UsersWithClients.grid) ] });\n'
20130515 '    var coming_reminders_htmlbox2448 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "coming_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels \\u00e0 venir", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var missed_reminders_htmlbox2449 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "missed_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels rat\\u00e9s", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_4_panel2450 = new Ext.Panel({ "flex": 57, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ coming_reminders_htmlbox2448, missed_reminders_htmlbox2449 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2451 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2445, welcome_htmlbox2446, UsersWithClients_htmlbox2447, main_4_panel2450 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2451;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2445.refresh();\n'
20130515 '      welcome_htmlbox2446.refresh();\n'
20130515 '      UsersWithClients_htmlbox2447.refresh();\n'
20130515 '      coming_reminders_htmlbox2448.refresh();\n'
20130515 '      missed_reminders_htmlbox2449.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.lino.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var start_date107 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var due_date108 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Due date", "anchor": "-20", "name": "due_date" });\n'
20130515 '    var id109 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var workflow_buttons_disp110 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var main_1_panel111 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date107, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": due_date108, "labelAlign": "top" }, { "flex": 9, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id109, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp110, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var summary116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user117 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project118 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel119 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user117, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project118, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var calendar122 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/calendar", "method": "GET" }) }) });\n'
20130515 '    var owner_disp123 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var created124 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified125 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var main_4_panel126 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar122, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp123, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created124, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified125, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description131 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var main_panel132 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ main_1_panel111, { "items": summary116, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, main_3_panel119, main_4_panel126, description131 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel132;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description131.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2318 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2319 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2320 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2321 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2322 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2323 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2324 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2325 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2318, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2319, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2320, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2321, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2322, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2323, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2324, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2333 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2334 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var history2335 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var parameters_panel2336 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2333, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2334, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2335, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 99, "border": false, "labelAlign": "top" });\n'
20130515 '    var cbss_RetrieveTIGroupsResult_grid2345 = new Lino.cbss.RetrieveTIGroupsResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.RetrieveTIGroupsResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var request_panel2346 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2325, parameters_panel2336, cbss_RetrieveTIGroupsResult_grid2345 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2347 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2348 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2349 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2350 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2347, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2348, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2349, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2354 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2346, technical_panel2350 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2354;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cbss_RetrieveTIGroupsResult_grid2345.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 72,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix1808 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name1809 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id1810 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1811 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel1812 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix1808, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1809, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1810, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1811, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id1817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity1818 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type1819 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel1820 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id1817, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1818, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11824 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21825 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1826 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel1827 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11824, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21825, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1826, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel1831 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel1812, intro_box_2_panel1820, intro_box_3_panel1827 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country1832 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region1833 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel1834 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1832, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1833, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city1837 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1838 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel1839 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1837, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1838, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1842 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1843 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1844 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1845 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel1846 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1842, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1843, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1844, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1845, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21851 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel1852 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel1834, box3_2_panel1839, box3_3_panel1846, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21851, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email1854 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1855 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1856 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1857 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel1858 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1854, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1855, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1856, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1857, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel1863 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel1852, box4_panel1858 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1864 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid1865 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel1866 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1864, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid1865 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1868 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel1831, address_box_panel1863, bottom_box_panel1866 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid1869 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var JobsByProvider_grid1943 = new Lino.jobs.JobsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.jobs.JobsByProvider.grid) ], "master_panel": this });\n'
20130515 '    var ContractsByProvider_grid1972 = new Lino.jobs.ContractsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByProvider.grid) ] });\n'
20130515 '    var jobs_panel1973 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Emplois", "hideCheckBoxLabels": true, "items": [ JobsByProvider_grid1943, ContractsByProvider_grid1972 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1974 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1868, pcsw_NotesByCompany_grid1869, jobs_panel1973 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1974;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1833.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid1865.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid1869.on_master_changed();\n'
20130515 '      JobsByProvider_grid1943.on_master_changed();\n'
20130515 '      ContractsByProvider_grid1972.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1832.on('change',Lino.chooser_handler(region1833,'country'));\n"
20130515 "      country1832.on('change',Lino.chooser_handler(city1837,'country'));\n"
20130515 "      region1833.on('change',Lino.chooser_handler(city1837,'region'));\n"
20130515 '      Lino.jobs.JobProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var project701 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var subject702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var body703 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 71, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel704 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "items": project701, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": subject702, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, body703 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel704;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body703.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var first_name1740 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1741 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1742 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1740, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1741, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id1745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var gender1746 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1747 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_3_panel1748 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1746, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1747, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1751 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ main_1_panel1742, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1745, "anchor": "-20", "labelAlign": "top" }, main_3_panel1748 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1751;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name1104 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name1105 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var title1106 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var box1_1_panel1107 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1104, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1105, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1106, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1111 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/country", "method": "GET" }) }) });\n'
20130515 '    var city1112 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1113 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_2_panel1114 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1111, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1112, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1113, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1118 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1119 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1120 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1121 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_3_panel1122 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1118, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1119, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1120, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1121, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21127 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box1_panel1128 = new Ext.form.FieldSet({ "flex": 61, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ box1_1_panel1107, box1_2_panel1114, box1_3_panel1122, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21127, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1130 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1131 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box2_1_panel1132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1130, "labelAlign": "top" }, { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var phone1136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var fax1137 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var box2_3_panel1138 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1136, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1137, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 90, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gsm1141 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box2_panel1142 = new Ext.form.FieldSet({ "flex": 38, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ box2_1_panel1132, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1135, "anchor": "-20", "labelAlign": "top" }, box2_3_panel1138, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1141, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 63, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1145 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1128, box2_panel1142 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1146 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var birth_date1147 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var age_disp1148 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "\\u00e2ge", "name": "age", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state1149 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Etat civil", "name": "civil_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.CivilState, "hiddenName": "civil_stateHidden" });\n'
20130515 '    var noble_condition1150 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Titre de noblesse","The eventual noble condition of this person. Imported from TIM.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Titre de noblesse</span>", "name": "noble_condition", "maxLength": 50, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_1_panel1151 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1146, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date1147, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": age_disp1148, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": civil_state1149, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": noble_condition1150, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_country1157 = new Lino.TwinCombo({ "fieldLabel": "Pays de naissance", "name": "birth_country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "birth_countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/birth_country", "method": "GET" }) }) });\n'
20130515 '    var birth_place1158 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Lieu de naissance", "anchor": "-20", "name": "birth_place" });\n'
20130515 '    var nationality1159 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var national_id1160 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var box3_2_panel1161 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_country1157, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_place1158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1159, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1160, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel1166 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Naissance", "items": [ box3_1_panel1151, box3_2_panel1161 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var card_number1167 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20, "fieldLabel": "n\\u00b0", "anchor": "-20", "name": "card_number" });\n'
20130515 '    var card_valid_from1168 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "valide de", "anchor": "-20", "name": "card_valid_from" });\n'
20130515 '    var card_valid_until1169 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "card_valid_until" });\n'
20130515 '    var card_issuer1170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50, "fieldLabel": "\\u00e9mise par", "anchor": "-20", "name": "card_issuer" });\n'
20130515 '    var card_type1171 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de carte eID", "name": "card_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.BeIdCardTypes, "hiddenName": "card_typeHidden" });\n'
20130515 '    var eid_panel_1_panel1172 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Carte eID", "bodyBorder": true, "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_number1167, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_from1168, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_until1169, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_issuer1170, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_type1171, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created1178 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1179 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box4_3_panel1180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1178, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box4_panel1183 = new Ext.Panel({ "flex": 82, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box3_panel1166, eid_panel_1_panel1172, box4_3_panel1180 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var image_htmlbox1184 = new Lino.HtmlBoxPanel({ "flex": 17, "layout": "fit", "name": "image", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var general_2_panel1185 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ box4_panel1183, image_htmlbox1184 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 0, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var general_panel1186 = new Ext.Panel({ "autoHeight": true, "layout": "form", "title": "Personne", "items": [ general_1_panel1145, general_2_panel1185 ], "frame": true, "bodyBorder": false, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "labelAlign": "top" });\n'
20130515 '    var in_belgium_since1187 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("en Belgique depuis","Since when this person in Belgium lives.\\n<b>Important:</b> help_text can be formatted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">en Belgique depuis</span>", "anchor": "-20", "name": "in_belgium_since" });\n'
20130515 '    var residence_type1188 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de s\\u00e9jour", "name": "residence_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ResidenceType, "hiddenName": "residence_typeHidden" });\n'
20130515 '    var gesdos_id1189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "N\\u00b0 GesDos", "anchor": "-20", "name": "gesdos_id" });\n'
20130515 '    var status_1_panel1190 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": in_belgium_since1187, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_type1188, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gesdos_id1189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11194 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var status_2_panel1196 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11194, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21195, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var job_agents1199 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Agences de travail", "anchor": "-20", "name": "job_agents" });\n'
20130515 '    var group1200 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/group", "method": "GET" }) }) });\n'
20130515 '    var status_3_panel1201 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_agents1199, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1200, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var status_panel1204 = new Ext.Panel({ "flex": 68, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ status_1_panel1190, status_2_panel1196, status_3_panel1201 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var aid_type1205 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'aide sociale", "name": "aid_type", "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale...", "selectOnFocus": true, "hiddenName": "aid_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }) });\n'
20130515 '    var income_ag1206 = new Ext.form.Checkbox({ "boxLabel": "allocation de ch\\u00f4mage", "hideLabel": true, "checked": false, "name": "income_ag", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_wg1207 = new Ext.form.Checkbox({ "boxLabel": "waiting pay", "hideLabel": true, "checked": false, "name": "income_wg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_2_panel1208 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_ag1206, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_wg1207, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_kg1211 = new Ext.form.Checkbox({ "boxLabel": "indemnisation maladie", "hideLabel": true, "checked": false, "name": "income_kg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_rente1212 = new Ext.form.Checkbox({ "boxLabel": "persone de retraite", "hideLabel": true, "checked": false, "name": "income_rente", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_3_panel1213 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_kg1211, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_rente1212, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_misc1216 = new Ext.form.Checkbox({ "boxLabel": "autres revenus", "hideLabel": true, "checked": false, "name": "income_misc", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_panel1217 = new Ext.Panel({ "flex": 31, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": aid_type1205, "anchor": "-20", "labelAlign": "top" }, income_2_panel1208, income_3_panel1213, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_misc1216, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 180, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_1_panel1220 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ status_panel1204, income_panel1217 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_seeking1221 = new Ext.form.Checkbox({ "boxLabel": "cherche du travail", "hideLabel": true, "checked": false, "name": "is_seeking", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var unemployed_since1222 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Cherche du travail depuis", "anchor": "-20", "name": "unemployed_since" });\n'
20130515 '    var work_permit_suspended_until1223 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "suspendu jusque", "anchor": "-20", "name": "work_permit_suspended_until" });\n'
20130515 '    var suche_1_panel1224 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_seeking1221, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unemployed_since1222, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_suspended_until1223, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var unavailable_until1228 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Indidponible jusque", "anchor": "-20", "name": "unavailable_until" });\n'
20130515 '    var unavailable_why1229 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "raison", "anchor": "-20", "name": "unavailable_why" });\n'
20130515 '    var suche_2_panel1230 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_until1228, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_why1229, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ExclusionsByPerson_grid1238 = new Lino.pcsw.ExclusionsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ExclusionsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var suche_panel1239 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Recherche de travail", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ suche_1_panel1224, suche_2_panel1230, pcsw_ExclusionsByPerson_grid1238 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var needs_residence_permit1240 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de s\\u00e9jour", "hideLabel": true, "checked": false, "name": "needs_residence_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var needs_work_permit1241 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de travail", "hideLabel": true, "checked": false, "name": "needs_work_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var papers_1_panel1242 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 288, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_residence_permit1240, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_work_permit1241, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var residence_permit_disp1245 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de s\\u00e9jour", "name": "residence_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var work_permit_disp1246 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de travail", "name": "work_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var driving_licence_disp1247 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "permis de conduire", "name": "driving_licence", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var papers_2_panel1248 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_permit_disp1245, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_disp1246, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": driving_licence_disp1247, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox1252 = new Lino.HtmlBoxPanel({ "flex": 42, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var papers_panel1253 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Papiers", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ papers_1_panel1242, papers_2_panel1248, UploadsByController_htmlbox1252 ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_2_panel1254 = new Ext.Panel({ "flex": 63, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ suche_panel1239, papers_panel1253 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_panel1255 = new Ext.Panel({ "layout": "vbox", "title": "Statut", "items": [ status_tab_1_panel1220, status_tab_2_panel1254 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var workflow_buttons_disp1256 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker1257 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Interm\\u00e9diaire ", "name": "broker", "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ...", "selectOnFocus": true, "hiddenName": "brokerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/broker", "method": "GET" }) }) });\n'
20130515 '    var faculty1258 = new Lino.TwinCombo({ "fieldLabel": "Sp\\u00e9cificit\\u00e9", "name": "faculty", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.newcomers.Faculties.detail)}, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9...", "selectOnFocus": true, "hiddenName": "facultyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/faculty", "method": "GET" }) }) });\n'
20130515 '    var newcomers_left_panel1259 = new Ext.Panel({ "flex": 33, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp1256, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": broker1257, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": faculty1258, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var coaching_1_panel1278 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ newcomers_left_panel1259 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ContactsByClient_grid1286 = new Lino.pcsw.ContactsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ContactsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var pcsw_CoachingsByClient_grid1294 = new Lino.pcsw.CoachingsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var coaching_2_panel1295 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ pcsw_ContactsByClient_grid1286, pcsw_CoachingsByClient_grid1294 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var coaching_panel1296 = new Ext.Panel({ "layout": "vbox", "title": "Accompagnement", "items": [ coaching_1_panel1278, coaching_2_panel1295 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_StudiesByPerson_grid1309 = new Lino.jobs.StudiesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "master_panel": this, "listeners": { "render": Lino.quicktip_renderer("\\u00c9tudes & formations","List of studies for a given person.") }, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByPerson.grid) ] });\n'
20130515 '    var jobs_ExperiencesByPerson_grid1319 = new Lino.jobs.ExperiencesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var education_panel1320 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Formation", "hideCheckBoxLabels": true, "items": [ jobs_StudiesByPerson_grid1309, jobs_ExperiencesByPerson_grid1319 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_LanguageKnowledgesByPerson_grid1327 = new Lino.cv.LanguageKnowledgesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.cv.LanguageKnowledgesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var courses_CourseRequestsByPerson_grid1363 = new Lino.courses.CourseRequestsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseRequestsByPerson.grid) ], "master_panel": this });\n'
20130515 '    var languages_panel1364 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Langues", "hideCheckBoxLabels": true, "items": [ cv_LanguageKnowledgesByPerson_grid1327, courses_CourseRequestsByPerson_grid1363 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_SkillsByPerson_grid1371 = new Lino.cv.SkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var cv_SoftSkillsByPerson_grid1378 = new Lino.cv.SoftSkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SoftSkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var skills1379 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Autres talents", "anchor": "-20 -10", "growMax": 2000, "name": "skills" });\n'
20130515 '    var competences_1_panel1380 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_SkillsByPerson_grid1371, cv_SoftSkillsByPerson_grid1378, { "items": skills1379, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 28 } ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 135, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var cv_ObstaclesByPerson_grid1388 = new Lino.cv.ObstaclesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.ObstaclesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var obstacles1389 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Obstacles", "anchor": "-20 -10", "growMax": 2000, "name": "obstacles" });\n'
20130515 '    var competences_2_panel1390 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_ObstaclesByPerson_grid1388, { "items": obstacles1389, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 44 } ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 90, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var competences_panel1392 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Comp\\u00e9tences", "hideCheckBoxLabels": true, "items": [ competences_1_panel1380, competences_2_panel1390 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_CandidaturesByPerson_grid1401 = new Lino.jobs.CandidaturesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Demandes d\'emploi", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var isip_ContractsByPerson_grid1505 = new Lino.isip.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.isip.ContractsByPerson.grid) ] });\n'
20130515 '    var jobs_ContractsByPerson_grid1613 = new Lino.jobs.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByPerson.grid) ] });\n'
20130515 '    var contracts_panel1614 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Contrats", "hideCheckBoxLabels": true, "items": [ isip_ContractsByPerson_grid1505, jobs_ContractsByPerson_grid1613 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByPerson_grid1629 = new Lino.pcsw.NotesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Historique", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var cal_EventsByProject_grid1655 = new Lino.cal.EventsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByProject.grid) ] });\n'
20130515 '    var cal_TasksByProject_grid1678 = new Lino.cal.TasksByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByProject.grid) ], "master_panel": this });\n'
20130515 '    var calendar_panel1679 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_EventsByProject_grid1655, cal_TasksByProject_grid1678 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByProject_grid1691 = new Lino.outbox.MailsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByProject.grid) ], "master_panel": this });\n'
20130515 '    var postings_PostingsByProject_grid1702 = new Lino.postings.PostingsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByProject.grid) ], "master_panel": this });\n'
20130515 '    var outbox_panel1703 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Correspondence", "hideCheckBoxLabels": true, "items": [ outbox_MailsByProject_grid1691, postings_PostingsByProject_grid1702 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var activity1704 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/activity", "method": "GET" }) }) });\n'
20130515 '    var client_state1705 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "client_stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates, "name": "client_state" });\n'
20130515 '    var refusal_reason1706 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "refusal reason", "name": "refusal_reason", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "hiddenName": "refusal_reasonHidden" });\n'
20130515 '    var misc_1_panel1707 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1704, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1705, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refusal_reason1706, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_cpas1711 = new Ext.form.Checkbox({ "boxLabel": "client CPAS", "hideLabel": true, "checked": false, "name": "is_cpas", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_senior1712 = new Ext.form.Checkbox({ "boxLabel": "retrait\\u00e9", "hideLabel": true, "checked": false, "name": "is_senior", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_obsolete1713 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var misc_2_panel1714 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_cpas1711, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_senior1712, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1713, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1718 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var remarks21719 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque (Bureau Social)", "anchor": "-20 -10", "growMax": 2000, "name": "remarks2" });\n'
20130515 '    var misc_3_panel1720 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 225, "hideCheckBoxLabels": true, "items": [ { "items": remarks1718, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 }, { "items": remarks21719, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 } ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByPerson_grid1723 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var households_MembersByPerson_grid1724 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var misc_4_panel1725 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_RolesByPerson_grid1723, households_MembersByPerson_grid1724 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var misc_panel1726 = new Ext.Panel({ "layout": "vbox", "title": "Divers", "items": [ misc_1_panel1707, misc_2_panel1714, misc_3_panel1720, misc_4_panel1725 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cbss_identify_person_disp1727 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates IdentifyPerson", "name": "cbss_identify_person", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_manage_access_disp1728 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates ManageAccess", "name": "cbss_manage_access", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_retrieve_ti_groups_disp1729 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates Tx25", "name": "cbss_retrieve_ti_groups", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_1_panel1730 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_identify_person_disp1727, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_manage_access_disp1728, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_retrieve_ti_groups_disp1729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cbss_summary_htmlbox1734 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "cbss_summary", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Sommaire BCSS", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var cbss_panel1735 = new Ext.Panel({ "layout": "vbox", "title": "BCSS", "items": [ cbss_1_panel1730, cbss_summary_htmlbox1734 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 126, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1739 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1186, status_tab_panel1255, coaching_panel1296, education_panel1320, languages_panel1364, competences_panel1392, jobs_CandidaturesByPerson_grid1401, contracts_panel1614, pcsw_NotesByPerson_grid1629, calendar_panel1679, outbox_panel1703, misc_panel1726, cbss_panel1735 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1112.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1112.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      image_htmlbox1184.refresh();\n'
20130515 '      pcsw_ExclusionsByPerson_grid1238.on_master_changed();\n'
20130515 '      UploadsByController_htmlbox1252.refresh();\n'
20130515 '      pcsw_ContactsByClient_grid1286.on_master_changed();\n'
20130515 '      pcsw_CoachingsByClient_grid1294.on_master_changed();\n'
20130515 '      jobs_StudiesByPerson_grid1309.on_master_changed();\n'
20130515 '      jobs_ExperiencesByPerson_grid1319.on_master_changed();\n'
20130515 '      cv_LanguageKnowledgesByPerson_grid1327.on_master_changed();\n'
20130515 '      courses_CourseRequestsByPerson_grid1363.on_master_changed();\n'
20130515 '      cv_SkillsByPerson_grid1371.on_master_changed();\n'
20130515 '      cv_SoftSkillsByPerson_grid1378.on_master_changed();\n'
20130515 '      cv_ObstaclesByPerson_grid1388.on_master_changed();\n'
20130515 '      jobs_CandidaturesByPerson_grid1401.on_master_changed();\n'
20130515 '      isip_ContractsByPerson_grid1505.on_master_changed();\n'
20130515 '      jobs_ContractsByPerson_grid1613.on_master_changed();\n'
20130515 '      pcsw_NotesByPerson_grid1629.on_master_changed();\n'
20130515 '      cal_EventsByProject_grid1655.on_master_changed();\n'
20130515 '      cal_TasksByProject_grid1678.on_master_changed();\n'
20130515 '      outbox_MailsByProject_grid1691.on_master_changed();\n'
20130515 '      postings_PostingsByProject_grid1702.on_master_changed();\n'
20130515 '      contacts_RolesByPerson_grid1723.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1724.on_master_changed();\n'
20130515 '      cbss_summary_htmlbox1734.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1111.on('change',Lino.chooser_handler(city1112,'country'));\n"
20130515 '      Lino.pcsw.Clients.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var event_type728 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type729 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel730 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type728, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var subject733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project734 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company735 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel736 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project734, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company735, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel739 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 72, "autoScroll": false, "items": [ main_1_panel730, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject733, "anchor": "-20", "labelAlign": "top" }, main_3_panel736 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2355 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2357 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var main_2_panel2358 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 70, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2356, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2357, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var history2361 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_panel2362 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2355, "anchor": "-20", "labelAlign": "top" }, main_2_panel2358, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2361, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 69,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1881 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var provider1882 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }) });\n'
20130515 '    var contract_type1883 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }) });\n'
20130515 '    var type1884 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }) });\n'
20130515 '    var id1885 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel1886 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1881, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1882, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type1883, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1884, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1885, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var sector1892 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }) });\n'
20130515 '    var function1893 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }) });\n'
20130515 '    var capacity1894 = new Ext.form.NumberField({ "fieldLabel": "Capacit\\u00e9", "name": "capacity", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var hourly_rate1895 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var main_2_panel1896 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1892, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1893, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": capacity1894, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1895, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1901 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var CandidaturesByJob_grid1910 = new Lino.jobs.CandidaturesByJob.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByJob.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var main_3_panel1911 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1901, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 33 }, CandidaturesByJob_grid1910 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var ContractsByJob_grid1941 = new Lino.jobs.ContractsByJob.GridPanel({ "flex": 41, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByJob.grid) ], "master_panel": this });\n'
20130515 '    var main_panel1942 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1886, main_2_panel1896, main_3_panel1911, ContractsByJob_grid1941 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1942;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1893.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      CandidaturesByJob_grid1910.on_master_changed();\n'
20130515 '      ContractsByJob_grid1941.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1892.on('change',Lino.chooser_handler(function1893,'sector'));\n"
20130515 '      Lino.jobs.Jobs.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Jobs.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name297 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var country298 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }) });\n'
20130515 '    var region299 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }) });\n'
20130515 '    var city300 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code301 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel302 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country298, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region299, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city300, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code301, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr1307 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix308 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street309 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no310 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box311 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel312 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix308, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street309, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no310, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box311, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2317 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel318 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name297, "anchor": "-20", "labelAlign": "top" }, address_box_2_panel302, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr1307, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel312, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2317, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id322 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language323 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel324 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id322, "labelAlign": "top" }, { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language323, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email327 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url328 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone329 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm330 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax331 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel332 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm330, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax331, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel335 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel324, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email327, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url328, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone329, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel332 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel339 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel318, contact_box_panel335 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks340 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var activity341 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1342 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2343 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete344 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_2_panel345 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity341, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1342, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2343, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete344, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_person350 = new Ext.form.Checkbox({ "boxLabel": "est une Personne (<a href=\\"javascript:Lino.show_mti_child(\'is_person\',Lino.contacts.Persons.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Personne","Si ce partenaire est \\u00e9galement une personne.") }, "hideLabel": true, "name": "is_person", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_company351 = new Ext.form.Checkbox({ "boxLabel": "est une Organisation (<a href=\\"javascript:Lino.show_mti_child(\'is_company\',Lino.contacts.Companies.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Organisation","Si ce partenaire est \\u00e9galement une organisation.") }, "hideLabel": true, "name": "is_company", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_household352 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un m\\u00e9nage (<a href=\\"javascript:Lino.show_mti_child(\'is_household\',Lino.households.Households.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_household" });\n'
20130515 '    var created353 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified354 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_3_panel355 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_person350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_company351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_household352, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created353, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified354, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel361 = new Ext.Panel({ "flex": 58, "layout": "vbox", "items": [ { "items": remarks340, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, bottom_box_2_panel345, bottom_box_3_panel355 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_panel363 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel339, bottom_box_panel361 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var changes_ChangesByMaster_grid388 = new Lino.changes.ChangesByMaster.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Changes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.changes.ChangesByMaster.grid) ], "master_panel": this });\n'
20130515 '    var main_panel503 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel363, changes_ChangesByMaster_grid388 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region299.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      changes_ChangesByMaster_grid388.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country298.on('change',Lino.chooser_handler(region299,'country'));\n"
20130515 "      country298.on('change',Lino.chooser_handler(city300,'country'));\n"
20130515 "      region299.on('change',Lino.chooser_handler(city300,'region'));\n"
20130515 '      Lino.contacts.Partners.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 76,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2099 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var start_date2100 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var offer2101 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/Courses/offer", "method": "GET" }) }), "name": "offer" });\n'
20130515 '    var title2102 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Name", "anchor": "-20", "name": "title" });\n'
20130515 '    var main_1_panel2103 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2099, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2100, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer2101, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2102, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark2108 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Remarque", "anchor": "-20", "name": "remark" });\n'
20130515 '    var courses_ParticipantsByCourse_grid2114 = new Lino.courses.ParticipantsByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.ParticipantsByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var courses_CandidatesByCourse_grid2121 = new Lino.courses.CandidatesByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.CandidatesByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var main_panel2122 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel2103, { "items": remark2108, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, courses_ParticipantsByCourse_grid2114, courses_CandidatesByCourse_grid2121 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2122;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      courses_ParticipantsByCourse_grid2114.on_master_changed();\n'
20130515 '      courses_CandidatesByCourse_grid2121.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CoursesByOffer.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var body_htmlbox2452 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "body", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2453 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ body_htmlbox2452 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2453;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body_htmlbox2452.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user135 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project136 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel137 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user135, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project136, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel140 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary134, "anchor": "-20", "labelAlign": "top" }, main_2_panel137 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel140;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var isocode204 = new Ext.form.TextField({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">ISO code</span>", "name": "isocode", "boxMinWidth": Lino.chars2width(4), "listeners": { "render": Lino.quicktip_renderer("ISO code","        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.") }, "maxLength": 4, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name205 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr206 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl207 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var short_code208 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Short code","A short abbreviation for regional usage. Obsolete.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Short code</span>", "name": "short_code", "maxLength": 4, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var inscode209 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this country used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20" });\n'
20130515 '    var main_1_panel210 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": isocode204, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name205, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr206, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl207, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": short_code208, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode209, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var countries_CitiesByCountry_grid533 = new Lino.countries.CitiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 48 });\n'
20130515 '    var jobs_StudiesByCountry_grid546 = new Lino.jobs.StudiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 51 });\n'
20130515 '    var main_2_panel547 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ countries_CitiesByCountry_grid533, jobs_StudiesByCountry_grid546 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel548 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel210, main_2_panel547 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel548;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      countries_CitiesByCountry_grid533.on_master_changed();\n'
20130515 '      jobs_StudiesByCountry_grid546.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Countries.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name226 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr227 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl228 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var country229 = new Lino.TwinCombo({ "fieldLabel": "Pays", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/country", "method": "GET" }) }), "name": "country" });\n'
20130515 '    var inscode230 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this place used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 5, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "anchor": "-20" });\n'
20130515 '    var main_1_panel231 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name226, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr227, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl228, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country229, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode230, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var parent237 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Part of</span>", "name": "parent", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "listeners": { "render": Lino.quicktip_renderer("Part of","The superordinate geographic place of which this place is a part.") }, "selectOnFocus": true, "hiddenName": "parentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/parent", "method": "GET" }) }) });\n'
20130515 '    var type238 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Place Type", "name": "type", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/type", "method": "GET" }) }), "hiddenName": "typeHidden" });\n'
20130515 '    var id239 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel240 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": parent237, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type238, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id239, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var CitiesByCity_grid528 = new Lino.countries.CitiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var contacts_PartnersByCity_grid529 = new Lino.contacts.PartnersByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.PartnersByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var jobs_StudiesByCity_grid530 = new Lino.jobs.StudiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel531 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_PartnersByCity_grid529, jobs_StudiesByCity_grid530 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel532 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel231, main_2_panel240, CitiesByCity_grid528, main_4_panel531 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel532;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type238.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '      CitiesByCity_grid528.on_master_changed();\n'
20130515 '      contacts_PartnersByCity_grid529.on_master_changed();\n'
20130515 '      jobs_StudiesByCity_grid530.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country229.on('change',Lino.chooser_handler(type238,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.countries.CitiesByCity.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.About.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var main_panel2444 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ { "html": "<div class=\\"htmlText\\"><span>This is <a href=\\"http://welfare.lino-framework.org\\" target=\\"_blank\\">Lino Welfare</a> 1.1.4 using <a href=\\"http://site.lino-framework.org\\" target=\\"_blank\\">djangosite</a> 0.1.4, <a href=\\"http://www.python.org/\\" target=\\"_blank\\">Python</a> 2.7.3, <a href=\\"http://www.djangoproject.com\\" target=\\"_blank\\">Django</a> 1.5.1, <a href=\\"http://babel.edgewall.org/\\" target=\\"_blank\\">Babel</a> 1.0dev-r661, <a href=\\"http://www.lino-framework.org\\" target=\\"_blank\\">Lino</a> 1.6.7, <a href=\\"http://jinja.pocoo.org/\\" target=\\"_blank\\">Jinja</a> 2.6, <a href=\\"http://sphinx-doc.org/\\" target=\\"_blank\\">Sphinx</a> 1.2b1, <a href=\\"http://labix.org/python-dateutil\\" target=\\"_blank\\">python-dateutil</a> 2.1, <a href=\\"http://pypi.python.org/pypi/odfpy\\" target=\\"_blank\\">OdfPy</a> ODFPY/0.9.6, <a href=\\"http://docutils.sourceforge.net/\\" target=\\"_blank\\">docutils</a> 0.10, <a href=\\"https://fedorahosted.org/suds/\\" target=\\"_blank\\">suds</a> 0.4, <a href=\\"http://pyyaml.org/\\" target=\\"_blank\\">PyYaml</a> 3.10, <a href=\\"http://appyframework.org/pod.html\\" target=\\"_blank\\">Appy</a> 0.8.3 (2013/02/22 15:29)</span><p>Server uptime : <b>mercredi 15 mai 2013 at 11:45:06.556847</b></p><p>Source timestamps:</p><ul><li>djangosite : <b>mercredi 15 mai 2013 at 11:02:05.242649</b></li><li>lino : <b>mercredi 15 mai 2013 at 10:57:20.598657</b></li><li>lino_welfare : <b>mercredi 15 mai 2013 at 09:04:22.174857</b></li><li>atelier : <b>mardi 14 mai 2013 at 21:14:51.339674</b></li><li>django : <b>mercredi 8 mai 2013 at 10:18:59.384324</b></li><li>north : <b>dimanche 5 mai 2013 at 22:52:00.438131</b></li></ul></div>", "xtype": "label" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2444;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.about.About.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id185 = new Ext.form.TextField({ "fieldLabel": "id", "name": "id", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20", "allowBlank": false });\n'
20130515 '    var iso2186 = new Ext.form.TextField({ "fieldLabel": "iso2", "name": "iso2", "maxLength": 2, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "anchor": "-20" });\n'
20130515 '    var name187 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr188 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel190 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id185, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": iso2186, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name187, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr188, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cv_KnowledgesByLanguage_grid202 = new Lino.cv.KnowledgesByLanguage.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.KnowledgesByLanguage.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var main_panel203 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel190, cv_KnowledgesByLanguage_grid202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel203;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cv_KnowledgesByLanguage_grid202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Languages.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 77,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix2017 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name2018 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id2019 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language2020 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel2021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix2017, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2018, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2019, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id2026 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity2027 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type2028 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel2029 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id2026, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity2027, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2028, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account12033 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account22034 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete2035 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel2036 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account12033, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account22034, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete2035, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel2040 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel2021, intro_box_2_panel2029, intro_box_3_panel2036 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country2041 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region2042 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel2043 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country2041, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region2042, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city2046 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code2047 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel2048 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city2046, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code2047, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix2051 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street2052 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no2053 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box2054 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel2055 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix2051, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street2052, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no2053, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box2054, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr22060 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel2061 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel2043, box3_2_panel2048, box3_3_panel2055, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr22060, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email2063 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url2064 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone2065 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm2066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel2067 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email2063, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url2064, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone2065, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm2066, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel2072 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel2061, box4_panel2067 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks2073 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid2074 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel2075 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks2073, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid2074 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel2077 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel2040, address_box_panel2072, bottom_box_panel2075 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid2078 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var CourseOffersByProvider_grid2126 = new Lino.courses.CourseOffersByProvider.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Offres de cours", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseOffersByProvider.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2127 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel2077, pcsw_NotesByCompany_grid2078, CourseOffersByProvider_grid2126 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2127;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region2042.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid2074.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid2078.on_master_changed();\n'
20130515 '      CourseOffersByProvider_grid2126.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2041.on('change',Lino.chooser_handler(region2042,'country'));\n"
20130515 "      country2041.on('change',Lino.chooser_handler(city2046,'country'));\n"
20130515 "      region2042.on('change',Lino.chooser_handler(city2046,'region'));\n"
20130515 '      Lino.courses.CourseProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username38 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id39 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var profile40 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var box1_1_panel41 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username38, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id39, "labelAlign": "top" }, { "flex": 63, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile40, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name45 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name46 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var partner47 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel48 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name45, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name46, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner47, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email52 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var language53 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_3_panel54 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email52, "labelAlign": "top" }, { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language53, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created57 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified58 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box1_4_panel59 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created57, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified58, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box1_panel62 = new Ext.Panel({ "flex": 66, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box1_1_panel41, box1_2_panel48, box1_3_panel54, box1_4_panel59 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel66 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel62 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks67 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var AuthoritiesGiven_grid70 = new Lino.users.AuthoritiesGiven.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.users.AuthoritiesGiven.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var general_2_panel71 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks67, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, AuthoritiesGiven_grid70 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel73 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel66, general_2_panel71 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var calendar74 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Calendrier par d\\u00e9faut</span>", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "listeners": { "render": Lino.quicktip_renderer("Calendrier par d\\u00e9faut","Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.") }, "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/calendar", "method": "GET" }) }) });\n'
20130515 '    var access_class75 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s par d\\u00e9faut</span>", "allowBlank": false, "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s par d\\u00e9faut","The default access class for your calendar events and tasks.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses, "name": "access_class" });\n'
20130515 '    var cal_left_1_panel76 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar74, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class75, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_SubscriptionsByUser_grid83 = new Lino.cal.SubscriptionsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.SubscriptionsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var cal_left_panel84 = new Ext.Panel({ "flex": 33, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ cal_left_1_panel76, cal_SubscriptionsByUser_grid83 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByUser_grid142 = new Lino.cal.TasksByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var cal_1_panel143 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_left_panel84, cal_TasksByUser_grid142 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var newcomer_quota144 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Quota nouvelles demandes","Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Quota nouvelles demandes</span>", "name": "newcomer_quota", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var coaching_type145 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Service</span>", "name": "coaching_type", "pageSize": 20, "emptyText": "Choisir Service...", "listeners": { "render": Lino.quicktip_renderer("Service","The default CoachingType used when creating Coachings.") }, "selectOnFocus": true, "hiddenName": "coaching_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/coaching_type", "method": "GET" }) }) });\n'
20130515 '    var coaching_supervisor146 = new Ext.form.Checkbox({ "boxLabel": "Notify me when a coach has been assigned", "listeners": { "render": Lino.quicktip_renderer("Notify me when a coach has been assigned","Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.") }, "hideLabel": true, "checked": false, "name": "coaching_supervisor", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var newcomers_CompetencesByUser_grid152 = new Lino.newcomers.CompetencesByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.newcomers.CompetencesByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var coaching_a_panel153 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ { "items": newcomer_quota144, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_type145, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_supervisor146, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, newcomers_CompetencesByUser_grid152 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 369, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_CoachingsByUser_grid164 = new Lino.pcsw.CoachingsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var coaching_1_panel165 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Accompagnement", "hideCheckBoxLabels": true, "items": [ coaching_a_panel153, pcsw_CoachingsByUser_grid164 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel166 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel73, cal_1_panel143, coaching_1_panel165 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel166;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      AuthoritiesGiven_grid70.on_master_changed();\n'
20130515 '      cal_SubscriptionsByUser_grid83.on_master_changed();\n'
20130515 '      cal_TasksByUser_grid142.on_master_changed();\n'
20130515 '      newcomers_CompetencesByUser_grid152.on_master_changed();\n'
20130515 '      pcsw_CoachingsByUser_grid164.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2440 = new Lino.HtmlBoxPanel({ "flex": 1, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "north", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var welcome_htmlbox2441 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "center", "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var main_panel2442 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2440, welcome_htmlbox2441 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2442;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2440.refresh();\n'
20130515 '      welcome_htmlbox2441.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 10,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var time372 = new Ext.form.DisplayField({ "fieldLabel": "time", "name": "time", "selectOnFocus": true, "anchor": "-20", "value": "<br>", "allowBlank": false });\n'
20130515 '    var user373 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/Changes/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var type374 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Change Type", "allowBlank": false, "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.ChangeTypes, "name": "type" });\n'
20130515 '    var master_disp375 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Signal\\u00e9tique", "anchor": "-20", "name": "master" });\n'
20130515 '    var object_disp376 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Object", "anchor": "-20", "name": "object" });\n'
20130515 '    var id377 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel378 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": time372, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user373, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type374, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": master_disp375, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": object_disp376, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id377, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var diff385 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Changes", "anchor": "-20 -10", "growMax": 2000, "name": "diff" });\n'
20130515 '    var main_panel386 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ main_1_panel378, { "items": diff385, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel386;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.changes.ChangesByMaster.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 79,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2084 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var title2085 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "title", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var content2086 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var provider2087 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "name": "provider" });\n'
20130515 '    var main_1_panel2088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2084, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2085, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content2086, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider2087, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 198, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2093 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "center", "title": "Description", "name": "description" });\n'
20130515 '    var CoursesByOffer_grid2124 = new Lino.courses.CoursesByOffer.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "south", "tools": [ Lino.show_in_own_window_button(Lino.courses.CoursesByOffer.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2125 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel2088, description2093, CoursesByOffer_grid2124 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2125;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2093.refresh();\n'
20130515 '      CoursesByOffer_grid2124.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseOffers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name998 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name999 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var gender1000 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var title1001 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var name_box_panel1002 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name998, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name999, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1000, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1001, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1007 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }) });\n'
20130515 '    var region1008 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }) });\n'
20130515 '    var city1009 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1010 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel1011 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1007, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1008, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1009, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1010, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr11016 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix1017 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1018 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1019 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1020 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel1021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1017, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1018, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1019, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21026 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel1027 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ name_box_panel1002, address_box_2_panel1011, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr11016, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel1021, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21026, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1030 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1031 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel1032 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1030, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1031, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1035 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1036 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1037 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1038 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax1039 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel1040 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1038, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1039, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel1043 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel1032, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1035, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1036, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1037, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel1040 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1047 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel1027, contact_box_panel1043 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var activity1048 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account11049 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21050 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1051 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_1_panel1052 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1048, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11049, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21050, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1051, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_client1057 = new Ext.form.Checkbox({ "boxLabel": "est un client (<a href=\\"javascript:Lino.show_mti_child(\'is_client\',Lino.pcsw.Clients.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est un client","Whether this Person is a Client.") }, "hideLabel": true, "name": "is_client", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var created1058 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1059 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_2_panel1060 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_client1057, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1058, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1059, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1064 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByPerson_grid1069 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var households_MembersByPerson_grid1076 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 36 });\n'
20130515 '    var bottom_box_3_panel1077 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1064, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 36 }, contacts_RolesByPerson_grid1069, households_MembersByPerson_grid1076 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel1079 = new Ext.Panel({ "flex": 58, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ bottom_box_1_panel1052, bottom_box_2_panel1060, bottom_box_3_panel1077 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var general_panel1080 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1047, bottom_box_panel1079 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1084 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1080 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1084;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1008.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByPerson_grid1069.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1076.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1007.on('change',Lino.chooser_handler(region1008,'country'));\n"
20130515 "      country1007.on('change',Lino.chooser_handler(city1009,'country'));\n"
20130515 "      region1008.on('change',Lino.chooser_handler(city1009,'region'));\n"
20130515 '      Lino.contacts.Persons.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name743 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language744 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel746 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language744, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email745, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type749 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var id750 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_3_panel751 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type749, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id750, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel754 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name743, "anchor": "-20", "labelAlign": "top" }, main_2_panel746, main_3_panel751 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel754;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username167 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var email168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_1_panel169 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username167, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email168, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name172 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var main_2_panel174 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name172, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name173, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var partner177 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var language178 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var profile179 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var main_4_panel180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language178, "labelAlign": "top" }, { "flex": 69, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel183 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ main_1_panel169, main_2_panel174, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner177, "anchor": "-20", "labelAlign": "top" }, main_4_panel180 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel183;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2407 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2408 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2409 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2407, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2408, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type2412 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var valid_until2413 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2414 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2412, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2413, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var description2417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var main_panel2418 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ main_1_panel2409, main_2_panel2414, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2417, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2418;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1547 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1548 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1549 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1550 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1551 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_1_panel1552 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1547, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1548, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1549, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1550, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1551, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var job1558 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var type1559 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1560 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1561 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1562 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel1563 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1558, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1559, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1560, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1561, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1562, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1569 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var duration1570 = new Lino.SimpleRemoteComboFieldElement({ "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "fieldLabel": "dur\\u00e9e (jours)", "name": "duration", "selectOnFocus": true, "anchor": "-20", "value": null });\n'
20130515 '    var applies_until1571 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1572 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var box1_3_panel1573 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1569, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": duration1570, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1571, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1572, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var regime1578 = new Lino.TwinCombo({ "fieldLabel": "R\\u00e9gime de travail", "name": "regime", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Regimes.detail)}, "emptyText": "Choisir R\\u00e9gime de travail...", "selectOnFocus": true, "hiddenName": "regimeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }) });\n'
20130515 '    var schedule1579 = new Lino.TwinCombo({ "fieldLabel": "Horaire", "name": "schedule", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Schedules.detail)}, "emptyText": "Choisir Horaire...", "selectOnFocus": true, "hiddenName": "scheduleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }) });\n'
20130515 '    var hourly_rate1580 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var refund_rate1581 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "tarif de remboursement", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }), "name": "refund_rate" });\n'
20130515 '    var box1_4_panel1582 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 207, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": regime1578, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": schedule1579, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1580, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refund_rate1581, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var reference_person1587 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "persone de r\\u00e9f\\u00e9rence", "anchor": "-20", "name": "reference_person" });\n'
20130515 '    var build_time1588 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var box1_5_panel1589 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": reference_person1587, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time1588, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1592 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1593 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1594 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1595 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var box1_6_panel1596 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1592, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1593, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1594, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1595, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var responsibilities1601 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "responsibilities", "title": "responsabilit\\u00e9s" });\n'
20130515 '    var box1_panel1602 = new Ext.Panel({ "flex": 70, "layout": "vbox", "items": [ box1_1_panel1552, box1_2_panel1563, box1_3_panel1573, box1_4_panel1582, box1_5_panel1589, box1_6_panel1596, responsibilities1601 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 0, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cal_EventsByController_grid1603 = new Lino.cal.EventsByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ] });\n'
20130515 '    var cal_TasksByController_grid1604 = new Lino.cal.TasksByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "master_panel": this });\n'
20130515 '    var right_panel1605 = new Lino.VBorderPanel({ "flex": 30, "border": false, "hideCheckBoxLabels": true, "items": [ cal_EventsByController_grid1603, cal_TasksByController_grid1604 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel1606 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1602, right_panel1605 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel1607 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel1606 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1607;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1561.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1601.refresh();\n'
20130515 '      cal_EventsByController_grid1603.on_master_changed();\n'
20130515 '      cal_TasksByController_grid1604.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1560.on('change',Lino.chooser_handler(contact_person1561,'company'));\n"
20130515 '      Lino.jobs.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1558.on("change",function(){this.save()},this);\n'
20130515 '    company1560.on("change",function(){this.save()},this);\n'
20130515 '    contact_person1561.on("change",function(){this.save()},this);\n'
20130515 '    contact_role1562.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name920 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl922 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel923 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name920, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr921, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl922, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type927 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var invite_team_members928 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color929 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var main_2_panel930 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type927, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members928, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color929, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 72, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel934 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel923, main_2_panel930 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel934;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2233 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2234 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2235 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2236 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2237 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2238 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2239 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2240 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2233, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2234, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2235, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2236, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2237, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2238, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2239, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var action2248 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2249 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2250 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2251 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2248, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2249, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2250, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2255 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2256 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2257 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2255, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2256, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2260 = new Ext.form.FieldSet({ "flex": 37, "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2251, p1_2_panel2257 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2261 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2262 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2263 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2264 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2261, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2262, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2263, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2268 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2269 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2270 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2271 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2268, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2269, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2270, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2275 = new Ext.form.FieldSet({ "flex": 62, "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2264, proof_2_panel2271 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2276 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2260, proof_panel2275 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var result_htmlbox2277 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "result", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "R\\u015bultat", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var request_panel2278 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2240, parameters_panel2276, result_htmlbox2277 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2286 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2278 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2286;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2255.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      result_htmlbox2277.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2234.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2158 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2159 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2160 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2161 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2162 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2163 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2164 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2165 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2159, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2160, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2161, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2162, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2163, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2164, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var p1_panel2175 = new Ext.form.FieldSet({ "flex": 25, "layout": "vbox", "title": "avec NISS", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ { "items": national_id2173, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "flex": 50, "html": "<br/>", "xtype": "label" } ], "hideCheckBoxLabels": true, "labelWidth": 45, "border": false, "labelAlign": "top" });\n'
20130515 '    var first_name2177 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2178 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2179 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2177, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2178, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2184 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2185 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2186 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2187 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2184, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2185, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2186, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2191 = new Ext.form.FieldSet({ "flex": 75, "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2180, p2_2_panel2187 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2192 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2175, p2_panel2191 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var IdentifyPersonResult_grid2202 = new Lino.cbss.IdentifyPersonResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.IdentifyPersonResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var request_panel2203 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2165, parameters_panel2192, IdentifyPersonResult_grid2202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2204 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2205 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2206 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2207 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2204, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2205, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2206, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2211 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2203, technical_panel2207 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2211;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      IdentifyPersonResult_grid2202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2159.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2386 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2387 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2388 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2386, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2387, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type2391 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var description2392 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var valid_until2393 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2394 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2391, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2392, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2393, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var modified2398 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var created2399 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var owner_disp2400 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_3_panel2401 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified2398, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created2399, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp2400, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid2405 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2406 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2388, main_2_panel2394, main_3_panel2401, cal_TasksByController_grid2405 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2406;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cal_TasksByController_grid2405.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var app_disp2425 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "app_label", "name": "app", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp2426 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "name", "name": "name", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp2427 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "docstring", "name": "docstring", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows2428 = new Ext.form.NumberField({ "disabled": true, "fieldLabel": "Rows", "anchor": "-20", "name": "rows" });\n'
20130515 '    var main_1_panel2429 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": app_disp2425, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_disp2426, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": docstring_disp2427, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": rows2428, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var about_FieldsByModel_grid2438 = new Lino.about.FieldsByModel.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.about.FieldsByModel.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2439 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2429, about_FieldsByModel_grid2438 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2439;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      about_FieldsByModel_grid2438.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.about.Models.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 66,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Name", "anchor": "-20", "name": "name" });\n'
20130515 '    var provider1976 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }) });\n'
20130515 '    var sector1977 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }) });\n'
20130515 '    var function1978 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel1979 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1975, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1976, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1977, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1978, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var selection_from1984 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de s\\u00e9lection", "anchor": "-20", "name": "selection_from" });\n'
20130515 '    var selection_until1985 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin de s\\u00e9lection", "anchor": "-20", "name": "selection_until" });\n'
20130515 '    var start_date1986 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_2_panel1987 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_from1984, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_until1985, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date1986, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1991 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var ExperiencesByOffer_grid2003 = new Lino.jobs.ExperiencesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var CandidaturesByOffer_grid2013 = new Lino.jobs.CandidaturesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel2014 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ ExperiencesByOffer_grid2003, CandidaturesByOffer_grid2013 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2015 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel1979, main_2_panel1987, { "items": remark1991, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 41 }, main_4_panel2014 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2015;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1978.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      ExperiencesByOffer_grid2003.on_master_changed();\n'
20130515 '      CandidaturesByOffer_grid2013.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1977.on('change',Lino.chooser_handler(function1978,'sector'));\n"
20130515 '      Lino.jobs.Offers.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Offers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 75,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date_submitted1338 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date d\\u00e9ntr\\u00e9e","When this request has been submitted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date d\\u00e9ntr\\u00e9e</span>", "name": "date_submitted", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var person1339 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Client</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "listeners": { "render": Lino.quicktip_renderer("Client","Le client qui d\\u00e9sire suivre un cours.") }, "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var content1340 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Contenu</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "listeners": { "render": Lino.quicktip_renderer("Contenu","Der gew\\u00fcnschte Kursinhalt.)") }, "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var offer1341 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "name": "offer", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/offer", "method": "GET" }) }) });\n'
20130515 '    var urgent1342 = new Ext.form.Checkbox({ "boxLabel": "cause professionnelle", "listeners": { "render": Lino.quicktip_renderer("cause professionnelle","Check this if the request is needed for job search.") }, "hideLabel": true, "checked": false, "name": "urgent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1343 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_submitted1338, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person1339, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content1340, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer1341, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": urgent1342, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var course1349 = new Lino.TwinCombo({ "fieldLabel": "Cours trouv\\u00e9", "name": "course", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.Courses.detail)}, "emptyText": "Choisir Cours...", "selectOnFocus": true, "hiddenName": "courseHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/course", "method": "GET" }) }) });\n'
20130515 '    var state1350 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "name": "state" });\n'
20130515 '    var date_ended1351 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var id1352 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel1353 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course1349, "labelAlign": "top" }, { "flex": 26, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state1350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1352, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1358 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var UploadsByController_htmlbox1359 = new Lino.HtmlBoxPanel({ "flex": 33, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel1360 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1358, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, UploadsByController_htmlbox1359 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1362 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1343, main_2_panel1353, main_3_panel1360 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1341.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '      UploadsByController_htmlbox1359.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1340.on('change',Lino.chooser_handler(offer1341,'content'));\n"
20130515 '      Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    offer1341.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2365 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var name2366 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2367 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2368 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2369 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2365, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2366, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2367, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2368, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 108, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2374 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "description" });\n'
20130515 '    var text2375 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "south", "title": "Texte mod\\u00e8le", "name": "text" });\n'
20130515 '    var main_panel2376 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ main_1_panel2369, { "flex": 5, "layout": "form", "xtype": "panel", "items": description2374, "region": "center", "labelAlign": "top", "split": true }, text2375 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2376;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text2375.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2287 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var action2288 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2289 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2290 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2291 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2288, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2289, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2290, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2295 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2296 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2297 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2295, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2296, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2300 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2291, p1_2_panel2297 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id2301 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2302 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2303 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2304 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2301, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2302, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2303, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2309 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2310 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2311 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2308, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2309, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2310, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2315 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2304, proof_2_panel2311 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2316 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2287, "anchor": "-20", "labelAlign": "top" }, p1_panel2300, proof_panel2315 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2316;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2295.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2287.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type850 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var name851 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr852 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl853 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var id854 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel855 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type850, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name851, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr852, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl853, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id854, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var url_template861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL template", "anchor": "-20", "name": "url_template" });\n'
20130515 '    var username862 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Username", "anchor": "-20", "name": "username" });\n'
20130515 '    var password863 = new Ext.form.TextField({ "fieldLabel": "Password", "name": "password", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "inputType": "password" });\n'
20130515 '    var main_2_panel864 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": url_template861, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username862, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": password863, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var readonly868 = new Ext.form.Checkbox({ "boxLabel": "read-only", "hideLabel": true, "checked": false, "name": "readonly", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var invite_team_members869 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color870 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var start_date871 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_3_panel872 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": readonly868, "labelAlign": "top" }, { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members869, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color870, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date871, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var build_method877 = new Lino.ChoicesFieldElement({ "fieldLabel": "M\\u00e9thode de construction", "name": "build_method", "selectOnFocus": true, "anchor": "-20", "store": [ [ "appyodt", "AppyOdtBuildMethod" ], [ "appypdf", "AppyPdfBuildMethod" ], [ "appyrtf", "AppyRtfBuildMethod" ], [ "latex", "LatexBuildMethod" ], [ "pisa", "PisaBuildMethod" ], [ "rtf", "RtfBuildMethod" ] ], "hiddenName": "build_methodHidden" });\n'
20130515 '    var template878 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "Mod\\u00e8le", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/template", "method": "GET" }) }), "name": "template" });\n'
20130515 '    var email_template879 = new Lino.SimpleRemoteComboFieldElement({ "listeners": { "render": Lino.quicktip_renderer("Email template","The name of the file to be used as template \\nwhen creating an email from a mailable of this type.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Email template</span>", "name": "email_template", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/email_template", "method": "GET" }) }) });\n'
20130515 '    var attach_to_email880 = new Ext.form.Checkbox({ "boxLabel": "Attach to email", "listeners": { "render": Lino.quicktip_renderer("Attach to email","Whether the printable file should be attached to the email\\nwhen creating an email from a mailable of this type.\\n") }, "hideLabel": true, "checked": false, "name": "attach_to_email", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_4_panel881 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_method877, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": template878, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email_template879, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": attach_to_email880, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var main_panel919 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel855, main_2_panel864, main_3_panel872, main_4_panel881 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel919;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      template878.setContextValue('build_method',record ? record.data['build_methodHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      build_method877.on('change',Lino.chooser_handler(template878,'build_method'));\n"
20130515 '      Lino.cal.PanelCalendars.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 41,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type935 = new Lino.TwinCombo({ "fieldLabel": "Type de m\\u00e9nage", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.households.Types.detail)}, "emptyText": "Choisir Type de m\\u00e9nage...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }) });\n'
20130515 '    var name936 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language937 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var id938 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var intro_box_1_panel939 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type935, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name936, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language937, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id938, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var country944 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }) });\n'
20130515 '    var region945 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel946 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country944, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region945, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city949 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code950 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel951 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city949, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code950, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix954 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street955 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no956 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box957 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel958 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix954, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street955, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no956, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box957, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2963 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var activity964 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1965 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2966 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var box3_5_panel967 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity964, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1965, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2966, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel971 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel946, box3_2_panel951, box3_3_panel958, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2963, "anchor": "-20", "labelAlign": "top" }, box3_5_panel967 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email973 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url974 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm976 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel977 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email973, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url974, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone975, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm976, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel982 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel971, box4_panel977 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks983 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var households_MembersByHousehold_grid990 = new Lino.households.MembersByHousehold.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByHousehold.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var bottom_box_panel991 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks983, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 49 }, households_MembersByHousehold_grid990 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel993 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_1_panel939, address_box_panel982, bottom_box_panel991 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel997 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel993 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel997;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region945.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      households_MembersByHousehold_grid990.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country944.on('change',Lino.chooser_handler(region945,'country'));\n"
20130515 "      country944.on('change',Lino.chooser_handler(city949,'country'));\n"
20130515 "      region945.on('change',Lino.chooser_handler(city949,'region'));\n"
20130515 '      Lino.households.Households.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.households.Households.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var calendar756 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var summary757 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var project758 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var general_1_panel759 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar756, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary757, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project758, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var start_date763 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time764 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel765 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date763, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time764, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date768 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time769 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel770 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date768, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time769, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var user773 = new Lino.TwinCombo({ "fieldLabel": "Responsible user", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to774 = new Lino.TwinCombo({ "fieldLabel": "Attribu\\u00e9 \\u00e0", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel775 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ start_panel765, end_panel770, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user773, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to774, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var place778 = new Lino.TwinCombo({ "fieldLabel": "Place", "name": "place", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Places.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "placeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/place", "method": "GET" }) }) });\n'
20130515 '    var priority779 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Priorit\\u00e9", "name": "priority", "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9...", "selectOnFocus": true, "hiddenName": "priorityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/priority", "method": "GET" }) }) });\n'
20130515 '    var access_class780 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s</span>", "name": "access_class", "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s","Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses });\n'
20130515 '    var transparent781 = new Ext.form.Checkbox({ "boxLabel": "non bloquant", "listeners": { "render": Lino.quicktip_renderer("non bloquant","Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.") }, "hideLabel": true, "checked": false, "name": "transparent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var general_3_panel782 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": place778, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": priority779, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class780, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": transparent781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var owner_disp787 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var workflow_buttons_disp788 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var general_4_panel789 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp787, "labelAlign": "top" }, { "flex": 75, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp788, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description792 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 33, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var GuestsByEvent_grid802 = new Lino.cal.GuestsByEvent.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.GuestsByEvent.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var general_5_panel803 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ description792, GuestsByEvent_grid802 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel804 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel759, general_2_panel775, general_3_panel782, general_4_panel789, general_5_panel803 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var id805 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var created806 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified807 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var more_1_panel808 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id805, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created806, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified807, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByController_grid812 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var postings_PostingsByController_grid813 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var more_2_panel814 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ outbox_MailsByController_grid812, postings_PostingsByController_grid813 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var more_panel815 = new Ext.Panel({ "layout": "vbox", "title": "Plus", "items": [ more_1_panel808, more_2_panel814 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel816 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel804, more_panel815 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel816;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description792.refresh();\n'
20130515 '      GuestsByEvent_grid802.on_master_changed();\n'
20130515 '      outbox_MailsByController_grid812.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid813.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(70), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.cal.GuestStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.MySettings\n'
20130515 'Lino.users.MySettings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/MySettings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  title : "Utilisateurs",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "username" }, { "name": "profile" }, \'profileHidden\', { "name": "first_name" }, { "name": "last_name" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "password" }, { "name": "email" }, { "name": "remarks" }, { "name": "language" }, \'languageHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "access_class" }, \'access_classHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "coaching_type" }, \'coaching_typeHidden\', { "type": "boolean", "name": "coaching_supervisor" }, { "type": "int", "name": "newcomer_quota" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 7,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 24,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var username2468 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 30 });\n'
20130515 '    var profile2469 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.UserProfiles });\n'
20130515 '    var first_name2470 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var last_name2471 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var id2472 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2473 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2474 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var password2475 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 128 });\n'
20130515 '    var email2476 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var remarks2477 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var language2478 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ] });\n'
20130515 '    var partner2479 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var access_class2480 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.AccessClasses });\n'
20130515 '    var calendar2481 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var coaching_type2482 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/coaching_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var coaching_supervisor2483 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var newcomer_quota2484 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Username", "editable": true, "tooltip": "\\n        Required. Must be unique. \\n        ", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "username", "editor": username2468 }, { "colIndex": 1, "sortable": true, "header": "User Profile", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(47), "dataIndex": "profile", "editor": profile2469 }, { "colIndex": 2, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2470 }, { "colIndex": 3, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2471 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2472, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Password", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "password", "hidden": true, "editor": password2475 }, { "colIndex": 8, "sortable": true, "header": "adresse e-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2476 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remarks2477, "dataIndex": "remarks" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2478 }, { "colIndex": 11, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2479, "dataIndex": "partner" }, { "colIndex": 12, "sortable": true, "header": "Classe d\'acc\\u00e8s par d\\u00e9faut", "editable": true, "tooltip": "The default access class for your calendar events and tasks.", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class2480 }, { "colIndex": 13, "sortable": true, "header": "Calendrier par d\\u00e9faut", "editable": true, "tooltip": "Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2481 }, { "colIndex": 14, "sortable": true, "header": "Service", "editable": true, "tooltip": "The default CoachingType used when creating Coachings.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "coaching_type", "editor": coaching_type2482 }, { "colIndex": 15, "sortable": false, "xtype": "checkcolumn", "header": "Notify me when a coach has been assigned", "editable": true, "tooltip": "Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "coaching_supervisor" }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n", "filter": { "type": "numeric" }, "header": "Quota nouvelles demandes", "dataIndex": "newcomer_quota", "width": Lino.chars2width(6), "editor": newcomer_quota2484 }) ];\n'
20130515 '    Lino.users.MySettings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Languages\n'
20130515 'Lino.countries.Languages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Languages",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Langues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "id" }, { "name": "iso2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 12,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2486 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2487 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2488 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2489 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "allowBlank": false, "maxLength": 3 });\n'
20130515 '    var iso22490 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "maxLength": 2 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2486 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2487 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2488 }, { "colIndex": 3, "sortable": true, "header": "id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "id", "editor": id2489 }, { "colIndex": 4, "sortable": true, "header": "iso2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso2", "editor": iso22490 } ];\n'
20130515 '    Lino.countries.Languages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insertPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Langues",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Languages.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detailPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Langues",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Languages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Countries\n'
20130515 'Lino.countries.Countries.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Countries",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pays",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "isocode" }, { "name": "short_code" }, { "name": "iso3" }, { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 11,\n'
20130515 '  ls_id_property : "isocode",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2492 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2493 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2494 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var isocode2495 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "allowBlank": false, "maxLength": 4 });\n'
20130515 '    var short_code2496 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var iso32497 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    var inscode2498 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2492 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2493 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2494 }, { "colIndex": 3, "sortable": true, "header": "ISO code", "editable": true, "tooltip": "        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "isocode", "editor": isocode2495 }, { "colIndex": 4, "sortable": true, "header": "Short code", "editable": true, "tooltip": "A short abbreviation for regional usage. Obsolete.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "short_code", "editor": short_code2496 }, { "colIndex": 5, "sortable": true, "header": "ISO-3 code", "editable": true, "tooltip": "The three-letter code for this country as defined by ISO 3166-1.", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso3", "editor": iso32497 }, { "colIndex": 6, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this country used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "inscode", "editor": inscode2498 } ];\n'
20130515 '    Lino.countries.Countries.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insertPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Pays",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Countries.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detailPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Pays",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Countries.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.PropChoices\n'
20130515 'Lino.properties.PropChoices.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/PropChoices",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "type" }, \'typeHidden\', { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2500 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var type2501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/properties/PropChoices/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type de propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value2502 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text2503 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr2504 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl2505 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2500, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Type de propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2501 }, { "colIndex": 2, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value2502 }, { "colIndex": 3, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text2503 }, { "colIndex": 4, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr2504 }, { "colIndex": 5, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl2505 } ];\n'
20130515 '    Lino.properties.PropChoices.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.PropChoices.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.PropChoices.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Partners\n'
20130515 'Lino.contacts.Partners.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Partners",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 29,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2507 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2508 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2509 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2510 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2511 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2512 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2514 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12515 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2517 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2518 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2519 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22520 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2521 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2522 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2523 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2524 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2525 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2526 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2527 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2528 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12529 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var id2531 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2512.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2512.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2513.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2511.on('change',Lino.chooser_handler(city2512,'country'));\n"
20130515 "      region2513.on('change',Lino.chooser_handler(city2512,'region'));\n"
20130515 "      country2511.on('change',Lino.chooser_handler(region2513,'country'));\n"
20130515 '      Lino.contacts.Partners.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2507 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2508 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2511, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2512 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2513 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2514 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12515 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2516 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2517 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2518 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2519 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22520 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2521 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2522 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2523 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2524 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2525 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2526, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2528 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12529 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22530 }, new Lino.NullNumberColumn({ "colIndex": 24, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2531, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Partners.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Partners.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Partners.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Companies\n'
20130515 'Lino.contacts.Companies.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Companies",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 20,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2533 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2534 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2535 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2536 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2538 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2539 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2540 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12541 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2542 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2544 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2545 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22546 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2547 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2548 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2550 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2551 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2552 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2553 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12555 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22556 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2557 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2560 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2561 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2538.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2538.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2539.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2537.on('change',Lino.chooser_handler(city2538,'country'));\n"
20130515 "      region2539.on('change',Lino.chooser_handler(city2538,'region'));\n"
20130515 "      country2537.on('change',Lino.chooser_handler(region2539,'country'));\n"
20130515 '      Lino.contacts.Companies.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2533 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2534 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2537, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2538 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2539 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2540 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12541 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2542 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2543 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2544 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2545 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22546 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2547 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2548 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2549 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2550 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2551 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2552, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2554 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12555 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22556 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2557 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2558 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2559 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2560 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2561, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Companies.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisations",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detailPanel = Ext.extend(Lino.contacts.Companies.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisations",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Companies.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByState\n'
20130515 'Lino.postings.PostingsByState.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByState",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2563 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2564 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2565 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2566 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2567 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2568 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2569 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2571 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2572 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2569.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2568.on('change',Lino.chooser_handler(owner_id2569,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByState.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2563, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2564 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2565, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2567, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2568 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2569 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2570, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2571 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByState.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByState.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByState.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByState.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByState",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsReady\n'
20130515 'Lino.postings.PostingsReady.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsReady",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux \\u00e0 imprimer",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2574 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2575 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2576 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2577 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2578 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2582 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2583 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2580.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2579.on('change',Lino.chooser_handler(owner_id2580,'owner_type'));\n"
20130515 '      Lino.postings.PostingsReady.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2574, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2575 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2576, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2578, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2579 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2580 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2581, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2582 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsReady.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsReady.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsReady.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsReady.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsReady",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsPrinted\n'
20130515 'Lino.postings.PostingsPrinted.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsPrinted",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux imprim\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2585 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2588 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2589 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2590 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2592 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2593 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2594 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2591.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2590.on('change',Lino.chooser_handler(owner_id2591,'owner_type'));\n"
20130515 '      Lino.postings.PostingsPrinted.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2585, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2586 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2587, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2589, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2590 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2591 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2592, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2593 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsPrinted.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsPrinted.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsPrinted.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsPrinted.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsPrinted",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsSent\n'
20130515 'Lino.postings.PostingsSent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsSent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux envoy\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2596 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2597 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2599 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2600 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2603 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2604 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2605 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2602.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2601.on('change',Lino.chooser_handler(owner_id2602,'owner_type'));\n"
20130515 '      Lino.postings.PostingsSent.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2596, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2597 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2598, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2600, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2601 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2602 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2603, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2604 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsSent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsSent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsSent.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsSent.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsSent",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEvents\n'
20130515 'Lino.cal.MyEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "calendar" }, \'calendarHidden\', { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2607 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2608 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var calendar2609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var project2610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2611 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2612 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2613 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2616 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2617 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2618 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2619 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2620 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2621 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class2623 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2624 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2625 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2626 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2629 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2631 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2614.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2621.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2613.on('change',Lino.chooser_handler(owner_id2614,'owner_type'));\n"
20130515 '      Lino.cal.MyEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2607, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2608 }, { "colIndex": 2, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2609 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2610, "dataIndex": "project" }, { "colIndex": 4, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2611 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2612, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2613 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2614 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2615 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2619 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2620 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2621, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2622 }, { "colIndex": 16, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2623 }, new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2624 }), new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 19, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 20, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2627 }, { "colIndex": 21, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2628 }, { "colIndex": 22, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2629 }, { "colIndex": 23, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2630 }, { "width": Lino.chars2width(11), "colIndex": 24, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyUnclearEvents\n'
20130515 'Lino.cal.MyUnclearEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyUnclearEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2633 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2634 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2635 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2636 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2637 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2638 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2641 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2642 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2643 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2644 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2645 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2646 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2647 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2648 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2650 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2651 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2652 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2653 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2656 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2658 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2640.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2647.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2639.on('change',Lino.chooser_handler(owner_id2640,'owner_type'));\n"
20130515 '      Lino.cal.MyUnclearEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2633, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2634 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2635, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2636 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2638, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2639 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2640 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2641 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2645 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2646 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2647, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2648 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2649 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2650 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2651 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2654 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2655 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2656 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2657 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyUnclearEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyUnclearEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsAssignedToMe\n'
20130515 'Lino.cal.EventsAssignedToMe.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsAssignedToMe",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2661 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2663 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2669 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2670 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2671 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2674 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2675 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2676 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2677 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2678 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2679 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2680 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2681 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2683 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2684 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2685 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2674.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2666.on('change',Lino.chooser_handler(owner_id2667,'owner_type'));\n"
20130515 '      Lino.cal.EventsAssignedToMe.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2660, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2661 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2662, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2663 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2666 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2667 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2668 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2672 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2673 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2674, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2675 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2676 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2677 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2678 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2681 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2682 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2683 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2684 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsAssignedToMe.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEventsToday\n'
20130515 'Lino.cal.MyEventsToday.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEventsToday",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous aujourd\'hui",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "build_time" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_time2687 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary2688 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2689 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2690 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2692 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2694 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project2696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var build_time2697 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_date2698 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date2699 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2700 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2701 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2703 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2704 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2705 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2706 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2707 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2708 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2712 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2692.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2701.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2691.on('change',Lino.chooser_handler(owner_id2692,'owner_type'));\n"
20130515 '      Lino.cal.MyEventsToday.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(9), "colIndex": 0, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2687 }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2688 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2690, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2691 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2692 }, { "colIndex": 6, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2693 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2696, "dataIndex": "project" }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2698, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2699 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2700 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2701, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2702 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2703 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2704 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2705 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2708 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2709 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2710 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2711 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEventsToday.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous aujourd\'hui",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous aujourd\'hui",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEventsToday.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelCalendars\n'
20130515 'Lino.cal.PanelCalendars.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelCalendars",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Calendriers",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "babel_name" }, { "name": "description" }, { "type": "int", "name": "color" }, { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 35,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2714 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var babel_name_disp2715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var description2716 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var color2717 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var is_hidden_disp2718 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2716.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2714, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "babel_name", "header": "babel_name", "editable": false }, { "colIndex": 2, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2716, "dataIndex": "description" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Couleur", "dataIndex": "color", "width": Lino.chars2width(6), "editor": color2717 }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "is_hidden", "header": "Invisible", "editable": false } ];\n'
20130515 '    Lino.cal.PanelCalendars.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insertPanel = Ext.extend(Lino.cal.PanelCalendars.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Calendriers",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detailPanel = Ext.extend(Lino.cal.PanelCalendars.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Calendriers",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelCalendars.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelEvents\n'
20130515 'Lino.cal.PanelEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "start_dt" }, { "name": "end_dt" }, { "name": "summary" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "place" }, \'placeHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "url" }, { "type": "boolean", "name": "all_day" }, { "name": "reminder" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2720 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var start_dt2721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_dt2722 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var summary2723 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var description2724 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var user2725 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var place2726 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var calendar2727 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var url_disp2728 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var all_day2729 = new Ext.form.Checkbox({ "disabled": true });\n'
20130515 '    var reminder_disp2730 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2724.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2720, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": false, "dataIndex": "start_dt", "header": "D\\u00e9but", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": false, "dataIndex": "end_dt", "header": "Fin", "editable": false }, { "width": Lino.chars2width(5), "colIndex": 3, "sortable": false, "dataIndex": "summary", "header": "R\\u00e9sum\\u00e9", "editable": false }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2724, "dataIndex": "description" }, { "colIndex": 5, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2725 }, { "colIndex": 6, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2726 }, { "colIndex": 7, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2727 }, { "width": Lino.chars2width(31), "colIndex": 8, "sortable": false, "dataIndex": "url", "header": "Link URL", "editable": false }, { "header": "journ\\u00e9e enti\\u00e8re", "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "width": Lino.chars2width(11), "editable": false, "dataIndex": "all_day" }, { "width": Lino.chars2width(31), "colIndex": 10, "sortable": false, "dataIndex": "reminder", "header": "Rappel", "editable": false } ];\n'
20130515 '    Lino.cal.PanelEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.PanelEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.Households\n'
20130515 'Lino.households.Households.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/Households",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 32,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2732 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2734 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2735 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2736 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2737 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2738 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2739 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12740 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2741 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2743 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2744 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2746 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2747 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2749 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2750 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2751 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2752 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12754 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2756 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2757 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de m\\u00e9nage..." });\n'
20130515 '    var id2758 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2737.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2737.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2738.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2736.on('change',Lino.chooser_handler(city2737,'country'));\n"
20130515 "      region2738.on('change',Lino.chooser_handler(city2737,'region'));\n"
20130515 "      country2736.on('change',Lino.chooser_handler(region2738,'country'));\n"
20130515 '      Lino.households.Households.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2732 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2733 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2736, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2737 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2738 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2739 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12740 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2741 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2742 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2743 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2744 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22745 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2746 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2747 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2748 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2749 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2750 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2751, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2753 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12754 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22755 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2756 }, { "colIndex": 25, "sortable": true, "header": "Type de m\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2757 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2758, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.Households.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.Households.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.Households.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Persons\n'
20130515 'Lino.contacts.Persons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Persons",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "address_column" }, { "name": "email" }, { "name": "phone" }, { "name": "gsm" }, { "type": "int", "name": "id" }, { "name": "language" }, \'languageHidden\', { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "url" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 39,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2760 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_column_disp2761 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2762 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2763 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2764 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2765 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var language2766 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var created2767 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2768 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2769 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2770 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2771 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2772 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2773 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12774 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2776 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2777 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2778 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22779 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var url2780 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2781 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2782 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2783 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12785 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22786 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2787 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2788 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2789 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2790 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2791 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2770.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2770.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2771.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2769.on('change',Lino.chooser_handler(city2770,'country'));\n"
20130515 "      region2771.on('change',Lino.chooser_handler(city2770,'region'));\n"
20130515 "      country2769.on('change',Lino.chooser_handler(region2771,'country'));\n"
20130515 '      Lino.contacts.Persons.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "colIndex": 2, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2762 }, { "colIndex": 3, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2763 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2764 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2765, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2766 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2769, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2770 }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2771 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2772 }, { "colIndex": 13, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2773 }, { "colIndex": 14, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12774 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2775 }, { "colIndex": 16, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2776 }, { "colIndex": 17, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2777 }, { "colIndex": 18, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2778 }, { "colIndex": 19, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22779 }, { "colIndex": 20, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2780 }, { "colIndex": 21, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2781 }, { "colIndex": 22, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2782, "dataIndex": "remarks" }, { "colIndex": 23, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 24, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2784 }, { "colIndex": 25, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12785 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22786 }, { "colIndex": 27, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2787 }, { "colIndex": 28, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2788 }, { "colIndex": 29, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2789 }, { "colIndex": 30, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2790 }, { "colIndex": 31, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2791 } ];\n'
20130515 '    Lino.contacts.Persons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insertPanel = Ext.extend(Lino.contacts.Persons.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Personnes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Persons.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detailPanel = Ext.extend(Lino.contacts.Persons.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Personnes",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Persons.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Persons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.contacts.Persons.ParamsPanel({});\n'
20130515 '  return new Lino.contacts.Persons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.Clients\n'
20130515 'Lino.pcsw.Clients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/Clients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "client_state" }, \'client_stateHidden\', { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2793 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var client_state2794 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var national_id2795 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2797 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2798 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2800 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2801 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12802 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2804 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state2794 }, { "colIndex": 2, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2795 }, { "colIndex": 3, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2796 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 5, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 6, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2799 }, { "colIndex": 7, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2800 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2801, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 9, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12802 }, { "colIndex": 10, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2803 }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2804 } ];\n'
20130515 '    Lino.pcsw.Clients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.Clients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.Clients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.Clients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.IntegClients\n'
20130515 'Lino.pcsw.IntegClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/IntegClients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2806 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var applies_from2807 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var applies_until2808 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var national_id2809 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2810 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2811 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2812 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2814 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2815 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2817 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2818 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat d\\u00e9bute", "dataIndex": "applies_from", "width": Lino.chars2width(9) }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat se termine", "dataIndex": "applies_until", "width": Lino.chars2width(9) }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2809 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2810 }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 6, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 7, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2813 }, { "colIndex": 8, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2814 }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2815, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12816 }, { "colIndex": 11, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2817 }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2818 } ];\n'
20130515 '    Lino.pcsw.IntegClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.IntegClients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/IntegClients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.IntegClients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.IntegClients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.IntegClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.IntegClients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.IntegClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.OverlappingContracts\n'
20130515 'Lino.pcsw.OverlappingContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/OverlappingContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contrats chevauchants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2820 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2821 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2822 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2823 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2825 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2826 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2827 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12828 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2829 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2830 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2831 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2832 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22833 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2834 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email2835 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url2836 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2839 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2840 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2841 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2842 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12843 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22844 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2845 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2846 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2847 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2848 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2849 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2824.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2824.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2825.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2823.on('change',Lino.chooser_handler(city2824,'country'));\n"
20130515 "      region2825.on('change',Lino.chooser_handler(city2824,'region'));\n"
20130515 "      country2823.on('change',Lino.chooser_handler(region2825,'country'));\n"
20130515 '      Lino.pcsw.OverlappingContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2820, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 3, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2823, "dataIndex": "country" }, { "colIndex": 4, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2824 }, { "colIndex": 5, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2825 }, { "colIndex": 6, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2826 }, { "colIndex": 7, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2827 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12828 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2829 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2830 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2831 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2832 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22833 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2834 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2835 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2836 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2837 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2838 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2839 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2840, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2842 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12843 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22844 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2845 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2846 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2847 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2848 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2849 } ];\n'
20130515 '    Lino.pcsw.OverlappingContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.OverlappingContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.OverlappingContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.Contracts\n'
20130515 'Lino.isip.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2851 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2852 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2853 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2854 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2855 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2856 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2857 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2858 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2859 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2860 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12861 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22862 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2863 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2864 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2865 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2866 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2867 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2868 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2869 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2870 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2871 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2872 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2873 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2874 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2875 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2859.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2870.refresh();\n'
20130515 '      goals2871.refresh();\n'
20130515 '      duties_asd2872.refresh();\n'
20130515 '      duties_dsbe2873.refresh();\n'
20130515 '      duties_company2874.refresh();\n'
20130515 '      duties_person2875.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2858.on('change',Lino.chooser_handler(contact_person2859,'company'));\n"
20130515 '      Lino.isip.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2851, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2852, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2853, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2854, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2855 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2856 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2858, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2859, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2860 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12861, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22862, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2863 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2864 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2865 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2866 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2867 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2868 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2869 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2870, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2871, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2872, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2873, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2874, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2875, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.MyContracts\n'
20130515 'Lino.isip.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2877 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2878 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2879 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2880 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2883 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2884 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2885 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2886 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12887 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22888 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2889 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2890 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2891 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2893 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2895 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2896 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2897 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2898 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2899 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2900 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2901 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2885.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2896.refresh();\n'
20130515 '      goals2897.refresh();\n'
20130515 '      duties_asd2898.refresh();\n'
20130515 '      duties_dsbe2899.refresh();\n'
20130515 '      duties_company2900.refresh();\n'
20130515 '      duties_person2901.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2884.on('change',Lino.chooser_handler(contact_person2885,'company'));\n"
20130515 '      Lino.isip.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2877, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2878, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2879, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2880, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2881 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2882 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2884, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2885, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2886 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12887, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22888, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2889 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2890 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2891 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2892 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2893 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2894 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2895 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2896, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2897, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2898, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2899, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2900, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2901, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobProviders\n'
20130515 'Lino.jobs.JobProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Employants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 72,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2903 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2904 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2906 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2907 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2908 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2909 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2910 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12911 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2912 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2913 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2914 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2915 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22916 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2917 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2918 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2919 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2920 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2922 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2923 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12925 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22926 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2927 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2928 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2931 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2908.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2908.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2909.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2907.on('change',Lino.chooser_handler(city2908,'country'));\n"
20130515 "      region2909.on('change',Lino.chooser_handler(city2908,'region'));\n"
20130515 "      country2907.on('change',Lino.chooser_handler(region2909,'country'));\n"
20130515 '      Lino.jobs.JobProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2903 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2904 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2907, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2908 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2909 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2910 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12911 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2912 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2913 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2914 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2915 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22916 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2917 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2918 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2919 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2920 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2921 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2922, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2924 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12925 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22926 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2927 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2928 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2929 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2930 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2931, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Employants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detailPanel = Ext.extend(Lino.jobs.JobProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Employants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Contracts\n'
20130515 'Lino.jobs.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2933 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job2934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from2935 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2936 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user2937 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2938 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time2939 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2940 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2941 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2942 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12943 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client2945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language2946 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2948 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2950 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2951 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2952 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration2953 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2956 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2957 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2958 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2959 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2960 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2941.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2959.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2940.on('change',Lino.chooser_handler(contact_person2941,'company'));\n"
20130515 '      Lino.jobs.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2933, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2934, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2935, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2936, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2937 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2938 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2940, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2941, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2942 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12943, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22944, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2945, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2946 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2947 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2948 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2949 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2950 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2951 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2952 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2953 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2954 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2955 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2956 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2957 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2958 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2959, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2960, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.MyContracts\n'
20130515 'Lino.jobs.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from2962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2963 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var id2965 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user2966 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var build_time2967 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2968 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2969 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2970 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12971 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22972 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2973 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until2974 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided2975 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2976 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2977 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2978 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2979 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2980 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type2981 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var duration2982 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2983 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2985 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2986 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2987 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2988 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2989 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2969.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2988.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2968.on('change',Lino.chooser_handler(contact_person2969,'company'));\n"
20130515 '      Lino.jobs.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2962, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2963, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2964, "dataIndex": "job" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2965, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2966 }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2968, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2969, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2970 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12971, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22972, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2973 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2974, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2975 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2976 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2977 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2978 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2979 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2980 }, { "colIndex": 19, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2981 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2982 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2983 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2984 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2985 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2986 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2987 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2988, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2989, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Offers\n'
20130515 'Lino.jobs.Offers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Offers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres d\'emploi",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "type": "date", "name": "selection_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "selection_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 66,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2991 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2992 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var name2994 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var provider2995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var selection_from2996 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var selection_until2997 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_date2998 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark2999 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2993.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2992.on('change',Lino.chooser_handler(function2993,'sector'));\n"
20130515 '      Lino.jobs.Offers.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2991, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2992 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2993 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2994 }, { "colIndex": 4, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider2995, "dataIndex": "provider" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de s\\u00e9lection", "editor": selection_from2996, "width": Lino.chars2width(9), "dataIndex": "selection_from" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin de s\\u00e9lection", "editor": selection_until2997, "width": Lino.chars2width(9), "dataIndex": "selection_until" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2998, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2999, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Offers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insertPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres d\'emploi",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Offers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detailPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres d\'emploi",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Offers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Jobs\n'
20130515 'Lino.jobs.Jobs.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Jobs",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3001 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3002 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3003 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3004 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type3005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type3006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3007 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3008 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3009 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3010 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3004.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3003.on('change',Lino.chooser_handler(function3004,'sector'));\n"
20130515 '      Lino.jobs.Jobs.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3001 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3002, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3003 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3004 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3005 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3006 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3007 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3008 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3009, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3010, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.Jobs.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Jobs.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Jobs.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsSearch\n'
20130515 'Lino.jobs.ContractsSearch.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsSearch",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Recherche contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "client" }, \'clientHidden\', { "name": "client__city" }, \'client__cityHidden\', { "name": "client__national_id" }, { "name": "client__gender" }, \'client__genderHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 49,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3012 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3013 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3014 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var job3015 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var client3016 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var client__city3017 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var client__national_id3018 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var client__gender3019 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(1), "maxLength": 1 });\n'
20130515 '    var user3020 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3021 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3022 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3023 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3024 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3025 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13026 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23027 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3028 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3029 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3030 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3031 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3032 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3033 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3034 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3035 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3036 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3037 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3038 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3039 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3040 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3041 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3042 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3024.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3041.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3023.on('change',Lino.chooser_handler(contact_person3024,'company'));\n"
20130515 '      Lino.jobs.ContractsSearch.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3012, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3013, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3014, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3015, "dataIndex": "job" }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3016, "dataIndex": "client" }, { "filter": { "type": "string" }, "width": Lino.chars2width(21), "colIndex": 5, "sortable": true, "dataIndex": "client__city", "header": "Place", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "client__national_id", "header": "NISS", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(5), "colIndex": 7, "sortable": true, "dataIndex": "client__gender", "header": "Sexe", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3020 }, { "colIndex": 9, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3021 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3023, "dataIndex": "company" }, { "colIndex": 12, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3024, "dataIndex": "contact_person" }, { "colIndex": 13, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3025 }, { "colIndex": 14, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13026, "dataIndex": "signer1" }, { "colIndex": 15, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23027, "dataIndex": "signer2" }, { "colIndex": 16, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3028 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3029 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3030 }, { "colIndex": 19, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3031 }, { "colIndex": 20, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3032 }, { "colIndex": 21, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3033 }, { "colIndex": 22, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3034 }, { "colIndex": 23, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3035 }, { "colIndex": 24, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3036 }, { "colIndex": 25, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3037 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3038 }), { "colIndex": 27, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3039 }, { "colIndex": 28, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3040 }, { "colIndex": 29, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3041, "dataIndex": "responsibilities" }, { "colIndex": 30, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3042, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsSearch.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Recherche contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Recherche contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsSearch.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsSearch.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseProviders\n'
20130515 'Lino.courses.CourseProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisateurs de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 77,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3044 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3045 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3046 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3047 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3048 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3049 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3050 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3051 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13052 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3053 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3054 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3055 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3056 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23057 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3058 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3059 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3060 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3061 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3062 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3063 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3064 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23067 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3068 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id3069 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type3070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type3071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id3072 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3049.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3049.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3050.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3048.on('change',Lino.chooser_handler(city3049,'country'));\n"
20130515 "      region3050.on('change',Lino.chooser_handler(city3049,'region'));\n"
20130515 "      country3048.on('change',Lino.chooser_handler(region3050,'country'));\n"
20130515 '      Lino.courses.CourseProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3044 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3045 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3048, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3049 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3050 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3051 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13052 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3053 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3054 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3055 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3056 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23057 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3058 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3059 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3060 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3061 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3062 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3063, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3065 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13066 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23067 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3068 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id3069 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3070 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type3071 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3072, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisateurs de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detailPanel = Ext.extend(Lino.courses.CourseProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisateurs de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffers\n'
20130515 'Lino.courses.CourseOffers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3075 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content3076 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var provider3077 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3078 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3078.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3074, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3075 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3076 }, { "colIndex": 3, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3077, "dataIndex": "provider" }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3078, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.PendingCourseRequests\n'
20130515 'Lino.courses.PendingCourseRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/PendingCourseRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demandes de cours ouvertes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "person" }, \'personHidden\', { "type": "int", "name": "age" }, { "name": "address" }, { "name": "person__gsm" }, { "name": "person__phone" }, { "name": "person__coaches" }, { "name": "content" }, \'contentHidden\', { "type": "boolean", "name": "urgent" }, { "name": "remark" }, { "type": "int", "name": "a16" }, { "type": "int", "name": "a25" }, { "type": "int", "name": "a31" }, { "type": "int", "name": "a41" }, { "type": "int", "name": "a51" }, { "type": "int", "name": "a61" }, { "type": "int", "name": "ax" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 20,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 22,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted3080 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp3081 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person3082 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var age3083 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var address_disp3084 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person__gsm3085 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__phone3086 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__coaches_disp3087 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content3088 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var urgent3089 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var remark3090 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var a163091 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a253092 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a313093 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a413094 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a513095 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a613096 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var ax3097 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3080 }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3082, "dataIndex": "person" }, new Lino.NullNumberColumn({ "header": "\\u00e2ge", "colIndex": 3, "sortable": false, "dataIndex": "age", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "person__gsm", "header": "GSM", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "person__phone", "header": "T\\u00e9l\\u00e9phone", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 7, "sortable": false, "dataIndex": "person__coaches", "header": "Accompagnants", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3088 }, { "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 10, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3090, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "header": "16-24", "colIndex": 11, "sortable": false, "dataIndex": "a16", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "25-30", "colIndex": 12, "sortable": false, "dataIndex": "a25", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "31-40", "colIndex": 13, "sortable": false, "dataIndex": "a31", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "41-50", "colIndex": 14, "sortable": false, "dataIndex": "a41", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "51-60", "colIndex": 15, "sortable": false, "dataIndex": "a51", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": ">61", "colIndex": 16, "sortable": false, "dataIndex": "a61", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "age inconnu", "colIndex": 17, "sortable": false, "dataIndex": "ax", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.courses.PendingCourseRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demandes de cours ouvertes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demandes de cours ouvertes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.courses.PendingCourseRequests.ParamsPanel({});\n'
20130515 '  return new Lino.courses.PendingCourseRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonRequests\n'
20130515 'Lino.cbss.IdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 25,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3099 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3100 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3101 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3102 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3103 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3104 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3105 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3106 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3107 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3108 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3109 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3110 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3111 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3112 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3113 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3114 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3115 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3117 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3118 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3099, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3100 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3101, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3110 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3111 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3112 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3113 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3114 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3115 }, { "colIndex": 17, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3116 }, { "colIndex": 18, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3117 }, new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3118 }) ];\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequests\n'
20130515 'Lino.cbss.ManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3120 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3121 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3122 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3123 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3124 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3125 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3126 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3127 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3128 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3129 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3130 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3131 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3132 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3133 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3137 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3138 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3139 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3140 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3141 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3142 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3138.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3137.on('change',Lino.chooser_handler(purpose3138,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3120, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3121 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3122, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3131 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3132 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3133 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3134 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3135 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3136 }, { "colIndex": 17, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 18, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3138 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3139, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 20, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3140, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 21, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3141 }, { "colIndex": 22, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3142 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3144 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3145 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3146 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3147 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3148 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3149 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3150 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3151 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3152 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3153 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3144, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3145 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3146, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3147 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3148 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class sessions.SessionTable\n'
20130515 'Lino.sessions.SessionTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/sessions/SessionTable",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "sessions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "session_key" }, { "name": "session_data" }, { "name": "expire_date" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 4,\n'
20130515 '  ls_id_property : "session_key",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var session_key3155 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 40 });\n'
20130515 '    var session_data3156 = new Ext.form.TextArea({ "selectOnFocus": true, "allowBlank": false, "growMax": 2000 });\n'
20130515 '    var expire_date3157 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "cl\\u00e9 de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "session_key", "editor": session_key3155 }, { "colIndex": 1, "sortable": false, "header": "donn\\u00e9es de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": session_data3156, "dataIndex": "session_data" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "expire_date", "header": "date d\'expiration", "editable": true, "editor": expire_date3157 } ];\n'
20130515 '    Lino.sessions.SessionTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.sessions.SessionTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.sessions.SessionTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class ui.MyTextFieldTemplates\n'
20130515 'Lino.ui.MyTextFieldTemplates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/ui/MyTextFieldTemplates",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Text Field Templates",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "name" }, { "name": "description" }, { "name": "team" }, \'teamHidden\', { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 1,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3159 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var name3160 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var description3161 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var team3162 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/MyTextFieldTemplates/team", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Team..." });\n'
20130515 '    var text3163 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Texte mod\\u00e8le" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text3163.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3159, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3160 }, { "colIndex": 2, "sortable": false, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3161, "dataIndex": "description" }, { "colIndex": 3, "sortable": true, "header": "Team", "editable": true, "tooltip": "If not empty, then this template is reserved to members of this team.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "team", "editor": team3162 }, { "colIndex": 4, "sortable": false, "header": "text", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": text3163, "dataIndex": "text" } ];\n'
20130515 '    Lino.ui.MyTextFieldTemplates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insertPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Text Field Templates",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detailPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Text Field Templates",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.ui.MyTextFieldTemplates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesGiven\n'
20130515 'Lino.users.AuthoritiesGiven.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesGiven",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations accord\\u00e9es",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "authorized" }, \'authorizedHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var authorized68 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesGiven/authorized", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      authorized68.setContextValue('mk',bp['mk']);\n"
20130515 "      authorized68.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Utilisateur", "editable": true, "tooltip": "The user who gets authority to act in your name.", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "authorized", "editor": authorized68 } ];\n'
20130515 '    Lino.users.AuthoritiesGiven.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesGiven.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesGiven.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesTaken\n'
20130515 'Lino.users.AuthoritiesTaken.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesTaken",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3165 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesTaken/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3165 } ];\n'
20130515 '    Lino.users.AuthoritiesTaken.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesTaken.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesTaken.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCity\n'
20130515 'Lino.countries.CitiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Subdivisions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name244 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr245 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl246 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code248 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id249 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/country", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var inscode251 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type247.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country250.on('change',Lino.chooser_handler(type247,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name244 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr245 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl246 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type247 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code248 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id249, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country250, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode251 } ];\n'
20130515 '    Lino.countries.CitiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Subdivisions",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Subdivisions",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCountry\n'
20130515 'Lino.countries.CitiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Places",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "parent" }, \'parentHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name217 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr218 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type220 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code221 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id222 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var parent223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/parent", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var inscode224 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      type220.setContextValue('mk',bp['mk']);\n"
20130515 "      type220.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name217 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr218 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl219 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type220 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code221 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id222, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Part of", "editable": true, "tooltip": "The superordinate geographic place of which this place is a part.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "parent", "editor": parent223 }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode224 } ];\n'
20130515 '    Lino.countries.CitiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Places",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Places",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.ChoicesByType\n'
20130515 'Lino.properties.ChoicesByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/ChoicesByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3167 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text3168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr3169 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl3170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3171 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value3167 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text3168 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr3169 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl3170 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3171, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.properties.ChoicesByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.ChoicesByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.ChoicesByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCity\n'
20130515 'Lino.contacts.PartnersByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var street272 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no273 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box274 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr2275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name276 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id278 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created279 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified280 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var region282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code283 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr1284 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix285 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email286 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url287 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone288 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax290 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks291 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete292 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity293 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account1294 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account2295 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region282.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country281.on('change',Lino.chooser_handler(region282,'country'));\n"
20130515 '      Lino.contacts.PartnersByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street272 }, { "colIndex": 1, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no273 }, { "colIndex": 2, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box274 }, { "colIndex": 3, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr2275 }, { "colIndex": 4, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name276 }, { "colIndex": 5, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language277 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id278, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country281, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region282 }, { "colIndex": 11, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code283 }, { "colIndex": 12, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr1284 }, { "colIndex": 13, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix285 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email286 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url287 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone288 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm289 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax290 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks291, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity293 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account1294 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account2295 } ];\n'
20130515 '    Lino.contacts.PartnersByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCountry\n'
20130515 'Lino.contacts.PartnersByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3173 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3174 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3175 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3176 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language3177 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3178 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3179 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3180 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3181 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3182 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13183 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3184 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_box3185 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23186 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3187 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3188 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3190 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3191 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3192 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3193 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3194 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23196 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city3173.setContextValue('mk',bp['mk']);\n"
20130515 "      city3173.setContextValue('mt',bp['mt']);\n"
20130515 "      city3173.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      var bp = this.get_base_params();\n'
20130515 "      region3181.setContextValue('mk',bp['mk']);\n"
20130515 "      region3181.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      region3181.on('change',Lino.chooser_handler(city3173,'region'));\n"
20130515 '      Lino.contacts.PartnersByCountry.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3173 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3174 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3175 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3176 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3177 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3178, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3181 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3182 }, { "colIndex": 10, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13183 }, { "colIndex": 11, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3184 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3185 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23186 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3187 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3188 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3189 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3190 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3191 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3192, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3194 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13195 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23196 } ];\n'
20130515 '    Lino.contacts.PartnersByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByCompany\n'
20130515 'Lino.contacts.RolesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes de contact",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var type616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id617 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person615, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type616 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id617, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByPerson\n'
20130515 'Lino.contacts.RolesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contact pour",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, \'companyHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/company", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var type1066 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id1067 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1065, "dataIndex": "company" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1066 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1067, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.MyPostings\n'
20130515 'Lino.postings.MyPostings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/MyPostings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3198 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner3199 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state3200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3201 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3202 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3203 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3204 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3205 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var owner_disp3206 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3204.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3203.on('change',Lino.chooser_handler(owner_id3204,'owner_type'));\n"
20130515 '      Lino.postings.MyPostings.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3198, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3199, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3200 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3202, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3203 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3204 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3205, "dataIndex": "project" }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.MyPostings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.MyPostings.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.MyPostings.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.MyPostings.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/MyPostings",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByPartner\n'
20130515 'Lino.postings.PostingsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3208 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3209 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var state3210 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3211 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3212 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3213 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3214 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user3215 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project3216 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3214.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3213.on('change',Lino.chooser_handler(owner_id3214,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByPartner.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3208, "width": Lino.chars2width(9), "dataIndex": "date" }, { "width": Lino.chars2width(11), "colIndex": 1, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3210 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3212, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3213 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3214 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3215 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3216, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByPartner.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByPartner",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByProject\n'
20130515 'Lino.postings.PostingsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1692 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner1693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state1694 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp1695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1696 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user1699 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1700 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1698.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1697.on('change',Lino.chooser_handler(owner_id1698,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date1692, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner1693, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state1694 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1696, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1697 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1698 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1699 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByProject.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByProject",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientsByMail\n'
20130515 'Lino.outbox.RecipientsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/RecipientsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Recipients",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "address" }, { "name": "name" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 28,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner689 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/RecipientsByMail/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var address690 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var name691 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var type692 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.outbox.RecipientType });\n'
20130515 '    var id693 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner689, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "Addresse", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "address", "editor": address690 }, { "colIndex": 2, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "name", "editor": name691 }, { "colIndex": 3, "sortable": true, "header": "Recipient Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type692 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id693, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.outbox.RecipientsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MyOutbox\n'
20130515 'Lino.outbox.MyOutbox.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MyOutbox",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Mon courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3218 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox3219 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject3220 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3221 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3222 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3224 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date3225 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3226 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var body3227 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3219.refresh();\n'
20130515 "      owner_id3223.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body3227.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3222.on('change',Lino.chooser_handler(owner_id3223,'owner_type'));\n"
20130515 '      Lino.outbox.MyOutbox.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3220 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3221, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3222 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3223 }, { "colIndex": 6, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3224, "dataIndex": "project" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date3225 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3227, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MyOutbox.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mon courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mon courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MyOutbox.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByUser\n'
20130515 'Lino.outbox.MailsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "recipients" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3229 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3230 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox3231 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3231.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3230 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByProject\n'
20130515 'Lino.outbox.MailsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "subject" }, { "name": "recipients" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "body" }, { "name": "sent" }, { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1680 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var subject1681 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox1682 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var user1683 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id1684 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1685 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var body1687 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var sent1688 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var owner_disp1689 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox1682.refresh();\n'
20130515 "      owner_id1686.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body1687.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1685.on('change',Lino.chooser_handler(owner_id1686,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date1680 }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1681 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 3, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1683 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1684, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1685 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1686 }, { "colIndex": 7, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1687, "dataIndex": "body" }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.SentByPartner\n'
20130515 'Lino.outbox.SentByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/SentByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3233 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3234 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/SentByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3234 }, { "colIndex": 2, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3235 } ];\n'
20130515 '    Lino.outbox.SentByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.SentByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.AttachmentsByMail\n'
20130515 'Lino.outbox.AttachmentsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/AttachmentsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pi\\u00e8ces jointes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 29,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3237 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3238 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3239 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_id", "method": "GET" }) }) });\n'
20130515 '    var owner_disp3240 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3239.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3238.on('change',Lino.chooser_handler(owner_id3239,'owner_type'));\n"
20130515 '      Lino.outbox.AttachmentsByMail.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3237, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3238 }, { "colIndex": 2, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3239 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.AttachmentsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.AttachmentsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.AttachmentsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.SubscriptionsByUser\n'
20130515 'Lino.cal.SubscriptionsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/SubscriptionsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Abonnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "calendar" }, \'calendarHidden\', { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 37,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id79 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var calendar80 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/SubscriptionsByUser/calendar", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var is_hidden81 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id79, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Calendrier", "editable": true, "tooltip": "The calendar you want to subscribe to.\\nYou can subscribe to *non-private* calendars of *other* users.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar80 }, { "colIndex": 2, "sortable": false, "xtype": "checkcolumn", "header": "cach\\u00e9", "editable": true, "tooltip": "Activer cette case pour ne pas afficher ce calendrier en ouvrant le panneau.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_hidden" } ];\n'
20130515 '    Lino.cal.SubscriptionsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.SubscriptionsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.SubscriptionsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByProject\n'
20130515 'Lino.cal.EventsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "calendar" }, \'calendarHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1630 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1631 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var user1632 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1633 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1634 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var id1635 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1636 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1638 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1639 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time1640 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date1641 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time1642 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1643 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1644 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class1645 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1646 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1647 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent1648 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place1649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority1650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state1651 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to1652 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1653 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1637.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1643.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1636.on('change',Lino.chooser_handler(owner_id1637,'owner_type'));\n"
20130515 '      Lino.cal.EventsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1630, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1631 }, { "colIndex": 2, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1632 }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1633 }, { "colIndex": 4, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1634 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1635, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type1636 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id1637 }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date1641 }, { "colIndex": 12, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time1642 }, { "colIndex": 13, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description1643, "dataIndex": "description" }, { "colIndex": 14, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid1644 }, { "colIndex": 15, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class1645 }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence1646 }), new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 18, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 19, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place1649 }, { "colIndex": 20, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority1650 }, { "colIndex": 21, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state1651 }, { "colIndex": 22, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to1652 }, { "width": Lino.chars2width(11), "colIndex": 23, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByUser\n'
20130515 'Lino.cal.TasksByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date85 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary86 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp87 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id88 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type89 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id90 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created91 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified92 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project93 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time94 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description95 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid96 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar97 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class98 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence99 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type100 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date101 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time102 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent103 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state104 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp105 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id90.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description95.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type89.on('change',Lino.chooser_handler(owner_id90,'owner_type'));\n"
20130515 '      Lino.cal.TasksByUser.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date85, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary86 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id88, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type89 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id90 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project93, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time94 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description95, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid96 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar97 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class98 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence99 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date101, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time102 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent103 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state104 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasks\n'
20130515 'Lino.cal.MyTasks.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasks",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3242 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3243 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3244 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3245 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3246 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3248 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3249 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3251 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3252 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3253 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3254 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3255 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3256 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3257 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3258 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3259 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3260 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3261 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3262 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3247.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3252.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3246.on('change',Lino.chooser_handler(owner_id3247,'owner_type'));\n"
20130515 '      Lino.cal.MyTasks.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3242, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3243 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3245, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3246 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3247 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3250, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3251 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3252, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3253 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3254 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3255 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3256 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3258, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3259 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3260 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3261 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasks.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasks.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasksToDo\n'
20130515 'Lino.cal.MyTasksToDo.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasksToDo",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "To-do list",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3264 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3265 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3266 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3267 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3268 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3269 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3270 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3271 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3272 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3273 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3274 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3276 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3278 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3279 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3280 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3281 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3282 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3283 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3284 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3269.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3274.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3268.on('change',Lino.chooser_handler(owner_id3269,'owner_type'));\n"
20130515 '      Lino.cal.MyTasksToDo.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3264, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3265 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3267, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3268 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3269 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3272, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3273 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3274, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3275 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3276 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3277 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3278 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3280, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3281 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3282 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3283 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasksToDo.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau To-do list",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail To-do list",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByProject\n'
20130515 'Lino.cal.TasksByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1656 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1658 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1659 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1660 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1661 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1663 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_time1665 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1666 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1667 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class1669 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1670 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1671 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date1672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time1673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent1674 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state1675 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp1676 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1662.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1666.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1661.on('change',Lino.chooser_handler(owner_id1662,'owner_type'));\n"
20130515 '      Lino.cal.TasksByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1656, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1657 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1658 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1660, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1661 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1662 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1665 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description1666, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid1667 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1668 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class1669 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence1670 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date1672, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time1673 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent1674 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state1675 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByEvent\n'
20130515 'Lino.cal.GuestsByEvent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByEvent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner793 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role794 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp795 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event797 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id798 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time799 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner793, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role794 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark796 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event797 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id798, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state800 } ];\n'
20130515 '    Lino.cal.GuestsByEvent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByRole\n'
20130515 'Lino.cal.GuestsByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner3286 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role3287 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3288 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event3290 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id3291 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3292 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3293 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3286, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3287 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3289 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3290 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3291, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3293 } ];\n'
20130515 '    Lino.cal.GuestsByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByRole.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByPartner\n'
20130515 'Lino.cal.GuestsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "event" }, \'eventHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event3295 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var role3296 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3297 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3299 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3300 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3301 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3295 }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3296 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3298 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3299, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3301 } ];\n'
20130515 '    Lino.cal.GuestsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByPartner.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPresences\n'
20130515 'Lino.cal.MyPresences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPresences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes pr\\u00e9sences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3303 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3304 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3305 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3306 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3307 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3309 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3310 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3311 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3312 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3306 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3308 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3309, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3311 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3312 } ];\n'
20130515 '    Lino.cal.MyPresences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPresences.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPresences.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPendingInvitations\n'
20130515 'Lino.cal.MyPendingInvitations.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPendingInvitations",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes invitations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3314 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3315 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3316 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3317 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3318 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3319 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3320 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3321 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3322 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3317 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3319 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3320, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3322 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3323 } ];\n'
20130515 '    Lino.cal.MyPendingInvitations.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPendingInvitations.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPendingInvitations.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.MyUploads\n'
20130515 'Lino.uploads.MyUploads.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/MyUploads",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "owner" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "name": "type" }, \'typeHidden\', { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3325 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var description3326 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3327 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp3328 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var id3329 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3332 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3333 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3334 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var type3335 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var valid_until3336 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3331.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3330.on('change',Lino.chooser_handler(owner_id3331,'owner_type'));\n"
20130515 '      Lino.uploads.MyUploads.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3325 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3326 }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3327 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3329, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3330 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3331 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3335 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3336, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.MyUploads.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.MyUploads.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.MyUploads.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.HouseholdsByType\n'
20130515 'Lino.households.HouseholdsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/HouseholdsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 30,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 32,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3338 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3339 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3342 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3343 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3344 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3345 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13346 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3347 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3348 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3349 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3350 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23351 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3352 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3353 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3354 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3355 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3357 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3358 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3359 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13360 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23361 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3362 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3363 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3343.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3343.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3344.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3342.on('change',Lino.chooser_handler(city3343,'country'));\n"
20130515 "      region3344.on('change',Lino.chooser_handler(city3343,'region'));\n"
20130515 "      country3342.on('change',Lino.chooser_handler(region3344,'country'));\n"
20130515 '      Lino.households.HouseholdsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3338 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3339 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3342, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3343 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3344 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3345 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13346 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3347 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3348 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3349 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3350 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23351 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3352 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3353 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3354 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3355 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3356 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3357, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3359 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13360 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23361 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3362 }, new Lino.NullNumberColumn({ "colIndex": 25, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3363, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.HouseholdsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.HouseholdsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByHousehold\n'
20130515 'Lino.households.MembersByHousehold.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByHousehold",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var role985 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date986 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date987 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id988 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person984, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role985 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date986, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date987, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id988, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByHousehold.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByHousehold.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByHousehold.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByPerson\n'
20130515 'Lino.households.MembersByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membre de ",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "household" }, \'householdHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var household1070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var role1071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date1072 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1073 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id1074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household1070, "dataIndex": "household" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role1071 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date1072, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date1073, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1074, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByRole\n'
20130515 'Lino.households.MembersByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "household" }, \'householdHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person3365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var household3366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var start_date3367 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date3368 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id3369 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person3365, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household3366, "dataIndex": "household" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date3367, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date3368, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3369, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountsByGroup\n'
20130515 'Lino.accounts.AccountsByGroup.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/accounts/AccountsByGroup",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comptes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "ref" }, { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "default_amount" }, { "name": "periods" }, { "type": "boolean", "name": "required_for_household" }, { "type": "boolean", "name": "required_for_person" }, { "name": "group" }, \'groupHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 43,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var ref3371 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    var name3372 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr3373 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl3374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var default_amount3375 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var periods3376 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": true, "value": 1, "allowDecimals": false });\n'
20130515 '    var required_for_household3377 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var required_for_person3378 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3379 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/accounts/AccountsByGroup/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de comptes..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "ref", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "ref", "editor": ref3371 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3372 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr3373 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl3374 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "header": "Default amount", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "default_amount", "editor": default_amount3375 }), new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0/i", "editable": true, "tooltip": "For how many months the entered amount counts. \\nFor example 1 means a monthly amount, 12 a yearly amount.", "filter": { "type": "numeric" }, "header": "P\\u00e9riodes", "dataIndex": "periods", "width": Lino.chars2width(6), "editor": periods3376 }), { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour m\\u00e9nages", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_household" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour personnes", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_person" }, { "colIndex": 8, "sortable": true, "header": "Groupe de comptes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3379 } ];\n'
20130515 '    Lino.accounts.AccountsByGroup.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountsByGroup.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountsByGroup.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.accounts.AccountsByGroup.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.accounts.AccountsByGroup.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.MyNotes\n'
20130515 'Lino.notes.MyNotes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/MyNotes",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "project" }, \'projectHidden\', { "name": "body" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3381 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var project3385 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var body3386 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var id3387 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3388 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3389 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3390 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3391 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3392 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3393 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3386.refresh();\n'
20130515 "      owner_id3389.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3388.on('change',Lino.chooser_handler(owner_id3389,'owner_type'));\n"
20130515 '      Lino.notes.MyNotes.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3381, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3382 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3383 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3384 }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3385, "dataIndex": "project" }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3386, "dataIndex": "body" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3387, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3388 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3389 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3391 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3392, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.MyNotes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.MyNotes.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.MyNotes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.NotesByProject\n'
20130515 'Lino.notes.NotesByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/NotesByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3395 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3398 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body3399 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user3400 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3401 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3402 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3403 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3404 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3405 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3406 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3407 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3399.refresh();\n'
20130515 "      owner_id3403.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3402.on('change',Lino.chooser_handler(owner_id3403,'owner_type'));\n"
20130515 '      Lino.notes.NotesByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3395, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3396 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3397 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3398 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3399, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3400 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3401, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3402 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3403 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3405 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3406, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.NotesByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.NotesByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.NotesByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.LanguageKnowledgesByPerson\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/LanguageKnowledgesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var language1321 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/LanguageKnowledgesByPerson/language", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var native1322 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken1323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written1324 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level1325 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1321, "dataIndex": "language" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken1323 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written1324 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level1325 } ];\n'
20130515 '    Lino.cv.LanguageKnowledgesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.LanguageKnowledgesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.KnowledgesByLanguage\n'
20130515 'Lino.cv.KnowledgesByLanguage.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/KnowledgesByLanguage",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person196 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/KnowledgesByLanguage/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var native197 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken198 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written199 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person196, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken198 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written199 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level200 } ];\n'
20130515 '    Lino.cv.KnowledgesByLanguage.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.KnowledgesByLanguage.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.KnowledgesByLanguage.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.PropsByPerson\n'
20130515 'Lino.cv.PropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/PropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3411 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3412 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3413 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3409.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3410.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3413.on('change',Lino.chooser_handler(property3409,'group'));\n"
20130515 "      property3409.on('change',Lino.chooser_handler(value3410,'property'));\n"
20130515 '      Lino.cv.PropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3409 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3410 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3411 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3412, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3413 } ];\n'
20130515 '    Lino.cv.PropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.PropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.PropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ConfiguredPropsByPerson\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ConfiguredPropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3415 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3418 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3419 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3415.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3416.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3419.on('change',Lino.chooser_handler(property3415,'group'));\n"
20130515 "      property3415.on('change',Lino.chooser_handler(value3416,'property'));\n"
20130515 '      Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3415 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3416 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3417 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3418, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3419 } ];\n'
20130515 '    Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ConfiguredPropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SkillsByPerson\n'
20130515 'Lino.cv.SkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1367 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1368 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1365.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1366.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1369.on('change',Lino.chooser_handler(property1365,'group'));\n"
20130515 "      property1365.on('change',Lino.chooser_handler(value1366,'property'));\n"
20130515 '      Lino.cv.SkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1365 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1366 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1367 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1368, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1369 } ];\n'
20130515 '    Lino.cv.SkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SoftSkillsByPerson\n'
20130515 'Lino.cv.SoftSkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SoftSkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences sociales",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1372 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1373 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1375 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1376 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1372.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1373.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1376.on('change',Lino.chooser_handler(property1372,'group'));\n"
20130515 "      property1372.on('change',Lino.chooser_handler(value1373,'property'));\n"
20130515 '      Lino.cv.SoftSkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1372 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1373 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1374 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1375, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1376 } ];\n'
20130515 '    Lino.cv.SoftSkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SoftSkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SoftSkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ObstaclesByPerson\n'
20130515 'Lino.cv.ObstaclesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ObstaclesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Obstacles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1385 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1386 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1382.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1383.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1386.on('change',Lino.chooser_handler(property1382,'group'));\n"
20130515 "      property1382.on('change',Lino.chooser_handler(value1383,'property'));\n"
20130515 '      Lino.cv.ObstaclesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1382 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1383 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1384 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1385, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1386 } ];\n'
20130515 '    Lino.cv.ObstaclesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ObstaclesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ObstaclesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ClientsByNationality\n'
20130515 'Lino.pcsw.ClientsByNationality.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ClientsByNationality",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "country" }, \'countryHidden\', { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "broker" }, \'brokerHidden\', { "name": "faculty" }, \'facultyHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3421 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3422 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3423 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3424 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23425 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name3426 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var country3427 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var language3428 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3429 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3430 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3431 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3432 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3433 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13434 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3435 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3436 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3437 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3438 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3439 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3440 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3441 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3442 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3443 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13444 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23445 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3446 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3447 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3448 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3449 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3450 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23451 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3452 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3453 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3454 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3455 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3456 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3457 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3458 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3459 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3460 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3461 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var card_number3462 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3463 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3464 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3465 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3466 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3467 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3468 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3469 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3470 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3471 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3472 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3473 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3474 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3475 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3476 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3477 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3478 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3479 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3480 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3481 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3482 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3483 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3484 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3485 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3486 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3487 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3488 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    var broker3489 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var faculty3490 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/faculty", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3421.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3421.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3432.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3427.on('change',Lino.chooser_handler(city3421,'country'));\n"
20130515 "      region3432.on('change',Lino.chooser_handler(city3421,'region'));\n"
20130515 "      country3427.on('change',Lino.chooser_handler(region3432,'country'));\n"
20130515 '      Lino.pcsw.ClientsByNationality.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3421 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3422 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3423 }, { "colIndex": 3, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3424 }, { "colIndex": 4, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23425 }, { "colIndex": 5, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3426 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3427, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3428 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3429, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3432 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3433 }, { "colIndex": 13, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13434 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3435 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3436 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3437 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3438 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3439 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3440 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3441, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3443 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13444 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23445 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3446 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3447 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3448 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3449 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3450 }, { "colIndex": 30, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23451, "dataIndex": "remarks2" }, { "colIndex": 31, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3452 }, { "colIndex": 32, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 33, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 34, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3455 }, { "colIndex": 35, "sortable": true, "header": "Lieu de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3456 }, { "colIndex": 36, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3457, "dataIndex": "birth_country" }, { "colIndex": 37, "sortable": true, "header": "Etat civil'
20130515 '", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3458 }, { "colIndex": 38, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3459 }, { "colIndex": 39, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3460, "dataIndex": "health_insurance" }, { "colIndex": 40, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3461, "dataIndex": "pharmacy" }, { "colIndex": 41, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3462 }, { "colIndex": 42, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3463, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 43, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3464, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 44, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3465 }, { "colIndex": 45, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3466 }, { "colIndex": 46, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3467 }, { "colIndex": 47, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3468 }, { "colIndex": 48, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3469, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 49, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3470, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 50, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 51, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3473, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 53, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3474 }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 56, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 57, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 60, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3481, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 61, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3482 }, { "colIndex": 62, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3483, "dataIndex": "obstacles" }, { "colIndex": 63, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3484, "dataIndex": "skills" }, { "colIndex": 64, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3485 }, { "colIndex": 65, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3486 }, { "colIndex": 66, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3487 }, { "colIndex": 67, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3488 }, { "colIndex": 68, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3489 }, { "colIndex": 69, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3490 } ];\n'
20130515 '    Lino.pcsw.ClientsByNationality.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.ClientsByNationality.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ExclusionsByPerson\n'
20130515 'Lino.pcsw.ExclusionsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ExclusionsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "exclusions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "excluded_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "excluded_until", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 46,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var excluded_from1233 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var excluded_until1234 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type1235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ExclusionsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Exclusion Type..." });\n'
20130515 '    var remark1236 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "de", "editor": excluded_from1233, "width": Lino.chars2width(9), "dataIndex": "excluded_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": excluded_until1234, "width": Lino.chars2width(9), "dataIndex": "excluded_until" }, { "colIndex": 2, "sortable": true, "header": "Raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1235 }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1236 } ];\n'
20130515 '    Lino.pcsw.ExclusionsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ExclusionsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ExclusionsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ContactsByClient\n'
20130515 'Lino.pcsw.ContactsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ContactsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Contacts",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 54,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1279 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var company1280 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1283 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1284 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      company1280.setContextValue('type',record ? record.data['typeHidden'] : undefined);\n"
20130515 "      contact_person1281.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      type1279.on('change',Lino.chooser_handler(company1280,'type'));\n"
20130515 "      company1280.on('change',Lino.chooser_handler(contact_person1281,'company'));\n"
20130515 '      Lino.pcsw.ContactsByClient.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1279 }, { "colIndex": 1, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1280, "dataIndex": "company" }, { "colIndex": 2, "sortable": true, "header": "Personne de contact", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1281, "dataIndex": "contact_person" }, { "colIndex": 3, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1282 }, { "colIndex": 4, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1283, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1284, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.ContactsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ContactsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ContactsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByClient\n'
20130515 'Lino.pcsw.CoachingsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "type": "boolean", "name": "primary" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1287 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1288 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1289 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var primary1290 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var type1291 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var id1292 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date1287, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date1288, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Accompagnant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "user", "editor": user1289 }, { "colIndex": 3, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, { "colIndex": 4, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "type", "editor": type1291 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1292, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByUser\n'
20130515 'Lino.pcsw.CoachingsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "type" }, \'typeHidden\', { "type": "boolean", "name": "primary" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date157 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date158 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client159 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type160 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var primary161 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var id162 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date157, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date158, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client159, "dataIndex": "client" }, { "colIndex": 3, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type160 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id162, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByPerson\n'
20130515 'Lino.pcsw.NotesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "name": "company" }, \'companyHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1615 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type1616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type1617 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject1618 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body1619 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user1620 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var company1621 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var id1622 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time1625 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language1626 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp1627 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body1619.refresh();\n'
20130515 "      owner_id1624.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1623.on('change',Lino.chooser_handler(owner_id1624,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date1615, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type1616 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1617 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1618 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1619, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1620 }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1621, "dataIndex": "company" }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1622, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1623 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1624 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1626 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByCompany\n'
20130515 'Lino.pcsw.NotesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "project" }, \'projectHidden\', { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date622 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var project623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var event_type624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type625 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject626 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body627 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id629 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time632 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language633 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp634 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body627.refresh();\n'
20130515 "      owner_id631.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type630.on('change',Lino.chooser_handler(owner_id631,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByCompany.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date622, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project623, "dataIndex": "project" }, { "colIndex": 2, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type624 }, { "colIndex": 3, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type625 }, { "colIndex": 4, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject626 }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body627, "dataIndex": "body" }, { "colIndex": 6, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user628 }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id629, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type630 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id631 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language633 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPerson\n'
20130515 'Lino.isip.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from1402 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1403 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1404 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1405 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var id1406 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1407 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1408 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11411 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21412 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1413 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1414 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1415 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1417 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1418 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1419 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages1420 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals1421 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd1422 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1423 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company1424 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1425 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1409.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages1420.refresh();\n'
20130515 '      goals1421.refresh();\n'
20130515 '      duties_asd1422.refresh();\n'
20130515 '      duties_dsbe1423.refresh();\n'
20130515 '      duties_company1424.refresh();\n'
20130515 '      duties_person1425.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1408.on('change',Lino.chooser_handler(contact_person1409,'company'));\n"
20130515 '      Lino.isip.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1402, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1403, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1404 }, { "colIndex": 3, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1405 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1406, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1408, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1409, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1410 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11411, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21412, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1413 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1414 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1415 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1416 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1417 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1418 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1419 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages1420, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals1421, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd1422, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe1423, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company1424, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person1425, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPolicy\n'
20130515 'Lino.isip.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3492 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3493 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3494 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3495 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3496 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3497 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time3498 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3499 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3500 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13502 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23503 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3504 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3505 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3506 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3507 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3508 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3509 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3510 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3511 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3512 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3513 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3514 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3515 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3500.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3510.refresh();\n'
20130515 '      goals3511.refresh();\n'
20130515 '      duties_asd3512.refresh();\n'
20130515 '      duties_dsbe3513.refresh();\n'
20130515 '      duties_company3514.refresh();\n'
20130515 '      duties_person3515.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3499.on('change',Lino.chooser_handler(contact_person3500,'company'));\n"
20130515 '      Lino.isip.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3492, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3493, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3494, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3495, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3496 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3497 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3499, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3500, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3501 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13502, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23503, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3504 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3505 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3506 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3507 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3508 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3509 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3510, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3511, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3512, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3513, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3514, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3515, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByType\n'
20130515 'Lino.isip.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from3517 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3518 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3519 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3520 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3521 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3524 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13525 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3527 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until3528 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided3529 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3530 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3531 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3532 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3533 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3534 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3535 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3536 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3537 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3538 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3539 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3540 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3523.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3535.refresh();\n'
20130515 '      goals3536.refresh();\n'
20130515 '      duties_asd3537.refresh();\n'
20130515 '      duties_dsbe3538.refresh();\n'
20130515 '      duties_company3539.refresh();\n'
20130515 '      duties_person3540.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3522.on('change',Lino.chooser_handler(contact_person3523,'company'));\n"
20130515 '      Lino.isip.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3517, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3518, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3519 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3520, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3522, "dataIndex": "company" }, { "colIndex": 6, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3523, "dataIndex": "contact_person" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3524 }, { "colIndex": 8, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13525, "dataIndex": "signer1" }, { "colIndex": 9, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23526, "dataIndex": "signer2" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3527 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3528, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3529 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3530 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3531 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3532 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3533 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3534 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3535, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3536, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3537, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3538, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3539, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3540, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPerson\n'
20130515 'Lino.jobs.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job1506 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1507 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1508 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1509 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1510 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1511 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1512 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11516 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21517 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1518 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1519 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1520 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1521 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1524 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1525 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1527 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1528 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1529 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1531 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1532 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1514.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1531.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1513.on('change',Lino.chooser_handler(contact_person1514,'company'));\n"
20130515 '      Lino.jobs.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1506, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1507, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1508, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1509 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1510 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1511, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1513, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": contact_person1514, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "hidden": true, "editor": contact_role1515 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11516, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21517, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "hidden": true, "editor": language1518 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1519 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1520 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1521 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1522 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1523 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1524 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "hidden": true, "editor": duration1525 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "hidden": true, "editor": regime1526 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "hidden": true, "editor": schedule1527 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "hidden": true, "editor": hourly_rate1528 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1529 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "hidden": true, "editor": reference_person1530 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": responsibilities1531, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remark1532, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByProvider\n'
20130515 'Lino.jobs.ContractsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job1945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1946 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1948 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1950 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1951 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var contact_person1952 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1953 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1956 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1957 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1958 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1959 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1960 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1961 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1963 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1965 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1966 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1967 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1968 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1969 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1970 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      contact_person1952.setContextValue('mk',bp['mk']);\n"
20130515 "      contact_person1952.setContextValue('mt',bp['mt']);\n"
20130515 '      responsibilities1969.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1944, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1945, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1946, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1947, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1948 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1949 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1950, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1952, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1953 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11954, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21955, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1956 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1957 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1958 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1959 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1960 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1961 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1962 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1963 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1964 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1965 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1966 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1967 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1968 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1969, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1970, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPolicy\n'
20130515 'Lino.jobs.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3542 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3543 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3544 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3545 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3546 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3547 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3548 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3549 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3550 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3551 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13552 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23553 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3555 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3556 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3557 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3558 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3560 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3561 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3562 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3563 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3564 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3565 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3567 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3568 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3550.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3567.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3549.on('change',Lino.chooser_handler(contact_person3550,'company'));\n"
20130515 '      Lino.jobs.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3542, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3543, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3544, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3545, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3546 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3547 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3549, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3550, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3551 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13552, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23553, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3554, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3555 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3556 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3557 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3558 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3559 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3560 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3561 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3562 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3563 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3564 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3565 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3566 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3567, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3568, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByJob\n'
20130515 'Lino.jobs.ContractsByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1913 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var applies_from1914 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1915 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1916 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1917 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1918 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1919 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1920 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1921 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1922 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11923 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1925 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1926 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1927 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1928 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1931 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1932 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1933 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1935 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1936 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1937 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1938 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1939 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1921.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1938.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1920.on('change',Lino.chooser_handler(contact_person1921,'company'));\n"
20130515 '      Lino.jobs.ContractsByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1913, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1914, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1915, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1916 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1917 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1918, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1920, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1921, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1922 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11923, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21924, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1925 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1926 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1927 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1928 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1929 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1930 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1931 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1932 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1933 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1934 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1935 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1936 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1937 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1938, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1939, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByRegime\n'
20130515 'Lino.jobs.ContractsByRegime.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByRegime",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3571 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3572 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3573 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3574 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3575 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3576 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3577 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3578 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3582 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3583 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3584 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3585 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3588 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3589 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3590 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var schedule3591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3592 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3593 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3594 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3595 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3596 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3578.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3595.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3577.on('change',Lino.chooser_handler(contact_person3578,'company'));\n"
20130515 '      Lino.jobs.ContractsByRegime.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3570, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3571, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3572, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3573 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3574 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3575, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3577, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3578, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3579 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13580, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23581, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3582, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3583 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3584 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3585 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3586 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3587 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3588 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3589 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3590 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3591 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3592 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3593 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3594 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3595, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3596, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByRegime.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByRegime.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByRegime.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsBySchedule\n'
20130515 'Lino.jobs.ContractsBySchedule.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsBySchedule",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3599 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3600 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3603 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3604 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3605 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3606 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3607 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13608 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3611 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3612 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3613 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3617 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3618 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3619 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var hourly_rate3620 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3621 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3623 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3624 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3606.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3623.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3605.on('change',Lino.chooser_handler(contact_person3606,'company'));\n"
20130515 '      Lino.jobs.ContractsBySchedule.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3598, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3599, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3600, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3601 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3602 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3603, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3605, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3606, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3607 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13608, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23609, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3610, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3611 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3612 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3613 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3614 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3615 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3616 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3617 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3618 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3619 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3620 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3621 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3622 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3623, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3624, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsBySchedule.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsBySchedule.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCountry\n'
20130515 'Lino.jobs.StudiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "city" }, \'cityHidden\', { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id534 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var city535 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var person536 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content538 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started539 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped540 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success541 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language542 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks544 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city535.setContextValue('mk',bp['mk']);\n"
20130515 "      city535.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id534, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city535 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person536, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type537 }, { "colIndex": 4, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content538 }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started539, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped540, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 8, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language542, "dataIndex": "language" }, { "colIndex": 9, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school543 }, { "colIndex": 10, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks544, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.StudiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCity\n'
20130515 'Lino.jobs.StudiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "school" }, { "name": "type" }, \'typeHidden\', { "name": "person" }, \'personHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var school513 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var person515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var content516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started517 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped518 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success519 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language520 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var remarks521 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id522 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school513 }, { "colIndex": 1, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type514 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person515, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content516 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started517, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped518, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language520, "dataIndex": "language" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks521, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id522, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country523, "dataIndex": "country" } ];\n'
20130515 '    Lino.jobs.StudiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByPerson\n'
20130515 'Lino.jobs.StudiesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1297 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content1298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started1299 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1300 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var country1301 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city1302 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var success1303 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language1304 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school1305 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks1306 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1307 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1302.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1301.on('change',Lino.chooser_handler(city1302,'country'));\n"
20130515 '      Lino.jobs.StudiesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1297 }, { "colIndex": 1, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content1298 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1299, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1300, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1301, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city1302 }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1304, "dataIndex": "language" }, { "colIndex": 8, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school1305 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1306, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 10, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1307, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.StudiesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByFunction\n'
20130515 'Lino.jobs.ExperiencesByFunction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByFunction",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3626 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector3627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var person3628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company3629 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title3630 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country3631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started3632 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped3633 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks3634 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3626, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3627 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3628, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company3629 }, { "colIndex": 4, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3630 }, { "colIndex": 5, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3631, "dataIndex": "country" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started3632, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped3633, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3634, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByFunction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByFunction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByFunction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByPerson\n'
20130515 'Lino.jobs.ExperiencesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "country" }, \'countryHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1310 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var started1311 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1312 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var title1313 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector1314 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1315 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var country1316 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var remarks1317 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1315.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1314.on('change',Lino.chooser_handler(function1315,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1310 }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1311, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1312, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 3, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1313 }, { "colIndex": 4, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1314 }, { "colIndex": 5, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1315 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1316, "dataIndex": "country" }, { "colIndex": 7, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1317, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByPerson\n'
20130515 'Lino.jobs.CandidaturesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1393 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var job1394 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var state1395 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1398 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1399 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1397.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1396.on('change',Lino.chooser_handler(function1397,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1393 }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1394, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1395 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1396 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1397 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1398, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1399, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByJob\n'
20130515 'Lino.jobs.CandidaturesByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "person" }, \'personHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1902 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var person1903 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state1904 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1905 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1906 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1907 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1908 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1906.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1905.on('change',Lino.chooser_handler(function1906,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1902 }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1903, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1904 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1905 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1906 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1907, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1908, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByOffer\n'
20130515 'Lino.jobs.CandidaturesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2004 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person2007 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2008 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var date_submitted2009 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var remark2010 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var state2011 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2006.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2005.on('change',Lino.chooser_handler(function2006,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2004, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2005 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2006 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2007, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2008, "dataIndex": "job" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2009 }, { "colIndex": 6, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2010, "dataIndex": "remark" }, { "colIndex": 7, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state2011 } ];\n'
20130515 '    Lino.jobs.CandidaturesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByOffer\n'
20130515 'Lino.jobs.ExperiencesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id1992 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector1993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1994 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person1995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company1996 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title1997 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country1998 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started1999 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped2000 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks2001 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1994.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1993.on('change',Lino.chooser_handler(function1994,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1992, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1993 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1994 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1995, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1996 }, { "colIndex": 5, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1997 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1998, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1999, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped2000, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2001, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByProvider\n'
20130515 'Lino.jobs.JobsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name1870 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider1871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector1872 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1873 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type1874 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type1875 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate1876 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity1877 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark1878 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1879 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1873.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1872.on('change',Lino.chooser_handler(function1873,'sector'));\n"
20130515 '      Lino.jobs.JobsByProvider.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name1870 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider1871, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1872 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1873 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1874 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type1875 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1876 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity1877 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1878, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1879, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByType\n'
20130515 'Lino.jobs.JobsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3636 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3638 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var contract_type3640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3641 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3642 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3643 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3644 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3639.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3638.on('change',Lino.chooser_handler(function3639,'sector'));\n"
20130515 '      Lino.jobs.JobsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3636 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3637, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3638 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3639 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3640 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3641 }), new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3642 }), { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3643, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3644, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByType\n'
20130515 'Lino.jobs.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3646 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3647 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3648 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3649 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3651 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3652 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3653 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13656 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3658 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3659 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3661 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3663 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3664 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3665 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3666 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3669 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3670 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3671 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3672 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3673 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3654.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3672.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3653.on('change',Lino.chooser_handler(contact_person3654,'company'));\n"
20130515 '      Lino.jobs.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3646, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3647, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3648, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3649, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3650 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3651 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3653, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3654, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3655 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13656, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23657, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3658, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3659 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3660 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3661 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3662 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3663 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3664 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3665 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3666 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3667 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3668 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3669 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3670 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3671 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3672, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3673, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsOverviewByType\n'
20130515 'Lino.jobs.JobsOverviewByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsOverviewByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Situation contrats Art 60-7",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  disable_editing : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job_desc" }, { "name": "working" }, { "name": "probation" }, { "name": "candidates" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job_desc_disp3675 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var working_disp3676 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var probation_disp3677 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var candidates_disp3678 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "job_desc", "header": "Emploi", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "working", "header": "Travaille", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "probation", "header": "p\\u00e9riode d\'essai", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "candidates", "header": "Candidats", "editable": false } ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Situation contrats Art 60-7",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/jobs/JobsOverviewByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.JobsOverviewByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsOverviewByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverviewByType.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CoursesByOffer\n'
20130515 'Lino.courses.CoursesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CoursesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  title : "Cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 76,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2094 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var title2095 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remark2096 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2097 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2094, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2095 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark2096 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2097, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CoursesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insertPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detailPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CoursesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByProvider\n'
20130515 'Lino.courses.CourseOffersByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2079 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title2080 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content2081 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByProvider/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var description2082 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2082.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2079, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2080 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2081 }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2082, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByContent\n'
20130515 'Lino.courses.CourseOffersByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3680 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3681 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var provider3682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByContent/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3683 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3683.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3680, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3681 }, { "colIndex": 2, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3682, "dataIndex": "provider" }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3683, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByPerson\n'
20130515 'Lino.courses.CourseRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "content" }, \'contentHidden\', { "name": "offer" }, \'offerHidden\', { "name": "course" }, \'courseHidden\', { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1328 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var content1329 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var offer1330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var course1331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var urgent1332 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state1333 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var date_ended1334 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark1335 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1336 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1330.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1329.on('change',Lino.chooser_handler(offer1330,'content'));\n"
20130515 '      Lino.courses.CourseRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(11), "editor": date_submitted1328 }, { "colIndex": 1, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "content", "editor": content1329 }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer1330, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course1331 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state1333 }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended1334, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.text_renderer, "editor": remark1335, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1336, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByContent\n'
20130515 'Lino.courses.CourseRequestsByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "course" }, \'courseHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3685 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3687 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var date_submitted3688 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3689 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3690 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var course3691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var remark3692 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3693 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      offer3687.setContextValue('mk',bp['mk']);\n"
20130515 "      offer3687.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3685, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3686, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3687, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3688 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3690 }, { "colIndex": 6, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course3691 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3692, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3693, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.CourseRequestsByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.RequestsByCourse\n'
20130515 'Lino.courses.RequestsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/RequestsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "name": "content" }, \'contentHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3695 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var content3698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var date_submitted3699 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3700 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3701 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var remark3702 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3703 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer3697.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content3698.on('change',Lino.chooser_handler(offer3697,'content'));\n"
20130515 '      Lino.courses.RequestsByCourse.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3695, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3696, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3697, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3698 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3699 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3701 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3702, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3703, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.RequestsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.ParticipantsByCourse\n'
20130515 'Lino.courses.ParticipantsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/ParticipantsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2109 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/ParticipantsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2110 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended2111 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var workflow_buttons_disp2112 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2109, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2110, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended2111, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false } ];\n'
20130515 '    Lino.courses.ParticipantsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Participants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Participants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CandidatesByCourse\n'
20130515 'Lino.courses.CandidatesByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CandidatesByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "content" }, \'contentHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2115 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2116 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_submitted2117 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp2118 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content2119 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2115, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2116, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2117 }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 4, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2119 } ];\n'
20130515 '    Lino.courses.CandidatesByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Candidats",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Candidats",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.CompetencesByUser\n'
20130515 'Lino.newcomers.CompetencesByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/CompetencesByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno147 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty148 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/CompetencesByUser/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight149 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id150 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno147 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty148 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight149 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id150, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.CompetencesByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.CompetencesByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.CompetencesByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.CompetencesByUser.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.CompetencesByUser.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.MyCompetences\n'
20130515 'Lino.newcomers.MyCompetences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/MyCompetences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Mes Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno3705 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty3706 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/MyCompetences/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight3707 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id3708 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno3705 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3706 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight3707 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3708, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.MyCompetences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.MyCompetences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.MyCompetences.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.MyCompetences.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.MyCompetences.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.ClientsByFaculty\n'
20130515 'Lino.newcomers.ClientsByFaculty.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/ClientsByFaculty",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "broker" }, \'brokerHidden\', { "name": "address_column" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "nationality" }, \'nationalityHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 92,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp3710 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker3711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var address_column_disp3712 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3713 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3714 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3717 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3718 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3719 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3720 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr13721 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3722 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3723 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3724 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3725 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23726 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3727 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email3728 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3729 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3730 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3731 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3732 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3733 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3734 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3735 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13736 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23737 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3738 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3739 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3740 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3741 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23743 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3744 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3745 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3746 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3747 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3749 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3750 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3751 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3752 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var nationality3754 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/nationality", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var card_number3755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3756 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3757 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3758 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3759 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3760 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3761 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3762 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3763 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3764 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3765 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3766 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3767 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3768 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3769 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3770 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3771 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3772 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3773 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3774 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3776 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3777 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3778 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3779 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3780 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3781 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3717.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3717.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3718.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3716.on('change',Lino.chooser_handler(city3717,'country'));\n"
20130515 "      region3718.on('change',Lino.chooser_handler(city3717,'region'));\n"
20130515 "      country3716.on('change',Lino.chooser_handler(region3718,'country'));\n"
20130515 '      Lino.newcomers.ClientsByFaculty.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3711 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3713, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3716, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3717 }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3718 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3719 }, { "colIndex": 10, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3720 }, { "colIndex": 11, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13721 }, { "colIndex": 12, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3722 }, { "colIndex": 13, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3723 }, { "colIndex": 14, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3724 }, { "colIndex": 15, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3725 }, { "colIndex": 16, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23726 }, { "colIndex": 17, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3727 }, { "colIndex": 18, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3728 }, { "colIndex": 19, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3729 }, { "colIndex": 20, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3730 }, { "colIndex": 21, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3731 }, { "colIndex": 22, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3732 }, { "colIndex": 23, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3733, "dataIndex": "remarks" }, { "colIndex": 24, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 25, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3735 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13736 }, { "colIndex": 27, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23737 }, { "colIndex": 28, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3738 }, { "colIndex": 29, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3739 }, { "colIndex": 30, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3740 }, { "colIndex": 31, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3741 }, { "colIndex": 32, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3742 }, { "colIndex": 33, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23743, "dataIndex": "remarks2" }, { "colIndex": 34, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3744 }, { "colIndex": 35, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 36, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 37, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3747 }, { "colIndex": 38, "sortable": true, "header": "Lieu de naissance", "editable": true,'
20130515 ' "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3748 }, { "colIndex": 39, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3749, "dataIndex": "birth_country" }, { "colIndex": 40, "sortable": true, "header": "Etat civil", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3750 }, { "colIndex": 41, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3751 }, { "colIndex": 42, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3752, "dataIndex": "health_insurance" }, { "colIndex": 43, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3753, "dataIndex": "pharmacy" }, { "colIndex": 44, "sortable": true, "header": "Nationalit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'nationalityHidden\',\'Lino.countries.Countries.detail\'), "editor": nationality3754, "dataIndex": "nationality" }, { "colIndex": 45, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3755 }, { "colIndex": 46, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3756, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 47, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3757, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 48, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3758 }, { "colIndex": 49, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3759 }, { "colIndex": 50, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3760 }, { "colIndex": 51, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3761 }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3762, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 53, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3763, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 56, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3766, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 57, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3767 }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 60, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 61, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 62, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 63, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 64, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3774, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 65, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3775 }, { "colIndex": 66, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3776, "dataIndex": "obstacles" }, { "colIndex": 67, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3777, "dataIndex": "skills" }, { "colIndex": 68, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3778 }, { "colIndex": 69, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3779 }, { "colIndex": 70, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3780 }, { "colIndex": 71, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3781 } ];\n'
20130515 '    Lino.newcomers.ClientsByFaculty.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyIdentifyPersonRequests\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3783 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyIdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3785 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3786 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3787 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3788 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3789 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3790 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3791 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3792 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3793 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3794 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3795 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3797 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3798 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3801 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3783, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3784, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3793 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3794 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3795 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3796 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3797 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3798 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3799 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3800 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3801 }) ];\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyRequestsByPerson\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "type": "int", "name": "id" }, { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3804 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3805 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var id3806 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var environment3807 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3808 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3809 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3810 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3811 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3812 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3814 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3815 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3818 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3819 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3820 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3821 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3803 }, { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 2, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3806, "width": Lino.chars2width(6), "dataIndex": "id" }), { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3813 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3814 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3815 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3816 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3817 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3818 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3819 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3820 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3821 }) ];\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequestsByPerson\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3823 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3825 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3826 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3827 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3828 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3829 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3830 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3831 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3832 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3833 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3834 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3835 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3836 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3839 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3840 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3841 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3842 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3843 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3844 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3840.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3839.on('change',Lino.chooser_handler(purpose3840,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3823, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3824 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3833 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3834 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3835 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3836 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3837 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3838 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3840 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3841, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3842, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3843 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3844 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyManageAccessRequests\n'
20130515 'Lino.cbss.MyManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3846 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3847 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3848 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3849 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3850 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3851 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3852 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3853 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3854 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3855 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3856 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3857 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3858 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3859 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3860 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3862 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3863 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3864 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3865 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3866 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3867 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3863.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3862.on('change',Lino.chooser_handler(purpose3863,'sector'));\n"
20130515 '      Lino.cbss.MyManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3846, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3847, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3856 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3857 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3858 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3859 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3860 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3861 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3863 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3864, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3865, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3866 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3867 } ];\n'
20130515 '    Lino.cbss.MyManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequestsByPerson\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3869 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3870 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3872 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3873 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3874 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3875 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3876 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3877 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3878 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3869, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3870 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3871, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3872 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3873 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyRetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3880 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3883 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3884 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3885 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3886 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3887 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3888 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3889 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3880, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3881 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3882, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3883 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3884 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.UploadsByController\n'
20130515 'Lino.uploads.UploadsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/UploadsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "type" }, \'typeHidden\', { "name": "description" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3891 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var type3892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var description3893 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3895 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3896 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3897 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3898 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3899 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3900 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var valid_until3901 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3897.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3896.on('change',Lino.chooser_handler(owner_id3897,'owner_type'));\n"
20130515 '      Lino.uploads.UploadsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3891 }, { "colIndex": 1, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3892 }, { "colIndex": 2, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3893 }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3894 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3895, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3896 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3897 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3901, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.UploadsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.UploadsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByController\n'
20130515 'Lino.postings.PostingsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date708 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp711 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id712 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type713 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id714 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user715 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id714.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type713.on('change',Lino.chooser_handler(owner_id714,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date708, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner709, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state710 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id712, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type713 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id714 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user715 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project716, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByController.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByController",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByController\n'
20130515 'Lino.cal.TasksByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date719 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary720 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id722 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date719, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary720 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id722, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.TasksByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByController\n'
20130515 'Lino.outbox.MailsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Outgoing Mails",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent662 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox663 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject664 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project669 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date670 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var body671 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox663.refresh();\n'
20130515 "      owner_id667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body671.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type666.on('change',Lino.chooser_handler(owner_id667,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject664 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type666 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id667 }, { "colIndex": 6, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user668 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project669, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date670 }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body671, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MailsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Outgoing Mails",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Outgoing Mails",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class changes.ChangesByMaster\n'
20130515 'Lino.changes.ChangesByMaster.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/changes/ChangesByMaster",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Changes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "time" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "object" }, { "name": "diff" }, { "name": "object_type" }, \'object_typeHidden\', { "name": "object_id" }, \'object_idHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 10,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var time364 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    var user365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type366 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.lino.ChangeTypes });\n'
20130515 '    var object_disp367 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var diff368 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var object_type369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var object_id370 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_id", "method": "GET" }) }) });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      object_id370.setContextValue('object_type',record ? record.data['object_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      object_type369.on('change',Lino.chooser_handler(object_id370,'object_type'));\n"
20130515 '      Lino.changes.ChangesByMaster.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "time", "header": "time", "editable": true, "editor": time364 }, { "colIndex": 1, "sortable": true, "header": "Utilisateur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user365 }, { "colIndex": 2, "sortable": true, "header": "Change Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "type", "editor": type366 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "object", "header": "Object", "editable": false }, { "colIndex": 4, "sortable": false, "header": "Changes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": diff368, "dataIndex": "diff" }, { "colIndex": 5, "sortable": true, "header": "Object type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "object_type", "editor": object_type369 }, { "colIndex": 6, "sortable": true, "header": "object id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "object_id", "editor": object_id370 } ];\n'
20130515 '    Lino.changes.ChangesByMaster.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insertPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Changes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detailPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Changes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.changes.ChangesByMaster.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByController\n'
20130515 'Lino.cal.EventsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1477 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1478 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary1479 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1480 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1481 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1477, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1478 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1479 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1481, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.EventsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.Models\n'
20130515 'Lino.about.Models.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/Models",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Models",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "app" }, { "name": "name" }, { "name": "docstring" }, { "name": "rows" }, { "name": "detail_action" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var app_disp3903 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp3904 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp3905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows3906 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var detail_action_disp3907 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "app", "header": "app_label", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "docstring", "header": "docstring", "editable": false }, new Lino.NullNumberColumn({ "header": "Rows", "colIndex": 3, "sortable": false, "dataIndex": "rows", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "detail_action", "header": "detail_action", "editable": false } ];\n'
20130515 '    Lino.about.Models.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.detailPanel = Ext.extend(Lino.about.Models.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Models",\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/about/Models",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    Lino.about.Models.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.Models.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.about.Models.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.FieldsByModel\n'
20130515 'Lino.about.FieldsByModel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/FieldsByModel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Fields",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "verbose_name" }, { "name": "help_text_column" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_disp2434 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var verbose_name_disp2435 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var help_text_column_disp2436 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "verbose_name", "header": "verbose name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "help_text_column", "header": "help text", "editable": false } ];\n'
20130515 '    Lino.about.FieldsByModel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.FieldsByModel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.FieldsByModel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.SourceFiles\n'
20130515 'Lino.about.SourceFiles.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/SourceFiles",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Source files",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "module_name" }, { "type": "int", "name": "code_lines" }, { "type": "int", "name": "doc_lines" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var module_name3909 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var code_lines3910 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var doc_lines3911 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(5), "colIndex": 0, "sortable": false, "dataIndex": "module_name", "header": "module name", "editable": false }, new Lino.NullNumberColumn({ "header": "Code", "colIndex": 1, "sortable": false, "dataIndex": "code_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "doc", "colIndex": 2, "sortable": false, "dataIndex": "doc_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.about.SourceFiles.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.SourceFiles.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.SourceFiles.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.UsersWithClients\n'
20130515 'Lino.pcsw.UsersWithClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/UsersWithClients",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Agents et leurs clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "G1" }, { "name": "G2" }, { "name": "G4" }, { "name": "G4bis" }, { "name": "G9" }, { "name": "primary_clients" }, { "name": "active_clients" }, { "name": "row_total" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3913 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var G13914 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G23915 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G43916 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G4bis3917 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G93918 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var primary_clients3919 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var active_clients3920 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var row_total3921 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "user", "header": "Accompagnant", "editable": false }, new Lino.NullNumberColumn({ "header": "Bilan", "colIndex": 1, "sortable": false, "dataIndex": "G1", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Formation", "colIndex": 2, "sortable": false, "dataIndex": "G2", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Recherche", "colIndex": 3, "sortable": false, "dataIndex": "G4", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Travail", "colIndex": 4, "sortable": false, "dataIndex": "G4bis", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Standby", "colIndex": 5, "sortable": false, "dataIndex": "G9", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Dossiers complets", "colIndex": 6, "sortable": false, "dataIndex": "primary_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Clients actifs", "colIndex": 7, "sortable": false, "dataIndex": "active_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Total", "colIndex": 8, "sortable": false, "dataIndex": "row_total", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.pcsw.UsersWithClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.UsersWithClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.UsersWithClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class debts.SummaryTable\n'
20130515 'Lino.debts.SummaryTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/debts/SummaryTable",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "SummaryTable",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "desc" }, { "name": "amount" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 3,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var desc_disp3923 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var amount3924 = new Ext.form.NumberField({ "disabled": true, "decimalPrecision": 2, "decimalSeparator": "," });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "desc", "header": "Description", "editable": false }, new Lino.NullNumberColumn({ "width": Lino.chars2width(13), "colIndex": 1, "sortable": false, "dataIndex": "amount", "header": "Montant", "editable": false }) ];\n'
20130515 '    Lino.debts.SummaryTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.debts.SummaryTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.debts.SummaryTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonResult\n'
20130515 'Lino.cbss.IdentifyPersonResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/IdentifyPersonResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "national_id" }, { "name": "last_name" }, { "name": "first_name" }, { "name": "address" }, { "name": "birth_date" }, { "name": "birth_location" }, { "name": "civil_state" }, { "name": "gender" }, \'genderHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 10,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var national_id_disp2193 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var last_name_disp2194 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var first_name_disp2195 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_disp2196 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_date_disp2197 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_location_disp2198 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state_disp2199 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var gender2200 = new Lino.ChoicesFieldElement({ "disabled": true, "store": [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ] });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "national_id", "header": "NISS", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 1, "sortable": false, "dataIndex": "last_name", "header": "Nom de famille", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 2, "sortable": false, "dataIndex": "first_name", "header": "Pr\\u00e9nom", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 4, "sortable": false, "dataIndex": "birth_date", "header": "date de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "birth_location", "header": "Lieu de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 6, "sortable": false, "dataIndex": "civil_state", "header": "Etat civil", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 7, "sortable": false, "dataIndex": "gender", "header": "Sexe", "editable": false } ];\n'
20130515 '    Lino.cbss.IdentifyPersonResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsResult\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "group" }, { "name": "type" }, { "type": "date", "name": "since", "dateFormat": "d.m.Y" }, { "name": "info" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var group_disp2340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var type_disp2341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var since2342 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var info_disp2343 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(19), "colIndex": 0, "sortable": false, "dataIndex": "group", "header": "Groupe", "editable": false }, { "width": Lino.chars2width(6), "colIndex": 1, "sortable": false, "dataIndex": "type", "header": "TI", "editable": false }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Depuis", "dataIndex": "since", "width": Lino.chars2width(15) }, { "width": Lino.chars2width(51), "colIndex": 3, "sortable": false, "dataIndex": "info", "header": "Information", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.CalendarPanel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  return Lino.calendar_app.get_main_panel();\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestStates\n'
20130515 'Lino.courses.CourseRequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/courses/CourseRequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3926 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3927 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3928 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.courses.CourseRequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestStates.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingStates\n'
20130515 'Lino.postings.PostingStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/postings/PostingStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3930 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3931 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3932 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.postings.PostingStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.DurationUnits\n'
20130515 'Lino.cal.DurationUnits.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/DurationUnits",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DurationUnits",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3934 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3935 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3936 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.DurationUnits.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.DurationUnits.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.DurationUnits.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.Weekdays\n'
20130515 'Lino.cal.Weekdays.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/Weekdays",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Weekdays",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3938 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3939 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3940 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.Weekdays.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.Weekdays.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.Weekdays.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountTypes\n'
20130515 'Lino.accounts.AccountTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/accounts/AccountTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccountTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3942 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3943 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3944 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.accounts.AccountTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.CefLevel\n'
20130515 'Lino.cv.CefLevel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cv/CefLevel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CEF levels",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3946 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3947 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3948 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cv.CefLevel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.CefLevel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.CefLevel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.HowWell\n'
20130515 'Lino.properties.HowWell.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/HowWell",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "HowWell",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3950 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3951 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3952 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.HowWell.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.HowWell.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.HowWell.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidatureStates\n'
20130515 'Lino.jobs.CandidatureStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/jobs/CandidatureStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Candidature states",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3954 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3955 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3956 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.jobs.CandidatureStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidatureStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidatureStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientType\n'
20130515 'Lino.outbox.RecipientType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/outbox/RecipientType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RecipientType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3958 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3959 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3960 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.outbox.RecipientType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CityTypes\n'
20130515 'Lino.countries.CityTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/countries/CityTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CityTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3962 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3963 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3964 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.countries.CityTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CityTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CityTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.DoYouLike\n'
20130515 'Lino.properties.DoYouLike.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/DoYouLike",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DoYouLike",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3966 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3967 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3968 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.DoYouLike.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.DoYouLike.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.DoYouLike.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestLanguages\n'
20130515 'Lino.cbss.RequestLanguages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestLanguages",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RequestLanguages",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3970 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3971 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3972 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestLanguages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestLanguages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestLanguages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAction\n'
20130515 'Lino.cbss.ManageAction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/ManageAction",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ManageAction",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3974 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3975 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3976 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.ManageAction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.RefusalReasons\n'
20130515 'Lino.pcsw.RefusalReasons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/RefusalReasons",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RefusalReasons",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3978 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3979 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3980 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.RefusalReasons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.RefusalReasons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.RefusalReasons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestStates\n'
20130515 'Lino.cbss.RequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3982 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3983 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3984 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.ChangeTypes\n'
20130515 'Lino.lino.ChangeTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/ChangeTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Change Types",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3986 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3987 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3988 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.ChangeTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.ChangeTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.ChangeTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.AccessClasses\n'
20130515 'Lino.cal.AccessClasses.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/AccessClasses",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccessClasses",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3990 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3991 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3992 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.AccessClasses.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.AccessClasses.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.AccessClasses.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.QueryRegister\n'
20130515 'Lino.cbss.QueryRegister.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/QueryRegister",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "QueryRegister",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3994 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3995 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3996 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.QueryRegister.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.QueryRegister.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.QueryRegister.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.Genders\n'
20130515 'Lino.lino.Genders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/Genders",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Genders",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3998 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3999 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4000 = new Ext.No Lino in response
Retry userdocs/gen/screenshots/de/index.jpg (3 attempts left)
form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.Genders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Genders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.Genders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ResidenceType\n'
20130515 'Lino.pcsw.ResidenceType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/ResidenceType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ResidenceType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value4002 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name4003 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4004 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.ResidenceType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ResidenceType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ResidenceType.GridPanel(p);\n'
20130515 '});\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:12 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 731\r\nContent-Type: image/png\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '\x89PNG\r\n'
20130515 '\x1a\n'
20130515 '\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xffa\x00\x00\x00\x04gAMA\x00\x00\xaf\xc87\x05\x8a\xe9\x00\x00\x00\x19tEXtSoftware\x00Adobe ImageReadyq\xc9e<\x00\x00\x02mIDAT8\xcb\x8d\x93\xdfKSa\x18\xc7\xcf]\xf8w8o\xc4\xff H\x98\xd9*\xad\x81\x82\xcc\x0ba\x87\xe5\x8d\x81x\xa1\xc1\x06\x1b\xd8*\x18\xbaA\xb0\xb1\xd4K\xa1\x85\x16A\xb4@\x86\xac\xdc\xd9\x0fu"\xba\xd5\x86XK\xab9\xcb\xe5<\x9b\xdby\xb7\xb3}{\xcf[3\x073:\xf0\xb98\xef\xf3}>\xe7y^8\x1c\x00\xae\xceU\xf3;\xfd\xad\xa9\x88O;\x1d\xa9Q\xa0\xb5GJ\xda\xe9\xd5R\xaf-X\xbb|Op\x9e\xcf\xd6ix\xb9\xf1H(\x1f\x89%\xfc,H\xc8\xe6\x7fs$JH\xa4E\x98_\xed\xc3\xf0x\xa7x\xe5\xee\xebK\x17\n'
20130515 'zm\xa1\xe2\xc9)\xc1\xc6\x17\x99RA\xe43\xc1\xca\xae\x04\xa9R\xc5FZ\xc6\x837\xfbP\x1b\xfdO/\x14\xf4\xd8B%E\xb0I\x05\x9b_e\xac\xed\x95!|$H\x1d\x16\xa0Lvx|\x8an\xcbJ\xa5\xa9`rr\xb2\xa5\xc7\x16$\xb9\x02A\x8c~-vP\xfd3E\x19\xbe\x0f\xa7\xf0\xc6\xf3\xc8\xd1\xd5\xae\xdd\x0f\x10\xbd^\xdf\xd2 \xa0\xcd\x06J\x9e^\x16\x8e\xa9 qP\xc3{*\xd8\xa6\xa2\xe8^\x85\xad\xb1\xbcS\xa4\xb52\xae[\x05\x0c\x0e\x0e\xe6\xfb\xfb\xfb\rL@\x1b\xbbggg\x11\x8dFq{*\x8c,\x15$35$(\xb1oUl\xd1U\xc2t\x8a\x00]%K\x057\x1f\x86\x11\x08\x040>>\x0e\x8dF\xd3\xad\x08\xb6\xe9\x83L&\x03\xb3\xd9\xfc_(YA\x10000\xb0\xab\x08\x88,\xcbPX__\x87(\x8a\xff$\x14\n'
20130515 '\xa1\x9e\x1f\x1b\x1b\xabq\x16\x8b\x05\x84\x10\xc6\xe2\xe2"R\xa9\x14\x135C\xa9\xcd\xcf\xcf\x9f\xe5y\x9e\x07g2\x99\x90H$\x18n\xb7\x1b\xc9d\x12~\xbf\xbf)J\xc6\xe1p\x9c\xe5;;;\xc1MLL\xc0\xe7\xf31\xecv;\xe2\xf18\x96\x96\x96\x9a\x12\x8b\xc5`\xb5Z\xcf\xf2\xed\xed\xed\xe0\xe8\x1e\xf0z\xbd\x0c\x97\xcb\x05z\'\x0c\xa3\xd1\x88\xd1\xd1Q6f__\x1f\xba\xba\xba\xa0V\xab\xd9Y=\xdf\xd6\xd6\x06ndd\xa4\xea\xf1x\xd8\x81\xd2\xb8\xf0\xfc%\x96\xdf\x06\x9b\xf2l\xe1\x05:::Xvnn\x0e\xad\xad\xad\xe0\x0c\x06\xc3\xcc\xd0\xd0\xd0\xb6N\xa7\x03\xef\n'
20130515 '\xa3X"8:!\xf8A9\xccIHgK\xd8\xfb^\xc0\xa7\x8c\x88\xa2T\x06\xef\x0cC\xa5R)\xcd[\x14S\xc3\xbf\xc0\xbb"\xd5\xe1\'k\x18v\xff\xe5\x0ec\x95\xa1\xd4xg\xa4z\xbe\xe7\x17\xbb\x12\x04\xc8\xac\xfe[\x8d\x00\x00\x00\x00IEND\xaeB`\x82'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:12 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "data": { "coming_reminders": "<div class=\\"htmlText\\" style=\\"margin:5px\\"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 \\u00e0 09:40 [Draft]&nbsp;: Souper (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 116 })\\">AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 \\u00e0 10:20 [Communiqu\\u00e9]&nbsp;: Petit-d\\u00e9jeuner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 117 })\\">BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 \\u00e0 11:10 [Planif\\u00e9]&nbsp;: Rencontre (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 118 })\\">COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 \\u00e0 11:10 [Propos\\u00e9]&nbsp;: Interview (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 124 })\\">DOBBELSTEIN Doroth\\u00e9e (124)</a>)</li><li>Event #75 \\u00e0 13:30 [Draft]&nbsp;: Diner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 125 })\\">ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 \\u00e0 08:30 [Communiqu\\u00e9]&nbsp;: Souper (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 126 })\\">EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 \\u00e0 09:40 [Planif\\u00e9]&nbsp;: Petit-d\\u00e9jeuner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 127 })\\">EVERS Eberhart (127)</a>)</li></ul></div>", "welcome": "<div class=\\"htmlText\\" style=\\"margin:5px\\"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href=\\"javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ &quot;param_values&quot;: { &quot;unclear&quot;: true, &quot;dates_from&quot;: &quot;15.05.2013&quot;, &quot;stateHidden&quot;: null, &quot;assigned_toHidden&quot;: null, &quot;userHidden&quot;: 6, &quot;state&quot;: null, &quot;user&quot;: &quot;Alicia Allmanns&quot;, &quot;assigned_to&quot;: null, &quot;dates_to&quot;: &quot;16.05.2013&quot; }, &quot;base_params&quot;: {  } })\\">2 rendez-vous &#224; clarifier qui s\'approchent.</a></li></ul></div>", "missed_reminders": "<div class=\\"htmlText\\" style=\\"margin:5px\\"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 \\u00e0 08:30 [Propos\\u00e9]&nbsp;: Diner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 112 })\\">SAFFRE Luc (112)</a>)</li></ul></div>", "quick_links": "<p>Quick Links: <a href=\\"javascript:Lino.pcsw.Clients.detail.run(\'ext-comp-1081\')\\" title=\\"Open a detail window on this record\\">D&#233;tail Clients</a> <a href=\\"javascript:Lino.cal.CalendarPanel.grid.run(\'ext-comp-1081\')\\">Calendrier</a> <a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(\'ext-comp-1081\')\\">Clients</a> <a href=\\"javascript:Lino.isip.MyContracts.grid.run(\'ext-comp-1081\')\\">PIISs</a> <a href=\\"javascript:Lino.jobs.MyContracts.grid.run(\'ext-comp-1081\')\\">Contrats de travail</a></p>", "UsersWithClients": "<table bgcolor=\\"#ffffff\\" cellspacing=\\"3px\\" width=\\"100%\\"><thead><tr><th align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"10\\"><a href=\\"/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D\\">Accompagnant</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D\\">Bilan</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D\\">Formation</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D\\">Recherche</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D\\">Travail</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D\\">Standby</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D\\">Dossiers complets</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D\\">Clients actifs</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D\\">Total</a></th></tr></thead><tbody><tr><td align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><b>Alicia Allmanns</b></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" /><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" /><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Recherche&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 3, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">2</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Travail&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 4, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">2</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Standby&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 5, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;cl'
20130515 'ient_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">1</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: true, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: true, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: null, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">7</a></td></tr><tr><td align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><b>Hubert Huppertz</b></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Bilan&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 1, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Formation&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 2, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Recherche&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 3, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Travail&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 4, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Standby&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 5, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;p'
20130515 'aram_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: true, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">10</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: true, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">13</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: null, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">23</a></td></tr><tr><td align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><b>M&#233;lanie M&#233;lard</b></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Bilan&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 1, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Formation&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 2, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Recherche&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 3, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Travail&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 4, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">2</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Standby&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 5, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden'
20130515 '&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: true, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">13</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: true, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">13</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: falseLino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.lino.Home.show.run(null,{ "record_id": -99998 })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen50" style="display: none; "></div><div id="ext-comp-1098" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-header x-unselectable" id="ext-gen46" style="-webkit-user-select: none; "><span class="x-window-header-text"></span></div><div class="x-window-bwrap" id="ext-gen47"><div class="x-window-body" id="ext-gen48" style="width: 1018px; height: 711px; "><div id="ext-comp-1081" class="x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen52"><form class="x-panel-body x-panel-body-noheader x-form" method="POST" id="ext-gen45" style="width: 1012px; height: 682px; "><div id="ext-comp-1093" class=" x-panel x-panel-noborder" style="width: 1012px; "><div class="x-panel-tl"><div class="x-panel-tr"><div class="x-panel-tc"></div></div></div><div class="x-panel-bwrap" id="ext-gen58"><div class="x-panel-ml"><div class="x-panel-mr"><div class="x-panel-mc" id="ext-gen61"><div class="x-panel-body x-panel-body-noborder x-box-layout-ct" id="ext-gen59" style="width: 996px; height: 669px; "><div class="x-box-inner" id="ext-gen63" style="width: 996px; height: 669px; "><div id="ext-comp-1083" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-panel-body-noheader" id="ext-gen65" style="overflow-x: hidden; width: 992px; height: 21px; "><div id="ext-comp-1082" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 21px; "><p>Quick Links: <a href="javascript:Lino.pcsw.Clients.detail.run('ext-comp-1081')" title="Open a detail window on this record">Détail Clients</a> <a href="javascript:Lino.cal.CalendarPanel.grid.run('ext-comp-1081')">Calendrier</a> <a href="javascript:Lino.pcsw.IntegClients.grid.run('ext-comp-1081')">Clients</a> <a href="javascript:Lino.isip.MyContracts.grid.run('ext-comp-1081')">PIISs</a> <a href="javascript:Lino.jobs.MyContracts.grid.run('ext-comp-1081')">Contrats de travail</a></p></div></div></div></div><div id="ext-comp-1085" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 21px; "><div class="x-panel-header x-unselectable" id="ext-gen67" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen70">Bienvenue</span></div><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body" id="ext-gen69" style="overflow-x: hidden; width: 992px; height: 43px; "><div id="ext-comp-1084" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 43px; "><div class="htmlText" style="margin:5px"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href='javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ "param_values": { "unclear": true, "dates_from": "15.05.2013", "stateHidden": null, "assigned_toHidden": null, "userHidden": 6, "state": null, "user": "Alicia Allmanns", "assigned_to": null, "dates_to": "16.05.2013" }, "base_params": {  } })'>2 rendez-vous à clarifier qui s'approchent.</a></li></ul></div></div></div></div></div><div id="ext-comp-1087" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 90px; "><div class="x-panel-header x-unselectable" id="ext-gen72" style="-webkit-user-select: none; "><div class="x-tool x-tool-up" id="ext-gen75">&nbsp;</div><span class="x-panel-header-text" id="ext-gen76">Agents et leurs clients</span></div><div class="x-panel-bwrap" id="ext-gen73"><div class="x-panel-body" id="ext-gen74" style="overflow-x: hidden; width: 992px; height: 165px; "><div id="ext-comp-1086" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 165px; "><table bgcolor="#ffffff" cellspacing="3px" width="100%"><thead><tr><th align="left" bgcolor="#eeeeee" valign="top" width="10"><a href="/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Accompagnant</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Bilan</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Formation</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Recherche</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Travail</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Standby</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Dossiers complets</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Clients actifs</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Total</a></th></tr></thead><tbody><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Alicia Allmanns</b></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>1</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>7</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Hubert Huppertz</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>10</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>23</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Mélanie Mélard</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>22</a></td></tr></tbody></table></div></div></div></div><div id="ext-comp-1092" class=" x-panel x-panel-noborder x-box-item" style="width: 996px; left: 0px; top: 281px; "><div class="x-panel-bwrap" id="ext-gen78"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-box-layout-ct" id="ext-gen79" style="width: 992px; height: 388px; "><div class="x-box-inner" id="ext-gen81" style="width: 992px; height: 388px; "><div id="ext-comp-1089" class="x-panel x-box-item" style="width: 496px; left: 0px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen82" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen85">Rappels à venir</span></div><div class="x-panel-bwrap" id="ext-gen83"><div class="x-panel-body" id="ext-gen84" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1088" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 à 09:40 [Draft]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 116 })'>AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 à 10:20 [Communiqué]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 117 })'>BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 à 11:10 [Planifé]&nbsp;: Rencontre (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 118 })'>COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 à 11:10 [Proposé]&nbsp;: Interview (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 124 })'>DOBBELSTEIN Dorothée (124)</a>)</li><li>Event #75 à 13:30 [Draft]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 125 })'>ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 à 08:30 [Communiqué]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 126 })'>EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 à 09:40 [Planifé]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 127 })'>EVERS Eberhart (127)</a>)</li></ul></div></div></div></div></div><div id="ext-comp-1091" class="x-panel x-box-item" style="width: 496px; left: 496px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen87" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen90">Rappels ratés</span></div><div class="x-panel-bwrap" id="ext-gen88"><div class="x-panel-body" id="ext-gen89" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1090" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 à 08:30 [Proposé]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 112 })'>SAFFRE Luc (112)</a>)</li></ul></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-panel-bl x-panel-nofooter" id="ext-gen60"><div class="x-panel-br"><div class="x-panel-bc"></div></div></div></div></div></form><div class="x-panel-bbar" id="ext-gen53" style="width: 1018px; "><div id="ext-comp-1097" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1012px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen56"><table id="ext-comp-1094" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen57" class=" x-btn-text x-tbar-print">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen49">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen92" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen93" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen94" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen95" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen96" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen97" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen98" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen99" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1098-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/de/index.jpg (2 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.lino.Home.show.run(null,{ "record_id": -99998 })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen50" style="display: none; "></div><div id="ext-comp-1098" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-header x-unselectable" id="ext-gen46" style="-webkit-user-select: none; "><span class="x-window-header-text"></span></div><div class="x-window-bwrap" id="ext-gen47"><div class="x-window-body" id="ext-gen48" style="width: 1018px; height: 711px; "><div id="ext-comp-1081" class="x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen52"><form class="x-panel-body x-panel-body-noheader x-form" method="POST" id="ext-gen45" style="width: 1012px; height: 682px; "><div id="ext-comp-1093" class=" x-panel x-panel-noborder" style="width: 1012px; "><div class="x-panel-tl"><div class="x-panel-tr"><div class="x-panel-tc"></div></div></div><div class="x-panel-bwrap" id="ext-gen58"><div class="x-panel-ml"><div class="x-panel-mr"><div class="x-panel-mc" id="ext-gen61"><div class="x-panel-body x-panel-body-noborder x-box-layout-ct" id="ext-gen59" style="width: 996px; height: 669px; "><div class="x-box-inner" id="ext-gen63" style="width: 996px; height: 669px; "><div id="ext-comp-1083" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-panel-body-noheader" id="ext-gen65" style="overflow-x: hidden; width: 992px; height: 21px; "><div id="ext-comp-1082" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 21px; "><p>Quick Links: <a href="javascript:Lino.pcsw.Clients.detail.run('ext-comp-1081')" title="Open a detail window on this record">Détail Clients</a> <a href="javascript:Lino.cal.CalendarPanel.grid.run('ext-comp-1081')">Calendrier</a> <a href="javascript:Lino.pcsw.IntegClients.grid.run('ext-comp-1081')">Clients</a> <a href="javascript:Lino.isip.MyContracts.grid.run('ext-comp-1081')">PIISs</a> <a href="javascript:Lino.jobs.MyContracts.grid.run('ext-comp-1081')">Contrats de travail</a></p></div></div></div></div><div id="ext-comp-1085" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 21px; "><div class="x-panel-header x-unselectable" id="ext-gen67" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen70">Bienvenue</span></div><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body" id="ext-gen69" style="overflow-x: hidden; width: 992px; height: 43px; "><div id="ext-comp-1084" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 43px; "><div class="htmlText" style="margin:5px"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href='javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ "param_values": { "unclear": true, "dates_from": "15.05.2013", "stateHidden": null, "assigned_toHidden": null, "userHidden": 6, "state": null, "user": "Alicia Allmanns", "assigned_to": null, "dates_to": "16.05.2013" }, "base_params": {  } })'>2 rendez-vous à clarifier qui s'approchent.</a></li></ul></div></div></div></div></div><div id="ext-comp-1087" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 90px; "><div class="x-panel-header x-unselectable" id="ext-gen72" style="-webkit-user-select: none; "><div class="x-tool x-tool-up" id="ext-gen75">&nbsp;</div><span class="x-panel-header-text" id="ext-gen76">Agents et leurs clients</span></div><div class="x-panel-bwrap" id="ext-gen73"><div class="x-panel-body" id="ext-gen74" style="overflow-x: hidden; width: 992px; height: 165px; "><div id="ext-comp-1086" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 165px; "><table bgcolor="#ffffff" cellspacing="3px" width="100%"><thead><tr><th align="left" bgcolor="#eeeeee" valign="top" width="10"><a href="/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Accompagnant</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Bilan</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Formation</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Recherche</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Travail</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Standby</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Dossiers complets</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Clients actifs</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Total</a></th></tr></thead><tbody><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Alicia Allmanns</b></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>1</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>7</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Hubert Huppertz</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>10</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>23</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Mélanie Mélard</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>22</a></td></tr></tbody></table></div></div></div></div><div id="ext-comp-1092" class=" x-panel x-panel-noborder x-box-item" style="width: 996px; left: 0px; top: 281px; "><div class="x-panel-bwrap" id="ext-gen78"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-box-layout-ct" id="ext-gen79" style="width: 992px; height: 388px; "><div class="x-box-inner" id="ext-gen81" style="width: 992px; height: 388px; "><div id="ext-comp-1089" class="x-panel x-box-item" style="width: 496px; left: 0px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen82" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen85">Rappels à venir</span></div><div class="x-panel-bwrap" id="ext-gen83"><div class="x-panel-body" id="ext-gen84" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1088" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 à 09:40 [Draft]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 116 })'>AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 à 10:20 [Communiqué]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 117 })'>BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 à 11:10 [Planifé]&nbsp;: Rencontre (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 118 })'>COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 à 11:10 [Proposé]&nbsp;: Interview (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 124 })'>DOBBELSTEIN Dorothée (124)</a>)</li><li>Event #75 à 13:30 [Draft]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 125 })'>ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 à 08:30 [Communiqué]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 126 })'>EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 à 09:40 [Planifé]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 127 })'>EVERS Eberhart (127)</a>)</li></ul></div></div></div></div></div><div id="ext-comp-1091" class="x-panel x-box-item" style="width: 496px; left: 496px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen87" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen90">Rappels ratés</span></div><div class="x-panel-bwrap" id="ext-gen88"><div class="x-panel-body" id="ext-gen89" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1090" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 à 08:30 [Proposé]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 112 })'>SAFFRE Luc (112)</a>)</li></ul></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-panel-bl x-panel-nofooter" id="ext-gen60"><div class="x-panel-br"><div class="x-panel-bc"></div></div></div></div></div></form><div class="x-panel-bbar" id="ext-gen53" style="width: 1018px; "><div id="ext-comp-1097" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1012px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen56"><table id="ext-comp-1094" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen57" class=" x-btn-text x-tbar-print">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen49">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen92" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen93" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen94" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen95" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen96" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen97" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen98" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen99" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1098-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/de/index.jpg (1 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.lino.Home.show.run(null,{ "record_id": -99998 })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen50" style="display: none; "></div><div id="ext-comp-1098" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-header x-unselectable" id="ext-gen46" style="-webkit-user-select: none; "><span class="x-window-header-text"></span></div><div class="x-window-bwrap" id="ext-gen47"><div class="x-window-body" id="ext-gen48" style="width: 1018px; height: 711px; "><div id="ext-comp-1081" class="x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen52"><form class="x-panel-body x-panel-body-noheader x-form" method="POST" id="ext-gen45" style="width: 1012px; height: 682px; "><div id="ext-comp-1093" class=" x-panel x-panel-noborder" style="width: 1012px; "><div class="x-panel-tl"><div class="x-panel-tr"><div class="x-panel-tc"></div></div></div><div class="x-panel-bwrap" id="ext-gen58"><div class="x-panel-ml"><div class="x-panel-mr"><div class="x-panel-mc" id="ext-gen61"><div class="x-panel-body x-panel-body-noborder x-box-layout-ct" id="ext-gen59" style="width: 996px; height: 669px; "><div class="x-box-inner" id="ext-gen63" style="width: 996px; height: 669px; "><div id="ext-comp-1083" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-panel-body-noheader" id="ext-gen65" style="overflow-x: hidden; width: 992px; height: 21px; "><div id="ext-comp-1082" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 21px; "><p>Quick Links: <a href="javascript:Lino.pcsw.Clients.detail.run('ext-comp-1081')" title="Open a detail window on this record">Détail Clients</a> <a href="javascript:Lino.cal.CalendarPanel.grid.run('ext-comp-1081')">Calendrier</a> <a href="javascript:Lino.pcsw.IntegClients.grid.run('ext-comp-1081')">Clients</a> <a href="javascript:Lino.isip.MyContracts.grid.run('ext-comp-1081')">PIISs</a> <a href="javascript:Lino.jobs.MyContracts.grid.run('ext-comp-1081')">Contrats de travail</a></p></div></div></div></div><div id="ext-comp-1085" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 21px; "><div class="x-panel-header x-unselectable" id="ext-gen67" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen70">Bienvenue</span></div><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body" id="ext-gen69" style="overflow-x: hidden; width: 992px; height: 43px; "><div id="ext-comp-1084" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 43px; "><div class="htmlText" style="margin:5px"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href='javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ "param_values": { "unclear": true, "dates_from": "15.05.2013", "stateHidden": null, "assigned_toHidden": null, "userHidden": 6, "state": null, "user": "Alicia Allmanns", "assigned_to": null, "dates_to": "16.05.2013" }, "base_params": {  } })'>2 rendez-vous à clarifier qui s'approchent.</a></li></ul></div></div></div></div></div><div id="ext-comp-1087" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 90px; "><div class="x-panel-header x-unselectable" id="ext-gen72" style="-webkit-user-select: none; "><div class="x-tool x-tool-up" id="ext-gen75">&nbsp;</div><span class="x-panel-header-text" id="ext-gen76">Agents et leurs clients</span></div><div class="x-panel-bwrap" id="ext-gen73"><div class="x-panel-body" id="ext-gen74" style="overflow-x: hidden; width: 992px; height: 165px; "><div id="ext-comp-1086" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 165px; "><table bgcolor="#ffffff" cellspacing="3px" width="100%"><thead><tr><th align="left" bgcolor="#eeeeee" valign="top" width="10"><a href="/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Accompagnant</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Bilan</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Formation</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Recherche</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Travail</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Standby</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Dossiers complets</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Clients actifs</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb17a60c%3E%7D">Total</a></th></tr></thead><tbody><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Alicia Allmanns</b></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>1</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>7</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Hubert Huppertz</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>10</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>23</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Mélanie Mélard</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>22</a></td></tr></tbody></table></div></div></div></div><div id="ext-comp-1092" class=" x-panel x-panel-noborder x-box-item" style="width: 996px; left: 0px; top: 281px; "><div class="x-panel-bwrap" id="ext-gen78"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-box-layout-ct" id="ext-gen79" style="width: 992px; height: 388px; "><div class="x-box-inner" id="ext-gen81" style="width: 992px; height: 388px; "><div id="ext-comp-1089" class="x-panel x-box-item" style="width: 496px; left: 0px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen82" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen85">Rappels à venir</span></div><div class="x-panel-bwrap" id="ext-gen83"><div class="x-panel-body" id="ext-gen84" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1088" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 à 09:40 [Draft]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 116 })'>AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 à 10:20 [Communiqué]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 117 })'>BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 à 11:10 [Planifé]&nbsp;: Rencontre (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 118 })'>COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 à 11:10 [Proposé]&nbsp;: Interview (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 124 })'>DOBBELSTEIN Dorothée (124)</a>)</li><li>Event #75 à 13:30 [Draft]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 125 })'>ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 à 08:30 [Communiqué]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 126 })'>EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 à 09:40 [Planifé]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 127 })'>EVERS Eberhart (127)</a>)</li></ul></div></div></div></div></div><div id="ext-comp-1091" class="x-panel x-box-item" style="width: 496px; left: 496px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen87" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen90">Rappels ratés</span></div><div class="x-panel-bwrap" id="ext-gen88"><div class="x-panel-body" id="ext-gen89" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1090" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 à 08:30 [Proposé]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 112 })'>SAFFRE Luc (112)</a>)</li></ul></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-panel-bl x-panel-nofooter" id="ext-gen60"><div class="x-panel-br"><div class="x-panel-bc"></div></div></div></div></div></form><div class="x-panel-bbar" id="ext-gen53" style="width: 1018px; "><div id="ext-comp-1097" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1012px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen56"><table id="ext-comp-1094" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen57" class=" x-btn-text x-tbar-print">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen49">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen92" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen93" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen94" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen95" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen96" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen97" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen98" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen99" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1098-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Giving up userdocs/gen/screenshots/de/index.jpg
Rendering to userdocs/gen/screenshots/de/index.jpg false
Loading http://127.0.0.1:8000/api/cal/CalendarPanel?lng=de to userdocs/gen/screenshots/de/cal.CalendarPanel.jpg
, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: null, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">22</a></td></tr></tbody></table>", "disabled_fields": { "UsersWithClients": true }, "disabled_actions": {  } }, "id": -99998, "title": "D\\u00e9part" }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:15 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: text/html; charset=utf-8\r\nContent-Language: fr\r\n\r\n'
20130515 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html><head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<title id="title">Lino-Welfare</title>\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css" />\n<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css" />\n<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css" />\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>\n<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>\n<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>\n<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>\n<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>\n<script language="javascript" type="text/javascript">\ntinymce.init({\n        theme : "advanced"\n        // , mode : "textareas"\n});\n</script>\n<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filteropened auth!
/StringFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>\n<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>\n<script type="text/javascript">\nExt.onReady(function(){\nLino.set_subst_user();\nLino.user = { "name": "Alicia Allmanns", "id": 6 };\nLino.main_menu = Lino.main_menu.concat([\'->\',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);\n  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});\n  Lino.viewport.render("body");\nLino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })\n}); // end of onReady()\n</script></head><body>\n<div id="body"></div>\n</body></html>'
20130515 authenticate alicia,1234
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:15 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\nSet-Cookie:  sessionid=e07fxz8yy1dun2ycjnyntdts1a1bln4m; expires=Wed, 29-May-2013 08:45:15 GMT; httponly; Max-Age=1209600; Path=/\r\n\r\n'
20130515 '{ "message": "Now logged in as u\'alicia\'", "success": true }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:15 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Tue, 19 Mar 2013 15:33:52 GMT\r\nContent-Length: 7750\r\nContent-Type: text/css\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\r\n'
20130515 ' Copyright 2009-2013 Luc Saffre\r\n'
20130515 ' This file is part of the Lino project.\r\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \r\n'
20130515 ' it under the terms of the GNU General Public License as published by\r\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\r\n'
20130515 ' (at your option) any later version.\r\n'
20130515 ' Lino is distributed in the hope that it will be useful, \r\n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \r\n'
20130515 ' GNU General Public License for more details.\r\n'
20130515 ' You should have received a copy of the GNU General Public License\r\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'http://stackoverflow.com/questions/2106104/word-wrap-grid-cells-in-ext-js \r\n'
20130515 'e.g. welfare.jobs.NewJobsOverview needs\r\n'
20130515 '*/\r\n'
20130515 '/* \r\n'
20130515 '.x-grid3-cell-inner {\r\n'
20130515 '  /* white-space: normal; changed from nowrap \r\n'
20130515 '  height:18px; \r\n'
20130515 '  overflow:hidden;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-grid3-hd-inner {\r\n'
20130515 '  white-space: normal; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*.lino-phantom-row table.x-grid3-row-table {\r\n'
20130515 '\tcolor: blue; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '.lino-phantom-row td {\r\n'
20130515 '\t/* font-style: italic; */\r\n'
20130515 '\tcolor:white;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-item-disabled, .x-tree-node-disabled, .x-date-disabled\r\n'
20130515 '*/\r\n'
20130515 '.x-item-disabled {\r\n'
20130515 '  color: blue; \r\n'
20130515 '  /*   opacity: 1;  \r\n'
20130515 '  font-weight: bold; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-item-disabled * {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '  /*font-weight: bold !important; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-noicon {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '.x-btn-pressed {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-text {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-menu-active {\r\n'
20130515 "\tcursor: 'wait';\r\n"
20130515 "\tcolor:'red';\r\n"
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* See blog/2011/0603\r\n'
20130515 '*/\r\n'
20130515 '.x-form-item-label{\r\n'
20130515 '    white-space: nowrap; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-form-field { padding: 10px; }\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-panel-body-noheader { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '.x-panel-body { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* TinyMCE specific rules */\r\n'
20130515 '/* \r\n'
20130515 'body.mceContentBody {\r\n'
20130515 '  color: red !important; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 'body.mceNonEditable {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 '\r\n'
20130515 'To display "normal" HTML inside an ExtJS component, \r\n'
20130515 'wrap it into a <div class="htmlText">.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.htmlText {\r\n'
20130515 '\tfont-family: arial,tahoma;\r\n'
20130515 '}\r\n'
20130515 '.htmlText h1 {\r\n'
20130515 '\tfont-size:16px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:12px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText h2 {\r\n'
20130515 '\tfont-size:13px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:10px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText td,th {\r\n'
20130515 '\tpadding:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText p {\r\n'
20130515 '\tmargin-top:0px;\r\n'
20130515 '\tmargin-bottom:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ol {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: decimal; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ul {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: square; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText strong {\r\n'
20130515 '\tfont-weight:bold;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText em {\r\n'
20130515 '\tfont-style: italic;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to http://de.selfhtml.org/css/formate/zentrale.htm\r\n'
20130515 '*/\r\n'
20130515 'table.htmlText tr td {\r\n'
20130515 '\tvertical-align: middle;\r\n'
20130515 '\ttext-align: center;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'The following are \r\n'
20130515 "Alexander Dawson's CSS tooltips\r\n"
20130515 'from <http://sixrevisions.com/css/css-only-tooltips/>,\r\n'
20130515 'adapted for usage in an ExtJS application.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-form-item-label .tooltip {\r\n'
20130515 '\tborder-bottom: 1px dotted #000000; color: #000000; outline: none;\r\n'
20130515 '\tcursor: help; \r\n'
20130515 '\ttext-decoration: none;\r\n'
20130515 '\tposition: relative;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip span {\r\n'
20130515 '\tmargin-left: -999em;\r\n'
20130515 '\tposition: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover span {\r\n'
20130515 '\tborder-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; \r\n'
20130515 '\tbox-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); \r\n'
20130515 '\t-moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);\r\n'
20130515 '\tfont-family: Calibri, Tahoma, Geneva, sans-serif;\r\n'
20130515 '\tposition: absolute; left: 1em; top: 2em; z-index: 99;\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '    white-space: normal; \r\n'
20130515 '\tmargin-left: 0; width: 250px;\r\n'
20130515 '\t\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover img {\r\n'
20130515 '\tborder: 0; margin: -10px 0 0 -55px;\r\n'
20130515 '\tfloat: left; position: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover em {\r\n'
20130515 '\tfont-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold;\r\n'
20130515 '\tdisplay: block; padding: 0.2em 0 0.6em 0;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .classic { padding: 0.8em 1em; }\r\n'
20130515 '.x-form-item-label .custom { padding: 0.5em 0.8em 0.8em 2em; }\r\n'
20130515 '.x-form-item-label * html a:hover { background: transparent; }\r\n'
20130515 '.x-form-item-label .classic {background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '.x-form-item-label .critical { background: #FFCCAA; border: 1px solid #FF3334;\t}\r\n'
20130515 '.x-form-item-label .help { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .info { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .warning { background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 ' 20120229 For css tooltips we need to override some CSS rules of ExtJS.\r\n'
20130515 ' set all overflows \r\n'
20130515 " to 'visible' for CSS tooltips.\r\n"
20130515 " I don't really understand it, and it doesn't yet work,\r\n"
20130515 " but it doesn't seem to  cause any problem.\r\n"
20130515 ' \r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: hidden;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-body .x-panel-body-noheader {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-bwrap {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-box-inner {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-fieldset .x-form-label-top .x-box-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-tip \r\n'
20130515 '  .x-tip-tl\r\n'
20130515 '    .x-tip-tr\r\n'
20130515 '      .x-tip-tc\r\n'
20130515 '        .x-tip-header\r\n'
20130515 '          .x-tip-header-text\r\n'
20130515 '  .x-tip-bwrap\r\n'
20130515 '    .x-tip-ml\r\n'
20130515 '      .x-tip-mr\r\n'
20130515 '        .x-tip-mc\r\n'
20130515 '          .x-tip-body\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: #FFFFAA; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-header-text { border: 0; }\r\n'
20130515 '\r\n'
20130515 '.x-tip div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-ml div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mr div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mc div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-body div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* border: 1px solid #FFAD33;  */\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '.x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/mjames/delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '/*\r\n'
20130515 '.x-item-disabled .x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/default/grid/delete-disabled.gif) !important;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-tbar-new{\r\n'
20130515 '\tbackground-image: url(images/mjames/add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 'ShowDetailAction\r\n'
20130515 '$a.icon_name\r\n'
20130515 '$a.icon_file\r\n'
20130515 '*/\r\n'
20130515 '.x-tbar-detail{\r\n'
20130515 '\tbackground-image: url(images/mjames/application_form.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-save{\r\n'
20130515 '\tbackground-image: url(images/mjames/disk.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-email_add{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-email_send{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_go.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-create-postings{\r\n'
20130515 '\tbackground-image: url(images/mjames/script_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-calendar{\r\n'
20130515 '\tbackground-image: url(images/mjames/calendar.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-print{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-clearcache{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer_delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-duplicate{\r\n'
20130515 '\tbackground-image: url(images/mjames/arrow_divide.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-pdf{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_white_acrobat.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-html{\r\n'
20130515 '\tbackground-image: url(images/mjames/html.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-csv{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_excel.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-vcard{\r\n'
20130515 '\tbackground-image: url(images/mjames/vcard.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-done{\r\n'
20130515 '\tbackground-image: url(images/mjames/accept.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-parameters{\r\n'
20130515 '\tbackground-image: url(images/mjames/database_gear.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to Animal in \r\n'
20130515 'http://www.sencha.com/forum/showthread.php?70195-NumberField-and-Right-Alignment\r\n'
20130515 '*/\r\n'
20130515 '.x-form-num-field {\r\n'
20130515 '    text-align: right;\r\n'
20130515 '}'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:15 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 359788\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible\n'
20130515 ' * Extensible core utilities and functions.\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 '(function(){\n'
20130515 '    \n'
20130515 "    Ext.ns('Ext.ensible.ux', 'Ext.ensible.sample', 'Ext.ensible.plugins', 'Ext.ensible.cal');\n"
20130515 '    \n'
20130515 '    Ext.apply(Ext.ensible, {\n'
20130515 '        /**\n'
20130515 '         * The version of the framework\n'
20130515 '         * @type String\n'
20130515 '         */\n'
20130515 "        version : '1.0.1',\n"
20130515 '        /**\n'
20130515 '         * The version of the framework, broken out into its numeric parts. This returns an\n'
20130515 '         * object that contains the following integer properties: major, minor and patch.\n'
20130515 '         * @type Object\n'
20130515 '         */\n'
20130515 '        versionDetails : {\n'
20130515 '            major: 1,\n'
20130515 '            minor: 0,\n'
20130515 '            patch: 1\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        hasBorderRadius : !(Ext.isIE || Ext.isOpera),\n'
20130515 '        \n'
20130515 '        log : function(s){\n'
20130515 '            //console.log(s);\n'
20130515 '        },\n'
20130515 '    \n'
20130515 '       /**\n'
20130515 '        * @class Ext.ensible.cal.Date\n'
20130515 '        * @extends Object\n'
20130515 '        * <p>Contains utility date functions used by the calendar components.</p>\n'
20130515 '        * @singleton\n'
20130515 '        */\n'
20130515 '\t    Date : {\n'
20130515 '            /**\n'
20130515 '             * Determines whether times used throughout all Extensible components should be displayed as\n'
20130515 '             * 12 hour times with am/pm (default) or 24 hour / military format. Note that some locale files\n'
20130515 '             * may override this value by default.\n'
20130515 '             * @type Boolean\n'
20130515 '             * @property use24HourTime\n'
20130515 '             */\n'
20130515 '            use24HourTime : false,\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns the time duration between two dates in the specified units. For finding the number\n'
20130515 '             * of calendar days (ignoring time) between two dates use {@link Ext.ensible.Date.diffDays diffDays} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 "             * @param {String} unit (optional) The time unit to return. Valid values are 'ms' (milliseconds, the default), 's' (seconds),\n"
20130515 "             * 'm' (minutes) or 'h' (hours).\n"
20130515 '             * @return {Number} The time difference between the dates in the units specified by the unit param\n'
20130515 '             */\n'
20130515 '            diff : function(start, end, unit){\n'
20130515 '                var denom = 1,\n'
20130515 '                    diff = end.getTime() - start.getTime();\n'
20130515 '                \n'
20130515 "                if(unit == 's'){ \n"
20130515 '                    denom = 1000;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'm'){\n"
20130515 '                    denom = 1000*60;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'h'){\n"
20130515 '                    denom = 1000*60*60;\n'
20130515 '                }\n'
20130515 '                return Math.round(diff/denom);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Calculates the number of calendar days between two dates, ignoring time values. \n'
20130515 '             * A time span that starts at 11pm (23:00) on Monday and ends at 1am (01:00) on Wednesday is \n'
20130515 '             * only 26 total hours, but it spans 3 calendar days, so this function would return 3. For the\n'
20130515 '             * exact time difference, use {@link Ext.ensible.Date.diff diff} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 '             * @return {Number} The number of calendar days difference between the dates\n'
20130515 '             */\n'
20130515 '            diffDays : function(start, end){\n'
20130515 '                var day = 1000*60*60*24,\n'
20130515 '                    diff = end.clearTime(true).getTime() - start.clearTime(true).getTime();\n'
20130515 '                \n'
20130515 '                return Math.ceil(diff/day);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 "             * Copies the time value from one date object into another without altering the target's \n"
20130515 '             * date value. This function returns a new Date instance without modifying either original value.\n'
20130515 '             * @param {Date} fromDt The original date from which to copy the time\n'
20130515 '             * @param {Date} toDt The target date to copy the time to\n'
20130515 '             * @return {Date} The new date/time value\n'
20130515 '             */\n'
20130515 '            copyTime : function(fromDt, toDt){\n'
20130515 '                var dt = toDt.clone();\n'
20130515 '                dt.setHours(\n'
20130515 '                    fromDt.getHours(),\n'
20130515 '                    fromDt.getMinutes(),\n'
20130515 '                    fromDt.getSeconds(),\n'
20130515 '                    fromDt.getMilliseconds());\n'
20130515 '                \n'
20130515 '                return dt;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Compares two dates and returns a value indicating how they relate to each other.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Boolean} precise (optional) If true, the milliseconds component is included in the comparison,\n'
20130515 '             * else it is ignored (the default).\n'
20130515 '             * @return {Number} The number of milliseconds difference between the two dates. If the dates are equal\n'
20130515 '             * this will be 0.  If the first date is earlier the return value will be positive, and if the second date\n'
20130515 '             * is earlier the value will be negative.\n'
20130515 '             */\n'
20130515 '            compare : function(dt1, dt2, precise){\n'
20130515 '                var d1 = dt1, d2 = dt2;\n'
20130515 '                if(precise !== true){\n'
20130515 '                    d1 = dt1.clone();\n'
20130515 '                    d1.setMilliseconds(0);\n'
20130515 '                    d2 = dt2.clone();\n'
20130515 '                    d2.setMilliseconds(0);\n'
20130515 '                }\n'
20130515 '                return d2.getTime() - d1.getTime();\n'
20130515 '            },\n'
20130515 '\n'
20130515 '\t        // private helper fn\n'
20130515 '\t        maxOrMin : function(max){\n'
20130515 '\t            var dt = (max ? 0 : Number.MAX_VALUE), i = 0, args = arguments[1], ln = args.length;\n'
20130515 '\t            for(; i < ln; i++){\n'
20130515 "\t                dt = Math[max ? 'max' : 'min'](dt, args[i].getTime());\n"
20130515 '\t            }\n'
20130515 '\t            return new Date(dt);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the maximum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the latest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmax : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [true, arguments]);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the minimum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the earliest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmin : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [false, arguments]);\n'
20130515 '\t        },\n'
20130515 '            \n'
20130515 '            isInRange : function(dt, rangeStart, rangeEnd) {\n'
20130515 '                return  (dt >= rangeStart && dt <= rangeEnd);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if two date ranges overlap (either one starts or ends within the other, or one completely\n'
20130515 '             * overlaps the start and end of the other), else false if they do not.\n'
20130515 '             * @param {Date} start1 The start date of range 1\n'
20130515 '             * @param {Date} end1   The end date of range 1\n'
20130515 '             * @param {Date} start2 The start date of range 2\n'
20130515 '             * @param {Date} end2   The end date of range 2\n'
20130515 '             * @return {Booelan} True if the ranges overlap, else false\n'
20130515 '             */\n'
20130515 '            rangesOverlap : function(start1, end1, start2, end2){\n'
20130515 '                var startsInRange = (start1 >= start2 && start1 <= end2),\n'
20130515 '                    endsInRange = (end1 >= start2 && end1 <= end2),\n'
20130515 '                    spansRange = (start1 <= start2 && end1 >= end2);\n'
20130515 '                \n'
20130515 '                return (startsInRange || endsInRange || spansRange);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date is a Saturday or Sunday, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a weekend day, else false \n'
20130515 '             */\n'
20130515 '            isWeekend : function(dt){\n'
20130515 '                return dt.getDay() % 6 === 0;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date falls on a Monday through Fridey, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a week day, else false \n'
20130515 '             */\n'
20130515 '            isWeekday : function(dt){\n'
20130515 '                return dt.getDay() % 6 !== 0;\n'
20130515 '            }\n'
20130515 '\t    }\n'
20130515 '    });\n'
20130515 '})();\n'
20130515 '//TODO: remove this once we are synced to trunk again\n'
20130515 'Ext.override(Ext.XTemplate, {\n'
20130515 '    applySubTemplate : function(id, values, parent, xindex, xcount){\n'
20130515 '        var me = this,\n'
20130515 '            len,\n'
20130515 '            t = me.tpls[id],\n'
20130515 '            vs,\n'
20130515 '            buf = [];\n'
20130515 '        if ((t.test && !t.test.call(me, values, parent, xindex, xcount)) ||\n'
20130515 '            (t.exec && t.exec.call(me, values, parent, xindex, xcount))) {\n'
20130515 "            return '';\n"
20130515 '        }\n'
20130515 '        vs = t.target ? t.target.call(me, values, parent) : values;\n'
20130515 '        len = vs.length;\n'
20130515 '        parent = t.target ? values : parent;\n'
20130515 '        if(t.target && Ext.isArray(vs)){\n'
20130515 '            Ext.each(vs, function(v, i) {\n'
20130515 '                buf[buf.length] = t.compiled.call(me, v, parent, i+1, len);\n'
20130515 '            });\n'
20130515 "            return buf.join('');\n"
20130515 '        }\n'
20130515 '        return t.compiled.call(me, vs, parent, xindex, xcount);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This fix is in Ext 3.2 */\n'
20130515 'Ext.override(Ext.form.DateField, {\n'
20130515 '\t\n'
20130515 '\taltFormats : "m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j",\n'
20130515 '\t\n'
20130515 '    safeParse : function(value, format) {\n'
20130515 "        if (/[gGhH]/.test(format.replace(/(\\\\.)/g, ''))) {\n"
20130515 '            // if parse format contains hour information, no DST adjustment is necessary\n'
20130515 '            return Date.parseDate(value, format);\n'
20130515 '        } else {\n'
20130515 '            // set time to 12 noon, then clear the time\n'
20130515 "            var parsedDate = Date.parseDate(value + ' ' + this.initTime, format + ' ' + this.initTimeFormat);\n"
20130515 '            if (parsedDate) return parsedDate.clearTime();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This override applies to the current 3.3.x line to fix duplicate remote actions */\n'
20130515 'Ext.override(Ext.data.Store, {\n'
20130515 '    add : function(records) {\n'
20130515 '        var i, record, index;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        if (records.length < 1) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        index = this.data.length;\n'
20130515 '        this.data.addAll(records);\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    insert : function(index, records) {\n'
20130515 '        var i, record;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            this.data.insert(index + i, record);\n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // Interestingly, this method has no changes, but is included here because without it a very strange\n'
20130515 '    // race condition occurs. This method is used as a callback internally for the add event which\n'
20130515 '    // is fired from the add method (overridden above). As long as both methods are here everything is OK\n'
20130515 '    // but with createRecords removed and defaulted to the original class you end up with duplicate copies\n'
20130515 "    // of added records in the store's modified collection (since both methods add to it). Not sure exactly\n"
20130515 '    // how that happens, but including this fixes it.\n'
20130515 '    createRecords : function(store, records, index) {\n'
20130515 '        var modified = this.modified,\n'
20130515 '            length   = records.length,\n'
20130515 '            record, i;\n'
20130515 '        \n'
20130515 '        for (i = 0; i < length; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            if (record.phantom && record.isValid()) {\n'
20130515 '                record.markDirty();  // <-- Mark new records dirty (Ed: why?)\n'
20130515 '                \n'
20130515 '                //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '                if (modified.indexOf(record) == -1) {\n'
20130515 '                    modified.push(record);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if (this.autoSave === true) {\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '// Have to add in full API support so that EventMemoryProxy can do its thing.\n'
20130515 "// Won't hurt normal read-only MemoryProxy read actions.\n"
20130515 'Ext.data.MemoryProxy = function(data){\n'
20130515 '    var api = {};\n'
20130515 '    api[Ext.data.Api.actions.read] = true;\n'
20130515 '    api[Ext.data.Api.actions.create] = true;\n'
20130515 '    api[Ext.data.Api.actions.update] = true;\n'
20130515 '    api[Ext.data.Api.actions.destroy] = true;\n'
20130515 '    Ext.data.MemoryProxy.superclass.constructor.call(this, {\n'
20130515 '        api: api\n'
20130515 '    });\n'
20130515 '    this.data = data;\n'
20130515 '};\n'
20130515 'Ext.extend(Ext.data.MemoryProxy, Ext.data.DataProxy, {\n'
20130515 '    doRequest : function(action, rs, params, reader, callback, scope, arg) {\n'
20130515 '        callback.call(scope, null, arg, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "// This heinous override is required to fix IE9's removal of createContextualFragment.\n"
20130515 "// Unfortunately since DomHelper is a singleton there's not much of a way around it.\n"
20130515 'Ext.apply(Ext.DomHelper,\n'
20130515 'function(){\n'
20130515 '    var tempTableEl = null,\n'
20130515 '        emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,\n'
20130515 '        tableRe = /^table|tbody|tr|td$/i,\n'
20130515 '        confRe = /tag|children|cn|html$/i,\n'
20130515 '        tableElRe = /td|tr|tbody/i,\n'
20130515 '        cssRe = /([a-z0-9-]+)\\s*:\\s*([^;\\s]+(?:\\s*[^;\\s]+)*);?/gi,\n'
20130515 '        endRe = /end/i,\n'
20130515 '        pub,\n'
20130515 '        // kill repeat to save bytes\n'
20130515 "        afterbegin = 'afterbegin',\n"
20130515 "        afterend = 'afterend',\n"
20130515 "        beforebegin = 'beforebegin',\n"
20130515 "        beforeend = 'beforeend',\n"
20130515 "        ts = '<table>',\n"
20130515 "        te = '</table>',\n"
20130515 "        tbs = ts+'<tbody>',\n"
20130515 "        tbe = '</tbody>'+te,\n"
20130515 "        trs = tbs + '<tr>',\n"
20130515 "        tre = '</tr>'+tbe;\n"
20130515 '\n'
20130515 '    // private\n'
20130515 '    function doInsert(el, o, returnElement, pos, sibling, append){\n'
20130515 '        var newNode = pub.insertHtml(pos, Ext.getDom(el), createHtml(o));\n'
20130515 '        return returnElement ? Ext.get(newNode, true) : newNode;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // build as innerHTML where available\n'
20130515 '    function createHtml(o){\n'
20130515 "        var b = '',\n"
20130515 '            attr,\n'
20130515 '            val,\n'
20130515 '            key,\n'
20130515 '            cn;\n'
20130515 '\n'
20130515 '        if(typeof o == "string"){\n'
20130515 '            b = o;\n'
20130515 '        } else if (Ext.isArray(o)) {\n'
20130515 '            for (var i=0; i < o.length; i++) {\n'
20130515 '                if(o[i]) {\n'
20130515 '                    b += createHtml(o[i]);\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '        } else {\n'
20130515 "            b += '<' + (o.tag = o.tag || 'div');\n"
20130515 '            for (attr in o) {\n'
20130515 '                val = o[attr];\n'
20130515 '                if(!confRe.test(attr)){\n'
20130515 '                    if (typeof val == "object") {\n'
20130515 '                        b += \' \' + attr + \'="\';\n'
20130515 '                        for (key in val) {\n'
20130515 "                            b += key + ':' + val[key] + ';';\n"
20130515 '                        };\n'
20130515 '                        b += \'"\';\n'
20130515 '                    }else{\n'
20130515 '                        b += \' \' + ({cls : \'class\', htmlFor : \'for\'}[attr] || attr) + \'="\' + val + \'"\';\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '            // Now either just close the tag or try to add children and close the tag.\n'
20130515 '            if (emptyTags.test(o.tag)) {\n'
20130515 "                b += '/>';\n"
20130515 '            } else {\n'
20130515 "                b += '>';\n"
20130515 '                if ((cn = o.children || o.cn)) {\n'
20130515 '                    b += createHtml(cn);\n'
20130515 '                } else if(o.html){\n'
20130515 '                    b += o.html;\n'
20130515 '                }\n'
20130515 "                b += '</' + o.tag + '>';\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return b;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    function ieTable(depth, s, h, e){\n'
20130515 "        tempTableEl.innerHTML = [s, h, e].join('');\n"
20130515 '        var i = -1,\n'
20130515 '            el = tempTableEl,\n'
20130515 '            ns;\n'
20130515 '        while(++i < depth){\n'
20130515 '            el = el.firstChild;\n'
20130515 '        }\n'
20130515 '//      If the result is multiple siblings, then encapsulate them into one fragment.\n'
20130515 '        if(ns = el.nextSibling){\n'
20130515 '            var df = document.createDocumentFragment();\n'
20130515 '            while(el){\n'
20130515 '                ns = el.nextSibling;\n'
20130515 '                df.appendChild(el);\n'
20130515 '                el = ns;\n'
20130515 '            }\n'
20130515 '            el = df;\n'
20130515 '        }\n'
20130515 '        return el;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @ignore\n'
20130515 "     * Nasty code for IE's broken table implementation\n"
20130515 '     */\n'
20130515 '    function insertIntoTable(tag, where, el, html) {\n'
20130515 '        var node,\n'
20130515 '            before;\n'
20130515 '\n'
20130515 "        tempTableEl = tempTableEl || document.createElement('div');\n"
20130515 '\n'
20130515 "        if(tag == 'td' && (where == afterbegin || where == beforeend) ||\n"
20130515 '           !tableElRe.test(tag) && (where == beforebegin || where == afterend)) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        before = where == beforebegin ? el :\n'
20130515 '                 where == afterend ? el.nextSibling :\n'
20130515 '                 where == afterbegin ? el.firstChild : null;\n'
20130515 '\n'
20130515 '        if (where == beforebegin || where == afterend) {\n'
20130515 '            el = el.parentNode;\n'
20130515 '        }\n'
20130515 '\n'
20130515 "        if (tag == 'td' || (tag == 'tr' && (where == beforeend || where == afterbegin))) {\n"
20130515 '            node = ieTable(4, trs, html, tre);\n'
20130515 "        } else if ((tag == 'tbody' && (where == beforeend || where == afterbegin)) ||\n"
20130515 "                   (tag == 'tr' && (where == beforebegin || where == afterend))) {\n"
20130515 '            node = ieTable(3, tbs, html, tbe);\n'
20130515 '        } else {\n'
20130515 '            node = ieTable(2, ts, html, te);\n'
20130515 '        }\n'
20130515 '        el.insertBefore(node, before);\n'
20130515 '        return node;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '    pub = {\n'
20130515 '        /**\n'
20130515 '         * Returns the markup for the passed Element(s) config.\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @return {String}\n'
20130515 '         */\n'
20130515 '        markup : function(o){\n'
20130515 '            return createHtml(o);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Applies a style specification to an element.\n'
20130515 '         * @param {String/HTMLElement} el The element to apply styles to\n'
20130515 "         * @param {String/Object/Function} styles A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or\n"
20130515 '         * a function which returns such a specification.\n'
20130515 '         */\n'
20130515 '        applyStyles : function(el, styles){\n'
20130515 '            if (styles) {\n'
20130515 '                var matches;\n'
20130515 '\n'
20130515 '                el = Ext.fly(el);\n'
20130515 '                if (typeof styles == "function") {\n'
20130515 '                    styles = styles.call();\n'
20130515 '                }\n'
20130515 '                if (typeof styles == "string") {\n'
20130515 '                    /**\n'
20130515 "                     * Since we're using the g flag on the regex, we need to set the lastIndex.\n"
20130515 '                     * This automatically happens on some implementations, but not others, see:\n'
20130515 '                     * http://stackoverflow.com/questions/2645273/javascript-regular-expression-literal-persists-between-function-calls\n'
20130515 '                     * http://blog.stevenlevithan.com/archives/fixing-javascript-regexp\n'
20130515 '                     */\n'
20130515 '                    cssRe.lastIndex = 0;\n'
20130515 '                    while ((matches = cssRe.exec(styles))) {\n'
20130515 '                        el.setStyle(matches[1], matches[2]);\n'
20130515 '                    }\n'
20130515 '                } else if (typeof styles == "object") {\n'
20130515 '                    el.setStyle(styles);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Inserts an HTML fragment into the DOM.\n'
20130515 '         * @param {String} where Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd.\n'
20130515 '         * @param {HTMLElement} el The context element\n'
20130515 '         * @param {String} html The HTML fragment\n'
20130515 '         * @return {HTMLElement} The new node\n'
20130515 '         */\n'
20130515 '        insertHtml : function(where, el, html){\n'
20130515 '            var hash = {},\n'
20130515 '                hashVal,\n'
20130515 '                setStart,\n'
20130515 '                range,\n'
20130515 '                frag,\n'
20130515 '                rangeEl,\n'
20130515 '                rs,\n'
20130515 '                temp;\n'
20130515 '\n'
20130515 '            where = where.toLowerCase();\n'
20130515 '            // add these here because they are used in both branches of the condition.\n'
20130515 "            hash[beforebegin] = ['BeforeBegin', 'previousSibling'];\n"
20130515 "            hash[afterend] = ['AfterEnd', 'nextSibling'];\n"
20130515 '\n'
20130515 '            if (el.insertAdjacentHTML) {\n'
20130515 '                if(tableRe.test(el.tagName) && (rs = insertIntoTable(el.tagName.toLowerCase(), where, el, html))){\n'
20130515 '                    return rs;\n'
20130515 '                }\n'
20130515 '                // add these two to the hash.\n'
20130515 "                hash[afterbegin] = ['AfterBegin', 'firstChild'];\n"
20130515 "                hash[beforeend] = ['BeforeEnd', 'lastChild'];\n"
20130515 '                if ((hashVal = hash[where])) {\n'
20130515 '                    el.insertAdjacentHTML(hashVal[0], html);\n'
20130515 '                    return el[hashVal[1]];\n'
20130515 '                }\n'
20130515 '            } else {\n'
20130515 '                range = el.ownerDocument.createRange();\n'
20130515 "                setStart = 'setStart' + (endRe.test(where) ? 'After' : 'Before');\n"
20130515 '                if (hash[where]) {\n'
20130515 '                    range[setStart](el);\n'
20130515 '                    if (range.createContextualFragment) {\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                    } else {\n'
20130515 '                        frag = document.createDocumentFragment(), \n'
20130515 "                        temp = document.createElement('div');\n"
20130515 '                        frag.appendChild(temp);\n'
20130515 '                        temp.outerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    el.parentNode.insertBefore(frag, where == beforebegin ? el : el.nextSibling);\n'
20130515 "                    return el[(where == beforebegin ? 'previous' : 'next') + 'Sibling'];\n"
20130515 '                } else {\n'
20130515 "                    rangeEl = (where == afterbegin ? 'first' : 'last') + 'Child';\n"
20130515 '                    if (el.firstChild) {\n'
20130515 '                        range[setStart](el[rangeEl]);\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                        if(where == afterbegin){\n'
20130515 '                            el.insertBefore(frag, el.firstChild);\n'
20130515 '                        }else{\n'
20130515 '                            el.appendChild(frag);\n'
20130515 '                        }\n'
20130515 '                    } else {\n'
20130515 '                        el.innerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    return el[rangeEl];\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '            throw \'Illegal insertion point -> "\' + where + \'"\';\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them before el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertBefore : function(el, o, returnElement){\n'
20130515 '            return doInsert(el, o, returnElement, beforebegin);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them after el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertAfter : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterend, 'nextSibling');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them as the first child of el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertFirst : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterbegin, 'firstChild');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and appends them to el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        append : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, beforeend, '', true);\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and overwrites the contents of el with them.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        overwrite : function(el, o, returnElement){\n'
20130515 '            el = Ext.getDom(el);\n'
20130515 '            el.innerHTML = createHtml(o);\n'
20130515 '            return returnElement ? Ext.get(el.firstChild) : el.firstChild;\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        createHtml : createHtml\n'
20130515 '    };\n'
20130515 '    return pub;\n'
20130515 '}());\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the all-day event container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. Internally the majority of the layout logic is deferred to an instance of\n'
20130515 ' * {@link Ext.ensible.cal.BoxLayoutTemplate}.</p> \n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayBodyTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    this.allDayTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\n'
20130515 '    this.allDayTpl.compile();\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayHeaderTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<div class="ext-cal-hd-ct">\',\n'
20130515 '            \'<table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0">\',\n'
20130515 "                '<tbody>',\n"
20130515 "                    '<tr>',\n"
20130515 '                        \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                        \'<td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner">{allDayTpl}</div></td>\',\n'
20130515 '                        \'<td class="ext-cal-gutter-rt"></td>\',\n'
20130515 "                    '</tr>',\n"
20130515 "                '</tbody>',\n"
20130515 "            '</table>',\n"
20130515 "        '</div>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayHeaderTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        return Ext.ensible.cal.DayHeaderTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            allDayTpl: this.allDayTpl.apply(o)\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate.prototype.apply = Ext.ensible.cal.DayHeaderTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the scrolling body container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayHeaderTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayBodyTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:{dayHeight}px;">\',\n'
20130515 "            '<tbody>',\n"
20130515 '                \'<tr height="1">\',\n'
20130515 '                    \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                    \'<td colspan="{dayCount}">\',\n'
20130515 '                        \'<div class="ext-cal-bg-rows">\',\n'
20130515 '                            \'<div class="ext-cal-bg-rows-inner">\',\n'
20130515 '                                \'<tpl for="times">\',\n'
20130515 '                                    \'<div class="ext-cal-bg-row ext-row-{[xindex]}" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                        \'<div class="ext-cal-bg-row-div {parent.hourSeparatorCls}" style="height:{parent.hourSeparatorHeight}px;"></div>\',\n'
20130515 "                                    '</div>',\n"
20130515 "                                '</tpl>',\n"
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</td>',\n"
20130515 "                '</tr>',\n"
20130515 "                '<tr>',\n"
20130515 '                    \'<td class="ext-cal-day-times">\',\n'
20130515 '                        \'<tpl for="times">\',\n'
20130515 '                            \'<div class="ext-cal-bg-row" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                \'<div class="ext-cal-day-time-inner"  style="height:{parent.hourHeight-1}px;">{.}</div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</tpl>',\n"
20130515 "                    '</td>',\n"
20130515 '                    \'<tpl for="days">\',\n'
20130515 '                        \'<td class="ext-cal-day-col">\',\n'
20130515 '                            \'<div class="ext-cal-day-col-inner">\',\n'
20130515 '                                \'<div id="{[this.id]}-day-col-{.:date("Ymd")}" class="ext-cal-day-col-gutter" style="height:{parent.dayHeight}px;"></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</td>',\n"
20130515 "                    '</tpl>',\n"
20130515 "                '</tr>',\n"
20130515 "            '</tbody>',\n"
20130515 "        '</table>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayBodyTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        this.today = new Date().clearTime();\n'
20130515 '        this.dayCount = this.dayCount || 1;\n'
20130515 '        \n'
20130515 '        var i = 0, days = [],\n'
20130515 '            dt = o.viewStart.clone();\n'
20130515 '            \n'
20130515 '        for(; i<this.dayCount; i++){\n'
20130515 '            days[i] = dt.add(Date.DAY, i);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        var times = [],\n'
20130515 '            start = this.viewStartHour,\n'
20130515 '            end = this.viewEndHour,\n'
20130515 '            mins = this.hourIncrement,\n'
20130515 '            dayHeight = this.hourHeight * (end - start)\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i' : 'ga';\n"
20130515 '        \n'
20130515 "        // use a fixed DST-safe date so times don't get skipped on DST boundaries\n"
20130515 "        dt = new Date('1/1/2010').clearTime().add(Date.HOUR, start);\n"
20130515 '        \n'
20130515 '        for(i=start; i<end; i++){\n'
20130515 '            times.push(dt.format(fmt));\n'
20130515 '            dt = dt.add(Date.MINUTE, mins);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.DayBodyTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            days: days,\n'
20130515 '            dayCount: days.length,\n'
20130515 '            times: times,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            hourSeparatorCls: this.showHourSeparator ? '' : 'no-sep', // the class suppresses the default separator\n"
20130515 '            dayHeight: dayHeight,\n'
20130515 '            hourSeparatorHeight: (this.hourHeight / 2) - 1\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayBodyTemplate.prototype.apply = Ext.ensible.cal.DayBodyTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.BoxLayoutTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render calendar views based on small day boxes within a non-scrolling container (currently\n'
20130515 ' * the {@link Ext.ensible.cal.MonthView MonthView} and the all-day headers for {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div id="{weekLinkId}" class="ext-cal-week-link">{weekNum}</div>\' : \'\';\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.BoxLayoutTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<tpl for="weeks">\',\n'
20130515 '            \'<div id="{[this.id]}-wk-{[xindex-1]}" class="ext-cal-wk-ct" style="top:{[this.getRowTop(xindex, xcount)]}%; height:{[this.getRowHeight(xcount)]}%;">\',\n'
20130515 '                weekLinkTpl,\n'
20130515 '                \'<table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                 \'<td id="{[this.id]}-day-{date:date("Ymd")}" class="{cellCls}">&#160;</td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 '                \'<table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                \'<td id="{[this.id]}-ev-day-{date:date("Ymd")}" class="{titleCls}"><div>{title}</div></td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 "            '</div>',\n"
20130515 "        '</tpl>', {\n"
20130515 '            getRowTop: function(i, ln){\n'
20130515 '                return ((i-1)*(100/ln));\n'
20130515 '            },\n'
20130515 '            getRowHeight: function(ln){\n'
20130515 '                return 100/ln;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.BoxLayoutTemplate, Ext.XTemplate, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} firstWeekDateFormat\n'
20130515 '     * The date format used for the day boxes in the first week of the view only (subsequent weeks\n'
20130515 "     * use the {@link #otherWeeksDateFormat} config). Defaults to 'D j'. Note that if the day names header is displayed\n"
20130515 '     * above the first row (e.g., {@link Ext.ensible.cal.MonthView#showHeader MonthView.showHeader} = true)\n'
20130515 '     * then this value is ignored and {@link #otherWeeksDateFormat} will be used instead.\n'
20130515 '     */\n'
20130515 "    firstWeekDateFormat: 'D j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} otherWeeksDateFormat\n'
20130515 '     * The date format used for the date in day boxes (other than the first week, which is controlled by\n'
20130515 "     * {@link #firstWeekDateFormat}). Defaults to 'j'.\n"
20130515 '     */\n'
20130515 "    otherWeeksDateFormat: 'j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} singleDayDateFormat\n'
20130515 "     * The date format used for the date in the header when in single-day view (defaults to 'l, F j, Y').\n"
20130515 '     */\n'
20130515 "    singleDayDateFormat: 'l, F j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayFirstDayFormat\n'
20130515 "     * The date format used for the date in the header when more than one day are visible (defaults to 'M j, Y').\n"
20130515 '     */\n'
20130515 "    multiDayFirstDayFormat: 'M j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayMonthStartFormat\n'
20130515 "     * The date format to use for the first day in a month when more than one day are visible (defaults to 'M j').\n"
20130515 '     * Note that if this day falls on the first day within the view, {@link #multiDayFirstDayFormat} takes precedence.\n'
20130515 '     */\n'
20130515 "    multiDayMonthStartFormat: 'M j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        \n'
20130515 '        Ext.apply(this, o);\n'
20130515 '        \n'
20130515 "        var w = 0, title = '', first = true, isToday = false, showMonth = false, \n"
20130515 '            prevMonth = false, nextMonth = false, isWeekend = false,\n'
20130515 '            weekendCls = o.weekendCls,\n'
20130515 '            prevMonthCls = o.prevMonthCls,\n'
20130515 '            nextMonthCls = o.nextMonthCls,\n'
20130515 '            todayCls = o.todayCls,\n'
20130515 '            weeks = [[]],\n'
20130515 '            today = new Date().clearTime(),\n'
20130515 '            dt = this.viewStart.clone(),\n'
20130515 '            thisMonth = this.startDate.getMonth();\n'
20130515 '        \n'
20130515 '        for(; w < this.weekCount || this.weekCount == -1; w++){\n'
20130515 '            if(dt > this.viewEnd){\n'
20130515 '                break;\n'
20130515 '            }\n'
20130515 '            weeks[w] = [];\n'
20130515 '            \n'
20130515 '            for(var d = 0; d < this.dayCount; d++){\n'
20130515 '                isToday = dt.getTime() === today.getTime();\n'
20130515 '                showMonth = first || (dt.getDate() == 1);\n'
20130515 '                prevMonth = (dt.getMonth() < thisMonth) && this.weekCount == -1;\n'
20130515 '                nextMonth = (dt.getMonth() > thisMonth) && this.weekCount == -1;\n'
20130515 '                isWeekend = dt.getDay() % 6 === 0;\n'
20130515 '                \n'
20130515 '                if(dt.getDay() == 1){\n'
20130515 "                    // The ISO week format 'W' is relative to a Monday week start. If we\n"
20130515 '                    // make this check on Sunday the week number will be off.\n'
20130515 "                    weeks[w].weekNum = this.showWeekNumbers ? dt.format('W') : '&#160;';\n"
20130515 "                    weeks[w].weekLinkId = 'ext-cal-week-'+dt.format('Ymd');\n"
20130515 '                }\n'
20130515 '                \n'
20130515 '                if(showMonth){\n'
20130515 '                    if(isToday){\n'
20130515 '                        title = this.getTodayText();\n'
20130515 '                    }\n'
20130515 '                    else{\n'
20130515 '                        title = dt.format(this.dayCount == 1 ? this.singleDayDateFormat : \n'
20130515 '                                (first ? this.multiDayFirstDayFormat : this.multiDayMonthStartFormat));\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    var dayFmt = (w == 0 && this.showHeader !== true) ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '                    title = isToday ? this.getTodayText() : dt.format(dayFmt);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                weeks[w].push({\n'
20130515 '                    title: title,\n'
20130515 '                    date: dt.clone(),\n'
20130515 "                    titleCls: 'ext-cal-dtitle ' + (isToday ? ' ext-cal-dtitle-today' : '') + \n"
20130515 "                        (w==0 ? ' ext-cal-dtitle-first' : '') +\n"
20130515 "                        (prevMonth ? ' ext-cal-dtitle-prev' : '') + \n"
20130515 "                        (nextMonth ? ' ext-cal-dtitle-next' : ''),\n"
20130515 "                    cellCls: 'ext-cal-day ' + (isToday ? ' '+todayCls : '') + \n"
20130515 "                        (d==0 ? ' ext-cal-day-first' : '') +\n"
20130515 "                        (prevMonth ? ' '+prevMonthCls : '') +\n"
20130515 "                        (nextMonth ? ' '+nextMonthCls : '') +\n"
20130515 "                        (isWeekend && weekendCls ? ' '+weekendCls : '')\n"
20130515 '                });\n'
20130515 '                dt = dt.add(Date.DAY, 1);\n'
20130515 '                first = false;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.BoxLayoutTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            weeks: weeks\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTodayText : function(){\n'
20130515 "        var timeFmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            todayText = this.showTodayText !== false ? this.todayText : '',\n"
20130515 '            timeText = this.showTime !== false ? \' <span id="\'+this.id+\'-clock" class="ext-cal-dtitle-time">\' + \n'
20130515 "                    new Date().format(timeFmt) + '</span>' : '',\n"
20130515 "            separator = todayText.length > 0 || timeText.length > 0 ? ' &#8212; ' : ''; // &#8212; == &mdash;\n"
20130515 '        \n'
20130515 '        if(this.dayCount == 1){\n'
20130515 '            return new Date().format(this.singleDayDateFormat) + separator + todayText + timeText;\n'
20130515 '        }\n'
20130515 '        fmt = this.weekCount == 1 ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '        return todayText.length > 0 ? todayText + timeText : new Date().format(fmt) + timeText;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate.prototype.apply = Ext.ensible.cal.BoxLayoutTemplate.prototype.applyTemplate;\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthViewTemplate\r\n'
20130515 ' * @extends Ext.XTemplate\r\n'
20130515 ' * <p>This is the template used to render the {@link Ext.ensible.cal.MonthView MonthView}. Internally this class defers to an\r\n'
20130515 ' * instance of {@link Ext.calerndar.BoxLayoutTemplate} to handle the inner layout rendering and adds containing elements around\r\n'
20130515 ' * that to form the month view.</p> \r\n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \r\n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate = function(config){\r\n'
20130515 '    \r\n'
20130515 '    Ext.apply(this, config);\r\n'
20130515 '    \r\n'
20130515 '    this.weekTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\r\n'
20130515 '    this.weekTpl.compile();\r\n'
20130515 '    \r\n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div class="ext-cal-week-link-hd">&#160;</div>\' : \'\';\r\n'
20130515 '    \r\n'
20130515 '    Ext.ensible.cal.MonthViewTemplate.superclass.constructor.call(this,\r\n'
20130515 '\t    \'<div class="ext-cal-inner-ct {extraClasses}">\',\r\n'
20130515 '            \'<div class="ext-cal-hd-ct ext-cal-month-hd">\',\r\n'
20130515 '                weekLinkTpl,\r\n'
20130515 '\t\t        \'<table class="ext-cal-hd-days-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t            '<tbody>',\r\n"
20130515 "                        '<tr>',\r\n"
20130515 '                            \'<tpl for="days">\',\r\n'
20130515 '\t\t                        \'<th class="ext-cal-hd-day{[xindex==1 ? " ext-cal-day-first" : ""]}" title="{title}">{name}</th>\',\r\n'
20130515 "\t\t                    '</tpl>',\r\n"
20130515 "                        '</tr>',\r\n"
20130515 "\t\t            '</tbody>',\r\n"
20130515 "\t\t        '</table>',\r\n"
20130515 "            '</div>',\r\n"
20130515 '\t        \'<div class="ext-cal-body-ct">{weeks}</div>\',\r\n'
20130515 "        '</div>'\r\n"
20130515 '    );\r\n'
20130515 '};\r\n'
20130515 '\r\n'
20130515 'Ext.extend(Ext.ensible.cal.MonthViewTemplate, Ext.XTemplate, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderFormat\r\n'
20130515 "     * The date format to use for day headers, if used (defaults to 'D', e.g. 'Mon' for Monday)\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderFormat: 'D',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderTitleFormat\r\n'
20130515 "     * The date format to use for the day header's HTML title attribute displayed on mouseover \r\n"
20130515 "     * (defaults to 'l, F j, Y', e.g. 'Monday, December 27, 2010')\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderTitleFormat: 'l, F j, Y',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    applyTemplate : function(o){\r\n'
20130515 '        var days = [],\r\n'
20130515 '            weeks = this.weekTpl.apply(o),\r\n'
20130515 '            dt = o.viewStart;\r\n'
20130515 '        \r\n'
20130515 '        for(var i = 0; i < 7; i++){\r\n'
20130515 '            var d = dt.add(Date.DAY, i);\r\n'
20130515 '            days.push({\r\n'
20130515 '                name: d.format(this.dayHeaderFormat),\r\n'
20130515 '                title: d.format(this.dayHeaderTitleFormat)\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        var extraClasses = this.showHeader === true ? '' : 'ext-cal-noheader';\r\n"
20130515 '        if(this.showWeekLinks){\r\n'
20130515 "            extraClasses += ' ext-cal-week-links';\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return Ext.ensible.cal.MonthViewTemplate.superclass.applyTemplate.call(this, {\r\n'
20130515 '            days: days,\r\n'
20130515 '            weeks: weeks,\r\n'
20130515 '            extraClasses: extraClasses\r\n'
20130515 '        });\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate.prototype.apply = Ext.ensible.cal.MonthViewTemplate.prototype.applyTemplate;\r\n'
20130515 '/* @private\n'
20130515 ' * @class Ext.dd.ScrollManager\n'
20130515 ' * <p>Provides automatic scrolling of overflow regions in the page during drag operations.</p>\n'
20130515 ' * <p>The ScrollManager configs will be used as the defaults for any scroll container registered with it,\n'
20130515 ' * but you can also override most of the configs per scroll container by adding a \n'
20130515 ' * <tt>ddScrollConfig</tt> object to the target element that contains these properties: {@link #hthresh},\n'
20130515 ' * {@link #vthresh}, {@link #increment} and {@link #frequency}.  Example usage:\n'
20130515 ' * <pre><code>\n'
20130515 "var el = Ext.get('scroll-ct');\n"
20130515 'el.ddScrollConfig = {\n'
20130515 '    vthresh: 50,\n'
20130515 '    hthresh: -1,\n'
20130515 '    frequency: 100,\n'
20130515 '    increment: 200\n'
20130515 '};\n'
20130515 'Ext.dd.ScrollManager.register(el);\n'
20130515 '</code></pre>\n'
20130515 ' * <b>Note: This class uses "Point Mode" and is untested in "Intersect Mode".</b>\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 'Ext.dd.ScrollManager = function(){\n'
20130515 '    var ddm = Ext.dd.DragDropMgr;\n'
20130515 '    var els = {};\n'
20130515 '    var dragEl = null;\n'
20130515 '    var proc = {};\n'
20130515 '    \n'
20130515 '    var onStop = function(e){\n'
20130515 '        dragEl = null;\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var triggerRefresh = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '             ddm.refreshCache(ddm.dragCurrent.groups);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var doScroll = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '            var dds = Ext.dd.ScrollManager;\n'
20130515 '            var inc = proc.el.ddScrollConfig ?\n'
20130515 '                      proc.el.ddScrollConfig.increment : dds.increment;\n'
20130515 '            if(!dds.animate){\n'
20130515 '                if(proc.el.scroll(proc.dir, inc)){\n'
20130515 '                    triggerRefresh();\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                proc.el.scroll(proc.dir, inc, true, dds.animDuration, triggerRefresh);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var clearProc = function(){\n'
20130515 '        if(proc.id){\n'
20130515 '            clearInterval(proc.id);\n'
20130515 '        }\n'
20130515 '        proc.id = 0;\n'
20130515 '        proc.el = null;\n'
20130515 '        proc.dir = "";\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var startProc = function(el, dir){\n'
20130515 '        clearProc();\n'
20130515 '        proc.el = el;\n'
20130515 '        proc.dir = dir;\n'
20130515 '        var freq = (el.ddScrollConfig && el.ddScrollConfig.frequency) ? \n'
20130515 '                el.ddScrollConfig.frequency : Ext.dd.ScrollManager.frequency,\n'
20130515 '            group = el.ddScrollConfig ? el.ddScrollConfig.ddGroup : undefined;\n'
20130515 '        \n'
20130515 '        if(group === undefined || ddm.dragCurrent.ddGroup == group){\n'
20130515 '            proc.id = setInterval(doScroll, freq);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var onFire = function(e, isDrop){\n'
20130515 '        if(isDrop || !ddm.dragCurrent){ return; }\n'
20130515 '        var dds = Ext.dd.ScrollManager;\n'
20130515 '        if(!dragEl || dragEl != ddm.dragCurrent){\n'
20130515 '            dragEl = ddm.dragCurrent;\n'
20130515 '            // refresh regions on drag start\n'
20130515 '            dds.refreshCache();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var xy = Ext.lib.Event.getXY(e);\n'
20130515 '        var pt = new Ext.lib.Point(xy[0], xy[1]);\n'
20130515 '        for(var id in els){\n'
20130515 '            var el = els[id], r = el._region;\n'
20130515 '            var c = el.ddScrollConfig ? el.ddScrollConfig : dds;\n'
20130515 '            if(r && r.contains(pt) && el.isScrollable()){\n'
20130515 '                if(r.bottom - pt.y <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "down");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(r.right - pt.x <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "left");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.y - r.top <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "up");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.x - r.left <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "right");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    ddm.fireEvents = ddm.fireEvents.createSequence(onFire, ddm);\n'
20130515 '    ddm.stopDrag = ddm.stopDrag.createSequence(onStop, ddm);\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        /**\n'
20130515 '         * Registers new overflow element(s) to auto scroll\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be scrolled or an array of either\n'
20130515 '         */\n'
20130515 '        register : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.register(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                els[el.id] = el;\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Unregisters overflow element(s) so they are no longer scrolled\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be removed or an array of either\n'
20130515 '         */\n'
20130515 '        unregister : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.unregister(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                delete els[el.id];\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the top or bottom edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        vthresh : 25,\n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the right or left edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        hthresh : 25,\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * The number of pixels to scroll in each scroll increment (defaults to 50)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        increment : 100,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The frequency of scrolls in milliseconds (defaults to 500)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        frequency : 500,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * True to animate the scroll (defaults to true)\n'
20130515 '         * @type Boolean\n'
20130515 '         */\n'
20130515 '        animate: true,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The animation duration in seconds - \n'
20130515 '         * MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        animDuration: .4,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Manually trigger a cache refresh.\n'
20130515 '         */\n'
20130515 '        refreshCache : function(){\n'
20130515 '            for(var id in els){\n'
20130515 "                if(typeof els[id] == 'object'){ // for people extending the object prototype\n"
20130515 '                    els[id]._region = els[id].getRegion();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();/**\n'
20130515 ' * @class Ext.ensible.cal.StatusProxy\n'
20130515 ' * A specialized drag proxy that supports a drop status icon, {@link Ext.Layer} styles and auto-repair. It also\n'
20130515 " * contains a calendar-specific drag status message containing details about the dragged event's target drop date range.  \n"
20130515 ' * This is the default drag proxy used by all calendar views.\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.StatusProxy = function(config){\n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    this.id = this.id || Ext.id();\n'
20130515 '    this.el = new Ext.Layer({\n'
20130515 '        dh: {\n'
20130515 "            id: this.id, cls: 'ext-dd-drag-proxy x-dd-drag-proxy '+this.dropNotAllowed, cn: [\n"
20130515 "                {cls: 'x-dd-drop-icon'},\n"
20130515 "                {cls: 'ext-dd-ghost-ct', cn:[\n"
20130515 "                    {cls: 'x-dd-drag-ghost'},\n"
20130515 "                    {cls: 'ext-dd-msg'}\n"
20130515 '                ]}\n'
20130515 '            ]\n'
20130515 '        }, \n'
20130515 '        shadow: !config || config.shadow !== false\n'
20130515 '    });\n'
20130515 '    this.ghost = Ext.get(this.el.dom.childNodes[1].childNodes[0]);\n'
20130515 '    this.message = Ext.get(this.el.dom.childNodes[1].childNodes[1]);\n'
20130515 '    this.dropStatus = this.dropNotAllowed;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.StatusProxy, Ext.dd.StatusProxy, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} moveEventCls\n'
20130515 "     * The CSS class to apply to the status element when an event is being dragged (defaults to 'ext-cal-dd-move').\n"
20130515 '     */\n'
20130515 "    moveEventCls : 'ext-cal-dd-move',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} addEventCls\n'
20130515 "     * The CSS class to apply to the status element when drop is not allowed (defaults to 'ext-cal-dd-add').\n"
20130515 '     */\n'
20130515 "    addEventCls : 'ext-cal-dd-add',\n"
20130515 '\n'
20130515 '    // inherit docs\n'
20130515 '    update : function(html){\n'
20130515 "        if(typeof html == 'string'){\n"
20130515 '            this.ghost.update(html);\n'
20130515 '        }else{\n'
20130515 "            this.ghost.update('');\n"
20130515 "            html.style.margin = '0';\n"
20130515 '            this.ghost.dom.appendChild(html);\n'
20130515 '        }\n'
20130515 '        var el = this.ghost.dom.firstChild;\n'
20130515 '        if(el){\n'
20130515 "            Ext.fly(el).setStyle('float', 'none').setHeight('auto');\n"
20130515 "            Ext.getDom(el).id += '-ddproxy';\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /* @private\n'
20130515 '     * Update the calendar-specific drag status message without altering the ghost element.\n'
20130515 '     * @param {String} msg The new status message\n'
20130515 '     */\n'
20130515 '    updateMsg : function(msg){\n'
20130515 '        this.message.update(msg);\n'
20130515 '    }\n'
20130515 '});/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DragZone = Ext.extend(Ext.dd.DragZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 '    \n'
20130515 '    constructor : function(el, config){\n'
20130515 '        if(!Ext.ensible.cal._statusProxyInstance){\n'
20130515 '            Ext.ensible.cal._statusProxyInstance = new Ext.ensible.cal.StatusProxy();\n'
20130515 '        }\n'
20130515 '        this.proxy = Ext.ensible.cal._statusProxyInstance;\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.constructor.call(this, el, config);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        // Check whether we are dragging on an event first\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                start: t.date,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onInitDrag : function(x, y){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            var ghost = this.dragData.ddel.cloneNode(true),\n'
20130515 "                child = Ext.fly(ghost).child('dl');\n"
20130515 '            \n'
20130515 "            Ext.fly(ghost).setWidth('auto');\n"
20130515 '            \n'
20130515 '            if(child){\n'
20130515 '                // for IE/Opera\n'
20130515 "                child.setHeight('auto');\n"
20130515 '            }\n'
20130515 '            this.proxy.update(ghost);\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        else if(this.dragData.start){\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        this.view.onInitDrag();\n'
20130515 '        return true;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterRepair : function(){\n'
20130515 '        if(Ext.enableFx && this.dragData.ddel){\n'
20130515 "            Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor || 'c3daf9');\n"
20130515 '        }\n'
20130515 '        this.dragging = false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getRepairXY : function(e){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            return Ext.Element.fly(this.dragData.ddel).getXY();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterInvalidDrop : function(e, id){\n'
20130515 "        Ext.select('.ext-dd-shim').hide();\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    destroy : function(){\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.destroy.call(this);\n'
20130515 '        delete Ext.ensible.cal._statusProxyInstance;\n'
20130515 '    }    \n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DropZone = Ext.extend(Ext.dd.DropZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    shims : [],\n'
20130515 '    \n'
20130515 '    getTargetFromEvent : function(e){\n'
20130515 '        var dragOffset = this.dragOffset || 0,\n'
20130515 '            y = e.getPageY() - dragOffset,\n'
20130515 '            d = this.view.getDayAt(e.getPageX(), y);\n'
20130515 '        \n'
20130515 '        return d.el ? d : null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var D = Ext.ensible.Date,\n'
20130515 "            start = data.type == 'eventdrag' ? n.date : D.min(data.start, n.date),\n"
20130515 "            end = data.type == 'eventdrag' ? n.date.add(Date.DAY, D.diffDays(data.eventStart, data.eventEnd)) : \n"
20130515 '                D.max(data.start, n.date);\n'
20130515 '        \n'
20130515 '        if(!this.dragStartDate || !this.dragEndDate || (D.diffDays(start, this.dragStartDate) != 0) || (D.diffDays(end, this.dragEndDate) != 0)){\n'
20130515 '            this.dragStartDate = start;\n'
20130515 '            this.dragEndDate = end.clearTime().add(Date.DAY, 1).add(Date.MINUTE, -30);\n'
20130515 '            this.shim(start, end);\n'
20130515 '            \n'
20130515 '            var range = start.format(this.dateFormat);\n'
20130515 '                \n'
20130515 '            if(D.diffDays(start, end) > 0){\n'
20130515 '                end = end.format(this.dateFormat);\n'
20130515 '                range = String.format(this.dateRangeFormat, range, end);\n'
20130515 '            }\n'
20130515 "            var msg = String.format(data.type == 'eventdrag' ? this.moveText : this.createText, range);\n"
20130515 '            data.proxy.updateMsg(msg);\n'
20130515 '        }\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(start, end){\n'
20130515 '        this.currWeek = -1;\n'
20130515 '        var dt = start.clone(),\n'
20130515 '            i = 0, shim, box,\n'
20130515 '            cnt = Ext.ensible.Date.diffDays(dt, end)+1\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        while(i++ < cnt){\n'
20130515 '            var dayEl = this.view.getDayEl(dt);\n'
20130515 '            \n'
20130515 '            // if the date is not in the current view ignore it (this\n'
20130515 '            // can happen when an event is dragged to the end of the\n'
20130515 '            // month so that it ends outside the view)\n'
20130515 '            if(dayEl){\n'
20130515 '                var wk = this.view.getWeekIndex(dt),\n'
20130515 '                    shim = this.shims[wk];\n'
20130515 '            \n'
20130515 '                if(!shim){\n'
20130515 '                    shim = this.createShim();\n'
20130515 '                    this.shims[wk] = shim;\n'
20130515 '                }\n'
20130515 '                if(wk != this.currWeek){\n'
20130515 '                    shim.boxInfo = dayEl.getBox();\n'
20130515 '                    this.currWeek = wk;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box = dayEl.getBox();\n'
20130515 '                    shim.boxInfo.right = box.right;\n'
20130515 '                    shim.boxInfo.width = box.right - shim.boxInfo.x;\n'
20130515 '                }\n'
20130515 '                shim.isActive = true;\n'
20130515 '            }\n'
20130515 '            dt = dt.add(Date.DAY, 1);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                if(shim.isActive){\n'
20130515 '                    shim.show();\n'
20130515 '                    shim.setBox(shim.boxInfo);\n'
20130515 '                }\n'
20130515 '                else if(shim.isVisible()){\n'
20130515 '                    shim.hide();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    createShim : function(){\n'
20130515 '        var owner = this.view.ownerCalendarPanel ? this.view.ownerCalendarPanel : this.view;\n'
20130515 '        if(!this.shimCt){\n'
20130515 "            this.shimCt = Ext.get('ext-dd-shim-ct-'+owner.id);\n"
20130515 '            if(!this.shimCt){\n'
20130515 "                this.shimCt = document.createElement('div');\n"
20130515 "                this.shimCt.id = 'ext-dd-shim-ct-'+owner.id;\n"
20130515 '                owner.getEl().parent().appendChild(this.shimCt);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 "        var el = document.createElement('div');\n"
20130515 "        el.className = 'ext-dd-shim';\n"
20130515 '        this.shimCt.appendChild(el);\n'
20130515 '        \n'
20130515 '        return new Ext.Layer({\n'
20130515 '            shadow:false, \n'
20130515 '            useDisplay:true, \n'
20130515 '            constrain:false\n'
20130515 '        }, el);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    clearShims : function(){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerOver : function(dd, e, data){\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onCalendarDragComplete : function(){\n'
20130515 '        delete this.dragStartDate;\n'
20130515 '        delete this.dragEndDate;\n'
20130515 '        this.clearShims();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel),\n'
20130515 '                    dt = Ext.ensible.Date.copyTime(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], n.date);\n'
20130515 '                    \n'
20130515 '                this.view.onEventDrop(rec, dt);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerDrop : function(dd, e, data){\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDragZone = Ext.extend(Ext.ensible.cal.DragZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    resizeSelector : '.ext-evt-rsz',\n"
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        var t = e.getTarget(this.resizeSelector, 2, true);\n'
20130515 '        if(t){\n'
20130515 '            var p = t.parent(this.eventSelector), \n'
20130515 '                rec = this.view.getEventRecordFromEl(p);\n'
20130515 '            \n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventresize',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: p.dom,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging/resizing an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                dayInfo: t,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDropZone = Ext.extend(Ext.ensible.cal.DropZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var dt, text = this.createText,\n'
20130515 "            timeFormat = Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia';\n"
20130515 '            \n'
20130515 "        if(data.type == 'caldrag'){\n"
20130515 '            if(!this.dragStartMarker){\n'
20130515 '                // Since the container can scroll, this gets a little tricky.\n'
20130515 '                // There is no el in the DOM that we can measure by default since\n'
20130515 '                // the box is simply calculated from the original drag start (as opposed\n'
20130515 '                // to dragging or resizing the event where the orig event box is present).\n'
20130515 '                // To work around this we add a placeholder el into the DOM and give it\n'
20130515 "                // the original starting time's box so that we can grab its updated\n"
20130515 '                // box measurements as the underlying container scrolls up or down.\n'
20130515 '                // This placeholder is removed in onNodeDrop.\n'
20130515 '                this.dragStartMarker = n.el.parent().createChild({\n'
20130515 "                    style: 'position:absolute;'\n"
20130515 '                });\n'
20130515 '                // use the original dayInfo values from the drag start\n'
20130515 '                this.dragStartMarker.setBox(data.dayInfo.timeBox);\n'
20130515 '                this.dragCreateDt = data.dayInfo.date;\n'
20130515 '            }\n'
20130515 '            var endDt, box = this.dragStartMarker.getBox();\n'
20130515 '            box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '            \n'
20130515 '            if(e.xy[1] < box.y){\n'
20130515 '                box.height += n.timeBox.height;\n'
20130515 '                box.y = box.y - box.height + n.timeBox.height;\n'
20130515 '                endDt = this.dragCreateDt.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            this.shim(this.dragCreateDt, box);\n'
20130515 '            \n'
20130515 '            var curr = Ext.ensible.Date.copyTime(n.date, this.dragCreateDt);\n'
20130515 '            this.dragStartDate = Ext.ensible.Date.min(this.dragCreateDt, curr);\n'
20130515 '            this.dragEndDate = endDt || Ext.ensible.Date.max(this.dragCreateDt, curr);\n'
20130515 '                \n'
20130515 '            dt = String.format(this.dateRangeFormat, this.dragStartDate.format(timeFormat), this.dragEndDate.format(timeFormat));\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            var evtEl = Ext.get(data.ddel),\n'
20130515 '                dayCol = evtEl.parent().parent(),\n'
20130515 '                box = evtEl.getBox();\n'
20130515 '            \n'
20130515 '            box.width = dayCol.getWidth();\n'
20130515 '            \n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                if(this.dragOffset === undefined){\n'
20130515 '                    // on fast drags there is a lag between the original drag start xy position and\n'
20130515 "                    // that first detected within the drop zone's getTargetFromEvent method (which is \n"
20130515 '                    // where n.timeBox comes from). to avoid a bad offset we calculate the\n'
20130515 '                    // timeBox based on the initial drag xy, not the current target xy.\n'
20130515 '                    var initialTimeBox = this.view.getDayAt(data.xy[0], data.xy[1]).timeBox;\n'
20130515 '                    this.dragOffset = initialTimeBox.y - box.y;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box.y = n.timeBox.y;\n'
20130515 '                }\n'
20130515 "                dt = n.date.format(this.dateFormat + ' ' + timeFormat);\n"
20130515 '                box.x = n.el.getLeft();\n'
20130515 '                \n'
20130515 '                this.shim(n.date, box);\n'
20130515 '                text = this.moveText;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                if(!this.resizeDt){\n'
20130515 '                    this.resizeDt = n.date;\n'
20130515 '                }\n'
20130515 '                box.x = dayCol.getLeft();\n'
20130515 '                box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '                if(e.xy[1] < box.y){\n'
20130515 '                    box.y -= box.height;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '                }\n'
20130515 '                this.shim(this.resizeDt, box);\n'
20130515 '                \n'
20130515 '                var curr = Ext.ensible.Date.copyTime(n.date, this.resizeDt),\n'
20130515 '                    start = Ext.ensible.Date.min(data.eventStart, curr),\n'
20130515 '                    end = Ext.ensible.Date.max(data.eventStart, curr);\n'
20130515 '                    \n'
20130515 '                data.resizeDates = {\n'
20130515 '                    StartDate: start,\n'
20130515 '                    EndDate: end\n'
20130515 '                }\n'
20130515 '                dt = String.format(this.dateRangeFormat, start.format(timeFormat), end.format(timeFormat));\n'
20130515 '                text = this.resizeText;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        data.proxy.updateMsg(String.format(text, dt));\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(dt, box){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var shim = this.shims[0];\n'
20130515 '        if(!shim){\n'
20130515 '            shim = this.createShim();\n'
20130515 '            this.shims[0] = shim;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        shim.isActive = true;\n'
20130515 '        shim.show();\n'
20130515 '        shim.setBox(box);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventDrop(rec, n.date);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.dragOffset;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventResize(rec, data.resizeDates);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.resizeDt;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                Ext.destroy(this.dragStartMarker);\n'
20130515 '                delete this.dragStartMarker;\n'
20130515 '                delete this.dragCreateDt;\n'
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.EventStore = Ext.extend(Ext.data.Store, {\n'
20130515 '    constructor: function(config){\n'
20130515 '        // By default autoLoad will cause the store to load itself during the\n'
20130515 '        // constructor, before the owning calendar view has a chance to set up\n'
20130515 '        // the initial date params to use during loading.  We replace autoLoad\n'
20130515 '        // with a deferLoad property that the view can check for and use to set\n'
20130515 '        // up default params as needed, then call the load itself. \n'
20130515 '        this.deferLoad = config.autoLoad;\n'
20130515 '        config.autoLoad = false;\n'
20130515 '        \n'
20130515 '        //this._dateCache = [];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.constructor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    load : function(o){\n'
20130515 "        Ext.ensible.log('store load');\n"
20130515 '        \n'
20130515 '        // if params are passed delete the one-time defaults\n'
20130515 '        if(o.params){\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        // this.initialParams will only be set if the store is being loaded manually\n'
20130515 '        // for the first time (autoLoad = false) so the owning calendar view set\n'
20130515 '        // the initial start and end date params to use. Every load after that will\n'
20130515 '        // have these params set automatically during normal UI navigation.\n'
20130515 '        if(this.initialParams){\n'
20130515 '            o = Ext.isObject(o) ? o : {};\n'
20130515 '            o.params = o.params || {};\n'
20130515 '            Ext.apply(o.params, this.initialParams);\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.load.call(this, o);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '//    execute : function(action, rs, options, /* private */ batch) {\n'
20130515 "//        if(action=='read'){\n"
20130515 '//            var i = 0, \n'
20130515 '//                dc = this._dateCache, \n'
20130515 '//                len = dc.length,\n'
20130515 '//                range,\n'
20130515 '//                p = options.params,\n'
20130515 '//                start = p.start,\n'
20130515 '//                end = p.end;\n'
20130515 '//                \n'
20130515 '//            //options.add = true;\n'
20130515 '//            for(i; i<len; i++){\n'
20130515 '//                range = dc[i];\n'
20130515 '//                \n'
20130515 '//            }\n'
20130515 '//        }\n'
20130515 '//        Ext.ensible.cal.EventStore.superclass.execute.apply(this, arguments);\n'
20130515 '//    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventstore', Ext.ensible.cal.EventStore);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * <p>A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.EventRecord EventRecord}s so that they can be easily overridden.</p>\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Event record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the EventMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings;\n'
20130515 "M.Title.mapping = 'evt_title';\n"
20130515 "M.Title.name = 'EventTitle';\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default EventMappings:\n'
20130515 'Ext.ensible.cal.EventMappings.Timestamp = {\n'
20130515 "    name: 'Timestamp',\n"
20130515 "    mapping: 'timestamp',\n"
20130515 "    type: 'date'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire EventMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard EventRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'EventId') should <b>NOT</b> be changed for the default EventMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID', mapping:'evt_id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID', mapping: 'cal_id', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle', mapping: 'evt_title'},\n"
20130515 "    StartDate:   {name: 'StartDt', mapping: 'start_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDt', mapping: 'end_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'},\n"
20130515 "    Location:    {name: 'Location', mapping: 'location'},\n"
20130515 "    Notes:       {name: 'Desc', mapping: 'full_desc'},\n"
20130515 "    Url:         {name: 'LinkUrl', mapping: 'link_url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay', mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'reminder'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard EventRecord:\n'
20130515 "    CreatedBy:   {name: 'CreatedBy', mapping: 'created_by'},\n"
20130515 "    IsPrivate:   {name: 'Private', mapping:'private', type:'boolean'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>EventId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.EventMappings.EventId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'EventId', mapping:'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalendarId', mapping: 'cid', type: 'int'},\n"
20130515 "    Title:       {name: 'Title', mapping: 'title', type: 'string'},\n"
20130515 "    StartDate:   {name: 'StartDate', mapping: 'start', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDate', mapping: 'end', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'}, // not currently used\n"
20130515 "    Location:    {name: 'Location', mapping: 'loc', type: 'string'},\n"
20130515 "    Notes:       {name: 'Notes', mapping: 'notes', type: 'string'},\n"
20130515 "    Url:         {name: 'Url', mapping: 'url', type: 'string'},\n"
20130515 "    IsAllDay:    {name: 'IsAllDay', mapping: 'ad', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'rem', type: 'string'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.CalendarRecord CalendarRecord}s so that they can be easily overridden.\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Calendar record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the CalendarMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 "M.Title.mapping = 'cal_title';\n"
20130515 "M.Title.name = 'CalTitle';\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default CalendarMappings:\n'
20130515 'Ext.ensible.cal.CalendarMappings.Owner = {\n'
20130515 "    name: 'Owner',\n"
20130515 "    mapping: 'owner',\n"
20130515 "    type: 'string'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire CalendarMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard CalendarRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'CalendarId') should <b>NOT</b> be changed for the default CalendarMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Desc', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden', mapping: 'hidden', type: 'boolean'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard CalendarRecord:\n'
20130515 "    Owner:        {name: 'Owner', mapping: 'owner'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>CalendarId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'CalendarId', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'Title', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Description', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'ColorId', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'IsHidden', mapping: 'hidden', type: 'boolean'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.EventRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar event data used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s underlying store. It can be overridden as \n"
20130515 ' * necessary to customize the fields supported by events, although the existing field definition names \n'
20130515 ' * should not be altered. If your model fields are named differently you should update the <b>mapping</b>\n'
20130515 ' * configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new event record instance are <tt>StartDate</tt> and\n'
20130515 ' * <tt>EndDate</tt>.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.EventRecord({\n'
20130515 "    StartDate: '2101-01-12 12:00:00',\n"
20130515 "    EndDate: '2101-01-12 13:30:00',\n"
20130515 "    Title: 'My cool event',\n"
20130515 "    Notes: 'Some notes'\n"
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.EventMappings EventMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the field names match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings,\n'
20130515 '    rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '\n'
20130515 "rec.data[M.StartDate.name] = '2101-01-12 12:00:00';\n"
20130515 "rec.data[M.EndDate.name] = '2101-01-12 13:30:00';\n"
20130515 "rec.data[M.Title.name] = 'My cool event';\n"
20130515 "rec.data[M.Notes.name] = 'Some notes';\n"
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.EventMappings EventMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.EventMappings} for complete details and \n'
20130515 ' * examples of reconfiguring an EventRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated EventRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.EventMappings,\n'
20130515 '        proto = C.EventRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.EventRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar items used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s calendar store. If your model fields \n"
20130515 ' * are named differently you should update the <b>mapping</b> configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new calendar record instance are CalendarId and\n'
20130515 ' * Title.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord({\n'
20130515 '    CalendarId: 5,\n'
20130515 "    Title: 'My Holidays',\n"
20130515 "    Description: 'My personal holiday schedule',\n"
20130515 '    ColorId: 3\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.CalendarMappings CalendarMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the fields match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 '\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord();\n'
20130515 'rec.data[M.CalendarId.name] = 5;\n'
20130515 "rec.data[M.Title.name] = 'My Holidays';\n"
20130515 "rec.data[M.Description.name] = 'My personal holiday schedule';\n"
20130515 'rec.data[M.ColorId.name] = 3;\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.CalendarMappings CalendarMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.CalendarMappings} for complete details and \n'
20130515 ' * examples of reconfiguring a CalendarRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated CalendarRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.CalendarMappings,\n'
20130515 '        proto = C.CalendarRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.CalendarRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();/* @private\n'
20130515 ' * This is an internal helper class for the calendar views and should not be overridden.\n'
20130515 ' * It is responsible for the base event rendering logic underlying all views based on a \n'
20130515 ' * box-oriented layout that supports day spanning (MonthView, MultiWeekView, DayHeaderView).\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekEventRenderer = function(){\n'
20130515 '    \n'
20130515 '    var getEventRow = function(id, week, index){\n'
20130515 "        var indexOffset = 1; //skip row with date #'s\n"
20130515 "        var evtRow, wkRow = Ext.get(id+'-wk-'+week);\n"
20130515 '        if(wkRow){\n'
20130515 "            var table = wkRow.child('.ext-cal-evt-tbl', true);\n"
20130515 '            evtRow = table.tBodies[0].childNodes[index+indexOffset];\n'
20130515 '            if(!evtRow){\n'
20130515 "                evtRow = Ext.DomHelper.append(table.tBodies[0], '<tr></tr>');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return Ext.get(evtRow);\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        render: function(o){\n'
20130515 '            var w = 0, grid = o.eventGrid, \n'
20130515 '                dt = o.viewStart.clone(),\n'
20130515 '                eventTpl = o.tpl,\n'
20130515 '                max = o.maxEventsPerDay != undefined ? o.maxEventsPerDay : 999,\n'
20130515 '                weekCount = o.weekCount < 1 ? 6 : o.weekCount,\n'
20130515 '                dayCount = o.weekCount == 1 ? o.dayCount : 7;\n'
20130515 '            \n'
20130515 '            for(; w < weekCount; w++){\n'
20130515 '                var row, d = 0, wk = grid[w];\n'
20130515 '                var startOfWeek = dt.clone();\n'
20130515 '                var endOfWeek = startOfWeek.add(Date.DAY, dayCount).add(Date.MILLI, -1);\n'
20130515 '                \n'
20130515 '                for(; d < dayCount; d++){\n'
20130515 '                    if(wk && wk[d]){\n'
20130515 '                        var ev = emptyCells = skipped = 0, \n'
20130515 '                            day = wk[d], ct = day.length, evt;\n'
20130515 '                        \n'
20130515 '                        for(; ev < ct; ev++){\n'
20130515 '                            if(!day[ev]){\n'
20130515 '                                emptyCells++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            if(emptyCells > 0 && ev-emptyCells < max){\n'
20130515 '                                row = getEventRow(o.id, w, ev-emptyCells);\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+ct+'-day-'+dt.format('Ymd')\n"
20130515 '                                }\n'
20130515 '                                if(emptyCells > 1 && max-ev > emptyCells){\n'
20130515 '                                    cellCfg.rowspan = Math.min(emptyCells, max-ev);\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                                emptyCells = 0;\n'
20130515 '                            }\n'
20130515 '                            \n'
20130515 '                            if(ev >= max){\n'
20130515 '                                skipped++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            evt = day[ev];\n'
20130515 '                            \n'
20130515 '                            if(!evt.isSpan || evt.isSpanStart){ //skip non-starting span cells\n'
20130515 '                                var item = evt.data || evt.event.data;\n'
20130515 '                                item._weekIndex = w;\n'
20130515 '                                item._renderAsAllDay = item[Ext.ensible.cal.EventMappings.IsAllDay.name] || evt.isSpanStart;\n'
20130515 '                                item.spanLeft = item[Ext.ensible.cal.EventMappings.StartDate.name].getTime() < startOfWeek.getTime();\n'
20130515 '                                item.spanRight = item[Ext.ensible.cal.EventMappings.EndDate.name].getTime() > endOfWeek.getTime();\n'
20130515 "                                item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \n"
20130515 "                                    'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\n"
20130515 '                                        \n'
20130515 '                                var row = getEventRow(o.id, w, ev),\n'
20130515 '                                    cellCfg = {\n'
20130515 "                                        tag: 'td',\n"
20130515 "                                        cls: 'ext-cal-ev',\n"
20130515 '                                        cn : eventTpl.apply(o.templateDataFn(item))\n'
20130515 '                                    },\n'
20130515 '                                    diff = Ext.ensible.Date.diffDays(dt, item[Ext.ensible.cal.EventMappings.EndDate.name]) + 1,\n'
20130515 '                                    cspan = Math.min(diff, dayCount-d);\n'
20130515 '                                    \n'
20130515 '                                if(cspan > 1){\n'
20130515 '                                    cellCfg.colspan = cspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                        if(ev > max){\n'
20130515 '                            row = getEventRow(o.id, w, max);\n'
20130515 '                            Ext.DomHelper.append(row, {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev-more',\n"
20130515 "                                id: 'ext-cal-ev-more-'+dt.format('Ymd'),\n"
20130515 '                                cn: {\n'
20130515 "                                    tag: 'a',\n"
20130515 '                                    html: String.format(o.getMoreText(skipped), skipped)\n'
20130515 '                                }\n'
20130515 '                            });\n'
20130515 '                        }\n'
20130515 '                        if(ct < o.evtMaxCount[w]){\n'
20130515 '                            row = getEventRow(o.id, w, ct);\n'
20130515 '                            if(row){\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    //html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+(ct+1)+'-day-'+dt.format('Ymd')\n"
20130515 '                                };\n'
20130515 '                                var rowspan = o.evtMaxCount[w] - ct;\n'
20130515 '                                if(rowspan > 1){\n'
20130515 '                                    cellCfg.rowspan = rowspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                    }else{\n'
20130515 '                        row = getEventRow(o.id, w, 0);\n'
20130515 '                        if(row){\n'
20130515 '                            var cellCfg = {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev',\n"
20130515 "                                html: '&#160;',\n"
20130515 "                                id: o.id+'-empty-day-'+dt.format('Ymd')\n"
20130515 '                            };\n'
20130515 '                            if(o.evtMaxCount[w] > 1){\n'
20130515 '                                cellCfg.rowspan = o.evtMaxCount[w];\n'
20130515 '                            }\n'
20130515 '                            Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                        }\n'
20130515 '                    }\n'
20130515 '                    dt = dt.add(Date.DAY, 1);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarCombo\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing from the list of available calendars to assign an event to. You must\n'
20130515 ' * pass a populated calendar store as the store config or the combo will not work.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 "fieldLabel: 'Calendar',\n"
20130515 "triggerAction: 'all',\n"
20130515 "mode: 'local',\n"
20130515 'forceSelection: true,\n'
20130515 'width: 200\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 "    fieldLabel: 'Calendar',\n"
20130515 "    triggerAction: 'all',\n"
20130515 "    mode: 'local',\n"
20130515 '    forceSelection: true,\n'
20130515 '    selectOnFocus: true,\n'
20130515 '    width: 200,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 "    defaultCls: 'x-cal-default',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        var C = Ext.ensible.cal,\n'
20130515 '            M = C.CalendarMappings;\n'
20130515 '        \n'
20130515 '        C.CalendarCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.valueField = M.CalendarId.name;\n'
20130515 '        this.displayField = M.Title.name;\n'
20130515 '        \n'
20130515 '        this.tpl = this.tpl ||\n'
20130515 '              \'<tpl for="."><div class="x-combo-list-item x-cal-{\' + M.ColorId.name +\n'
20130515 '              \'}"><div class="ext-cal-picker-icon">&#160;</div>{\' + this.displayField + \'}</div></tpl>\';\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.wrap = this.el.up('.x-form-field-wrap');\n"
20130515 "        this.wrap.addClass('ext-calendar-picker');\n"
20130515 '        \n'
20130515 '        this.icon = Ext.DomHelper.append(this.wrap, {\n'
20130515 "            tag: 'div', cls: 'ext-cal-picker-icon ext-cal-picker-mainicon'\n"
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    assertValue  : function(){\n'
20130515 '        var val = this.getRawValue(),\n'
20130515 '            rec = this.findRecord(this.displayField, val);\n'
20130515 '\n'
20130515 '        if(!rec && this.forceSelection){\n'
20130515 '            if(val.length > 0 && val != this.emptyText){\n'
20130515 '                // Override this method simply to fix the original logic that was here.\n'
20130515 '                // The orignal method simply reverts the displayed text but the store remains\n'
20130515 '                // filtered with the invalid query, meaning it contains no records. This causes\n'
20130515 '                // problems with redisplaying the field -- much better to clear the filter and\n'
20130515 '                // reset the original value so everything works as expected.\n'
20130515 '                this.store.clearFilter();\n'
20130515 '                this.setValue(this.value);\n'
20130515 '                this.applyEmptyText();\n'
20130515 '            }else{\n'
20130515 '                this.clearValue();\n'
20130515 '            }\n'
20130515 '        }else{\n'
20130515 '            if(rec){\n'
20130515 '                if (val == rec.get(this.displayField) && this.value == rec.get(this.valueField)){\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '                val = rec.get(this.valueField || this.displayField);\n'
20130515 '            }\n'
20130515 '            this.setValue(val);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getStyleClass: function(calendarId){\n'
20130515 "        if(calendarId && calendarId !== ''){\n"
20130515 '            var rec = this.store.getById(calendarId);\n'
20130515 "            return 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    setValue: function(value) {\n'
20130515 '        this.wrap.removeClass(this.getStyleClass(this.getValue()));\n'
20130515 '        value = value || this.store.getAt(0).data[Ext.ensible.cal.CalendarMappings.CalendarId.name];\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.setValue.call(this, value);\n'
20130515 '        this.wrap.addClass(this.getStyleClass(value));\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcombo', Ext.ensible.cal.CalendarCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 160,\n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'pattern',\n"
20130515 "    valueField: 'id',\n"
20130515 '    \n'
20130515 '    recurrenceText: {\n'
20130515 "        none: 'Does not repeat',\n"
20130515 "        daily: 'Daily',\n"
20130515 "        weekly: 'Weekly',\n"
20130515 "        monthly: 'Monthly',\n"
20130515 "        yearly: 'Yearly'\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 "        this.addEvents('recurrencechange');\n"
20130515 '        \n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 "            fields: ['id', 'pattern'],\n"
20130515 '            idIndex: 0,\n'
20130515 '            data: [\n'
20130515 "                ['NONE', this.recurrenceText.none],\n"
20130515 "                ['DAILY', this.recurrenceText.daily],\n"
20130515 "                ['WEEKLY', this.recurrenceText.weekly],\n"
20130515 "                ['MONTHLY', this.recurrenceText.monthly],\n"
20130515 "                ['YEARLY', this.recurrenceText.yearly]\n"
20130515 '            ]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initValue : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initValue.call(this);\n'
20130515 '        if(this.value != undefined){\n'
20130515 "            this.fireEvent('recurrencechange', this.value);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        var old = this.value;\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.setValue.call(this, v);\n'
20130515 '        if(old != v){\n'
20130515 "            this.fireEvent('recurrencechange', v);\n"
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencecombo', Ext.ensible.cal.RecurrenceCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' * Rrule info: http://www.kanzaki.com/docs/ical/rrule.html\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceField = Ext.extend(Ext.form.Field, {\n'
20130515 '    \n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 '    startDate: new Date().clearTime(),\n'
20130515 '    enableFx: true,\n'
20130515 '    \n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.initComponent.call(this);\n'
20130515 '        if(!this.height){\n'
20130515 '            this.autoHeight = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.frequencyCombo = new Ext.ensible.cal.RecurrenceCombo({\n'
20130515 "                id: this.id+'-frequency',\n"
20130515 '                listeners: {\n'
20130515 "                    'recurrencechange': {\n"
20130515 '                        fn: this.showOptions,\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            if(this.fieldLabel){\n'
20130515 '                this.frequencyCombo.fieldLabel = this.fieldLabel;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.innerCt = new Ext.Container({\n'
20130515 "                cls: 'extensible-recur-inner-ct',\n"
20130515 '                items: []\n'
20130515 '            });\n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'extensible-recur-ct',\n"
20130515 '                renderTo: ct,\n'
20130515 '                items: [this.frequencyCombo, this.innerCt]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.innerCt.ownerCt = this.fieldCt;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll(this.initSubComponents());\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '//    afterRender : function(){\n'
20130515 '//        Ext.ensible.cal.RecurrenceField.superclass.afterRender.call(this);\n'
20130515 '//        this.setStartDate(this.startDate);\n'
20130515 '//    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initValue : function(){\n'
20130515 '        this.setStartDate(this.startDate);\n'
20130515 '        \n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else if(this.frequency !== undefined){\n'
20130515 "            this.setValue('FREQ='+this.frequency);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('NONE');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showOptions : function(o){\n'
20130515 "        var layoutChanged = false, unit = 'day';\n"
20130515 '        \n'
20130515 "        if(o != 'NONE'){\n"
20130515 '            this.hideSubPanels();\n'
20130515 '        }\n'
20130515 '        this.frequency = o;\n'
20130515 '        \n'
20130515 '        switch(o){\n'
20130515 "            case 'DAILY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'WEEKLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.weekly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'week';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'MONTHLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.monthly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'month';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'YEARLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.yearly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'year';\n"
20130515 '                break;\n'
20130515 '            \n'
20130515 '            default:\n'
20130515 '                // case NONE\n'
20130515 '                this.hideInnerCt();\n'
20130515 '                return; \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(layoutChanged){\n'
20130515 '            this.innerCt.doLayout();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.showInnerCt();\n'
20130515 '        this.repeatEvery.updateLabel(unit);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showSubPanel : function(p){\n'
20130515 '        if (p.rendered) {\n'
20130515 '            p.show();\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(this.repeatEvery.rendered){\n'
20130515 '                // make sure weekly/monthly options show in the middle\n'
20130515 '                p = this.innerCt.insert(1, p);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                p = this.innerCt.add(p);\n'
20130515 '            }\n'
20130515 '            p.show();\n'
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showInnerCt: function(){\n'
20130515 '        if(!this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideIn('t', {\n"
20130515 '                    duration: .3\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.show();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideInnerCt: function(){\n'
20130515 '        if(this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideOut('t', {\n"
20130515 '                    duration: .3,\n'
20130515 "                    easing: 'easeIn',\n"
20130515 '                    callback: this.hideSubPanels,\n'
20130515 '                    scope: this\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.hide();\n'
20130515 '                this.hideSubPanels();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setStartDate : function(dt){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setStartDate(dt);\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getValue : function(){\n'
20130515 '        if(!this.rendered) {\n'
20130515 '            return this.value;\n'
20130515 '        }\n'
20130515 "        if(this.frequency=='NONE'){\n"
20130515 "            return '';\n"
20130515 '        }\n'
20130515 "        var value = 'FREQ='+this.frequency;\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            if(p.isVisible()){\n'
20130515 '                value += p.getValue();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        return value;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        this.value = v;\n'
20130515 '        \n'
20130515 "        if(v == null || v == '' || v == 'NONE'){\n"
20130515 "            this.frequencyCombo.setValue('NONE');\n"
20130515 "            this.showOptions('NONE');\n"
20130515 '            return this;\n'
20130515 '        }\n'
20130515 "        var parts = v.split(';');\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setValue(parts);\n'
20130515 '        });\n'
20130515 '        Ext.each(parts, function(p){\n'
20130515 "            if(p.indexOf('FREQ') > -1){\n"
20130515 "                var freq = p.split('=')[1];\n"
20130515 '                this.frequencyCombo.setValue(freq);\n'
20130515 '                this.showOptions(freq);\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideSubPanels : function(){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.hide();\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initSubComponents : function(){\n'
20130515 '        Ext.ensible.cal.recurrenceBase = Ext.extend(Ext.Container, {\n'
20130515 "            fieldLabel: ' ',\n"
20130515 "            labelSeparator: '',\n"
20130515 '            hideLabel: true,\n'
20130515 "            layout: 'table',\n"
20130515 "            anchor: '100%',\n"
20130515 '            startDate: this.startDate,\n'
20130515 '\n'
20130515 '            //TODO: This is not I18N-able:\n'
20130515 '            getSuffix : function(n){\n'
20130515 '                if(!Ext.isNumber(n)){\n'
20130515 "                    return '';\n"
20130515 '                }\n'
20130515 '                switch (n) {\n'
20130515 '                    case 1:\n'
20130515 '                    case 21:\n'
20130515 '                    case 31:\n'
20130515 '                        return "st";\n'
20130515 '                    case 2:\n'
20130515 '                    case 22:\n'
20130515 '                        return "nd";\n'
20130515 '                    case 3:\n'
20130515 '                    case 23:\n'
20130515 '                        return "rd";\n'
20130515 '                    default:\n'
20130515 '                        return "th";\n'
20130515 '                }\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            //shared by monthly and yearly components:\n'
20130515 '            initNthCombo: function(cbo){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    dt = this.startDate,\n'
20130515 '                    store = cbo.getStore(),\n'
20130515 '                    last = dt.getLastDateOfMonth().getDate(),\n'
20130515 '                    dayNum = dt.getDate(),\n'
20130515 "                    nthDate = dt.format('jS') + ' day',\n"
20130515 "                    isYearly = this.id.indexOf('-yearly') > -1,\n"
20130515 "                    yearlyText = ' in ' + dt.format('F'),\n"
20130515 '                    nthDayNum, nthDay, lastDay, lastDate, idx, data, s;\n'
20130515 '                    \n'
20130515 '                nthDayNum = Math.ceil(dayNum / 7);\n'
20130515 "                nthDay = nthDayNum + this.getSuffix(nthDayNum) + dt.format(' l');\n"
20130515 '                if(isYearly){\n'
20130515 '                    nthDate += yearlyText;\n'
20130515 '                    nthDay += yearlyText;\n'
20130515 '                }\n'
20130515 '                data = [[nthDate],[nthDay]];\n'
20130515 '                \n'
20130515 "                s = isYearly ? yearlyText : '';\n"
20130515 '                if(last-dayNum < 7){\n'
20130515 "                    data.push(['last '+dt.format('l')+s]);\n"
20130515 '                }\n'
20130515 '                if(last == dayNum){\n'
20130515 "                    data.push(['last day'+s]);\n"
20130515 '                }\n'
20130515 '                \n'
20130515 "                idx = store.find('field1', cbo.getValue());\n"
20130515 '                store.removeAll();\n'
20130515 '                cbo.clearValue();\n'
20130515 '                store.loadData(data);\n'
20130515 '                \n'
20130515 '                if(idx > data.length-1){\n'
20130515 '                    idx = data.length-1;\n'
20130515 '                }\n'
20130515 '                cbo.setValue(store.getAt(idx > -1 ? idx : 0).data.field1);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            setValue:Ext.emptyFn\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.repeatEvery = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-every',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'Repeat every'\n"
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-every-num',\n"
20130515 '                value: 1,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                enableKeyEvents: true,\n'
20130515 '                listeners: {\n'
20130515 "                    'keyup': {\n"
20130515 '                        fn: function(){\n'
20130515 '                            this.repeatEvery.updateLabel();\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-every-label'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.updateLabel();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = Ext.getCmp(this.id+'-num').getValue();\n"
20130515 "                return v > 1 ? ';INTERVAL='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('INTERVAL') > -1){\n"
20130515 "                        var interval = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(interval);\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            updateLabel: function(type){\n'
20130515 '                if(this.rendered){\n'
20130515 "                    var s = Ext.getCmp(this.id+'-num').getValue() == 1 ? '' : 's';\n"
20130515 "                    this.type = type ? type.toLowerCase() : this.type || 'day';\n"
20130515 "                    var lbl = Ext.getCmp(this.id+'-label');\n"
20130515 '                    if(lbl.rendered){\n'
20130515 "                        lbl.update(this.type + s + ' beginning ' + this.startDate.format('l, F j'));\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            afterRender: function(){\n'
20130515 '                Ext.ensible.cal.recurrenceBase.superclass.afterRender.call(this);\n'
20130515 '                this.updateLabel();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.weekly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-weekly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 2\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on:'\n"
20130515 '            },{\n'
20130515 "                xtype: 'checkboxgroup',\n"
20130515 "                id: this.id+'-weekly-days',\n"
20130515 '                items: [\n'
20130515 "                    {boxLabel: 'Sun', name: 'SU', id: this.id+'-weekly-SU'},\n"
20130515 "                    {boxLabel: 'Mon', name: 'MO', id: this.id+'-weekly-MO'},\n"
20130515 "                    {boxLabel: 'Tue', name: 'TU', id: this.id+'-weekly-TU'},\n"
20130515 "                    {boxLabel: 'Wed', name: 'WE', id: this.id+'-weekly-WE'},\n"
20130515 "                    {boxLabel: 'Thu', name: 'TH', id: this.id+'-weekly-TH'},\n"
20130515 "                    {boxLabel: 'Fri', name: 'FR', id: this.id+'-weekly-FR'},\n"
20130515 "                    {boxLabel: 'Sat', name: 'SA', id: this.id+'-weekly-SA'}\n"
20130515 '                ]\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.selectToday();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            selectToday: function(){\n'
20130515 '                this.clearValue();\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                Ext.getCmp(this.id + '-days').setValue(day, true);\n"
20130515 '            },\n'
20130515 '            clearValue: function(){\n'
20130515 "                Ext.getCmp(this.id + '-days').setValue([false, false, false, false, false, false, false]);\n"
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = '', sel = Ext.getCmp(this.id+'-days').getValue();\n"
20130515 '                Ext.each(sel, function(chk){\n'
20130515 '                    if(v.length > 0){\n'
20130515 "                        v += ',';\n"
20130515 '                    }\n'
20130515 '                    v += chk.name;\n'
20130515 '                });\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                return v.length > 0 && v != day ? ';BYDAY='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                this.clearValue();\n'
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('BYDAY') > -1){\n"
20130515 "                        var days = p.split('=')[1].split(','),\n"
20130515 '                            vals = {};\n'
20130515 '                            \n'
20130515 '                        Ext.each(days, function(d){\n'
20130515 '                            vals[d] = true;\n'
20130515 '                        }, this);\n'
20130515 '                        \n'
20130515 "                        Ext.getCmp(this.id+'-days').setValue(vals);\n"
20130515 '                        return set = true;\n'
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                \n'
20130515 '                if(!set){\n'
20130515 '                    this.selectToday();\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.monthly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-monthly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-monthly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 150,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'of each month'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase();\n"
20130515 '                \n'
20130515 '                if (idx > -1) {\n'
20130515 '                    switch(idx){\n'
20130515 "                        case 0:  return ';BYMONTHDAY='+dt.format('j');\n"
20130515 "                        case 1:  return ';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return ';BYDAY=-1'+day;\n"
20130515 "                        default: return ';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.yearly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-yearly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-yearly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 170,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'each year'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase(),\n"
20130515 "                    byMonth = ';BYMONTH='+dt.format('n');\n"
20130515 '                \n'
20130515 '                if(idx > -1){\n'
20130515 '                    switch(idx){\n'
20130515 '                        case 0:  return byMonth;\n'
20130515 "                        case 1:  return byMonth+';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return byMonth+';BYDAY=-1'+day;\n"
20130515 "                        default: return byMonth+';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.until = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-until',\n"
20130515 "            untilDateFormat: 'Ymd\\\\T000000\\\\Z',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 5\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'and continuing'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-until-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 85,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 "                value: 'forever',\n"
20130515 "                store: ['forever', 'for', 'until'],\n"
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(cbo, rec){\n'
20130515 "                            var dt = Ext.getCmp(this.id+'-until-date');\n"
20130515 "                            if(rec.data.field1 == 'until'){\n"
20130515 '                                dt.show();\n'
20130515 "                                if (dt.getValue() == '') {\n"
20130515 '                                    dt.setValue(this.startDate.add(Date.DAY, 5));\n'
20130515 '                                    dt.setMinValue(this.startDate.clone().add(Date.DAY, 1));\n'
20130515 '                                }\n'
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 '                                dt.hide();\n'
20130515 '                            }\n'
20130515 "                            if(rec.data.field1 == 'for'){\n"
20130515 "                                Ext.getCmp(this.id+'-until-num').show();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').show();\n"
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 "                                Ext.getCmp(this.id+'-until-num').hide();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').hide();\n"
20130515 '                            }\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'datefield',\n"
20130515 "                id: this.id+'-until-date',\n"
20130515 '                showToday: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-until-num',\n"
20130515 '                value: 5,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-until-endlabel',\n"
20130515 "                text: 'occurrences',\n"
20130515 '                hidden: true\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var dt = Ext.getCmp(this.id+'-date');\n"
20130515 '                if(dt.isVisible()){\n'
20130515 "                    return ';UNTIL='+dt.getValue().format(this.untilDateFormat);\n"
20130515 '                }\n'
20130515 "                var ct = Ext.getCmp(this.id+'-num');\n"
20130515 '                if(ct.isVisible()){\n'
20130515 "                    return ';COUNT='+ct.getValue();\n"
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('COUNT') > -1){\n"
20130515 "                        var count = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('for');\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(count).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').show();\n"
20130515 '                    }\n'
20130515 "                    else if(p.indexOf('UNTIL') > -1){\n"
20130515 "                        var dt = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('until');\n"
20130515 "                        Ext.getCmp(this.id+'-date').setValue(Date.parseDate(dt, this.untilDateFormat)).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').hide();\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        return [this.repeatEvery, this.weekly, this.monthly, this.yearly, this.until];\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencefield', Ext.ensible.cal.RecurrenceField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DateRangeField\n'
20130515 ' * @extends Ext.form.Field\n'
20130515 ' * <p>A combination field that includes start and end dates and times, as well as an optional all-day checkbox.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DateRangeField = Ext.extend(Ext.form.Field, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} toText\n'
20130515 "     * The text to display in between the date/time fields (defaults to 'to')\n"
20130515 '     */\n'
20130515 "    toText: 'to',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} allDayText\n'
20130515 "     * The text to display as the label for the all day checkbox (defaults to 'All day')\n"
20130515 '     */\n'
20130515 "    allDayText: 'All day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String/Boolean} singleLine\n'
20130515 '     * This value can be set explicitly to <code>true</code> or <code>false</code> to force the field to render on\n'
20130515 "     * one line or two lines respectively.  The default value is <code>'auto'</code> which means that the field will\n"
20130515 "     * calculate its container's width and compare it to {@link singleLineMinWidth} to determine whether to render \n"
20130515 '     * on one line or two automatically.  Note that this only applies at render time -- once the field is rendered\n'
20130515 '     * the layout cannot be changed.\n'
20130515 '     */\n'
20130515 "    singleLine: 'auto',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} singleLineMinWidth\n'
20130515 "     * If {@link singleLine} is set to 'auto' it will use this value to determine whether to render the field on one\n"
20130515 '     * line or two. This value is the approximate minimum width required to render the field on a single line, so if\n'
20130515 "     * the field's container is narrower than this value it will automatically be rendered on two lines.\n"
20130515 '     */\n'
20130515 '    singleLineMinWidth: 490,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} dateFormat\n'
20130515 "     * The date display format used by the date fields (defaults to 'n/j/Y') \n"
20130515 '     */\n'
20130515 "    dateFormat: 'n/j/Y',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.startDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-start-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.startTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-start-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.endTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-end-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            })\n'
20130515 '            this.endDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-end-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.allDay = new Ext.form.Checkbox({\n'
20130515 "                id: this.id+'-allday',\n"
20130515 '                hidden: this.showTimes === false || this.showAllDay === false,\n'
20130515 '                boxLabel: this.allDayText,\n'
20130515 '                handler: function(chk, checked){\n'
20130515 '                    this.startTime.setVisible(!checked);\n'
20130515 '                    this.endTime.setVisible(!checked);\n'
20130515 '                },\n'
20130515 '                scope: this\n'
20130515 '            });\n'
20130515 '            this.toLabel = new Ext.form.Label({\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-to-label',\n"
20130515 '                text: this.toText\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            var singleLine = this.singleLine;\n'
20130515 "            if(singleLine == 'auto'){\n"
20130515 "                var el, w = this.ownerCt.getWidth() - this.ownerCt.getEl().getPadding('lr');\n"
20130515 "                if(el = this.ownerCt.getEl().child('.x-panel-body')){\n"
20130515 "                    w -= el.getPadding('lr');\n"
20130515 '                }\n'
20130515 "                if(el = this.ownerCt.getEl().child('.x-form-item-label')){\n"
20130515 "                    w -= el.getWidth() - el.getPadding('lr');\n"
20130515 '                }\n'
20130515 '                singleLine = w <= this.singleLineMinWidth ? false : true;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'ext-dt-range',\n"
20130515 '                renderTo: ct,\n'
20130515 "                layout: 'table',\n"
20130515 '                layoutConfig: {\n'
20130515 '                    columns: singleLine ? 6 : 3\n'
20130515 '                },\n'
20130515 '                defaults: {\n'
20130515 '                    hideParent: true\n'
20130515 '                },\n'
20130515 '                items:[\n'
20130515 '                    this.startDate,\n'
20130515 '                    this.startTime,\n'
20130515 '                    this.toLabel,\n'
20130515 '                    singleLine ? this.endTime : this.endDate,\n'
20130515 '                    singleLine ? this.endDate : this.endTime,\n'
20130515 '                    this.allDay\n'
20130515 '                ]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll([this.startDate, this.endDate, this.toLabel, this.startTime, this.endTime, this.allDay]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.onRender.call(this, ct, position);\n'
20130515 '        \n'
20130515 '        if(!singleLine){\n'
20130515 "            this.el.child('tr').addClass('ext-dt-range-row1');\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onFieldChange: function(type, startend){\n'
20130515 '        this.checkDates(type, startend);\n'
20130515 "        this.fireEvent('change', this, this.getValue());\n"
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    checkDates: function(type, startend){\n'
20130515 "        var startField = Ext.getCmp(this.id+'-start-'+type),\n"
20130515 "            endField = Ext.getCmp(this.id+'-end-'+type),\n"
20130515 "            startValue = this.getDT('start'),\n"
20130515 "            endValue = this.getDT('end');\n"
20130515 '\n'
20130515 '        if(startValue > endValue){\n'
20130515 "            if(startend=='start'){\n"
20130515 '                endField.setValue(startValue);\n'
20130515 '            }else{\n'
20130515 '                startField.setValue(endValue);\n'
20130515 "                this.checkDates(type, 'start');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        if(type=='date'){\n"
20130515 "            this.checkDates('time', startend);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns an array containing the following values in order:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The start date/time</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The end date/time</div></li>\n'
20130515 '     * <li><b><code>Boolean</code></b> : <div class="sub-desc">True if the dates are all-day, false \n'
20130515 '     * if the time values should be used</div></li><ul></div>\n'
20130515 '     * @return {Array} The array of return values\n'
20130515 '     */\n'
20130515 '    getValue: function(){\n'
20130515 '        return [\n'
20130515 "            this.getDT('start'), \n"
20130515 "            this.getDT('end'),\n"
20130515 '            this.allDay.getValue()\n'
20130515 '        ];\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private getValue helper\n'
20130515 '    getDT: function(startend){\n'
20130515 "        var time = this[startend+'Time'].getValue(),\n"
20130515 "            dt = this[startend+'Date'].getValue();\n"
20130515 '            \n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format(this[startend+'Date'].format);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            return null;\n'
20130515 '        };\n'
20130515 "        if(time != ''){\n"
20130515 "            return Date.parseDate(dt+' '+time, this[startend+'Date'].format+' '+this[startend+'Time'].format);\n"
20130515 '        }\n'
20130515 "        return Date.parseDate(dt, this[startend+'Date'].format);\n"
20130515 '        \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the values to use in the date range.\n'
20130515 '     * @param {Array/Date/Object} v The value(s) to set into the field. Valid types are as follows:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>Array</code></b> : <div class="sub-desc">An array containing, in order, a start date, end date and all-day flag.\n'
20130515 '     * This array should exactly match the return type as specified by {@link #getValue}.</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">A single Date object, which will be used for both the start and\n'
20130515 '     * end dates in the range.  The all-day flag will be defaulted to false.</div></li>\n'
20130515 '     * <li><b><code>Object</code></b> : <div class="sub-desc">An object containing properties for StartDate, EndDate and IsAllDay\n'
20130515 '     * as defined in {@link Ext.ensible.cal.EventMappings}.</div></li><ul></div>\n'
20130515 '     */\n'
20130515 '    setValue: function(v){\n'
20130515 '        if(Ext.isArray(v)){\n'
20130515 "            this.setDT(v[0], 'start');\n"
20130515 "            this.setDT(v[1], 'end');\n"
20130515 '            this.allDay.setValue(!!v[2]);\n'
20130515 '        }\n'
20130515 '        else if(Ext.isDate(v)){\n'
20130515 "            this.setDT(v, 'start');\n"
20130515 "            this.setDT(v, 'end');\n"
20130515 '            this.allDay.setValue(false);\n'
20130515 '        }\n'
20130515 '        else if(v[Ext.ensible.cal.EventMappings.StartDate.name]){ //object\n'
20130515 "            this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'start');\n"
20130515 "            if(!this.setDT(v[Ext.ensible.cal.EventMappings.EndDate.name], 'end')){\n"
20130515 "                this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'end');\n"
20130515 '            }\n'
20130515 '            this.allDay.setValue(!!v[Ext.ensible.cal.EventMappings.IsAllDay.name]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private setValue helper\n'
20130515 '    setDT: function(dt, startend){\n'
20130515 '        if(dt && Ext.isDate(dt)){\n'
20130515 "            this[startend+'Date'].setValue(dt);\n"
20130515 "            this[startend+'Time'].setValue(dt.format(this[startend+'Time'].format));\n"
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    isDirty: function(){\n'
20130515 '        var dirty = false;\n'
20130515 '        if(this.rendered && !this.disabled) {\n'
20130515 '            this.items.each(function(item){\n'
20130515 '                if (item.isDirty()) {\n'
20130515 '                    dirty = true;\n'
20130515 '                    return false;\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDisable : function(){\n'
20130515 "        this.delegateFn('disable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEnable : function(){\n'
20130515 "        this.delegateFn('enable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    reset : function(){\n'
20130515 "        this.delegateFn('reset');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    delegateFn : function(fn){\n'
20130515 '        this.items.each(function(item){\n'
20130515 '            if (item[fn]) {\n'
20130515 '                item[fn]();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    beforeDestroy: function(){\n'
20130515 '        Ext.destroy(this.fieldCt);\n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.beforeDestroy.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @method getRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    getRawValue : Ext.emptyFn,\n'
20130515 '    /**\n'
20130515 '     * @method setRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    setRawValue : Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daterangefield', Ext.ensible.cal.DateRangeField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ReminderField\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing a reminder setting for an event.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 'width: 200,\n'
20130515 "fieldLabel: 'Reminder',\n"
20130515 "mode: 'local',\n"
20130515 "triggerAction: 'all',\n"
20130515 'forceSelection: true,\n'
20130515 "displayField: 'desc',\n"
20130515 "valueField: 'value',\n"
20130515 "noneText: 'None',\n"
20130515 "atStartTimeText: 'At start time',\n"
20130515 "reminderValueFormat: '{0} {1} before start'\n"
20130515 '</code></pre>\n'
20130515 ' * <p>To customize the descriptions in the dropdown list override the following methods: \n'
20130515 ' * {@link #getMinutesText}, {@link #getHoursText}, {@link #getDaysText} and {@link #getWeeksText}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ReminderField = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 200,\n'
20130515 "    fieldLabel: 'Reminder',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'desc',\n"
20130515 "    valueField: 'value',\n"
20130515 "    noneText: 'None',\n"
20130515 "    atStartTimeText: 'At start time',\n"
20130515 "    reminderValueFormat: '{0} {1} before start',\n"
20130515 '    \n'
20130515 '    // the following are all deprecated in favor of the corresponding get* template methods.\n'
20130515 '    // they are still here only for backwards-compatibility and will be removed in a future release.\n'
20130515 "    minutesText: 'minutes',\n"
20130515 "    hourText: 'hour',\n"
20130515 "    hoursText: 'hours',\n"
20130515 "    dayText: 'day',\n"
20130515 "    daysText: 'days',\n"
20130515 "    weekText: 'week',\n"
20130515 "    weeksText: 'weeks',\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the list of reminder values used as the contents of the combo list. This method is provided so that\n'
20130515 '     * the value list can be easily overridden as needed.\n'
20130515 '     * @return {Array} A 2-dimensional array of type [{String}, {String}] which contains the value and description\n'
20130515 '     * respectively of each item in the combo list. By default the value is the number of minutes for the selected \n'
20130515 "     * time value (e.g., value 120 == '2 hours') with empty string for no value, but these can be set to anything.\n"
20130515 '     */\n'
20130515 '    getValueList: function(){\n'
20130515 '        var me = this,\n'
20130515 '            fmt = me.reminderValueFormat,\n'
20130515 '            stringFormat = String.format;\n'
20130515 '            \n'
20130515 '        return [\n'
20130515 "            ['', me.noneText],\n"
20130515 "            ['0', me.atStartTimeText],\n"
20130515 "            ['5', stringFormat(fmt, '5', me.getMinutesText(5))],\n"
20130515 "            ['15', stringFormat(fmt, '15', me.getMinutesText(15))],\n"
20130515 "            ['30', stringFormat(fmt, '30', me.getMinutesText(30))],\n"
20130515 "            ['60', stringFormat(fmt, '1', me.getHoursText(1))],\n"
20130515 "            ['90', stringFormat(fmt, '1.5', me.getHoursText(1.5))],\n"
20130515 "            ['120', stringFormat(fmt, '2', me.getHoursText(2))],\n"
20130515 "            ['180', stringFormat(fmt, '3', me.getHoursText(3))],\n"
20130515 "            ['360', stringFormat(fmt, '6', me.getHoursText(6))],\n"
20130515 "            ['720', stringFormat(fmt, '12', me.getHoursText(12))],\n"
20130515 "            ['1440', stringFormat(fmt, '1', me.getDaysText(1))],\n"
20130515 "            ['2880', stringFormat(fmt, '2', me.getDaysText(2))],\n"
20130515 "            ['4320', stringFormat(fmt, '3', me.getDaysText(3))],\n"
20130515 "            ['5760', stringFormat(fmt, '4', me.getDaysText(4))],\n"
20130515 "            ['7200', stringFormat(fmt, '5', me.getDaysText(5))],\n"
20130515 "            ['10080', stringFormat(fmt, '1', me.getWeeksText(1))],\n"
20130515 "            ['20160', stringFormat(fmt, '2', me.getWeeksText(2))]\n"
20130515 '        ]\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of minutes\n'
20130515 "     * prior to the due time (defaults to 'minute' when the passed value === 1, else 'minutes').\n"
20130515 '     * @param {Number} numMinutes The number of minutes prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getMinutesText: function(numMinutes){\n'
20130515 '        return numMinutes === 1 ? this.minuteText : this.minutesText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of hours\n'
20130515 "     * prior to the due time (defaults to 'hour' when the passed value === 1, else 'hours').\n"
20130515 '     * @param {Number} numHours The number of hours prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getHoursText: function(numHours){\n'
20130515 '        return numHours === 1 ? this.hourText : this.hoursText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of days\n'
20130515 "     * prior to the due time (defaults to 'day' when the passed value === 1, else 'days').\n"
20130515 '     * @param {Number} numDays The number of days prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getDaysText: function(numDays){\n'
20130515 '        return numDays === 1 ? this.dayText : this.daysText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of weeks\n'
20130515 "     * prior to the due time (defaults to 'week' when the passed value === 1, else 'weeks').\n"
20130515 '     * @param {Number} numWeeks The number of weeks prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getWeeksText: function(numWeeks){\n'
20130515 '        return numWeeks === 1 ? this.weekText : this.weeksText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ReminderField.superclass.initComponent.call(this);\n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 '            fields: [this.valueField, this.displayField],\n'
20130515 '            idIndex: 0,\n'
20130515 '            data: this.getValueList()\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    initValue : function(){\n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.reminderfield', Ext.ensible.cal.ReminderField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ColorPalette\n'
20130515 ' * @extends Ext.ColorPalette\n'
20130515 ' * Simple color palette class for choosing colors specifically for calendars. This is a lightly modified version\n'
20130515 ' * of the default Ext ColorPalette that is based on calendar ids rather than hex color codes so that the colors\n'
20130515 ' * can be easily modified via CSS and automatically applied to calendars. The specific colors used by default are\n'
20130515 ' * also chosen to provide good color contrast when displayed in calendars.\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * Create a new ColorPalette\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype extensible.calendarcolorpalette\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ColorPalette = Ext.extend(Ext.ColorPalette, {\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    colorCount: 32,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Function} handler\n'
20130515 '     * Optional. A function that will handle the select event of this color palette.\n'
20130515 '     * The handler is passed the following parameters:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><code>palette</code> : ColorPalette<div class="sub-desc">The {@link #palette Ext.ensible.cal.ColorPalette} instance.</div></li>\n'
20130515 '     * <li><code>colorId</code> : String<div class="sub-desc">The id that identifies the selected color and relates it to a calendar.</div></li>\n'
20130515 '     * </ul></div>\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ColorPalette.superclass.initComponent.call(this);\n'
20130515 "        this.addClass('x-calendar-palette');\n"
20130515 '        this.tpl = new Ext.XTemplate(\'<tpl for="."><a class="x-unselectable x-cal-color" id="\' + this.id +\n'
20130515 '            \'-color-{.}" href="#" hidefocus="on"><em><span class="x-cal-{.}">&#160;</span></em></a></tpl>\');\n'
20130515 '            \n'
20130515 '        if(this.handler){\n'
20130515 "            this.on('select', this.handler, this.scope || this);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.colors = [];\n'
20130515 '        for(var i=1; i<=this.colorCount; i++){\n'
20130515 '            this.colors.push(i);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleClick : function(e, t){\n'
20130515 '        e.preventDefault();\n'
20130515 "        var el = e.getTarget('.x-cal-color', 3, true);\n"
20130515 '        if(el){\n'
20130515 "            var id = el.id.split('-color-')[1];\n"
20130515 '            this.select(id);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Selects the specified color in the palette (fires the {@link #select} event)\n'
20130515 '     * @param {Number} colorId The id that identifies the selected color and relates it to a calendar\n'
20130515 '     * @param {Boolean} suppressEvent (optional) True to stop the select event from firing. Defaults to <tt>false</tt>.\n'
20130515 '     */\n'
20130515 '    select : function(colorId, suppressEvent){\n'
20130515 '        if(colorId != this.value){\n'
20130515 '            if(this.value){\n'
20130515 "                Ext.fly(this.id+'-color-'+this.value).removeClass('x-color-palette-sel');\n"
20130515 '            }\n'
20130515 "            Ext.get(this.id+'-color-'+colorId).addClass('x-color-palette-sel');\n"
20130515 '            this.value = colorId;\n'
20130515 '            \n'
20130515 '            if(suppressEvent !== true){\n'
20130515 "                this.fireEvent('select', this, colorId);\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcolorpalette', Ext.ensible.cal.ColorPalette);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarListMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * <p>A menu containing a {@link Ext.ensible.cal.ColorPalette palette} for choosing calendar colors, \n'
20130515 ' * as well as other calendar-specific options.</p>\n'
20130515 ' * @xtype extensible.calendarlistmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarListMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} cls\n'
20130515 "     * An optional extra CSS class that will be added to this component's Element (defaults to 'x-calendar-list-menu'). \n"
20130515 '     * This can be useful for adding customized styles to the component or any of its children using standard CSS rules.\n'
20130515 '     */\n'
20130515 "    cls : 'x-calendar-list-menu',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} displayOnlyThisCalendarText\n'
20130515 "     * The text to display for the 'Display only this calendar' option in the menu.\n"
20130515 '     */\n'
20130515 "    displayOnlyThisCalendarText: 'Display only this calendar',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} calendarId\n'
20130515 '     * The id of the calendar to be associated with this menu. This calendarId will be passed\n'
20130515 '     * back with any events from this menu to identify the calendar to be acted upon. The calendar\n'
20130515 '     * id can also be changed at any time after creation by calling {@link setCalendar}.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @property palette\n'
20130515 '     * @type ColorPalette\n'
20130515 '     * The {@link Ext.ensible.cal.ColorPalette ColorPalette} instance for this CalendarListMenu\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 "            'showcalendar',\n"
20130515 "            'hidecalendar',\n"
20130515 "            'radiocalendar',\n"
20130515 "            'colorchange'\n"
20130515 '        );\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.displayOnlyThisCalendarText,\n'
20130515 "                iconCls: 'extensible-cal-icon-cal-show',\n"
20130515 '                handler: this.handleRadioCalendarClick.createDelegate(this)\n'
20130515 "            }, '-', {\n"
20130515 "                xtype: 'extensible.calendarcolorpalette',\n"
20130515 '                handler: this.handleColorSelect.createDelegate(this)\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.afterRender.call(this);\n'
20130515 "        this.palette = this.findByType('extensible.calendarcolorpalette')[0];\n"
20130515 '        \n'
20130515 '        if(this.colorId){\n'
20130515 '            this.palette.select(this.colorId, true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendarClick: function(e, t){\n'
20130515 "        this.fireEvent('radiocalendar', this, this.calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorSelect: function(cp, selColorId){\n'
20130515 "        this.fireEvent('colorchange', this, this.calendarId, selColorId, this.colorId);\n"
20130515 '        this.colorId = selColorId;\n'
20130515 '        this.menuHide();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the calendar id and color id to be associated with this menu. This should be called each time the\n'
20130515 '     * menu is shown relative to a new calendar.\n'
20130515 '     * @param {Number} calendarId The id of the calendar to be associated\n'
20130515 '     * @param {Number} colorId The id of the color to be pre-selected in the color palette\n'
20130515 '     * @return {Ext.ensible.cal.CalendarListMenu} this\n'
20130515 '     */\n'
20130515 '    setCalendar: function(id, cid){\n'
20130515 '        this.calendarId = id;\n'
20130515 '        this.colorId = cid;\n'
20130515 '        \n'
20130515 '        if(this.rendered){\n'
20130515 '            this.palette.select(cid, true);\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    menuHide : function(){\n'
20130515 '        if(this.hideOnClick){\n'
20130515 '            this.hide(true);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlistmenu', Ext.ensible.cal.CalendarListMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.EventContextMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * The context menu displayed for calendar events in any {@link Ext.ensible.cal.CalendarView CalendarView} subclass. \n'
20130515 ' * @xtype extensible.eventcontextmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventContextMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} editDetailsText\n'
20130515 "     * The text to display for the 'Edit Details' option in the menu.\n"
20130515 '     */\n'
20130515 "    editDetailsText: 'Edit Details',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} deleteText\n'
20130515 "     * The text to display for the 'Delete' option in the menu.\n"
20130515 '     */\n'
20130515 "    deleteText: 'Delete',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} moveToText\n'
20130515 "     * The text to display for the 'Move to...' option in the menu.\n"
20130515 '     */\n'
20130515 "    moveToText: 'Move to...',\n"
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the event details\n'
20130515 '             * (by default, in an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should \n'
20130515 '             * transfer the current event record to the appropriate instance of the detailed form by showing\n'
20130515 '             * the form and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'editdetails',\n"
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after the user selectes the option to delete an event. Note that this menu does not actually\n'
20130515 '             * delete the event from the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the deletion and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be deleted\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'eventdelete',\n"
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after the user selects a date in the calendar picker under the "move event" menu option. Note that this menu does not actually\n'
20130515 '             * update the event in the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the move action and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be moved\n'
20130515 '             * @param {Date} dt The new start date for the event (the existing event start time will be preserved)\n'
20130515 '             */\n'
20130515 "            'eventmove'\n"
20130515 '        );\n'
20130515 '        this.buildMenu();\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Overrideable method intended for customizing the menu items. This should only to be used for overriding \n'
20130515 '     * or called from a subclass and should not be called directly from application code.\n'
20130515 '     */\n'
20130515 '    buildMenu: function(){\n'
20130515 '        if(this.rendered){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.dateMenu = new Ext.menu.DateMenu({\n'
20130515 '            scope: this,\n'
20130515 '            handler: function(dp, dt){\n'
20130515 '                dt = Ext.ensible.Date.copyTime(this.rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt);\n'
20130515 "                this.fireEvent('eventmove', this, this.rec, dt);\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.editDetailsText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-edit',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('editdetails', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 '            },{\n'
20130515 '                text: this.deleteText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-del',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('eventdelete', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 "            },'-',{\n"
20130515 '                text: this.moveToText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-move',\n"
20130515 '                menu: this.dateMenu\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the specified event at the given XY position. \n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event\n'
20130515 '     * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '     * @param {Array} xy The X & Y [x, y] values for the position at which to show the menu (coordinates are page-based) \n'
20130515 '     */\n'
20130515 '    showForEvent: function(rec, el, xy){\n'
20130515 '        this.rec = rec;\n'
20130515 '        this.ctxEl = el;\n'
20130515 '        this.dateMenu.picker.setValue(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        this.showAt(xy);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onHide : function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.onHide.call(this);\n'
20130515 '        delete this.ctxEl;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventcontextmenu', Ext.ensible.cal.EventContextMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarList\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is a {@link Ext.Panel panel} subclass that renders a list of available calendars\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarList = Ext.extend(Ext.Panel, {\n'
20130515 "    title: 'Calendars',\n"
20130515 '    collapsible: true,\n'
20130515 '    autoHeight: true,\n'
20130515 "    layout: 'fit',\n"
20130515 "    menuSelector: 'em',\n"
20130515 "    width: 100, // this should be overridden by this container's layout\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} store\n'
20130515 '     * A {@link Ext.data.Store store} containing records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * This is a required config and is used to populate the calendar list.  The CalendarList widget will also listen for events from\n'
20130515 '     * the store and automatically refresh iteself in the event that the underlying calendar records in the store change.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 "        this.addClass('x-calendar-list');\n"
20130515 '        Ext.ensible.cal.CalendarList.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(ct, position){\n'
20130515 '        Ext.ensible.cal.CalendarList.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        if(this.store){\n'
20130515 '            this.setStore(this.store, true);\n'
20130515 '        }\n'
20130515 '        this.refresh();\n'
20130515 '        \n'
20130515 "        this.body.on('click', this.onClick, this);\n"
20130515 "        this.body.on('mouseover', this.onMouseOver, this, {delegate: 'li'});\n"
20130515 "        this.body.on('mouseout', this.onMouseOut, this, {delegate: 'li'});\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getListTemplate : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evr {colorCls} {hiddenCls}">{title}<em>&#160;</em></li>\',\n'
20130515 "                    '</tpl></ul>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evo {colorCls} {hiddenCls}">\',\n'
20130515 '                            \'<div class="ext-cal-evm">\',\n'
20130515 '                                \'<div class="ext-cal-evi">{title}<em>&#160;</em></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</li>',\n"
20130515 "                    '</tpl></ul>'\n"
20130515 '                );\n'
20130515 '            this.tpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.tpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the store used to display the available calendars. It should contain \n'
20130515 '     * records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        if(!initial && this.store){\n'
20130515 '            this.store.un("load", this.refresh, this);\n'
20130515 '            this.store.un("add", this.refresh, this);\n'
20130515 '            this.store.un("remove", this.refresh, this);\n'
20130515 '            this.store.un("update", this.onUpdate, this);\n'
20130515 '            this.store.un("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("load", this.refresh, this);\n'
20130515 '            store.on("add", this.refresh, this);\n'
20130515 '            store.on("remove", this.refresh, this);\n'
20130515 '            store.on("update", this.onUpdate, this);\n'
20130515 '            store.on("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onUpdate : function(ds, rec, operation){\n'
20130515 '        // ignore EDIT notifications, only refresh after a commit\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.refresh();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Refreshes the calendar list so that it displays based on the most current state of\n'
20130515 '     * the underlying calendar store. Usually this method does not need to be called directly\n'
20130515 "     * as the control is automatically bound to the store's events, but it is available in the\n"
20130515 '     * event that a manual refresh is ever needed.\n'
20130515 '     */\n'
20130515 '    refresh: function(){\n'
20130515 '        if(this.skipRefresh){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        var data = [], i = 0, o = null,\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            o = {\n'
20130515 "                cmpId: this.id + '__' + recs[i].data[CM.CalendarId.name],\n"
20130515 '                title: recs[i].data[CM.Title.name],\n'
20130515 '                colorCls: this.getColorCls(recs[i].data[CM.ColorId.name])\n'
20130515 '            };\n'
20130515 '            if(recs[i].data[CM.IsHidden.name] === true){\n'
20130515 "                o.hiddenCls = 'ext-cal-hidden';\n"
20130515 '            }\n'
20130515 '            data[data.length] = o;\n'
20130515 '        }\n'
20130515 '        this.getListTemplate().overwrite(this.body, data);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getColorCls: function(colorId){\n'
20130515 "        return 'x-cal-'+colorId+'-ad';\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    toggleCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id),\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            isHidden = rec.data[CM.IsHidden.name]; \n'
20130515 '        \n'
20130515 '        rec.set([CM.IsHidden.name], !isHidden);\n'
20130515 '        \n'
20130515 '        if(commit !== false){\n'
20130515 '            rec.commit();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    hideCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] !== true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    radioCalendar: function(id){\n'
20130515 '        var i = 0, recId,\n'
20130515 '            calendarId = Ext.ensible.cal.CalendarMappings.CalendarId.name,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            recId = recs[i].data[calendarId];\n'
20130515 '            // make a truthy check so that either numeric or string ids can match\n'
20130515 '            if(recId == id){\n'
20130515 '                this.showCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.hideCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // store.commitChanges() just loops over each modified record and calls rec.commit(),\n'
20130515 '        // which in turns fires an update event that would cause a full refresh for each record.\n'
20130515 '        // To avoid this we simply set a flag and make sure we only refresh once per commit set.\n'
20130515 '        this.skipRefresh = true;\n'
20130515 '        this.store.commitChanges();\n'
20130515 '        delete this.skipRefresh;\n'
20130515 '        this.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOver: function(e, t){\n'
20130515 "        Ext.fly(t).addClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOut: function(e, t){\n'
20130515 "        Ext.fly(t).removeClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarId: function(el){\n'
20130515 "        return el.id.split('__')[1];\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarItemEl: function(calendarId){\n'
20130515 "        return Ext.get(this.id+'__'+calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        var el;\n'
20130515 '        if(el = e.getTarget(this.menuSelector, 3, true)){\n'
20130515 '            this.showEventMenu(el, e.getXY());\n'
20130515 '        }\n'
20130515 "        else if(el = e.getTarget('li', 3, true)){\n"
20130515 '            this.toggleCalendar(this.getCalendarId(el));\n'
20130515 '        } \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorChange: function(menu, id, colorId, origColorId){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name] = colorId;\n'
20130515 '        rec.commit();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendar: function(menu, id){\n'
20130515 '        this.radioCalendar(id);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showEventMenu : function(el, xy){\n'
20130515 "        var id = this.getCalendarId(el.parent('li')),\n"
20130515 '            rec = this.store.getById(id),\n'
20130515 '            colorId = rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n'
20130515 '            \n'
20130515 '        if(!this.menu){\n'
20130515 '            this.menu = new Ext.ensible.cal.CalendarListMenu();\n'
20130515 "            this.menu.on('colorchange', this.handleColorChange, this);\n"
20130515 "            this.menu.on('radiocalendar', this.handleRadioCalendar, this);\n"
20130515 '        }\n'
20130515 '        this.menu.setCalendar(id, colorId);\n'
20130515 '        this.menu.showAt(xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlist', Ext.ensible.cal.CalendarList);/**\n"
20130515 ' * @class Ext.ensible.cal.EventEditForm\n'
20130515 ' * @extends Ext.form.FormPanel\n'
20130515 ' * <p>A custom form used for detailed editing of events.</p>\n'
20130515 ' * <p>This is pretty much a standard form that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. It is also configured to automatically bind records of type {@link Ext.ensible.cal.EventRecord}\n'
20130515 ' * to and from the form.</p>\n'
20130515 ' * <p>This form also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 'labelWidth: 65,\n'
20130515 'labelWidthRightCol: 65,\n'
20130515 'colWidthLeft: .6,\n'
20130515 'colWidthRight: .4,\n'
20130515 "title: 'Event Form',\n"
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "reminderLabelText: 'Reminder',\n"
20130515 "notesLabelText: 'Notes',\n"
20130515 "locationLabelText: 'Location',\n"
20130515 "webLinkLabelText: 'Web Link',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "repeatsLabelText: 'Repeats',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 'border: false,\n'
20130515 "buttonAlign: 'center',\n"
20130515 'autoHeight: true // to allow for the notes field to autogrow\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditForm = Ext.extend(Ext.form.FormPanel, {\n'
20130515 '    labelWidth: 65,\n'
20130515 '    labelWidthRightCol: 65,\n'
20130515 '    colWidthLeft: .6,\n'
20130515 '    colWidthRight: .4,\n'
20130515 "    title: 'Event Form',\n"
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    reminderLabelText: 'Reminder',\n"
20130515 "    notesLabelText: 'Notes',\n"
20130515 "    locationLabelText: 'Location',\n"
20130515 "    webLinkLabelText: 'Web Link',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    repeatsLabelText: 'Repeats',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 '    border: false,\n'
20130515 "    buttonAlign: 'center',\n"
20130515 '    autoHeight: true, // to allow for the notes field to autogrow\n'
20130515 '    \n'
20130515 '    /* // not currently supported\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false,\n'
20130515 '    \n'
20130515 '    // private properties:\n'
20130515 "    layout: 'column',\n"
20130515 "    cls: 'ext-evt-edit-form',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true\n'
20130515 '        });\n'
20130515 '                \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 "            anchor: '90%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 '            fieldLabel: this.datesLabelText,\n'
20130515 '            singleLine: false,\n'
20130515 "            anchor: '90%',\n"
20130515 '            listeners: {\n'
20130515 "                'change': this.onDateChange.createDelegate(this)\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        this.reminderField = new Ext.ensible.cal.ReminderField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Reminder.name,\n'
20130515 '            fieldLabel: this.reminderLabelText\n'
20130515 '        });\n'
20130515 '        this.notesField = new Ext.form.TextArea({\n'
20130515 '            fieldLabel: this.notesLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Notes.name,\n'
20130515 '            grow: true,\n'
20130515 '            growMax: 150,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.locationField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.locationLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Location.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.urlField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.webLinkLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Url.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        \n'
20130515 '        var leftFields = [this.titleField, this.dateRangeField, this.reminderField], \n'
20130515 '            rightFields = [this.notesField, this.locationField, this.urlField];\n'
20130515 '            \n'
20130515 '        if(this.enableRecurrence){\n'
20130515 '            this.recurrenceField = new Ext.ensible.cal.RecurrenceField({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.RRule.name,\n'
20130515 '                fieldLabel: this.repeatsLabelText,\n'
20130515 "                anchor: '100%'\n"
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.recurrenceField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                store: this.calendarStore,\n'
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name\n'
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.calendarField);\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.items = [{\n'
20130515 "            id: this.id+'-left-col',\n"
20130515 '            columnWidth: this.colWidthLeft,\n'
20130515 "            layout: 'form',\n"
20130515 '            border: false,\n'
20130515 '            items: leftFields\n'
20130515 '        },{\n'
20130515 "            id: this.id+'-right-col',\n"
20130515 '            columnWidth: this.colWidthRight,\n'
20130515 "            layout: 'form',\n"
20130515 '            labelWidth: this.labelWidthRightCol || this.labelWidth,\n'
20130515 '            border: false,\n'
20130515 '            items: rightFields\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        this.fbar = [{\n'
20130515 '            text:this.saveButtonText, scope: this, handler: this.onSave\n'
20130515 '        },{\n'
20130515 "            cls:'ext-del-btn', text:this.deleteButtonText, scope:this, handler:this.onDelete\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, scope: this, handler: this.onCancel\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditForm.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDateChange: function(dateRangeField, val){\n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(val[0]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    loadRecord: function(rec){\n'
20130515 '        this.form.reset().loadRecord.apply(this.form, arguments);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        \n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        }\n'
20130515 '        if(this.calendarStore){\n'
20130515 "            this.form.setValues({'calendar': rec.data[Ext.ensible.cal.EventMappings.CalendarId.name]});\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        //this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '        if(rec.phantom){\n'
20130515 '            //rec.markDirty();\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(false);\n"
20130515 '        }\n'
20130515 '        else {\n'
20130515 '            this.setTitle(this.titleTextEdit);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(true);\n"
20130515 '        }\n'
20130515 '        this.titleField.focus();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    updateRecord: function(){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '        \n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = this.form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        //delete rec.store; // make sure the record does not try to autosave\n'
20130515 '        rec.endEdit();\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '        this.cleanup(true);\n'
20130515 "        this.fireEvent('eventcancel', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '        \n'
20130515 '        if(this.form.isDirty()){\n'
20130515 '            this.form.reset();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        if(!this.updateRecord()){\n'
20130515 '            this.onCancel();\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        this.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "        this.fireEvent('eventdelete', this, this.activeRecord);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditform', Ext.ensible.cal.EventEditForm);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventEditWindow\n'
20130515 ' * @extends Ext.Window\n'
20130515 ' * <p>A custom window containing a basic edit form used for quick editing of events.</p>\n'
20130515 ' * <p>This window also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 'width: 600,\n'
20130515 'border: true,\n'
20130515 "closeAction: 'hide',\n"
20130515 'modal: false,\n'
20130515 'resizable: false,\n'
20130515 "buttonAlign: 'left',\n"
20130515 'labelWidth: 65,\n'
20130515 "detailsLinkText: 'Edit Details...',\n"
20130515 "savingMessage: 'Saving changes...',\n"
20130515 "deletingMessage: 'Deleting event...',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "bodyStyle: 'padding:5px 10px;',\n"
20130515 'enableEditDetails: true\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditWindow = Ext.extend(Ext.Window, {\n'
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 '    width: 600,\n'
20130515 '    border: true,\n'
20130515 "    closeAction: 'hide',\n"
20130515 '    modal: false,\n'
20130515 '    resizable: false,\n'
20130515 "    buttonAlign: 'left',\n"
20130515 '    labelWidth: 65,\n'
20130515 "    detailsLinkText: 'Edit Details...',\n"
20130515 "    savingMessage: 'Saving changes...',\n"
20130515 "    deletingMessage: 'Deleting event...',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "    bodyStyle: 'padding:5px 10px;',\n"
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.fbar = ['->',{\n"
20130515 '            text:this.saveButtonText, disabled:false, handler:this.onSave, scope:this\n'
20130515 '        },{\n'
20130515 "            id:this.id+'-delete-btn', text:this.deleteButtonText, disabled:false, handler:this.onDelete, scope:this, hideMode:'offsets'\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, disabled:false, handler:this.onCancel, scope:this\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        if(this.enableEditDetails !== false){\n'
20130515 '            this.fbar.unshift({\n'
20130515 '                xtype: \'tbtext\', text: \'<a href="#" class="\'+this.editDetailsLinkClass+\'">\'+this.detailsLinkText+\'</a>\'\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender : function(ct, position){\n'
20130515 "        this.deleteBtn = Ext.getCmp(this.id+'-delete-btn');\n"
20130515 '        \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 "            anchor: '95%',\n"
20130515 '            fieldLabel: this.datesLabelText\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var items = [this.titleField, this.dateRangeField];\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name,\n'
20130515 "                anchor: '100%',\n"
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                store: this.calendarStore\n'
20130515 '            });\n'
20130515 '            items.push(this.calendarField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.formPanel = new Ext.FormPanel({\n'
20130515 '            labelWidth: this.labelWidth,\n'
20130515 '            frame: false,\n'
20130515 '            bodyBorder: false,\n'
20130515 '            border: false,\n'
20130515 '            items: items\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.add(this.formPanel);\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.afterRender.call(this);\n'
20130515 '\t\t\n'
20130515 "\t\tthis.el.addClass('ext-cal-event-win');\n"
20130515 "        this.el.select('.'+this.editDetailsLinkClass).on('click', this.onEditDetailsClick, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetailsClick: function(e){\n'
20130515 '        e.stopEvent();\n'
20130515 '        this.updateRecord(true);\n'
20130515 "        this.fireEvent('editdetails', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\t\n'
20130515 '\t/**\n'
20130515 '     * Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden.\n'
20130515 '\t * @param {Ext.data.Record/Object} o Either a {@link Ext.data.Record} if showing the form\n'
20130515 '\t * for an existing event in edit mode, or a plain object containing a StartDate property (and \n'
20130515 '\t * optionally an EndDate property) for showing the form in add mode. \n'
20130515 '     * @param {String/Element} animateTarget (optional) The target element or id from which the window should\n'
20130515 '     * animate while opening (defaults to null with no animation)\n'
20130515 '     * @return {Ext.Window} this\n'
20130515 '     */\n'
20130515 '    show: function(o, animateTarget){\n'
20130515 '\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\tvar anim = (Ext.isIE8 && Ext.isStrict) ? null : animateTarget,\n'
20130515 '            M = Ext.ensible.cal.EventMappings;\n'
20130515 '\n'
20130515 '\t\tExt.ensible.cal.EventEditWindow.superclass.show.call(this, anim, function(){\n'
20130515 '            this.titleField.focus(false, 100);\n'
20130515 '        });\n'
20130515 "        this.deleteBtn[o.data && o.data[M.EventId.name] ? 'show' : 'hide']();\n"
20130515 '        \n'
20130515 '        var rec, f = this.formPanel.form;\n'
20130515 '\n'
20130515 '        if(o.data){\n'
20130515 '            rec = o;\n'
20130515 '\t\t\t//this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '\t\t\tif(rec.phantom){\n'
20130515 '\t\t\t\t// Enable adding the default record that was passed in\n'
20130515 "\t\t\t\t// if it's new even if the user makes no changes \n"
20130515 '\t\t\t\t//rec.markDirty();\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextAdd);\n'
20130515 '\t\t\t}\n'
20130515 '\t\t\telse{\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextEdit);\n'
20130515 '\t\t\t}\n'
20130515 '            \n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '\t\t\t//this.isAdd = true;\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 '\n'
20130515 '            var start = o[M.StartDate.name],\n'
20130515 "                end = o[M.EndDate.name] || start.add('h', 1);\n"
20130515 '                \n'
20130515 '            rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '            //rec.data[M.EventId.name] = this.newId++;\n'
20130515 '            rec.data[M.StartDate.name] = start;\n'
20130515 '            rec.data[M.EndDate.name] = end;\n'
20130515 '            rec.data[M.IsAllDay.name] = !!o[M.IsAllDay.name] || start.getDate() != end.clone().add(Date.MILLI, 1).getDate();\n'
20130515 '            \n'
20130515 '            f.reset();\n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField.setValue(rec.data[M.CalendarId.name]);\n'
20130515 '        }\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 "        this.el.setStyle('z-index', 12000);\n"
20130515 '        \n'
20130515 '\t\treturn this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    roundTime: function(dt, incr){\n'
20130515 '        incr = incr || 15;\n'
20130515 '        var m = parseInt(dt.getMinutes());\n'
20130515 "        return dt.add('mi', incr - (m % incr));\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '    \tthis.cleanup(true);\n'
20130515 "\t\tthis.fireEvent('eventcancel', this, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '\t\t\n'
20130515 '        if(hide===true){\n'
20130515 '\t\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\t\t//var anim = afterDelete || (Ext.isIE8 && Ext.isStrict) ? null : this.animateTarget;\n'
20130515 '            this.hide();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateRecord: function(keepEditing){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            form = this.formPanel.form,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '\n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        \n'
20130515 '        if(!keepEditing){\n'
20130515 '            rec.endEdit();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.formPanel.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\t\tif(!this.updateRecord()){\n'
20130515 '\t\t\tthis.onCancel();\n'
20130515 '\t\t\treturn;\n'
20130515 '\t\t}\n'
20130515 "\t\tthis.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "\t\tthis.fireEvent('eventdelete', this, this.activeRecord, this.animateTarget);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditwindow', Ext.ensible.cal.EventEditWindow);/**\r\n"
20130515 ' * @class Ext.ensible.cal.CalendarView\r\n'
20130515 ' * @extends Ext.BoxComponent\r\n'
20130515 ' * <p>This is an abstract class that serves as the base for other calendar views. This class is not\r\n'
20130515 ' * intended to be directly instantiated.</p>\r\n'
20130515 ' * <p>When extending this class to create a custom calendar view, you must provide an implementation\r\n'
20130515 ' * for the <code>renderItems</code> method, as there is no default implementation for rendering events\r\n'
20130515 ' * The rendering logic is totally dependent on how the UI structures its data, which\r\n'
20130515 ' * is determined by the underlying UI template (this base class does not have a template).</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.CalendarView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\r\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\r\n'
20130515 '     * config), and either can be used interchangeably.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\r\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\r\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\r\n'
20130515 '     * the default calendar (and color).\r\n'
20130515 '     */\r\n'
20130515 '    /*\r\n'
20130515 '     * @cfg {Boolean} enableRecurrence\r\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\r\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\r\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\r\n'
20130515 '     * if the server supports it.\r\n'
20130515 '     */\r\n'
20130515 '    //enableRecurrence: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} readOnly\r\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} startDay\r\n'
20130515 '     * The 0-based index for the day on which the calendar week begins (0=Sunday, which is the default)\r\n'
20130515 '     */\r\n'
20130515 '    startDay : 0,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} spansHavePriority\r\n'
20130515 '     * Allows switching between two different modes of rendering events that span multiple days. When true,\r\n'
20130515 '     * span events are always sorted first, possibly at the expense of start dates being out of order (e.g., \r\n'
20130515 '     * a span event that starts at 11am one day and spans into the next day would display before a non-spanning \r\n'
20130515 '     * event that starts at 10am, even though they would not be in date order). This can lead to more compact\r\n'
20130515 '     * layouts when there are many overlapping events. If false (the default), events will always sort by start date\r\n'
20130515 '     * first which can result in a less compact, but chronologically consistent layout.\r\n'
20130515 '     */\r\n'
20130515 '    spansHavePriority: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} trackMouseOver\r\n'
20130515 '     * Whether or not the view tracks and responds to the browser mouseover event on contained elements (defaults to\r\n'
20130515 "     * true). If you don't need mouseover event highlighting you can disable this.\r\n"
20130515 '     */\r\n'
20130515 '\ttrackMouseOver: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableFx\r\n'
20130515 '     * Determines whether or not visual effects for CRUD actions are enabled (defaults to true). If this is false\r\n'
20130515 '     * it will override any values for {@link #enableAddFx}, {@link #enableUpdateFx} or {@link enableRemoveFx} and\r\n'
20130515 '     * all animations will be disabled.\r\n'
20130515 '     */\r\n'
20130515 '\tenableFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableAddFx\r\n'
20130515 '     * True to enable a visual effect on adding a new event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doAddFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableAddFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableUpdateFx\r\n'
20130515 '     * True to enable a visual effect on updating an event, false to disable it (the default). Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doUpdateFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableUpdateFx: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableRemoveFx\r\n'
20130515 '     * True to enable a visual effect on removing an event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doRemoveFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableRemoveFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableDD\r\n'
20130515 '     * True to enable drag and drop in the calendar view (the default), false to disable it\r\n'
20130515 '     */\r\n'
20130515 '    enableDD: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableContextMenus\r\n'
20130515 '     * True to enable automatic right-click context menu handling in the calendar views (the default), false to disable\r\n'
20130515 '     * them. Different context menus are provided when clicking on events vs. the view background.\r\n'
20130515 '     */\r\n'
20130515 '    enableContextMenus: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} suppressBrowserContextMenu\r\n'
20130515 '     * When {@link #enableContextMenus} is true, the browser context menu will automatically be suppressed whenever a\r\n'
20130515 '     * custom context menu is displayed. When this option is true, right-clicks on elements that do not have a custom\r\n'
20130515 '     * context menu will also suppress the default browser context menu (no menu will be shown at all). When false,\r\n'
20130515 '     * the browser context menu will still show if the right-clicked element has no custom menu (this is the default).\r\n'
20130515 '     */\r\n'
20130515 '    suppressBrowserContextMenu: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} monitorResize\r\n'
20130515 "     * True to monitor the browser's resize event (the default), false to ignore it. If the calendar view is rendered\r\n"
20130515 "     * into a fixed-size container this can be set to false. However, if the view can change dimensions (e.g., it's in \r\n"
20130515 '     * fit layout in a viewport or some other resizable container) it is very important that this config is true so that\r\n'
20130515 '     * any resize event propagates properly to all subcomponents and layouts get recalculated properly.\r\n'
20130515 '     */\r\n'
20130515 '    monitorResize: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayText\r\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\r\n"
20130515 '     */\r\n'
20130515 "    todayText: 'Today',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddCreateEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \r\n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddCreateEventText: 'Create event for {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddMoveEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \r\n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddMoveEventText: 'Move event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddResizeEventText\r\n'
20130515 '     * The string displayed to the user in the drag proxy while dragging the resize handle of an event (defaults to \r\n'
20130515 "     * 'Update event to {0}' where {0} is the updated event start-end range supplied by the view). Note that \r\n"
20130515 '     * this text is only used in views\r\n'
20130515 '     * that allow resizing of events.\r\n'
20130515 '     */\r\n'
20130515 "    ddResizeEventText: 'Update event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} defaultEventTitleText\r\n'
20130515 "     * The default text to display as the title of an event that has a null or empty string title value (defaults to '(No title)')\r\n"
20130515 '     */\r\n'
20130515 "    defaultEventTitleText: '(No title)',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamStart\r\n'
20130515 "     * The param name representing the start date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'start').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamStart: 'start',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamEnd\r\n'
20130515 "     * The param name representing the end date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'end').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamEnd: 'end',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamFormat\r\n'
20130515 "     * The format to use for date parameters sent with requests to retrieve events for the calendar (defaults to 'Y-m-d', e.g. '2010-10-31')\r\n"
20130515 '     */\r\n'
20130515 "    dateParamFormat: 'Y-m-d',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} editModal\r\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\r\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\r\n'
20130515 '     * config will no longer apply. \r\n'
20130515 '     */\r\n'
20130515 '    editModal: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableEditDetails\r\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\r\n'
20130515 '     * link and disable detailed event editing. \r\n'
20130515 '     */\r\n'
20130515 '    enableEditDetails: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekendCls\r\n'
20130515 "     * A CSS class to apply to weekend days in the current view (defaults to 'ext-cal-day-we' which highlights weekend days in light blue). \r\n"
20130515 "     * To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    weekendCls: 'ext-cal-day-we',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} prevMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month previous to the current view's month (defaults to 'ext-cal-day-prev' which \r\n"
20130515 "     * highlights previous month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    prevMonthCls: 'ext-cal-day-prev',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} nextMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month after the current view's month (defaults to 'ext-cal-day-next' which \r\n"
20130515 "     * highlights next month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    nextMonthCls: 'ext-cal-day-next',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayCls\r\n'
20130515 "     * A CSS class to apply to the current date when it is visible in the current view (defaults to 'ext-cal-day-today' which \r\n"
20130515 "     * highlights today in yellow). To disable this styling set the value to null or ''.\r\n"
20130515 '     */\r\n'
20130515 "    todayCls: 'ext-cal-day-today',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 '    weekCount: 1,\r\n'
20130515 '    dayCount: 1,\r\n'
20130515 "    eventSelector : '.ext-cal-evt',\r\n"
20130515 "    eventOverClass: 'ext-evt-over',\r\n"
20130515 "\teventElIdDelimiter: '-evt-',\r\n"
20130515 "    dayElIdDelimiter: '-day-',\r\n"
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns a string of HTML template markup to be used as the body portion of the event template created\r\n'
20130515 "     * by {@link #getEventTemplate}. This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. This string can include any valid {@link Ext.Template} code, and\r\n'
20130515 '     * any data tokens accessible to the containing event template can be referenced in this string.\r\n'
20130515 '     * @return {String} The body template string\r\n'
20130515 '     */\r\n'
20130515 '    getEventBodyMarkup : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\r\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with events. Internally this method\r\n'
20130515 "     * by default generates different markup for browsers that support CSS border radius and those that don't.\r\n"
20130515 '     * This method can be overridden as needed to customize the markup generated.</p>\r\n'
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\r\n'
20130515 "     * from the surrounding container markup.  This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \r\n'
20130515 '     * overridden version also does the same.</p>\r\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\r\n'
20130515 '     */\r\n'
20130515 '    getEventTemplate : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * This is undefined by default, but can be implemented to allow custom CSS classes and template data to be\r\n'
20130515 '     * conditionally applied to events during rendering. This function will be called with the parameter list shown\r\n'
20130515 "     * below and is expected to return the CSS class name (or empty string '' for none) that will be added to the \r\n"
20130515 "     * event element's wrapping div. To apply multiple class names, simply return them space-delimited within the \r\n"
20130515 "     * string (e.g., 'my-class another-class'). Example usage, applied in a CalendarPanel config:\r\n"
20130515 '     * <pre><code>\r\n'
20130515 "// This example assumes a custom field of 'IsHoliday' has been added to EventRecord\r\n"
20130515 'viewConfig: {\r\n'
20130515 '    getEventClass: function(rec, allday, templateData, store){\r\n'
20130515 '        if(rec.data.IsHoliday){\r\n'
20130515 "            templateData.iconCls = 'holiday';\r\n"
20130515 "            return 'evt-holiday';\r\n"
20130515 '        }\r\n'
20130515 "        templateData.iconCls = 'plain';\r\n"
20130515 "        return '';\r\n"
20130515 '    },\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        // This is simplified, but shows the symtax for how you could add a\r\n'
20130515 '        // custom placeholder that maps back to the templateData property created\r\n'
20130515 '        // in getEventClass. Note that this is standard Ext template syntax.\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 '            this.eventBodyMarkup = \'&lt;span class="{iconCls}">&lt;/span> {Title}\';\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    }\r\n'
20130515 '}\r\n'
20130515 '</code></pre>\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} being rendered\r\n'
20130515 '     * @param {Boolean} isAllDay A flag indicating whether the event will be <em>rendered</em> as an all-day event. Note that this\r\n'
20130515 '     * will not necessarily correspond with the value of the <tt>EventRecord.IsAllDay</tt> field &mdash; events that span multiple\r\n'
20130515 '     * days will be rendered using the all-day event template regardless of the field value. If your logic for this function\r\n'
20130515 '     * needs to know whether or not the event will be rendered as an all-day event, this value should be used. \r\n'
20130515 '     * @param {Object} templateData A plain JavaScript object that is empty by default. You can add custom properties\r\n'
20130515 '     * to this object that will then be passed into the event template for the specific event being rendered. If you have \r\n'
20130515 '     * overridden the default event template and added custom data placeholders, you can use this object to pass the data\r\n'
20130515 '     * into the template that will replace those placeholders.\r\n'
20130515 '     * @param {Ext.data.Store} store The Event data store in use by the view\r\n'
20130515 '     * @method getEventClass\r\n'
20130515 "     * @return {String} A space-delimited CSS class string (or '')\r\n"
20130515 '     */\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        this.setStartDate(this.startDate || new Date());\r\n'
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '        \r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 "            this.addClass('ext-cal-readonly');\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventsrendered\r\n'
20130515 '             * Fires after events are finished rendering in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this \r\n'
20130515 '             */\r\n'
20130515 '            eventsrendered: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventclick\r\n'
20130515 '             * Fires after the user clicks on an event element. This is a cancelable event, so returning false from a \r\n'
20130515 '             * handler will cancel the click without displaying the event editor view. This could be useful for \r\n'
20130515 '             * validating the rules by which events should be editable by the user.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            eventclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventover\r\n'
20130515 '             * Fires anytime the mouse is over an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            eventover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventout\r\n'
20130515 '             * Fires anytime the mouse exits an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\r\n'
20130515 '             */\r\n'
20130515 '            eventout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforedatechange\r\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\r\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\r\n'
20130515 '             * view change and the setting of the start date.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\r\n'
20130515 '             */\r\n'
20130515 '            beforedatechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event datechange\r\n'
20130515 '             * Fires after the start date of the view has changed. If you need to cancel the date change you should handle the \r\n'
20130515 '             * {@link #beforedatechange} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\r\n'
20130515 '             */\r\n'
20130515 '            datechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event rangeselect\r\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event. This is a \r\n'
20130515 '             * cancelable event, so returning false from a handler will cancel the drag operation and clean up any drag shim elements\r\n'
20130515 '             * without displaying the event editor view. This could be useful for validating that a user can only create events within\r\n'
20130515 '             * a certain range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\r\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\r\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\r\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\r\n'
20130515 '             * function call (e.g., callback()).\r\n'
20130515 '             */\r\n'
20130515 '\t\t\trangeselect: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventmove\r\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the move operation. This could be useful for validating that a user can \r\n'
20130515 '             * only move events within a certain date range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\r\n'
20130515 '             * @param {Date} dt The new start date to be set (the end date will be automaticaly adjusted to match the event duration)\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventmove\r\n'
20130515 '             * Fires after an event element has been dragged by the user and dropped in a new position. If you need to cancel the \r\n'
20130515 '             * move operation you should handle the {@link #beforeeventmove} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\r\n'
20130515 '             * updated start and end dates\r\n'
20130515 '             */\r\n'
20130515 '\t\t\teventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event initdrag\r\n'
20130515 '             * Fires when a drag operation is initiated in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             */\r\n'
20130515 '            initdrag: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayover\r\n'
20130515 '             * Fires while the mouse is over a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is being moused over\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayout\r\n'
20130515 '             * Fires when the mouse exits a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is exited\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\r\n'
20130515 '             */\r\n'
20130515 '            dayout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event editdetails\r\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\r\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\r\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\r\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            editdetails: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventadd\r\n'
20130515 '             * Fires after a new event has been added to the underlying store\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\r\n'
20130515 '             */\r\n'
20130515 '            eventadd: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventupdate\r\n'
20130515 '             * Fires after an existing event has been updated\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\r\n'
20130515 '             */\r\n'
20130515 '            eventupdate: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventcancel\r\n'
20130515 '             * Fires after an event add/edit operation has been canceled by the user and no store update took place\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\r\n'
20130515 '             */\r\n'
20130515 '            eventcancel: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventdelete\r\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \r\n'
20130515 '             * will cancel the delete operation.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventdelete: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventdelete\r\n'
20130515 '             * Fires after an event has been deleted by the user. If you need to cancel the delete operation you should handle the \r\n'
20130515 '             * {@link #beforeeventdelete} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            eventdelete: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.afterRender.call(this);\r\n'
20130515 '\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        \r\n'
20130515 '        if(this.store){\r\n'
20130515 '            this.setStore(this.store, true);\r\n'
20130515 '            if(this.store.deferLoad){\r\n'
20130515 '                this.reloadStore(this.store.deferLoad);\r\n'
20130515 '                delete this.store.deferLoad;\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.store.initialParams = this.getStoreParams();\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        if(this.calendarStore){\r\n'
20130515 '            this.setCalendarStore(this.calendarStore, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'mouseover': this.onMouseOver,\r\n"
20130515 "            'mouseout': this.onMouseOut,\r\n"
20130515 "            'click': this.onClick,\r\n"
20130515 "\t\t\t'resize': this.onResize,\r\n"
20130515 '            scope: this\r\n'
20130515 '        });\r\n'
20130515 '        \r\n'
20130515 '        // currently the context menu only contains CRUD actions so do not show it if read-only\r\n'
20130515 '        if(this.enableContextMenus && this.readOnly !== true){\r\n'
20130515 "            this.el.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.el.unselectable();\r\n'
20130515 '        \r\n'
20130515 '        if(this.enableDD && this.readOnly !== true && this.initDD){\r\n'
20130515 '\t\t\tthis.initDD();\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        this.on('eventsrendered', this.forceSize);\r\n"
20130515 '        this.forceSize.defer(100, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing the start and end dates to be passed as params in all calls\r\n'
20130515 '     * to load the event store. The param names are customizable using {@link #dateParamStart}\r\n'
20130515 '     * and {@link #dateParamEnd} and the date format used in requests is defined by {@link #dateParamFormat}.\r\n'
20130515 '     * If you need to add additional parameters to be sent when loading the store see {@link #getStoreParams}.\r\n'
20130515 '     * @return {Object} An object containing the start and end dates\r\n'
20130515 '     */\r\n'
20130515 '    getStoreDateParams : function(){\r\n'
20130515 '        var o = {};\r\n'
20130515 '        o[this.dateParamStart] = this.viewStart.format(this.dateParamFormat);\r\n'
20130515 '        o[this.dateParamEnd] = this.viewEnd.format(this.dateParamFormat);\r\n'
20130515 '        return o;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing all key/value params to be passed when loading the event store.\r\n'
20130515 '     * By default the returned object will simply be the same object returned by {@link #getStoreDateParams},\r\n'
20130515 '     * but this method is intended to be overridden if you need to pass anything in addition to start and end dates.\r\n'
20130515 '     * See the inline code comments when overriding for details.\r\n'
20130515 '     * @return {Object} An object containing all params to be sent when loading the event store\r\n'
20130515 '     */\r\n'
20130515 '    getStoreParams : function(){\r\n'
20130515 '        // This is needed if you require the default start and end dates to be included\r\n'
20130515 '        var params = this.getStoreDateParams();\r\n'
20130515 '        \r\n'
20130515 '        // Here is where you can add additional custom params, e.g.:\r\n'
20130515 '        // params.now = new Date().format(this.dateParamFormat);\r\n'
20130515 "        // params.foo = 'bar';\r\n"
20130515 '        // params.number = 123;\r\n'
20130515 '        \r\n'
20130515 '        return params;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Reloads the view's underlying event store using the params returned from {@link #getStoreParams}.\r\n"
20130515 '     * Reloading the store is typically managed automatically by the view itself, but the method is\r\n'
20130515 '     * available in case a manual reload is ever needed.\r\n'
20130515 "     * @param {Object} options (optional) An object matching the format used by Store's {@link Ext.data.Store#load load} method\r\n"
20130515 '     */\r\n'
20130515 '    reloadStore : function(o){\r\n'
20130515 "        Ext.ensible.log('reloadStore');\r\n"
20130515 '        o = Ext.isObject(o) ? o : {};\r\n'
20130515 '        o.params = o.params || {};\r\n'
20130515 '        \r\n'
20130515 '        Ext.apply(o.params, this.getStoreParams());\r\n'
20130515 '        this.store.load(o);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        if(this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.child('.ext-cal-hd-ct'),\r\n"
20130515 "                bd = this.el.child('.ext-cal-body-ct');\r\n"
20130515 '                \r\n'
20130515 '            if(bd==null || hd==null) return;\r\n'
20130515 '                \r\n'
20130515 '            var headerHeight = hd.getHeight(),\r\n'
20130515 '                sz = this.el.parent().getSize();\r\n'
20130515 '                   \r\n'
20130515 '            bd.setHeight(sz.height-headerHeight);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Refresh the current view, optionally reloading the event store also. While this is normally\r\n'
20130515 '     * managed internally on any navigation and/or CRUD action, there are times when you might want\r\n'
20130515 "     * to refresh the view manually (e.g., if you'd like to reload using different {@link #getStoreParams params}).\r\n"
20130515 '     * @param {Boolean} reloadData True to reload the store data first, false to simply redraw the view using current \r\n'
20130515 '     * data (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    refresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (base), reload = '+reloadData);\r\n"
20130515 '        if(reloadData === true){\r\n'
20130515 '            this.reloadStore();\r\n'
20130515 '        }\r\n'
20130515 '        this.prepareData();\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        this.renderItems();\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getWeekCount : function(){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd);\r\n'
20130515 '        return Math.ceil(days / this.dayCount);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareData : function(){\r\n'
20130515 '        var lastInMonth = this.startDate.getLastDateOfMonth(),\r\n'
20130515 '            w = 0, row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            weeks = this.weekCount < 1 ? 6 : this.weekCount;\r\n'
20130515 '        \r\n'
20130515 '        this.eventGrid = [[]];\r\n'
20130515 '        this.allDayGrid = [[]];\r\n'
20130515 '        this.evtMaxCount = [];\r\n'
20130515 '        \r\n'
20130515 '        var evtsInView = this.store.queryBy(function(rec){\r\n'
20130515 '            return this.isEventVisible(rec.data);\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        for(; w < weeks; w++){\r\n'
20130515 '            this.evtMaxCount[w] = 0;\r\n'
20130515 '            if(this.weekCount == -1 && dt > lastInMonth){\r\n'
20130515 '                //current week is fully in next month so skip\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            this.eventGrid[w] = this.eventGrid[w] || [];\r\n'
20130515 '            this.allDayGrid[w] = this.allDayGrid[w] || [];\r\n'
20130515 '            \r\n'
20130515 '            for(d = 0; d < this.dayCount; d++){\r\n'
20130515 '                if(evtsInView.getCount() > 0){\r\n'
20130515 '                    var evts = evtsInView.filterBy(function(rec){\r\n'
20130515 '                        var startsOnDate = (dt.getTime() == rec.data[Ext.ensible.cal.EventMappings.StartDate.name].clearTime(true).getTime());\r\n'
20130515 '                        var spansFromPrevView = (w == 0 && d == 0 && (dt > rec.data[Ext.ensible.cal.EventMappings.StartDate.name]));\r\n'
20130515 '                        return startsOnDate || spansFromPrevView;\r\n'
20130515 '                    }, this);\r\n'
20130515 '                    \r\n'
20130515 '                    this.sortEventRecordsForDay(evts);\r\n'
20130515 '                    this.prepareEventGrid(evts, w, d);\r\n'
20130515 '                }\r\n'
20130515 '                dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.currentWeekCount = w;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGrid : function(evts, w, d){\r\n'
20130515 '        var row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            max = this.maxEventsPerDay ? this.maxEventsPerDay : 999;\r\n'
20130515 '        \r\n'
20130515 '        evts.each(function(evt){\r\n'
20130515 '            var M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '            \r\n'
20130515 '            if(Ext.ensible.Date.diffDays(evt.data[M.StartDate.name], evt.data[M.EndDate.name]) > 0){\r\n'
20130515 '                var daysInView = Ext.ensible.Date.diffDays(\r\n'
20130515 '                    Ext.ensible.Date.max(this.viewStart, evt.data[M.StartDate.name]),\r\n'
20130515 '                    Ext.ensible.Date.min(this.viewEnd, evt.data[M.EndDate.name])) + 1;\r\n'
20130515 '                    \r\n'
20130515 '                this.prepareEventGridSpans(evt, this.eventGrid, w, d, daysInView);\r\n'
20130515 '                this.prepareEventGridSpans(evt, this.allDayGrid, w, d, daysInView, true);\r\n'
20130515 '            }\r\n'
20130515 '            else{\r\n'
20130515 '                row = this.findEmptyRowIndex(w,d);\r\n'
20130515 '                this.eventGrid[w][d] = this.eventGrid[w][d] || [];\r\n'
20130515 '                this.eventGrid[w][d][row] = evt;\r\n'
20130515 '                \r\n'
20130515 '                if(evt.data[M.IsAllDay.name]){\r\n'
20130515 '                    row = this.findEmptyRowIndex(w,d, true);\r\n'
20130515 '                    this.allDayGrid[w][d] = this.allDayGrid[w][d] || [];\r\n'
20130515 '                    this.allDayGrid[w][d][row] = evt;\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            if(this.evtMaxCount[w] < this.eventGrid[w][d].length){\r\n'
20130515 '                this.evtMaxCount[w] = Math.min(max+1, this.eventGrid[w][d].length);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGridSpans : function(evt, grid, w, d, days, allday){\r\n'
20130515 '        // this event spans multiple days/weeks, so we have to preprocess\r\n'
20130515 '        // the events and store special span events as placeholders so that\r\n'
20130515 '        // the render routine can build the necessary TD spans correctly.\r\n'
20130515 '        var w1 = w, d1 = d, \r\n'
20130515 '            row = this.findEmptyRowIndex(w,d,allday),\r\n'
20130515 '            dt = this.viewStart.clone();\r\n'
20130515 '        \r\n'
20130515 '        var start = {\r\n'
20130515 '            event: evt,\r\n'
20130515 '            isSpan: true,\r\n'
20130515 '            isSpanStart: true,\r\n'
20130515 '            spanLeft: false,\r\n'
20130515 '            spanRight: (d == 6)\r\n'
20130515 '        };\r\n'
20130515 '        grid[w][d] = grid[w][d] || [];\r\n'
20130515 '        grid[w][d][row] = start;\r\n'
20130515 '        \r\n'
20130515 '        while(--days){\r\n'
20130515 '            dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            if(dt > this.viewEnd){\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            if(++d1>6){\r\n'
20130515 '                // reset counters to the next week\r\n'
20130515 '                d1 = 0; w1++;\r\n'
20130515 '                row = this.findEmptyRowIndex(w1,0);\r\n'
20130515 '            }\r\n'
20130515 '            grid[w1] = grid[w1] || [];\r\n'
20130515 '            grid[w1][d1] = grid[w1][d1] || [];\r\n'
20130515 '            \r\n'
20130515 '            grid[w1][d1][row] = {\r\n'
20130515 '                event: evt,\r\n'
20130515 '                isSpan: true,\r\n'
20130515 '                isSpanStart: (d1 == 0),\r\n'
20130515 '                spanLeft: (w1 > w) && (d1 % 7 == 0),\r\n'
20130515 '                spanRight: (d1 == 6) && (days > 1)\r\n'
20130515 '            };\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    findEmptyRowIndex : function(w, d, allday){\r\n'
20130515 '        var grid = allday ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            day = grid[w] ? grid[w][d] || [] : [],\r\n'
20130515 '            i = 0, ln = day.length;\r\n'
20130515 '            \r\n'
20130515 '        for(; i < ln; i++){\r\n'
20130515 '            if(day[i] == null){\r\n'
20130515 '                return i;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return ln;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderTemplate : function(){\r\n'
20130515 '        if(this.tpl){\r\n'
20130515 '            this.tpl.overwrite(this.el, this.getTemplateParams());\r\n'
20130515 '            this.lastRenderStart = this.viewStart.clone();\r\n'
20130515 '            this.lastRenderEnd = this.viewEnd.clone();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateParams : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            viewEnd: this.viewEnd,\r\n'
20130515 '            startDate: this.startDate,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            weekendCls: this.weekendCls,\r\n'
20130515 '            prevMonthCls: this.prevMonthCls,\r\n'
20130515 '            nextMonthCls: this.nextMonthCls,\r\n'
20130515 '            todayCls: this.todayCls\r\n'
20130515 '        };\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Disable store event monitoring within this view. Note that if you do this the view will no longer\r\n'
20130515 '     * refresh itself automatically when CRUD actions occur. To enable store events see {@link #enableStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tdisableStoreEvents : function(){\r\n'
20130515 '\t\tthis.monitorStoreEvents = false;\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable store event monitoring within this view if disabled by {@link #disbleStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tenableStoreEvents : function(refresh){\r\n'
20130515 '\t\tthis.monitorStoreEvents = true;\r\n'
20130515 '\t\tif(refresh === true){\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '\t\t}\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tthis.refresh(false);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 "        this.fireEvent('initdrag', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonEventDrop : function(rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonCalendarEndDrag : function(start, end, onComplete){\r\n'
20130515 "        // set this flag for other event handlers that might conflict while we're waiting\r\n"
20130515 '        this.dragPending = true;\r\n'
20130515 '        \r\n'
20130515 '        var dates = {},\r\n'
20130515 '            onComplete = this.onCalendarEndDragComplete.createDelegate(this, [onComplete]);\r\n'
20130515 '        \r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.StartDate.name] = start;\r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.EndDate.name] = end;\r\n'
20130515 '        \r\n'
20130515 "        if(this.fireEvent('rangeselect', this, dates, onComplete) !== false){\r\n"
20130515 '            this.showEventEditor(dates, null);\r\n'
20130515 "            this.editWin.on('hide', onComplete, this, {single:true});\r\n"
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 '            // client code canceled the selection so clean up immediately\r\n'
20130515 '            this.onCalendarEndDragComplete(onComplete);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onCalendarEndDragComplete : function(onComplete){\r\n'
20130515 '        // callback for the drop zone to clean up\r\n'
20130515 '        onComplete();\r\n'
20130515 '        // clear flag for other events to resume normally\r\n'
20130515 '        this.dragPending = false;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onUpdate : function(ds, rec, operation){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\r\n'
20130515 "            Ext.ensible.log('onUpdate');\r\n"
20130515 '            this.dismissEventEditor();\r\n'
20130515 '            \r\n'
20130515 '            var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '            // if the event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // any event instances were updated on the server\r\n'
20130515 "            this.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '            \r\n'
20130515 '\t\t\tif(this.enableFx && this.enableUpdateFx){\r\n'
20130515 '\t\t\t\tthis.doUpdateFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                    scope: this\r\n'
20130515 '                });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is updated. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was updated. The default \r\n'
20130515 '     * effect is {@link Ext.Element#highlight highlight}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableUpdateFx} is true (it is false by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the updated event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoUpdateFx : function(els, o){\r\n'
20130515 '\t\tthis.highlightEvent(els, null, o);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onAdd : function(ds, recs, index){\r\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs; \r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false || rec.phantom){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(rec._deleting){\r\n'
20130515 '            delete rec._deleting;\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onAdd');\r\n"
20130515 '        \r\n'
20130515 '\t\tvar rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '        \r\n'
20130515 '        this.dismissEventEditor();    \r\n'
20130515 '\t\tthis.tempEventId = rec.id;\r\n'
20130515 '        // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '        // new event instances were generated on the server\r\n'
20130515 "\t\tthis.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '\t\t\r\n'
20130515 '\t\tif(this.enableFx && this.enableAddFx){\r\n'
20130515 '\t\t\tthis.doAddFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                scope: this\r\n'
20130515 '            });\r\n'
20130515 '\t\t};\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is added. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was added. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeIn fadeIn}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableAddFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the added event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoAddFx : function(els, o){\r\n'
20130515 '\t\tels.fadeIn(Ext.apply(o, {duration:2}));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onRemove : function(ds, rec){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onRemove');\r\n"
20130515 '        this.dismissEventEditor();\r\n'
20130515 '        \r\n'
20130515 '        var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name],\r\n'
20130515 '            // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // new event instances were generated on the server\r\n'
20130515 "            isRecurring = rrule !== undefined && rrule !== '';\r\n"
20130515 '        \r\n'
20130515 '\t\tif(this.enableFx && this.enableRemoveFx){\r\n'
20130515 '\t\t\tthis.doRemoveFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '\t            remove: true,\r\n'
20130515 '\t            scope: this,\r\n'
20130515 '\t\t\t\tcallback: this.refresh.createDelegate(this, [isRecurring])\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]).remove();\r\n'
20130515 '            this.refresh(isRecurring);\r\n'
20130515 '\t\t}\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is removed. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was removed. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeOut fadeOut}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableRemoveFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the removed event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object contains the following properties:\r\n'
20130515 '     * <pre><code>\r\n'
20130515 '{\r\n'
20130515 '   remove: true, // required by fadeOut to actually remove the element(s)\r\n'
20130515 '   scope: this,  // required for the callback\r\n'
20130515 '   callback: fn  // required to refresh the view after the fx finish\r\n'
20130515 '} \r\n'
20130515 '     * </code></pre>\r\n'
20130515 '     * While you can modify this options object as needed if you change the effect used, please note that the\r\n'
20130515 '     * callback method (and scope) MUST still be passed in order for the view to refresh correctly after the removal.\r\n'
20130515 '     * Please see the inline code comments before overriding this method. \r\n'
20130515 '     */\r\n'
20130515 '\tdoRemoveFx : function(els, o){\r\n'
20130515 '        // Please make sure you keep this entire code block or removing events might not work correctly!\r\n'
20130515 '        // Removing is a little different because we have to wait for the fx to finish, then we have to actually\r\n'
20130515 '        // refresh the view AFTER the fx are run (this is different than add and update).\r\n'
20130515 '        if(els.getCount() == 0 && Ext.isFunction(o.callback)){\r\n'
20130515 '            // if there are no matching elements in the view make sure the callback still runs.\r\n'
20130515 '            // this can happen when an event accessed from the "more" popup is deleted.\r\n'
20130515 '            o.callback.call(o.scope || this);\r\n'
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 "            // If you'd like to customize the remove fx do so here. Just make sure you\r\n"
20130515 '            // DO NOT override the default callback property on the options object, and that\r\n'
20130515 '            // you still pass that object in whatever fx method you choose.\r\n'
20130515 '            els.fadeOut(o);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * Visually highlights an event using {@link Ext.Fx#highlight} config options.\r\n'
20130515 '\t * @param {Ext.CompositeElement} els The element(s) to highlight\r\n'
20130515 '\t * @param {Object} color (optional) The highlight color. Should be a 6 char hex \r\n'
20130515 "\t * color without the leading # (defaults to yellow: 'ffff9c')\r\n"
20130515 '\t * @param {Object} o (optional) Object literal with any of the {@link Ext.Fx} config \r\n'
20130515 '\t * options. See {@link Ext.Fx#highlight} for usage examples.\r\n'
20130515 '\t */\r\n'
20130515 '\thighlightEvent : function(els, color, o) {\r\n'
20130515 '\t\tif(this.enableFx){\r\n'
20130515 '\t\t\tvar c;\r\n'
20130515 '\t\t\t!(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tels.highlight(color, o) :\r\n'
20130515 '\t\t\t\t// Fun IE/Opera handling:\r\n'
20130515 '\t\t\t\tels.each(function(el){\r\n'
20130515 "\t\t\t\t\tel.highlight(color, Ext.applyIf({attr:'color'}, o));\r\n"
20130515 "\t\t\t\t\tif(c = el.child('.ext-cal-evm')) {\r\n"
20130515 '\t\t\t\t\t\tc.highlight(color, o);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}, this);\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 "\t * Retrieve an Event object's id from its corresponding node in the DOM.\r\n"
20130515 '\t * @param {String/Element/HTMLElement} el An {@link Ext.Element}, DOM node or id\r\n'
20130515 '\t */\r\n'
20130515 '//\tgetEventIdFromEl : function(el){\r\n'
20130515 '//\t\tel = Ext.get(el);\r\n'
20130515 '//\t\tvar id = el.id.split(this.eventElIdDelimiter)[1];\r\n'
20130515 "//        if(id.indexOf('-w_') > -1){\r\n"
20130515 '//            //This id has the index of the week it is rendered in as part of the suffix.\r\n'
20130515 '//            //This allows events that span across weeks to still have reproducibly-unique DOM ids.\r\n'
20130515 "//            id = id.split('-w_')[0];\r\n"
20130515 '//        }\r\n'
20130515 '//        return id;\r\n'
20130515 '//\t},\r\n'
20130515 '    getEventIdFromEl : function(el){\r\n'
20130515 '        el = Ext.get(el);\r\n'
20130515 "        var parts, id = '', cls, classes = el.dom.className.split(' ');\r\n"
20130515 '        \r\n'
20130515 '        Ext.each(classes, function(cls){\r\n'
20130515 '            parts = cls.split(this.eventElIdDelimiter);\r\n'
20130515 '            if(parts.length > 1){\r\n'
20130515 '                id = parts[1];\r\n'
20130515 '                return false;\r\n'
20130515 '            }\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        return id;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t// private\r\n'
20130515 '\tgetEventId : function(eventId){\r\n'
20130515 '\t\tif(eventId === undefined && this.tempEventId){\r\n'
20130515 '            // temp record id assigned during an add, will be overwritten later\r\n'
20130515 '\t\t\teventId = this.tempEventId;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn eventId;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @param {Boolean} forSelect\r\n'
20130515 '\t * @return {String} The selector class\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventSelectorCls : function(eventId, forSelect){\r\n'
20130515 "\t\tvar prefix = forSelect ? '.' : '';\r\n"
20130515 '\t\treturn prefix + this.id + this.eventElIdDelimiter + this.getEventId(eventId);\r\n'
20130515 '\t},\r\n'
20130515 '\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @return {Ext.CompositeElement} The matching CompositeElement of nodes\r\n'
20130515 '\t * that comprise the rendered event.  Any event that spans across a view \r\n'
20130515 '\t * boundary will contain more than one internal Element.\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventEls : function(eventId){\r\n'
20130515 '\t\tvar els = this.el.select(this.getEventSelectorCls(this.getEventId(eventId), true), false);\r\n'
20130515 '\t\treturn new Ext.CompositeElement(els);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\r\n"
20130515 '     * @return {Boolean} True or false\r\n'
20130515 '     */\r\n'
20130515 '    isToday : function(){\r\n'
20130515 '        var today = new Date().clearTime().getTime();\r\n'
20130515 '        return this.viewStart.getTime() <= today && this.viewEnd.getTime() >= today;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    onDataChanged : function(store){\r\n'
20130515 "        Ext.ensible.log('onDataChanged');\r\n"
20130515 '        this.refresh(false);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isEventVisible : function(evt){\r\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            data = evt.data ? evt.data : evt,\r\n'
20130515 '            calId = data[M.CalendarId.name],\r\n'
20130515 '            calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '            \r\n'
20130515 '        if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '            // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '            return false;\r\n'
20130515 '        }\r\n'
20130515 '            \r\n'
20130515 '        var start = this.viewStart.getTime(),\r\n'
20130515 '            end = this.viewEnd.getTime(),\r\n'
20130515 '            evStart = data[M.StartDate.name].getTime(),\r\n'
20130515 '            evEnd = data[M.EndDate.name].getTime();\r\n'
20130515 '            \r\n'
20130515 '        return Ext.ensible.Date.rangesOverlap(start, end, evStart, evEnd);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isOverlapping : function(evt1, evt2){\r\n'
20130515 '        var ev1 = evt1.data ? evt1.data : evt1,\r\n'
20130515 '            ev2 = evt2.data ? evt2.data : evt2,\r\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            start1 = ev1[M.StartDate.name].getTime(),\r\n'
20130515 '            end1 = ev1[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 '            start2 = ev2[M.StartDate.name].getTime(),\r\n'
20130515 '            end2 = ev2[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 "            startDiff = Ext.ensible.Date.diff(ev1[M.StartDate.name], ev2[M.StartDate.name], 'm');\r\n"
20130515 '            \r\n'
20130515 '            if(end1<start1){\r\n'
20130515 '                end1 = start1;\r\n'
20130515 '            }\r\n'
20130515 '            if(end2<start2){\r\n'
20130515 '                end2 = start2;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '//            var ev1startsInEv2 = (start1 >= start2 && start1 <= end2),\r\n'
20130515 '//            ev1EndsInEv2 = (end1 >= start2 && end1 <= end2),\r\n'
20130515 '//            ev1SpansEv2 = (start1 < start2 && end1 > end2),\r\n'
20130515 '            var evtsOverlap = Ext.ensible.Date.rangesOverlap(start1, end1, start2, end2),\r\n'
20130515 '                minimumMinutes = this.minEventDisplayMinutes || 0, // applies in day/week body view only for vertical overlap\r\n'
20130515 '                ev1MinHeightOverlapsEv2 = minimumMinutes > 0 && (startDiff > -minimumMinutes && startDiff < minimumMinutes);\r\n'
20130515 '        \r\n'
20130515 '        //return (ev1startsInEv2 || ev1EndsInEv2 || ev1SpansEv2 || ev1MinHeightOverlapsEv2);\r\n'
20130515 '        return (evtsOverlap || ev1MinHeightOverlapsEv2);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayEl : function(dt){\r\n'
20130515 '        return Ext.get(this.getDayId(dt));\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayId : function(dt){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 "            dt = dt.format('Ymd');\r\n"
20130515 '        }\r\n'
20130515 '        return this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \r\n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\r\n'
20130515 '     * to the user use {@link #getViewBounds}.\r\n'
20130515 '     * @return {Date} The start date\r\n'
20130515 '     */\r\n'
20130515 '    getStartDate : function(){\r\n'
20130515 '        return this.startDate;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \r\n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\r\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\r\n'
20130515 '     */\r\n'
20130515 '    setStartDate : function(start, /*private*/reload){\r\n'
20130515 "        Ext.ensible.log('setStartDate (base) '+start.format('Y-m-d'));\r\n"
20130515 "        if(this.fireEvent('beforedatechange', this, this.startDate, start, this.viewStart, this.viewEnd) !== false){\r\n"
20130515 '            this.startDate = start.clearTime();\r\n'
20130515 '            this.setViewBounds(start);\r\n'
20130515 '            if(this.rendered){\r\n'
20130515 '                this.refresh(reload);\r\n'
20130515 '            }\r\n'
20130515 "            this.fireEvent('datechange', this, this.startDate, this.viewStart, this.viewEnd);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    setViewBounds : function(startDate){\r\n'
20130515 '        var start = startDate || this.startDate,\r\n'
20130515 '            offset = start.getDay() - this.startDay;\r\n'
20130515 '        \r\n'
20130515 '        if(offset < 0){\r\n'
20130515 '            // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '            offset += 7;\r\n'
20130515 '        }\r\n'
20130515 '        switch(this.weekCount){\r\n'
20130515 '            case 0:\r\n'
20130515 '            case 1:\r\n'
20130515 '                this.viewStart = this.dayCount < 7 && !this.startDayIsStatic ? start : start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.dayCount || 7).add(Date.SECOND, -1);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            case -1: // auto by month\r\n'
20130515 '                start = start.getFirstDateOfMonth();\r\n'
20130515 '                offset = start.getDay() - this.startDay;\r\n'
20130515 '                if(offset < 0){\r\n'
20130515 '                    // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '                    offset += 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                \r\n'
20130515 '                // start from current month start, not view start:\r\n'
20130515 '                var end = start.add(Date.MONTH, 1).add(Date.SECOND, -1);\r\n'
20130515 '                // fill out to the end of the week:\r\n'
20130515 '                offset = this.startDay;\r\n'
20130515 '                if(offset > end.getDay()){\r\n'
20130515 '                    // if the offset is larger than the end day index then the last row will be empty so skip it\r\n'
20130515 '                    offset -= 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewEnd = end.add(Date.DAY, 6-end.getDay()+offset);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            default:\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.weekCount * 7).add(Date.SECOND, -1);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start and end boundary dates currently displayed in the view. The method\r\n'
20130515 '     * returns an object literal that contains the following properties:<ul>\r\n'
20130515 '     * <li><b>start</b> Date : <div class="sub-desc">The start date of the view</div></li>\r\n'
20130515 '     * <li><b>end</b> Date : <div class="sub-desc">The end date of the view</div></li></ul>\r\n'
20130515 '     * For example:<pre><code>\r\n'
20130515 'var bounds = view.getViewBounds();\r\n'
20130515 "alert('Start: '+bounds.start);\r\n"
20130515 "alert('End: '+bounds.end);\r\n"
20130515 '</code></pre>\r\n'
20130515 '     * @return {Object} An object literal containing the start and end values\r\n'
20130515 '     */\r\n'
20130515 '    getViewBounds : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            start: this.viewStart,\r\n'
20130515 '            end: this.viewEnd\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t/* private\r\n'
20130515 '\t * Sort events for a single day for display in the calendar.  This sorts allday\r\n'
20130515 '\t * events first, then non-allday events are sorted either based on event start\r\n'
20130515 '\t * priority or span priority based on the value of {@link #spansHavePriority} \r\n'
20130515 '\t * (defaults to event start priority).\r\n'
20130515 '\t * @param {MixedCollection} evts A {@link Ext.util.MixedCollection MixedCollection}  \r\n'
20130515 '\t * of {@link #Ext.ensible.cal.EventRecord EventRecord} objects\r\n'
20130515 '\t */\r\n'
20130515 '\tsortEventRecordsForDay: function(evts){\r\n'
20130515 '        if(evts.length < 2){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "\t\tevts.sort('ASC', function(evtA, evtB){\r\n"
20130515 '\t\t\tvar a = evtA.data, b = evtB.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Always sort all day events before anything else\r\n'
20130515 '\t\t\tif (a[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse if (b[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (this.spansHavePriority) {\r\n'
20130515 '\t\t\t\t// This logic always weights span events higher than non-span events \r\n'
20130515 '\t\t\t\t// (at the possible expense of start time order). This seems to \r\n'
20130515 '\t\t\t\t// be the approach used by Google calendar and can lead to a more\r\n'
20130515 '\t\t\t\t// visually appealing layout in complex cases, but event order is\r\n'
20130515 '\t\t\t\t// not guaranteed to be consistent.\r\n'
20130515 '\t\t\t\tvar diff = Ext.ensible.Date.diffDays;\r\n'
20130515 '\t\t\t\tif (diff(a[M.StartDate.name], a[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\tif (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\t\t// Both events are multi-day\r\n'
20130515 '\t\t\t\t\t\tif (a[M.StartDate.name].getTime() == b[M.StartDate.name].getTime()) {\r\n'
20130515 '\t\t\t\t\t\t\t// If both events start at the same time, sort the one\r\n'
20130515 '\t\t\t\t\t\t\t// that ends later (potentially longer span bar) first\r\n'
20130515 '\t\t\t\t\t\t\treturn b[M.EndDate.name].getTime() - a[M.EndDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse if (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\t// Doing this allows span and non-span events to intermingle but\r\n'
20130515 '\t\t\t\t// remain sorted sequentially by start time. This seems more proper\r\n'
20130515 '\t\t\t\t// but can make for a less visually-compact layout when there are\r\n'
20130515 '\t\t\t\t// many such events mixed together closely on the calendar.\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}.createDelegate(this));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to contain the passed date\r\n'
20130515 '     * @param {Date} dt The date to display\r\n'
20130515 '     */\r\n'
20130515 '    moveTo : function(dt, /*private*/reload){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 '            this.setStartDate(dt, reload);\r\n'
20130515 '            return this.startDate;\r\n'
20130515 '        }\r\n'
20130515 '        return dt;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the next consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveNext : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(this.viewEnd.add(Date.DAY, 1), reload);\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the previous consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    movePrev : function(/*private*/reload){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd)+1;\r\n'
20130515 '        return this.moveDays(-days, reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of months relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of months (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveMonths : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.MONTH, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of weeks relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of weeks (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveWeeks : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value*7), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveDays : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to show today\r\n'
20130515 "     * @return {Date} Today's date\r\n"
20130515 '     */\r\n'
20130515 '    moveToday : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(new Date(), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setStore : function(store, initial){\r\n'
20130515 '        var currStore = this.store;\r\n'
20130515 '        \r\n'
20130515 '        if(!initial && currStore){\r\n'
20130515 '            currStore.un("datachanged", this.onDataChanged, this);\r\n'
20130515 '            currStore.un("clear", this.refresh, this);\r\n'
20130515 '            currStore.un("write", this.onWrite, this);\r\n'
20130515 '            currStore.un("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.onDataChanged, this);\r\n'
20130515 '            store.on("clear", this.refresh, this);\r\n'
20130515 '            store.on("write", this.onWrite, this);\r\n'
20130515 '            store.on("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.store = store;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onException : function(proxy, type, action, o, res, arg){\r\n'
20130515 '        // form edits are explicitly canceled, but we may not know if a drag/drop operation\r\n'
20130515 '        // succeeded until after a server round trip. if the update failed we have to explicitly\r\n'
20130515 "        // reject the changes so that the record doesn't stick around in the store's modified list \r\n"
20130515 '        if(arg.reject){\r\n'
20130515 '            arg.reject();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the calendar store used by the calendar (contains records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}).\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setCalendarStore : function(store, initial){\r\n'
20130515 '        if(!initial && this.calendarStore){\r\n'
20130515 '            this.calendarStore.un("datachanged", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("add", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("remove", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.refresh, this);\r\n'
20130515 '            store.on("add", this.refresh, this);\r\n'
20130515 '            store.on("remove", this.refresh, this);\r\n'
20130515 '            store.on("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.calendarStore = store;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    getEventRecord : function(id){\r\n'
20130515 '        var idx = this.store.find(Ext.ensible.cal.EventMappings.EventId.name, id);\r\n'
20130515 '        return this.store.getAt(idx);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetEventRecordFromEl : function(el){\r\n'
20130515 '\t\treturn this.getEventRecord(this.getEventIdFromEl(el));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventEditor : function(){\r\n'
20130515 '        // only create one instance of the edit window, even if there are multiple CalendarPanels\r\n'
20130515 "        this.editWin = this.editWin || Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '         \r\n'
20130515 '        if(!this.editWin){\r\n'
20130515 '            this.editWin = new Ext.ensible.cal.EventEditWindow({\r\n'
20130515 "                id: 'ext-cal-editwin',\r\n"
20130515 '                calendarStore: this.calendarStore,\r\n'
20130515 '                modal: this.editModal,\r\n'
20130515 '                enableEditDetails: this.enableEditDetails,\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'eventadd': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventAdd(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventupdate': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventUpdate(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventdelete': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventDelete(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'editdetails': {\r\n"
20130515 '                        fn: function(win, rec, animTarget, view){\r\n'
20130515 '                            win.hide(animTarget);\r\n'
20130515 "                            win.currentView.fireEvent('editdetails', win.currentView, rec, animTarget);\r\n"
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventcancel': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            this.dismissEventEditor(animTarget);\r\n'
20130515 '                            win.currentView.onEventCancel();\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    }\r\n'
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        // allows the window to reference the current scope in its callbacks\r\n'
20130515 '        this.editWin.currentView = this;\r\n'
20130515 '        return this.editWin;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\r\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\r\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\r\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\r\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    showEventEditor : function(rec, animateTarget){\r\n'
20130515 '        this.getEventEditor().show(rec, animateTarget, this);\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\r\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \r\n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\r\n"
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    dismissEventEditor : function(dismissMethod, /*private*/ animTarget){\r\n'
20130515 '        if(this.newRecord && this.newRecord.phantom){\r\n'
20130515 '            this.store.remove(this.newRecord);\r\n'
20130515 '        }\r\n'
20130515 '        delete this.newRecord;\r\n'
20130515 '        \r\n'
20130515 "        // grab the manager's ref so that we dismiss it properly even if the active view has changed\r\n"
20130515 "        var editWin = Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '        if(editWin){\r\n'
20130515 "            editWin[dismissMethod ? dismissMethod : 'hide'](animTarget);\r\n"
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    save: function(){\r\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\r\n"
20130515 '        // method will have already internally caused a save to execute on\r\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\r\n'
20130515 "        // otherwise we'll create duplicate transactions.\r\n"
20130515 '        if(!this.store.autoSave){\r\n'
20130515 '            this.store.save();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\r\n'
20130515 '        switch(action){\r\n'
20130515 "            case 'create': \r\n"
20130515 '                this.onAdd(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'update':\r\n"
20130515 '                this.onUpdate(store, rec, Ext.data.Record.COMMIT);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'destroy':\r\n"
20130515 '                this.onRemove(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventAdd: function(form, rec){\r\n'
20130515 '        this.newRecord = rec;\r\n'
20130515 '        if(!rec.store){\r\n'
20130515 '            this.store.add(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 '        }\r\n'
20130515 "        this.fireEvent('eventadd', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventUpdate: function(form, rec){\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventDelete: function(form, rec){\r\n'
20130515 '        if(rec.store){\r\n'
20130515 '            this.store.remove(rec);\r\n'
20130515 '        }\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventCancel: function(form, rec){\r\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private -- called from subclasses\r\n'
20130515 '    onDayClick: function(dt, ad, el){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('dayclick', this, dt, ad, el) !== false){\r\n"
20130515 '            var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '                data = {};\r\n'
20130515 '                \r\n'
20130515 '            data[M.StartDate.name] = dt;\r\n'
20130515 '            data[M.IsAllDay.name] = ad;\r\n'
20130515 '                \r\n'
20130515 '            this.showEventEditor(data, el);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    showEventMenu : function(el, xy){\r\n'
20130515 '        if(!this.eventMenu){\r\n'
20130515 '            this.eventMenu = new Ext.ensible.cal.EventContextMenu({\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'editdetails': this.onEditDetails.createDelegate(this),\r\n"
20130515 "                    'eventdelete': this.onDeleteEvent.createDelegate(this),\r\n"
20130515 "                    'eventmove': this.onMoveEvent.createDelegate(this)\r\n"
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.eventMenu.showForEvent(this.getEventRecordFromEl(el), el, xy);\r\n'
20130515 '        this.menuActive = true;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEditDetails : function(menu, rec, el){\r\n'
20130515 "        this.fireEvent('editdetails', this, rec, el);\r\n"
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMoveEvent : function(menu, rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Move the event to a new start date, preserving the original event duration.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     * @param {Object} dt The new start date\r\n'
20130515 '     */\r\n'
20130515 '    moveEvent : function(rec, dt){\r\n'
20130515 '        if(Ext.ensible.Date.compare(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt) === 0){\r\n'
20130515 '            // no changes\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('beforeeventmove', this, rec, dt) !== false){\r\n"
20130515 '            var diff = dt.getTime() - rec.data[Ext.ensible.cal.EventMappings.StartDate.name].getTime();\r\n'
20130515 '            rec.beginEdit();\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.StartDate.name, dt);\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.EndDate.name, rec.data[Ext.ensible.cal.EventMappings.EndDate.name].add(Date.MILLI, diff));\r\n'
20130515 '            rec.endEdit();\r\n'
20130515 '            this.save();\r\n'
20130515 '            \r\n'
20130515 "            this.fireEvent('eventmove', this, rec);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDeleteEvent: function(menu, rec, el){\r\n'
20130515 '        rec._deleting = true;\r\n'
20130515 '        this.deleteEvent(rec, el);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Delete the specified event.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     */\r\n'
20130515 '    deleteEvent: function(rec, /* private */el){\r\n'
20130515 "        if(this.fireEvent('beforeeventdelete', this, rec, el) !== false){\r\n"
20130515 '            this.store.remove(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 "            this.fireEvent('eventdelete', this, rec, el);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onContextMenu : function(e, t){\r\n'
20130515 '        var el, match = false;\r\n'
20130515 '        \r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            this.dismissEventEditor().showEventMenu(el, e.getXY());\r\n'
20130515 '            match = true;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        if(match || this.suppressBrowserContextMenu === true){\r\n'
20130515 '            e.preventDefault();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /*\r\n'
20130515 '     * Shared click handling.  Each specific view also provides view-specific\r\n'
20130515 '     * click handling that calls this first.  This method returns true if it\r\n'
20130515 '     * can handle the click (and so the subclass should ignore it) else false.\r\n'
20130515 '     */\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dropZone){\r\n'
20130515 '            this.dropZone.clearShims();\r\n'
20130515 '        }\r\n'
20130515 '        if(this.menuActive === true){\r\n'
20130515 '            // ignore the first click if a context menu is active (let it close)\r\n'
20130515 '            this.menuActive = false;\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        var el = e.getTarget(this.eventSelector, 5);\r\n'
20130515 '        if(el){\r\n'
20130515 '            var id = this.getEventIdFromEl(el),\r\n'
20130515 '                rec = this.getEventRecord(id);\r\n'
20130515 '            \r\n'
20130515 "            if(this.fireEvent('eventclick', this, rec, el) !== false){\r\n"
20130515 '                this.showEventEditor(rec, el);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOver : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'over')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'over');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOut : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'out')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'out');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleEventMouseEvent : function(e, t, type){\r\n'
20130515 '        var el;\r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            var rel = Ext.get(e.getRelatedTarget());\r\n'
20130515 '            if(el == rel || el.contains(rel)){\r\n'
20130515 '                return true;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            var evtId = this.getEventIdFromEl(el);\r\n'
20130515 '            \r\n'
20130515 "            if(this.eventOverClass != ''){\r\n"
20130515 '                var els = this.getEventEls(evtId);\r\n'
20130515 "                els[type == 'over' ? 'addClass' : 'removeClass'](this.eventOverClass);\r\n"
20130515 '            }\r\n'
20130515 "            this.fireEvent('event'+type, this, this.getEventRecord(evtId), el);\r\n"
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        return false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDateFromId : function(id, delim){\r\n'
20130515 '        var parts = id.split(delim);\r\n'
20130515 '        return parts[parts.length-1];\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 "        if(t = e.getTarget('td', 3)){\r\n"
20130515 '            if(t.id && t.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var dt = this.getDateFromId(t.id, this.dayElIdDelimiter),\r\n'
20130515 '                    rel = Ext.get(e.getRelatedTarget()),\r\n'
20130515 '                    relTD, relDate;\r\n'
20130515 '                \r\n'
20130515 '                if(rel){\r\n'
20130515 "                    relTD = rel.is('td') ? rel : rel.up('td', 3);\r\n"
20130515 "                    relDate = relTD && relTD.id ? this.getDateFromId(relTD.id, this.dayElIdDelimiter) : '';\r\n"
20130515 '                }\r\n'
20130515 '                if(!rel || dt != relDate){\r\n'
20130515 '                    var el = this.getDayEl(dt);\r\n'
20130515 "                    if(el && this.dayOverClass != ''){\r\n"
20130515 "                        el[type == 'over' ? 'addClass' : 'removeClass'](this.dayOverClass);\r\n"
20130515 '                    }\r\n'
20130515 '                    this.fireEvent(\'day\'+type, this, Date.parseDate(dt, "Ymd"), el);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private, MUST be implemented by subclasses\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 "        throw 'This method must be implemented by a subclass';\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.el){\r\n'
20130515 "            this.el.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '        Ext.destroy(\r\n'
20130515 '            this.editWin, \r\n'
20130515 '            this.eventMenu,\r\n'
20130515 '            this.dragZone,\r\n'
20130515 '            this.dropZone\r\n'
20130515 '        );\r\n'
20130515 '    }\r\n'
20130515 '});/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthView\r\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\r\n'
20130515 ' * <p>Displays a calendar view by month. This class does not usually need ot be used directly as you can\r\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\r\n'
20130515 ' * the month view.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthView = Ext.extend(Ext.ensible.cal.CalendarView, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} moreText\r\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMoreText} instead.</p>\r\n'
20130515 '     * <p>The text to display in a day box when there are more events than can be displayed and a link is provided to\r\n'
20130515 "     * show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @deprecated\r\n'
20130515 '     */\r\n'
20130515 "    moreText: '+{0} more...',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} detailsTitleDateFormat\r\n'
20130515 '     * The date format for the title of the details panel that shows when there are hidden events and the "more" link \r\n'
20130515 "     * is clicked (defaults to 'F j').\r\n"
20130515 '     */\r\n'
20130515 "    detailsTitleDateFormat: 'F j',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTime\r\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTime: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTodayText\r\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTodayText: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showHeader\r\n'
20130515 "     * True to display a header beneath the navigation bar containing the week names above each week's column, false not to \r\n"
20130515 '     * show it and instead display the week names in the first row of days in the calendar (defaults to false).\r\n'
20130515 '     */\r\n'
20130515 '    showHeader: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekLinks\r\n'
20130515 '     * True to display an extra column before the first day in the calendar that links to the {@link Ext.ensible.cal.WeekView view}\r\n'
20130515 '     * for each individual week, false to not show it (defaults to false). If true, the week links can also contain the week \r\n'
20130515 '     * number depending on the value of {@link #showWeekNumbers}.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekLinks: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekNumbers\r\n'
20130515 '     * True to show the week number for each week in the calendar in the week link column, false to show nothing (defaults to false).\r\n'
20130515 '     * Note that if {@link #showWeekLinks} is false this config will have no affect even if true.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekNumbers: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekLinkOverClass\r\n'
20130515 '     * The CSS class name applied when the mouse moves over a week link element (only applies when {@link #showWeekLinks} is true,\r\n'
20130515 "     * defaults to 'ext-week-link-over').\r\n"
20130515 '     */\r\n'
20130515 "    weekLinkOverClass: 'ext-week-link-over',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 "    daySelector: '.ext-cal-day',\r\n"
20130515 "    moreSelector : '.ext-cal-ev-more',\r\n"
20130515 "    weekLinkSelector : '.ext-cal-week-link',\r\n"
20130515 '    weekCount: -1, // defaults to auto by month\r\n'
20130515 '    dayCount: 7,\r\n'
20130515 "\tmoreElIdDelimiter: '-more-',\r\n"
20130515 "    weekLinkIdDelimiter: 'ext-cal-week-',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.initComponent.call(this);\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayclick\r\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \r\n'
20130515 '             * for validating that a user can only create events on certain days.\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\r\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \r\n'
20130515 '             * MonthView always return true for this param.\r\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            dayclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event weekclick\r\n'
20130515 '             * Fires after the user clicks within a week link (when {@link #showWeekLinks is true)\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The start date of the week that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            weekclick: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayout: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tinitDD : function(){\r\n'
20130515 '\t\tvar cfg = {\r\n'
20130515 '\t\t\tview: this,\r\n'
20130515 '\t\t\tcreateText: this.ddCreateEventText,\r\n'
20130515 '\t\t\tmoveText: this.ddMoveEventText,\r\n'
20130515 "            ddGroup : this.ddGroup || this.id+'-MonthViewDD'\r\n"
20130515 '\t\t};\r\n'
20130515 '        \r\n'
20130515 '        this.dragZone = new Ext.ensible.cal.DragZone(this.el, cfg);\r\n'
20130515 '        this.dropZone = new Ext.ensible.cal.DropZone(this.el, cfg);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDestroy : function(){\r\n'
20130515 '        Ext.destroy(this.ddSelector);\r\n'
20130515 '\t\tExt.destroy(this.dragZone);\r\n'
20130515 '\t\tExt.destroy(this.dropZone);\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onDestroy.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '            this.tpl = new Ext.ensible.cal.MonthViewTemplate({\r\n'
20130515 '                id: this.id,\r\n'
20130515 '                showTodayText: this.showTodayText,\r\n'
20130515 '                todayText: this.todayText,\r\n'
20130515 '                showTime: this.showTime,\r\n'
20130515 '                showHeader: this.showHeader,\r\n'
20130515 '                showWeekLinks: this.showWeekLinks,\r\n'
20130515 '                showWeekNumbers: this.showWeekNumbers\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 "        this.addClass('ext-cal-monthview ext-cal-ct');\r\n"
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.afterRender.call(this);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tif(this.monitorResize){\r\n'
20130515 '\t\t\tthis.maxEventsPerDay = this.getMaxEventsPerDay();\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        // Compensate for the week link gutter width if visible\r\n'
20130515 '        if(this.showWeekLinks && this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.select('.ext-cal-hd-days-tbl'),\r\n"
20130515 "                bgTbl = this.el.select('.ext-cal-bg-tbl'),\r\n"
20130515 "                evTbl = this.el.select('.ext-cal-evt-tbl'),\r\n"
20130515 "                wkLinkW = this.el.child('.ext-cal-week-link').getWidth(),\r\n"
20130515 '                w = this.el.getWidth()-wkLinkW;\r\n'
20130515 '            \r\n'
20130515 '            hd.setWidth(w);\r\n'
20130515 '            bgTbl.setWidth(w);\r\n'
20130515 '            evTbl.setWidth(w);\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.forceSize.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    //private\r\n'
20130515 '    initClock : function(){\r\n'
20130515 "        if(Ext.fly(this.id+'-clock') !== null){\r\n"
20130515 '            this.prevClockDay = new Date().getDay();\r\n'
20130515 '            if(this.clockTask){\r\n'
20130515 '                Ext.TaskMgr.stop(this.clockTask);\r\n'
20130515 '            }\r\n'
20130515 '            this.clockTask = Ext.TaskMgr.start({\r\n'
20130515 '                run: function(){ \r\n'
20130515 "                    var el = Ext.fly(this.id+'-clock'),\r\n"
20130515 '                        t = new Date();\r\n'
20130515 '                        \r\n'
20130515 '                    if(t.getDay() == this.prevClockDay){\r\n'
20130515 '                        if(el){\r\n'
20130515 "                            el.update(t.format(Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia'));\r\n"
20130515 '                        }\r\n'
20130515 '                    }\r\n'
20130515 '                    else{\r\n'
20130515 '                        this.prevClockDay = t.getDay();\r\n'
20130515 '                        this.moveTo(t);\r\n'
20130515 '                    }\r\n'
20130515 '                },\r\n'
20130515 '                scope: this,\r\n'
20130515 '                interval: 1000\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * <p>Returns the text to display in a day box when there are more events than can be displayed and a link is \r\n'
20130515 "     * provided to show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @param {Integer} numEvents The number of events currently hidden from view\r\n'
20130515 '     * @return {String} The text to display for the "more" link \r\n'
20130515 '     */\r\n'
20130515 '    getMoreText: function(numEvents){\r\n'
20130515 '        return this.moreText;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\r\n"
20130515 '\t            \'<tpl if="_isReminder">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="_isRecurring">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanLeft">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spl">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanRight">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>'\r\n"
20130515 "\t        ].join('');\r\n"
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventTemplate : function(){\r\n'
20130515 '        if(!this.eventTpl){\r\n'
20130515 '\t        var tpl, body = this.getEventBodyMarkup();\r\n'
20130515 '            \r\n'
20130515 '\t        tpl = !(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tnew Ext.XTemplate(\r\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 '\t\t                body,\r\n'
20130515 "\t\t            '</div>'\r\n"
20130515 '\t\t        ) \r\n'
20130515 '\t\t\t\t: new Ext.XTemplate(\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evo">\',\r\n'
20130515 '\t\t                    \'<div class="ext-cal-evm">\',\r\n'
20130515 '\t\t                        \'<div class="ext-cal-evi">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            \'<tpl if="!_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            body,\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 "\t\t                        '</div>',\r\n"
20130515 "\t\t                    '</div>',\r\n"
20130515 "\t\t            '</tpl>',\r\n"
20130515 "\t\t                '</div>'\r\n"
20130515 '\t        \t);\r\n'
20130515 '            tpl.compile();\r\n'
20130515 '            this.eventTpl = tpl;\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventTpl;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\r\n'
20130515 '            data = {},\r\n'
20130515 "            recurring = evt[M.RRule.name] != '',\r\n"
20130515 "            colorCls = 'x-cal-default',\r\n"
20130515 '\t\t    title = evt[M.Title.name],\r\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ';\r\n"
20130515 '        \r\n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\r\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\r\n'
20130515 '            if(rec){\r\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '');\r\n"
20130515 '        extraClasses.push(colorCls);\r\n'
20130515 '        \r\n'
20130515 '        if(this.getEventClass){\r\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\r\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\r\n'
20130515 '            extraClasses.push(cls);\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "\t\tdata._extraCls = extraClasses.join(' ');\r\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\r\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\r\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\r\n"
20130515 '        \r\n'
20130515 '        return Ext.applyIf(data, evt);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\trefresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (MonthView)');\r\n"
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\tExt.ensible.cal.MonthView.superclass.refresh.call(this, reloadData);\r\n'
20130515 '        \r\n'
20130515 '        if(this.showTime !== false){\r\n'
20130515 '            this.initClock();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 '        Ext.ensible.cal.WeekEventRenderer.render({\r\n'
20130515 '            eventGrid: this.allDayOnly ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            tpl: this.getEventTemplate(),\r\n'
20130515 '            maxEventsPerDay: this.maxEventsPerDay,\r\n'
20130515 '            id: this.id,\r\n'
20130515 '            templateDataFn: this.getTemplateEventData.createDelegate(this),\r\n'
20130515 '            evtMaxCount: this.evtMaxCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            getMoreText: this.getMoreText.createDelegate(this)\r\n'
20130515 '        });\r\n'
20130515 "        this.fireEvent('eventsrendered', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayEl : function(dt){\r\n'
20130515 '\t\treturn Ext.get(this.getDayId(dt));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayId : function(dt){\r\n'
20130515 '\t\tif(Ext.isDate(dt)){\r\n'
20130515 "\t\t\tdt = dt.format('Ymd');\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\treturn this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetWeekIndex : function(dt){\r\n'
20130515 "\t\tvar el = this.getDayEl(dt).up('.ext-cal-wk-ct');\r\n"
20130515 "\t\treturn parseInt(el.id.split('-wk-')[1]);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDaySize : function(contentOnly){\r\n'
20130515 '        var box = this.el.getBox(),\r\n'
20130515 '            padding = this.getViewPadding(),\r\n'
20130515 '            w = (box.width - padding.width) / this.dayCount,\r\n'
20130515 '            h = (box.height - padding.height) / this.getWeekCount();\r\n'
20130515 '            \r\n'
20130515 '\t\tif(contentOnly){\r\n'
20130515 '            // measure last row instead of first in case text wraps in first row\r\n'
20130515 "\t\t\tvar hd = this.el.select('.ext-cal-dtitle').last().parent('tr');\r\n"
20130515 '\t\t\th = hd ? h-hd.getHeight(true) : h;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn {height: h, width: w};\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventHeight : function(){\r\n'
20130515 '        if(!this.eventHeight){\r\n'
20130515 "            var evt = this.el.select('.ext-cal-evt').first();\r\n"
20130515 '            if(evt){\r\n'
20130515 "                this.eventHeight = evt.parent('tr').getHeight();\r\n"
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                return 16; // no events rendered, so try setting this.eventHeight again later\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventHeight;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetMaxEventsPerDay : function(){\r\n'
20130515 '\t\tvar dayHeight = this.getDaySize(true).height,\r\n'
20130515 '\t\t\th = this.getEventHeight(),\r\n'
20130515 '            bottomPad = 5,\r\n'
20130515 '            max = Math.max(Math.floor((dayHeight-h-bottomPad) / h), 0);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\treturn max;\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getViewPadding: function(sides) {\r\n'
20130515 "        var sides = sides || 'tlbr',\r\n"
20130515 "            top = sides.indexOf('t') > -1,\r\n"
20130515 "            left = sides.indexOf('l') > -1,\r\n"
20130515 "            right = sides.indexOf('r') > -1,\r\n"
20130515 "            height = this.showHeader && top ? this.el.select('.ext-cal-hd-days-tbl').first().getHeight() : 0,\r\n"
20130515 '            width = 0;\r\n'
20130515 '        \r\n'
20130515 '        if (this.isHeaderView) {\r\n'
20130515 '            if (left) {\r\n'
20130515 "                width = this.el.select('.ext-cal-gutter').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '            if (right) {\r\n'
20130515 "                width += this.el.select('.ext-cal-gutter-rt').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else if (this.showWeekLinks && left) {\r\n'
20130515 "            width = this.el.select('.ext-cal-week-link').first().getWidth();\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return {\r\n'
20130515 '            height: height,\r\n'
20130515 '            width: width\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayAt : function(x, y){\r\n'
20130515 '\t\tvar box = this.el.getBox(),\r\n'
20130515 "            padding = this.getViewPadding('tl'), // top/left only since we only want the xy offsets\r\n"
20130515 '\t\t\tdaySize = this.getDaySize(),\r\n'
20130515 '\t\t\tdayL = Math.floor(((x - box.x - padding.width) / daySize.width)),\r\n'
20130515 '\t\t\tdayT = Math.floor(((y - box.y - padding.height) / daySize.height)),\r\n'
20130515 '\t\t\tdays = (dayT * 7) + dayL;\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tvar dt = this.viewStart.add(Date.DAY, days);\r\n'
20130515 '\t\treturn {\r\n'
20130515 '\t\t\tdate: dt,\r\n'
20130515 '\t\t\tel: this.getDayEl(dt)\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    moveNext : function(){\r\n'
20130515 '        return this.moveMonths(1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    movePrev : function(){\r\n'
20130515 '        return this.moveMonths(-1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onInitDrag.call(this);\r\n'
20130515 '\t\tExt.select(this.daySelector).removeClass(this.dayOverClass);\r\n'
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonMoreClick : function(dt){\r\n'
20130515 '\t\tif(!this.detailPanel){\r\n'
20130515 '\t        this.detailPanel = new Ext.Panel({\r\n'
20130515 "\t\t\t\tid: this.id+'-details-panel',\r\n"
20130515 '\t\t\t\ttitle: dt.format(this.detailsTitleDateFormat),\r\n'
20130515 "\t\t\t\tlayout: 'fit',\r\n"
20130515 '\t\t\t\tfloating: true,\r\n'
20130515 '\t\t\t\trenderTo: Ext.getBody(),\r\n'
20130515 '\t\t\t\ttools: [{\r\n'
20130515 "\t\t\t\t\tid: 'close',\r\n"
20130515 '\t\t\t\t\thandler: function(e, t, p){\r\n'
20130515 '\t\t\t\t\t\tp.hide();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}],\r\n'
20130515 '\t\t\t\titems: {\r\n'
20130515 "\t\t\t\t\txtype: 'extensible.monthdaydetailview',\r\n"
20130515 "\t\t\t\t\tid: this.id+'-details-view',\r\n"
20130515 '\t\t\t\t\tdate: dt,\r\n'
20130515 '\t\t\t\t\tview: this,\r\n'
20130515 '\t\t\t\t\tstore: this.store,\r\n'
20130515 '                    calendarStore: this.calendarStore,\r\n'
20130515 '\t\t\t\t\tlisteners: {\r\n'
20130515 "\t\t\t\t\t\t'eventsrendered': this.onDetailViewUpdated.createDelegate(this)\r\n"
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 "            this.detailPanel.body.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.detailPanel.setTitle(dt.format(this.detailsTitleDateFormat));\r\n'
20130515 '\t\t}\r\n'
20130515 "\t\tthis.detailPanel.getComponent(this.id+'-details-view').update(dt);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonDetailViewUpdated : function(view, dt, numEvents){\r\n'
20130515 '\t\tvar p = this.detailPanel,\r\n'
20130515 '\t\t\tframeH = p.getFrameHeight(),\r\n'
20130515 '            evtH = this.getEventHeight(),\r\n'
20130515 '\t\t\tbodyH = frameH + (numEvents * evtH) + 3,\r\n'
20130515 '\t\t\tdayEl = this.getDayEl(dt),\r\n'
20130515 '\t\t\tbox = dayEl.getBox();\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tp.setHeight(bodyH);\r\n'
20130515 '\t\tp.setWidth(Math.max(box.width, 220));\r\n'
20130515 '\t\tp.show();\r\n'
20130515 "\t\tp.getPositionEl().alignTo(dayEl, 't-t?');\r\n"
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onHide : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onHide.call(this);\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.moreSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.moreElIdDelimiter)[1];\r\n'
20130515 "            this.onMoreClick(Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.weekLinkSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.weekLinkIdDelimiter)[1];\r\n'
20130515 "            this.fireEvent('weekclick', this, Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(Ext.ensible.cal.MonthView.superclass.onClick.apply(this, arguments)){\r\n'
20130515 '            // The superclass handled the click already so exit\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(el = e.getTarget('td', 3)){\r\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\r\n'
20130515 '                    dt = parts[parts.length-1];\r\n'
20130515 '                    \r\n'
20130515 "                //this.fireEvent('dayclick', this, Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 '                return;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 '        var el = e.getTarget(this.weekLinkSelector, 3, true);\r\n'
20130515 '        if(el){\r\n'
20130515 "            el[type == 'over' ? 'addClass' : 'removeClass'](this.weekLinkOverClass);\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.handleDayMouseEvent.apply(this, arguments);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.detailsPanel){\r\n'
20130515 "            this.detailPanel.body.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthview', Ext.ensible.cal.MonthView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>This is the header area container within the day and week views where all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayBodyView DayBodyView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    // private configs\n'
20130515 '    weekCount: 1,\n'
20130515 '    dayCount: 1,\n'
20130515 '    allDayOnly: true,\n'
20130515 '    monitorResize: false,\n'
20130515 '    isHeaderView: true,\n'
20130515 '    \n'
20130515 "    // The event is declared in MonthView but we're just overriding the docs:\n"
20130515 '    /**\n'
20130515 '     * @event dayclick\n'
20130515 '     * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '     * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '     * for validating that a user can only create events on certain days.\n'
20130515 '     * @param {Ext.ensible.cal.DayHeaderView} this\n'
20130515 '     * @param {Date} dt The date/time that was clicked on\n'
20130515 '     * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '     * DayHeaderView always return true for this param.\n'
20130515 '     * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayHeaderTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 "        this.addClass('ext-cal-day-header');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.afterRender.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayHeaderView)');\n"
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.refresh.call(this, reloadData);\n'
20130515 '        this.recalcHeaderBox();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    recalcHeaderBox : function(){\n'
20130515 "        var tbl = this.el.child('.ext-cal-evt-tbl'),\n"
20130515 '            h = tbl.getHeight();\n'
20130515 '        \n'
20130515 '        this.el.setHeight(h+7);\n'
20130515 '        \n'
20130515 '        // These should be auto-height, but since that does not work reliably\n'
20130515 '        // across browser / doc type, we have to size them manually\n'
20130515 "        this.el.child('.ext-cal-hd-ad-inner').setHeight(h+5);\n"
20130515 "        this.el.child('.ext-cal-bg-tbl').setHeight(h+5);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.moveDays(this.dayCount);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    movePrev : function(){\n'
20130515 '        this.moveDays(-this.dayCount);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 "        if(el = e.getTarget('td', 3)){\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\n'
20130515 '                    dt = parts[parts.length-1];\n'
20130515 '                    \n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt, true)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.onClick.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayheaderview', Ext.ensible.cal.DayHeaderView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyView\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\n'
20130515 ' * <p>This is the scrolling container within the day and week views where non-all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayHeaderView DayHeaderView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyView = Ext.extend(Ext.ensible.cal.CalendarView, {\n'
20130515 '    //private\n'
20130515 "    dayColumnElIdDelimiter: '-day-col-',\n"
20130515 '    hourIncrement: 60,\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        if(this.readOnly === true){\n'
20130515 '            this.enableEventResize = false;\n'
20130515 '        }\n'
20130515 '        this.incrementsPerHour = this.hourIncrement / this.ddIncrement;\n'
20130515 '        this.minEventHeight = this.minEventDisplayMinutes / (this.hourIncrement / this.hourHeight);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The original {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * @param {Object} data An object containing the new start and end dates that will be set into the event record if the\n'
20130515 '             * event is not canceled. Format of the object is: {StartDate: [date], EndDate: [date]}\n'
20130515 '             */\n'
20130515 '            beforeeventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user has drag-dropped the resize handle of an event and the resize operation is complete. If you need \n'
20130515 '             * to cancel the resize operation you should handle the {@link #beforeeventresize} event and return false from your handler function.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            eventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '             * for validating that a user can only create events on certain days.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '             * DayBodyView always return false for this param.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            dayclick: true\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initDD : function(){\n'
20130515 '        var cfg = {\n'
20130515 '            view: this,\n'
20130515 '            createText: this.ddCreateEventText,\n'
20130515 '            moveText: this.ddMoveEventText,\n'
20130515 '            resizeText: this.ddResizeEventText,\n'
20130515 '            ddIncrement: this.ddIncrement,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '\n'
20130515 '        this.el.ddScrollConfig = {\n'
20130515 '            // scrolling is buggy in IE/Opera for some reason.  A larger vthresh\n'
20130515 '            // makes it at least functional if not perfect\n'
20130515 '            vthresh: Ext.isIE || Ext.isOpera ? 100 : 40,\n'
20130515 '            hthresh: -1,\n'
20130515 '            frequency: 50,\n'
20130515 '            increment: 100,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.dragZone = new Ext.ensible.cal.DayViewDragZone(this.el, Ext.apply({\n'
20130515 '            containerScroll: true\n'
20130515 '        }, cfg));\n'
20130515 '        \n'
20130515 '        this.dropZone = new Ext.ensible.cal.DayViewDropZone(this.el, cfg);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayBodyView)');\n"
20130515 '        var top = this.el.getScroll().top;\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.refresh.call(this, reloadData);\n'
20130515 '        \n'
20130515 '        // skip this if the initial render scroll position has not yet been set.\n'
20130515 '        // necessary since IE/Opera must be deferred, so the first refresh will\n'
20130515 '        // override the initial position by default and always set it to 0.\n'
20130515 '        if(this.scrollReady){\n'
20130515 '            this.scrollTo(top);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Scrolls the container to the specified vertical position. If the view is large enough that\n'
20130515 '     * there is no scroll overflow then this method will have no affect.\n'
20130515 '     * @param {Number} y The new vertical scroll position in pixels \n'
20130515 '     * @param {Boolean} defer (optional) <p>True to slightly defer the call, false to execute immediately.</p> \n'
20130515 '     * <p>This method will automatically defer itself for IE and Opera (even if you pass false) otherwise\n'
20130515 '     * the scroll position will not update in those browsers. You can optionally pass true, however, to\n'
20130515 '     * force the defer in all browsers, or use your own custom conditions to determine whether this is needed.</p>\n'
20130515 '     * <p>Note that this method should not generally need to be called directly as scroll position is managed internally.</p>\n'
20130515 '     */\n'
20130515 '    scrollTo : function(y, defer){\n'
20130515 '        defer = defer || (Ext.isIE || Ext.isOpera);\n'
20130515 '        if(defer){\n'
20130515 '            (function(){\n'
20130515 "                this.el.scrollTo('top', y);\n"
20130515 '                this.scrollReady = true;\n'
20130515 '            }).defer(10, this);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.el.scrollTo('top', y);\n"
20130515 '            this.scrollReady = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayBodyTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                dayCount: this.dayCount,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime,\n'
20130515 '                showHourSeparator: this.showHourSeparator,\n'
20130515 '                viewStartHour: this.viewStartHour,\n'
20130515 '                viewEndHour: this.viewEndHour,\n'
20130515 '                hourIncrement: this.hourIncrement,\n'
20130515 '                hourHeight: this.hourHeight\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 '        \n'
20130515 "        this.addClass('ext-cal-body-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        // default scroll position to scrollStartHour (7am by default) or min view hour if later\n'
20130515 '        var startHour = Math.max(this.scrollStartHour, this.viewStartHour),\n'
20130515 '            scrollStart = Math.max(0, startHour - this.viewStartHour);\n'
20130515 '            \n'
20130515 '        if(scrollStart > 0){\n'
20130515 '            this.scrollTo(scrollStart * this.hourHeight);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private -- called from DayViewDropZone\n'
20130515 '    onEventResize : function(rec, data){\n'
20130515 "        if(this.fireEvent('beforeeventresize', this, rec, data) !== false){\n"
20130515 '            var D = Ext.ensible.Date,\n'
20130515 '                start = Ext.ensible.cal.EventMappings.StartDate.name,\n'
20130515 '                end = Ext.ensible.cal.EventMappings.EndDate.name;\n'
20130515 '                \n'
20130515 '            if(D.compare(rec.data[start], data.StartDate) === 0 &&\n'
20130515 '                D.compare(rec.data[end], data.EndDate) === 0){\n'
20130515 '                // no changes\n'
20130515 '                return;\n'
20130515 '            } \n'
20130515 '            rec.set(start, data.StartDate);\n'
20130515 '            rec.set(end, data.EndDate);\n'
20130515 '            this.onEventUpdate(null, rec);\n'
20130515 '            \n'
20130515 "            this.fireEvent('eventresize', this, rec);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    getEventBodyMarkup : function(){\n'
20130515 '        if(!this.eventBodyMarkup){\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\n"
20130515 '                \'<tpl if="_isReminder">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                '</tpl>',\n"
20130515 '                \'<tpl if="_isRecurring">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                '</tpl>'\n"
20130515 '//                \'<tpl if="spanLeft">\',\n'
20130515 '//                    \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "//                '</tpl>',\n"
20130515 '//                \'<tpl if="spanRight">\',\n'
20130515 '//                    \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "//                '</tpl>'\n"
20130515 "            ].join('');\n"
20130515 '        }\n'
20130515 '        return this.eventBodyMarkup;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    getEventTemplate : function(){\n'
20130515 '        if(!this.eventTpl){\n'
20130515 '            this.eventTpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="{_extraCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        \'<div class="ext-evt-bd">\', this.getEventBodyMarkup(), \'</div>\',\n'
20130515 '                        this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                    '</div>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="ext-cal-evt {_extraCls}" style="left: {_left}%; width: {_width}%; top: {_top}px;">\',\n'
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 '                        \'<dl style="height: {_height}px;" class="ext-cal-evdm">\',\n'
20130515 '                            \'<dd class="ext-evt-bd">\',\n'
20130515 '                                this.getEventBodyMarkup(),\n'
20130515 "                            '</dd>',\n"
20130515 '                            this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                        '</dl>',\n"
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 "                    '</div>'\n"
20130515 '                );\n'
20130515 '            this.eventTpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.eventTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with <strong>all-day</strong> events. \n'
20130515 '     * Internally this method by default generates different markup for browsers that support CSS border radius \n'
20130515 "     * and those that don't. This method can be overridden as needed to customize the markup generated.</p>\n"
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\n'
20130515 "     * from the surrounding container markup.  This provdes the flexibility to customize what's in the body without\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \n'
20130515 '     * overridden version also does the same.</p>\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\n'
20130515 '     */\n'
20130515 '    getEventAllDayTemplate : function(){\n'
20130515 '        if(!this.eventAllDayTpl){\n'
20130515 '            var tpl, body = this.getEventBodyMarkup();\n'
20130515 '            \n'
20130515 '            tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        body,\n'
20130515 "                    '</div>'\n"
20130515 '                ) \n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div class="ext-cal-evt" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evo">\',\n'
20130515 '                        \'<div class="ext-cal-evm">\',\n'
20130515 '                            \'<div class="ext-cal-evi">\',\n'
20130515 '                                body,\n'
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</div></div>'\n"
20130515 '                );\n'
20130515 '            tpl.compile();\n'
20130515 '            this.eventAllDayTpl = tpl;\n'
20130515 '        }\n'
20130515 '        return this.eventAllDayTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventData : function(evt){\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\n'
20130515 '            data = {},\n'
20130515 "            colorCls = 'x-cal-default',\n"
20130515 '            title = evt[M.Title.name],\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            recurring = evt[M.RRule.name] != '';\n"
20130515 '        \n'
20130515 '        this.getTemplateEventBox(evt);\n'
20130515 '        \n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\n'
20130515 '            if(rec){\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '') + (Ext.isIE || Ext.isOpera ? '-x' : '');\n"
20130515 '        extraClasses.push(colorCls);\n'
20130515 '        \n'
20130515 '        if(this.getEventClass){\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\n'
20130515 '            extraClasses.push(cls);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        data._extraCls = extraClasses.join(' ');\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\n"
20130515 '        \n'
20130515 '        return Ext.applyIf(data, evt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getEventPositionOffsets: function(){\n'
20130515 '        return {\n'
20130515 '            top: 1,\n'
20130515 '            height: -2\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventBox : function(evt){\n'
20130515 '        var heightFactor = this.hourHeight / this.hourIncrement,\n'
20130515 '            start = evt[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '            end = evt[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '            startOffset = Math.max(start.getHours() - this.viewStartHour, 0),\n'
20130515 '            endOffset = Math.min(end.getHours() - this.viewStartHour, this.viewEndHour - this.viewStartHour),\n'
20130515 '            startMins = startOffset * this.hourIncrement,\n'
20130515 '            endMins = endOffset * this.hourIncrement,\n'
20130515 '            viewEndDt = end.clearTime(true).add(Date.HOUR, this.viewEndHour),\n'
20130515 '            evtOffsets = this.getEventPositionOffsets();\n'
20130515 '            \n'
20130515 '        if(start.getHours() >= this.viewStartHour){\n'
20130515 '            // only add the minutes if the start is visible, otherwise it offsets the event incorrectly\n'
20130515 '            startMins += start.getMinutes();\n'
20130515 '        }\n'
20130515 '        if(end <= viewEndDt){\n'
20130515 '            // only add the minutes if the end is visible, otherwise it offsets the event incorrectly\n'
20130515 '            endMins += end.getMinutes();\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        evt._left = 0;\n'
20130515 '        evt._width = 100;\n'
20130515 '        evt._top = startMins * heightFactor + evtOffsets.top;\n'
20130515 '        evt._height = Math.max(((endMins - startMins) * heightFactor), this.minEventHeight) + evtOffsets.height;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        var day = 0, evts = [];\n'
20130515 '        for(; day < this.dayCount; day++){\n'
20130515 '            var ev = emptyCells = skipped = 0, \n'
20130515 '                d = this.eventGrid[0][day],\n'
20130515 '                ct = d ? d.length : 0, \n'
20130515 '                evt;\n'
20130515 '            \n'
20130515 '            for(; ev < ct; ev++){\n'
20130515 '                evt = d[ev];\n'
20130515 '                if(!evt){\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                var item = evt.data || evt.event.data,\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\n'
20130515 '                    ad = item[M.IsAllDay.name] === true,\n'
20130515 '                    span = Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0,\n'
20130515 '                    renderAsAllDay = ad || span;\n'
20130515 '                         \n'
20130515 '                if(renderAsAllDay){\n'
20130515 '                    // this event is already rendered in the header view\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                Ext.apply(item, {\n'
20130515 "                    cls: 'ext-cal-ev',\n"
20130515 '                    _positioned: true\n'
20130515 '                });\n'
20130515 '                evts.push({\n'
20130515 '                    data: this.getTemplateEventData(item),\n'
20130515 '                    date: this.viewStart.add(Date.DAY, day)\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // overlapping event pre-processing loop\n'
20130515 '        var i = j = 0, overlapCols = [], l = evts.length, prevDt;\n'
20130515 '        for(; i<l; i++){\n'
20130515 '            var evt = evts[i].data, \n'
20130515 '                evt2 = null, \n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '            \n'
20130515 '            for(j=0; j<l; j++){\n'
20130515 '                if(i==j)continue;\n'
20130515 '                evt2 = evts[j].data;\n'
20130515 '                if(this.isOverlapping(evt, evt2)){\n'
20130515 '                    evt._overlap = evt._overlap == undefined ? 1 : evt._overlap+1;\n'
20130515 '                    if(i<j){\n'
20130515 '                        if(evt._overcol===undefined){\n'
20130515 '                            evt._overcol = 0;\n'
20130515 '                        }\n'
20130515 '                        evt2._overcol = evt._overcol+1;\n'
20130515 '                        overlapCols[dt] = overlapCols[dt] ? Math.max(overlapCols[dt], evt2._overcol) : evt2._overcol;\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // rendering loop\n'
20130515 '        for(i=0; i<l; i++){\n'
20130515 '            var evt = evts[i].data,\n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '                \n'
20130515 '            if(evt._overlap !== undefined){\n'
20130515 '                var colWidth = 100 / (overlapCols[dt]+1),\n'
20130515 '                    evtWidth = 100 - (colWidth * evt._overlap);\n'
20130515 '                    \n'
20130515 '                evt._width = colWidth;\n'
20130515 '                evt._left = colWidth * evt._overcol;\n'
20130515 '            }\n'
20130515 '            var markup = this.getEventTemplate().apply(evt),\n'
20130515 "                target = this.id+'-day-col-'+evts[i].date.format('Ymd');\n"
20130515 '                \n'
20130515 '            Ext.DomHelper.append(target, markup);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('eventsrendered', this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayEl : function(dt){\n'
20130515 '        return Ext.get(this.getDayId(dt));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayId : function(dt){\n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format('Ymd');\n"
20130515 '        }\n'
20130515 '        return this.id + this.dayColumnElIdDelimiter + dt;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDaySize : function(){\n'
20130515 "        var box = this.el.child('.ext-cal-day-col-inner').getBox();\n"
20130515 '        return {height: box.height, width: box.width};\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayAt : function(x, y){\n'
20130515 "        var sel = '.ext-cal-body-ct',\n"
20130515 "            xoffset = this.el.child('.ext-cal-day-times').getWidth(),\n"
20130515 '            viewBox = this.el.getBox(),\n'
20130515 '            daySize = this.getDaySize(false),\n'
20130515 '            relX = x - viewBox.x - xoffset,\n'
20130515 '            dayIndex = Math.floor(relX / daySize.width), // clicked col index\n'
20130515 '            scroll = this.el.getScroll(),\n'
20130515 "            row = this.el.child('.ext-cal-bg-row'), // first avail row, just to calc size\n"
20130515 '            rowH = row.getHeight() / this.incrementsPerHour,\n'
20130515 '            relY = y - viewBox.y - rowH + scroll.top,\n'
20130515 '            rowIndex = Math.max(0, Math.ceil(relY / rowH)),\n'
20130515 '            mins = rowIndex * (this.hourIncrement / this.incrementsPerHour),\n'
20130515 '            dt = this.viewStart.add(Date.DAY, dayIndex).add(Date.MINUTE, mins).add(Date.HOUR, this.viewStartHour),\n'
20130515 '            el = this.getDayEl(dt),\n'
20130515 '            timeX = x;\n'
20130515 '        \n'
20130515 '        if(el){\n'
20130515 '            timeX = el.getLeft();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return {\n'
20130515 '            date: dt,\n'
20130515 '            el: el,\n'
20130515 '            // this is the box for the specific time block in the day that was clicked on:\n'
20130515 '            timeBox: {\n'
20130515 '                x: timeX,\n'
20130515 '                y: (rowIndex * this.hourHeight / this.incrementsPerHour) + viewBox.y - scroll.top,\n'
20130515 '                width: daySize.width,\n'
20130515 '                height: rowH\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        if(this.dragPending || Ext.ensible.cal.DayBodyView.superclass.onClick.apply(this, arguments)){\n'
20130515 '            // The superclass handled the click already so exit\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        if(e.getTarget('.ext-cal-day-times', 3) !== null){\n"
20130515 '            // ignore clicks on the times-of-day gutter\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        var el = e.getTarget('td', 3);\n"
20130515 '        if(el){\n'
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var dt = this.getDateFromId(el.id, this.dayElIdDelimiter);\n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        var day = this.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(day && day.date){\n'
20130515 '            this.onDayClick(day.date, false, null);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daybodyview', Ext.ensible.cal.DayBodyView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayView\n'
20130515 ' * @extends Ext.Container\n'
20130515 ' * <p>Unlike other calendar views, is not actually a subclass of {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 ' * Instead it is a {@link Ext.Container Container} subclass that internally creates and manages the layouts of\n'
20130515 ' * a {@link Ext.ensible.cal.DayHeaderView DayHeaderView} and a {@link Ext.ensible.cal.DayBodyView DayBodyView}. As such\n'
20130515 ' * DayView accepts any config values that are valid for DayHeaderView and DayBodyView and passes those through\n'
20130515 ' * to the contained views. It also supports the interface required of any calendar view and in turn calls methods\n'
20130515 ' * on the contained views as necessary.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayView = Ext.extend(Ext.Container, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\n"
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddCreateEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddCreateEventText: Ext.ensible.cal.CalendarView.prototype.ddCreateEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddMoveEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddMoveEventText: Ext.ensible.cal.CalendarView.prototype.ddMoveEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 1). Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 1,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEventResize\n'
20130515 "     * True to allow events in the view's scrolling body area to be updated by a resize handle at the \n"
20130515 '     * bottom of the event, false to disallow it (defaults to true). If {@link #readOnly} is true event \n'
20130515 '     * resizing will be disabled automatically.\n'
20130515 '     */\n'
20130515 '    enableEventResize: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} ddIncrement\n'
20130515 '     * <p>The number of minutes between each step during various drag/drop operations in the view (defaults to 30).\n'
20130515 '     * This controls the number of times the dragged object will "snap" to the view during a drag operation, and does\n'
20130515 '     * not have to match with the time boundaries displayed in the view. E.g., the view could be displayed in 30 minute\n'
20130515 '     * increments (the default) but you could configure ddIncrement to 10, which would snap a dragged object to the\n'
20130515 '     * view at 10 minute increments.</p>\n'
20130515 '     * <p>This config currently applies while dragging to move an event, resizing an event by its handle or dragging \n'
20130515 '     * on the view to create a new event.</p>\n'
20130515 '     */\n'
20130515 '    ddIncrement: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} minEventDisplayMinutes\n'
20130515 '     * This is the minimum <b>display</b> height, in minutes, for events shown in the view (defaults to 30). This setting\n'
20130515 '     * ensures that events with short duration are still readable (e.g., by default any event where the start and end\n'
20130515 '     * times were the same would have 0 height). It also applies when calculating whether multiple events should be\n'
20130515 '     * displayed as overlapping. In datetime terms, an event that starts and ends at 9:00 and another event that starts\n'
20130515 '     * and ends at 9:05 do not overlap, but visually the second event would obscure the first in the view. This setting\n'
20130515 '     * provides a way to ensure that such events will still be calculated as overlapping and displayed correctly.\n'
20130515 '     */\n'
20130515 '    minEventDisplayMinutes: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showHourSeparator\n'
20130515 '     * True to display a dotted line that separates each hour block in the scrolling body area at the half-hour mark \n'
20130515 '     * (the default), false to hide it.\n'
20130515 '     */\n'
20130515 '    showHourSeparator: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewStartHour\n'
20130515 "     * The hour of the day at which to begin the scrolling body area's times (defaults to 0, which equals early 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be less than the value of {@link viewEndHour}.\n'
20130515 '     */\n'
20130515 '    viewStartHour: 0,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewEndHour\n'
20130515 "     * The hour of the day at which to end the scrolling body area's times (defaults to 24, which equals late 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be greater than the value of {@link viewStartHour}. \n'
20130515 '     */\n'
20130515 '    viewEndHour: 24,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} scrollStartHour\n'
20130515 '     * The default hour of the day at which to set the body scroll position on view load (defaults to 7, which equals 7am / 07:00).\n'
20130515 '     * Note that if the body is not sufficiently overflowed to allow this positioning this setting will have no effect.\n'
20130515 '     * This setting should be equal to or greater than {@link viewStartHour}.\n'
20130515 '     */\n'
20130515 '    scrollStartHour: 7,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} hourHeight\n'
20130515 '     * <p>The height, in pixels, of each hour block displayed in the scrolling body area of the view (defaults to 42).</p> \n'
20130515 '     * <br><p><b>Important note:</b> While this config can be set to any reasonable integer value, note that it is also used to \n'
20130515 '     * calculate the ratio used when assigning event heights. By default, an hour is 60 minutes and 42 pixels high, so the\n'
20130515 '     * pixel-to-minute ratio is 42 / 60, or 0.7. This same ratio is then used when rendering events. When rendering a \n'
20130515 '     * 30 minute event, the rendered height would be 30 minutes * 0.7 = 21 pixels (as expected).</p>\n'
20130515 '     * <p>This is important to understand when changing this value because some browsers may handle pixel rounding in\n'
20130515 '     * different ways which could lead to inconsistent visual results in some cases. If you have any problems with pixel\n'
20130515 '     * precision in how events are laid out, you might try to stick with hourHeight values that will generate discreet ratios.\n'
20130515 '     * This is easily done by simply multiplying 60 minutes by different discreet ratios (.6, .8, 1.1, etc.) to get the \n'
20130515 '     * corresponding hourHeight pixel values (36, 48, 66, etc.) that will map back to those ratios. By contrast, if you \n'
20130515 '     * chose an hourHeight of 50 for example, the resulting height ratio would be 50 / 60 = .833333... This will work just\n'
20130515 '     * fine, just be aware that browsers may sometimes round the resulting height values inconsistently.\n'
20130515 '     */\n'
20130515 '    hourHeight: 42,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        // day count is only supported between 1 and 7 days\n'
20130515 '        this.dayCount = this.dayCount > 7 ? 7 : (this.dayCount < 1 ? 1 : this.dayCount);\n'
20130515 '        \n'
20130515 '        var cfg = Ext.apply({}, this.initialConfig);\n'
20130515 '        cfg.showTime = this.showTime;\n'
20130515 '        cfg.showTodayText = this.showTodayText;\n'
20130515 '        cfg.todayText = this.todayText;\n'
20130515 '        cfg.dayCount = this.dayCount;\n'
20130515 '        cfg.weekCount = 1;\n'
20130515 '        cfg.readOnly = this.readOnly;\n'
20130515 '        cfg.ddIncrement = this.ddIncrement;\n'
20130515 '        cfg.minEventDisplayMinutes = this.minEventDisplayMinutes;\n'
20130515 '        \n'
20130515 '        var header = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.dayheaderview',\n"
20130515 "            id: this.id+'-hd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        var body = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.daybodyview',\n"
20130515 '            enableEventResize: this.enableEventResize,\n'
20130515 '            showHourSeparator: this.showHourSeparator,\n'
20130515 '            viewStartHour: this.viewStartHour,\n'
20130515 '            viewEndHour: this.viewEndHour,\n'
20130515 '            scrollStartHour: this.scrollStartHour,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            id: this.id+'-bd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        this.items = [header, body];\n'
20130515 "        this.addClass('ext-cal-dayview ext-cal-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayView.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        Ext.ensible.cal.DayView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.header = Ext.getCmp(this.id+'-hd');\n"
20130515 "        this.body = Ext.getCmp(this.id+'-bd');\n"
20130515 "        this.body.on('eventsrendered', this.forceSize, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(){\n'
20130515 "        Ext.ensible.log('refresh (DayView)');\n"
20130515 '        this.header.refresh();\n'
20130515 '        this.body.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: function(){\n'
20130515 "        // The defer call is mainly for good ol' IE, but it doesn't hurt in\n"
20130515 '        // general to make sure that the window resize is good and done first\n'
20130515 '        // so that we can properly calculate sizes.\n'
20130515 '        (function(){\n'
20130515 "            var ct = this.el.up('.x-panel-body'),\n"
20130515 "                hd = this.el.child('.ext-cal-day-header'),\n"
20130515 '                h = ct.getHeight() - hd.getHeight();\n'
20130515 '            \n'
20130515 "            this.el.child('.ext-cal-body-ct').setHeight(h-1);\n"
20130515 '        }).defer(10, this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onResize : function(){\n'
20130515 '        this.forceSize();\n'
20130515 '        this.refresh.defer(1, this); //IE needs the defer\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /*\n'
20130515 '     * We have to "relay" this Component method so that the hidden\n'
20130515 "     * state will be properly reflected when the views' active state changes\n"
20130515 '     */\n'
20130515 '    doHide: function(){\n'
20130515 '        this.header.doHide.apply(this, arguments);\n'
20130515 '        this.body.doHide.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getViewBounds : function(){\n'
20130515 '        return this.header.getViewBounds();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\n'
20130515 '     * to the user use {@link #getViewBounds}.\n'
20130515 '     * @return {Date} The start date\n'
20130515 '     */\n'
20130515 '    getStartDate : function(){\n'
20130515 '        return this.header.getStartDate();\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 '        this.header.setStartDate(dt, true);\n'
20130515 '        this.body.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        this.header.renderItems();\n'
20130515 '        this.body.renderItems();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\n"
20130515 '     * @return {Boolean} True or false\n'
20130515 '     */\n'
20130515 '    isToday : function(){\n'
20130515 '        return this.header.isToday();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to contain the passed date\n'
20130515 '     * @param {Date} dt The date to display\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveTo : function(dt){\n'
20130515 '        this.header.moveTo(dt);\n'
20130515 '        return this.body.moveTo(dt, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the next consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.header.moveNext();\n'
20130515 '        return this.body.moveNext(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the previous consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    movePrev : function(noRefresh){\n'
20130515 '        this.header.movePrev();\n'
20130515 '        return this.body.movePrev(true);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveDays : function(value){\n'
20130515 '        this.header.moveDays(value);\n'
20130515 '        return this.body.moveDays(value, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to show today\n'
20130515 "     * @return {Date} Today's date\n"
20130515 '     */\n'
20130515 '    moveToday : function(){\n'
20130515 '        this.header.moveToday();\n'
20130515 '        return this.body.moveToday(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\n'
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    showEventEditor : function(rec, animateTarget){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.showEventEditor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\n"
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    dismissEventEditor : function(dismissMethod){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.dismissEventEditor.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayview', Ext.ensible.cal.DayView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.MultiDayView\n'
20130515 ' * @extends Ext.ensible.cal.DayView\n'
20130515 ' * <p>Displays a calendar view by day, more than one day at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiDayView = Ext.extend(Ext.ensible.cal.DayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 3).  Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 3,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} startDayIsStatic\n'
20130515 '     * <p>By default, any configuration of a multi-day view that contains fewer than 7 days will have a rolling\n'
20130515 '     * start day. If you view the next or previous views, the dates will be adjusted as needed so that each\n'
20130515 '     * view is contiguous (e.g., if the last day in the current view is Wednesday and you go to the next view\n'
20130515 '     * it will always begin with Thursday, regardless of the value of {@link #startDay}.</p>\n'
20130515 '     * <p>If you set <tt>startDayIsStatic</tt> to <tt>true</tt>, then the view will <em>always</em> begin on\n'
20130515 '     * {@link #startDay}. For any {@link #dayCount} less than 7, days outside the startDay + dayCount range\n'
20130515 '     * will not be viewable. If a date that is not in the viewable range is set into the view it will \n'
20130515 '     * automatically advance to the first viewable date for the current range.  This could be useful for \n'
20130515 '     * creating custom views like a weekday-only or weekend-only view.</p>\n'
20130515 '     * <p>Some example {@link Ext.ensible.cal.CalendarPanel CalendarPanel} configs:</p>\n'
20130515 '     * <pre><code>\n'
20130515 '    // Weekdays only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 5,\n'
20130515 '        startDay: 1,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    // Weekends only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 2,\n'
20130515 '        startDay: 6,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '     * </code></pre>\n'
20130515 '     */\n'
20130515 '    startDayIsStatic: false,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? 7 : this.dayCount, reload);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? -7 : -this.dayCount, reload);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multidayview', Ext.ensible.cal.MultiDayView);/**\n"
20130515 ' * @class Ext.ensible.cal.WeekView\n'
20130515 ' * @extends Ext.ensible.cal.MultiDayView\n'
20130515 ' * <p>Displays a calendar view by week. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\n'
20130515 ' * the week view.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekView = Ext.extend(Ext.ensible.cal.MultiDayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 7)\n'
20130515 '     */\n'
20130515 '    dayCount: 7\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.weekview', Ext.ensible.cal.WeekView);/**\n"
20130515 ' * @class Ext.ensible.cal.MultiWeekView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>Displays a calendar view by week, more than one week at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiWeekView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} weekCount\n'
20130515 '     * The number of weeks to display in the view (defaults to 2)\n'
20130515 '     */\n'
20130515 '    weekCount: 2,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(){\n'
20130515 '        return this.moveWeeks(this.weekCount, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(){\n'
20130515 '        return this.moveWeeks(-this.weekCount, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multiweekview', Ext.ensible.cal.MultiWeekView);/*\r\n"
20130515 ' * This is the view used internally by the panel that displays overflow events in the\r\n'
20130515 ' * month view. Anytime a day cell cannot display all of its events, it automatically displays\r\n'
20130515 ' * a link at the bottom to view all events for that day. When clicked, a panel pops up that\r\n'
20130515 ' * uses this view to display the events for that day.\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthDayDetailView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            eventsrendered: true\r\n'
20130515 '\t\t});\r\n'
20130515 '\t\t\r\n'
20130515 '        if(!this.el){\r\n'
20130515 "            this.el = document.createElement('div');\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        this.tpl = this.getTemplate();\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.MonthDayDetailView.superclass.afterRender.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'click': this.view.onClick,\r\n"
20130515 "\t\t\t'mouseover': this.view.onMouseOver,\r\n"
20130515 "\t\t\t'mouseout': this.view.onMouseOut,\r\n"
20130515 '            scope: this.view\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    getTemplate : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '\t        this.tpl = new Ext.XTemplate(\r\n'
20130515 '                \'<div class="ext-cal-mdv x-unselectable">\',\r\n'
20130515 '\t                \'<table class="ext-cal-mvd-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t\t\t\t\t'<tbody>',\r\n"
20130515 '\t\t\t\t\t\t\t\'<tpl for=".">\',\r\n'
20130515 '\t\t                        \'<tr><td class="ext-cal-ev">{markup}</td></tr>\',\r\n'
20130515 "\t\t\t\t\t\t\t'</tpl>',\r\n"
20130515 "\t                    '</tbody>',\r\n"
20130515 "\t                '</table>',\r\n"
20130515 "                '</div>'\r\n"
20130515 '\t        );\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 '        return this.tpl;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tupdate : function(dt){\r\n'
20130515 '\t\tthis.date = dt;\r\n'
20130515 '\t\tthis.refresh();\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    refresh : function(){\r\n'
20130515 '\t\tif(!this.rendered){\r\n'
20130515 '\t\t\treturn;\r\n'
20130515 '\t\t}\r\n'
20130515 '        var eventTpl = this.view.getEventTemplate(),\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\ttemplateData = [];\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tevts = this.store.queryBy(function(rec){\r\n'
20130515 '\t\t\t\tvar thisDt = this.date.clearTime(true).getTime(),\r\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '\t\t\t\t\trecStart = rec.data[M.StartDate.name].clearTime(true).getTime(),\r\n'
20130515 '\t            \tstartsOnDate = (thisDt == recStart),\r\n'
20130515 '\t\t\t\t\tspansDate = false,\r\n'
20130515 '                    calId = rec.data[M.CalendarId.name],\r\n'
20130515 '                    calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '                    \r\n'
20130515 '                if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '                    // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '                    return false;\r\n'
20130515 '                }\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tif(!startsOnDate){\r\n'
20130515 '\t\t\t\t\tvar recEnd = rec.data[Ext.ensible.cal.EventMappings.EndDate.name].clearTime(true).getTime();\r\n'
20130515 '\t            \tspansDate = recStart < thisDt && recEnd >= thisDt;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t            return startsOnDate || spansDate;\r\n'
20130515 '\t        }, this);\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.CalendarView.prototype.sortEventRecordsForDay.call(this, evts);\r\n'
20130515 '        \r\n'
20130515 '\t\tevts.each(function(evt){\r\n'
20130515 '            var item = evt.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '                \r\n'
20130515 '\t\t\titem._renderAsAllDay = item[M.IsAllDay.name] || Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0;\r\n'
20130515 '            item.spanLeft = Ext.ensible.Date.diffDays(item[M.StartDate.name], this.date) > 0;\r\n'
20130515 '            item.spanRight = Ext.ensible.Date.diffDays(this.date, item[M.EndDate.name]) > 0;\r\n'
20130515 "            item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \r\n"
20130515 "                'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\r\n"
20130515 '\r\n'
20130515 '\t\t\ttemplateData.push({markup: eventTpl.apply(this.getTemplateEventData(item))});\r\n'
20130515 '\t\t}, this);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.tpl.overwrite(this.el, templateData);\r\n'
20130515 "\t\tthis.fireEvent('eventsrendered', this, this.date, evts.getCount());\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tgetTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar data = this.view.getTemplateEventData(evt);\r\n'
20130515 "\t\tdata._elId = 'dtl-'+data._elId;\r\n"
20130515 '\t\treturn data;\r\n'
20130515 '\t}\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthdaydetailview', Ext.ensible.cal.MonthDayDetailView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarPanel\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is the default container for calendar views. It supports day, week, multi-week and month views as well\n'
20130515 ' * as a built-in event edit form. The only requirement for displaying a calendar is passing in a valid\n'
20130515 ' * {@link #Ext.data.Store store} config containing records of type {@link Ext.ensible.cal.EventRecord EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarPanel = Ext.extend(Ext.Panel, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} activeItem\n'
20130515 '     * The 0-based index within the available views to set as the default active view (defaults to undefined). If not \n'
20130515 '     * specified the default view will be set as the last one added to the panel. You can retrieve a reference to the\n'
20130515 '     * active {@link Ext.ensible.cal.CalendarView view} at any time using the {@link #activeView} property.\n'
20130515 '     */\n'
20130515 '    /*\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false, // not currently implemented\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showDayView\n'
20130515 '     * True to include the day view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showDayView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiDayView\n'
20130515 '     * True to include the multi-day view (and toolbar button), false to hide them (defaults to false).\n'
20130515 '     */\n'
20130515 '    showMultiDayView: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showWeekView\n'
20130515 '     * True to include the week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiWeekView\n'
20130515 '     * True to include the multi-week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showMultiWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMonthView\n'
20130515 '     * True to include the month view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     * If all other views are hidden, the month view will show by default even if this config is false.\n'
20130515 '     */\n'
20130515 '    showMonthView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavBar\n'
20130515 '     * True to display the calendar navigation toolbar, false to hide it (defaults to true). Note that\n'
20130515 "     * if you hide the default navigation toolbar you'll have to provide an alternate means of navigating the calendar.\n"
20130515 '     */\n'
20130515 '    showNavBar: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * Text to use for the 'Today' nav bar button.\n"
20130515 '     */\n'
20130515 "    todayText: 'Today',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to show the value of {@link #todayText} instead of today's date in the calendar's current day box,\n"
20130515 '     * false to display the day number(defaults to true).\n'
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time next to the date in the calendar's current day box, false to not show it \n"
20130515 '     * (defaults to true).\n'
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or calendar views from providing CRUD capabilities, false to enable CRUD \n'
20130515 '     * (the default). This option is passed into all views managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    readOnly: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavToday\n'
20130515 '     * True to display the "Today" button in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavToday: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavJump\n'
20130515 '     * True to display the "Jump to:" label in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavJump: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavNextPrev\n'
20130515 "     * True to display the left/right arrow buttons in the calendar panel's navigation header, false to not\n"
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavNextPrev: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} jumpToText\n'
20130515 "     * Text to use for the 'Jump to:' navigation label.\n"
20130515 '     */\n'
20130515 "    jumpToText: 'Jump to:',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} goText\n'
20130515 "     * Text to use for the 'Go' navigation button.\n"
20130515 '     */\n'
20130515 "    goText: 'Go',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} dayText\n'
20130515 "     * Text to use for the 'Day' nav bar button.\n"
20130515 '     */\n'
20130515 "    dayText: 'Day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiDayText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiDayText: '{0} Days',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} weekText\n'
20130515 "     * Text to use for the 'Week' nav bar button.\n"
20130515 '     */\n'
20130515 "    weekText: 'Week',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiWeekText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiWeekText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiWeekText: '{0} Weeks',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} monthText\n'
20130515 "     * Text to use for the 'Month' nav bar button.\n"
20130515 '     */\n'
20130515 "    monthText: 'Month',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} editModal\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\n'
20130515 '     * config will no longer apply. \n'
20130515 '     */\n'
20130515 '    editModal: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEditDetails\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\n'
20130515 '     * link and disable detailed event editing. \n'
20130515 '     */\n'
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\n'
20130515 '     * config), and either can be used interchangeably.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\n'
20130515 '     * the default calendar (and color).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} viewConfig\n'
20130515 '     * A config object that will be applied to all {@link Ext.ensible.cal.CalendarView views} managed by this CalendarPanel. Any\n'
20130515 '     * options on this object that do not apply to any particular view will simply be ignored.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} dayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.DayView DayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiDayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiDayView MultiDayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} weekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.WeekView WeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiWeekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiWeekView MultiWeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} monthViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MonthView MonthView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} editViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.EventEditForm EventEditForm} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * A reference to the {@link Ext.ensible.cal.CalendarView view} that is currently active.\n'
20130515 '     * @type {Ext.ensible.cal.CalendarView}\n'
20130515 '     * @property activeView\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    layoutConfig: {\n'
20130515 '        layoutOnCardChange: true,\n'
20130515 '        deferredRender: true\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private property\n'
20130515 '    startDate: new Date(),\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.tbar = {\n'
20130515 "            cls: 'ext-cal-toolbar',\n"
20130515 '            border: true,\n'
20130515 '            items: []\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.viewCount = 0;\n'
20130515 '        \n'
20130515 '        var multiDayViewCount = (this.multiDayViewCfg && this.multiDayViewCfg.dayCount) || 3,\n'
20130515 '            multiWeekViewCount = (this.multiWeekViewCfg && this.multiWeekViewCfg.weekCount) || 2;\n'
20130515 '        \n'
20130515 '        if(this.showNavToday){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-today', text: this.todayText, handler: this.onTodayClick, scope: this\n"
20130515 '            });\n'
20130515 '        }\n'
20130515 '        if(this.showNavNextPrev){\n'
20130515 '            this.tbar.items.push([\n'
20130515 "                {id: this.id+'-tb-prev', handler: this.onPrevClick, scope: this, iconCls: 'x-tbar-page-prev'},\n"
20130515 "                {id: this.id+'-tb-next', handler: this.onNextClick, scope: this, iconCls: 'x-tbar-page-next'}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        if(this.showNavJump){\n'
20130515 '            this.tbar.items.push([\n'
20130515 '                this.jumpToText,\n'
20130515 "                {id: this.id+'-tb-jump-dt', xtype: 'datefield', showToday: false},\n"
20130515 "                {id: this.id+'-tb-jump', text: this.goText, handler: this.onJumpClick, scope: this}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.tbar.items.push('->');\n"
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-day', text: this.dayText, handler: this.onDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var text = String.format(this.getMultiDayText(multiDayViewCount), multiDayViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiday', text: text, handler: this.onMultiDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-week', text: this.weekText, handler: this.onWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var text = String.format(this.getMultiWeekText(multiWeekViewCount), multiWeekViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiweek', text: text, handler: this.onMultiWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView || this.viewCount == 0){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-month', text: this.monthText, handler: this.onMonthNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '            this.showMonthView = true;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var idx = this.viewCount-1;\n'
20130515 '        this.activeItem = this.activeItem === undefined ? idx : (this.activeItem > idx ? idx : this.activeItem);\n'
20130515 '        \n'
20130515 '        if(this.showNavBar === false){\n'
20130515 '            delete this.tbar;\n'
20130515 "            this.addClass('x-calendar-nonav');\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added to the underlying store\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventdelete\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \n'
20130515 '             * will cancel the delete operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            beforeeventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted by the user.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event viewchange\n'
20130515 '             * Fires after a different calendar view is activated (but not when the event edit form is activated)\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.CalendarView} view The view being activated (any valid {@link Ext.ensible.cal.CalendarView CalendarView} subclass)\n'
20130515 '             * @param {Object} info Extra information about the newly activated view. This is a plain object \n'
20130515 '             * with following properties:<div class="mdetail-params"><ul>\n'
20130515 '             * <li><b><code>activeDate</code></b> : <div class="sub-desc">The currently-selected date</div></li>\n'
20130515 '             * <li><b><code>viewStart</code></b> : <div class="sub-desc">The first date in the new view range</div></li>\n'
20130515 '             * <li><b><code>viewEnd</code></b> : <div class="sub-desc">The last date in the new view range</div></li>\n'
20130515 '             * </ul></div>\n'
20130515 '             */\n'
20130515 '            viewchange: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the selected event in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}). Handling code should hide the active\n'
20130515 '             * event editor and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this The CalendarPanel\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} view The currently active {@link Ext.ensible.cal.CalendarView CalendarView} subclass\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '            \n'
20130515 '            \n'
20130515 '            //\n'
20130515 '            // NOTE: CalendarPanel also relays the following events from contained views as if they originated from this:\n'
20130515 '            //\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * @event eventsrendered\n'
20130515 '             * Fires after events are finished rendering in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this \n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventclick\n'
20130515 '             * <p>Fires after the user clicks on an event element.</p>\n'
20130515 '             * <p><strong>NOTE:</strong> This version of <code>eventclick</code> differs from the same event fired directly by\n'
20130515 '             * {@link Ext.ensible.cal.CalendarView CalendarView} subclasses in that it provides a default implementation (showing\n'
20130515 '             * the default edit window) and is also cancelable (if a handler returns <code>false</code> the edit window will not be shown).\n'
20130515 '             * This event when fired from a view class is simply a notification that an event was clicked and has no default behavior.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event rangeselect\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\n'
20130515 '             * function call (e.g., callback()).\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventover\n'
20130515 '             * Fires anytime the mouse is over an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventout\n'
20130515 '             * Fires anytime the mouse exits an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforedatechange\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\n'
20130515 '             * view change and the setting of the start date.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within a day/week view container and not on an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event datechange\n'
20130515 '             * Fires after the start date of the view changes\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventmove\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the move operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after an event element is dragged by the user and dropped in a new position\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\n'
20130515 '             * updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event initdrag\n'
20130515 '             * Fires when a drag operation is initiated in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayover\n'
20130515 '             * Fires while the mouse is over a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is being moused over\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayout\n'
20130515 '             * Fires when the mouse exits a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is exited\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event and the resize operation is complete. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.layout = 'card'; // do not allow override\n"
20130515 "        this.addClass('x-cal-panel');\n"
20130515 '        \n'
20130515 '        if(this.eventStore){\n'
20130515 '            this.store = this.eventStore;\n'
20130515 '            delete this.eventStore;\n'
20130515 '        }\n'
20130515 '        this.setStore(this.store);\n'
20130515 '        \n'
20130515 '        var sharedViewCfg = {\n'
20130515 '            showToday: this.showToday,\n'
20130515 '            todayText: this.todayText,\n'
20130515 '            showTodayText: this.showTodayText,\n'
20130515 '            showTime: this.showTime,\n'
20130515 '            readOnly: this.readOnly,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            store: this.store,\n'
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            editModal: this.editModal,\n'
20130515 '            enableEditDetails: this.enableEditDetails,\n'
20130515 '            ownerCalendarPanel: this\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            var day = Ext.apply({\n'
20130515 "                xtype: 'extensible.dayview',\n"
20130515 '                title: this.dayText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            day = Ext.apply(Ext.apply(day, this.viewConfig), this.dayViewCfg);\n'
20130515 "            day.id = this.id+'-day';\n"
20130515 '            this.initEventRelay(day);\n'
20130515 '            this.add(day);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var mday = Ext.apply({\n'
20130515 "                xtype: 'extensible.multidayview',\n"
20130515 '                title: this.getMultiDayText(multiDayViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mday = Ext.apply(Ext.apply(mday, this.viewConfig), this.multiDayViewCfg);\n'
20130515 "            mday.id = this.id+'-multiday';\n"
20130515 '            this.initEventRelay(mday);\n'
20130515 '            this.add(mday);\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            var wk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.weekview',\n"
20130515 '                title: this.weekText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            wk = Ext.apply(Ext.apply(wk, this.viewConfig), this.weekViewCfg);\n'
20130515 "            wk.id = this.id+'-week';\n"
20130515 '            this.initEventRelay(wk);\n'
20130515 '            this.add(wk);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var mwk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.multiweekview',\n"
20130515 '                title: this.getMultiWeekText(multiWeekViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mwk = Ext.apply(Ext.apply(mwk, this.viewConfig), this.multiWeekViewCfg);\n'
20130515 "            mwk.id = this.id+'-multiweek';\n"
20130515 '            this.initEventRelay(mwk);\n'
20130515 '            this.add(mwk);\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView){\n'
20130515 '            var month = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.monthview',\n"
20130515 '                title: this.monthText,\n'
20130515 '                listeners: {\n'
20130515 "                    'weekclick': {\n"
20130515 '                        fn: function(vw, dt){\n'
20130515 '                            this.showWeek(dt);\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            month = Ext.apply(Ext.apply(month, this.viewConfig), this.monthViewCfg);\n'
20130515 "            month.id = this.id+'-month';\n"
20130515 '            this.initEventRelay(month);\n'
20130515 '            this.add(month);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        this.add(Ext.applyIf({\n'
20130515 "            xtype: 'extensible.eventeditform',\n"
20130515 "            id: this.id+'-edit',\n"
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            listeners: {\n'
20130515 "                'eventadd':    { scope: this, fn: this.onEventAdd },\n"
20130515 "                'eventupdate': { scope: this, fn: this.onEventUpdate },\n"
20130515 "                'eventdelete': { scope: this, fn: this.onEventDelete },\n"
20130515 "                'eventcancel': { scope: this, fn: this.onEventCancel }\n"
20130515 '            }\n'
20130515 '        }, this.editViewCfg));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initEventRelay: function(cfg){\n'
20130515 '        cfg.listeners = cfg.listeners || {};\n'
20130515 '        cfg.listeners.afterrender = {\n'
20130515 '            fn: function(c){\n'
20130515 '                // relay view events so that app code only has to handle them in one place.\n'
20130515 '                // these events require no special handling by the calendar panel \n'
20130515 "                this.relayEvents(c, ['eventsrendered','eventclick','dayclick','eventover','eventout','beforedatechange',\n"
20130515 "                    'datechange','rangeselect','beforeeventmove','eventmove','initdrag','dayover','dayout','beforeeventresize',\n"
20130515 "                    'eventresize','eventadd','eventupdate','beforeeventdelete','eventdelete','eventcancel']);\n"
20130515 '                \n'
20130515 "                c.on('editdetails', this.onEditDetails, this);\n"
20130515 '            },\n'
20130515 '            scope: this,\n'
20130515 '            single: true\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.afterRender.call(this);\n'
20130515 "        this.body.addClass('x-cal-body');\n"
20130515 '        this.activeView = this.getLayout().activeItem;\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onLayout: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.onLayout.call(this);\n'
20130515 '        if(!this.navInitComplete){\n'
20130515 '            this.updateNavState();\n'
20130515 '            this.navInitComplete = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).\n"
20130515 '     */\n'
20130515 '    getMultiDayText: function(numDays){\n'
20130515 '        return this.multiDayText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).\n"
20130515 '     */\n'
20130515 '    getMultiWeekText: function(numWeeks){\n'
20130515 '        return this.multiWeekText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        var currStore = this.store;\n'
20130515 '        \n'
20130515 '        if(!initial && currStore){\n'
20130515 '            currStore.un("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreAdd : function(ds, recs, index){\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs;\n'
20130515 '        if(rec.phantom){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreUpdate : function(ds, rec, operation){\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.hideEditForm();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onStoreRemove : function(ds, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\n'
20130515 '        switch(action){\n'
20130515 "            case 'create': \n"
20130515 '                this.onStoreAdd(store, rec);\n'
20130515 '                break;\n'
20130515 "            case 'update':\n"
20130515 '                this.onStoreUpdate(store, rec, Ext.data.Record.COMMIT);\n'
20130515 '                break;\n'
20130515 "            case 'destroy':\n"
20130515 '                this.onStoreRemove(store, rec);\n'
20130515 '                break;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetails: function(vw, rec, el){\n'
20130515 "        if(this.fireEvent('editdetails', this, vw, rec, el) !== false){\n"
20130515 '            this.showEditForm(rec);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    save: function(){\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\n"
20130515 '        // method will have already internally caused a save to execute on\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\n'
20130515 "        // otherwise we'll create duplicate transactions.\n"
20130515 '        if(!this.store.autoSave){\n'
20130515 '            this.store.save();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    onEventAdd: function(form, rec){\n'
20130515 '        if(!rec.store){\n'
20130515 '            this.store.add(rec);\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('eventadd', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventUpdate: function(form, rec){\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventDelete: function(form, rec){\n'
20130515 '        this.store.remove(rec);\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventCancel: function(form, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the built-in event edit form for the passed in event record.  This method automatically\n'
20130515 '     * hides the calendar views and navigation toolbar.  To return to the calendar, call {@link #hideEditForm}.\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} record The event record to edit\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    showEditForm: function(rec){\n'
20130515 '        this.preEditView = this.layout.activeItem.id;\n'
20130515 "        this.setActiveView(this.id+'-edit');\n"
20130515 '        this.layout.activeItem.loadRecord(rec);\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Hides the built-in event edit form and returns to the previous calendar view. If the edit form is\n'
20130515 '     * not currently visible this method has no effect.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    hideEditForm: function(){\n'
20130515 '        if(this.preEditView){\n'
20130515 '            this.setActiveView(this.preEditView);\n'
20130515 '            delete this.preEditView;\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    setActiveView: function(id){\n'
20130515 '        var l = this.layout,\n'
20130515 '            tb = this.getTopToolbar();\n'
20130515 '            \n'
20130515 '        l.setActiveItem(id);\n'
20130515 '        this.activeView = l.activeItem;\n'
20130515 '        \n'
20130515 "        if(id == this.id+'-edit'){\n"
20130515 '            if(tb){\n'
20130515 '                tb.hide();\n'
20130515 '            }\n'
20130515 '            this.doLayout();\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(id !== this.preEditView){\n'
20130515 '                l.activeItem.setStartDate(this.startDate, true);\n'
20130515 '            }\n'
20130515 '            if(tb){\n'
20130515 '               tb.show();\n'
20130515 '           }\n'
20130515 '           this.updateNavState();\n'
20130515 '        }\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    fireViewChange: function(){\n'
20130515 '        var info = null, \n'
20130515 '            view = this.layout.activeItem;\n'
20130515 '            \n'
20130515 '        if(view.getViewBounds){\n'
20130515 '            var vb = view.getViewBounds(),\n'
20130515 '            info = {\n'
20130515 '                activeDate: view.getStartDate(),\n'
20130515 '                viewStart: vb.start,\n'
20130515 '                viewEnd: vb.end\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if(view.dismissEventEditor){\n'
20130515 '            view.dismissEventEditor();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('viewchange', this, view, info);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateNavState: function(){\n'
20130515 '        if(this.showNavBar !== false){\n'
20130515 '            var item = this.layout.activeItem,\n'
20130515 "                suffix = item.id.split(this.id+'-')[1];\n"
20130515 '            \n'
20130515 '            if(this.showNavToday){\n'
20130515 "                Ext.getCmp(this.id+'-tb-today').setDisabled(item.isToday());\n"
20130515 '            }\n'
20130515 "            var btn = Ext.getCmp(this.id+'-tb-'+suffix);\n"
20130515 '            btn.toggle(true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date for the currently-active calendar view.\n'
20130515 '     * @param {Date} dt The new start date\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 "        Ext.ensible.log('setStartDate (CalendarPanel');\n"
20130515 '        this.startDate = dt;\n'
20130515 '        this.layout.activeItem.setStartDate(dt, true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    showWeek: function(dt){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '        this.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onTodayClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveToday(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onJumpClick: function(){\n'
20130515 "        var dt = Ext.getCmp(this.id+'-tb-jump-dt').getValue();\n"
20130515 "        if(dt !== ''){\n"
20130515 '            this.startDate = this.layout.activeItem.moveTo(dt, true);\n'
20130515 '            this.updateNavState();\n'
20130515 '            // TODO: check that view actually changed:\n'
20130515 '            this.fireViewChange();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onPrevClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.movePrev(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onNextClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveNext(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-day');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiday');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiweek');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMonthNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-month');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Return the calendar view that is currently active, which will be a subclass of\n'
20130515 '     * {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} The active view\n'
20130515 '     */\n'
20130515 '    getActiveView: function(){\n'
20130515 '        return this.layout.activeItem;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarpanel', Ext.ensible.cal.CalendarPanel);"
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:16 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 5613\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/*\n'
20130515 ' * French (France) locale\n'
20130515 ' * Contributors: devil1591, Alain Deseine, Yannick Torres\n'
20130515 ' */\n'
20130515 '\n'
20130515 'Ext.ensible.Date.use24HourTime = true;\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarView.prototype, {\n'
20130515 '        startDay: 1,\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        defaultEventTitleText: '(Pas de titre)',\n"
20130515 "        ddCreateEventText: 'Cr\xc3\xa9er \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddMoveEventText: 'D\xc3\xa9placer \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddResizeEventText: 'Mettre \xc3\xa0 jour l\\'\xc3\xa9v\xc3\xa9nement au {0}'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthView.prototype, {\n'
20130515 "        moreText: '+{0} autres ...',\n"
20130515 '        getMoreText: function(numEvents){\n'
20130515 "            return '+{0} autres ...';\n"
20130515 '        },\n'
20130515 "        detailsTitleDateFormat: 'd F'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarPanel) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarPanel.prototype, {\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        dayText: 'Jour',\n"
20130515 "        weekText: 'Semaine',\n"
20130515 "        monthText: 'Mois',\n"
20130515 "        jumpToText: 'Aller au :',\n"
20130515 "        goText: 'Ok',\n"
20130515 "        multiDayText: '{0} jours',\n"
20130515 "        multiWeekText: '{0} semaines',\n"
20130515 '        getMultiDayText: function(numDays){\n'
20130515 "            return '{0} jours';\n"
20130515 '        },\n'
20130515 '        getMultiWeekText: function(numWeeks){\n'
20130515 "            return '{0} semaines';\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditWindow) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditWindow.prototype, {\n'
20130515 '        width: 650,\n'
20130515 '        labelWidth: 65,\n'
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        savingMessage: 'Sauvegarde des changements...',\n"
20130515 "        deletingMessage: 'Suppression de l\\'\xc3\xa9v\xc3\xa8nement...',\n"
20130515 "        detailsLinkText: 'D\xc3\xa9tail de l\\'\xc3\xa9v\xc3\xa9nement...',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        calendarLabelText: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditForm) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditForm.prototype, {\n'
20130515 '        labelWidth: 55,\n'
20130515 '        labelWidthRightCol: 80,\n'
20130515 "        title: 'Formulaire \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        reminderLabelText: 'Rappel',\n"
20130515 "        notesLabelText: 'Notes',\n"
20130515 "        locationLabelText: 'Lieu',\n"
20130515 "        webLinkLabelText: 'Lien internet',\n"
20130515 "        calendarLabelText: 'Agenda',\n"
20130515 "        repeatsLabelText: 'R\xc3\xa9p\xc3\xa9ter'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        toText: 'au',\n"
20130515 "        allDayText: 'Toute la journ\xc3\xa9e'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarCombo.prototype, {\n'
20130515 "        fieldLabel: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarList) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarList.prototype, {\n'
20130515 "        title: 'Agendas'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarListMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarListMenu.prototype, {\n'
20130515 "        displayOnlyThisCalendarText: 'N\\'afficher que cet agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.RecurrenceCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.RecurrenceCombo.prototype, {\n'
20130515 "        fieldLabel: 'R\xc3\xa9ccurence',\n"
20130515 '        recurrenceText: {\n'
20130515 "            none: 'Ne pas r\xc3\xa9p\xc3\xa9ter',\n"
20130515 "            daily: 'Quotidien',\n"
20130515 "            weekly: 'Hebdomadaire',\n"
20130515 "            monthly: 'Mensuel',\n"
20130515 "            yearly: 'Annuel'\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.ReminderField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.ReminderField.prototype, {\n'
20130515 "        fieldLabel: 'Rappel',\n"
20130515 "        noneText: 'Aucun',\n"
20130515 "        atStartTimeText: 'au d\xc3\xa9but',\n"
20130515 '        getMinutesText: function(numMinutes){\n'
20130515 "            return numMinutes === 1 ? 'minute' : 'minutes';\n"
20130515 '        },\n'
20130515 '        getHoursText: function(numHours){\n'
20130515 "            return numHours === 1 ? 'heure' : 'heures';\n"
20130515 '        },\n'
20130515 '        getDaysText: function(numDays){\n'
20130515 "            return numDays === 1 ? 'jour' : 'jours';\n"
20130515 '        },\n'
20130515 '        getWeeksText: function(numWeeks){\n'
20130515 "            return numWeeks === 1 ? 'semaine' : 'semaines';\n"
20130515 '        },\n'
20130515 '        reminderValueFormat: \'{0} {1} avant le d\xc3\xa9but\' // e.g. "2 hours before start"\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        dateFormat: 'd/m/Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventContextMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventContextMenu.prototype, {\n'
20130515 "        editDetailsText: '\xc3\x89diter les d\xc3\xa9tails',\n"
20130515 "        deleteText: 'Effacer',\n"
20130515 "        moveToText: 'D\xc3\xa9placer au...'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat: 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DayViewDropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DayViewDropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat : 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.BoxLayoutTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.BoxLayoutTemplate.prototype, {\n'
20130515 "        firstWeekDateFormat: 'D d',\n"
20130515 "        otherWeeksDateFormat: 'd',\n"
20130515 "        singleDayDateFormat: 'l d F Y',\n"
20130515 "        multiDayFirstDayFormat: 'd M Y',\n"
20130515 "        multiDayMonthStartFormat: 'd M'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthViewTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthViewTemplate.prototype, {\n'
20130515 "        dayHeaderFormat: 'D',\n"
20130515 "        dayHeaderTitleFormat: 'l d F Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:16 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21304\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/** ************************************************************\r\n'
20130515 '\tExt.ux.TinyMCE v0.8.5\r\n'
20130515 '\tExtJS form field containing TinyMCE v3.\r\n'
20130515 '\t\r\n'
20130515 '\tAuthor: Andrew Mayorov et al.\r\n'
20130515 '\thttp://blogs.byte-force.com/xor\r\n'
20130515 '  \r\n'
20130515 '\tCopyright (c)2008-2010 BYTE-force\r\n'
20130515 '\twww.byte-force.com\r\n'
20130515 '\t\r\n'
20130515 '\tLicense: LGPLv2.1 or later\r\n'
20130515 '  \r\n'
20130515 '  Modifs by Luc Saffre:\r\n'
20130515 '  \r\n'
20130515 '  disable function sets ``this.disabled = true;`` \r\n'
20130515 '  (enable function the opposite)\r\n'
20130515 '  \r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '(function() {\r\n'
20130515 '\r\n'
20130515 '\tExt.namespace("Ext.ux");\r\n'
20130515 '\r\n'
20130515 '\tvar tmceInitialized = false;\r\n'
20130515 '\r\n'
20130515 '\t// Lazy references to classes. To be filled in the initTinyMCE method.\r\n'
20130515 '\tvar WindowManager;\r\n'
20130515 '\tvar ControlManager;\r\n'
20130515 '\r\n'
20130515 '\t// Create a new Windows Group for the dialogs\r\n'
20130515 '\t/*var windowGroup = new Ext.WindowGroup();\r\n'
20130515 '\twindowGroup.zseed = 12000;*/\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\t/** ----------------------------------------------------------\r\n'
20130515 '\tExt.ux.TinyMCE\r\n'
20130515 '\t*/\r\n'
20130515 '\tExt.ux.TinyMCE = Ext.extend( Ext.form.Field, {\r\n'
20130515 '\r\n'
20130515 '\t\t// TinyMCE Settings specified for this instance of the editor.\r\n'
20130515 '\t\ttinymceSettings: null,\r\n'
20130515 '\r\n'
20130515 '\t\t// Validation properties\r\n'
20130515 '\t\tallowBlank: true,\r\n'
20130515 '\t\tinvalidText: "The value in this field is invalid",\r\n'
20130515 '\t\tinvalidClass: "invalid-content-body",\r\n'
20130515 "\t\tminLengthText : 'The minimum length for this field is {0}',\r\n"
20130515 "\t\tmaxLengthText : 'The maximum length for this field is {0}',\r\n"
20130515 "\t\tblankText : 'This field is required',\r\n"
20130515 '\r\n'
20130515 '\t\t// HTML markup for this field\r\n'
20130515 "\t\thideMode: 'offsets',\r\n"
20130515 '\t\tdefaultAutoCreate: {\r\n'
20130515 '\t\t\ttag: "textarea",\r\n'
20130515 '\t\t\tstyle: "width:1px;height:1px;",\r\n'
20130515 '\t\t\tautocomplete: "off"\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tconstructor: function(cfg) {\r\n'
20130515 '\r\n'
20130515 '\t\t\tvar config = {\r\n'
20130515 '\t\t\t\ttinymceSettings: {\r\n'
20130515 '\t\t\t\t\taccessibility_focus: false\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.apply(config, cfg);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Add events\r\n'
20130515 '\t\t\tthis.addEvents({\r\n'
20130515 '\t\t\t\t"editorcreated": true\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.constructor.call(this, config);\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitComponent: function() {\r\n'
20130515 '\t\t\tthis.tinymceSettings = this.tinymceSettings || {};\r\n'
20130515 "      //~ console.log('initComponent',this.tinymceSettings);\r\n"
20130515 '\t\t\tExt.ux.TinyMCE.initTinyMCE({ language: this.tinymceSettings.language });\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitEvents: function() {\r\n'
20130515 '\t\t\tthis.originalValue = this.getValue();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonRender: function(ct, position) {\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Fix size if it was specified in config\r\n'
20130515 '\t\t\tif (Ext.type(this.width) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.width = this.width;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (Ext.type(this.height) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.height = this.height;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 "\t\t\t//this.el.dom.style.border = '0 none';\r\n"
20130515 "\t\t\tthis.el.dom.setAttribute('tabIndex', -1);\r\n"
20130515 "\t\t\tthis.el.addClass('x-hidden');\r\n"
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Wrap textarea into DIV\r\n'
20130515 '\t\t\tthis.textareaEl = this.el;\r\n'
20130515 '\t\t\tvar wrapElStyle = { overflow: "hidden" };\r\n'
20130515 '\t\t\tif( Ext.isIE ) { // fix IE 1px bogus margin\r\n'
20130515 '\t\t\t\twrapElStyle["margin-top"] = "-1px";\r\n'
20130515 '\t\t\t\twrapElStyle["margin-bottom"] = "-1px";\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tthis.wrapEl = this.el.wrap({ style: wrapElStyle });\r\n'
20130515 '\t\t\tthis.actionMode = "wrapEl"; // Set action element to the new wrapper\r\n'
20130515 '\t\t\tthis.positionEl = this.wrapEl;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar id = this.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Create TinyMCE editor.\r\n'
20130515 '\t\t\tthis.ed = new tinymce.Editor(id, this.tinymceSettings);\r\n'
20130515 '      \r\n'
20130515 '      // LS 20110602\r\n'
20130515 '      //~ this.ed.addShortcut(\'ctrl+c\', "Close editor window", ct.close,this);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Validate value onKeyPress\r\n'
20130515 '\t\t\tvar validateContentTask = new Ext.util.DelayedTask( this.validate, this );\r\n'
20130515 '\t\t\tthis.ed.onKeyPress.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvalidateContentTask.delay( 250 );\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 "\t\t\t// Set up editor events' handlers\r\n"
20130515 '\t\t\tthis.ed.onBeforeRenderUI.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\t// Replace control manager\r\n'
20130515 '\t\t\t\ted.controlManager = new ControlManager(this, ed);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.ed.onPostRender.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvar s = ed.settings;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Modify markup.\r\n'
20130515 '\t\t\t\tvar tbar = Ext.get(Ext.DomQuery.selectNode("#" + this.ed.id + "_tbl td.mceToolbar"));\r\n'
20130515 '\t\t\t\tif( tbar != null ) {\r\n'
20130515 '\t\t\t\t\t// If toolbar is present\r\n'
20130515 '\t\t\t\t\tvar tbars = tbar.select("> table.mceToolbar");\r\n'
20130515 '\t\t\t\t\tExt.DomHelper\r\n'
20130515 '\t\t\t\t\t\t.append( tbar,\r\n'
20130515 '\t\t\t\t\t\t\t{ tag: "div", id: this.ed.id + "_xtbar", style: { overflow: "hidden"} }\r\n'
20130515 '\t\t\t\t\t\t\t, true )\r\n'
20130515 '\t\t\t\t\t\t.appendChild(tbars);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\t// Change window manager\r\n'
20130515 '\t\t\t\ted.windowManager = new WindowManager({\r\n'
20130515 '\t\t\t\t\teditor: this.ed,\r\n'
20130515 '\t\t\t\t\tmanager: this.manager\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t\t// Patch css-style for validation body like ExtJS\r\n'
20130515 "\t\t\t\tExt.get(ed.getContentAreaContainer()).addClass('patch-content-body');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t// Event of focused body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("focus", this.onFocus, this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Event of blur body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("blur", this.onBlur, this,\r\n'
20130515 '\t\t\t\t\t\tthis.inEditor && Ext.isWindows && Ext.isGecko ? { buffer: 10} : null\r\n'
20130515 '\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Set event handler on editor init.\r\n'
20130515 '\t\t\t//this.ed.onInit.add(function() {\r\n'
20130515 '\t\t\t//} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Wire "change" event\r\n'
20130515 '\t\t\tthis.ed.onChange.add(function(ed, l) {\r\n'
20130515 '\t\t\t\tthis.fireEvent("change", ed, l);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Render the editor\r\n'
20130515 '\t\t\tthis.ed.render();\r\n'
20130515 '\t\t\ttinyMCE.add(this.ed);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Fix editor size when control will be visible\r\n'
20130515 '\t\t\t(function fixEditorSize() {\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t\t// If element is not visible yet, wait.\r\n'
20130515 '\t\t\t\tif( !this.isVisible() ) {\r\n'
20130515 '\t\t\t\t\targuments.callee.defer( 50, this );\r\n'
20130515 '\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tvar size = this.getSize();\r\n'
20130515 '\t\t\t\tthis.withEd( function() {\r\n'
20130515 '\t\t\t\t\tthis._setEditorSize( size.width, size.height );\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t\t// Indicate that editor is created\r\n'
20130515 '\t\t\t\t\tthis.fireEvent("editorcreated");\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t}).call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetResizeEl: function() {\r\n'
20130515 '\t\t\treturn this.wrapEl;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t* Returns the name attribute of the field if available\r\n'
20130515 '\t\t* @return {String} name The field name\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetName: function() {\r\n'
20130515 '\t\t\treturn this.rendered && this.textareaEl.dom.name\r\n'
20130515 "\t\t\t\t? this.textareaEl.dom.name : (this.name || '');\r\n"
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif (!this.rendered)\r\n'
20130515 '\t\t\t\tExt.ux.TinyMCE.superclass.initValue.call(this);\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\tif (this.value !== undefined) {\r\n'
20130515 '\t\t\t\t\tthis.setValue(this.value);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse {\r\n'
20130515 '\t\t\t\t\tvar v = this.textareaEl.value; \r\n'
20130515 '\t\t\t\t\tif ( v )\r\n'
20130515 '\t\t\t\t\t\tthis.setValue( v );\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tbeforeDestroy: function() {\r\n'
20130515 '\t\t\tif( this.ed ) tinyMCE.remove( this.ed );\r\n'
20130515 '\t\t\tif( this.wrapEl ) Ext.destroy( this.wrapEl );\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.beforeDestroy.call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetRawValue : function(){\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '\t\t\tif(v === this.emptyText){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '      //~ console.log(v);\r\n'
20130515 '\t\t\tif( v === this.emptyText || v === undefined ){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetRawValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setRawValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t\tthis.validate();\r\n'
20130515 '\t\t\t\t\t//this.ed.resizeToContent();\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tisDirty: function() {\r\n'
20130515 '\t\t\tif (this.disabled || !this.rendered) {\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn this.ed && this.ed.initialized && this.ed.isDirty();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsyncValue: function() {\r\n'
20130515 '\t\t\tif (this.rendered && this.ed.initialized)\r\n'
20130515 '\t\t\t\tthis.ed.save();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetEd: function() {\r\n'
20130515 '\t\t\treturn this.ed;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tdisable: function() {\r\n'
20130515 '      this.disabled = true;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = true;\r\n'
20130515 '        //~ this.ed.setupContentEditable(false);\r\n'
20130515 '        //~ this.ed.controlManager.setDisabled(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = true;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceContentBody')) {\r\n"
20130515 "          //~ console.log('Ext.ux.TinyMCE.disable() 3') \r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceContentBody');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceNonEditable');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.readonly = true;\r\n'
20130515 '\t\t\t\t\t//~ bodyEl.setAttribute("disabled", "disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tenable: function() {\r\n'
20130515 '      this.disabled = false;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = false;\r\n'
20130515 '        //~ this.ed.setupContentEditable(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = false;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceNonEditable')) {\r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceNonEditable');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceContentBody');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.removeAttribute("disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonResize: function(aw, ah) {\r\n'
20130515 '\t\t\tif( Ext.type( aw ) != "number" ){\r\n'
20130515 '\t\t\t\taw = this.getWidth();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif( Ext.type(ah) != "number" ){\r\n'
20130515 '\t\t\t\tah = this.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (aw == 0 || ah == 0)\r\n'
20130515 '\t\t\t\treturn;\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( this.rendered && this.isVisible() ) {\r\n'
20130515 '\t\t\t\tthis.withEd(function() { this._setEditorSize( aw, ah ); });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tSets control size to the given width and height\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\t_setEditorSize: function( width, height ) {\r\n'
20130515 '\t\t  //~ console.log("_setEditorSize",arguments);\r\n'
20130515 '\t\t\t// We currently support only advanced theme resize\r\n'
20130515 '\t\t\tif( !this.ed.theme.AdvancedTheme ) {\r\n'
20130515 '          //~ console.log("We currently support only advanced theme resize, but this.ed.theme is",this.ed.theme);\r\n'
20130515 '          return;\r\n'
20130515 '      }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\t// Minimal width and height for advanced theme\r\n'
20130515 '\t\t\tif( width < 100 ) width = 100;\r\n'
20130515 '\t\t\tif( height < 129 ) height = 129;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Set toolbar div width\r\n'
20130515 '\t\t\tvar edTable = Ext.get(this.ed.id + "_tbl"), \r\n'
20130515 '\t\t\t\tedIframe = Ext.get(this.ed.id + "_ifr"),\r\n'
20130515 '\t\t\t\tedToolbar = Ext.get(this.ed.id + "_xtbar");\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarWidth = width;\r\n'
20130515 '\t\t\tif( edTable ) \r\n'
20130515 '\t\t\t\ttoolbarWidth = width - edTable.getFrameWidth( "lr" );\t\t\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarHeight = 0;\r\n'
20130515 '\t\t\tif( edToolbar ) {\r\n'
20130515 '\t\t\t\ttoolbarHeight = edToolbar.getHeight();\r\n'
20130515 '\t\t\t\tvar toolbarTd = edToolbar.findParent( "td", 5, true );\r\n'
20130515 '\t\t\t\ttoolbarHeight += toolbarTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\tedToolbar.setWidth( toolbarWidth );\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar edStatusbarTd = edTable.child( ".mceStatusbar" );\r\n'
20130515 '\t\t\tvar statusbarHeight = 0;\r\n'
20130515 '\t\t\tif( edStatusbarTd ) {\r\n'
20130515 '\t\t\t\tstatusbarHeight += edStatusbarTd.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar iframeHeight = height - toolbarHeight - statusbarHeight;\r\n'
20130515 '\t\t\tvar iframeTd = edIframe.findParent( "td", 5, true );\r\n'
20130515 '\t\t\tif( iframeTd )\r\n'
20130515 '\t\t\t\tiframeHeight -= iframeTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t// Resize iframe and container\r\n'
20130515 '\t\t\tedTable.setSize( width, height );\r\n'
20130515 '\t\t\tedIframe.setSize( toolbarWidth, iframeHeight );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tfocus: function(selectText, delay) {\r\n'
20130515 '\t\t\tif (delay) {\r\n'
20130515 "\t\t\t\tthis.focus.defer(typeof delay == 'number' ? delay : 10, this, [selectText, false]);\r\n"
20130515 '\t\t\t\treturn;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\tthis.ed.focus();\r\n'
20130515 '\t\t\t\t/*if (selectText === true) {\r\n'
20130515 "\t\t\t\t// TODO: Select editor's content\r\n"
20130515 '\t\t\t\t}*/\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\treturn this;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tprocessValue : function( value ){\r\n'
20130515 '\t\t\treturn Ext.util.Format.stripTags( value );\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tvalidateValue: function( value ) {\r\n'
20130515 '\t\t\tif(Ext.isFunction(this.validator)){\r\n'
20130515 '\t\t\t\tvar msg = this.validator(value);\r\n'
20130515 '\t\t\t\tif(msg !== true){\r\n'
20130515 '\t\t\t\t\tthis.markInvalid(msg);\r\n'
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 "\t\t\tif(value.length < 1 || value === this.emptyText){ // if it's blank\r\n"
20130515 '\t\t\t\t if(this.allowBlank){\r\n'
20130515 '\t\t\t\t\t this.clearInvalid();\r\n'
20130515 '\t\t\t\t\t return true;\r\n'
20130515 '\t\t\t\t }else{\r\n'
20130515 '\t\t\t\t\t this.markInvalid(this.blankText);\r\n'
20130515 '\t\t\t\t\t return false;\r\n'
20130515 '\t\t\t\t }\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length < this.minLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.minLengthText, this.minLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length > this.maxLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.maxLengthText, this.maxLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\t\r\n'
20130515 '\t\t\tif(this.vtype){\r\n'
20130515 '\t\t\t\tvar vt = Ext.form.VTypes;\r\n'
20130515 '\t\t\t\tif(!vt[this.vtype](value, this)){\r\n'
20130515 "\t\t\t\t\tthis.markInvalid(this.vtypeText || vt[this.vtype +'Text']);\r\n"
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(this.regex && !this.regex.test(value)){\r\n'
20130515 '\t\t\t\tthis.markInvalid(this.regexText);\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn true;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\tIf ed (local editor instance) is already initilized, calls\r\n'
20130515 '\t\tspecified function directly. Otherwise - adds it to ed.onInit event.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\twithEd: function(func) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t// If editor is not created yet, reschedule this call.\r\n'
20130515 '\t\t\tif (!this.ed) this.on(\r\n'
20130515 '\t\t\t\t"editorcreated",\r\n'
20130515 '\t\t\t\tfunction() { this.withEd(func); },\r\n'
20130515 '\t\t\t\tthis);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created and initialized\r\n'
20130515 '\t\t\telse if (this.ed.initialized) func.call(this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created but not initialized yet.\r\n'
20130515 '\t\t\telse this.ed.onInit.add(function() { func.defer(10, this); } .createDelegate(this));\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\t// Add static members\r\n'
20130515 '\tExt.apply(Ext.ux.TinyMCE, {\r\n'
20130515 '\r\n'
20130515 '\t\t/**\r\n'
20130515 '\t\tStatic field with all the plugins that should be loaded by TinyMCE.\r\n'
20130515 '\t\tShould be set before first component would be created.\r\n'
20130515 '\t\t@static\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\ttinymcePlugins: "pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template",\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tInits TinyMCE and other necessary dependencies.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitTinyMCE: function(settings) {\r\n'
20130515 '\t\t\tif (!tmceInitialized) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Create lazy classes\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tWindowManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tWindowManager = Ext.extend( tinymce.WindowManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t\tConfig parameters:\r\n'
20130515 '\t\t\t\t\t\teditor - reference to TinyMCE intstance.\r\n'
20130515 '\t\t\t\t\t\tmangager - WindowGroup to use for the popup window. Could be empty.\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function( cfg ) {\r\n'
20130515 '\t\t\t\t\t\tWindowManager.superclass.constructor.call(this, cfg.editor);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Set window group\r\n'
20130515 '\t\t\t\t\t\tthis.manager = cfg.manager;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\talert: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.alert("", txt, function() {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this);\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconfirm: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.confirm("", txt, function(btn) {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this, btn == "yes");\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\topen: function(s, p) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts = s || {};\r\n'
20130515 '\t\t\t\t\t\tp = p || {};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tif (!s.type)\r\n'
20130515 "\t\t\t\t\t\t\tthis.bookmark = this.editor.selection.getBookmark('simple');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts.width = parseInt(s.width || 320);\r\n'
20130515 '\t\t\t\t\t\ts.height = parseInt(s.height || 240) + (tinymce.isIE ? 8 : 0);\r\n'
20130515 '\t\t\t\t\t\ts.min_width = parseInt(s.min_width || 150);\r\n'
20130515 '\t\t\t\t\t\ts.min_height = parseInt(s.min_height || 100);\r\n'
20130515 '\t\t\t\t\t\ts.max_width = parseInt(s.max_width || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.max_height = parseInt(s.max_height || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.movable = true;\r\n'
20130515 '\t\t\t\t\t\ts.resizable = true;\r\n'
20130515 '\t\t\t\t\t\tp.mce_width = s.width;\r\n'
20130515 '\t\t\t\t\t\tp.mce_height = s.height;\r\n'
20130515 '\t\t\t\t\t\tp.mce_inline = true;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tthis.features = s;\r\n'
20130515 '\t\t\t\t\t\tthis.params = p;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar win = new Ext.Window(\r\n'
20130515 '\t\t\t\t\t\t{\r\n'
20130515 '\t\t\t\t\t\t\ttitle: s.name,\r\n'
20130515 '\t\t\t\t\t\t\twidth: s.width,\r\n'
20130515 '\t\t\t\t\t\t\theight: s.height,\r\n'
20130515 '\t\t\t\t\t\t\tminWidth: s.min_width,\r\n'
20130515 '\t\t\t\t\t\t\tminHeight: s.min_height,\r\n'
20130515 '\t\t\t\t\t\t\tresizable: true,\r\n'
20130515 '\t\t\t\t\t\t\tmaximizable: s.maximizable,\r\n'
20130515 '\t\t\t\t\t\t\tminimizable: s.minimizable,\r\n'
20130515 '\t\t\t\t\t\t\tmodal: true,\r\n'
20130515 '\t\t\t\t\t\t\tstateful: false,\r\n'
20130515 '\t\t\t\t\t\t\tconstrain: true,\r\n'
20130515 '\t\t\t\t\t\t\tmanager: this.manager,\r\n'
20130515 '\t\t\t\t\t\t\tlayout: "fit",\r\n'
20130515 '\t\t\t\t\t\t\titems: [\r\n'
20130515 '\t\t\t\t\t\t\t\tnew Ext.BoxComponent({\r\n'
20130515 '\t\t\t\t\t\t\t\t\tautoEl: {\r\n'
20130515 "\t\t\t\t\t\t\t\t\t\ttag: 'iframe',\r\n"
20130515 '\t\t\t\t\t\t\t\t\t\tsrc: s.url || s.file\r\n'
20130515 '\t\t\t\t\t\t\t\t\t},\r\n'
20130515 "\t\t\t\t\t\t\t\t\tstyle : 'border-width: 0px;'\r\n"
20130515 '\t\t\t\t\t\t\t\t})\r\n'
20130515 '\t\t\t\t\t\t\t]\r\n'
20130515 '\t\t\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tp.mce_window_id = win.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\twin.show(null,\r\n'
20130515 '\t\t\t\t\t\t\tfunction() {\r\n'
20130515 '\t\t\t\t\t\t\t\tif (s.left && s.top)\r\n'
20130515 '\t\t\t\t\t\t\t\t\twin.setPagePosition(s.left, s.top);\r\n'
20130515 '\t\t\t\t\t\t\t\tvar pos = win.getPosition();\r\n'
20130515 '\t\t\t\t\t\t\t\ts.left = pos[0];\r\n'
20130515 '\t\t\t\t\t\t\t\ts.top = pos[1];\r\n'
20130515 '\t\t\t\t\t\t\t\tthis.onOpen.dispatch(this, s, p);\r\n'
20130515 '\t\t\t\t\t\t\t},\r\n'
20130515 '\t\t\t\t\t\t\tthis\r\n'
20130515 '\t\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn win;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tclose: function(win) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.close.call(this, win);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tthis.onClose.dispatch(this);\r\n'
20130515 '\t\t\t\t\t\t\tw.close();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tsetTitle: function(win, ti) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.setTitle.call(this, win, ti);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setTitle(ti);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tresizeBy: function(dw, dh, id) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tvar size = w.getSize();\r\n'
20130515 '\t\t\t\t\t\t\tw.setSize(size.width + dw, size.height + dh);\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tfocus: function(id) {\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setActive(true);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tControlManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tControlManager = Ext.extend( tinymce.ControlManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t// Reference to ExtJS control Ext.ux.TinyMCE.\r\n'
20130515 '\t\t\t\t\tcontrol: null,\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function(control, ed, s) {\r\n'
20130515 '\t\t\t\t\t\tthis.control = control;\r\n'
20130515 '\t\t\t\t\t\tControlManager.superclass.constructor.call(this, ed, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateDropMenu: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createDropMenu.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(\'menu_\' + this.id).setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateColorSplitButton: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createColorSplitButton.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(this.id + \'_menu\').setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Init TinyMCE\r\n'
20130515 '\t\t\t\tvar s = {\r\n'
20130515 '\t\t\t\t\tmode: "none",\r\n'
20130515 '\t\t\t\t\tplugins: Ext.ux.TinyMCE.tinymcePlugins,\r\n'
20130515 '\t\t\t\t\ttheme: "advanced"\r\n'
20130515 '\t\t\t\t};\r\n'
20130515 '\t\t\t\tExt.apply(s, settings);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\tif (!tinymce.dom.Event.domLoaded)\r\n'
20130515 '\t\t\t\t\ttinymce.dom.Event._pageInit();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\ttinyMCE.init(s);\r\n'
20130515 '\t\t\t\ttmceInitialized = true;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\tExt.ComponentMgr.registerType("tinymce", Ext.ux.TinyMCE);\r\n'
20130515 '\r\n'
20130515 '})();'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:16 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21047\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '// vim: ts=4:sw=4:nu:fdc=4:nospell\r\n'
20130515 '/*global Ext */\r\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ux.form.DateTime\r\n'
20130515 ' * @extends Ext.form.Field\r\n'
20130515 ' *\r\n'
20130515 ' * DateTime field, combination of DateField and TimeField\r\n'
20130515 ' *\r\n'
20130515 ' * @author      Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @copyright (c) 2008, Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @version   2.0\r\n'
20130515 ' * @revision  $Id: Ext.ux.form.DateTime.js 813 2010-01-29 23:32:36Z jozo $\r\n'
20130515 ' *\r\n'
20130515 ' * @license Ext.ux.form.DateTime is licensed under the terms of\r\n'
20130515 ' * the Open Source LGPL 3.0 license.  Commercial use is permitted to the extent\r\n'
20130515 ' * that the code/component(s) do NOT become part of another Open Source or Commercially\r\n'
20130515 ' * licensed development library or toolkit without explicit permission.\r\n'
20130515 ' * \r\n'
20130515 ' * <p>License details: <a href="http://www.gnu.org/licenses/lgpl.html"\r\n'
20130515 ' * target="_blank">http://www.gnu.org/licenses/lgpl.html</a></p>\r\n'
20130515 ' *\r\n'
20130515 ' * @forum      22661\r\n'
20130515 ' *\r\n'
20130515 ' * @donate\r\n'
20130515 ' * <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">\r\n'
20130515 ' * <input type="hidden" name="cmd" value="_s-xclick">\r\n'
20130515 ' * <input type="hidden" name="hosted_button_id" value="3430419">\r\n'
20130515 ' * <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" \r\n'
20130515 ' * border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">\r\n'
20130515 ' * <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">\r\n'
20130515 ' * </form>\r\n'
20130515 ' */\r\n'
20130515 '\r\n'
20130515 "Ext.ns('Ext.ux.form');\r\n"
20130515 '\r\n'
20130515 '/**\r\n'
20130515 ' * Creates new DateTime\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config A config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ux.form.DateTime = Ext.extend(Ext.form.Field, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} dateValidator A custom validation function to be called during date field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '     dateValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String/Object} defaultAutoCreate DomHelper element spec\r\n'
20130515 '     * Let superclass to create hidden field instead of textbox. Hidden will be submittend to server\r\n'
20130515 '     */\r\n'
20130515 "    ,defaultAutoCreate:{tag:'input', type:'hidden'}\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dtSeparator Date - Time separator. Used to split date and time (defaults to ' ' (space))\r\n"
20130515 '     */\r\n'
20130515 "    ,dtSeparator:' '\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} hiddenFormat Format of datetime used to store value in hidden field\r\n'
20130515 "     * and submitted to server (defaults to 'Y-m-d H:i:s' that is mysql format)\r\n"
20130515 '     */\r\n'
20130515 "    ,hiddenFormat:'Y-m-d H:i:s'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} otherToNow Set other field to now() if not explicly filled in (defaults to true)\r\n'
20130515 '     */\r\n'
20130515 '    ,otherToNow:true\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} emptyToNow Set field value to now on attempt to set empty value.\r\n'
20130515 '     * If it is true then setValue() sets value of field to current date and time (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timePosition Where the time field should be rendered. 'right' is suitable for forms\r\n"
20130515 "     * and 'below' is suitable if the field is used as the grid editor (defaults to 'right')\r\n"
20130515 '     */\r\n'
20130515 "    ,timePosition:'right' // valid values:'below', 'right'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} timeValidator A custom validation function to be called during time field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} timeWidth Width of time field in pixels (defaults to 100)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeWidth:100\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dateFormat Format of DateField. Can be localized. (defaults to 'm/y/d')\r\n"
20130515 '     */\r\n'
20130515 "    ,dateFormat:'m/d/y'\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timeFormat Format of TimeField. Can be localized. (defaults to 'g:i A')\r\n"
20130515 '     */\r\n'
20130515 "    ,timeFormat:'g:i A'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} dateConfig Config for DateField constructor.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} timeConfig Config for TimeField constructor.\r\n'
20130515 '     */\r\n'
20130515 '\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * creates DateField and TimeField and installs the necessary event handlers\r\n'
20130515 '     */\r\n'
20130515 '    ,initComponent:function() {\r\n'
20130515 '        // call parent initComponent\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.initComponent.call(this);\r\n'
20130515 '\r\n'
20130515 '        // create DateField\r\n'
20130515 '        var dateConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-date'\r\n"
20130515 '            ,format:this.dateFormat || Ext.form.DateField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.dateValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.dateConfig);\r\n'
20130515 '        this.df = new Ext.form.DateField(dateConfig);\r\n'
20130515 '        this.df.ownerCt = this;\r\n'
20130515 '        delete(this.dateFormat);\r\n'
20130515 '\r\n'
20130515 '        // create TimeField\r\n'
20130515 '        var timeConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-time'\r\n"
20130515 '            ,format:this.timeFormat || Ext.form.TimeField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.timeValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.timeConfig);\r\n'
20130515 '        this.tf = new Ext.form.TimeField(timeConfig);\r\n'
20130515 '        this.tf.ownerCt = this;\r\n'
20130515 '        delete(this.timeFormat);\r\n'
20130515 '\r\n'
20130515 '        // relay events\r\n'
20130515 "        this.relayEvents(this.df, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 "        this.relayEvents(this.tf, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 '\r\n'
20130515 "        this.on('specialkey', this.onSpecialKey, this);\r\n"
20130515 '\r\n'
20130515 '    } // eo function initComponent\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Renders underlying DateField and TimeField and provides a workaround for side error icon bug\r\n'
20130515 '     */\r\n'
20130515 '    ,onRender:function(ct, position) {\r\n'
20130515 "        // don't run more than once\r\n"
20130515 '        if(this.isRendered) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // render underlying hidden field\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '        // render DateField and TimeField\r\n'
20130515 '        // create bounding table\r\n'
20130515 '        var t;\r\n'
20130515 "        if('below' === this.timePosition || 'bellow' === this.timePosition) {\r\n"
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                 {tag:'tr',children:[{tag:'td', style:'padding-bottom:1px', cls:'ux-datetime-date'}]}\r\n"
20130515 "                ,{tag:'tr',children:[{tag:'td', cls:'ux-datetime-time'}]}\r\n"
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                {tag:'tr',children:[\r\n"
20130515 "                    {tag:'td',style:'padding-right:4px', cls:'ux-datetime-date'},{tag:'td', cls:'ux-datetime-time'}\r\n"
20130515 '                ]}\r\n'
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.tableEl = t;\r\n'
20130515 "        this.wrap = t.wrap({cls:'x-form-field-wrap'});\r\n"
20130515 '//        this.wrap = t.wrap();\r\n'
20130515 '        this.wrap.on("mousedown", this.onMouseDown, this, {delay:10});\r\n'
20130515 '\r\n'
20130515 '        // render DateField & TimeField\r\n'
20130515 "        this.df.render(t.child('td.ux-datetime-date'));\r\n"
20130515 "        this.tf.render(t.child('td.ux-datetime-time'));\r\n"
20130515 '\r\n'
20130515 '        // workaround for IE trigger misalignment bug\r\n'
20130515 '        // see http://extjs.com/forum/showthread.php?p=341075#post341075\r\n'
20130515 '//        if(Ext.isIE && Ext.isStrict) {\r\n'
20130515 "//            t.select('input').applyStyles({top:0});\r\n"
20130515 '//        }\r\n'
20130515 '\r\n'
20130515 "        this.df.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 "        this.tf.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 '\r\n'
20130515 '        // create icon for side invalid errorIcon\r\n'
20130515 "        if('side' === this.msgTarget) {\r\n"
20130515 "            var elp = this.el.findParent('.x-form-element', 10, true);\r\n"
20130515 '            if(elp) {\r\n'
20130515 "                this.errorIcon = elp.createChild({cls:'x-form-invalid-icon'});\r\n"
20130515 '            }\r\n'
20130515 '\r\n'
20130515 '            var o = {\r\n'
20130515 '                 errorIcon:this.errorIcon\r\n'
20130515 "                ,msgTarget:'side'\r\n"
20130515 '                ,alignErrorIcon:this.alignErrorIcon.createDelegate(this)\r\n'
20130515 '            };\r\n'
20130515 '            Ext.apply(this.df, o);\r\n'
20130515 '            Ext.apply(this.tf, o);\r\n'
20130515 '//            this.df.errorIcon = this.errorIcon;\r\n'
20130515 '//            this.tf.errorIcon = this.errorIcon;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // setup name for submit\r\n'
20130515 '        this.el.dom.name = this.hiddenName || this.name || this.id;\r\n'
20130515 '\r\n'
20130515 '        // prevent helper fields from being submitted\r\n'
20130515 '        this.df.el.dom.removeAttribute("name");\r\n'
20130515 '        this.tf.el.dom.removeAttribute("name");\r\n'
20130515 '\r\n'
20130515 "        // we're rendered flag\r\n"
20130515 '        this.isRendered = true;\r\n'
20130515 '\r\n'
20130515 '        // update hidden field\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '    } // eo function onRender\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,adjustSize:Ext.BoxComponent.prototype.adjustSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,alignErrorIcon:function() {\r\n'
20130515 "        this.errorIcon.alignTo(this.tableEl, 'tl-tr', [2, 0]);\r\n"
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private initializes internal dateValue\r\n'
20130515 '     */\r\n'
20130515 '    ,initDateValue:function() {\r\n'
20130515 '        this.dateValue = this.otherToNow ? new Date() : new Date(1970, 0, 1, 0, 0, 0);\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls clearInvalid on the DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,clearInvalid:function(){\r\n'
20130515 '        this.df.clearInvalid();\r\n'
20130515 '        this.tf.clearInvalid();\r\n'
20130515 '    } // eo function clearInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls markInvalid on both DateField and TimeField\r\n'
20130515 '     * @param {String} msg Invalid message to display\r\n'
20130515 '     */\r\n'
20130515 '    ,markInvalid:function(msg){\r\n'
20130515 '        this.df.markInvalid(msg);\r\n'
20130515 '        this.tf.markInvalid(msg);\r\n'
20130515 '    } // eo function markInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * called from Component::destroy. \r\n'
20130515 "     * Destroys all elements and removes all listeners we've created.\r\n"
20130515 '     */\r\n'
20130515 '    ,beforeDestroy:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '//            this.removeAllListeners();\r\n'
20130515 '            this.wrap.removeAllListeners();\r\n'
20130515 '            this.wrap.remove();\r\n'
20130515 '            this.tableEl.remove();\r\n'
20130515 '            this.df.destroy();\r\n'
20130515 '            this.tf.destroy();\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function beforeDestroy\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Disable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,disable:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '            this.df.disabled = this.disabled;\r\n'
20130515 '            this.df.onDisable();\r\n'
20130515 '            this.tf.onDisable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = true;\r\n'
20130515 '        this.df.disabled = true;\r\n'
20130515 '        this.tf.disabled = true;\r\n'
20130515 '        this.fireEvent("disable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function disable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,enable:function() {\r\n'
20130515 '        if(this.rendered){\r\n'
20130515 '            this.df.onEnable();\r\n'
20130515 '            this.tf.onEnable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = false;\r\n'
20130515 '        this.df.disabled = false;\r\n'
20130515 '        this.tf.disabled = false;\r\n'
20130515 '        this.fireEvent("enable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function enable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Focus date filed\r\n'
20130515 '     */\r\n'
20130515 '    ,focus:function() {\r\n'
20130515 '        this.df.focus();\r\n'
20130515 '    } // eo function focus\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getPositionEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getResizeEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Date/String} Returns value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,getValue:function() {\r\n'
20130515 '        // create new instance of date\r\n'
20130515 "        return this.dateValue ? new Date(this.dateValue) : '';\r\n"
20130515 '    } // eo function getValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * @private Calls isValid methods of underlying DateField and TimeField and returns the result\r\n'
20130515 '     */\r\n'
20130515 '    ,isValid:function() {\r\n'
20130515 '        return this.df.isValid() && this.tf.isValid();\r\n'
20130515 '    } // eo function isValid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns true if this component is visible\r\n'
20130515 '     * @return {boolean} \r\n'
20130515 '     */\r\n'
20130515 '    ,isVisible : function(){\r\n'
20130515 '        return this.df.rendered && this.df.getActionEl().isVisible();\r\n'
20130515 '    } // eo function isVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Handles blur event\r\n'
20130515 '     */\r\n'
20130515 '    ,onBlur:function(f) {\r\n'
20130515 '        // called by both DateField and TimeField blur events\r\n'
20130515 '\r\n'
20130515 '        // revert focus to previous field if clicked in between\r\n'
20130515 '        if(this.wrapClick) {\r\n'
20130515 '            f.focus();\r\n'
20130515 '            this.wrapClick = false;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // update underlying value\r\n'
20130515 '        if(f === this.df) {\r\n'
20130515 '            this.updateDate();\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.updateTime();\r\n'
20130515 '        }\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        this.validate();\r\n'
20130515 '\r\n'
20130515 '        // fire events later\r\n'
20130515 '        (function() {\r\n'
20130515 '            if(!this.df.hasFocus && !this.tf.hasFocus) {\r\n'
20130515 '                var v = this.getValue();\r\n'
20130515 '                if(String(v) !== String(this.startValue)) {\r\n'
20130515 '                    this.fireEvent("change", this, v, this.startValue);\r\n'
20130515 '                }\r\n'
20130515 '                this.hasFocus = false;\r\n'
20130515 "                this.fireEvent('blur', this);\r\n"
20130515 '            }\r\n'
20130515 '        }).defer(100, this);\r\n'
20130515 '\r\n'
20130515 '    } // eo function onBlur\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Handles focus event\r\n'
20130515 '     */\r\n'
20130515 '    ,onFocus:function() {\r\n'
20130515 '        if(!this.hasFocus){\r\n'
20130515 '            this.hasFocus = true;\r\n'
20130515 '            this.startValue = this.getValue();\r\n'
20130515 '            this.fireEvent("focus", this);\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Just to prevent blur event when clicked in the middle of fields\r\n'
20130515 '     */\r\n'
20130515 '    ,onMouseDown:function(e) {\r\n'
20130515 '        if(!this.disabled) {\r\n'
20130515 "            this.wrapClick = 'td' === e.target.nodeName.toLowerCase();\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Handles Tab and Shift-Tab events\r\n'
20130515 '     */\r\n'
20130515 '    ,onSpecialKey:function(t, e) {\r\n'
20130515 '        var key = e.getKey();\r\n'
20130515 '        if(key === e.TAB) {\r\n'
20130515 '            if(t === this.df && !e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.tf.focus();\r\n'
20130515 '            }\r\n'
20130515 '            if(t === this.tf && e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.df.focus();\r\n'
20130515 '            }\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '        // otherwise it misbehaves in editor grid\r\n'
20130515 '        if(key === e.ENTER) {\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '    } // eo function onSpecialKey\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Resets the current field value to the originally loaded value \r\n'
20130515 '     * and clears any validation messages. See Ext.form.BasicForm.trackResetOnLoad\r\n'
20130515 '     */\r\n'
20130515 '    ,reset:function() {\r\n'
20130515 '        this.df.setValue(this.originalValue);\r\n'
20130515 '        this.tf.setValue(this.originalValue);\r\n'
20130515 '    } // eo function reset\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Sets the value of DateField\r\n'
20130515 '     */\r\n'
20130515 '    ,setDate:function(date) {\r\n'
20130515 '        this.df.setValue(date);\r\n'
20130515 '    } // eo function setDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Sets the value of TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,setTime:function(date) {\r\n'
20130515 '        this.tf.setValue(date);\r\n'
20130515 '    } // eo function setTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Sets correct sizes of underlying DateField and TimeField\r\n'
20130515 '     * With workarounds for IE bugs\r\n'
20130515 '     */\r\n'
20130515 '    ,setSize:function(w, h) {\r\n'
20130515 '        if(!w) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if('below' === this.timePosition) {\r\n"
20130515 '            this.df.setSize(w, h);\r\n'
20130515 '            this.tf.setSize(w, h);\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w);\r\n"
20130515 "                this.tf.el.up('td').setWidth(w);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.df.setSize(w - this.timeWidth - 4, h);\r\n'
20130515 '            this.tf.setSize(this.timeWidth, h);\r\n'
20130515 '\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w - this.timeWidth - 4);\r\n"
20130515 "                this.tf.el.up('td').setWidth(this.timeWidth);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function setSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @param {Mixed} val Value to set\r\n'
20130515 '     * Sets the value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,setValue:function(val) {\r\n'
20130515 '        if(!val && true === this.emptyToNow) {\r\n'
20130515 '            this.setValue(new Date());\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        else if(!val) {\r\n'
20130515 "            this.setDate('');\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '            this.updateValue();\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if ('number' === typeof val) {\r\n"
20130515 '          val = new Date(val);\r\n'
20130515 '        }\r\n'
20130515 "        else if('string' === typeof val && this.hiddenFormat) {\r\n"
20130515 '            val = Date.parseDate(val, this.hiddenFormat);\r\n'
20130515 '        }\r\n'
20130515 '        val = val ? val : new Date(1970, 0 ,1, 0, 0, 0);\r\n'
20130515 '        var da;\r\n'
20130515 '        if(val instanceof Date) {\r\n'
20130515 '            this.setDate(val);\r\n'
20130515 '            this.setTime(val);\r\n'
20130515 '            this.dateValue = new Date(Ext.isIE ? val.getTime() : val);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            da = val.split(this.dtSeparator);\r\n'
20130515 '            this.setDate(da[0]);\r\n'
20130515 '            if(da[1]) {\r\n'
20130515 '                if(da[2]) {\r\n'
20130515 '                    // add am/pm part back to time\r\n'
20130515 '                    da[1] += da[2];\r\n'
20130515 '                }\r\n'
20130515 '                this.setTime(da[1]);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.updateValue();\r\n'
20130515 '    } // eo function setValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Hide or show this component by boolean\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,setVisible: function(visible){\r\n'
20130515 '        if(visible) {\r\n'
20130515 '            this.df.show();\r\n'
20130515 '            this.tf.show();\r\n'
20130515 '        }else{\r\n'
20130515 '            this.df.hide();\r\n'
20130515 '            this.tf.hide();\r\n'
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function setVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,show:function() {\r\n'
20130515 '        return this.setVisible(true);\r\n'
20130515 '    } // eo function show\r\n'
20130515 '    //}}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,hide:function() {\r\n'
20130515 '        return this.setVisible(false);\r\n'
20130515 '    } // eo function hide\r\n'
20130515 '    //}}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the date part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateDate:function() {\r\n'
20130515 '\r\n'
20130515 '        var d = this.df.getValue();\r\n'
20130515 '        if(d) {\r\n'
20130515 '            if(!(this.dateValue instanceof Date)) {\r\n'
20130515 '                this.initDateValue();\r\n'
20130515 '                if(!this.tf.getValue()) {\r\n'
20130515 '                    this.setTime(this.dateValue);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            this.dateValue.setMonth(0); // because of leap years\r\n'
20130515 '            this.dateValue.setFullYear(d.getFullYear());\r\n'
20130515 '            this.dateValue.setMonth(d.getMonth(), d.getDate());\r\n'
20130515 '//            this.dateValue.setDate(d.getDate());\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            this.dateValue = '';\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '        }\r\n'
20130515 '    } // eo function updateDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Updates the time part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateTime:function() {\r\n'
20130515 '        var t = this.tf.getValue();\r\n'
20130515 '        if(t && !(t instanceof Date)) {\r\n'
20130515 '            t = Date.parseDate(t, this.tf.format);\r\n'
20130515 '        }\r\n'
20130515 '        if(t && !this.df.getValue()) {\r\n'
20130515 '            this.initDateValue();\r\n'
20130515 '            this.setDate(this.dateValue);\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dateValue instanceof Date) {\r\n'
20130515 '            if(t) {\r\n'
20130515 '                this.dateValue.setHours(t.getHours());\r\n'
20130515 '                this.dateValue.setMinutes(t.getMinutes());\r\n'
20130515 '                this.dateValue.setSeconds(t.getSeconds());\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.dateValue.setHours(0);\r\n'
20130515 '                this.dateValue.setMinutes(0);\r\n'
20130515 '                this.dateValue.setSeconds(0);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function updateTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the underlying hidden field value\r\n'
20130515 '     */\r\n'
20130515 '    ,updateHidden:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 "            var value = this.dateValue instanceof Date ? this.dateValue.format(this.hiddenFormat) : '';\r\n"
20130515 '            this.el.dom.value = value;\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates all of Date, Time and Hidden\r\n'
20130515 '     */\r\n'
20130515 '    ,updateValue:function() {\r\n'
20130515 '\r\n'
20130515 '        this.updateDate();\r\n'
20130515 '        this.updateTime();\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        return;\r\n'
20130515 '    } // eo function updateValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * calls validate methods of DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,validate:function() {\r\n'
20130515 '        return this.df.validate() && this.tf.validate();\r\n'
20130515 '    } // eo function validate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns renderer suitable to render this field\r\n'
20130515 '     * @param {Object} Column model config\r\n'
20130515 '     */\r\n'
20130515 '    ,renderer: function(field) {\r\n'
20130515 '        var format = field.editor.dateFormat || Ext.ux.form.DateTime.prototype.dateFormat;\r\n'
20130515 "        format += ' ' + (field.editor.timeFormat || Ext.ux.form.DateTime.prototype.timeFormat);\r\n"
20130515 '        var renderer = function(val) {\r\n'
20130515 '            var retval = Ext.util.Format.date(val, format);\r\n'
20130515 '            return retval;\r\n'
20130515 '        };\r\n'
20130515 '        return renderer;\r\n'
20130515 '    } // eo function renderer\r\n'
20130515 '    // }}}\r\n'
20130515 '\r\n'
20130515 '}); // eo extend\r\n'
20130515 '\r\n'
20130515 '// register xtype\r\n'
20130515 "Ext.reg('xdatetime', Ext.ux.form.DateTime);\r\n"
20130515 '\r\n'
20130515 '// eof'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:16 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 15 May 2013 08:45:09 GMT\r\nContent-Length: 2000115\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\n'
20130515 ' Copyright 2009-2013 Luc Saffre\n'
20130515 ' This file is part of the Lino project.\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \n'
20130515 ' it under the terms of the GNU General Public License as published by\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\n'
20130515 ' (at your option) any later version.\n'
20130515 ' Lino is distributed in the hope that it will be useful, \n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \n'
20130515 ' GNU General Public License for more details.\n'
20130515 ' You should have received a copy of the GNU General Public License\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\n'
20130515 '*/\n'
20130515 '\n'
20130515 '// lino.js --- generated Wed May 15 11:45:07 2013 by Lino version 1.6.7.\n'
20130515 "Ext.BLANK_IMAGE_URL = 'http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif';\n"
20130515 'LANGUAGE_CHOICES = [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ];\n'
20130515 'MEDIA_URL = "/media";\n'
20130515 '\n'
20130515 '/* MonthPickerPlugin: thanks to keypoint @ sencha forum\n'
20130515 '   http://www.sencha.com/forum/showthread.php?74002-3.x-Ext.ux.MonthMenu&p=356860#post356860\n'
20130515 '*/\n'
20130515 "Ext.namespace('Ext.ux'); \n"
20130515 '\n'
20130515 'Ext.ux.MonthPickerPlugin = function() { \n'
20130515 '    var picker; \n'
20130515 '    var oldDateDefaults; \n'
20130515 '\n'
20130515 '    this.init = function(pk) { \n'
20130515 '        picker = pk; \n'
20130515 '        picker.onTriggerClick = picker.onTriggerClick.createSequence(onClick); \n'
20130515 '        picker.getValue = picker.getValue.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '        picker.beforeBlur = picker.beforeBlur.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '    }; \n'
20130515 '\n'
20130515 '    function setDefaultMonthDay() { \n'
20130515 '        oldDateDefaults = Date.defaults.d; \n'
20130515 '        Date.defaults.d = 1; \n'
20130515 '        return true; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function restoreDefaultMonthDay(ret) { \n'
20130515 '        Date.defaults.d = oldDateDefaults; \n'
20130515 '        return ret; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function onClick(e, el, opt) { \n'
20130515 '        var p = picker.menu.picker; \n'
20130515 '        p.activeDate = p.activeDate.getFirstDateOfMonth(); \n'
20130515 '        if (p.value) { \n'
20130515 '            p.value = p.value.getFirstDateOfMonth(); \n'
20130515 '        } \n'
20130515 '\n'
20130515 '        p.showMonthPicker(); \n'
20130515 '         \n'
20130515 '        if (!p.disabled) { \n'
20130515 '            p.monthPicker.stopFx(); \n'
20130515 '            p.monthPicker.show(); \n'
20130515 '\n'
20130515 "            p.mun(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mun(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '            p.onMonthClick = p.onMonthClick.createSequence(pickerClick); \n'
20130515 '            p.onMonthDblClick = p.onMonthDblClick.createSequence(pickerDblclick); \n'
20130515 "            p.mon(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mon(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerClick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 "        if (el.is('button.x-date-mp-cancel')) { \n"
20130515 '            picker.menu.hide(); \n'
20130515 "        } else if(el.is('button.x-date-mp-ok')) { \n"
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerDblclick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 '        if (el.parent() \n'
20130515 "            && (el.parent().is('td.x-date-mp-month') \n"
20130515 "            || el.parent().is('td.x-date-mp-year'))) { \n"
20130515 '\n'
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '}; \n'
20130515 '\n'
20130515 "Ext.preg('monthPickerPlugin', Ext.ux.MonthPickerPlugin);  \n"
20130515 '\n'
20130515 '//~ /* \n'
20130515 '  //~ http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/\n'
20130515 '//~ */\n'
20130515 '//~ /**\n'
20130515 ' //~ * This submit action is basically the same as the normal submit action,\n'
20130515 ' //~ * only that it uses the fields getSubmitValue() to compose the values to submit,\n'
20130515 ' //~ * instead of looping over the input-tags in the form-tag of the form.\n'
20130515 ' //~ *\n'
20130515 ' //~ * To use it, just use the OOSubmit-plugin on either a FormPanel or a BasicForm,\n'
20130515 " //~ * or explicitly call form.doAction('oosubmit');\n"
20130515 ' //~ *\n'
20130515 ' //~ * @param {Object} form\n'
20130515 ' //~ * @param {Object} options\n'
20130515 ' //~ */\n'
20130515 '//~ Ext.ux.OOSubmitAction = function(form, options){\n'
20130515 '    //~ Ext.ux.OOSubmitAction.superclass.constructor.call(this, form, options);\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.extend(Ext.ux.OOSubmitAction, Ext.form.Action.Submit, {\n'
20130515 '    //~ /**\n'
20130515 "    //~ * @cfg {boolean} clientValidation Determines whether a Form's fields are validated\n"
20130515 '    //~ * in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission.\n'
20130515 "    //~ * Pass <tt>false</tt> in the Form's submit options to prevent this. If not defined, pre-submission field validation\n"
20130515 '    //~ * is performed.\n'
20130515 '    //~ */\n'
20130515 "    //~ type : 'oosubmit',\n"
20130515 '\n'
20130515 '    //~ // private\n'
20130515 '    //~ /**\n'
20130515 '     //~ * This is nearly a copy of the original submit action run method\n'
20130515 '     //~ */\n'
20130515 '    //~ run : function(){\n'
20130515 '        //~ var o = this.options;\n'
20130515 '        //~ var method = this.getMethod();\n'
20130515 "        //~ var isPost = method == 'POST';\n"
20130515 '\n'
20130515 '        //~ var params = this.options.params || {};\n'
20130515 '        //~ if (isPost) Ext.applyIf(params, this.form.baseParams);\n'
20130515 '\n'
20130515 '        //~ //now add the form parameters\n'
20130515 '        //~ this.form.items.each(function(field)\n'
20130515 '        //~ {\n'
20130515 '            //~ if (!field.disabled)\n'
20130515 '            //~ {\n'
20130515 '                //~ //check if the form item provides a specialized getSubmitValue() and use that if available\n'
20130515 '                //~ if (typeof field.getSubmitValue == "function")\n'
20130515 '                    //~ params[field.getName()] = field.getSubmitValue();\n'
20130515 '                //~ else\n'
20130515 '                    //~ params[field.getName()] = field.getValue();\n'
20130515 '            //~ }\n'
20130515 '        //~ });\n'
20130515 '\n'
20130515 '        //~ //convert params to get style if we are not post\n'
20130515 '        //~ if (!isPost) params=Ext.urlEncode(params);\n'
20130515 '\n'
20130515 '        //~ if(o.clientValidation === false || this.form.isValid()){\n'
20130515 '            //~ Ext.Ajax.request(Ext.apply(this.createCallback(o), {\n'
20130515 '                //~ url:this.getUrl(!isPost),\n'
20130515 '                //~ method: method,\n'
20130515 '                //~ params:params, //add our values\n'
20130515 '                //~ isUpload: this.form.fileUpload\n'
20130515 '            //~ }));\n'
20130515 '\n'
20130515 '        //~ }else if (o.clientValidation !== false){ // client validation failed\n'
20130515 '            //~ this.failureType = Ext.form.Action.CLIENT_INVALID;\n'
20130515 '            //~ this.form.afterAction(this, false);\n'
20130515 '        //~ }\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '//~ });\n'
20130515 '//~ //add our action to the registry of known actions\n'
20130515 "//~ Ext.form.Action.ACTION_TYPES['oosubmit'] = Ext.ux.OOSubmitAction;\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/**\n'
20130515 'JC Watsons solution (adapted to ExtJS 3.3.1 by LS) is elegant and simple:\n'
20130515 '`A "fix" for unchecked checkbox submission  behaviour\n'
20130515 '<http://www.sencha.com/forum/showthread.php?28449>`_\n'
20130515 '\n'
20130515 'Added special handling for checkbox inputs. \n'
20130515 'ExtJS defines disabled checkboxes `readonly`, not `disabled` as for other inputs.\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Ext.lib.Ajax.serializeForm = function(form) {\n'
20130515 "    //~ console.log('20120203 linolib.js serializeForm',form);\n"
20130515 '    var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements, \n'
20130515 '        hasSubmit = false, \n'
20130515 '        encoder = encodeURIComponent, \n'
20130515 '        name, \n'
20130515 "        data = '', \n"
20130515 '        type, \n'
20130515 '        hasValue;\n'
20130515 '\n'
20130515 '    Ext.each(fElements, function(element){\n'
20130515 '        name = element.name;\n'
20130515 '        type = element.type;\n'
20130515 '\n'
20130515 "        if (!element.disabled && name && !(type == 'checkbox' && element.readonly)) {\n"
20130515 '            if (/select-(one|multiple)/i.test(type)) {\n'
20130515 '                Ext.each(element.options, function(opt){\n'
20130515 '                    if (opt.selected) {\n'
20130515 "                        hasValue = opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified;\n"
20130515 '                        data += String.format("{0}={1}&", encoder(name), encoder(hasValue ? opt.value : opt.text));\n'
20130515 '                    }\n'
20130515 '                });\n'
20130515 '            } else if (!(/file|undefined|reset|button/i.test(type))) {\n'
20130515 "                //~ if (!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)) {\n"
20130515 "                if (!(type == 'submit' && hasSubmit)) {\n"
20130515 "                    if (type == 'checkbox') {\n"
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&');\n"
20130515 "                        data += encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&';\n"
20130515 '                    } else {\n'
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + encoder(element.value) + '&');\n"
20130515 "                        data += encoder(name) + '=' + encoder(element.value) + '&';\n"
20130515 '                    }\n'
20130515 '                    hasSubmit = /submit/i.test(type);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        //~ } else {\n'
20130515 '            //~ console.log(name,type,element.readonly);\n'
20130515 '        }\n'
20130515 '    });\n'
20130515 '    return data.substr(0, data.length - 1);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Set a long timeout of fifteen minutes. \n'
20130515 'See /blog/2012/0307\n'
20130515 '*/\n'
20130515 'Ext.Ajax.timeout = 15 * 60 * 1000; \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'My fix for the "Cannot set QuickTips dismissDelay to 0" bug,\n'
20130515 'see http://www.sencha.com/forum/showthread.php?183515 \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.QuickTip,{\n'
20130515 '  showAt : function(xy){\n'
20130515 '        var t = this.activeTarget;\n'
20130515 '        //~ console.log("20120224 QuickTip.showAt",this.title,this.dismissDelay,t.dismissDelay);\n'
20130515 '        if(t){\n'
20130515 '            if(!this.rendered){\n'
20130515 '                this.render(Ext.getBody());\n'
20130515 '                this.activeTarget = t;\n'
20130515 '            }\n'
20130515 '            if(t.width){\n'
20130515 '                this.setWidth(t.width);\n'
20130515 '                this.body.setWidth(this.adjustBodyWidth(t.width - this.getFrameWidth()));\n'
20130515 '                this.measureWidth = false;\n'
20130515 '            } else{\n'
20130515 '                this.measureWidth = true;\n'
20130515 '            }\n'
20130515 "            this.setTitle(t.title || '');\n"
20130515 '            this.body.update(t.text);\n'
20130515 '            this.autoHide = t.autoHide;\n'
20130515 '            // bugfix by Luc 20120226\n'
20130515 '            if (t.dismissDelay != undefined) this.dismissDelay = t.dismissDelay;\n'
20130515 '            //~ this.dismissDelay = t.dismissDelay || this.dismissDelay;\n'
20130515 '            if(this.lastCls){\n'
20130515 '                this.el.removeClass(this.lastCls);\n'
20130515 '                delete this.lastCls;\n'
20130515 '            }\n'
20130515 '            if(t.cls){\n'
20130515 '                this.el.addClass(t.cls);\n'
20130515 '                this.lastCls = t.cls;\n'
20130515 '            }\n'
20130515 '            if(this.anchor){\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else if(t.align){ \n'
20130515 '                xy = this.el.getAlignToXY(t.el, t.align);\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else{\n'
20130515 '                this.constrainPosition = true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.QuickTip.superclass.showAt.call(this, xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Another hack. See /docs/blog/2012/0228\n'
20130515 '*/\n'
20130515 'Ext.Element.addMethods(\n'
20130515 '    function() {\n'
20130515 '        var VISIBILITY      = "visibility",\n'
20130515 '            DISPLAY         = "display",\n'
20130515 '            HIDDEN          = "hidden",\n'
20130515 '            NONE            = "none",\n'
20130515 '            XMASKED         = "x-masked",\n'
20130515 '            XMASKEDRELATIVE = "x-masked-relative",\n'
20130515 '            data            = Ext.Element.data;\n'
20130515 '\n'
20130515 '        return {\n'
20130515 '            \n'
20130515 '            mask : function(msg, msgCls) {\n'
20130515 '                var me  = this,\n'
20130515 '                    dom = me.dom,\n'
20130515 '                    dh  = Ext.DomHelper,\n'
20130515 '                    EXTELMASKMSG = "ext-el-mask-msg",\n'
20130515 '                    el,\n'
20130515 '                    mask;\n'
20130515 '                // removed the following lines. See /docs/blog/2012/0228\n'
20130515 "                //~ if (!(/^body/i.test(dom.tagName) && me.getStyle('position') == 'static')) {\n"
20130515 '                    //~ console.log(20120228,dom.tagName,me);\n'
20130515 '                    //~ me.addClass(XMASKEDRELATIVE); \n'
20130515 '                //~ }\n'
20130515 "                if (el = data(dom, 'maskMsg')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 "                if (el = data(dom, 'mask')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 '\n'
20130515 '                mask = dh.append(dom, {cls : "ext-el-mask"}, true);\n'
20130515 "                data(dom, 'mask', mask);\n"
20130515 '\n'
20130515 '                me.addClass(XMASKED);\n'
20130515 '                mask.setDisplayed(true);\n'
20130515 '                \n'
20130515 "                if (typeof msg == 'string') {\n"
20130515 "                    var mm = dh.append(dom, {cls : EXTELMASKMSG, cn:{tag:'div'}}, true);\n"
20130515 "                    data(dom, 'maskMsg', mm);\n"
20130515 '                    mm.dom.className = msgCls ? EXTELMASKMSG + " " + msgCls : EXTELMASKMSG;\n'
20130515 '                    mm.dom.firstChild.innerHTML = msg;\n'
20130515 '                    mm.setDisplayed(true);\n'
20130515 '                    mm.center(me);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                \n'
20130515 "                if (Ext.isIE && !(Ext.isIE7 && Ext.isStrict) && me.getStyle('height') == 'auto') {\n"
20130515 '                    mask.setSize(undefined, me.getHeight());\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                return mask;\n'
20130515 '            }\n'
20130515 '\n'
20130515 '            \n'
20130515 '        };\n'
20130515 '    }()\n'
20130515 ');\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 "Ext.namespace('Lino');\n"
20130515 '    \n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.subst_user_field = new Ext.form.ComboBox({});\n'
20130515 '//~ Lino.subst_user = null;\n'
20130515 'Lino.insert_subst_user = function(p){\n'
20130515 "    //~ console.log('20120714 insert_subst_user',Lino.subst_user,p);\n"
20130515 '    //~ if (Lino.subst_user_field.getValue()) {\n'
20130515 '    if (p.su) return;\n'
20130515 '    if (Lino.subst_user) {\n'
20130515 '        //~ p.su = Lino.subst_user_field.getValue();\n'
20130515 '        p.su = Lino.subst_user;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ delete p.su;\n'
20130515 '    }\n'
20130515 "    //~ console.log('20120714 insert_subst_user -->',Lino.subst_user,p);\n"
20130515 '}\n'
20130515 '\n'
20130515 'Lino.login_window = null;\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_login_window = function() {\n'
20130515 "  //~ console.log('20121103 show_login_window',arguments);\n"
20130515 '  //~ var current_window = Lino.current_window;\n'
20130515 '  if (Lino.login_window == null) {\n'
20130515 '    \n'
20130515 '      function do_login() { \n'
20130515 '            Lino.viewport.loadMask.show()\n'
20130515 '            //~ Lino.body_loadMask.show()\n'
20130515 '            login_panel.getForm().submit({ \n'
20130515 "                method:'POST', \n"
20130515 "                waitTitle:'Connecting', \n"
20130515 "                waitMsg:'Sending data...',\n"
20130515 '                success:function(){ \n'
20130515 "                  //~ console.log('20121104 logged in',arguments);\n"
20130515 '                  Lino.login_window.hide();\n'
20130515 '                  Lino.close_all_windows();\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                },\n'
20130515 '                failure: function(form,action) { \n'
20130515 '                  //~ this.loadMask.hide();\n'
20130515 '                  Lino.on_submit_failure(form,action);\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                  //~ if (Lino.current_window) Lino.current_window.main_item.loadMask.hide()\n'
20130515 '                }\n'
20130515 '                //~ failure:function(form, action){ \n'
20130515 '                    //~ alert_msg\n'
20130515 "                    //~ if(action.failureType == 'server'){ \n"
20130515 '                        //~ obj = Ext.util.JSON.decode(action.response.responseText); \n'
20130515 "                        //~ Ext.Msg.alert('Login Failed!', obj.errors.reason); \n"
20130515 '                    //~ }else{ \n'
20130515 "                        //~ Ext.Msg.alert('Warning!', 'Authentication server is unreachable : ' + action.response.responseText); \n"
20130515 '                    //~ } \n'
20130515 '                    //~ Lino.login_panel.getForm().reset(); \n'
20130515 '                //~ } \n'
20130515 '            }); \n'
20130515 '      };\n'
20130515 '    \n'
20130515 '      var login_button = new Ext.Button({ \n'
20130515 '        text:"Log in",\n'
20130515 '        formBind: true,\t \n'
20130515 '        // Function that fires when user clicks the button \n'
20130515 '        handler: do_login});\n'
20130515 '    \n'
20130515 '      var login_panel = new Ext.FormPanel({ \n'
20130515 '        //~ inspired by http://www.sencha.com/learn/a-basic-login/\n'
20130515 '        autoHeight:true,\n'
20130515 '        labelWidth:90,\n'
20130515 "        url:'/auth', \n"
20130515 '        frame:true, \n'
20130515 "        defaultType:'textfield',\n"
20130515 '        monitorValid:true,\n'
20130515 '        items:[{ \n'
20130515 '            fieldLabel:"Username", \n'
20130515 "            id: 'username',\n"
20130515 "            name:'username', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        },{ \n'
20130515 '            fieldLabel:"Password", \n'
20130515 "            name:'password', \n"
20130515 "            inputType:'password', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        }],        \n'
20130515 '        buttons:[ login_button ]});\n'
20130515 '        \n'
20130515 '      Lino.login_window = new Ext.Window({\n'
20130515 "          layout:'fit',\n"
20130515 "          defaultButton: 'username',\n"
20130515 '          width:300,\n'
20130515 '          title:"Log in", \n'
20130515 '          autoHeight:true,\n'
20130515 '          modal: true,\n'
20130515 '          closeAction: "hide",\n'
20130515 '          keys: {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            fn: function() { do_login()}\n'
20130515 '          },\n'
20130515 '          //~ defaultButton: login_button,\n'
20130515 "          //~ height:'auto',\n"
20130515 '          //~ closable: false,\n'
20130515 '          //~ resizable: false,\n'
20130515 '          //~ plain: true,\n'
20130515 '          //~ border: false,\n'
20130515 '          items: [login_panel] });\n'
20130515 '  };\n'
20130515 '  Lino.login_window.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.logout = function(id,name) {\n'
20130515 "    //~ console.log('20121104 gonna log out',arguments);\n"
20130515 '    //~ Lino.do_action\n'
20130515 "    Lino.call_ajax_action(Lino.viewport,'GET','/auth',{},'logout',undefined,undefined,function(){\n"
20130515 "        //~ console.log('20121104 logged out',arguments);\n"
20130515 '        //~ Lino.login_window.hide();\n'
20130515 '        Lino.close_all_windows();\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.set_subst_user = function(id,name) {\n'
20130515 "    //~ console.log(20120714,'Lino.set_subst_user',id,name);\n"
20130515 '    Lino.subst_user = id;\n'
20130515 '\n'
20130515 '    if(id) {\n'
20130515 '        Lino.eventStore.setBaseParam("su",id);\n'
20130515 '    } else {\n'
20130515 "      delete Lino.eventStore.baseParams['su'];\n"
20130515 '    }\n'
20130515 '\n'
20130515 '    if (Lino.current_window) \n'
20130515 '        Lino.current_window.main_item.set_base_param("su",id);\n'
20130515 '    if (Lino.viewport) Lino.permalink_handler(Lino.current_window)();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.select_subst_user = function(cmp,rec,value){\n'
20130515 '    //~ Lino.subst_user=value;\n'
20130515 '    //~ console.log(20120713,rec);\n'
20130515 '//~ }\n'
20130515 '    \n'
20130515 'Lino.current_window = null;\n'
20130515 'Lino.window_history = Array();\n'
20130515 '    \n'
20130515 'Lino.chars2width = function(cols) {  return cols * 9; }\n'
20130515 'Lino.rows2height = function(cols) {  return cols * 20; }\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Viewport = Ext.extend(Ext.Viewport,{\n'
20130515 '  layout:"fit"\n'
20130515 '  ,initComponent : function(){\n'
20130515 '    Lino.Viewport.superclass.initComponent.call(this);\n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.el,{msg:"Please wait..."});\n'
20130515 '      //~ console.log("20121118 Lino.viewport.loadMask",this.loadMask);\n'
20130515 '    },this);\n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,refresh : function() {\n'
20130515 '      var caller = this;\n'
20130515 '      console.log("20121120 Lino.Viewport.refresh()");\n'
20130515 '      if (caller.loadMask) caller.loadMask.show();\n'
20130515 '      var success = function(response) {\n'
20130515 '        if (caller.loadMask) caller.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '          if (result.html) {\n'
20130515 "              Ext.getCmp('main_area').update(result.html);\n"
20130515 '          }\n'
20130515 '          if (result.message) {\n'
20130515 '              if (result.alert) {\n'
20130515 "                  //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "                  Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '              } else {\n'
20130515 '                  Lino.notify(result.message);\n'
20130515 '              }\n'
20130515 '          }\n'
20130515 '          \n'
20130515 '          if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '          if (result.js_code) { \n'
20130515 '            var jsr = result.js_code(caller);\n'
20130515 "            //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '          };\n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      var action = {\n'
20130515 "        url : '/api/main_html',\n"
20130515 '        waitMsg: "Please wait...",\n'
20130515 '        failure: Lino.ajax_error_handler(caller),\n'
20130515 '        success: success,\n'
20130515 "        method: 'GET',\n"
20130515 '        params: {}\n'
20130515 '      };\n'
20130515 '      Lino.insert_subst_user(action.params);\n'
20130515 '      Ext.Ajax.request(action);\n'
20130515 '    \n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.open_window = function(win,st,requesting_panel) {\n'
20130515 '  //~ console.log("20120918 Lino.open_window()",win,st);\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  if (cw) {\n'
20130515 '    //~ console.log("20120918 Lino.open_window() save current status",cw.main_item.get_status());\n'
20130515 '    Lino.window_history.push({\n'
20130515 '      window:cw,\n'
20130515 '      status:cw.main_item.get_status()\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '  Lino.current_window = win;\n'
20130515 '  //~ if (st.su) \n'
20130515 '      //~ Lino.subst_user_field.setValue(st.su);\n'
20130515 '  win.main_item.set_status(st,requesting_panel);\n'
20130515 '  win.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.load_url = function(url) {\n'
20130515 '    //~ foo.bar.baz = 2; \n'
20130515 '    //~ console.log("20121120 Lino.load_url()");\n'
20130515 '    //~ Lino.body_loadMask.show();\n'
20130515 '    Lino.viewport.loadMask.show();\n'
20130515 '    //~ location.replace(url);\n'
20130515 '    document.location = url;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.close_window = function(status_update) {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  var ww = Lino.window_history.pop();\n'
20130515 '  if (ww) {\n'
20130515 '    //~ if (status_update) Ext.apply(ww.status,status_update);\n'
20130515 '    if (status_update) status_update(ww);\n'
20130515 '    ww.window.main_item.set_status(ww.status);\n'
20130515 '    Lino.current_window = ww.window;\n'
20130515 '  } else {\n'
20130515 '    Lino.current_window = null;\n'
20130515 '  }\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.close_all_windows = function() {\n'
20130515 '  if (Lino.window_history.length == 0) {\n'
20130515 '      //~ Lino.viewport.refresh();\n'
20130515 '      var url =  "/"\n'
20130515 '      //~ console.log("20121120 Lino.close_all_windows() : no window_history");\n'
20130515 '      //~ if (ADMIN_URL) \n'
20130515 '      var p = {};\n'
20130515 '      Lino.insert_subst_user(p)\n'
20130515 '      if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '      Lino.load_url(url);\n'
20130515 '  } else {\n'
20130515 '    //~ console.log("20121120 Lino.close_all_windows() with window_history");\n'
20130515 '    while (Lino.window_history.length > 0) {\n'
20130515 '      Lino.close_window();\n'
20130515 '      //~ Lino.window_history.pop().hide_really();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '  //~ Lino.current_window = null;\n'
20130515 '  //~ Lino.close_window();\n'
20130515 '  //~ var ww = \n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.kill_current_window = function() {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  Lino.current_window = null;\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.calling_window = function() {\n'
20130515 '    if (Lino.window_history.length) return Lino.window_history[Lino.window_history.length-1];\n'
20130515 '}\n'
20130515 '\n'
20130515 '//~ Lino.WindowAction = function(mainItemClass,windowConfig,mainConfig,ppf) {\n'
20130515 'Lino.WindowAction = function(windowConfig,main_item_fn) {\n'
20130515 '    //~ if(!mainConfig) mainConfig = {};\n'
20130515 '    //~ mainConfig.is_main_window = true;\n'
20130515 '    this.windowConfig = windowConfig;\n'
20130515 '    this.main_item_fn = main_item_fn;\n'
20130515 '    //~ if (ppf) mainConfig.params_panel.fields = ppf;\n'
20130515 '    //~ this.mainConfig = mainConfig;\n'
20130515 '    //~ this.mainItemClass = mainItemClass;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.WindowAction = Ext.extend(Lino.WindowAction,{\n'
20130515 '    window : null,\n'
20130515 '    //~ mainItemClass: null,\n'
20130515 '    get_window : function() {\n'
20130515 '      //~ if(mainConfig) Ext.apply(this.mainConfig,mainConfig);\n'
20130515 '      if (this.window == null)  {\n'
20130515 '          //~ this.windowConfig.main_item = new this.mainItemClass(this.mainConfig);\n'
20130515 '          this.windowConfig.main_item = this.main_item_fn();\n'
20130515 '          this.window = new Lino.Window(this.windowConfig);\n'
20130515 '      }\n'
20130515 '      return this.window;\n'
20130515 '    },\n'
20130515 '    run : function(requesting_panel,status) {\n'
20130515 "      //~ console.log('20120625 window_action.run()',this)\n"
20130515 '      Lino.open_window(this.get_window(),status,requesting_panel);\n'
20130515 '    }\n'
20130515 '  \n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.PanelMixin = {\n'
20130515 '  get_containing_window : function (){\n'
20130515 '      if (this.containing_window) return this.containing_window;\n'
20130515 '      return this.containing_panel.get_containing_window();\n'
20130515 '  }\n'
20130515 '  ,set_window_title : function(title) {\n'
20130515 '    //~ this.setTitle(title);\n'
20130515 '    var cw = this.get_containing_window();\n'
20130515 '\n'
20130515 '    //~ if (cw) {\n'
20130515 '    //~ if (cw && cw.closable) {\n'
20130515 '    if (cw && !cw.main_item.hide_window_title) {\n'
20130515 "      //~ console.log('20111202 set_window_title(',title,') for',this.containing_window);\n"
20130515 '      //~ if (! this.containing_window.rendered) console.log("WARNING: not rendered!");\n'
20130515 '      cw.setTitle(title);\n'
20130515 '    //~ } else {\n'
20130515 '      //~ document.title = title;\n'
20130515 '    }\n'
20130515 "    //~ else console.log('20111202 not set_window_title(',title,') for',this);\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 "Lino.status_bar = new Ext.ux.StatusBar({defaultText:'Lino version 1.6.7.'});\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.edit_tinymce_text = function(panel,options) {\n'
20130515 '  // `panel` is the RichTextPanel\n'
20130515 '  //~ console.log(20111220,panel);\n'
20130515 '  //~ var rec = panel.get_current_record();\n'
20130515 '  var rec = panel.containing_panel.get_current_record();\n'
20130515 "  var value = rec ? rec.data[panel.editor.name] : '';\n"
20130515 '  var saving = false;\n'
20130515 '  var todo_after_save = false;\n'
20130515 '  var discard_changes = false;\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  function save() {\n'
20130515 "    //~ if (todo_after_save) {alert('tried to save again'); return; }\n"
20130515 "    if (saving) {alert('tried to save again'); return; }\n"
20130515 '    //~ var url = panel.containing_window.main_item.get_record_url(rec.id);\n'
20130515 '    var url = panel.containing_panel.get_record_url(rec.id);\n'
20130515 '    var params = Ext.apply({},panel.containing_panel.get_base_params());\n'
20130515 '    params[panel.editor.name] = editor.getValue();\n'
20130515 '    //~ params.su = Lino.subst_user;\n'
20130515 '    //~ Lino.insert_subst_user(params);\n'
20130515 '    var a = { \n'
20130515 '      params: params, \n'
20130515 "      method: 'PUT',\n"
20130515 '      url: url,\n'
20130515 '      failure: function() {\n'
20130515 '          //~ if (editor.ed.getContainer()) \n'
20130515 '          editor.ed.setProgressState(0);\n'
20130515 '          todo_after_save = false;\n'
20130515 '          saving = false;\n'
20130515 "          console.log('tinymce.save() failed. sorry.',arguments);\n"
20130515 '        },\n'
20130515 '      success: function() {\n'
20130515 '        saving = false;\n'
20130515 '        //~ if (editor.ed.getContainer()) \n'
20130515 '        editor.ed.setProgressState(0);\n'
20130515 '        rec.data[panel.editor.name] = editor.getValue();\n'
20130515 '        if(todo_after_save) {\n'
20130515 '            var fn = todo_after_save;\n'
20130515 '            todo_after_save = false;\n'
20130515 '            fn();\n'
20130515 '        }\n'
20130515 '        //~ panel.containing_window.set_current_record(rec);\n'
20130515 '        panel.refresh();\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    //~ if (editor.ed.getContainer()) \n'
20130515 '    editor.ed.setProgressState(1); // Show progress\n'
20130515 '    saving = true;\n'
20130515 '    //~ console.log(a);\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '  };\n'
20130515 '  function save_callback() {\n'
20130515 '      save();\n'
20130515 '      //~ save(function(){editor.ed.setDirty(false);})\n'
20130515 '      /* return true have the save button disabled.  \n'
20130515 "      That's not perfect because the PUT is asynchronous \n"
20130515 '      and the response is not yet known.\n'
20130515 '      */\n'
20130515 '      return true;\n'
20130515 '  }\n'
20130515 '  //~ var actions = [\n'
20130515 '    //~ {text:"Save",handler:save}\n'
20130515 '  //~ ]; \n'
20130515 '  //~ console.log(20110610,panel.editor.disabled);\n'
20130515 '  var settings = {};\n'
20130515 '  Ext.apply(settings,{\n'
20130515 '        readonly: panel.editor.disabled,\n'
20130515 '        //~ language: "de",\n'
20130515 '        plugins : "save,emotions,spellchecker,advhr,insertdatetime,preview,table,searchreplace,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "save,cancel,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect,|,search,replace",\n'
20130515 '        theme_advanced_buttons2 : "cut,copy,paste,template,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,|,code,preview,|,forecolor,backcolor",\n'
20130515 '        theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions,|,tablecontrols",      \n'
20130515 '        theme_advanced_resizing : false,\n'
20130515 '        convert_urls : false,\n'
20130515 '        save_onsavecallback : save_callback,\n'
20130515 '        save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '  });\n'
20130515 '  Ext.apply(settings,options);\n'
20130515 '  var editor = new Ext.ux.TinyMCE({\n'
20130515 '      value : value,\n'
20130515 '      tinymceSettings: settings\n'
20130515 '    });\n'
20130515 '  var win = new Ext.Window({\n'
20130515 '    title: rec.title, \n'
20130515 '    //~ bbar: actions,\n'
20130515 "    layout: 'fit',\n"
20130515 '    items: editor,\n'
20130515 '    width: 600, \n'
20130515 '    height:500,\n'
20130515 '    minWidth: 100,\n'
20130515 '\t\tminHeight: 100,\n'
20130515 '    modal: true,\n'
20130515 '    resizable: true,\n'
20130515 '    maximizable: true,\n'
20130515 '    //~ maximized: true,\n'
20130515 '    //~ closeAction: "close"\n'
20130515 '    closeAction: "hide"\n'
20130515 '    //~ hideMode: "offsets",\n'
20130515 '    //~ constrainHeader: true,\n'
20130515 "    //~ bodyStyle: 'padding: 10px'\n"
20130515 '  });\n'
20130515 '\n'
20130515 "  //~ win.on('beforeclose',function() {\n"
20130515 "  win.on('beforehide',function() {\n"
20130515 '    if (todo_after_save) return false;\n'
20130515 '    if (discard_changes) return true;\n'
20130515 '    if (editor.isDirty()) {\n'
20130515 '        //~ var ok = false;\n'
20130515 '        //~ var allowClose = true;\n'
20130515 '        var config = {title:"Confirmation"};\n'
20130515 '        config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        config.msg = "Save changes to text ?";\n'
20130515 '        config.modal = true;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 "          //~ console.log('do_when_clean',buttonId)\n"
20130515 '          if (buttonId == "yes") {\n'
20130515 "              /* we cancel this close, but save()'s onSuccess will call again.*/\n"
20130515 '              //~ allowClose = false;\n'
20130515 '              todo_after_save = function(){win.hide();}\n'
20130515 "              editor.ed.execCommand('mceSave');\n"
20130515 '              //~ editor.ed.save(function(){win.close();});\n'
20130515 '          } else if (buttonId == "no") { \n'
20130515 '              discard_changes = true;\n'
20130515 '              win.hide()\n'
20130515 '          //~ } else if (buttonId == "cancel") { \n'
20130515 '            //~ ok = true;\n'
20130515 '              //~ allowClose = false;\n'
20130515 '          //~ } else { \n'
20130515 "            //~ console.log('unknwon buttonId:',buttonId);\n"
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return false;\n'
20130515 '        //~ return allowClose;\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '  win.show();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/* \n'
20130515 '  Originally copied from Ext JS Library 3.3.1\n'
20130515 '  Modifications by Luc Saffre : \n'
20130515 '  - rendering of phantom records\n'
20130515 '  - fire afteredit event\n'
20130515 '  - react on dblclcik, not on single click\n'
20130515 '\n'
20130515 ' */\n'
20130515 'Lino.CheckColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 '\n'
20130515 '    processEvent : function(name, e, grid, rowIndex, colIndex){\n'
20130515 "        //~ console.log('20110713 Lino.CheckColumn.processEvent',name)\n"
20130515 "        if (name == 'click') {\n"
20130515 "        //~ if (name == 'mousedown') {\n"
20130515 "        //~ if (name == 'dblclick') {\n"
20130515 '            return this.toggleValue(grid, rowIndex, colIndex);\n'
20130515 '        } else {\n'
20130515 '            return Ext.grid.ActionColumn.superclass.processEvent.apply(this, arguments);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    toggleValue : function (grid,rowIndex,colIndex) {\n'
20130515 '        var record = grid.store.getAt(rowIndex);\n'
20130515 '        var dataIndex = grid.colModel.getDataIndex(colIndex);\n'
20130515 '        // 20120514\n'
20130515 '        //~ if(record.data.disabled_fields && record.data.disabled_fields[dataIndex]) {\n'
20130515 '          //~ Lino.notify("This field is disabled");\n'
20130515 '          //~ return false;\n'
20130515 '        //~ }\n'
20130515 '      \n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("This field is disabled.");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        var startValue = record.data[dataIndex];\n'
20130515 '        var value = !startValue;\n'
20130515 '        //~ record.set(this.dataIndex, value);\n'
20130515 '        var e = {\n'
20130515 '            grid: grid,\n'
20130515 '            record: record,\n'
20130515 '            field: dataIndex,\n'
20130515 '            originalValue: startValue,\n'
20130515 '            value: value,\n'
20130515 '            row: rowIndex,\n'
20130515 '            column: colIndex,\n'
20130515 '            cancel: false\n'
20130515 '        };\n'
20130515 '        if(grid.fireEvent("beforeedit", e) !== false && !e.cancel){\n'
20130515 '        //~ if(grid.fireEvent("validateedit", e) !== false && !e.cancel){\n'
20130515 '            record.set(dataIndex, value);\n'
20130515 '            delete e.cancel;\n'
20130515 '            grid.fireEvent("afteredit", e);\n'
20130515 '        }\n'
20130515 '        return false; // Cancel event propagation\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    renderer : function(v, p, record){\n'
20130515 "        if (record.phantom) return '';\n"
20130515 "        p.css += ' x-grid3-check-col-td'; \n"
20130515 '        return String.format(\'<div class="x-grid3-check-col{0}">&#160;</div>\', v ? \'-on\' : \'\');\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // Deprecate use as a plugin. Remove in 4.0\n'
20130515 '    // init: Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 '// register ptype. Deprecate. Remove in 4.0\n'
20130515 "// Ext.preg('checkcolumn', Lino.CheckColumn);\n"
20130515 '\n'
20130515 '// backwards compat. Remove in 4.0\n'
20130515 '// Ext.grid.CheckColumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '// register Column xtype\n'
20130515 'Ext.grid.Column.types.checkcolumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '\n'
20130515 '/* 20110725 : \n'
20130515 'Lino.on_tab_activate is necessary \n'
20130515 'in contacts.Person.2.dtl \n'
20130515 "(but don't ask me why...)\n"
20130515 '*/\n'
20130515 'Lino.on_tab_activate = function(item) {\n'
20130515 "  //~ console.log('activate',item); \n"
20130515 '  if (item.rendered && item.doLayout) item.doLayout();\n'
20130515 '  //~ if (item.rendered) item.doLayout();\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.TimeField = Ext.extend(Ext.form.TimeField,{\n'
20130515 "  format: 'H:i',\n"
20130515 '  increment: 15\n'
20130515 '  });\n'
20130515 'Lino.DateField = Ext.extend(Ext.form.DateField,{\n'
20130515 '  boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  });\n'
20130515 'Lino.DatePickerField = Ext.extend(Ext.DatePicker,{\n'
20130515 '  //~ boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  //~ altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  formatDate : function(date){\n'
20130515 '      console.log("20121203 formatDate",this.name,date);\n'
20130515 '      return Ext.isDate(date) ? date.dateFormat(this.format) : date;\n'
20130515 '  }\n'
20130515 '  });\n'
20130515 'Lino.DateTimeField = Ext.extend(Ext.ux.form.DateTime,{\n'
20130515 "  dateFormat: 'd.m.Y',\n"
20130515 "  timeFormat: 'H:i',\n"
20130515 "  //~ hiddenFormat: 'd.m.Y H:i'\n"
20130515 '  });\n'
20130515 'Lino.URLField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 "  //~ triggerClass : 'x-form-world-trigger',\n"
20130515 "  vtype: 'url',\n"
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    window.open(this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 'Lino.IncompleteDateField = Ext.extend(Ext.form.TextField,{\n'
20130515 '  //~ regex: /^-?\\d+-[01]\\d-[0123]\\d$/,\n'
20130515 '  //~ regex: /^[0123]\\d\\.[01]\\d\\.-?\\d+$/,\n'
20130515 '  maxLength: 10,\n'
20130515 '  boxMinWidth: Lino.chars2width(10),\n'
20130515 '  regex: /^[0123]?\\d\\.[01]?\\d\\.-?\\d+$/,\n'
20130515 "  regexText: 'Enter a date in format YYYY-MM-DD (use zeroes for unknown parts).'\n"
20130515 '  });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.make_dropzone = function(cmp) {\n'
20130515 "    //~ cmp.on('render', function(ct, position){\n"
20130515 '      //~ ct.el.on({\n'
20130515 '        //~ dragenter:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,dragover:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ event.stopEvent();\n'
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,drop:{\n'
20130515 '          //~ scope:this\n'
20130515 '          //~ ,fn:function(event){\n'
20130515 '            //~ event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            //~ var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            //~ if(files === undefined){\n'
20130515 '              //~ return true;\n'
20130515 '            //~ }\n'
20130515 '            //~ var len = files.length;\n'
20130515 '            //~ while(--len >= 0){\n'
20130515 '              //~ console.log(files[len]);\n'
20130515 '              //~ // this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            //~ }\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ });\n'
20130515 '    //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.FileUploadField = Ext.ux.form.FileUploadField;\n'
20130515 '\n'
20130515 'Lino.FileUploadField = Ext.extend(Ext.ux.form.FileUploadField,{\n'
20130515 '    onRender : function(ct, position){\n'
20130515 '      Lino.FileUploadField.superclass.onRender.call(this, ct, position);\n'
20130515 '      this.el.on({\n'
20130515 '        dragenter:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,dragover:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          event.stopEvent();\n'
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,drop:{\n'
20130515 '          scope:this\n'
20130515 '          ,fn:function(event){\n'
20130515 '            event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            if(files === undefined){\n'
20130515 '              return true;\n'
20130515 '            }\n'
20130515 '            var len = files.length;\n'
20130515 '            while(--len >= 0){\n'
20130515 '              console.log(files[len]);\n'
20130515 '              //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.FileField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 '  editable: false,\n'
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    if (this.getValue()) window.open(MEDIA_URL + '/'+this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.file_field_handler = function(panel,config) {\n'
20130515 '  //~ if (instanceof Lino.DetailWrapper) {\n'
20130515 "  if (panel.action_name == 'insert') {\n"
20130515 '  //~ if (panel.get_current_record().phantom) {\n'
20130515 '      panel.has_file_upload = true;\n'
20130515 '\n'
20130515 '      var f = new Lino.FileUploadField(config);\n'
20130515 '      //~ Lino.make_dropzone(f);\n'
20130515 '      return f;\n'
20130515 '      //~ return new Ext.ux.form.FileUploadField(config);\n'
20130515 '      //~ return new Lino.FileField(config);\n'
20130515 '      \n'
20130515 '  } else {\n'
20130515 '      //~ return new Lino.URLField(config);\n'
20130515 '      return new Lino.FileField(config);\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.VBorderPanel = Ext.extend(Ext.Panel,{\n'
20130515 '    constructor : function(config) {\n'
20130515 "      config.layout = 'border';\n"
20130515 '      delete config.layoutConfig;\n'
20130515 '      Lino.VBorderPanel.superclass.constructor.call(this,config);\n'
20130515 '      for(var i=0; i < this.items.length;i++) {\n'
20130515 '        var item = this.items.get(i);\n'
20130515 '        if (this.isVertical(item) && item.collapsible) {\n'
20130515 "          item.on('collapse',this.onBodyResize,this);\n"
20130515 "          item.on('expand',this.onBodyResize,this);\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '    },\n'
20130515 '    isVertical : function(item) {\n'
20130515 "       return (item.region == 'north' || item.region == 'south' || item.region == 'center');\n"
20130515 '    },\n'
20130515 '    onBodyResize: function(w, h){\n'
20130515 "        //~ console.log('VBorderPanel.onBodyResize',this.title)\n"
20130515 '      if (this.isVisible()) { // to avoid "Uncaught TypeError: Cannot call method \'getHeight\' of undefined."\n'
20130515 '        var sumflex = 0;\n'
20130515 '        var availableHeight = this.getInnerHeight();\n'
20130515 '        var me = this;\n'
20130515 '        this.items.each(function(item){\n'
20130515 '          if (me.isVertical(item)) {\n'
20130515 '              if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  if (item.rendered) availableHeight -= item.getHeight();\n'
20130515 '              } else {\n'
20130515 '                  sumflex += item.flex;\n'
20130515 '              }\n'
20130515 '          } \n'
20130515 '          \n'
20130515 '        });\n'
20130515 '        //~ for(var i=0; i < this.items.length;i++) {\n'
20130515 '          //~ var item = this.items.get(i);\n'
20130515 '          //~ // if (this.isVertical(item) && item.getResizeEl()) {\n'
20130515 '          //~ if (this.isVertical(item)) {\n'
20130515 '              //~ if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  //~ // item.syncSize()\n'
20130515 '                  //~ // item.doLayout()\n'
20130515 '                  //~ // if (item.region == "north") console.log(\'region north\',item.getHeight(),item.id, item);\n'
20130515 "                  //~ // if (item.getHeight() == 0) console.log(20100921,'both flex and getHeight() are 0!');\n"
20130515 '                  //~ availableHeight -= item.getHeight();\n'
20130515 '              //~ } else {\n'
20130515 '                  //~ sumflex += item.flex;\n'
20130515 '                  //~ // console.log(item.flex);\n'
20130515 '              //~ }\n'
20130515 '          //~ } \n'
20130515 "          //~ // else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        //~ }\n'
20130515 '        var hunit = availableHeight / sumflex;\n'
20130515 "        //~ console.log('sumflex=',sumflex,'hunit=',hunit, 'availableHeight=',availableHeight);\n"
20130515 '        for(var i=0; i < this.items.length;i++) {\n'
20130515 '          var item = this.items.get(i);\n'
20130515 '          if (this.isVertical(item)) {\n'
20130515 '              if (item.flex != 0 && ! item.collapsed) {\n'
20130515 '                  item.setHeight(hunit * item.flex);\n'
20130515 "                  //~ console.log(item.region,' : height set to',item.getHeight());\n"
20130515 '              }\n'
20130515 '          }\n'
20130515 "          //~ else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '      Lino.VBorderPanel.superclass.onBodyResize.call(this, w, h);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 '  modifications to the standard behaviour of a CellSelectionModel:\n'
20130515 '  \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.grid.CellSelectionModel, {\n'
20130515 '//~ var dummy = {\n'
20130515 '\n'
20130515 '    handleKeyDown : function(e){\n'
20130515 "        /* removed because F2 wouldn't pass\n"
20130515 '        if(!e.isNavKeyPress()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        */\n'
20130515 "        //~ console.log('handleKeyDown',e)\n"
20130515 '        var k = e.getKey(),\n'
20130515 '            g = this.grid,\n'
20130515 '            s = this.selection,\n'
20130515 '            sm = this,\n'
20130515 '            walk = function(row, col, step){\n'
20130515 '                return g.walkCells(\n'
20130515 '                    row,\n'
20130515 '                    col,\n'
20130515 '                    step,\n'
20130515 '                    g.isEditor && g.editing ? sm.acceptsNav : sm.isSelectable, \n'
20130515 '                    sm\n'
20130515 '                );\n'
20130515 '            },\n'
20130515 '            cell, newCell, r, c, ae;\n'
20130515 '\n'
20130515 '        switch(k){\n'
20130515 '            case e.ESC:\n'
20130515 '            case e.PAGE_UP:\n'
20130515 '            case e.PAGE_DOWN:\n'
20130515 '                break;\n'
20130515 '            default:\n'
20130515 "                // e.stopEvent(); // removed because Browser keys like Alt-Home, Ctrl-R wouldn't work\n"
20130515 '                break;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        if(!s){\n'
20130515 '            cell = walk(0, 0, 1); \n'
20130515 '            if(cell){\n'
20130515 '                this.select(cell[0], cell[1]);\n'
20130515 '            }\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        cell = s.cell;  \n'
20130515 '        r = cell[0];    \n'
20130515 '        c = cell[1];    \n'
20130515 '        \n'
20130515 '        switch(k){\n'
20130515 '            case e.TAB:\n'
20130515 '                if(e.shiftKey){\n'
20130515 '                    newCell = walk(r, c - 1, -1);\n'
20130515 '                }else{\n'
20130515 '                    newCell = walk(r, c + 1, 1);\n'
20130515 '                }\n'
20130515 '                break;\n'
20130515 '            case e.HOME:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  if (!e.hasModifier()){\n'
20130515 '                      newCell = [r, 0];\n'
20130515 "                      //~ console.log('home',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '                      if (activePage > 1) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          t.moveFirst();\n'
20130515 '                          return;\n'
20130515 '                      }\n'
20130515 '                      newCell = [0, c];\n'
20130515 '                      break;\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.END:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  c = g.colModel.getColumnCount()-1;\n'
20130515 '                  if (!e.hasModifier()) {\n'
20130515 '                      newCell = [r, c];\n'
20130515 "                      //~ console.log('end',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var d = t.getPageData();\n'
20130515 '                      if (d.activePage < d.pages) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          var self = this;\n'
20130515 "                          t.on('change',function(tb,pageData) {\n"
20130515 '                              var r = g.store.getCount()-2;\n'
20130515 '                              self.select(r, c);\n'
20130515 "                              //~ console.log('change',r,c);\n"
20130515 '                          },this,{single:true});\n'
20130515 '                          t.moveLast();\n'
20130515 '                          return;\n'
20130515 '                      } else {\n'
20130515 '                          newCell = [g.store.getCount()-1, c];\n'
20130515 "                          //~ console.log('ctrl-end',newCell);\n"
20130515 '                          break;\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.DOWN:\n'
20130515 '                newCell = walk(r + 1, c, 1);\n'
20130515 '                break;\n'
20130515 '            case e.UP:\n'
20130515 '                newCell = walk(r - 1, c, -1);\n'
20130515 '                break;\n'
20130515 '            case e.RIGHT:\n'
20130515 '                newCell = walk(r, c + 1, 1);\n'
20130515 '                break;\n'
20130515 '            case e.LEFT:\n'
20130515 '                newCell = walk(r, c - 1, -1);\n'
20130515 '                break;\n'
20130515 '            case e.F2:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.isEditor && !g.editing) {\n'
20130515 '                        g.startEditing(r, c);\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.INSERT:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.ls_insert_handler && !g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.show_insert(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.DELETE:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (!g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.delete_selected(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.ENTER:\n'
20130515 '                e.stopEvent();\n'
20130515 '                g.onCellDblClick(r,c);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '\n'
20130515 '        if(newCell){\n'
20130515 '          e.stopEvent();\n'
20130515 '          r = newCell[0];\n'
20130515 '          c = newCell[1];\n'
20130515 '          this.select(r, c); \n'
20130515 '          if(g.isEditor && g.editing){ \n'
20130515 '            ae = g.activeEditor;\n'
20130515 '            if(ae && ae.field.triggerBlur){\n'
20130515 '                ae.field.triggerBlur();\n'
20130515 '            }\n'
20130515 '            g.startEditing(r, c);\n'
20130515 '          }\n'
20130515 '        //~ } else if (g.isEditor && !g.editing && e.charCode) {\n'
20130515 '        //~ // } else if (!e.isSpecialKey() && g.isEditor && !g.editing) {\n'
20130515 '            //~ g.set_start_value(String.fromCharCode(e.charCode));\n'
20130515 '            //~ // g.set_start_value(String.fromCharCode(k));\n'
20130515 '            //~ // g.set_start_value(e.charCode);\n'
20130515 '            //~ g.startEditing(r, c);\n'
20130515 '            //~ // e.stopEvent();\n'
20130515 '            //~ return;\n'
20130515 '        // } else {\n'
20130515 "          // console.log('20120513',e,g);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ };\n'
20130515 '});\n'
20130515 '\n'
20130515 ' \n'
20130515 '\n'
20130515 'function PseudoConsole() {\n'
20130515 '    this.log = function() {};\n'
20130515 '};\n'
20130515 "if (typeof(console) == 'undefined') console = new PseudoConsole();\n"
20130515 '\n'
20130515 'Lino.notify = function(msg) {\n'
20130515 "  if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg);\n"
20130515 '  Lino.status_bar.setStatus({\n'
20130515 '    text: msg,\n'
20130515 "    iconCls: 'ok-icon',\n"
20130515 '    clear: true // auto-clear after a set interval\n'
20130515 '  });\n'
20130515 "  //~ Ext.getCmp('konsole').setTitle(msg.replace(/\\n/g,'<br/>'));\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg.replace(/\\n/g,'<br/>'));\n"
20130515 '};\n'
20130515 'Lino.alert = function(msg) {\n'
20130515 "  //~ if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  Ext.MessageBox.alert('Notify',msg);\n"
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.show_about = function() {\n'
20130515 '  //~ new Ext.Window({\n'
20130515 '    //~ width: 400, height: 400,\n'
20130515 '    //~ title: "About",\n'
20130515 '    //~ html: \'<a href="http://www.extjs.com" target="_blank">ExtJS</a> version \' + Ext.version\n'
20130515 '  //~ }).show();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'function obj2str(o) {\n'
20130515 "  if (typeof o != 'object') return String(o);\n"
20130515 "  var s = '';\n"
20130515 '  for (var p in o) {\n'
20130515 "    s += p + ': ' + obj2str(o[p]) + '\\n';\n"
20130515 '  }\n'
20130515 '  return s;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.on_store_exception = function (store,type,action,options,response,arg) {\n'
20130515 '  //~ throw response;\n'
20130515 '  console.log("on_store_exception: store=",store,\n'
20130515 '    "type=",type,\n'
20130515 '    "action=",action,\n'
20130515 '    "options=",options,\n'
20130515 '    "response=",response,\n'
20130515 '    "arg=",arg);\n'
20130515 '  if (arg) { console.log(arg.stack)};\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.on_submit_success = function(form, action) {\n'
20130515 '   //~ Lino.notify(action.result.message);\n'
20130515 '   //~ this.close();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.on_submit_failure = function(form, action) {\n'
20130515 '    //~ Lino.notify();\n'
20130515 '  // action may be undefined\n'
20130515 '    switch (action.failureType) {\n'
20130515 '        case Ext.form.Action.CLIENT_INVALID:\n'
20130515 "            Ext.Msg.alert('Client-side failure', 'Form fields may not be submitted with invalid values');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.CONNECT_FAILURE:\n'
20130515 "            Ext.Msg.alert('Connection failure', 'Ajax communication failed');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.SERVER_INVALID:\n'
20130515 "            Ext.Msg.alert('Server-side failure', action.result.message);\n"
20130515 '   }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Lino.save_wc_handler = function(ww) {\n'
20130515 '  return function(event,toolEl,panel,tc) {\n'
20130515 '    var pos = panel.getPosition();\n'
20130515 '    var size = panel.getSize();\n'
20130515 '    wc = ww.get_window_config();\n'
20130515 '    Ext.applyIf(wc,{ \n'
20130515 '      x:pos[0],y:pos[1],height:size.height,width:size.width,\n'
20130515 '      maximized:panel.maximized});\n'
20130515 "    Lino.do_action(ww,{url:'/window_configs/'+ww.config.permalink_name,params:wc,method:'POST'});\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '*/\n'
20130515 '\n'
20130515 'Lino.show_in_own_window_button = function(handler) {\n'
20130515 '  return {\n'
20130515 '    qtip: "Show this panel in own window", \n'
20130515 '    id: "up",\n'
20130515 '    handler: function(event,toolEl,panel, tc) {\n'
20130515 "      //~ console.log('20111206 report_window_button',panel,handler);\n"
20130515 '      //~ var bp = ww.get_master_params();\n'
20130515 '      //~ panel.containing_window = ww; // for HtmlBox. see blog/2010/1022\n'
20130515 '      //~ handler(panel,{base_params:bp});\n'
20130515 '      //~ handler(panel,{base_params:panel.get_master_params()});\n'
20130515 '      handler.run(null,{base_params:panel.containing_panel.get_master_params()});\n'
20130515 '      //~ handler(panel,{master_panel:panel.containing_window.main_item});\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.delete_selected = function(panel) {\n'
20130515 '  //~ console.log("Lino.delete_selected",panel);\n'
20130515 '  var recs1 = panel.get_selected();\n'
20130515 '  var recs = [];\n'
20130515 '  for ( var i=0; i < recs1.length; i++ ) { if (! recs1[i].phantom) recs.push(recs1[i]); }\n'
20130515 '  if (recs.length == 0) {\n'
20130515 '    Lino.notify("Please select at least one record.");\n'
20130515 '    return;\n'
20130515 '  };\n'
20130515 '  if (recs.length == 1) {\n'
20130515 '      if (recs[0].disable_delete) {\n'
20130515 '        Lino.alert(recs[0].disable_delete);\n'
20130515 '        return;\n'
20130515 '      }\n'
20130515 '  };\n'
20130515 '  //~ console.log(recs);\n'
20130515 '  Ext.MessageBox.show({\n'
20130515 '    title: "Confirmation",\n'
20130515 '    msg: String.format("Delete {0} rows. Are you sure?",String(recs.length)),\n'
20130515 '    //~ msg: "Delete " + String(recs.length) + " rows. Are you sure?",\n'
20130515 '    //~ buttons: Ext.MessageBox.YESNOCANCEL,\n'
20130515 '    buttons: Ext.MessageBox.YESNO,\n'
20130515 '    fn: function(btn) {\n'
20130515 "      if (btn == 'yes') {\n"
20130515 '        for ( var i=0; i < recs.length; i++ ) {\n'
20130515 '          Lino.do_action(panel,{\n'
20130515 "              method:'DELETE',\n"
20130515 "              url:  '/api' + panel.ls_url + '/' + recs[i].id,\n"
20130515 '              after_success: panel.after_delete.createDelegate(panel)\n'
20130515 '          })\n'
20130515 '        }\n'
20130515 '        //~ caller.after_delete();\n'
20130515 '      }\n'
20130515 '      else Lino.notify("Dann eben nicht.");\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.action_handler = function (panel,on_success,on_confirm) {\n'
20130515 '  return function (response) {\n'
20130515 '    //~ console.log(20120608,panel);\n'
20130515 '    if (panel instanceof Lino.GridPanel) {\n'
20130515 '        //~ gridmode = false;\n'
20130515 '        gridmode = true;\n'
20130515 "        //~ console.log('20120608 yes');\n"
20130515 '    } else {\n'
20130515 '        gridmode = false;\n'
20130515 "        //~ console.log('20120608 no');\n"
20130515 '    }\n'
20130515 '    panel.loadMask.hide(); // 20120211\n'
20130515 '    if (!response.responseText) return ;\n'
20130515 '    var result = Ext.decode(response.responseText);\n'
20130515 "    //~ console.log('Lino.action_handler()','result is',result,'on_confirm is',on_confirm);\n"
20130515 '    \n'
20130515 '    if (result.eval_js) {\n'
20130515 '        //~ console.log(20120618,result.eval_js);\n'
20130515 '        eval(result.eval_js);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.xcallback) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        var config = {title:result.xcallback.title};\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        config.buttons = result.xcallback.buttons;\n'
20130515 '        config.msg = result.message;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 '          panel.loadMask.show(); \n'
20130515 '          //~ Lino.insert_subst_user(p);\n'
20130515 '          Ext.Ajax.request({\n'
20130515 "            method: 'GET',\n"
20130515 "            url: '/callbacks/'+result.xcallback.id + '/' + buttonId,\n"
20130515 '            //~ params: {bi: buttonId},\n'
20130515 '            success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '          });\n'
20130515 "          //~ Lino.call_ajax_action(panel,'GET',)\n"
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (on_success && result.success) on_success(result);\n'
20130515 '    \n'
20130515 '    //~ if (on_confirm && result.confirm_message) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        //~ // config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        //~ config.msg = result.confirm_message;\n'
20130515 '        //~ config.fn = function(buttonId,text,opt) {\n'
20130515 '          //~ if (buttonId == "yes") {\n'
20130515 '              //~ on_confirm(panel,undefined,result.step);\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '        //~ Ext.MessageBox.show(config);\n'
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    //~ if (result.dialog_fn) {\n'
20130515 "        //~ console.log('20120928 TODO',result.dialog_fn);\n"
20130515 '    //~ }\n'
20130515 '    if (result.message) {\n'
20130515 '        //~ if (result.alert && ! gridmode) {\n'
20130515 '        if (result.alert) { // 20120628b \n'
20130515 "            //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '            if (result.alert === true) result.alert = "Alert";\n'
20130515 '            Ext.MessageBox.alert(result.alert,result.message);\n'
20130515 '        } else {\n'
20130515 '            Lino.notify(result.message);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    // \n'
20130515 '    if (result.data_record && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 '        panel.set_status({data_record:result.data_record});\n'
20130515 '    }\n'
20130515 '    else if (result.new_status && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.set_status(result.new_status);\n'
20130515 '    }\n'
20130515 '    else if (result.goto_record_id != undefined && ! gridmode) {\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.load_record_id(result.goto_record_id);\n'
20130515 '    }\n'
20130515 '    else if (result.refresh_all) {\n'
20130515 '        var cw = panel.get_containing_window();\n'
20130515 '        //~ console.log("20120123 refresh_all");\n'
20130515 '        if (cw) {\n'
20130515 '          cw.main_item.refresh();\n'
20130515 '        }\n'
20130515 '        else console.log("20120123 cannot refresh_all",panel);\n'
20130515 '    } else {\n'
20130515 '        //~ console.log("20121212 b gonna refresh",panel);\n'
20130515 '        if (result.refresh) panel.refresh();\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.open_url) {\n'
20130515 '        //~ console.log(20111126,result.open_url);\n'
20130515 '        //~ if (!result.message)\n'
20130515 '            //~ Lino.notify(\'Open new window <a href="\'+result.open_url+\'" target="_blank">\'+result.open_url+\'</a>\');\n'
20130515 '        window.open(result.open_url,\'foo\',"");\n'
20130515 '        //~ document.location = result.open_url;\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.do_action = function(caller,action) {\n'
20130515 '  action.success = function(response) {\n'
20130515 '    if (caller.loadMask) caller.loadMask.hide();\n'
20130515 "    //~ console.log('Lino.do_action()',action,'action success',response);\n"
20130515 '    if (action.after_success) {\n'
20130515 "        //~ console.log('Lino.do_action() calling after_success');\n"
20130515 '        action.after_success();\n'
20130515 '    }\n'
20130515 '    if (response.responseText) {\n'
20130515 '      var result = Ext.decode(response.responseText);\n'
20130515 "      //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '      if (result.message) {\n'
20130515 '          if (result.alert) {\n'
20130515 "              //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "              Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '          } else {\n'
20130515 '              Lino.notify(result.message);\n'
20130515 '          }\n'
20130515 '      }\n'
20130515 '      \n'
20130515 "      //~ if (result.alert_msg) Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '      //~ if (result.message) Lino.notify(result.message);\n'
20130515 '      if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '      if (result.js_code) { \n'
20130515 "        //~ console.log('Lino.do_action()',action,'gonna call js_code in',result);\n"
20130515 '        var jsr = result.js_code(caller);\n'
20130515 "        //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '        if (action.after_js_code) {\n'
20130515 "          //~ console.log('Lino.do_action()',action,'gonna call after_js_code');\n"
20130515 '          action.after_js_code(jsr);\n'
20130515 "          //~ console.log('Lino.do_action()',action,'returned from after_js_code');\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('Lino.do_action()',action,' : after_js_code is false');\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '    }\n'
20130515 '  };\n'
20130515 '  Ext.applyIf(action,{\n'
20130515 '    waitMsg: "Please wait...",\n'
20130515 '    failure: Lino.ajax_error_handler(caller),\n'
20130515 '    params: {}\n'
20130515 '  });\n'
20130515 '  //~ action.params.su = Lino.subst_user;\n'
20130515 '  Lino.insert_subst_user(action.params);\n'
20130515 '  \n'
20130515 '  Ext.Ajax.request(action);\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gup = function( name )\n'
20130515 '//~ {\n'
20130515 '  //~ // Thanks to http://www.netlobo.com/url_query_string_javascript.html\n'
20130515 '  //~ name = name.replace(/[\\[]/,"\\\\\\[").replace(/[\\]]/,"\\\\\\]");\n'
20130515 '  //~ var regexS = "[\\\\?&]"+name+"=([^&#]*)";\n'
20130515 '  //~ var regex = new RegExp( regexS );\n'
20130515 '  //~ var results = regex.exec( window.location.href );\n'
20130515 '  //~ if( results == null )\n'
20130515 '    //~ return "";\n'
20130515 '  //~ else\n'
20130515 '    //~ return results[1];\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.refresh_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 "      //~ console.log('refresh',ww);\n"
20130515 '      //~ ww.main_item.doLayout(false,true);\n'
20130515 '      //~ ww.main_item.syncSize();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.tools_close_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 '      //~ ww.close();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 'Lino.permalink_handler = function (ww) {\n'
20130515 '  return function() { \n'
20130515 '    //~ console.log(20100923,ww.get_permalink());\n'
20130515 '    //~ document.location = ww.main_item.get_permalink();\n'
20130515 '    Lino.load_url(ww.main_item.get_permalink());\n'
20130515 '    //~ console.log(20120715, ww.main_item.get_permalink());\n'
20130515 '    //~ document.location = "?permalink=" + ww.get_permalink();\n'
20130515 '    //~ document.location = "?permalink=" + ww.config.permalink_name +\'()\';\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '//~ Lino.run_permalink = function() {\n'
20130515 "  //~ var plink = Lino.gup('permalink');\n"
20130515 "  //~ if(plink) { eval('Lino.'+plink); }\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.MainPanel = {\n'
20130515 '  is_home_page : false,\n'
20130515 '  setting_param_values : false,\n'
20130515 '  config_containing_window : function(wincfg) { }\n'
20130515 '  ,init_containing_window : function(win) { }\n'
20130515 '  ,is_loading : function() { return true; } // overridden by subclasses\n'
20130515 '  ,do_when_clean : function(auto_save,todo) { todo() }\n'
20130515 '  ,get_master_params : function() {\n'
20130515 '    var p = {}\n'
20130515 "    p['mt'] = this.content_type; \n"
20130515 '    rec = this.get_current_record()\n'
20130515 '    if (rec) {\n'
20130515 '      if (rec.phantom) {\n'
20130515 "          p['mk'] = undefined; \n"
20130515 '      }else{\n'
20130515 "          p['mk'] = rec.id; \n"
20130515 '      }\n'
20130515 '    } else {\n'
20130515 "      p['mk'] = undefined;\n"
20130515 '    }\n'
20130515 "    //~ console.log('get_master_params returns',p,'using record',rec);\n"
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,get_permalink : function() {\n'
20130515 '    //~ var p = this.main_item.get_base_params() || {};\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    delete p.fmt;\n'
20130515 '    //~ if (p.fmt) delete p.fmt;\n'
20130515 '    Ext.apply(p,this.get_permalink_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "     //~ p.fmt = 'html';\n"
20130515 "    //~ console.log('get_permalink',p,this.get_permalink_params());\n"
20130515 '    if (this.is_home_page)\n'
20130515 "        //~ var url = '';\n"
20130515 "        var url = '/';\n"
20130515 '    else \n'
20130515 '        var url = this.get_permalink_url();\n'
20130515 '    if (p.su == null) \n'
20130515 '        delete p.su;\n'
20130515 '    if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '    return url;\n'
20130515 '  }\n'
20130515 '  ,get_record_url : function(record_id) {\n'
20130515 "      var url = '/api' + this.ls_url\n"
20130515 '      //~ var url = this.containing_window.config.url_data; // ls_url;\n'
20130515 "      url += '/' + (record_id === undefined ? '-99999' : String(record_id));\n"
20130515 "      //~ if (record_id !== undefined) url += '/' + String(record_id);\n"
20130515 "      //~ url += '/' + String(record_id);\n"
20130515 '      return url;\n'
20130515 '  }\n'
20130515 '  ,get_permalink_url : function() {\n'
20130515 "      return '/api' + this.ls_url;\n"
20130515 '  }\n'
20130515 '  ,get_permalink_params : function() {\n'
20130515 "      //~ return {an:'grid'};\n"
20130515 '      var p = {};\n'
20130515 '      if (this.action_name)\n'
20130515 '          p.an = this.action_name;\n'
20130515 '      this.add_param_values(p)\n'
20130515 '      return p;\n'
20130515 '  }\n'
20130515 '  ,set_status : function(status) {}\n'
20130515 '  ,get_status : function() { return {}}\n'
20130515 '  ,refresh : function() {}\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,add_params_panel : function (tbar) {\n'
20130515 '      if (this.params_panel) {\n'
20130515 '        tbar = tbar.concat([{ scope:this, \n'
20130515 '          //~ text: "$_("[parameters]")", // gear\n'
20130515 "          iconCls: 'x-tbar-parameters',\n"
20130515 '          tooltip:"Show or hide the table parameters panel",\n'
20130515 '          enableToggle: true,\n'
20130515 '          //~ pressed: ! this.params_panel.hidden,\n'
20130515 '          pressed: ! this.params_panel_hidden,\n'
20130515 '          toggleHandler: function(btn,state) { \n'
20130515 '            //~ if (this.params_panel.isVisible()) \n'
20130515 '                //~ this.params_panel.hide();\n'
20130515 '            //~ else\n'
20130515 '                //~ this.params_panel.show();\n'
20130515 '            //~ console.log("20120210 add_params_panel",state,this.params_panel);\n'
20130515 '            if (state) {\n'
20130515 '              this.params_panel.show();\n'
20130515 '              this.params_panel.doLayout();\n'
20130515 '            } else this.params_panel.hide();\n'
20130515 '            this.get_containing_window().doLayout();\n'
20130515 '          }\n'
20130515 '        }]);\n'
20130515 '        var t = this;\n'
20130515 '        var refresh = function() {if (!t.setting_param_values) t.refresh();}\n'
20130515 '        Ext.each(this.params_panel.fields,function(f) {\n'
20130515 "          //~ f.on('valid',function() {t.refresh()});\n"
20130515 '          if (f instanceof Ext.form.Checkbox) {\n'
20130515 "              f.on('check',refresh);\n"
20130515 '          } else if (f instanceof Ext.DatePicker) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 '          } else if (f instanceof Ext.form.TriggerField) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 "              //~ f.on('change',refresh);\n"
20130515 "              //~ f.on('valid',refresh);\n"
20130515 '          } else {\n'
20130515 '              if (! f.on) \n'
20130515 '                  console.log("20121010 no method \'on\'",f);\n'
20130515 '              else\n'
20130515 "                  f.on('change',refresh);\n"
20130515 '            }\n'
20130515 '          });\n'
20130515 '      }\n'
20130515 '      return tbar;\n'
20130515 '  }\n'
20130515 '  ,add_param_values : function (p) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 '      /* \n'
20130515 '      20120918 add param_values to the request string \n'
20130515 '      *only if the params_form is dirty*.\n'
20130515 '      Otherwise Actor.default_params() would never be used.\n'
20130515 '      \n'
20130515 '      20121023 But IntegClients.params_default has non-empty default values. \n'
20130515 '      Users must have the possibility to make them empty.\n'
20130515 '      */\n'
20130515 '      if (this.params_panel.form.isDirty()) {\n'
20130515 '        p.pv = this.get_param_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_param_values) \n'
20130515 '          p.pv = Lino.fields2array(\n'
20130515 '            this.params_panel.fields,this.status_param_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.params_panel.form.isDirty()) return;\n'
20130515 '      //~ p.pv = this.get_param_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  get_param_values : function() { // similar to get_field_values()\n'
20130515 '      return Lino.fields2array(this.params_panel.fields);\n'
20130515 '  },\n'
20130515 '  set_param_values : function(pv) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_param_values = pv;\n'
20130515 '      //~ this.params_panel.form.suspendEvents(false);\n'
20130515 '      this.setting_param_values = true;\n'
20130515 '      if (pv) { \n'
20130515 '          this.params_panel.form.my_loadRecord(pv);\n'
20130515 '      } else { \n'
20130515 '        this.params_panel.form.reset(); \n'
20130515 '      }\n'
20130515 '      this.setting_param_values = false;\n'
20130515 '      //~ this.params_panel.form.resumeEvents();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ajax_error_handler = function(panel) {\n'
20130515 '  return function(response,options) {\n'
20130515 "    console.log('Ajax failure:',response,options);\n"
20130515 '    if (panel.loadMask) panel.loadMask.hide();\n'
20130515 '    if (response.responseText) {\n'
20130515 "      var lines = response.responseText.split('\\n');\n"
20130515 '      if (lines.length > 10) {\n'
20130515 '          line = lines.splice(5,lines.length-10,"(...)");\n'
20130515 '      }\n'
20130515 '      Ext.MessageBox.alert(\n'
20130515 '        response.statusText,\n'
20130515 "        lines.join('<br/>')\n"
20130515 "        //~ response.responseText.replace(/\\n/g,'<br/>'))\n"
20130515 '      )\n'
20130515 '    } else {\n'
20130515 "      Ext.MessageBox.alert('Action failed',\n"
20130515 "        'Lino server did not respond to Ajax request');\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 "// Ext.Ajax.on('requestexception',Lino.ajax_error_handler)\n"
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 'Ext.QuickTips.init();\n'
20130515 '\n'
20130515 '/* setting QuickTips dismissDelay to 0 */\n'
20130515 '// Apply a set of config properties to the singleton\n'
20130515 '//~ Ext.apply(Ext.QuickTips.getQuickTip(), {\n'
20130515 '//~ Ext.apply(Ext.ToolTip, {\n'
20130515 '    //~ dismissDelay: 0\n'
20130515 '    //~ autoHide: false,\n'
20130515 '    //~ closable: true,\n'
20130515 '    //~ maxWidth: 200,\n'
20130515 '    //~ minWidth: 100,\n'
20130515 '    //~ showDelay: 50      // Show 50ms after entering target\n'
20130515 '    //~ ,trackMouse: true\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Ext.apply(Ext.QuickTip, {\n'
20130515 '    //~ dismissDelay: 0,\n'
20130515 '//~ });\n'
20130515 '  \n'
20130515 'Lino.quicktip_renderer = function(title,body) {\n'
20130515 '  return function(c) {\n'
20130515 '    //~ if (c instanceof Ext.Panel) var t = c.bwrap; else // 20130129\n'
20130515 '    if (c instanceof Ext.Panel) var t = c.header; else // 20130129\n'
20130515 '    var t = c.getEl();\n'
20130515 '    //~ console.log(20130129,t,title,body);\n'
20130515 '    //~ t.dismissDelay = 0;\n'
20130515 '    Ext.QuickTips.register({\n'
20130515 '      target: t,\n'
20130515 "      //~ cls: 'lino-quicktip-classical',\n"
20130515 '      dismissDelay: 0,\n'
20130515 '      //~ autoHide: false,\n'
20130515 '      showDelay: 50,      // Show 50ms after entering target\n'
20130515 '      //~ title: title,\n'
20130515 '      text: body\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '  \n'
20130515 'Lino.help_text_editor = function() {\n'
20130515 '  //~ var bp = {\n'
20130515 '      //~ mk:this.content_type,\n'
20130515 '      //~ mt:1\n'
20130515 '    //~ };\n'
20130515 '    //~ console.log(20120202,bp);\n'
20130515 '  //~ Lino.lino.ContentTypes.detail({},{base_params:bp});\n'
20130515 '  //~ Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '  Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '}\n'
20130515 '\n'
20130515 '// Path to the blank image should point to a valid location on your server\n'
20130515 "//~ Ext.BLANK_IMAGE_URL = MEDIA_URL + '/extjs/resources/images/default/s.gif'; \n"
20130515 '\n'
20130515 '\n'
20130515 '// used as Ext.grid.Column.renderer for id columns in order to hide the special id value -99999\n'
20130515 'Lino.id_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.raw_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.text_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return "not implemented"; \n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.NullNumberColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 "    align : 'right', \n"
20130515 "    format : '0,00/i', \n"
20130515 '    renderer : function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '        //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "        if (value === null) return '';\n"
20130515 '        return Ext.util.Format.number(value, this.format);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.NullNumberColumn = Ext.extend(Ext.grid.NumberColumn, {\n'
20130515 "    //~ align : 'right', \n"
20130515 '    //~ constructor: function(cfg){\n'
20130515 '        //~ Ext.grid.NumberColumn.superclass.constructor.call(this, cfg);\n'
20130515 '        //~ var t = this;\n'
20130515 '        //~ this.renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '          //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "          //~ if (value === null) return '';\n"
20130515 '          //~ return Ext.util.Format.number(value, t.format);\n'
20130515 '      //~ };\n'
20130515 '    //~ }\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.cell_button_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return \'<input type="button" onclick="alert(value)" value=" ? ">\' ;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.default_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  //~ return value;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.fk_renderer = function(fkname,handlername) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    //~ if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'.run(null,{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.lfk_renderer = function(panel,fkname) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 "  var handlername = 'console.log';\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'({},{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gfk_renderer = function() {\n'
20130515 '  //~ return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ if (record.phantom) return '';\n"
20130515 "    //~ console.log('Lino.gfk_renderer',value,colIndex,record,metaData,store);\n"
20130515 '    //~ return value;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.build_buttons = function(panel,actions) {\n'
20130515 '  //~ console.log("20121006 Lino.build_buttons",actions);\n'
20130515 '  if (actions) {\n'
20130515 '    var buttons = Array(actions.length);\n'
20130515 '    var cmenu = Array(actions.length);\n'
20130515 '    for (var i=0; i < actions.length; i++) { \n'
20130515 '      buttons[i] = new Ext.Toolbar.Button(actions[i]);\n'
20130515 '      cmenu[i] = actions[i]\n'
20130515 '      cmenu[i].text = actions[i].menu_item_text;\n'
20130515 '      if (actions[i].panel_btn_handler) {\n'
20130515 '          var h = actions[i].panel_btn_handler.createCallback(panel,buttons[i]);\n'
20130515 '          //~ if (actions[i].must_save) {\n'
20130515 '          if (actions[i].auto_save == true) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[true,h]));\n"
20130515 '          } else if (actions[i].auto_save == null) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[false,h]));\n"
20130515 '          } else if (actions[i].auto_save == false) {\n'
20130515 "              buttons[i].on('click',h);\n"
20130515 '          } else {\n'
20130515 '              console.log("20120703 unhandled auto_save value",actions[i])\n'
20130515 '          }\n'
20130515 '          cmenu[i].handler = actions[i].panel_btn_handler.createCallback(panel,cmenu[i]);\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    return {bbar:buttons, cmenu:new Ext.menu.Menu(cmenu)};\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.do_when_visible = function(cmp,todo) {\n'
20130515 '  //~ if (cmp.el && cmp.el.dom) \n'
20130515 '  if (cmp.isVisible()) { \n'
20130515 "    // 'visible' means 'rendered and not hidden'\n"
20130515 "    //~ console.log(cmp.title,'-> cmp is visible now');\n"
20130515 '    todo(); \n'
20130515 '  //~ } else {\n'
20130515 "      //~ cmp.on('resize',todo,cmp,{single:true});\n"
20130515 '  //~ }\n'
20130515 '  //~ if (false) { // 20120213\n'
20130515 '  } else { \n'
20130515 "    //~ console.log('Lino.do_when_visible() must defer because not isVisible()',todo,cmp);\n"
20130515 '    if (cmp.rendered) {\n'
20130515 "      //~ console.log(cmp,'-> cmp is rendered but not visible: and now?');\n"
20130515 "      //~ console.log(cmp.title,'-> cmp is rendered but not visible: try again in a moment...');\n"
20130515 '      //~ var fn = function() {Lino.do_when_visible(cmp,todo)};\n'
20130515 '      //~ fn.defer(100);\n'
20130515 '      \n'
20130515 '      Lino.do_when_visible.defer(50,this,[cmp,todo]);\n'
20130515 '      //~ Lino.do_when_visible.defer(100,this,[cmp,todo]);\n'
20130515 '      \n'
20130515 '    } else {\n'
20130515 "      //~ console.log(cmp.title,'-> after render');\n"
20130515 "      cmp.on('afterrender',todo,cmp,{single:true});\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '};    \n'
20130515 '\n'
20130515 '/*\n'
20130515 '*/\n'
20130515 'Lino.do_on_current_record = function(panel,fn,phantom_fn) {\n'
20130515 '  var rec = panel.get_current_record();\n'
20130515 '  if (rec == undefined) {\n'
20130515 '    Lino.notify("There\'s no selected record.");\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  // 20120307 A VirtualTable with a Detail (lino.Models) has only "phantom" records.\n'
20130515 '  if (rec.phantom) {\n'
20130515 '    //~ if (!panel.editable) { console.log("20120312 not editable:",panel)}\n'
20130515 '    if (phantom_fn) {\n'
20130515 '      phantom_fn(panel);\n'
20130515 '    } else {\n'
20130515 '      Lino.notify("Action not available on phantom record.");\n'
20130515 '    }\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  return fn(rec);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.call_ajax_action = function(panel,method,url,p,actionName,step,on_confirm,on_success) {\n'
20130515 '  p.an = actionName;\n'
20130515 '  if (!panel) panel = Lino.viewport;\n'
20130515 '  Ext.apply(p,panel.get_base_params());\n'
20130515 '  //~ console.log("20121212 Lino.call_ajax_action",panel);\n'
20130515 '  panel.loadMask.show(); \n'
20130515 '  //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 '  //~ Lino.insert_subst_user(p);\n'
20130515 '    \n'
20130515 "  //~ if (step) p['$ext_requests.URL_PARAM_ACTION_STEP'] = step;\n"
20130515 '  //~ if (pp) pp(p); // "parameter processor" : first used for read beid card\n'
20130515 '  Ext.Ajax.request({\n'
20130515 '    method: method,\n'
20130515 '    url: url,\n'
20130515 '    params: p,\n'
20130515 '    success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.row_action_handler = function(actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      if (pp) { p = pp(); if (! p) return; }\n'
20130515 '      Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '          //~ console.log(panel);\n'
20130515 '          //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '          Lino.call_ajax_action(panel,hm,panel.get_record_url(rec.id),p,actionName,step,fn);\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.list_action_handler = function(ls_url,actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 "  var url = '/api' + ls_url\n"
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      //~ console.log("20121210 Lino.list_action_handler",arguments);\n'
20130515 "      //~ var url = ADMIN_URL + '/api' + panel.ls_url\n"
20130515 '      if (pp) { p = pp();  if (! p) return; }\n'
20130515 '      Lino.call_ajax_action(panel,hm,url,p,actionName,step,fn);\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.param_action_handler = function(window_action) { // 20121012\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '      //~ console.log(panel);\n'
20130515 '      //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '      window_action.run(panel.getId(),{}); \n'
20130515 '    });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.run_row_action = function(requesting_panel,url,pk,actionName,pp) {\n'
20130515 '  //~ var panel = action.get_window().main_item;\n'
20130515 "  url = '/api' + url  + '/' + pk;\n"
20130515 '  var panel = Ext.getCmp(requesting_panel);\n'
20130515 '  if (pp) var p = pp(); else var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    //~ 20120723 Lino.call_ajax_action(panel,pk,actionName,step,fn);\n'
20130515 "    Lino.call_ajax_action(panel,'GET',url,p,actionName,step,fn);\n"
20130515 '  }\n'
20130515 '  fn(panel,null,null);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_detail = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel, \n'
20130515 '    function(rec) {\n'
20130515 '      //~ panel.loadMask.show();\n'
20130515 '      var bp = panel.get_base_params();\n'
20130515 '      //~ var bp = {};\n'
20130515 '      panel.add_param_values(bp); // 20120918\n'
20130515 '      var status = {\n'
20130515 '        record_id:rec.id,\n'
20130515 '        base_params:bp\n'
20130515 '        //~ param_values: pv.$ext_requests.URL_PARAM_PARAM_VALUES\n'
20130515 '      }\n'
20130515 '      //~ console.log("20120918 Lino.show_detail",status);\n'
20130515 '      panel.ls_detail_handler.run(null,status);\n'
20130515 '      //~ panel.loadMask.hide();\n'
20130515 '      //~ panel.containing_window.window.hideMask();\n'
20130515 '      //~ panel.el.unmask();\n'
20130515 '    },\n'
20130515 '    Lino.show_insert\n'
20130515 '  );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_fk_detail = function(combo,detail_action) {\n'
20130515 '    //~ console.log("Lino.show_fk_detail",combo,handler);\n'
20130515 '    pk = combo.getValue();\n'
20130515 '    if (pk) {\n'
20130515 '        detail_action.run(null,{record_id: pk})\n'
20130515 '      } else {\n'
20130515 '        Lino.notify("Cannot show detail for empty foreign key.");\n'
20130515 '      }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert = function(panel,btn) {\n'
20130515 '  var bp = panel.get_base_params();\n'
20130515 "  //~ console.log('20120125 Lino.show_insert',bp)\n"
20130515 '  //~ panel.ls_insert_handler.run(null,{record_id:-99999,base_params:bp});\n'
20130515 '  panel.ls_insert_handler.run(panel.getId(),{record_id:-99999,base_params:bp});\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert_duplicate = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel,\n'
20130515 '    function(rec) {\n'
20130515 '      var newRec = {};\n'
20130515 '      Ext.apply(newRec,rec);\n'
20130515 '      newRec.id = -99999;\n'
20130515 '      panel.ls_insert_handler.run(null,{data_record:rec});\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.update_row_handler = function(action_name) {\n'
20130515 '  //~ return function(panel,btn) {\n'
20130515 '    //~ Lino.notify("Sorry, " + action_name + " is not implemented.");\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'if (Ext.ux.grid !== undefined) {\n'
20130515 '    Lino.GridFilters = Ext.extend(Ext.ux.grid.GridFilters,{\n'
20130515 '      encode:true,\n'
20130515 '      local:false\n'
20130515 '    });\n'
20130515 '} else {\n'
20130515 '    Lino.GridFilters = function() {}; // dummy\n'
20130515 '    Ext.override(Lino.GridFilters,{\n'
20130515 '      init : function() {}\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.TextField,{\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.Field,{\n'
20130515 '    //~ editable : false,\n'
20130515 '    //~ constructor : function(ww,config,params){\n'
20130515 '      //~ this.containing_window = ww;\n'
20130515 '      //~ if (params) Ext.apply(config,params);\n'
20130515 '      //~ Lino.ButtonField.superclass.constructor.call(this, config);\n'
20130515 '    //~ },\n'
20130515 '    //~ setButtons : function(buttons){\n'
20130515 "      //~ console.log('setButtons',buttons);\n"
20130515 '    //~ },\n'
20130515 '    //~ onRender : function(ct, position){\n'
20130515 '        //~ if(!this.el){\n'
20130515 '            //~ this.panel = new Ext.Container({items:[\n'
20130515 "              //~ {xtype:'button',text:'upload'},\n"
20130515 "              //~ {xtype:'button',text:'show'},\n"
20130515 "              //~ {xtype:'button',text:'edit'}\n"
20130515 '            //~ ]});\n'
20130515 '            //~ this.panel.ownerCt = this;\n'
20130515 '            //~ this.el = this.panel.getEl();\n'
20130515 '\n'
20130515 '        //~ }\n'
20130515 '        //~ Lino.ButtonField.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '  \n'
20130515 '//~ });\n'
20130515 '\n'
20130515 'Lino.FieldBoxMixin = {\n'
20130515 '  before_init : function(config,params) {\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    if (actions) config.bbar = actions.bbar;\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.containing_window = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  do_when_clean : function(auto_save,todo) { todo() },\n'
20130515 '  //~ format_data : function(html) { return \'<div class="htmlText">\' + html + \'</div>\' },\n'
20130515 '  format_data : function(html) { return html },\n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '    //~ if (p.param_values) this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,{\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  constructor : function(config,params) {\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    Lino.HtmlBoxPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.constructor.call(this, ww,config,params);\n'
20130515 '  //~ },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  //~ disable : function() { var tb = this.getBottomToolbar(); if(tb) tb.disable()},\n'
20130515 '  //~ enable : function() { var tb = this.getBottomToolbar(); if(tb) tb.enable()},\n'
20130515 '  onRender : function(ct, position){\n'
20130515 '    Lino.HtmlBoxPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ console.log(20111125,this.containing_window);\n'
20130515 '    if (this.containing_panel) {\n'
20130515 "      this.containing_panel.on('enable',this.enable,this);\n"
20130515 "      this.containing_panel.on('disable',this.disable,this);\n"
20130515 '    }\n'
20130515 '    this.el.on({\n'
20130515 '      dragenter:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,dragover:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        event.stopEvent();\n'
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,drop:{\n'
20130515 '        scope:this\n'
20130515 '        ,fn:function(event){\n'
20130515 '          event.stopEvent();\n'
20130515 '          //~ console.log(20110516);\n'
20130515 '          var files = event.browserEvent.dataTransfer.files;\n'
20130515 '          if(files === undefined){\n'
20130515 '            return true;\n'
20130515 '          }\n'
20130515 '          var len = files.length;\n'
20130515 '          while(--len >= 0){\n'
20130515 '            console.log(files[len]);\n'
20130515 '            //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '          }\n'
20130515 '          Lino.show_insert(this);\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '      var record = this.containing_panel.get_current_record();\n'
20130515 "      //~ console.log('HtmlBox.refresh()',this.title,record,record.title);\n"
20130515 '      var box = this.items.get(0);\n'
20130515 '      var todo = function() {\n'
20130515 '        if (this.disabled) return;\n'
20130515 '        //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '        var el = box.getEl();\n'
20130515 '        if (el) {\n'
20130515 "          el.update(record ? this.format_data(record.data[this.name]) : '');\n"
20130515 "          //~ console.log('HtmlBox.refresh()',this.name);\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('HtmlBox.refresh() failed for',this.name);\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '      Lino.do_when_visible(box,todo.createDelegate(this));\n'
20130515 '    //~ }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.RichTextPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,{\n'
20130515 '    \n'
20130515 '  //~ initComponent : function(){\n'
20130515 '    //~ Lino.RichTextPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ },\n'
20130515 '  constructor : function(config,params) {\n'
20130515 "    //~ console.log('Lino.RichTextPanel.initComponent',this);\n"
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + String(rec.id) + "/" + config.name;\n'
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + config.name;\n'
20130515 '    var t = this;\n'
20130515 '    var tinymce_options = {\n'
20130515 '        theme : "advanced",\n'
20130515 "        content_css: '/media/lino/extjs/lino.css',\n"
20130515 "        language: 'de',\n"
20130515 '        //~ template_external_list_url : url,\n'
20130515 '        theme_advanced_toolbar_location : "top",\n'
20130515 '        theme_advanced_toolbar_align : "left",\n'
20130515 '        theme_advanced_statusbar_location : "bottom",\n'
20130515 '        template_popup_width : 700,\n'
20130515 '        template_popup_height : 500,\n'
20130515 '        template_replace_values : { \n'
20130515 '            data_field : function(element){ \n'
20130515 '                //~ console.log(20110722,fieldName,t.containing_window.get_current_record()); \n'
20130515 '                var fieldName = element.innerHTML;\n'
20130515 '                element.innerHTML = t.containing_panel.get_current_record().data[fieldName];\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '    var editorConfig = {\n'
20130515 '      tinymceSettings: {\n'
20130515 '        plugins : "noneditable,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,template",\n'
20130515 '        theme_advanced_buttons2 : "",\n'
20130515 '        theme_advanced_buttons3 : "", // ,|,sub,sup,|,charmap",      \n'
20130515 '        theme_advanced_resizing : false\n'
20130515 '        //~ save_onsavecallback : save_callback,\n'
20130515 '        //~ save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '        \n'
20130515 '    }};\n'
20130515 '    Ext.apply(editorConfig.tinymceSettings,tinymce_options);\n'
20130515 '    //~ editorConfig.name = config.action_name;\n'
20130515 '    editorConfig.name = config.name;\n'
20130515 '    delete config.name;\n'
20130515 '    //~ config.title = config.label;\n'
20130515 '    //~ delete config.label;\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    \n'
20130515 '    this.editor = new Ext.ux.TinyMCE(editorConfig);\n'
20130515 '    var t = this;\n'
20130515 '    config.tools = [{\n'
20130515 '                      qtip: "Edit text in own window", \n'
20130515 '                      id: "up",\n'
20130515 '                      handler: function(){\n'
20130515 '                        if(t.editor.isDirty()) {\n'
20130515 '                            var record = t.containing_panel.get_current_record();\n'
20130515 '                            record.data[t.editor.name] = t.editor.getValue();\n'
20130515 '                        }\n'
20130515 '                        Lino.edit_tinymce_text(t,tinymce_options)\n'
20130515 '                      }\n'
20130515 '                    }];\n'
20130515 '    \n'
20130515 '    config.items = this.editor;\n'
20130515 '    config.layout = "fit";\n'
20130515 '    Lino.RichTextPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    var record = this.containing_panel.get_current_record();\n'
20130515 "    //~ console.log('RichTextPanel.refresh()',this.title,record.title,record);\n"
20130515 '    var todo = function() {\n'
20130515 '      //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '      if (record) {\n'
20130515 '        var url = \'/templates\' + this.containing_panel.ls_url + "/" \n'
20130515 '            + String(record.id) + "/" + this.editor.name;\n'
20130515 "        //~ console.log('RichTextPanel.refresh()',url);\n"
20130515 '        if (this.editor.ed) this.editor.ed.settings.template_external_list_url = url;\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 "        //~ var v = record ? this.format_data(record.data[this.editor.name]) : ''\n"
20130515 '        var v = this.format_data(record.data[this.editor.name])\n'
20130515 '        this.editor.setValue(v);\n'
20130515 '      } else {\n'
20130515 "        this.editor.setValue('(no data)');\n"
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.PanelMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 "  //~ layout:'fit'\n"
20130515 '  //~ ,autoHeight: true\n'
20130515 '  //~ ,frame: true\n'
20130515 '  window_title: "Action Parameters",\n'
20130515 '  constructor : function(config){\n'
20130515 '    config.bbar = [\n'
20130515 "        {text:'OK',handler:this.on_ok,scope:this},\n"
20130515 "        {text:'Cancel',handler:this.on_cancel,scope:this}\n"
20130515 '    ];\n'
20130515 '    //~ config.items = config.params_panel;\n'
20130515 '    Lino.ActionFormPanel.superclass.constructor.call(this, config);\n'
20130515 '  }\n'
20130515 '  //~ ,initComponent : function(){\n'
20130515 '    //~ Lino.ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '    //~ var rp = this.requesting_panel;\n'
20130515 '    //~ console.log("on_ok",this.requesting_panel,arguments);\n'
20130515 '    //~ Lino.row_action_handler()\n'
20130515 '    var panel = this.requesting_panel;\n'
20130515 '    var actionName = this.action_name;\n'
20130515 '    var rec = panel.get_current_record();\n'
20130515 '    var self = this;\n'
20130515 '    function on_success() { self.get_containing_window().close(); };\n'
20130515 '    var fn = function(panel,btn,step) {\n'
20130515 '      var p = {};\n'
20130515 '      self.add_field_values(p)\n'
20130515 "      Lino.call_ajax_action(panel,'GET',panel.get_record_url(rec.id),p,actionName,step,fn,on_success);\n"
20130515 '    }\n'
20130515 '    fn(panel,null,null);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '  }\n'
20130515 '  ,set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 ActionFormPanel.set_status()',status,rp,this.requesting_panel);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_field_values(status.field_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,add_field_values : function (p) { // similar to add_param_values()\n'
20130515 '      //~ 20121023 \n'
20130515 '      if (this.form.isDirty()) {\n'
20130515 '        p.fv = this.get_field_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_field_values) \n'
20130515 '          p.fv = Lino.fields2array(this.fields,this.status_field_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.form.isDirty()) return;\n'
20130515 '      //~ p.$ext_requests.URL_PARAM_FIELD_VALUES = this.get_field_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '  }\n'
20130515 '  ,get_field_values : function() {\n'
20130515 '      return Lino.fields2array(this.fields);\n'
20130515 '  }\n'
20130515 '  ,set_field_values : function(pv) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_field_values = pv;\n'
20130515 '      if (pv) this.form.my_loadRecord(pv);\n'
20130515 '      else this.form.reset(); \n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.title = this.window_title;\n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.fields2array = function(fields,values) {\n'
20130515 "    //~ console.log('20120116 gonna loop on', fields);\n"
20130515 '    var pv = Array(fields.length);\n'
20130515 '    for(var i=0; i < fields.length;i++) {\n'
20130515 '        var f = fields[i]\n'
20130515 '        if (values) \n'
20130515 '          var v = values[f.name];\n'
20130515 '        else \n'
20130515 '          var v = f.getValue();\n'
20130515 '        if (f.formatDate) {\n'
20130515 '            pv[i] = f.formatDate(v); \n'
20130515 '        } else {\n'
20130515 '            pv[i] = v; // f.getValue(); \n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    return pv;\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.FormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,Lino.PanelMixin);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  //~ base_params : {},\n'
20130515 '  //~ trackResetOnLoad : true,\n'
20130515 '  //~ query_params : {},\n'
20130515 "  //~ 20110119b quick_search_text : '',\n"
20130515 '  constructor : function(config,params){\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    this.base_params = {};\n'
20130515 "    //~ ww.config.base_params.query = ''; // 20111018\n"
20130515 '    //~ console.log(config);\n'
20130515 "    //~ console.log('FormPanel.constructor() 1',config)\n"
20130515 '    //~ Ext.applyIf(config,{base_params:{}});\n'
20130515 "    //~ console.log('FormPanel.constructor() 2',config)\n"
20130515 '      \n'
20130515 '    config.trackResetOnLoad = true;\n'
20130515 '    \n'
20130515 '    Lino.FormPanel.superclass.constructor.call(this, config);\n'
20130515 '      \n'
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',null); // 20111018\n"
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',''); // 20111018\n"
20130515 '      \n'
20130515 '  },\n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    //~ console.log("20111201 containing_window",this.containing_window,this);\n'
20130515 '    \n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    if (actions) {\n'
20130515 '        this.bbar = actions.bbar;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ this.bbar = [];\n'
20130515 '    }\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ var config = this;\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window instanceof Lino.DetailWrapper) {\n'
20130515 '    \n'
20130515 "    //~ console.log('20120121 initComponent', this.action_name);\n"
20130515 "    //~ if (this.action_name == 'detail' | this.action_name == 'show') {\n"
20130515 "    //~ if (this.action_name != 'insert') {\n"
20130515 '    if (! this.hide_top_toolbar) {\n'
20130515 '      this.tbar = [];\n'
20130515 '      // 20111015    \n'
20130515 '      if (! this.hide_navigator) {\n'
20130515 '        this.record_selector = new Lino.RemoteComboFieldElement({\n'
20130515 '          store: new Lino.ComplexRemoteComboStore({\n'
20130515 '            //~ baseParams: this.containing_window.config.base_params,\n'
20130515 '            baseParams: this.get_base_params(),\n'
20130515 '            //~ value: this.containing_window.config.base_params.query,\n'
20130515 '            proxy: new Ext.data.HttpProxy({\n'
20130515 "              url: '/choices' + this.ls_url,\n"
20130515 "              method:'GET'\n"
20130515 '            })\n'
20130515 '          }),\n'
20130515 '          pageSize:25,\n'
20130515 '          listeners: { \n'
20130515 '            scope:this, \n'
20130515 '            select:function(combo,record,index) {\n'
20130515 "              //~ console.log('jumpto_select',arguments);\n"
20130515 '              this.goto_record_id(record.id);\n'
20130515 '            }\n'
20130515 '          },\n'
20130515 '          emptyText: "Go to record"\n'
20130515 '        })\n'
20130515 '        this.tbar = this.tbar.concat([this.record_selector]);\n'
20130515 '        \n'
20130515 '        this.tbar = this.tbar.concat([\n'
20130515 '          this.first = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"First",disabled:true,handler:this.moveFirst,scope:this,iconCls:\'x-tbar-page-first\'}),\n'
20130515 '          this.prev = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Previous",disabled:true,handler:this.movePrev,scope:this,iconCls:\'x-tbar-page-prev\'}),\n'
20130515 '          this.next = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Next",disabled:true,handler:this.moveNext,scope:this,iconCls:\'x-tbar-page-next\'}),\n'
20130515 '          this.last = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Last",disabled:true,handler:this.moveLast,scope:this,iconCls:\'x-tbar-page-last\'})\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      this.tbar = this.add_params_panel(this.tbar);\n'
20130515 '      \n'
20130515 '      //~ console.log(20101117,this.containing_window.refresh);\n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 '        {\n'
20130515 "          //~ text:'Refresh',\n"
20130515 '          handler:function(){ this.do_when_clean(true,this.refresh.createDelegate(this)) },\n'
20130515 "          iconCls: 'x-tbar-loading',\n"
20130515 '          tooltip:"Reload current record",\n'
20130515 '          scope:this}\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '      if (this.bbar) { // since 20121016\n'
20130515 '        if (this.tbar) {\n'
20130515 "            this.tbar = this.tbar.concat(['-']) ;\n"
20130515 '        } else {\n'
20130515 '          this.tbar = [];\n'
20130515 '        }\n'
20130515 '        this.tbar = this.tbar.concat(this.bbar) ;\n'
20130515 '        this.bbar = undefined;\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 "          '->',\n"
20130515 '          this.displayItem = new Ext.Toolbar.TextItem({})\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '    }\n'
20130515 "    //~ if (this.content_type && this.action_name != 'insert') {\n"
20130515 '      //~ this.bbar = this.bbar.concat([\n'
20130515 "        //~ '->',\n"
20130515 '        //~ { text: "[$_(\'Help Text Editor\')]",\n'
20130515 '          //~ handler: Lino.help_text_editor,\n'
20130515 '          //~ qtip: "$_(\'Edit help texts for fields on this model.\')",\n'
20130515 '          //~ scope: this}\n'
20130515 '      //~ ])\n'
20130515 '    //~ }\n'
20130515 '    //~ this.before_row_edit = config.before_row_edit.createDelegate(this);\n'
20130515 '      \n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '        //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '    //~ }\n'
20130515 '      \n'
20130515 '    Lino.FormPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.bwrap,{msg:"Please wait..."});\n'
20130515 '    },this);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.cascade(function(cmp){\n'
20130515 '      //~ // var active_field = false;\n'
20130515 '      //~ for (i = 0; i < this_.active_fields.length; i++) {\n'
20130515 '        //~ if (cmp.name == this_.active_fields[i]) {\n'
20130515 '            //~ // active_field = true; break;\n'
20130515 '            //~ cmp.on("change",function() {this_.save()});\n'
20130515 '        //~ }\n'
20130515 '      //~ };\n'
20130515 '      //~ if (active_field) {\n'
20130515 '      // if (cmp instanceof Lino.GridPanel) {\n'
20130515 '          //~ cmp.on("change",function() {this_.save()});\n'
20130515 '      //~ }\n'
20130515 '    //~ });\n'
20130515 '    \n'
20130515 "    if (this.action_name == 'insert') {\n"
20130515 '      this.cascade(function(cmp){\n'
20130515 "        // console.log('20110613 cascade',cmp);\n"
20130515 '        if (cmp.disabled_in_insert_window) {\n'
20130515 '            //~ cmp.disable();\n'
20130515 '            cmp.hide();\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    if (this.current_record == null) return true; \n'
20130515 '    var loading = false;\n'
20130515 '    this.cascade(function(cmp){\n'
20130515 '        if (cmp instanceof Lino.GridPanel && cmp.is_loading()) {\n'
20130515 "            //~ console.log(cmp.title,'is loading');\n"
20130515 '            loading = true;\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    return loading;\n'
20130515 '    //~ var a = this.findByType(Lino.GridPanel);\n'
20130515 '    //~ for (i=0;i<a.length;i++) {\n'
20130515 '        //~ if (a[i].is_loading()) return true;\n'
20130515 '    //~ }\n'
20130515 '    //~ return false;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '      var st = {\n'
20130515 '        base_params: this.get_base_params(),\n'
20130515 '        data_record : this.get_current_record()\n'
20130515 '        }\n'
20130515 '      var tp = this.items.get(0);\n'
20130515 '      if (tp instanceof Ext.TabPanel) {\n'
20130515 '        st.active_tab = tp.getActiveTab();\n'
20130515 '      }\n'
20130515 '      st.param_values = this.status_param_values;\n'
20130515 '      return st;\n'
20130515 '  },\n'
20130515 '  set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 FormPanel.set_status()',status);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '    var tp = this.items.get(0);\n'
20130515 '    if (tp instanceof Ext.TabPanel) {\n'
20130515 '      if (status.active_tab) {\n'
20130515 "        //~ console.log('20111201 active_tab',this.active_tab,this.items.get(0));\n"
20130515 '        //~ tp.activeTab = status.active_tab;\n'
20130515 '        tp.setActiveTab(status.active_tab);\n'
20130515 '        //~ this.main_item.items.get(0).activate(status.active_tab);\n'
20130515 '      } else {\n'
20130515 '        tp.setActiveTab(0);\n'
20130515 '      }\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '    if (status.data_record) {\n'
20130515 "      //~ console.log('20111201 Lino.FormPanel with data_record',this.data_record.title,this.containing_window);\n"
20130515 '      //~ this.main_item.on_master_changed.defer(2000,this.main_item,[status.data_record]);\n'
20130515 '      //~ Lino.do_when_visible(this.main_item,function(){this.on_master_changed(status.data_record)});\n'
20130515 "      //~ this.main_item.on('afterrender',function(){\n"
20130515 '      //~   this.main_item.on_master_changed(status.data_record)},this,{single:true});\n'
20130515 "      /* must defer because because set_window_title() didn't work otherwise */\n"
20130515 '      this.set_current_record.createDelegate(this,[status.data_record]).defer(100);\n'
20130515 '      //~ this.set_current_record(this.data_record);\n'
20130515 '      //~ return;\n'
20130515 '    } else if (status.record_id != undefined) { \n'
20130515 '      /* possible values include 0 and null, 0 being a valid record id, \n'
20130515 '      null the equivalent of undefined\n'
20130515 '      */\n'
20130515 '      //~ this.main_item.goto_record_id(this.status.record_id);\n'
20130515 '      this.load_record_id(status.record_id);\n'
20130515 '    } else {\n'
20130515 '      this.set_current_record(undefined);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '    \n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert_action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.base_params;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 "    delete p['query'] // 20120725\n"
20130515 '    Ext.apply(this.base_params,p);\n'
20130515 '    if (this.record_selector) {\n'
20130515 '        var store = this.record_selector.getStore();\n'
20130515 '        for (k in p) store.setBaseParam(k,p[k]);\n'
20130515 '        delete this.record_selector.lastQuery;\n'
20130515 '        //~ console.log("20120725 record_selector.setBaseParam",p)\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '        \n'
20130515 '      //~ if (this.record_selector) {\n'
20130515 '          //~ var store = this.record_selector.getStore();\n'
20130515 '          //~ for (k in store.baseParams) store.setBaseParam(k,undefined);\n'
20130515 '          //~ delete this.record_selector.lastQuery;\n'
20130515 '          //~ console.log("20120725 record_selector.getBaseParams() -->",store.baseParams)\n'
20130515 '      //~ }\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '    //~ if (this.record_selector) {\n'
20130515 '        //~ this.record_selector.getStore().setBaseParam(k,v);\n'
20130515 '        //~ delete this.record_selector.lastQuery;\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  after_delete : function() {\n'
20130515 '    if (this.current_record.navinfo.next)\n'
20130515 '      this.moveNext();\n'
20130515 '    else if (this.current_record.navinfo.prev)\n'
20130515 '      this.movePrev();\n'
20130515 '    else \n'
20130515 '      this.abandon();\n'
20130515 '  },\n'
20130515 '  moveFirst : function() {this.goto_record_id(this.current_record.navinfo.first)},\n'
20130515 '  movePrev : function() {this.goto_record_id(this.current_record.navinfo.prev)},\n'
20130515 '  moveNext : function() {this.goto_record_id(this.current_record.navinfo.next)},\n'
20130515 '  moveLast : function() {this.goto_record_id(this.current_record.navinfo.last)},\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ console.log('20120121 Lino.FormPanel.refresh()',this);\n"
20130515 '    if (this.current_record) {\n'
20130515 '        this.load_record_id(this.current_record.id,after);\n'
20130515 '    } else {\n'
20130515 '        this.set_current_record(undefined,after);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  do_when_clean : function(auto_save,todo) {\n'
20130515 '    var this_ = this;\n'
20130515 '    if (this.form.isDirty()) {\n'
20130515 '        if (auto_save) {\n'
20130515 '            this_.save(todo);\n'
20130515 '        } else {\n'
20130515 "          //~ console.log('20111217 do_when_clean() form is dirty',this.form);\n"
20130515 '          var config = {title:"Confirmation"};\n'
20130515 '          config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '          config.msg = "Save changes to current record ?";\n'
20130515 '          config.fn = function(buttonId,text,opt) {\n'
20130515 "            //~ console.log('do_when_clean',buttonId)\n"
20130515 '            if (buttonId == "yes") {\n'
20130515 '                //~ Lino.submit_detail(this_,undefined,todo);\n'
20130515 '                //~ this_.containing_window.save(todo);\n'
20130515 '                this_.save(todo);\n'
20130515 '            } else if (buttonId == "no") { \n'
20130515 '              todo();\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '    }else{\n'
20130515 "      //~ console.log('do_when_clean : now!')\n"
20130515 '      todo();\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  goto_record_id : function(record_id) {\n'
20130515 "    //~ console.log('20110701 Lino.FormPanel.goto_record_id()',record_id);\n"
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.do_when_clean(function() { this_.load_record_id(record_id) }\n'
20130515 '    this.do_when_clean(true,this.load_record_id.createDelegate(this,[record_id]));\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  load_record_id : function(record_id,after) {\n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var p = { fmt: this.containing_window.config.action_name};\n'
20130515 '    //~ var p = Ext.apply({},this.containing_window.config.base_params);\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "    //~ console.log('20110713 action_name=',this.containing_window.config.action_name,\n"
20130515 "      //~ 'base_params=',this.containing_window.config.base_params);\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ p.an = this.action_name;\n'
20130515 '    //~ p.an = this.containing_window.config.action_name;\n'
20130515 "    //~ p.fmt = 'json';\n"
20130515 "    //~ p.fmt = '$ext_requests.URL_FORMAT_JSON';\n"
20130515 '    p.rp = this.getId();\n'
20130515 '    //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 "    p.fmt = 'json';\n"
20130515 "    //~ 20110119b p['$URL_PARAM_FILTER'] = this.quick_search_text;\n"
20130515 '    //~ Ext.apply(p,this.query_params);\n'
20130515 '    this.add_param_values(p);\n'
20130515 "    //~ console.log('20121120 FormPanel.load_record_id',record_id,p);\n"
20130515 '    if (this.loadMask) this.loadMask.show();\n'
20130515 '    Ext.Ajax.request({ \n'
20130515 "      waitMsg: 'Loading record...',\n"
20130515 "      method: 'GET',\n"
20130515 '      params: p,\n'
20130515 '      scope: this,\n'
20130515 '      url: this.get_record_url(record_id),\n'
20130515 '      success: function(response) {   \n'
20130515 '        // todo: convert to Lino.action_handler.... but result \n'
20130515 '        if (this.loadMask) this.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var rec = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('20120918 goto_record_id success',rec);\n"
20130515 '          this.set_param_values(rec.param_values);\n'
20130515 '          this.set_current_record(rec,after);\n'
20130515 '        }\n'
20130515 '      },\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  abandon : function () {\n'
20130515 "    Ext.MessageBox.alert('Note',\n"
20130515 '      "No more records to display. Detail window has been closed.");\n'
20130515 '    Lino.close_window();\n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ this.containing_window.hide();\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_current_record : function(record,after) {\n'
20130515 "    //~ console.log('20120722 Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    if (this.record_selector) {\n'
20130515 '        this.record_selector.clearValue();\n'
20130515 "        // e.g. InsertWrapper FormPanel doesn't have a record_selector\n"
20130515 '    }\n'
20130515 '    this.current_record = record;\n'
20130515 '    //~ if (record) \n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    //~ else\n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record);\n"
20130515 '    //~ this.config.main_panel.form.load(record);    \n'
20130515 '    if (record) {\n'
20130515 '      this.enable();\n'
20130515 '      this.form.my_loadRecord(record.data);\n'
20130515 '      this.set_window_title(record.title);\n'
20130515 '      //~ this.getBottomToolbar().enable();\n'
20130515 '      var da = record.data.disabled_actions;\n'
20130515 '      if (da) {\n'
20130515 "          //~ console.log('20120528 disabled_actions =',da,this.getBottomToolbar());\n"
20130515 '          //~ 20121016 this.getBottomToolbar().items.each(function(item,index,length){\n'
20130515 '          var tb = this.getTopToolbar();\n'
20130515 '          if (tb) tb.items.each(function(item,index,length){\n'
20130515 "              //~ console.log('20120528 ',item.itemId,'-->',da[item.itemId]);\n"
20130515 '              if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '          });\n'
20130515 '      };\n'
20130515 '      if (this.disable_editing | record.data.disable_editing) {\n'
20130515 '          //~ console.log("20120202 disable_editing",record.title);\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            if (!cmp.always_enabled) cmp.disable();\n'
20130515 '          },this);\n'
20130515 '      } else {\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            //~ console.log("20120202",cmp);\n'
20130515 '            if (record.data.disabled_fields[cmp.name]) cmp.disable();\n'
20130515 '            else cmp.enable();\n'
20130515 '          },this);\n'
20130515 '        \n'
20130515 '          //~ if (record.data.disabled_fields) {\n'
20130515 '              //~ for (i = 0; i < record.data.disabled_fields.length; i++) {\n'
20130515 "                  //~ var flds = this.find('name',record.data.disabled_fields[i]);\n"
20130515 '                  //~ if (flds.length == 1) { \n'
20130515 '                    //~ flds[0].disable(); \n'
20130515 '                  //~ }\n'
20130515 '              //~ }\n'
20130515 '          //~ }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '      if (record.navinfo && ! this.hide_top_toolbar && ! this.hide_navigator) {\n'
20130515 '        //~ if (record.navinfo.recno == 0) {\n'
20130515 '            //~ this.first.setDisabled(true);\n'
20130515 '            //~ this.prev.setDisabled(true);\n'
20130515 '            //~ this.next.setDisabled(true);\n'
20130515 '            //~ this.last.setDisabled(true);\n'
20130515 '        //~ } else {\n'
20130515 '            this.first.setDisabled(!record.navinfo.first);\n'
20130515 '            this.prev.setDisabled(!record.navinfo.prev);\n'
20130515 '            this.next.setDisabled(!record.navinfo.next);\n'
20130515 '            this.last.setDisabled(!record.navinfo.last);\n'
20130515 '        //~ }\n'
20130515 '        this.displayItem.setText(record.navinfo.message);\n'
20130515 '      }\n'
20130515 '    } else {\n'
20130515 '      if (this.form.rendered) \n'
20130515 '        this.form.reset(); /* FileUploadField would fail when resetting a non-rendered form */\n'
20130515 '      //~ this.disable();\n'
20130515 '      //~ this.getBottomToolbar().disable();\n'
20130515 '      this.form.items.each(function(cmp){\n'
20130515 '        cmp.disable();\n'
20130515 '      },this);\n'
20130515 '      this.set_window_title(this.empty_title);\n'
20130515 '      //~ this.containing_window.window.setTitle(this.empty_title);\n'
20130515 '      if (!this.hide_navigator) {\n'
20130515 '        this.first.disable();\n'
20130515 '        this.prev.disable();\n'
20130515 '        this.next.disable();\n'
20130515 '        this.last.disable();\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 "    //~ console.log('20100531 Lino.DetailMixin.on_load_master_record',this.main_form);\n"
20130515 '    this.before_row_edit(record);\n'
20130515 '    if (after) after();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_selected : function() { return [ this.current_record ] },\n'
20130515 '  get_current_record : function() {  \n'
20130515 '    //~ console.log(20100714,this.current_record);\n'
20130515 '    return this.current_record \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_permalink_url : function() {\n'
20130515 '      var rec = this.get_current_record();\n'
20130515 '      if (rec && ! rec.phantom && rec.id != -99998)\n'
20130515 "          return '/api' + this.ls_url + '/' + rec.id;\n"
20130515 "      return '/api' + this.ls_url;\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  get_permalink_params : function() {\n'
20130515 '    var p = {};\n'
20130515 "    //~ var p = {an:'detail'};\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ var p = {an:this.action_name};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.activeTab) {\n'
20130515 '      var tab = main.items.indexOf(main.activeTab);\n'
20130515 "      //~ console.log('main.activeTab',tab,main.activeTab);\n"
20130515 '      if (tab) p.tab = tab;\n'
20130515 '    }\n'
20130515 '    this.add_param_values(p)\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.FormPanel.save() \n'
20130515 '  */\n'
20130515 '  save : function(after,switch_to_detail,action_name) {\n'
20130515 '    //~ var panel = this;\n'
20130515 "    //~ console.log('20121120 FormPanel.save');\n"
20130515 '    this.loadMask.show();\n'
20130515 '    var rec = this.get_current_record();\n'
20130515 '    if (this.has_file_upload) this.form.fileUpload = true;\n'
20130515 "    //~ console.log('FormPanel.save()',rec);\n"
20130515 '    if (!action_name) action_name = this.action_name;\n'
20130515 '    if (rec) {\n'
20130515 '      var p = {};\n'
20130515 '      Ext.apply(p,this.get_base_params());\n'
20130515 '      p.rp = this.getId();\n'
20130515 '      //~ if (this.action_name) \n'
20130515 '          //~ p.$ext_requests.URL_PARAM_ACTION_NAME = this.action_name;\n'
20130515 '      p.an = action_name;\n'
20130515 '      if (rec.phantom) {\n'
20130515 "        //~ if (this.action_name != 'insert') \n"
20130515 '            //~ console.log("Warning: phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url,\n"
20130515 "          method: 'POST',\n"
20130515 '          params: p, \n'
20130515 '          scope: this,\n'
20130515 '          success: function(form, action) {\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            /***\n'
20130515 '            Close this window, but update the status of the \n'
20130515 '            calling window.\n'
20130515 '            If the calling window is a detail on the same table,\n'
20130515 '            then it should skip to the new record. But only then.\n'
20130515 '            A successful response usually has a data_record,\n'
20130515 '            except if it is a fileupload form where some mysterious \n'
20130515 '            decoding problems (20120209) force us to return a record_id \n'
20130515 '            which will lead to an additional GET.\n'
20130515 '            ***/\n'
20130515 '            var url = this.ls_url;\n'
20130515 '            var ww = Lino.calling_window();\n'
20130515 '            if (ww && ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                   && ww.window.main_item.ls_url == this.ls_url) {\n'
20130515 '                //~ console.log("20120217 case 1");\n'
20130515 '                ww.status.record_id = action.result.record_id;\n'
20130515 '                ww.status.data_record = action.result.data_record;\n'
20130515 '                Lino.close_window();\n'
20130515 '            } else if (this.ls_detail_handler && switch_to_detail) {\n'
20130515 '                //~ console.log("20120217 case 2");\n'
20130515 '                Lino.kill_current_window();\n'
20130515 '                this.ls_detail_handler.run(null,{\n'
20130515 '                    record_id:action.result.record_id,\n'
20130515 '                    data_record: action.result.data_record,\n'
20130515 '                    base_params:this.get_base_params()\n'
20130515 '                });\n'
20130515 '            } else {\n'
20130515 '                //~ console.log("20120217 case 3");\n'
20130515 '                Lino.close_window();\n'
20130515 '            }\n'
20130515 '            //~ Lino.close_window(function(ww){\n'
20130515 '                //~ if (ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                    //~ && ww.window.main_item.ls_url == url) {\n'
20130515 '                  //~ ww.status.record_id = action.result.record_id,\n'
20130515 '                  //~ ww.status.data_record = action.result.data_record\n'
20130515 '                //~ }\n'
20130515 '            //~ });\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action);\n'
20130515 '          },\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      } else {\n'
20130515 "        //~ if (this.action_name != 'detail') \n"
20130515 '            //~ console.log("Warning: non-phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url + '/' + rec.id,\n"
20130515 "          method: 'PUT',\n"
20130515 "          //~ headers: { 'HTTP_X_REQUESTED_WITH' : 'XMLHttpRequest'},\n"
20130515 '          scope: this,\n'
20130515 '          params: p, \n'
20130515 '          success: function(form, action) {\n'
20130515 '            //~ panel.form.setValues(rec.data);\n'
20130515 '            //~ 20110701 panel.form.my_loadRecord(rec);\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            if (action.result.data_record)\n'
20130515 '                this.set_current_record(action.result.data_record,after);\n'
20130515 '            else\n'
20130515 '                console.log("Warning: no data_record in response to FormPanel.PUT")\n'
20130515 '            //~ this.refresh_with_after(after);\n'
20130515 '            //~ if (after) after(); else panel.refresh();\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action)},\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      }\n'
20130515 '    } else Lino.notify("Sorry, no current record.");\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '      this.save(null,true);\n'
20130515 '      //~ var rec = this.get_current_record();\n'
20130515 '      //~ if (rec && rec.phantom)\n'
20130515 '          //~ this.do_when_clean(true,function() { Lino.close_window(); });\n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok, scope:this }\n'
20130515 '        ,{ key: Ext.EventObject.ESCAPE, fn: this.on_cancel, scope:this }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  /* not used (no longer possible without .dtl files)\n'
20130515 '  , edit_detail_config : function () {\n'
20130515 '    var active_tab = {};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.getActiveTab !== undefined) {\n'
20130515 '      var tabitem = main.getActiveTab();\n'
20130515 '      Ext.apply(active_tab,{$ext_requests.URL_PARAM_TAB : main.items.indexOf(tabitem)});\n'
20130515 '    }\n'
20130515 '    var editor = new Ext.form.TextArea();\n'
20130515 '    var close = function() { win.close(); }\n'
20130515 '    var _this = this;\n'
20130515 '    var save = function() { \n'
20130515 '      //~ console.log(20110609,arguments); \n'
20130515 '      var params = {desc: editor.getValue()};\n'
20130515 '      Ext.apply(params,active_tab);\n'
20130515 '      var a = { \n'
20130515 '        params: params, \n'
20130515 "        method: 'PUT',\n"
20130515 "        url: ADMIN_URL + '/detail_config' + _this.ls_url,\n"
20130515 '        failure : Lino.ajax_error_handler(this),\n'
20130515 '        success: Lino.action_handler( _this, function(result) {\n'
20130515 "          //~ console.log('detail_config/save success',result);\n"
20130515 '          win.close();\n'
20130515 '          document.location = _this.get_permalink();\n'
20130515 '        })\n'
20130515 '      };\n'
20130515 "      //~ console.log('detail_config/save sent',a);\n"
20130515 '      _this.loadMask.show(); // 20120211\n'
20130515 '      Ext.Ajax.request(a);\n'
20130515 '    }\n'
20130515 "    var save_btn = new Ext.Button({text:'Save',handler:save,disabled:true});\n"
20130515 "    var win = new Ext.Window({title:'Detail Layout',\n"
20130515 "      items:editor, layout:'fit',\n"
20130515 '      width:500,height:500,\n'
20130515 "      bbar:[{text:'Cancel',handler:close},save_btn]});\n"
20130515 '    var a = { \n'
20130515 '      params:active_tab, \n'
20130515 "      method:'GET',\n"
20130515 "      url:ADMIN_URL+'/detail_config'+_this.ls_url,\n"
20130515 '      success : function(response) {\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 '          if (result.success) {\n'
20130515 '            editor.setValue(result.desc);\n'
20130515 '            save_btn.enable();\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    win.show();\n'
20130515 '  }\n'
20130515 '  */\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.getRowClass = function(record, rowIndex, rowParams, store) {\n'
20130515 '  if (record.phantom) {\n'
20130515 '    //~ console.log(20101009,record);\n'
20130515 '    //~ rowParams.bodyStyle = "color:red;background-color:blue";\n'
20130515 "    return 'lino-phantom-row';\n"
20130515 '    }\n'
20130515 "  //~ console.log('20101009 not a phantom:',record);\n"
20130515 "  return '';\n"
20130515 '}\n'
20130515 '\n'
20130515 '//~ FOO = 0;\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.GridStore = Ext.extend(Ext.data.ArrayStore,{ \n'
20130515 '  autoLoad: false\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    if (!options) options = {};\n'
20130515 '    if (!options.params) options.params = {};\n'
20130515 "    options.params.fmt = 'json';\n"
20130515 '    options.params.rp = this.grid_panel.getId();\n'
20130515 '    Lino.insert_subst_user(options.params); // since 20121016\n'
20130515 '      \n'
20130515 '    \n'
20130515 '    if (this.grid_panel.hide_top_toolbar) {\n'
20130515 '        //~ console.log("20120206 GridStore.load() toolbar is hidden");\n'
20130515 '        options.params.start = 0;\n'
20130515 '        if (this.grid_panel.preview_limit) {\n'
20130515 '          options.params.limit = this.grid_panel.preview_limit;\n'
20130515 '        }\n'
20130515 '    } else {\n'
20130515 '        var ps = this.grid_panel.calculatePageSize();\n'
20130515 '        if (!ps) {\n'
20130515 "            //~ this.gridpanel.on('render',this.load())\n"
20130515 '          //~ console.log("20120814 GridStore.load() failed to calculate pagesize");\n'
20130515 '          return false;\n'
20130515 '            //~ params.$URL_PARAM_LIMIT = 1;\n'
20130515 "            //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '            //~ return;\n'
20130515 '        } \n'
20130515 '        options.params.limit = ps;\n'
20130515 '      \n'
20130515 '        //~ options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '        //~ if (this.grid_panel.getTopToolbar().pageSize !=  ps) {\n'
20130515 '          //~ console.log("20120206 abort load because toolbar says pagesize",\n'
20130515 '            //~ this.grid_panel.getTopToolbar().pageSize,\n'
20130515 '            //~ "while actual pagesize is",ps);\n'
20130515 '            //~ return;\n'
20130515 '        //~ }\n'
20130515 '        \n'
20130515 '        this.grid_panel.getTopToolbar().pageSize =  ps;\n'
20130515 '        if (options.params.start == undefined)\n'
20130515 '            options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    this.grid_panel.add_param_values(options.params);\n'
20130515 '    //~ Lino.insert_subst_user(options.params);\n'
20130515 '    //~ console.log("20120814 GridStore.load()",options.params,this.baseParams);\n'
20130515 '    //~ if (FOO > 0) {\n'
20130515 '        //~ foo.bar = baz;\n'
20130515 '    //~ } else FOO += 1;\n'
20130515 '    return Lino.GridStore.superclass.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '    \n'
20130515 'Lino.GridPanel = Ext.extend(Ext.grid.EditorGridPanel,Lino.MainPanel);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,Lino.PanelMixin);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 "  quick_search_text : '',\n"
20130515 '  is_searching : false,\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  clicksToEdit:2,\n'
20130515 '  enableColLock: false,\n'
20130515 '  autoHeight: false,\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  preview_limit : undefined, \n'
20130515 '  //~ loadMask: true,\n'
20130515 '  //~ viewConfig: {\n'
20130515 '          //~ getRowClass: Lino.getRowClass,\n'
20130515 '          //~ emptyText:"$_(\'No data to display.\')"\n'
20130515 '        //~ },\n'
20130515 '  loadMask: {msg:"Please wait..."},\n'
20130515 '  \n'
20130515 '  constructor : function(config){\n'
20130515 '\n'
20130515 '    config.plugins = [new Lino.GridFilters()];\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ console.log("20111206 install refresh");\n'
20130515 "        //~ this.containing_window.on('show',this.refresh,this);\n"
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    //~ return this.store.getCount() > 0; \n'
20130515 '    return !this.loadMask.disabled; \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_config_containing_window : function(wincfg) { \n'
20130515 '      //~ temporarily remove save_grid_config button (see /blog(2012/1107)\n'
20130515 '      if (wincfg.tools != undefined) \n'
20130515 '        wincfg.tools = [\n'
20130515 '          //~ {handler:this.save_grid_data,\n'
20130515 '            //~ qtip:"$_("Save Grid Data")",\n'
20130515 '            //~ scope:this, id:"save_data"}, // 20120814\n'
20130515 '          {handler:this.save_grid_config,\n'
20130515 '            qtip:"Save Grid Configuration",\n'
20130515 '            scope:this, id:"save"}\n'
20130515 '        ].concat(wincfg.tools);\n'
20130515 '      //~ wincfg.listeners = { show: ... };\n'
20130515 '  },\n'
20130515 '  init_containing_window : function(win) { \n'
20130515 '    //~ console.log("20111206 install refresh");\n'
20130515 "    //~ win.on('show',this.refresh,this);\n"
20130515 '  },\n'
20130515 '  \n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    /* \n'
20130515 '    Problem 20111206:\n'
20130515 "    When a GridPanel is the main item of the window, then it doesn't \n"
20130515 "    have it's own header but uses the window's header bar.\n"
20130515 '    We must do this in initComponent because e.g. in beforerender \n'
20130515 "    it's already to late: a header element has been created because \n"
20130515 '    there was a title.\n'
20130515 '    But Lino.Window adds itself as `this.containing_window` \n'
20130515 '    only after the GridPanel has been initialized.\n'
20130515 '    Workaround is to generate a line "params.containing_window = true;" \n'
20130515 '    in the handler function.\n'
20130515 '    */ \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '    if (this.is_main_window) {\n'
20130515 "        //~ console.log(20111206, 'delete title',this.title,'from',this);\n"
20130515 '        //~ delete this.title;\n'
20130515 '        this.tools = undefined;  \n'
20130515 '        this.title = undefined;  /* simply deleting it \n'
20130515 "          isn't enough because that would only \n"
20130515 '          unhide the title defined in some base class. */\n'
20130515 '    } \n'
20130515 "    //~ else console.log(20111206, 'dont delete title',this.title,'from',this);\n"
20130515 '    \n'
20130515 '    /* e.g. when slave gridwindow called from a permalink */\n'
20130515 '    //~ if (this.base_params) Ext.apply(bp,this.base_params);  \n'
20130515 "    //~ bp['fmt'] = 'json';\n"
20130515 '    \n'
20130515 '    //~ function on_proxy_write( proxy, action,data, response,rs,options) {\n'
20130515 "      //~ console.log('20120814 on_proxy_write',action,data,response)\n"
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '    //~ }\n'
20130515 '    //~ function on_proxy_load( proxy, transactionObject, callbackOptions ) {\n'
20130515 "      //~ console.log('on_proxy_load',transactionObject)\n"
20130515 '    //~ }\n'
20130515 '    var proxy = new Ext.data.HttpProxy({ \n'
20130515 '      // 20120814 \n'
20130515 "      url: '/api' + this.ls_url\n"
20130515 '      ,method: "GET"\n'
20130515 "      //~ ,url: ADMIN_URL + '/restful' + this.ls_url\n"
20130515 '      //~ ,restful: true \n'
20130515 '      //~ ,listeners: {load:on_proxy_load} \n'
20130515 '      //~ ,listeners: {write:on_proxy_write} \n'
20130515 '    });\n'
20130515 '    //~ config.store = new Ext.data.JsonStore({ \n'
20130515 '    //~ this.store = new Ext.data.ArrayStore({ \n'
20130515 '    this.store = new Lino.GridStore({ \n'
20130515 '      grid_panel: this\n'
20130515 '      ,listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,remoteSort: true\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      //~ ,id: "id" \n'
20130515 '      ,proxy: proxy\n'
20130515 '      //~ autoLoad: this.containing_window ? true : false\n'
20130515 '      ,idIndex: this.pk_index\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,fields: this.ls_store_fields\n'
20130515 '      ,idProperty: this.ls_id_property \n'
20130515 '      // 20120814\n'
20130515 '      //~ ,writer : new Ext.data.JsonWriter({\n'
20130515 '        //~ writeAllFields: false\n'
20130515 '        //~ ,listful: true\n'
20130515 '      //~ })\n'
20130515 '      //~ ,restful : true\n'
20130515 '    });\n'
20130515 '      \n'
20130515 "    //~ console.log('config.pk_index',config.pk_index,config.store),\n"
20130515 '    delete this.ls_store_fields;\n'
20130515 '      \n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var grid = this;\n'
20130515 "    this.store.on('load', function() {\n"
20130515 "        //~ console.log('20120814 GridStore.on(load)',this_.store);\n"
20130515 '        //~ var da = this_.store.reader.arrayData.disabled_actions;\n'
20130515 '        //~ if (da) {\n'
20130515 '            //~ this.cmenu.cascade(function(item){ \n'
20130515 '              //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '              //~ if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '            //~ });\n'
20130515 '        //~ };\n'
20130515 '        this_.set_param_values(this_.store.reader.arrayData.param_values);\n'
20130515 '        //~ this_.set_status(this_.store.reader.arrayData.status);\n'
20130515 '        //~ 20120918\n'
20130515 '        if (this_.store.reader.arrayData.no_data_text) {\n'
20130515 '            //~ this.viewConfig.emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().refresh();\n'
20130515 '        }\n'
20130515 '        if (this_.containing_window)\n'
20130515 '            this_.set_window_title(this_.store.reader.arrayData.title);\n'
20130515 '            //~ this_.containing_window.setTitle(this_.store.reader.arrayData.title);\n'
20130515 '        if (!this.is_searching) { // disabled 20121025: quick_search_field may not lose focus\n'
20130515 '          this.is_searching = false;\n'
20130515 '          if (this_.selModel.getSelectedCell){\n'
20130515 '              if (this_.getStore().getCount()) // there may be no data\n'
20130515 '                  this_.selModel.select(0,0); \n'
20130515 '          } else {\n'
20130515 '              this_.selModel.selectFirstRow();\n'
20130515 '              this_.getView().focusEl.focus();\n'
20130515 '          }\n'
20130515 '        } \n'
20130515 '        //~ else console.log("is_searching -> no focussing");\n'
20130515 '        //~ var t = this.getTopToolbar();\n'
20130515 '        //~ var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '        //~ this.quick_search_field.focus(); // 20121024\n'
20130515 '      }, this\n'
20130515 '    );\n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar, this.cmenu = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ this.cmenu = new Ext.menu.Menu({items: config.bbar});\n'
20130515 '    delete this.ls_bbar_actions\n'
20130515 '    if (actions) {\n'
20130515 '        this.cmenu = actions.cmenu;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (!this.hide_top_toolbar) {  \n'
20130515 '      var tbar = [ \n'
20130515 '        this.quick_search_field = new Ext.form.TextField({ \n'
20130515 '          //~ fieldLabel: "Search"\n'
20130515 '          listeners: { \n'
20130515 '            scope:this_\n'
20130515 '            //~ ,change:this_.search_change\n'
20130515 '            \n'
20130515 '            ,render: Lino.quicktip_renderer("Quick Search","Enter a text to use as quick search filter")\n'
20130515 '            \n'
20130515 '            //~ ,keypress: this.search_keypress \n'
20130515 '            ,blur: function() { this.is_searching = false}\n'
20130515 '          }\n'
20130515 '          ,validator:function(value) { return this_.search_validate(value) }\n'
20130515 '          //~ ,tooltip: "Enter a quick search text, then press TAB"\n'
20130515 '          //~ value: text\n'
20130515 '          //~ scope:this, \n'
20130515 '          //~ ,enableKeyEvents: true\n'
20130515 '          //~ listeners: { keypress: this.search_keypress }, \n'
20130515 '          //~ id: "seachString" \n'
20130515 '      })];\n'
20130515 '      tbar = this.add_params_panel(tbar);\n'
20130515 '      tbar = tbar.concat([\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[csv]", \n'
20130515 '          tooltip: "Export this table to a .csv file", \n'
20130515 "          iconCls: 'x-tbar-csv',\n"
20130515 '          handler: function() { \n'
20130515 '            //~ 20130116 var p = Ext.apply({},this.get_base_params());\n'
20130515 "            //~ 20130116 p.fmt = 'csv';\n"
20130515 '            //~ url += "?" + Ext.urlEncode(p);\n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "csv";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            \n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        //~ { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          //~ handler: function() { \n'
20130515 '            //~ var p = this.get_current_grid_config();\n'
20130515 '            //~ Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PRINTER";\n'
20130515 '            //~ this.add_param_values(p);\n'
20130515 '            //~ window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          //~ } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          tooltip: "Show this table in plain html", \n'
20130515 "          iconCls: 'x-tbar-html',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ since 20121226 p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PLAIN";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            //~ since 20121226 window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '            window.open(\'/plain\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[pdf]", \n'
20130515 '          tooltip: "Show this table as a pdf document", \n'
20130515 "          iconCls: 'x-tbar-pdf',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "pdf";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } }\n'
20130515 '      ]);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      var menu = [];\n'
20130515 '      var set_gc = function(index) {\n'
20130515 '        return function() {\n'
20130515 "          //~ console.log('set_gc() 20100812');\n"
20130515 '          this.getColumnModel().setConfig(\n'
20130515 '              this.apply_grid_config(index,this.ls_grid_configs,this.ls_columns));\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      for (var i = 0; i < this.ls_grid_configs.length;i++) {\n'
20130515 '        var gc = this.ls_grid_configs[i];\n'
20130515 '        menu.push({text:gc.label,handler:set_gc(i),scope:this})\n'
20130515 '      }\n'
20130515 '      if(menu.length > 1) {\n'
20130515 '        tbar = tbar.concat([\n'
20130515 '          { text:"View",\n'
20130515 '            menu: menu,\n'
20130515 '            tooltip:"Select another view of this report"\n'
20130515 '          }\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      if (actions) {\n'
20130515 '        tbar = tbar.concat(actions.bbar);\n'
20130515 '          //~ this.bbar = actions.bbar;\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      this.tbar = new Ext.PagingToolbar({ \n'
20130515 '        store: this.store, \n'
20130515 '        prependButtons: true, \n'
20130515 '        //~ pageSize: this.page_length, \n'
20130515 '        pageSize: 1, \n'
20130515 '        displayInfo: true, \n'
20130515 '        beforePageText: "Page",\n'
20130515 '        afterPageText: "of {0}",\n'
20130515 '        displayMsg: "Displaying {0} - {1} of {2}",\n'
20130515 '        firstText: "Premi\xc3\xa8re page",\n'
20130515 '        lastText: "Derni\xc3\xa8re page",\n'
20130515 '        prevText: "Page pr\xc3\xa9c\xc3\xa9dente",\n'
20130515 '        nextText: "Page suivante",\n'
20130515 '        items: tbar\n'
20130515 '      });\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ var ps = this.calculatePageSize();\n'
20130515 '          //~ if (ps && ps != this.getTopToolbar().pageSize) {\n'
20130515 "              //~ // console.log('20120203 resize : pageSize',this.getTopToolbar().pageSize,'->',ps);\n"
20130515 '              //~ // this.getTopToolbar().pageSize =  ps;\n'
20130515 '              //~ cmp.refresh();\n'
20130515 '              //~ // this.getTopToolbar().doRefresh();\n'
20130515 '          //~ }\n'
20130515 '        //~ }, this);\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ cmp.getTopToolbar().pageSize = this.calculatePageSize(aw,ah,rw,rh) || 10;\n'
20130515 '          //~ cmp.refresh();\n'
20130515 '        //~ }, this, {delay:500});\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ delete this.page_length\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      \n'
20130515 '    if (this.ls_quick_edit) {\n'
20130515 '      this.selModel = new Ext.grid.CellSelectionModel()\n'
20130515 '      this.get_selected = function() {\n'
20130515 '        //~ console.log(this.getSelectionModel().selection);\n'
20130515 '        if (this.selModel.selection)\n'
20130515 '            return [ this.selModel.selection.record ];\n'
20130515 '        return [this.store.getAt(0)];\n'
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        if (this.getSelectionModel().selection) \n'
20130515 '          return this.selModel.selection.record;\n'
20130515 '        return this.store.getAt(0);\n'
20130515 '      };\n'
20130515 '    } else { \n'
20130515 '      this.selModel = new Ext.grid.RowSelectionModel() \n'
20130515 '      this.get_selected = function() {\n'
20130515 '        var sels = this.selModel.getSelections();\n'
20130515 '        if (sels.length == 0) sels = [this.store.getAt(0)];\n'
20130515 '        return sels\n'
20130515 '        //~ var sels = this.getSelectionModel().getSelections();\n'
20130515 "        //~ return Ext.pluck(sels,'id');\n"
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        var rec = this.selModel.getSelected();\n'
20130515 '        if (rec == undefined) rec = this.store.getAt(0);\n'
20130515 '        return rec\n'
20130515 '      };\n'
20130515 '    };\n'
20130515 '    delete this.ls_quick_edit;\n'
20130515 '    \n'
20130515 '    this.columns  = this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns);\n'
20130515 '    \n'
20130515 '    //~ var grid = this;\n'
20130515 '    //~ this.colModel = new Ext.grid.ColumnModel({\n'
20130515 '      //~ columns: this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns),\n'
20130515 '      //~ isCellEditable: function(col, row) {\n'
20130515 '        //~ var record = grid.store.getAt(row);\n'
20130515 "        //~ console.log('20120514',col,record); // dataIndex\n"
20130515 '        //~ var dataIndex = grid.colModel.getDataIndex(col);\n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("$_("This field is disabled")");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        //~ return Ext.grid.ColumnModel.prototype.isCellEditable.call(this, col, row);\n'
20130515 '      //~ }\n'
20130515 '    //~ });    \n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) \n'
20130515 "        //~ this.on('afterlayout', this.refresh, this);\n"
20130515 "        //~ this.on('afterrender', this.refresh,this);\n"
20130515 '    //~ else\n'
20130515 "        //~ this.on('show', this.refresh,this);\n"
20130515 "    //~ this.on('afterlayout', function() {\n"
20130515 '      //~ if (this.id == "ext-comp-1157") \n'
20130515 '        //~ console.log("20120213 afterlayout",this); \n'
20130515 '      //~ // this.refresh();\n'
20130515 '      //~ },this);\n'
20130515 "    //~ this.on('afterrender', this.refresh);\n"
20130515 "    //~ this.on('resize', this.refresh,this,{delay:500});\n"
20130515 '    //~ this.on(\'resize\', function(){console.log("20120213 resize",arguments)},this);\n'
20130515 "    this.on('resize', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments)\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('viewready', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments);\n'
20130515 '      this.view_is_ready = true;\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('afteredit', this.on_afteredit); // 20120814\n"
20130515 "    //~ this.on('afteredit', this.new_on_afteredit);\n"
20130515 "    this.on('beforeedit', this.on_beforeedit);\n"
20130515 "    this.on('beforeedit',function(e) { this.before_row_edit(e.record)},this);\n"
20130515 "    this.on('cellcontextmenu', Lino.cell_context_menu, this);\n"
20130515 "    //~ this.on('contextmenu', Lino.grid_context_menu, this);\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ if (this.id == "ext-comp-1157") captureEvents(this);    \n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ onResize : function(){\n'
20130515 '      //~ console.log("20120206 GridPanel.onResize",arguments);\n'
20130515 '      //~ Lino.GridPanel.superclass.onResize.apply(this, arguments);\n'
20130515 '      //~ this.refresh();\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '    var st = { base_params : this.get_base_params()};\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '        st.current_page = this.getTopToolbar().current;\n'
20130515 '    }\n'
20130515 '    st.param_values = this.status_param_values;\n'
20130515 '    //~ console.log("20120213 GridPanel.get_status",st);\n'
20130515 '    return st;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.GridPanel.set_status() \n'
20130515 '  */\n'
20130515 '  set_status : function(status){\n'
20130515 '    //~ console.log("20120918 GridPanel.set_status",status);\n'
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) { \n'
20130515 '      this.set_base_params(status.base_params);\n'
20130515 '    }\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '      //~ console.log("20120213 GridPanel.getTopToolbar().changePage",\n'
20130515 '          //~ status.current_page || 1);\n'
20130515 '      this.getTopToolbar().changePage(status.current_page || 1);\n'
20130515 '    }\n'
20130515 "    //~ this.fireEvent('resize');\n"
20130515 '    //~ this.refresh.defer(100,this); \n'
20130515 '    //~ this.onResize.defer(100,this); \n'
20130515 '    //~ this.refresh(); \n'
20130515 '    //~ this.doLayout(); \n'
20130515 '    //~ this.onResize(); \n'
20130515 '    //~ this.store.load();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '    this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ Lino.notify('20120204 Lino.GridPanel.refresh');\n"
20130515 "    //~ Lino.notify('Lino.GridPanel.refresh '+this.store.proxy.url);\n"
20130515 "    //~ var bp = { fmt:'json' }\n"
20130515 '    if (this.containing_panel) {\n'
20130515 '        //~ Ext.apply(p,this.master_panel.get_master_params());\n'
20130515 '        //~ Ext.apply(options.params,this.containing_panel.get_master_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (! this.view_is_ready) return;\n'
20130515 '    \n'
20130515 '    var options = {};\n'
20130515 '    if (after) {\n'
20130515 '        options.callback = function(r,options,success) {if(success) after()}\n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    //~ if (!this.rendered) {\n'
20130515 '        //~ console.log("20120206 GridPanel.refresh() must wait until rendered",options);\n'
20130515 "        //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    this.store.load(options);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* pageSize depends on grid height (Trying to remove scrollbar)\n'
20130515 '  Thanks to \n'
20130515 '  - Christophe Badoit on http://www.sencha.com/forum/showthread.php?82647\n'
20130515 '  - http://www.sencha.com/forum/archive/index.php/t-37231.html\n'
20130515 '  */\n'
20130515 '  calculatePageSize : function(second_attempt) {\n'
20130515 '    //~ if (!this.rendered) { \n'
20130515 '    if (!this.view_is_ready) { \n'
20130515 "      //~ console.log('Cannot calculatePageSize() : not rendered');\n"
20130515 '      return false; }\n'
20130515 '    //~ if (!this.isVisible()) { \n'
20130515 "      //~ console.log('calculatePageSize : not visible');\n"
20130515 '      //~ return false; }\n'
20130515 '      \n'
20130515 "    //~ console.log('getFrameHeight() is',this.getFrameHeight());\n"
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('mainBody.getHeight() is',this.getView().mainBody.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() is',this.getInnerHeight());\n"
20130515 "    //~ console.log('getHeight() is',this.getHeight());\n"
20130515 "    //~ console.log('el.getHeight() is',this.getEl().getHeight());\n"
20130515 "    //~ console.log('getGridEl().getHeight() is',this.getGridEl().getHeight());\n"
20130515 "    //~ console.log('getOuterSize().height is',this.getOuterSize().height);\n"
20130515 "    //~ console.log('getBox().height is',this.getBox().height);\n"
20130515 "    //~ console.log('getResizeEl.getHeight() is',this.getResizeEl().getHeight());\n"
20130515 "    //~ console.log('getLayoutTarget().getHeight() is',this.getLayoutTarget().getHeight());\n"
20130515 '      \n'
20130515 '    var rowHeight = this.getFrameHeight();\n'
20130515 '    //~ var rowHeight = 52; // experimental value\n'
20130515 '    var row = this.view.getRow(0);\n'
20130515 '    if (row) {\n'
20130515 "      //~ console.log('20120213 yes');\n"
20130515 '      rowHeight = Ext.get(row).getHeight();\n'
20130515 '    }\n'
20130515 "    //~ console.log('rowHeight is ',rowHeight,this,caller);\n"
20130515 '    //~ this.getView().syncScroll();\n'
20130515 '    //~ this.getView().initTemplates();\n'
20130515 '    var height = this.getView().scroller.getHeight();\n'
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() - getFrameHeight() is',\n"
20130515 "      //~ this.getInnerHeight(), '-',\n"
20130515 "      //~ this.getFrameHeight(), '=',\n"
20130515 '      //~ this.getInnerHeight() - this.getFrameHeight());\n'
20130515 '    //~ var height = this.getView().mainBody.getHeight();\n'
20130515 '    //~ var height = this.getView().mainWrap.getHeight();\n'
20130515 '    //~ var height = this.getView().resizeMarker.getHeight();\n'
20130515 '    //~ this.syncSize();\n'
20130515 '    //~ var height = this.getInnerHeight() - this.getFrameHeight();\n'
20130515 '    //~ var height = this.getHeight() - this.getFrameHeight();\n'
20130515 '    height -= Ext.getScrollBarWidth(); // leave room for a possible horizontal scrollbar... \n'
20130515 '    //~ height -= this.getView().scrollOffset;\n'
20130515 '    var ps = Math.floor(height / rowHeight);\n'
20130515 "    //~ console.log('20120203 calculatePageSize():',height,'/',rowHeight,'->',ps);\n"
20130515 '    ps -= 1; // leave room for a possible phantom row\n'
20130515 '    //~ return (ps > 1 ? ps : false);\n'
20130515 '    if (ps > 1) return ps;\n'
20130515 "    //~ console.log('calculatePageSize() found less than 1 row:',height,'/',rowHeight,'->',ps);\n"
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    return 5; // preview_limit\n'
20130515 '    //~ if (second_attempt) {\n'
20130515 "        //~ console.log('calculatePageSize() abandons after second attempt:',\n"
20130515 "          //~ height,'/',rowHeight,'->',ps);\n"
20130515 '      //~ return 5;\n'
20130515 '    //~ }\n'
20130515 '    //~ return this.calculatePageSize.defer(500,this,[true]);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  onCellDblClick : function(grid, row, col){\n'
20130515 '      //~ console.log("20120307 onCellDblClick",this,grid, row, col);\n'
20130515 '      if (this.ls_detail_handler) {\n'
20130515 "          //~ Lino.notify('show detail');\n"
20130515 '          Lino.show_detail(this);\n'
20130515 '          return false;\n'
20130515 '      }else{\n'
20130515 "        //~ console.log('startEditing');\n"
20130515 '        this.startEditing(row,col);\n'
20130515 '      }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_base_params : function() {\n'
20130515 '    //~ return this.containing_window.config.base_params;\n'
20130515 '    //~ console.log(20120717,this.store.baseParams);\n'
20130515 '    var p = Ext.apply({},this.store.baseParams);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    //~ console.log("20120717 GRidPanel.get_base_params() returns",p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.store.baseParams;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 "    //~ console.log('GridPanel.set_base_params',p)\n"
20130515 '    for (k in p) this.store.setBaseParam(k,p[k]);\n'
20130515 '    //~ this.store.baseParams = p;\n'
20130515 '    if (p.query) \n'
20130515 '        this.quick_search_field.setValue(p.query);\n'
20130515 '    //~ if (p.param_values) \n'
20130515 '        //~ this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.store.baseParams = {};\n'
20130515 '      Lino.insert_subst_user(this.store.baseParams);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.store.setBaseParam(k,v);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ get_permalink_params : function() {\n'
20130515 '    //~ var p = {};\n'
20130515 '    //~ return p;\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '    \n'
20130515 '  //~ search_keypress : function(){\n'
20130515 '    //~ console.log("2012124 search_keypress",arguments);\n'
20130515 '  //~ },\n'
20130515 '  search_validate : function(value) {\n'
20130515 '    if (value == this.quick_search_text) return true;\n'
20130515 '    this.is_searching = true;\n'
20130515 "    //~ console.log('search_validate',value)\n"
20130515 '    this.quick_search_text = value;\n'
20130515 "    this.set_base_param('query',value); \n"
20130515 '    //~ this.getTopToolbar().changePage(1);\n'
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '    return true;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  apply_grid_config : function(index,grid_configs,rpt_columns) {\n'
20130515 '    //~ var rpt_columns = this.ls_columns;\n'
20130515 '    var gc = grid_configs[index];    \n'
20130515 "    //~ console.log('apply_grid_config() 20100812',name,gc);\n"
20130515 '    this.gc_name = index;\n'
20130515 '    if (gc == undefined) {\n'
20130515 '      return rpt_columns;\n'
20130515 '      //~ config.columns = config.ls_columns;\n'
20130515 '      //~ return;\n'
20130515 '    } \n'
20130515 '    //~ delete config.ls_filters\n'
20130515 '    \n'
20130515 '    //~ console.log(20100805,config.ls_columns);\n'
20130515 '    var columns = Array(gc.columns.length);\n'
20130515 '    for (var j = 0; j < rpt_columns.length;j++) {\n'
20130515 '      var col = rpt_columns[j];\n'
20130515 '      for (var i = 0; i < gc.columns.length; i++) {\n'
20130515 '        if (col.dataIndex == gc.ci[i]) {\n'
20130515 '          col.width = gc.cw[i];\n'
20130515 '          col.hidden = gc.ch[i];\n'
20130515 '          columns[i] = col;\n'
20130515 '          break;\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ var columns = Array(rpt_columns.length);\n'
20130515 '    //~ for (var i = 0; i < rpt_columns.length; i++) {\n'
20130515 '      //~ columns[i] = rpt_columns[gc.columns[i]];\n'
20130515 '      //~ columns[i].width = gc.widths[i];\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    //~ if (gc.hidden_cols) {\n'
20130515 '      //~ for (var i = 0; i < gc.hidden_cols.length; i++) {\n'
20130515 '        //~ var hc = gc.hidden_cols[i];\n'
20130515 '        //~ for (var j = 0; j < columns.length;j++) {\n'
20130515 '          //~ var col = columns[j];\n'
20130515 '          //~ if (col.dataIndex == hc) {\n'
20130515 '            //~ col.hidden = true;\n'
20130515 '            //~ break\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '    if (gc.filters) {\n'
20130515 "      //~ console.log(20100811,'config.ls_filters',config.ls_filters);\n"
20130515 "      //~ console.log(20100811,'config.ls_grid_config.filters',config.ls_grid_config.filters);\n"
20130515 '      for (var i = 0; i < gc.filters.length; i++) {\n'
20130515 '        var fv = gc.filters[i];\n'
20130515 '        for (var j = 0; j < columns.length;j++) {\n'
20130515 '          var col = columns[j];\n'
20130515 '          if (col.dataIndex == fv.field) {\n'
20130515 "            //~ console.log(20100811, f,' == ',fv);\n"
20130515 "            if (fv.type == 'string') {\n"
20130515 '              col.filter.value = fv.value;\n'
20130515 '              //~ if (fv.comparison !== undefined) f.comparison = fv.comparison;\n'
20130515 '            } else {\n'
20130515 '              //~ console.log(20100811, fv);\n'
20130515 '              col.filter.value = {};\n'
20130515 '              col.filter.value[fv.comparison] = fv.value;\n'
20130515 '            }\n'
20130515 '            break;\n'
20130515 '          }\n'
20130515 '        };\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    return columns;\n'
20130515 '    //~ config.columns = cols;\n'
20130515 '    //~ delete config.ls_columns\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_current_grid_config : function () {\n'
20130515 '    var cm = this.getColumnModel();\n'
20130515 '    var widths = Array(cm.config.length);\n'
20130515 '    var hiddens = Array(cm.config.length);\n'
20130515 '    //~ var hiddens = Array(cm.config.length);\n'
20130515 '    var columns = Array(cm.config.length);\n'
20130515 '    //~ var columns = Array(cm.config.length);\n'
20130515 '    //~ var hidden_cols = [];\n'
20130515 '    //~ var filters = this.filters.getFilterValues();\n'
20130515 '    var p = this.filters.buildQuery(this.filters.getFilterData())\n'
20130515 '    for (var i = 0; i < cm.config.length; i++) {\n'
20130515 '      var col = cm.config[i];\n'
20130515 '      columns[i] = col.dataIndex;\n'
20130515 '      //~ hiddens[i] = col.hidden;\n'
20130515 '      widths[i] = col.width;\n'
20130515 '      hiddens[i] = col.hidden;\n'
20130515 '      //~ if (col.hidden) hidden_cols.push(col.dataIndex);\n'
20130515 '    }\n'
20130515 "    //~ p['hidden_cols'] = hidden_cols;\n"
20130515 '    p.cw = widths;\n'
20130515 '    p.ch = hiddens;\n'
20130515 '    p.ci = columns;\n'
20130515 "    //~ p['widths'] = widths;\n"
20130515 "    //~ p['hiddens'] = hiddens;\n"
20130515 "    //~ p['columns'] = columns;\n"
20130515 "    p['name'] = this.gc_name;\n"
20130515 '    //~ var gc = this.ls_grid_configs[this.gc_name];\n'
20130515 '    //~ if (gc !== undefined) \n'
20130515 "        //~ p['label'] = gc.label\n"
20130515 "    //~ console.log('20100810 save_grid_config',p);\n"
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_manage_grid_configs : function() {\n'
20130515 '    var data = [];\n'
20130515 '    for (k in this.ls_grid_configs) {\n'
20130515 '      var v = this.ls_grid_configs[k];\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i)\n'
20130515 '    }\n'
20130515 '    if (this.ls_grid_configs[this.gc_name] == undefined) {\n'
20130515 '      var v = this.get_current_grid_config();\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i);\n'
20130515 '    }\n'
20130515 '    //~ console.log(20100811, data);\n'
20130515 '    var main = new Ext.grid.GridPanel({\n'
20130515 '      store: new Ext.data.ArrayStore({\n'
20130515 '        idIndex:0,\n'
20130515 "        fields:['name','columns','hidden_cols','filters'],\n"
20130515 '        autoDestroy:true,\n'
20130515 '        data: data}),\n'
20130515 '      //~ autoHeight:true,\n'
20130515 '      selModel: new Ext.grid.RowSelectionModel(),\n'
20130515 '      listeners: { \n'
20130515 '        rowdblclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row doubleclicked',grid, rowIndex,e);\n"
20130515 '        },\n'
20130515 '        rowclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row clicked',grid, rowIndex,e);\n"
20130515 '        }\n'
20130515 '      },\n'
20130515 '      columns: [ \n'
20130515 "        {dataIndex:'name',header:'Name'}, \n"
20130515 "        {dataIndex:'columns',header:'columns'}, \n"
20130515 "        {dataIndex:'hidden_cols',header:'hidden columns'}, \n"
20130515 "        {dataIndex:'filters',header:'filters'} \n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 "    var win = new Ext.Window({title:'GridConfigs Manager',layout:'fit',items:main,height:200});\n"
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_edit_grid_config : function(name) {\n'
20130515 '    gc = this.ls_grid_configs[name];\n'
20130515 '    var win = new Ext.Window({\n'
20130515 "      title:'Edit Grid Config',layout:'vbox', \n"
20130515 "      //~ layoutConfig:'stretch'\n"
20130515 '      items:[\n'
20130515 "        {xtype:'text', value: gc.name},\n"
20130515 "        {xtype:'text', value: gc.columns},\n"
20130515 "        {xtype:'text', value: gc.hidden_cols},\n"
20130515 "        {xtype:'text', value: gc.filters}\n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  save_grid_config : function () {\n'
20130515 "    //~ console.log('TODO: save_grid_config',this);\n"
20130515 "    //~ p.column_widths = Ext.pluck(this.colModel.columns,'width');\n"
20130515 '    var a = { \n'
20130515 '      params:this.get_current_grid_config(), \n'
20130515 "      method:'PUT',\n"
20130515 "      url:'/grid_config' + this.ls_url,\n"
20130515 '      success: Lino.action_handler(this),\n'
20130515 '      scope: this,\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    //~ Lino.do_action(this,a);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_beforeedit : function(e) {\n'
20130515 "    //~ console.log('20130128 GridPanel.on_beforeedit()',e,e.record.data.disable_editing);\n"
20130515 '    if(this.disable_editing | e.record.data.disable_editing) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This record is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    if(e.record.data.disabled_fields && e.record.data.disabled_fields[e.field]) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This field is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    //~ if (e.record.data.disabled_fields) {\n'
20130515 '      //~ for (i in e.record.data.disabled_fields) {\n'
20130515 '        //~ if(e.record.data.disabled_fields[i] == e.field) {\n'
20130515 '          //~ e.cancel = true;\n'
20130515 '          //~ Lino.notify(String.format(\'Field "{0}" is disabled for this record\',e.field));\n'
20130515 '          //~ return\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  save_grid_data : function() {\n'
20130515 '      //~ console.log("20120814 save_grid_data");\n'
20130515 '      this.getStore().commitChanges();\n'
20130515 '  },\n'
20130515 '  new_on_afteredit : function(e) {\n'
20130515 '      //~ this.getStore().commitChanges();\n'
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '      console.log("20120814 new_on_afteredit",e);\n'
20130515 '  },\n'
20130515 '  on_afteredit : function(e) {\n'
20130515 '    /*\n'
20130515 '    e.grid - The grid that fired the event\n'
20130515 '    e.record - The record being edited\n'
20130515 '    e.field - The field name being edited\n'
20130515 '    e.value - The value being set\n'
20130515 '    e.originalValue - The original value for the field, before the edit.\n'
20130515 '    e.row - The grid row index\n'
20130515 '    e.column - The grid column index\n'
20130515 '    */\n'
20130515 '    var p = {};\n'
20130515 "    //~ console.log('20101130 modified: ',e.record.modified);\n"
20130515 "    //~ console.log('20101130 value: ',e.value);\n"
20130515 '    //~ var p = e.record.getChanges();\n'
20130515 "    //~ console.log('20101130 getChanges: ',e.record.getChanges());\n"
20130515 '    //~ this.before_row_edit(e.record);\n'
20130515 '    for(k in e.record.getChanges()) {\n'
20130515 '        var v = e.record.get(k);\n'
20130515 '    //~ for(k in e.record.modified) {\n'
20130515 "        //~ console.log('20101130',k,'=',v);\n"
20130515 '        //~ var cm = e.grid.getColumnModel();\n'
20130515 '        //~ var di = cm.getDataIndex(k);\n'
20130515 '        var f = e.record.fields.get(k);\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 '        //~ var v = e.record.get(di);\n'
20130515 "        if (f.type.type == 'date') {\n"
20130515 '            p[k] = Ext.util.Format.date(v, f.dateFormat);\n'
20130515 '        }else{\n'
20130515 '            p[k] = v;\n'
20130515 "            var v = e.record.get(k+'Hidden');\n"
20130515 '            if (v !== undefined) {\n'
20130515 "              p[k+'Hidden'] = v;\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        //~ var i = cm.findColumnIndex(k);\n'
20130515 '        //~ var r = cm.getRenderer(i);\n'
20130515 '        //~ var editor = cm.getCellEditor(i,e.row);\n'
20130515 '        //~ var col = e.grid.getColumnModel().getColumnById(k);\n'
20130515 "        //~ console.log('20101130 r = ',r(v));\n"
20130515 '        //~ var f = e.record.fields[k];\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 "        //~ console.log('20101130 editor = ',editor);\n"
20130515 '        //~ p[k] = f.getValue();\n'
20130515 '        //~ p[k] = r(v);\n'
20130515 '    }\n'
20130515 "    //~ console.log('20101130 p:',p);\n"
20130515 '    //~ var cm = e.grid.getColumnModel();\n'
20130515 '    //~ var di = cm.getDataIndex(e.column);\n'
20130515 '    //~ var f = e.record.fields.get(di);\n'
20130515 "    //~ console.log('20101130 f = ',f);\n"
20130515 "    //~ if (f.type.type == 'date') e.record.set(di,Ext.util.Format.date(e.value, f.dateFormat));\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var p = e.record.data;\n'
20130515 '    \n'
20130515 '    // var p = {};\n'
20130515 "    //~ p['grid_afteredit_colname'] = e.field;\n"
20130515 '    //~ p[e.field] = e.value;\n'
20130515 "    //~ console.log('20100723 GridPanel.on_afteredit()',e);\n"
20130515 '    // add value used by ForeignKeyStoreField CHOICES_HIDDEN_SUFFIX\n'
20130515 '    // not sure whether this is still needed:\n'
20130515 "    p[e.field+'Hidden'] = e.value;\n"
20130515 '    //~ p.su = Lino.subst_user;\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    // this one is needed so that this field can serve as choice context:\n'
20130515 "    e.record.data[e.field+'Hidden'] = e.value;\n"
20130515 '    // p[pk] = e.record.data[pk];\n'
20130515 '    // console.log("grid_afteredit:",e.field,\'=\',e.value);\n'
20130515 '    Ext.apply(p,this.get_base_params()); // needed for POST, ignored for PUT\n'
20130515 '    //~ Ext.apply(p,this.containing_window.config.base_params);\n'
20130515 "    //~ 20121109 p['$ext_requests.URL_PARAM_ACTION_NAME'] = 'grid';\n"
20130515 '    var self = this;\n'
20130515 '    var req = {\n'
20130515 '        params:p,\n'
20130515 "        waitMsg: 'Saving your data...',\n"
20130515 '        success: Lino.action_handler( this, function(result) {\n'
20130515 '          //~ if (result.data_record) {\n'
20130515 '          if (result.refresh_all) {\n'
20130515 '              var cw = self.get_containing_window();\n'
20130515 '              if (cw) {\n'
20130515 '                  cw.main_item.refresh();\n'
20130515 '              }\n'
20130515 '              else console.log("20120123 cannot refresh_all",self);\n'
20130515 '          } else if (result.rows) {\n'
20130515 '              //~ self.getStore().loadData(result,true);\n'
20130515 '              var r = self.getStore().reader.readRecords(result);\n'
20130515 '              if (e.record.phantom) {\n'
20130515 '                  //~ console.log("20120816 afteredit.success POST",r);\n'
20130515 '                  self.getStore().insert(e.row,r.records);\n'
20130515 '              }else{\n'
20130515 '                  //~ console.log("20120816 afteredit.success PUT",r);\n'
20130515 '                  self.getStore().doUpdate(r.records[0]);\n'
20130515 '              }\n'
20130515 '              self.getStore().rejectChanges(); /* \n'
20130515 '              get rid of the red triangles without saving the record again\n'
20130515 '              */\n'
20130515 '              //~ self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '          } else {\n'
20130515 '              self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '              self.getStore().reload();        // reload our datastore.\n'
20130515 '          }\n'
20130515 '          }),\n'
20130515 '        scope: this,\n'
20130515 '        failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    if (e.record.phantom) {\n'
20130515 "      req.params.an = 'post'; // SubmitInsert.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'POST',\n"
20130515 "        url: '/api' + this.ls_url\n"
20130515 '      });\n'
20130515 '    } else {\n'
20130515 "      req.params.an = 'put'; // SubmitDetail.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'PUT',\n"
20130515 "        url: '/api' + this.ls_url + '/' + e.record.id\n"
20130515 '      });\n'
20130515 '    }\n'
20130515 "    //~ console.log('20110406 on_afteredit',req);\n"
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(req);\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  afterRender : function() {\n'
20130515 '    Lino.GridPanel.superclass.afterRender.call(this);\n'
20130515 '    // this.getView().mainBody.focus();\n'
20130515 '    // console.log(20100114,this.getView().getRows());\n'
20130515 '    // if (this.getView().getRows().length > 0) {\n'
20130515 '    //  this.getView().focusRow(1);\n'
20130515 '    // }\n'
20130515 '    //~ this.my_load_mask = new Ext.LoadMask(this.getEl(), {\n'
20130515 '        //~ msg:\'$_("Please wait...")\',\n'
20130515 '        //~ store:this.store});\n'
20130515 '      \n'
20130515 '    var tbar = this.getTopToolbar();\n'
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 "    // tbar.on('change',function() {this.getSelectionModel().selectFirstRow();this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 '    this.nav = new Ext.KeyNav(this.getEl(),{\n'
20130515 '      pageUp: function() {tbar.movePrevious(); },\n'
20130515 '      pageDown: function() {tbar.moveNext(); },\n'
20130515 '      home: function() {tbar.moveFirst(); },\n'
20130515 '      end: function() {tbar.moveLast(); },\n'
20130515 '      scope: this\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  after_delete : function() {\n'
20130515 "    //~ console.log('Lino.GridPanel.after_delete');\n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  add_row_listener : function(fn,scope) {\n'
20130515 "    this.getSelectionModel().addListener('rowselect',fn,scope);\n"
20130515 '  },\n'
20130515 '  postEditValue : function(value, originalValue, r, field){\n'
20130515 '    value = Lino.GridPanel.superclass.postEditValue.call(this,value,originalValue,r,field);\n'
20130515 "    //~ console.log('GridPanel.postEdit()',value, originalValue, r, field);\n"
20130515 '    return value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_start_value : function(v) {\n'
20130515 '      this.start_value = v;\n'
20130515 '  },\n'
20130515 '  preEditValue : function(r, field){\n'
20130515 '      if (this.start_value) {\n'
20130515 '        var v = this.start_value;\n'
20130515 '        delete this.start_value;\n'
20130515 '        this.activeEditor.selectOnFocus = false;\n'
20130515 '        return v;\n'
20130515 '      }\n'
20130515 '      var value = r.data[field];\n'
20130515 '      return this.autoEncode && Ext.isString(value) ? Ext.util.Format.htmlDecode(value) : value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_master_changed : function() {\n'
20130515 '    //~ if (! this.enabled) return;\n'
20130515 '    //~ cmp = this;\n'
20130515 "    //~ console.log('Lino.GridPanel.on_master_changed()',this.title);\n"
20130515 '    if (! this.rendered) return; // 20120213\n'
20130515 '    var todo = function() {\n'
20130515 '      if (this.disabled) return;\n'
20130515 '      //~ if (this.disabled) return;\n'
20130515 '      //~ if (this.enabled) {\n'
20130515 '          //~ var src = caller.config.url_data + "/" + record.id + ".jpg"\n'
20130515 '          //~ console.log(20111125, this.containing_window);\n'
20130515 '          //~ for (k in p) this.getStore().setBaseParam(k,p[k]);\n'
20130515 "          //~ console.log('Lino.GridPanel.on_master_changed()',this.title,p);\n"
20130515 '          this.refresh();\n'
20130515 '          //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '          //~ this.getStore().load(); \n'
20130515 '      //~ }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '  \n'
20130515 '\n'
20130515 '//~ Lino.MainPanelMixin = {\n'
20130515 '  //~ tbar_items : function() {\n'
20130515 '      //~ return ;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.override(Lino.GridPanel,Lino.MainPanelMixin);\n'
20130515 '//~ Ext.override(Lino.FormPanel,Lino.MainPanelMixin);\n'
20130515 '\n'
20130515 '//~ Lino.grid_context_menu = function(e) {\n'
20130515 "  //~ console.log('contextmenu',arguments);\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.cell_context_menu = function(grid,row,col,e) {\n'
20130515 "  //~ console.log('20120531 cellcontextmenu',grid,row,col,e,grid.store.reader.arrayData.rows[row]);\n"
20130515 '  e.stopEvent();\n'
20130515 '  //~ grid.getView().focusCell(row,col);\n'
20130515 '  grid.getSelectionModel().select(row,col);\n'
20130515 '  //~ console.log(grid.store.getAt(row));\n'
20130515 '  //~ grid.getView().focusRow(row);\n'
20130515 '  //~ return;\n'
20130515 '  if(!grid.cmenu.el){grid.cmenu.render(); }\n'
20130515 '  //~ if(e.record.data.disabled_fields) {\n'
20130515 '  \n'
20130515 '  var da = grid.store.reader.arrayData.rows[row][grid.disabled_actions_index];\n'
20130515 '  if (da) {\n'
20130515 '      this.cmenu.cascade(function(item){ \n'
20130515 '        //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '        if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  \n'
20130515 '  var xy = e.getXY();\n'
20130515 '  xy[1] -= grid.cmenu.el.getHeight();\n'
20130515 '  grid.cmenu.showAt(xy);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.load_main_menu = function() {\n'
20130515 '  //~ Ext.Ajax.request({\n'
20130515 "    //~ waitMsg: 'Loading main menu...',\n"
20130515 "    //~ method: 'GET',\n"
20130515 "    //~ url: '/menu',\n"
20130515 '    //~ success: Lino.on_load_menu,\n'
20130515 '    //~ failure: Lino.ajax_error_handler\n'
20130515 '  //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.SlavePlugin = function(caller) {\n'
20130515 '  //~ this.caller = caller;\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.chooser_handler = function(combo,name) {\n'
20130515 '  return function(cmp,newValue,oldValue) {\n'
20130515 "    //~ console.log('Lino.chooser_handler()',cmp,oldValue,newValue);\n"
20130515 '    combo.setContextValue(name,newValue);\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ComboBox = Ext.extend(Ext.form.ComboBox,{\n'
20130515 '  forceSelection: true,\n'
20130515 "  triggerAction: 'all',\n"
20130515 '  minListWidth:230,\n'
20130515 '  autoSelect: false,\n'
20130515 '  selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  submitValue: true,\n'
20130515 "  displayField: 'text', // 'text', \n"
20130515 "  valueField: 'value', // 'value',\n"
20130515 '  \n'
20130515 '  //~ initComponent : Ext.form.ComboBox.prototype.initComponent.createSequence(function() {\n'
20130515 '  initComponent : function(){\n'
20130515 '      this.contextParams = {};\n'
20130515 '      //~ Ext.form.ComboBox.initComponent(this);\n'
20130515 '      Lino.ComboBox.superclass.initComponent.call(this);\n'
20130515 '  },\n'
20130515 '  setValue : function(v,record_data){\n'
20130515 '      /*\n'
20130515 '      Based on feature request developed in http://extjs.net/forum/showthread.php?t=75751\n'
20130515 '      */\n'
20130515 '      /* `record_data` is used to get the text corresponding to this value */\n'
20130515 "      //~ if(this.name == 'city') \n"
20130515 "      //~ console.log('20120203', this.name,'.setValue(', v ,') this=', this,'record_data=',record_data);\n"
20130515 '      var text = v;\n'
20130515 '      if(this.valueField){\n'
20130515 "        if(v == null || v == '') { \n"
20130515 "            //~ if (this.name == 'birth_country') \n"
20130515 "                //~ console.log(this.name,'.setValue',v,'no lookup needed, value is empty');\n"
20130515 '            //~ v = undefined;\n'
20130515 "            v = '';\n"
20130515 "            //~ text = '';\n"
20130515 '        } else if (Ext.isDefined(record_data)) {\n'
20130515 '          text = record_data[this.name];\n'
20130515 "          //~ if (this.name == 'birth_country') \n"
20130515 "            //~ console.log(this.name,'.setValue',v,'got text ',text,' from record ',record);\n"
20130515 '        } else {\n'
20130515 "          // if(this.mode == 'remote' && !Ext.isDefined(this.store.totalLength)){\n"
20130515 "          if(this.mode == 'remote' && ( this.lastQuery === null || (!Ext.isDefined(this.store.totalLength)))){\n"
20130515 "              //~ if (this.name == 'birth_country') console.log(this.name,'.setValue',v,'store not yet loaded');\n"
20130515 "              this.store.on('load', this.setValue.createDelegate(this, arguments), null, {single: true});\n"
20130515 '              if(this.store.lastOptions === null || this.lastQuery === null){\n'
20130515 '                  var params;\n'
20130515 '                  if(this.valueParam){\n'
20130515 '                      params = {};\n'
20130515 '                      params[this.valueParam] = v;\n'
20130515 '                  }else{\n'
20130515 '                      var q = this.allQuery;\n'
20130515 '                      this.lastQuery = q;\n'
20130515 '                      this.store.setBaseParam(this.queryParam, q);\n'
20130515 '                      params = this.getParams(q);\n'
20130515 '                  }\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : call load() with params ',params);\n"
20130515 '                  this.store.load({params: params});\n'
20130515 '              //~ }else{\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : but store is loading',this.store.lastOptions);\n"
20130515 '              }\n'
20130515 '              return;\n'
20130515 '          //~ }else{\n'
20130515 "              //~ if (this.name == 'birth_country') \n"
20130515 '                //~ console.log(this.name,\'.setValue\',v,\' : store is loaded, lastQuery is "\',this.lastQuery,\'"\');\n'
20130515 '          }\n'
20130515 '          var r = this.findRecord(this.valueField, v);\n'
20130515 '          if(r){\n'
20130515 '              text = r.data[this.displayField];\n'
20130515 '          }else if(this.valueNotFoundText !== undefined){\n'
20130515 '              text = this.valueNotFoundText;\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      this.lastSelectionText = text;\n'
20130515 '      //~ this.lastSelectionText = v;\n'
20130515 '      if(this.hiddenField){\n'
20130515 '          //~ this.hiddenField.originalValue = v;\n'
20130515 '          this.hiddenField.value = v;\n'
20130515 '      }\n'
20130515 '      Ext.form.ComboBox.superclass.setValue.call(this, text);\n'
20130515 '      this.value = v; // needed for grid.afteredit\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  getParams : function(q){\n'
20130515 '    // p = Ext.form.ComboBox.superclass.getParams.call(this, q);\n'
20130515 '    // causes "Ext.form.ComboBox.superclass.getParams is undefined"\n'
20130515 '    var p = {};\n'
20130515 '    //p[this.queryParam] = q;\n'
20130515 '    if(this.pageSize){\n'
20130515 '        //~ p.start = 0;\n'
20130515 '        //~ p.limit = this.pageSize;\n'
20130515 "        p['start'] = 0;\n"
20130515 "        p['limit'] = this.pageSize;\n"
20130515 '    }\n'
20130515 '    // now my code:\n'
20130515 '    if(this.contextParams) Ext.apply(p,this.contextParams);\n'
20130515 '    //~ if(this.contextParams && this.contextValues) {\n'
20130515 '      //~ for(i = 0; i <= this.contextParams.length; i++)\n'
20130515 '        //~ p[this.contextParams[i]] = this.contextValues[i];\n'
20130515 '    //~ }\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  setContextValue : function(name,value) {\n'
20130515 "    //~ console.log('setContextValue',this,this.name,':',name,'=',value);\n"
20130515 '    //~ if (this.contextValues === undefined) {\n'
20130515 '        //~ this.contextValues = Array(); // this.contextParams.length);\n'
20130515 '    //~ }\n'
20130515 '    if (this.contextParams[name] != value) {\n'
20130515 "      //~ console.log('setContextValue 1',this.contextParams);\n"
20130515 '      this.contextParams[name] = value;\n'
20130515 '      this.lastQuery = null;\n'
20130515 "      //~ console.log('setContextValue 2',this.contextParams);\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ChoicesFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'local'\n"
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  forceSelection: true,\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.SimpleRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value' ], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ComplexRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.ComplexRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value','text'], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.RemoteComboFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'remote',\n"
20130515 '  //~ forceSelection:false,\n'
20130515 '  minChars: 2, // default 4 is too much\n'
20130515 '  queryDelay: 300, // default 500 is maybe slow\n'
20130515 "  queryParam: 'query', \n"
20130515 '  //~ typeAhead: true,\n'
20130515 '  //~ selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  resizable: true\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Thanks to Animal for posting the basic idea:\n'
20130515 'http://www.sencha.com/forum/showthread.php?15842-2.0-SOLVED-Combobox-twintrigger-clear&p=76130&viewfull=1#post76130\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Lino.TwinCombo = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "    trigger2Class : 'x-form-search-trigger',\n"
20130515 "    //~ trigger2Class : 'x-tbar-detail',\n"
20130515 '    initComponent : function() {\n'
20130515 '        //~ Lino.TwinCombo.superclass.initComponent.call(this);\n'
20130515 '        Lino.ComboBox.prototype.initComponent.call(this);\n'
20130515 '        Ext.form.TwinTriggerField.prototype.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    onTrigger2Click : function() {\n'
20130515 "        //~ console.log('onTrigger2Click',this,arguments);\n"
20130515 '    }\n'
20130515 '  });\n'
20130515 '//~ Lino.TwinCombo.prototype.initComponent = Ext.form.TwinTriggerField.prototype.initComponent;\n'
20130515 'Lino.TwinCombo.prototype.getTrigger = Ext.form.TwinTriggerField.prototype.getTrigger;\n'
20130515 'Lino.TwinCombo.prototype.getOuterSize = Ext.form.TwinTriggerField.prototype.getOuterSize;\n'
20130515 'Lino.TwinCombo.prototype.initTrigger = Ext.form.TwinTriggerField.prototype.initTrigger;\n'
20130515 'Lino.TwinCombo.prototype.onTrigger1Click = Ext.form.ComboBox.prototype.onTriggerClick;\n'
20130515 '//~ Lino.TwinCombo.prototype.onTrigger2Click = function() {\n'
20130515 "    //~ console.log('onTrigger2Click',arguments);\n"
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboFieldElement = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "  displayField: 'value', \n"
20130515 '  valueField: null,\n'
20130515 '  forceSelection: false\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Window = Ext.extend(Ext.Window,{\n'
20130515 '  //~ layout: "fit", \n'
20130515 "  closeAction : 'hide',\n"
20130515 "  renderTo: 'main_area', \n"
20130515 '  constrain: true,\n'
20130515 '  maximized: true,\n'
20130515 '  draggable: false,\n'
20130515 '  width: 700,\n'
20130515 '  height: 500,\n'
20130515 '  maximizable: false,\n'
20130515 '  constructor : function (config) {\n'
20130515 '    if (config.main_item.params_panel) {\n'
20130515 "        config.layout = 'border';\n"
20130515 "        config.main_item.region = 'center';\n"
20130515 "        config.main_item.params_panel.region = 'north';\n"
20130515 '        config.main_item.params_panel.hidden = config.main_item.params_panel_hidden;\n'
20130515 '        config.items = [config.main_item.params_panel, config.main_item];\n'
20130515 '    } else {\n'
20130515 "        config.layout = 'fit';\n"
20130515 '        config.items = config.main_item;\n'
20130515 '    }\n'
20130515 '    this.main_item = config.main_item; \n'
20130515 '    \n'
20130515 '    delete config.main_item;\n'
20130515 '    //~ delete config.params_item;\n'
20130515 '    \n'
20130515 '    //~ this.main_item = config.items.get(0);\n'
20130515 '    this.main_item.containing_window = this;\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 1');\n"
20130515 '    //~ if (Lino.current_window) { // all windows except the top are closable\n'
20130515 '    if (this.main_item.hide_window_title) { \n'
20130515 '      config.closable = false;\n'
20130515 '      config.frame = false;\n'
20130515 '      config.shadow = false;\n'
20130515 '      //~ config.border = true;\n'
20130515 '      //~ config.title = undefined;\n'
20130515 '      //~ config.tools = null;\n'
20130515 '      delete config.title;\n'
20130515 '      delete config.tools;\n'
20130515 '    } else {\n'
20130515 '      config.title = this.main_item.empty_title;\n'
20130515 '      config.closable = true;\n'
20130515 '      config.tools = [ \n'
20130515 '        { qtip: \'permalink\', handler: Lino.permalink_handler(this), id: "pin" }\n'
20130515 '      ];\n'
20130515 "      if (this.main_item.content_type && this.main_item.action_name != 'insert') {\n"
20130515 '        config.tools = [ {\n'
20130515 '          handler: Lino.help_text_editor,\n'
20130515 '          qtip: "Edit help texts for fields on this model.",\n'
20130515 '          scope: this.main_item,\n'
20130515 '          id: "gear"\n'
20130515 '        }].concat(config.tools);\n'
20130515 '      }\n'
20130515 '        \n'
20130515 '    //~ { qtip: \'\', handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: this.config.qtip, handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: \'Call doLayout() on main Container.\', handler: Lino.refresh_handler(this), id: "refresh" },\n'
20130515 '    //~ if (this.main_item.params_panel) {\n'
20130515 '        //~ config.tools = config.tools.concat([ \n'
20130515 '          //~ { qtip: \'Show/hide parameter panel\', handler: this.toggle_params_panel, id: "gear", scope:this } \n'
20130515 '        //~ ]);\n'
20130515 '    //~ }\n'
20130515 '    //~ if (config.closable !== false) {\n'
20130515 '      // if undefined, will take default behaviour\n'
20130515 '      //~ config.tools = config.tools.concat([ \n'
20130515 '        //~ { qtip: \'close\', handler: this.hide, id: "close", scope:this } \n'
20130515 '      //~ ]);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    this.main_item.config_containing_window(config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 2');\n"
20130515 '    Lino.Window.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 3');\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.main_item.init_containing_window(this);\n'
20130515 '    Lino.Window.superclass.initComponent.call(this);\n'
20130515 '  \n'
20130515 '  },\n'
20130515 '  hide : function() { \n'
20130515 '      this.main_item.do_when_clean(false,function() { \n'
20130515 '        Lino.close_window(); });\n'
20130515 '  },\n'
20130515 '  hide_really : function() { \n'
20130515 '    Lino.Window.superclass.hide.call(this);\n'
20130515 '  },\n'
20130515 '  onRender : function(ct, position){\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 1');\n"
20130515 '    Lino.Window.superclass.onRender.call(this, ct, position);\n'
20130515 "    var main_area = Ext.getCmp('main_area')\n"
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 2');\n"
20130515 '  \n'
20130515 "    this.on('show', function(win) {\n"
20130515 "        //~ console.log('20120110 Lino.Window.on show 1');\n"
20130515 "        main_area.on('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    this.on('hide', function(win) {\n"
20130515 "        main_area.un('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 3');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.unused_ParamWindow = Ext.extend(Lino.Window,{\n'
20130515 '  //~ layout: "border", \n'
20130515 '  constructor : function (config) {\n'
20130515 '    Lino.ParamWindow.superclass.constructor.call(this,config);\n'
20130515 '    this.main_item = config.items; // `items` must be a single component\n'
20130515 "    config.layout = 'border';\n"
20130515 "    this.main_item.region = 'center';\n"
20130515 "    config.params.region = 'north';\n"
20130515 '    config.items = [config.params, config.items];\n'
20130515 '    //~ delete config.params;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '(function(){\n'
20130515 "    var ns = Ext.ns('Ext.ux.plugins');\n"
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @class Ext.ux.plugins.DefaultButton\n'
20130515 '     * @extends Object\n'
20130515 '     *\n'
20130515 '     * Plugin for Button that will click() the button if the user presses ENTER while\n'
20130515 "     * a component in the button's form has focus.\n"
20130515 '     *\n'
20130515 '     * @author Stephen Friedrich\n'
20130515 '     * @date 09-DEC-2009\n'
20130515 '     * @version 0.1\n'
20130515 '     *\n'
20130515 '     */\n'
20130515 '    ns.DefaultButton =  Ext.extend(Object, {\n'
20130515 '        init: function(button) {\n'
20130515 "            button.on('afterRender', setupKeyListener, button);\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '\n'
20130515 '    function setupKeyListener() {\n'
20130515 "        var formPanel = this.findParentByType('form');\n"
20130515 '        new Ext.KeyMap(formPanel.el, {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            shift: false,\n'
20130515 '            alt: false,\n'
20130515 '            fn: function(keyCode, e){\n'
20130515 "                if(e.target.type === 'textarea' && !e.ctrlKey) {\n"
20130515 '                    return true;\n'
20130515 '                }\n'
20130515 '\n'
20130515 "                this.el.select('button').item(0).dom.click();\n"
20130515 '                return false;\n'
20130515 '            },\n'
20130515 '            scope: this\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '\n'
20130515 "    Ext.ComponentMgr.registerPlugin('defaultButton', ns.DefaultButton);\n"
20130515 '\n'
20130515 '})(); \n'
20130515 '\n'
20130515 'Ext.override(Ext.form.BasicForm,{\n'
20130515 '    my_loadRecord : function(values){\n'
20130515 '    //~ loadRecord : function(record){\n'
20130515 "        /* Same as ExtJS's loadRecord() (setValues()), except that we \n"
20130515 '        forward also the record to field.setValue() so that Lino.Combobox \n'
20130515 '        can use it. \n'
20130515 '        */\n'
20130515 "        //~ console.log('20120918 my_loadRecord',values)\n"
20130515 '        if(Ext.isArray(values)){ \n'
20130515 '            for(var i = 0, len = values.length; i < len; i++){\n'
20130515 '                var v = values[i];\n'
20130515 '                var f = this.findField(v.id);\n'
20130515 '                if(f){\n'
20130515 '                    f.setValue(v.value,values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        f.originalValue = f.getValue();\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }else{ \n'
20130515 '            var field, id;\n'
20130515 '            for(id in values){\n'
20130515 '                if(!Ext.isFunction(values[id]) && (field = this.findField(id))){\n'
20130515 '                    field.setValue(values[id],values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        field.originalValue = field.getValue();\n'
20130515 '                        //~ if (field.hiddenField) {\n'
20130515 '                          //~ field.hiddenField.originalValue = field.hiddenField.value;\n'
20130515 '                        //~ }\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'function initializeFooBarDropZone(cmp) {\n'
20130515 "    //~ console.log('initializeFooBarDropZone',cmp);\n"
20130515 '    cmp.dropTarget = new Ext.dd.DropTarget(cmp.bwrap, {\n'
20130515 "      //~ ddGroup     : 'gridDDGroup',\n"
20130515 '      notifyEnter : function(ddSource, e, data) {\n'
20130515 "        console.log('notifyEnter',ddSource,e,data);\n"
20130515 '        //Add some flare to invite drop.\n'
20130515 '        cmp.body.stopFx();\n'
20130515 '        cmp.body.highlight();\n'
20130515 '      },\n'
20130515 '      notifyDrop  : function(ddSource, e, data){\n'
20130515 "        console.log('notifyDrop',ddSource,e,data);\n"
20130515 '        // Reference the record (single selection) for readability\n'
20130515 '        //~ var selectedRecord = ddSource.dragData.selections[0];\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Load the record into the form\n'
20130515 '        //~ formPanel.getForm().my_loadRecord(selectedRecord);\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Delete record from the grid.  not really required.\n'
20130515 '        //~ ddSource.grid.store.remove(selectedRecord);\n'
20130515 '\n'
20130515 '        return(true);\n'
20130515 '      }\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_mti_child = function(fieldname,detail_handler) {\n'
20130515 "  //~ console.log('show_mti_child',this);\n"
20130515 '  //~ console.log(\'show_mti_child\',panel.find("main_area"));\n'
20130515 '  rec = Lino.current_window.main_item.get_current_record();\n'
20130515 '  //~ rec = panel.get_current_record();\n'
20130515 '  if (rec) {\n'
20130515 "    //~ console.log('show_mti_child',Lino.current_window,rec);\n"
20130515 '    if (rec.phantom) {\n'
20130515 "      Lino.notify('Not allowed on phantom record.');\n"
20130515 '    }else if (rec.data[fieldname]) {\n'
20130515 "      //~ console.log('show_mti_child',rec.id);\n"
20130515 '      //~ detail_handler(Lino.current_window.main_item,{},{record_id:rec.id});\n'
20130515 '      detail_handler.run(null,{record_id:rec.id});\n'
20130515 "      //~ window.open(urlroot + '/' + rec.id);\n"
20130515 "      //~ document.location = urlroot + '/' + rec.id;\n"
20130515 "      //~ window.open(urlroot + '/' + rec.id,'_blank');\n"
20130515 '    } else {\n'
20130515 '      Lino.alert("Cannot show MTI child if checkbox is off.");\n'
20130515 '    }\n'
20130515 '  } else {\n'
20130515 "    Lino.notify('No current record.');\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelCalendars\n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelCalendars.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID',       mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'babel_name', type: 'string'},\n"
20130515 "    Description:  {name:'Desc',     mapping: 'description', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color',    mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden',   mapping: 'is_hidden', type: 'boolean'},    \n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();  \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelEvents \n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelEvents.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID',        mapping: 'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID',     mapping: 'calendarHidden', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle',  mapping: 'summary'},\n"
20130515 "    StartDate:   {name: 'StartDt',   mapping: 'start_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s" },\n'
20130515 "    EndDate:     {name: 'EndDt',     mapping: 'end_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s"},\n'
20130515 "    RRule:       {name: 'RecurRule', mapping: 'rsetHidden'},\n"
20130515 "    Location:    {name: 'Location',  mapping: 'placeHidden'},\n"
20130515 "    Notes:       {name: 'Desc',      mapping: 'description'},\n"
20130515 "    Url:         {name: 'LinkUrl',   mapping: 'url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay',    mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder',  mapping: 'reminder'}\n"
20130515 '    \n'
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.on_eventclick = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventclick",arguments);\n'
20130515 '  //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '  Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_editdetails = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_editdetails",arguments);\n'
20130515 '  if (rec.data.ID)\n'
20130515 '      //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '      Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.format_time = function(dt) {\n'
20130515 "    return dt.getHours() + ':' + dt.getMinutes();\n"
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventdelete = function() {\n'
20130515 '  //~ console.log("Lino.on_eventdelete",arguments);\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.on_eventadd  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventadd ",arguments);\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventresize  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventresize ",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventupdate  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventupdate",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.eventStore = new Ext.ensible.cal.EventStore({ \n'
20130515 '//~ Lino.eventStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.eventStore = new Ext.data.JsonStore({ \n'
20130515 '  listeners: { exception: Lino.on_store_exception }\n'
20130515 "  ,url: '/restful/cal/PanelEvents'\n"
20130515 '  ,restful : true\n'
20130515 '  ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "      url: '/restful/cal/PanelEvents', \n"
20130515 '      disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '      //~ disableCaching:true,\n'
20130515 '  })\n'
20130515 '  ,fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '  ,totalProperty: "count"\n'
20130515 '  ,root: "rows"\n'
20130515 '  ,idProperty: Ext.ensible.cal.EventMappings.EventId.mapping\n'
20130515 '  ,writer : new Ext.data.JsonWriter({\n'
20130515 '    writeAllFields: false\n'
20130515 '  })\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '      if (!options) options = {};\n'
20130515 '      if (!options.params) options.params = {};\n'
20130515 '      //~ options.params.$ext_requests.URL_PARAM_TEAM_VIEW = Lino.calendar_app.team_view_button.pressed;\n'
20130515 '      \n'
20130515 '      var view = this.cal_panel.getActiveView();\n'
20130515 '      var bounds = view.getViewBounds();\n'
20130515 "      //~ var p = {sd:'05.02.2012',ed:'11.02.2012'};\n"
20130515 '      //~ var p = {};\n'
20130515 '      options.params[view.dateParamStart] = bounds.start.format(view.dateParamFormat);\n'
20130515 '      options.params[view.dateParamEnd] = bounds.end.format(view.dateParamFormat);\n'
20130515 '      Lino.insert_subst_user(options.params);\n'
20130515 '      //~ Ext.apply(options.params,p)\n'
20130515 "      //~ console.log('20120710 eventStore.load()',this.baseParams,options);\n"
20130515 '    \n'
20130515 '    return Ext.data.JsonStore.prototype.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.calendarStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.calendarStore = new Ext.data.JsonStore({ \n'
20130515 '      listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,restful : true\n'
20130515 '      ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "          url: '/restful/cal/PanelCalendars?fmt=json', \n"
20130515 '          disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '          //~ restful : true\n'
20130515 '          //~ method: "GET"\n'
20130515 '      })\n'
20130515 '      //~ ,autoLoad: true\n'
20130515 '      //~ ,remoteSort: true\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      ,fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '      ,idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '      //~ ,idIndex: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '    });\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarCfg = {\n'
20130515 "    dateParamFormat: 'd.m.Y',\n"
20130515 "    dateParamStart:'sd',\n"
20130515 "    dateParamEnd:'ed'\n"
20130515 '};\n'
20130515 '//~ 20120704 Lino.CalendarPanel = Ext.extend(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 '//~ Lino.CalendarPanel = Ext.extend(Lino.CalendarPanel,{\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 '  ,activeItem: 1 // 0: day, 1: week\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  //~ ,disableCaching:true\n'
20130515 '  ,eventStore: Lino.eventStore\n'
20130515 '  ,calendarStore: Lino.calendarStore\n'
20130515 '  ,listeners: { \n'
20130515 '    editdetails: Lino.on_editdetails\n'
20130515 '    ,eventclick: Lino.on_eventclick\n'
20130515 '    //~ ,eventadd: Lino.on_eventadd\n'
20130515 '    //~ ,eventdelete: Lino.on_eventdelete\n'
20130515 '    //~ ,eventresize: Lino.on_eventresize\n'
20130515 '    ,afterrender : function(config) {\n'
20130515 '      //~ console.log("20120704 afterrender");\n'
20130515 '      Lino.calendarStore.load();\n'
20130515 '      //~ console.log("20120704 afterrender calls eventStore.load()",p);\n'
20130515 '      Lino.eventStore.cal_panel = this;\n'
20130515 '      //~ Lino.eventStore.load({params:p});\n'
20130515 '      Lino.eventStore.load();\n'
20130515 '      //~ Lino.CalendarPanel.superclass.constructor.call(this, config);\n'
20130515 '      //~ console.log(20120118, config,this);\n'
20130515 '    }\n'
20130515 '    }\n'
20130515 '  ,enableEditDetails: false\n'
20130515 '  //~ ,monthViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,weekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiDayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiWeekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,dayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,initComponent : function() {\n'
20130515 "    //~ // this.on('eventadd',Lino.on_eventadd);\n"
20130515 '    //~ Lino.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Ext.Panel,Lino.MainPanel);\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Lino.CalendarAppPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  ,set_status : function(status) { this.refresh();}\n'
20130515 '  ,refresh : function() {Lino.eventStore.reload();}\n'
20130515 "  ,layout: 'fit'\n"
20130515 '  ,is_loading : function() { \n'
20130515 '      var loading = Lino.calendarStore.getCount() == 0 | Lino.eventStore.getCount() == 0\n'
20130515 '      //~ console.log("CalendarPanel loading:",loading);\n'
20130515 '      return loading; \n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() {\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '  }\n'
20130515 '  ,clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  }\n'
20130515 '  ,set_base_param : function(k,v) {\n'
20130515 '      if (!this.base_params) this.base_params = {};\n'
20130515 '      this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.calendar_app = function() { return {\n'
20130515 '  get_main_panel : function() {\n'
20130515 '      return new Lino.CalendarAppPanel({ items : \n'
20130515 '        //~ [{\n'
20130515 "          //~ id: 'app-header',\n"
20130515 "          //~ region: 'north',\n"
20130515 '          //~ height: 35,\n'
20130515 '          //~ border: false,\n'
20130515 "          // contentEl: 'app-header-content'\n"
20130515 '        //~ },\n'
20130515 '      {\n'
20130515 "          id: 'app-center',\n"
20130515 "          title: '...', // will be updated to the current view's date range\n"
20130515 "          region: 'center',\n"
20130515 "          layout: 'border',\n"
20130515 '          listeners: {\n'
20130515 "              'afterrender': function(){\n"
20130515 "                  Ext.getCmp('app-center').header.addClass('app-center-header');\n"
20130515 '              }\n'
20130515 '          },\n'
20130515 '          items: [{\n'
20130515 "              id:'app-west',\n"
20130515 "              region: 'west',\n"
20130515 '              width: 176,\n'
20130515 '              border: false,\n'
20130515 '              items: [{\n'
20130515 "                  xtype: 'datepicker',\n"
20130515 "                  id: 'app-nav-picker',\n"
20130515 "                  cls: 'ext-cal-nav-picker',\n"
20130515 '                  listeners: {\n'
20130515 "                      'select': {\n"
20130515 '                          fn: function(dp, dt){\n'
20130515 '                              Lino.calendarPanel.setStartDate(dt);\n'
20130515 '                          },\n'
20130515 '                          scope: this\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '              //~ },{ \n'
20130515 "                //~ layout:'fit',\n"
20130515 '                //~ items: [\n'
20130515 '                  //~ new Ext.form.Checkbox({\n'
20130515 '                    //~ boxLabel:"$_(\'Team view\')",\n'
20130515 '                    //~ hideLabel:true\n'
20130515 '                    //~ listeners: { click: }\n'
20130515 '                  //~ })\n'
20130515 '                //~ ]\n'
20130515 '              },{ \n'
20130515 "                layout:'form',\n"
20130515 '                items: [\n'
20130515 '                  this.team_view_button = new Ext.Button({\n'
20130515 '                    text:"Team view",\n'
20130515 '                    enableToggle:true,\n'
20130515 '                    pressed:false,\n'
20130515 '                    toggleHandler: function(btn,state) { \n'
20130515 "                      //~ console.log('20120716 teamView.toggle()');\n"
20130515 "                      Lino.eventStore.setBaseParam('tv',state);\n"
20130515 '                      Lino.eventStore.load();\n'
20130515 '                      //~ Lino.eventStore.load({params:{$ext_requests.URL_PARAM_TEAM_VIEW:state}});\n'
20130515 '                      //~ console.log("team view",state);\n'
20130515 '                    }\n'
20130515 '                  })\n'
20130515 '                ]\n'
20130515 '              },{\n'
20130515 "                  xtype: 'extensible.calendarlist',\n"
20130515 '                  store: Lino.calendarStore,\n'
20130515 '                  border: false,\n'
20130515 '                  width: 175\n'
20130515 '              }]\n'
20130515 '          },{\n'
20130515 "              xtype: 'extensible.calendarpanel',\n"
20130515 '              eventStore: Lino.eventStore,\n'
20130515 '              calendarStore: Lino.calendarStore,\n'
20130515 '              border: false,\n'
20130515 "              id:'app-calendar',\n"
20130515 "              region: 'center',\n"
20130515 '              //~ activeItem: 3, // month view\n'
20130515 '              \n'
20130515 '              // Any generic view options that should be applied to all sub views:\n'
20130515 '              viewConfig: {\n'
20130515 '                  // Lino.CalendarCfg\n'
20130515 "                  dateParamFormat: 'd.m.Y',\n"
20130515 "                  dateParamStart:'sd',\n"
20130515 "                  dateParamEnd:'ed',\n"
20130515 '                \n'
20130515 '                  //enableFx: false,\n'
20130515 '                  //ddIncrement: 10, //only applies to DayView and subclasses, but convenient to put it here\n'
20130515 '                  viewStartHour: 8,\n'
20130515 '                  viewEndHour: 18\n'
20130515 '                  //minEventDisplayMinutes: 15\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // View options specific to a certain view (if the same options exist in viewConfig\n'
20130515 '              // they will be overridden by the view-specific config):\n'
20130515 '              monthViewCfg: {\n'
20130515 '                  showHeader: true,\n'
20130515 '                  showWeekLinks: true,\n'
20130515 '                  showWeekNumbers: true,\n'
20130515 "                  eventBodyMarkup: ['{Title}',\n"
20130515 '                    //~ \'<tpl if="url">\',\n'
20130515 '                        //~ \'<a href="{url}">XX</a>\',\n'
20130515 "                    //~ '</tpl>',\n"
20130515 '                    \'<tpl if="_isReminder">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="_isRecurring">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanLeft">\',\n'
20130515 '                        \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanRight">\',\n'
20130515 '                        \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "                    '</tpl>'\n"
20130515 "                ].join('')\n"
20130515 '              },\n'
20130515 '              \n'
20130515 '              multiWeekViewCfg: {\n'
20130515 '                  //weekCount: 3\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // Some optional CalendarPanel configs to experiment with:\n'
20130515 '              //readOnly: true,\n'
20130515 '              //showDayView: false,\n'
20130515 '              //showMultiDayView: true,\n'
20130515 '              //showWeekView: false,\n'
20130515 '              //showMultiWeekView: false,\n'
20130515 '              //showMonthView: false,\n'
20130515 '              //showNavBar: false,\n'
20130515 '              //showTodayText: false,\n'
20130515 '              //showTime: false,\n'
20130515 '              //editModal: true,\n'
20130515 '              //enableEditDetails: false,\n'
20130515 "              //title: 'My Calendar', // the header of the calendar, could be a subtitle for the app\n"
20130515 '              \n'
20130515 '              // Once this component inits it will set a reference to itself as an application\n'
20130515 '              // member property for easy reference in other functions within App.\n'
20130515 '              initComponent: function() {\n'
20130515 '                  Lino.calendarPanel = this;\n'
20130515 '                  this.constructor.prototype.initComponent.apply(this, arguments);\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              listeners: {\n'
20130515 "                  //~ 'eventclick': {\n"
20130515 '                      //~ fn: function(vw, rec, el){\n'
20130515 '                          //~ this.clearMsg();\n'
20130515 '                      //~ },\n'
20130515 '                      //~ scope: this\n'
20130515 '                  //~ },\n'
20130515 "                  'eventover': function(vw, rec, el){\n"
20130515 "                      //console.log('Entered evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventout': function(vw, rec, el){\n"
20130515 "                      //console.log('Leaving evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]+', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventadd': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was added');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventupdate': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          //this.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventcancel': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          // edit canceled\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'viewchange': {\n"
20130515 '                      fn: function(p, vw, dateInfo){\n'
20130515 '                          if(this.editWin){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          };\n'
20130515 '                          if(dateInfo !== null){\n'
20130515 '                              // will be null when switching to the event edit form so ignore\n'
20130515 "                              Ext.getCmp('app-nav-picker').setValue(dateInfo.activeDate);\n"
20130515 '                              this.updateTitle(dateInfo.viewStart, dateInfo.viewEnd);\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'dayclick': {\n"
20130515 '                      fn: function(vw, dt, ad, el){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'rangeselect': {\n"
20130515 '                      fn: function(vw, dates, onComplete){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventmove': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          var time = rec.data[Ext.ensible.cal.EventMappings.IsAllDay.name] ? '' : ' \\\\a\\\\t g:i a';\n"
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was moved to '+\n"
20130515 "                              rec.data[Ext.ensible.cal.EventMappings.StartDate.name].format('F jS'+time));\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventresize': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(win, rec){\n'
20130515 '                          Lino.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'initdrag': {\n"
20130515 '                      fn: function(vw){\n'
20130515 '                          if(this.editWin && this.editWin.isVisible()){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  }\n'
20130515 '              }\n'
20130515 '          }]\n'
20130515 '        }\n'
20130515 '        //~ ]\n'
20130515 '        \n'
20130515 '      });\n'
20130515 '      \n'
20130515 '  }\n'
20130515 '  ,updateTitle: function(startDt, endDt){\n'
20130515 "      var p = Ext.getCmp('app-center');\n"
20130515 '      \n'
20130515 '      if(startDt.clearTime().getTime() == endDt.clearTime().getTime()){\n'
20130515 "          p.setTitle(startDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '      else if(startDt.getFullYear() == endDt.getFullYear()){\n'
20130515 '          if(startDt.getMonth() == endDt.getMonth()){\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('j, Y'));\n"
20130515 '          }\n'
20130515 '          else{\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '          }\n'
20130515 '      }\n'
20130515 '      else{\n'
20130515 "          p.setTitle(startDt.format('F j, Y') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '  }\n'
20130515 '  // This is an application-specific way to communicate CalendarPanel event messages back to the user.\n'
20130515 '  // This could be replaced with a function to do "toast" style messages, growl messages, etc. This will\n'
20130515 "  // vary based on application requirements, which is why it's not baked into the CalendarPanel.\n"
20130515 '  ,showMsg: function(msg){\n'
20130515 '      Lino.notify(msg);\n'
20130515 "      //~ Ext.fly('app-msg').update(msg).removeClass('x-hidden');\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,clearMsg: function(){\n'
20130515 "      Lino.notify('');\n"
20130515 "      //~ Ext.fly('app-msg').update('').addClass('x-hidden');\n"
20130515 '  }\n'
20130515 '}\n'
20130515 '}();\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'captureEvents utility by Aaron Conran\n'
20130515 '<http://www.sencha.com/learn/grid-faq/>\n'
20130515 '\n'
20130515 'Ext.onReady(function(){\n'
20130515 '    var grid = new Ext.grid.GridPanel({\n'
20130515 '        ... \n'
20130515 '    });\n'
20130515 '    captureEvents(grid);\n'
20130515 '});\n'
20130515 '*/\n'
20130515 'function captureEvents(observable) {\n'
20130515 '    Ext.util.Observable.capture(\n'
20130515 '        observable,\n'
20130515 '        function(eventName) {\n'
20130515 '            console.info(eventName);\n'
20130515 '        },\n'
20130515 '        this\n'
20130515 '    );\t\t\n'
20130515 '}\n'
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.main_menu = [ { "menu": { "items": [ { "text": "Personnes", "handler": function() {Lino.contacts.Persons.grid.run(null)} }, { "text": " \\u25b6 Clients", "handler": function() {Lino.pcsw.Clients.grid.run(null)} }, { "text": "Organisations", "handler": function() {Lino.contacts.Companies.grid.run(null)} }, { "text": "M\\u00e9nages", "handler": function() {Lino.households.Households.grid.run(null)} }, "-", { "text": "Partenaires (tous)", "handler": function() {Lino.contacts.Partners.grid.run(null)} } ] }, "text": "Contacts" }, { "menu": { "items": [ { "text": "Mon courrier sortant", "handler": function() {Lino.outbox.MyOutbox.grid.run(null)} }, { "menu": { "items": [ { "text": "Mes Envois postaux", "handler": function() {Lino.postings.MyPostings.grid.run(null)} }, { "text": "Envois postaux \\u00e0 imprimer", "handler": function() {Lino.postings.PostingsReady.grid.run(null)} }, { "text": "Envois postaux imprim\\u00e9s", "handler": function() {Lino.postings.PostingsPrinted.grid.run(null)} }, { "text": "Envois postaux envoy\\u00e9s", "handler": function() {Lino.postings.PostingsSent.grid.run(null)} } ] }, "text": "Envois postaux" }, { "text": "Mes notes", "handler": function() {Lino.notes.MyNotes.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Calendrier", "iconCls": "x-tbar-calendar", "handler": function() {Lino.cal.CalendarPanel.grid.run(null)} }, { "text": "Events", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my calendar events.") }, "handler": function() {Lino.cal.MyEvents.grid.run(null)} }, "-", { "text": "Mes T\\u00e2ches", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my tasks.") }, "handler": function() {Lino.cal.MyTasks.grid.run(null)} }, { "text": "To-do list", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of my tasks marked \'to do\'.") }, "handler": function() {Lino.cal.MyTasksToDo.grid.run(null)} }, "-", { "text": "Mes pr\\u00e9sences", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows all my presences in calendar events, independently of their state.") }, "handler": function() {Lino.cal.MyPresences.grid.run(null)} }, { "text": "Mes invitations re\\u00e7ues", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows received invitations which I must accept or reject.") }, "handler": function() {Lino.cal.MyPendingInvitations.grid.run(null)} } ] }, "text": "Calendrier" }, { "menu": { "items": [ { "text": "Clients", "listeners": { "render": Lino.quicktip_renderer("Foo","Wie Kontakte \\u25b8 Klienten, aber mit DSBE-spezifischen Kolonnen und Filterparametern.") }, "handler": function() {Lino.pcsw.IntegClients.grid.run(null)} }, { "text": "PIISs", "handler": function() {Lino.isip.MyContracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.MyContracts.grid.run(null)} }, { "text": "Employants", "handler": function() {Lino.jobs.JobProviders.grid.run(null)} }, { "text": "Emplois", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    Eine Stelle ist ein Arbeitsplatz bei einem Stellenabieter. \\n    ") }, "handler": function() {Lino.jobs.Jobs.grid.run(null)} }, { "text": "Offres d\'emploi", "handler": function() {Lino.jobs.Offers.grid.run(null)} }, { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.NewJobsOverview.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Int\\u00e9gration" }, { "menu": { "items": [ { "text": "Organisateurs de cours", "handler": function() {Lino.courses.CourseProviders.grid.run(null)} }, { "text": "Offres de cours", "handler": function() {Lino.courses.CourseOffers.grid.run(null)} }, { "text": "Demandes de cours ouvertes", "handler": function() {Lino.courses.PendingCourseRequests.grid.run(null)} } ] }, "text": "Cours" }, { "menu": { "items": [ { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.JobsOverview.show.run(null,{ "record_id": -99998 })} }, { "text": "Agents et leurs clients", "handler": function() {Lino.pcsw.UsersWithClients.grid.run(null)} } ] }, "text": "Listings" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "Mes Text Field Templates", "handler": function() {Lino.ui.MyTextFieldTemplates.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Pays", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    A country is a geographic entity considered a \\"nation\\".\\n    ") }, "handler": function() {Lino.countries.Countries.grid.run(null)} }, { "text": "Langues", "handler": function() {Lino.countries.Languages.grid.run(null)} } ] }, "text": "Contacts" } ] }, "text": "Configuration" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "PIISs", "handler": function() {Lino.isip.Contracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.Contracts.grid.run(null)} } ] }, "text": "Int\\u00e9gration" } ] }, "text": "Explorateur" }, { "menu": { "items": [ { "text": "About", "listeners": { "render": Lino.quicktip_renderer("Foo","Show information about this site.") }, "handler": function() {Lino.about.About.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Site" }, { "text": "D\\u00e9part", "handler": function() {Lino.close_all_windows()} } ];\n'
20130515 "Ext.namespace('Lino.ui.SiteConfigs')\n"
20130515 "Ext.namespace('Lino.ui.ContentTypes')\n"
20130515 "Ext.namespace('Lino.ui.HelpTexts')\n"
20130515 "Ext.namespace('Lino.ui.TextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.Users')\n"
20130515 "Ext.namespace('Lino.users.MySettings')\n"
20130515 "Ext.namespace('Lino.users.UsersOverview')\n"
20130515 "Ext.namespace('Lino.users.Teams')\n"
20130515 "Ext.namespace('Lino.users.Memberships')\n"
20130515 "Ext.namespace('Lino.users.Authorities')\n"
20130515 "Ext.namespace('Lino.changes.Changes')\n"
20130515 "Ext.namespace('Lino.countries.Languages')\n"
20130515 "Ext.namespace('Lino.countries.Countries')\n"
20130515 "Ext.namespace('Lino.countries.Cities')\n"
20130515 "Ext.namespace('Lino.properties.PropGroups')\n"
20130515 "Ext.namespace('Lino.properties.PropTypes')\n"
20130515 "Ext.namespace('Lino.properties.Properties')\n"
20130515 "Ext.namespace('Lino.properties.PropChoices')\n"
20130515 "Ext.namespace('Lino.contacts.CompanyTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Partners')\n"
20130515 "Ext.namespace('Lino.contacts.Companies')\n"
20130515 "Ext.namespace('Lino.contacts.RoleTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Roles')\n"
20130515 "Ext.namespace('Lino.postings.Postings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByState')\n"
20130515 "Ext.namespace('Lino.postings.PostingsReady')\n"
20130515 "Ext.namespace('Lino.postings.PostingsPrinted')\n"
20130515 "Ext.namespace('Lino.postings.PostingsSent')\n"
20130515 "Ext.namespace('Lino.outbox.Recipients')\n"
20130515 "Ext.namespace('Lino.outbox.Mails')\n"
20130515 "Ext.namespace('Lino.outbox.Attachments')\n"
20130515 "Ext.namespace('Lino.cal.Calendars')\n"
20130515 "Ext.namespace('Lino.cal.Subscriptions')\n"
20130515 "Ext.namespace('Lino.cal.Places')\n"
20130515 "Ext.namespace('Lino.cal.Priorities')\n"
20130515 "Ext.namespace('Lino.cal.Events')\n"
20130515 "Ext.namespace('Lino.cal.MyEvents')\n"
20130515 "Ext.namespace('Lino.cal.MyUnclearEvents')\n"
20130515 "Ext.namespace('Lino.cal.EventsAssignedToMe')\n"
20130515 "Ext.namespace('Lino.cal.MyEventsToday')\n"
20130515 "Ext.namespace('Lino.cal.Tasks')\n"
20130515 "Ext.namespace('Lino.cal.GuestRoles')\n"
20130515 "Ext.namespace('Lino.cal.Guests')\n"
20130515 "Ext.namespace('Lino.cal.PanelCalendars')\n"
20130515 "Ext.namespace('Lino.cal.PanelEvents')\n"
20130515 "Ext.namespace('Lino.uploads.UploadTypes')\n"
20130515 "Ext.namespace('Lino.uploads.Uploads')\n"
20130515 "Ext.namespace('Lino.households.Types')\n"
20130515 "Ext.namespace('Lino.households.Households')\n"
20130515 "Ext.namespace('Lino.households.Roles')\n"
20130515 "Ext.namespace('Lino.households.Members')\n"
20130515 "Ext.namespace('Lino.accounts.Charts')\n"
20130515 "Ext.namespace('Lino.accounts.Groups')\n"
20130515 "Ext.namespace('Lino.accounts.Accounts')\n"
20130515 "Ext.namespace('Lino.notes.NoteTypes')\n"
20130515 "Ext.namespace('Lino.notes.EventTypes')\n"
20130515 "Ext.namespace('Lino.notes.Notes')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledges')\n"
20130515 "Ext.namespace('Lino.cv.PersonProperties')\n"
20130515 "Ext.namespace('Lino.contacts.Persons')\n"
20130515 "Ext.namespace('Lino.pcsw.Clients')\n"
20130515 "Ext.namespace('Lino.pcsw.DebtsClients')\n"
20130515 "Ext.namespace('Lino.pcsw.IntegClients')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsTest')\n"
20130515 "Ext.namespace('Lino.pcsw.PersonGroups')\n"
20130515 "Ext.namespace('Lino.pcsw.Activities')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Exclusions')\n"
20130515 "Ext.namespace('Lino.pcsw.AidTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.OverlappingContracts')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContactTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContacts')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Coachings')\n"
20130515 "Ext.namespace('Lino.isip.ContractTypes')\n"
20130515 "Ext.namespace('Lino.isip.ExamPolicies')\n"
20130515 "Ext.namespace('Lino.isip.ContractEndings')\n"
20130515 "Ext.namespace('Lino.isip.Contracts')\n"
20130515 "Ext.namespace('Lino.isip.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Schedules')\n"
20130515 "Ext.namespace('Lino.jobs.Regimes')\n"
20130515 "Ext.namespace('Lino.jobs.JobProviders')\n"
20130515 "Ext.namespace('Lino.jobs.ContractTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Sectors')\n"
20130515 "Ext.namespace('Lino.jobs.Functions')\n"
20130515 "Ext.namespace('Lino.jobs.Contracts')\n"
20130515 "Ext.namespace('Lino.jobs.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Offers')\n"
20130515 "Ext.namespace('Lino.jobs.StudyTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Studies')\n"
20130515 "Ext.namespace('Lino.jobs.Experiences')\n"
20130515 "Ext.namespace('Lino.jobs.Candidatures')\n"
20130515 "Ext.namespace('Lino.jobs.Jobs')\n"
20130515 "Ext.namespace('Lino.jobs.JobTypes')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsSearch')\n"
20130515 "Ext.namespace('Lino.courses.CourseProviders')\n"
20130515 "Ext.namespace('Lino.courses.CourseContents')\n"
20130515 "Ext.namespace('Lino.courses.Courses')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffers')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequests')\n"
20130515 "Ext.namespace('Lino.courses.PendingCourseRequests')\n"
20130515 "Ext.namespace('Lino.newcomers.Brokers')\n"
20130515 "Ext.namespace('Lino.newcomers.Faculties')\n"
20130515 "Ext.namespace('Lino.newcomers.Competences')\n"
20130515 "Ext.namespace('Lino.newcomers.NewClients')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoaches')\n"
20130515 "Ext.namespace('Lino.debts.Budgets')\n"
20130515 "Ext.namespace('Lino.debts.Actors')\n"
20130515 "Ext.namespace('Lino.debts.Entries')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByType')\n"
20130515 "Ext.namespace('Lino.cbss.Sectors')\n"
20130515 "Ext.namespace('Lino.cbss.Purposes')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.sessions.SessionTable')\n"
20130515 "Ext.namespace('Lino.ui.MyTextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.MembershipsByUser')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesGiven')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesTaken')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCity')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCountry')\n"
20130515 "Ext.namespace('Lino.properties.PropsByGroup')\n"
20130515 "Ext.namespace('Lino.properties.PropsByType')\n"
20130515 "Ext.namespace('Lino.properties.ChoicesByType')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCity')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCountry')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByCompany')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByPerson')\n"
20130515 "Ext.namespace('Lino.postings.MyPostings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByPartner')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientsByMail')\n"
20130515 "Ext.namespace('Lino.outbox.MyOutbox')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByUser')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.SentByPartner')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByMail')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByUser')\n"
20130515 "Ext.namespace('Lino.cal.EventsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.EventsByPlace')\n"
20130515 "Ext.namespace('Lino.cal.EventsByProject')\n"
20130515 "Ext.namespace('Lino.cal.TasksByUser')\n"
20130515 "Ext.namespace('Lino.cal.MyTasks')\n"
20130515 "Ext.namespace('Lino.cal.MyTasksToDo')\n"
20130515 "Ext.namespace('Lino.cal.TasksByProject')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByEvent')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByRole')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByPartner')\n"
20130515 "Ext.namespace('Lino.cal.MyPresences')\n"
20130515 "Ext.namespace('Lino.cal.MyPendingInvitations')\n"
20130515 "Ext.namespace('Lino.uploads.MyUploads')\n"
20130515 "Ext.namespace('Lino.households.HouseholdsByType')\n"
20130515 "Ext.namespace('Lino.households.MembersByHousehold')\n"
20130515 "Ext.namespace('Lino.households.MembersByPerson')\n"
20130515 "Ext.namespace('Lino.households.MembersByRole')\n"
20130515 "Ext.namespace('Lino.accounts.GroupsByChart')\n"
20130515 "Ext.namespace('Lino.accounts.AccountsByGroup')\n"
20130515 "Ext.namespace('Lino.notes.MyNotes')\n"
20130515 "Ext.namespace('Lino.notes.NotesByType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByEventType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByProject')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledgesByPerson')\n"
20130515 "Ext.namespace('Lino.cv.KnowledgesByLanguage')\n"
20130515 "Ext.namespace('Lino.cv.PropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.PersonPropsByProp')\n"
20130515 "Ext.namespace('Lino.cv.ConfiguredPropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SoftSkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.ObstaclesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsByNationality')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionsByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ContactsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByUser')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByCompany')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.FunctionsBySector')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByJob')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByRegime')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsBySchedule')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCountry')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCity')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesBySector')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByJob')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByType')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverviewByType')\n"
20130515 "Ext.namespace('Lino.courses.CoursesByOffer')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByProvider')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByContent')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByContent')\n"
20130515 "Ext.namespace('Lino.courses.RequestsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.ParticipantsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.CandidatesByCourse')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByUser')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.MyCompetences')\n"
20130515 "Ext.namespace('Lino.newcomers.ClientsByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoachesByClient')\n"
20130515 "Ext.namespace('Lino.debts.MyBudgets')\n"
20130515 "Ext.namespace('Lino.debts.BudgetsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.IncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.LiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.AssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DistByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.MyIdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyRetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.uploads.UploadsByController')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByController')\n"
20130515 "Ext.namespace('Lino.cal.TasksByController')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByController')\n"
20130515 "Ext.namespace('Lino.changes.ChangesByMaster')\n"
20130515 "Ext.namespace('Lino.ui.HelpTextsByModel')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByController')\n"
20130515 "Ext.namespace('Lino.cal.EventsByController')\n"
20130515 "Ext.namespace('Lino.about.Models')\n"
20130515 "Ext.namespace('Lino.about.FieldsByModel')\n"
20130515 "Ext.namespace('Lino.about.Inspector')\n"
20130515 "Ext.namespace('Lino.about.SourceFiles')\n"
20130515 "Ext.namespace('Lino.pcsw.UsersWithClients')\n"
20130515 "Ext.namespace('Lino.debts.PrintEntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintIncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintLiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintAssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.SummaryTable')\n"
20130515 "Ext.namespace('Lino.debts.ResultByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DebtsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.BailiffDebtsByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonResult')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsResult')\n"
20130515 "Ext.namespace('Lino.ui.Home')\n"
20130515 "Ext.namespace('Lino.about.About')\n"
20130515 "Ext.namespace('Lino.cal.CalendarPanel')\n"
20130515 "Ext.namespace('Lino.lino.Home')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverview')\n"
20130515 "Ext.namespace('Lino.jobs.NewJobsOverview')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestStates')\n"
20130515 "Ext.namespace('Lino.postings.PostingStates')\n"
20130515 "Ext.namespace('Lino.cal.DurationUnits')\n"
20130515 "Ext.namespace('Lino.cal.TaskStates')\n"
20130515 "Ext.namespace('Lino.cal.Weekdays')\n"
20130515 "Ext.namespace('Lino.lino.UserLevels')\n"
20130515 "Ext.namespace('Lino.lino.UserProfiles')\n"
20130515 "Ext.namespace('Lino.cal.EventStates')\n"
20130515 "Ext.namespace('Lino.accounts.AccountTypes')\n"
20130515 "Ext.namespace('Lino.cv.CefLevel')\n"
20130515 "Ext.namespace('Lino.properties.HowWell')\n"
20130515 "Ext.namespace('Lino.jobs.CandidatureStates')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientType')\n"
20130515 "Ext.namespace('Lino.countries.CityTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.BeIdCardTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.CivilState')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientStates')\n"
20130515 "Ext.namespace('Lino.cal.GuestStates')\n"
20130515 "Ext.namespace('Lino.properties.DoYouLike')\n"
20130515 "Ext.namespace('Lino.cbss.RequestLanguages')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAction')\n"
20130515 "Ext.namespace('Lino.pcsw.RefusalReasons')\n"
20130515 "Ext.namespace('Lino.lino.UserGroups')\n"
20130515 "Ext.namespace('Lino.cbss.RequestStates')\n"
20130515 "Ext.namespace('Lino.lino.ChangeTypes')\n"
20130515 "Ext.namespace('Lino.cal.AccessClasses')\n"
20130515 "Ext.namespace('Lino.cbss.QueryRegister')\n"
20130515 "Ext.namespace('Lino.lino.Genders')\n"
20130515 "Ext.namespace('Lino.pcsw.ResidenceType')\n"
20130515 '\n'
20130515 '// ChoiceLists: \n'
20130515 'Lino.courses.CourseRequestStates = [ [ "10", "Open" ], [ "20", "Registered" ], [ "30", "R\\u00e9ussi" ], [ "40", "Bien r\\u00e9ussi" ], [ "50", "echec" ], [ "60", "Abandonn\\u00e9" ], [ "70", "Inactif" ] ];\n'
20130515 'Lino.postings.PostingStates = [ [ "10", "Ouvert" ], [ "20", "Pr\\u00e8t \\u00e0 imprimer" ], [ "30", "Imprim\\u00e9" ], [ "40", "Ex\\u00e9cut\\u00e9" ], [ "50", "Retour" ] ];\n'
20130515 'Lino.cal.DurationUnits = [ [ "s", "secondes" ], [ "m", "minutes" ], [ "h", "heures" ], [ "D", "jours" ], [ "W", "semaines" ], [ "M", "mois" ], [ "Y", "ann\\u00e9es" ] ];\n'
20130515 'Lino.cal.TaskStates = [ [ "10", "\\u00e0 faire" ], [ "20", "Started" ], [ "30", "accomplie" ], [ "50", "Annul\\u00e9" ] ];\n'
20130515 'Lino.cal.Weekdays = [ [ "1", "Lundi" ], [ "2", "Mardi" ], [ "3", "Mercredit" ], [ "4", "Jeudi" ], [ "5", "Vendredi" ], [ "6", "Samedi" ], [ "7", "Dimanche" ] ];\n'
20130515 'Lino.lino.UserLevels = [ [ "10", "Guest" ], [ "20", "Secr\\u00e9taire" ], [ "30", "Utilisateur" ], [ "40", "Manager" ], [ "50", "Administrateur" ], [ "90", "Expert" ] ];\n'
20130515 'Lino.lino.UserProfiles = [ [ "000", "000 (Anonyme)" ], [ "100", "100 (Agent d\'insertion)" ], [ "110", "110 (Agent d\'insertion (chef de service))" ], [ "200", "200 (Consultat nouveaux clients)" ], [ "300", "300 (Consultate m\\u00e9diateur dettes)" ], [ "500", "500 (BCSS seulement)" ], [ "900", "900 (Administrateur)" ] ];\n'
20130515 'Lino.cal.EventStates = [ [ "10", "Propos\\u00e9" ], [ "20", "Draft" ], [ "30", "Communiqu\\u00e9" ], [ "40", "Planif\\u00e9" ], [ "50", "a eu lieu" ], [ "60", "D\\u00e9plac\\u00e9" ], [ "70", "Annul\\u00e9" ], [ "80", "Absent" ] ];\n'
20130515 'Lino.accounts.AccountTypes = [ [ "A", "Actifs" ], [ "L", "Obligations" ], [ "I", "Revenus" ], [ "E", "D\\u00e9penses" ], [ "C", "Capital" ], [ "B", "Bank accounts" ] ];\n'
20130515 'Lino.cv.CefLevel = [ [ "A1", "A1 (basic language skills)" ], [ "A2", "A2 (basic language skills)" ], [ "A2+", "A2+ (basic language skills)" ], [ "B1", "B1 (independent use of language)" ], [ "B2", "B2 (independent use of language)" ], [ "B2+", "B2+ (independent use of language)" ], [ "C1", "C1 (proficient use of language)" ], [ "C2", "C2 (proficient use of language)" ], [ "C2+", "C2+ (proficient use of language)" ] ];\n'
20130515 'Lino.properties.HowWell = [ [ "0", "not at all" ], [ "1", "a bit" ], [ "2", "moderate" ], [ "3", "quite well" ], [ "4", "very well" ] ];\n'
20130515 'Lino.jobs.CandidatureStates = [ [ "10", "Active" ], [ "20", "p\\u00e9riode d\'essai" ], [ "25", "Probation failed" ], [ "27", "Travaille" ], [ "30", "Inactive" ] ];\n'
20130515 'Lino.outbox.RecipientType = [ [ "to", "to" ], [ "cc", "cc" ], [ "bcc", "bcc" ] ];\n'
20130515 'Lino.countries.CityTypes = [ [ "10", "Member State" ], [ "11", "Division" ], [ "12", "Region" ], [ "13", "Community" ], [ "14", "Territory" ], [ "20", "County" ], [ "21", "Province" ], [ "22", "Shire" ], [ "23", "Subregion" ], [ "24", "Department" ], [ "25", "Arrondissement" ], [ "26", "Prefecture" ], [ "27", "District" ], [ "28", "Secteur" ], [ "50", "Ville" ], [ "51", "Town" ], [ "52", "Municipality" ], [ "54", "Parish" ], [ "55", "Township" ], [ "56", "Quarter" ], [ "61", "Borough" ], [ "62", "Small borough" ], [ "70", "Village" ] ];\n'
20130515 'Lino.pcsw.BeIdCardTypes = [ [ "1", "Registre national" ], [ "6", "Kids card (< 12 year)" ], [ "11", "Foreigner card A" ], [ "12", "Foreigner card B" ], [ "13", "Foreigner card C" ], [ "14", "Foreigner card D" ], [ "15", "Foreigner card E" ], [ "16", "Foreigner card E+" ], [ "17", "Foreigner card F" ], [ "18", "Foreigner card F+" ] ];\n'
20130515 'Lino.pcsw.CivilState = [ [ "10", "c\\u00e9libataire" ], [ "13", "C\\u00e9libateire cohabitant" ], [ "18", "C\\u00e9libataire avec enfant" ], [ "20", "mari\\u00e9" ], [ "21", "Mari\\u00e9 (habitant seul)" ], [ "22", "Mari\\u00e9 (vivant avec autre partenaire)" ], [ "30", "veuf/veuve" ], [ "33", "Veuf cohabitant" ], [ "40", "divorc\\u00e9" ], [ "50", "s\\u00e9par\\u00e9" ] ];\n'
20130515 'Lino.pcsw.ClientStates = [ [ "10", "Nouveau" ], [ "20", "Refus\\u00e9" ], [ "30", "Accompagn\\u00e9" ], [ "50", "Ancien" ] ];\n'
20130515 'Lino.cal.GuestStates = [ [ "10", "Invit\\u00e9" ], [ "20", "Accept\\u00e9" ], [ "30", "Rejet\\u00e9" ], [ "40", "Pr\\u00e9sent" ], [ "50", "Absent" ] ];\n'
20130515 'Lino.properties.DoYouLike = [ [ "0", "certainly not" ], [ "1", "rather not" ], [ "2", "normally" ], [ "3", "quite much" ], [ "4", "very much" ] ];\n'
20130515 'Lino.cbss.RequestLanguages = [ [ "nl", "Dutch" ], [ "fr", "French" ], [ "de", "German" ] ];\n'
20130515 'Lino.cbss.ManageAction = [ [ "1", "Int\\u00e9grer" ], [ "2", "Annuler int\\u00e9gration" ], [ "3", "Listing" ] ];\n'
20130515 'Lino.pcsw.RefusalReasons = [ [ "10", "Information request (No coaching needed)" ], [ "20", "CPAS n\'est pas comp\\u00e9tent" ], [ "30", "Client n\'est plus revenu" ] ];\n'
20130515 'Lino.lino.UserGroups = [ [ "office", "office (Office)" ], [ "accounting", "accounting (Comptabilit\\u00e9)" ], [ "integ", "integ (Int\\u00e9gration)" ], [ "newcomers", "newcomers (Nouvelles demandes)" ], [ "debts", "debts (M\\u00e9diation de dettes)" ], [ "cbss", "cbss (BCSS)" ] ];\n'
20130515 'Lino.cbss.RequestStates = [ [ "10", "Ex\\u00e9cut\\u00e9" ], [ "20", "echec" ], [ "25", "Valid\\u00e9" ], [ "30", "OK" ], [ "40", "Avertissements" ], [ "50", "Erreurs" ] ];\n'
20130515 'Lino.lino.ChangeTypes = [ [ "C", "Cr\\u00e9er" ], [ "U", "Update" ], [ "D", "Supprimer" ], [ "R", "Remove child" ], [ "A", "Add child" ], [ "M", "Merge" ] ];\n'
20130515 'Lino.cal.AccessClasses = [ [ "10", "Priv\\u00e9" ], [ "20", "Montrer \\"occup\\u00e9\\"" ], [ "30", "Public" ] ];\n'
20130515 'Lino.cbss.QueryRegister = [ [ "1", "Primaire" ], [ "2", "Secondaire" ], [ "3", "Tous" ] ];\n'
20130515 'Lino.lino.Genders = [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ];\n'
20130515 'Lino.pcsw.ResidenceType = [ [ "1", "Registre national" ], [ "2", "Registre des \\u00e9trangers" ], [ "3", "Registre d\'attente " ] ];\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1534 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1535 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1536 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1537 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1538 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1539 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1534, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1535, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1536, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1537, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1538, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1539, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1534, type1535, show_past1536, show_active1537, show_coming1538, today1539 ];\n'
20130515 '    Lino.jobs.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client_state1776 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1777 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1778 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1779 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1780 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var also_obsolete1781 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1782 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1776, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1777, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1778, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1779, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1780, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var aged_from1789 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1790 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1791 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var nationality1792 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1793 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1789, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1790, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1791, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1792, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var language1798 = new Lino.TwinCombo({ "fieldLabel": "Connaissance de langue", "name": "language", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Languages.detail)}, "emptyText": "Choisir Langue...", "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/language", "method": "GET" }) }) });\n'
20130515 '    var wanted_property1799 = new Lino.TwinCombo({ "fieldLabel": "Comp\\u00e9tence requise", "name": "wanted_property", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.properties.Properties.detail)}, "emptyText": "Choisir Propri\\u00e9t\\u00e9...", "selectOnFocus": true, "hiddenName": "wanted_propertyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/wanted_property", "method": "GET" }) }) });\n'
20130515 '    var group1800 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/group", "method": "GET" }) }) });\n'
20130515 '    var only_active1801 = new Ext.form.Checkbox({ "boxLabel": "Clients actifs seulement", "listeners": { "render": Lino.quicktip_renderer("Clients actifs seulement","Show only clients in \'active\' integration phases") }, "hideLabel": true, "checked": false, "name": "only_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_3_panel1802 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1798, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": wanted_property1799, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1800, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_active1801, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1782, main_2_panel1793, main_3_panel1802 ];\n'
20130515 '    this.fields = [ client_state1776, coached_by1777, and_coached_by1778, coached_on1779, only_primary1780, also_obsolete1781, aged_from1789, aged_to1790, gender1791, nationality1792, language1798, wanted_property1799, group1800, only_active1801 ];\n'
20130515 '    Lino.pcsw.IntegClients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2454 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2455 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var job_type2456 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    this.items = [ { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2454, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2455, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2456, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2454, date2455, job_type2456 ];\n'
20130515 '    Lino.jobs.JobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from1753 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1754 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1755 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1756 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1757 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1753, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1754, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1755, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1756, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state1762 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1763 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1764 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1765 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1766 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality1767 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1768 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1762, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1763, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1764, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1765, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1766, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1767, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1757, main_2_panel1768 ];\n'
20130515 '    this.fields = [ aged_from1753, aged_to1754, gender1755, also_obsolete1756, client_state1762, coached_by1763, and_coached_by1764, coached_on1765, only_primary1766, nationality1767 ];\n'
20130515 '    Lino.pcsw.Clients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1427 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1428 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1429 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1430 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1431 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1432 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1427, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1428, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1429, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1430, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1431, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1432, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1427, type1428, show_past1429, show_active1430, show_coming1431, today1432 ];\n'
20130515 '    Lino.isip.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var dates_from836 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Date du","Nur Termine ab diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date du</span>", "anchor": "-20", "name": "dates_from" });\n'
20130515 '    var dates_to837 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("au ","Nur Termine bis zu diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">au </span>", "anchor": "-20", "name": "dates_to" });\n'
20130515 '    var user838 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Responsible user</span>", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Responsible user","Nur Termine dieses Benutzers.") }, "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to839 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Attribu\\u00e9 \\u00e0</span>", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Attribu\\u00e9 \\u00e0","Nur Termine, die diesem Benutzer zugewiesen sind.") }, "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var state840 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "state", "hiddenName": "stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Termine in diesem Bearbeitungszustand.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.EventStates });\n'
20130515 '    var unclear841 = new Ext.form.Checkbox({ "boxLabel": "Mes rendez-vous \\u00e0 clarifier", "hideLabel": true, "checked": false, "name": "unclear", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel842 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 252, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_from836, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_to837, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user838, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to839, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state840, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unclear841, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel842 ];\n'
20130515 '    this.fields = [ dates_from836, dates_to837, user838, assigned_to839, state840, unclear841 ];\n'
20130515 '    Lino.cal.MyEvents.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 126,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var job_type2463 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/NewJobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    var today2464 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2463, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today2464, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ job_type2463, today2464 ];\n'
20130515 '    Lino.jobs.NewJobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from2128 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to2129 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender2130 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete2131 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel2132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from2128, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to2129, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2130, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete2131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state2137 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by2138 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by2139 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on2140 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary2141 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality2142 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2143 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state2137, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by2138, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by2139, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on2140, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary2141, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality2142, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var request_state2150 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "name": "request_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "hiddenName": "request_stateHidden" });\n'
20130515 '    var course_content2151 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "name": "course_content", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "course_contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_content", "method": "GET" }) }) });\n'
20130515 '    var course_provider2152 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "name": "course_provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "course_providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_provider", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel2153 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": request_state2150, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_content2151, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_provider2152, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel2132, main_2_panel2143, main_3_panel2153 ];\n'
20130515 '    this.fields = [ aged_from2128, aged_to2129, gender2130, also_obsolete2131, client_state2137, coached_by2138, and_coached_by2139, coached_on2140, only_primary2141, nationality2142, request_state2150, course_content2151, course_provider2152 ];\n'
20130515 '    Lino.courses.PendingCourseRequests.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2420 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverviewByType/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2421 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2420, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2421, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2420, date2421 ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var gender1098 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1099 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1100 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 47, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1098, "labelAlign": "top" }, { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1099, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1100 ];\n'
20130515 '    this.fields = [ gender1098, also_obsolete1099 ];\n'
20130515 '    Lino.contacts.Persons.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 90,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Refuser",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var reason13 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "reason", "allowBlank": false, "hiddenName": "reasonHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "name": "reason" });\n'
20130515 '    var remark14 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    this.items = [ { "items": reason13, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": remark14, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ];\n'
20130515 '    this.fields = [ reason13, remark14 ];\n'
20130515 '    Lino.pcsw.Clients.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 387,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Rejeter",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var notify_subject6 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "notify_subject" });\n'
20130515 '    var notify_body7 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "notify_body" });\n'
20130515 '    var notify_silent8 = new Ext.form.Checkbox({ "boxLabel": "Don\'t send email notification", "hideLabel": true, "checked": false, "name": "notify_silent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    this.items = [ { "items": notify_subject6, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": notify_body7, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, { "items": notify_silent8, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ notify_subject6, notify_body7, notify_silent8 ];\n'
20130515 '    Lino.cal.GuestsByEvent.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to18 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/pcsw/Clients/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var pcsw_Coaching19 = new Ext.form.Checkbox({ "boxLabel": "Accompagnements", "hideLabel": true, "checked": false, "name": "pcsw_Coaching", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var cv_LanguageKnowledge20 = new Ext.form.Checkbox({ "boxLabel": "Connaissances de langue", "hideLabel": true, "checked": false, "name": "cv_LanguageKnowledge", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_1_panel21 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": pcsw_Coaching19, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cv_LanguageKnowledge20, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var properties_PersonProperty24 = new Ext.form.Checkbox({ "boxLabel": "Propri\\u00e9t\\u00e9s", "hideLabel": true, "checked": false, "name": "properties_PersonProperty", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_panel25 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Auch verg\\u00e4ngliche verkn\\u00fcpfte Objekte \\u00fcberweisen", "items": [ keep_volatiles_1_panel21, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": properties_PersonProperty24, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var reason27 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to18, "anchor": "-20", "labelAlign": "top" }, keep_volatiles_panel25, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason27, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to18, pcsw_Coaching19, cv_LanguageKnowledge20, properties_PersonProperty24, reason27 ];\n'
20130515 '    Lino.pcsw.Clients.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to1 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/contacts/Companies/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var reason2 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to1, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason2, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to1, reason2 ];\n'
20130515 '    Lino.contacts.Companies.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var start_date818 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time819 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel820 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date818, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date823 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time824 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel825 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date823, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time824, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var main_2_panel828 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ start_panel820, end_panel825 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var calendar829 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var project830 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel831 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar829, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project830, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel834 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary817, "anchor": "-20", "labelAlign": "top" }, main_2_panel828, main_3_panel831 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel834;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1608 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var job1609 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var main_panel1610 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1608, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1609, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1610;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1609.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1440 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1441 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1442 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1443 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1444 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var general_1_panel1445 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1440, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1441, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1442, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1443, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1444, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type1451 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1452 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1453 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1454 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel1455 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1451, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1452, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1453, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1454, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1460 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var applies_until1461 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1462 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var general_3_panel1463 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1460, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1461, "labelAlign": "top" }, { "flex": 55, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1462, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1467 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1468 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1469 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1470 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var general_4_panel1471 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1467, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1468, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1469, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1470, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid1476 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 47 });\n'
20130515 '    var cal_EventsByController_grid1483 = new Lino.cal.EventsByController.GridPanel({ "flex": 52, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ], "master_panel": this });\n'
20130515 '    var general_5_panel1484 = new Ext.Panel({ "flex": 55, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ cal_TasksByController_grid1476, cal_EventsByController_grid1483 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1485 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1445, general_2_panel1455, general_3_panel1463, general_4_panel1471, general_5_panel1484 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var stages1486 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "stages", "title": "stages" });\n'
20130515 '    var goals1487 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "goals", "title": "buts" });\n'
20130515 '    var isip_1_panel1488 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ stages1486, goals1487 ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_asd1489 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_asd", "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1490 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_dsbe", "title": "devois ISP" });\n'
20130515 '    var isip_2_panel1491 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_asd1489, duties_dsbe1490 ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_company1492 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_company", "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1493 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_person", "title": "Devoirs personne" });\n'
20130515 '    var isip_3_panel1494 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_company1492, duties_person1493 ], "region": "south", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var isip_panel1495 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "PIIS", "hideCheckBoxLabels": true, "items": [ isip_1_panel1488, isip_2_panel1491, isip_3_panel1494 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1496 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1485, isip_panel1495 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1496;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1453.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      cal_TasksByController_grid1476.on_master_changed();\n'
20130515 '      cal_EventsByController_grid1483.on_master_changed();\n'
20130515 '      stages1486.refresh();\n'
20130515 '      goals1487.refresh();\n'
20130515 '      duties_asd1489.refresh();\n'
20130515 '      duties_dsbe1490.refresh();\n'
20130515 '      duties_company1492.refresh();\n'
20130515 '      duties_person1493.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1452.on('change',Lino.chooser_handler(contact_person1453,'company'));\n"
20130515 '      Lino.isip.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1452.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1497 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var type1498 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1499 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1500 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1498, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1499, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1503 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1497, "anchor": "-20", "labelAlign": "top" }, main_2_panel1500 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1499.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name2378 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2379 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2380 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2381 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2379, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2380, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2384 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2378, "anchor": "-20", "labelAlign": "top" }, main_2_panel2381 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2384;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var subject673 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project674 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var date675 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date","\\n        The official date to be printed on the document.\\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date</span>", "name": "date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel676 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject673, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project674, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date675, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var user680 = new Lino.TwinCombo({ "fieldLabel": "exp\\u00e9diteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/user", "method": "GET" }) }) });\n'
20130515 '    var sent681 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "sent", "anchor": "-20", "value": "<br>", "name": "sent" });\n'
20130515 '    var id682 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var owner_disp683 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_2_panel684 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user680, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent681, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id682, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp683, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var RecipientsByMail_grid695 = new Lino.outbox.RecipientsByMail.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.RecipientsByMail.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var AttachmentsByMail_htmlbox696 = new Lino.HtmlBoxPanel({ "flex": 22, "layout": "fit", "name": "AttachmentsByMail", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Pi\\u00e8ces jointes", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.outbox.AttachmentsByMail.grid) ] });\n'
20130515 '    var UploadsByController_htmlbox697 = new Lino.HtmlBoxPanel({ "flex": 22, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel698 = new Ext.Panel({ "flex": 29, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ RecipientsByMail_grid695, AttachmentsByMail_htmlbox696, UploadsByController_htmlbox697 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var body699 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 58, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel700 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel676, main_2_panel684, main_3_panel698, body699 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel700;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      RecipientsByMail_grid695.on_master_changed();\n'
20130515 '      AttachmentsByMail_htmlbox696.refresh();\n'
20130515 '      UploadsByController_htmlbox697.refresh();\n'
20130515 '      body699.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date636 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var event_type637 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type638 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var left_1_panel639 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date636, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type637, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type638, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var subject643 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project644 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company645 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var left_3_panel646 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project644, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company645, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var id649 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var user650 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/user", "method": "GET" }) }) });\n'
20130515 '    var language651 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var build_time652 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var left_4_panel653 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id649, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user650, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language651, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time652, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var body658 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 55, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var left_panel659 = new Ext.Panel({ "flex": 66, "layout": "vbox", "items": [ left_1_panel639, { "items": subject643, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, left_3_panel646, left_4_panel653, body658 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox661 = new Lino.HtmlBoxPanel({ "flex": 16, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var outbox_MailsByController_grid707 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var postings_PostingsByController_grid718 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var cal_TasksByController_grid724 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var right_panel725 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ UploadsByController_htmlbox661, outbox_MailsByController_grid707, postings_PostingsByController_grid718, cal_TasksByController_grid724 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel726 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ left_panel659, right_panel725 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel727 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel726 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel727;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body658.refresh();\n'
20130515 '      UploadsByController_htmlbox661.refresh();\n'
20130515 '      outbox_MailsByController_grid707.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid718.on_master_changed();\n'
20130515 '      cal_TasksByController_grid724.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var preview_htmlbox2461 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "preview", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2462 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ preview_htmlbox2461 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2462;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      preview_htmlbox2461.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.NewJobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name550 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id551 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language552 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel553 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix549, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name550, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id551, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language552, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity559 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }) });\n'
20130515 '    var type560 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel561 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id558, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity559, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type560, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account1565 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete567 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel568 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1565, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2566, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete567, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel572 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel553, intro_box_2_panel561, intro_box_3_panel568 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country573 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }) });\n'
20130515 '    var region574 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel575 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country573, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region574, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city578 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code579 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel580 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city578, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code579, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix583 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street584 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no585 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box586 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel587 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix583, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street584, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no585, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box586, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2592 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel593 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel575, box3_2_panel580, box3_3_panel587, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2592, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email595 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url596 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone597 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm598 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel599 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email595, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url596, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone597, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm598, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel604 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel593, box4_panel599 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks605 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var is_courseprovider606 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un organisateur de cours (<a href=\\"javascript:Lino.show_mti_child(\'is_courseprovider\',Lino.courses.CourseProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_courseprovider" });\n'
20130515 '    var is_jobprovider607 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est Employant (<a href=\\"javascript:Lino.show_mti_child(\'is_jobprovider\',Lino.jobs.JobProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_jobprovider" });\n'
20130515 '    var client_contact_type608 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de contact client", "name": "client_contact_type", "pageSize": 20, "emptyText": "Choisir Type de contact client...", "selectOnFocus": true, "hiddenName": "client_contact_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }) });\n'
20130515 '    var box5_2_panel609 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 261, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_courseprovider606, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_jobprovider607, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_contact_type608, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var box5_panel613 = new Ext.Panel({ "flex": 57, "layout": "vbox", "items": [ { "items": remarks605, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 }, box5_2_panel609 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByCompany_grid619 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel620 = new Ext.Panel({ "flex": 46, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box5_panel613, contacts_RolesByCompany_grid619 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel621 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel572, address_box_panel604, bottom_box_panel620 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid741 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var main_panel742 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel621, pcsw_NotesByCompany_grid741 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel742;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region574.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid619.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid741.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country573.on('change',Lino.chooser_handler(region574,'country'));\n"
20130515 "      country573.on('change',Lino.chooser_handler(city578,'country'));\n"
20130515 "      region574.on('change',Lino.chooser_handler(city578,'region'));\n"
20130515 '      Lino.contacts.Companies.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name504 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language505 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email506 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel507 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language505, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email506, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel510 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name504, "anchor": "-20", "labelAlign": "top" }, main_2_panel507 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel510;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var title1085 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var first_name1086 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1087 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1085, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1086, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1087, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1092 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1093 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_2_panel1094 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1092, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1093, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1097 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel1088, main_2_panel1094 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1097;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2212 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2213 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var main_1_panel2214 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2212, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2213, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2217 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2218 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2220 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2217, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2218, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2219, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2224 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2225 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2226 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2227 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2224, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2225, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2226, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2231 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2220, p2_2_panel2227 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2232 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel2214, p2_panel2231 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2232;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2212.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.lino.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2445 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var welcome_htmlbox2446 = new Lino.HtmlBoxPanel({ "flex": 10, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var UsersWithClients_htmlbox2447 = new Lino.HtmlBoxPanel({ "flex": 28, "layout": "fit", "name": "UsersWithClients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Agents et leurs clients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.pcsw.UsersWithClients.grid) ] });\n'
20130515 '    var coming_reminders_htmlbox2448 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "coming_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels \\u00e0 venir", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var missed_reminders_htmlbox2449 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "missed_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels rat\\u00e9s", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_4_panel2450 = new Ext.Panel({ "flex": 57, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ coming_reminders_htmlbox2448, missed_reminders_htmlbox2449 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2451 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2445, welcome_htmlbox2446, UsersWithClients_htmlbox2447, main_4_panel2450 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2451;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2445.refresh();\n'
20130515 '      welcome_htmlbox2446.refresh();\n'
20130515 '      UsersWithClients_htmlbox2447.refresh();\n'
20130515 '      coming_reminders_htmlbox2448.refresh();\n'
20130515 '      missed_reminders_htmlbox2449.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.lino.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var start_date107 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var due_date108 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Due date", "anchor": "-20", "name": "due_date" });\n'
20130515 '    var id109 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var workflow_buttons_disp110 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var main_1_panel111 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date107, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": due_date108, "labelAlign": "top" }, { "flex": 9, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id109, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp110, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var summary116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user117 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project118 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel119 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user117, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project118, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var calendar122 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/calendar", "method": "GET" }) }) });\n'
20130515 '    var owner_disp123 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var created124 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified125 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var main_4_panel126 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar122, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp123, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created124, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified125, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description131 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var main_panel132 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ main_1_panel111, { "items": summary116, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, main_3_panel119, main_4_panel126, description131 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel132;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description131.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2318 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2319 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2320 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2321 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2322 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2323 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2324 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2325 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2318, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2319, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2320, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2321, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2322, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2323, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2324, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2333 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2334 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var history2335 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var parameters_panel2336 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2333, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2334, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2335, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 99, "border": false, "labelAlign": "top" });\n'
20130515 '    var cbss_RetrieveTIGroupsResult_grid2345 = new Lino.cbss.RetrieveTIGroupsResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.RetrieveTIGroupsResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var request_panel2346 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2325, parameters_panel2336, cbss_RetrieveTIGroupsResult_grid2345 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2347 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2348 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2349 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2350 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2347, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2348, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2349, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2354 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2346, technical_panel2350 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2354;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cbss_RetrieveTIGroupsResult_grid2345.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 72,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix1808 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name1809 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id1810 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1811 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel1812 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix1808, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1809, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1810, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1811, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id1817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity1818 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type1819 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel1820 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id1817, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1818, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11824 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21825 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1826 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel1827 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11824, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21825, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1826, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel1831 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel1812, intro_box_2_panel1820, intro_box_3_panel1827 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country1832 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region1833 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel1834 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1832, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1833, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city1837 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1838 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel1839 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1837, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1838, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1842 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1843 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1844 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1845 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel1846 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1842, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1843, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1844, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1845, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21851 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel1852 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel1834, box3_2_panel1839, box3_3_panel1846, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21851, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email1854 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1855 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1856 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1857 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel1858 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1854, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1855, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1856, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1857, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel1863 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel1852, box4_panel1858 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1864 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid1865 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel1866 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1864, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid1865 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1868 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel1831, address_box_panel1863, bottom_box_panel1866 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid1869 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var JobsByProvider_grid1943 = new Lino.jobs.JobsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.jobs.JobsByProvider.grid) ], "master_panel": this });\n'
20130515 '    var ContractsByProvider_grid1972 = new Lino.jobs.ContractsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByProvider.grid) ] });\n'
20130515 '    var jobs_panel1973 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Emplois", "hideCheckBoxLabels": true, "items": [ JobsByProvider_grid1943, ContractsByProvider_grid1972 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1974 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1868, pcsw_NotesByCompany_grid1869, jobs_panel1973 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1974;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1833.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid1865.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid1869.on_master_changed();\n'
20130515 '      JobsByProvider_grid1943.on_master_changed();\n'
20130515 '      ContractsByProvider_grid1972.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1832.on('change',Lino.chooser_handler(region1833,'country'));\n"
20130515 "      country1832.on('change',Lino.chooser_handler(city1837,'country'));\n"
20130515 "      region1833.on('change',Lino.chooser_handler(city1837,'region'));\n"
20130515 '      Lino.jobs.JobProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var project701 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var subject702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var body703 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 71, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel704 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "items": project701, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": subject702, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, body703 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel704;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body703.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var first_name1740 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1741 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1742 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1740, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1741, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id1745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var gender1746 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1747 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_3_panel1748 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1746, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1747, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1751 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ main_1_panel1742, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1745, "anchor": "-20", "labelAlign": "top" }, main_3_panel1748 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1751;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name1104 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name1105 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var title1106 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var box1_1_panel1107 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1104, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1105, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1106, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1111 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/country", "method": "GET" }) }) });\n'
20130515 '    var city1112 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1113 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_2_panel1114 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1111, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1112, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1113, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1118 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1119 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1120 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1121 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_3_panel1122 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1118, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1119, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1120, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1121, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21127 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box1_panel1128 = new Ext.form.FieldSet({ "flex": 61, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ box1_1_panel1107, box1_2_panel1114, box1_3_panel1122, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21127, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1130 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1131 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box2_1_panel1132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1130, "labelAlign": "top" }, { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var phone1136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var fax1137 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var box2_3_panel1138 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1136, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1137, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 90, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gsm1141 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box2_panel1142 = new Ext.form.FieldSet({ "flex": 38, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ box2_1_panel1132, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1135, "anchor": "-20", "labelAlign": "top" }, box2_3_panel1138, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1141, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 63, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1145 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1128, box2_panel1142 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1146 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var birth_date1147 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var age_disp1148 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "\\u00e2ge", "name": "age", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state1149 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Etat civil", "name": "civil_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.CivilState, "hiddenName": "civil_stateHidden" });\n'
20130515 '    var noble_condition1150 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Titre de noblesse","The eventual noble condition of this person. Imported from TIM.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Titre de noblesse</span>", "name": "noble_condition", "maxLength": 50, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_1_panel1151 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1146, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date1147, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": age_disp1148, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": civil_state1149, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": noble_condition1150, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_country1157 = new Lino.TwinCombo({ "fieldLabel": "Pays de naissance", "name": "birth_country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "birth_countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/birth_country", "method": "GET" }) }) });\n'
20130515 '    var birth_place1158 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Lieu de naissance", "anchor": "-20", "name": "birth_place" });\n'
20130515 '    var nationality1159 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var national_id1160 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var box3_2_panel1161 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_country1157, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_place1158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1159, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1160, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel1166 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Naissance", "items": [ box3_1_panel1151, box3_2_panel1161 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var card_number1167 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20, "fieldLabel": "n\\u00b0", "anchor": "-20", "name": "card_number" });\n'
20130515 '    var card_valid_from1168 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "valide de", "anchor": "-20", "name": "card_valid_from" });\n'
20130515 '    var card_valid_until1169 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "card_valid_until" });\n'
20130515 '    var card_issuer1170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50, "fieldLabel": "\\u00e9mise par", "anchor": "-20", "name": "card_issuer" });\n'
20130515 '    var card_type1171 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de carte eID", "name": "card_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.BeIdCardTypes, "hiddenName": "card_typeHidden" });\n'
20130515 '    var eid_panel_1_panel1172 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Carte eID", "bodyBorder": true, "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_number1167, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_from1168, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_until1169, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_issuer1170, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_type1171, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created1178 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1179 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box4_3_panel1180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1178, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box4_panel1183 = new Ext.Panel({ "flex": 82, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box3_panel1166, eid_panel_1_panel1172, box4_3_panel1180 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var image_htmlbox1184 = new Lino.HtmlBoxPanel({ "flex": 17, "layout": "fit", "name": "image", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var general_2_panel1185 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ box4_panel1183, image_htmlbox1184 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 0, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var general_panel1186 = new Ext.Panel({ "autoHeight": true, "layout": "form", "title": "Personne", "items": [ general_1_panel1145, general_2_panel1185 ], "frame": true, "bodyBorder": false, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "labelAlign": "top" });\n'
20130515 '    var in_belgium_since1187 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("en Belgique depuis","Since when this person in Belgium lives.\\n<b>Important:</b> help_text can be formatted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">en Belgique depuis</span>", "anchor": "-20", "name": "in_belgium_since" });\n'
20130515 '    var residence_type1188 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de s\\u00e9jour", "name": "residence_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ResidenceType, "hiddenName": "residence_typeHidden" });\n'
20130515 '    var gesdos_id1189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "N\\u00b0 GesDos", "anchor": "-20", "name": "gesdos_id" });\n'
20130515 '    var status_1_panel1190 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": in_belgium_since1187, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_type1188, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gesdos_id1189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11194 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var status_2_panel1196 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11194, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21195, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var job_agents1199 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Agences de travail", "anchor": "-20", "name": "job_agents" });\n'
20130515 '    var group1200 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/group", "method": "GET" }) }) });\n'
20130515 '    var status_3_panel1201 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_agents1199, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1200, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var status_panel1204 = new Ext.Panel({ "flex": 68, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ status_1_panel1190, status_2_panel1196, status_3_panel1201 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var aid_type1205 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'aide sociale", "name": "aid_type", "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale...", "selectOnFocus": true, "hiddenName": "aid_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }) });\n'
20130515 '    var income_ag1206 = new Ext.form.Checkbox({ "boxLabel": "allocation de ch\\u00f4mage", "hideLabel": true, "checked": false, "name": "income_ag", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_wg1207 = new Ext.form.Checkbox({ "boxLabel": "waiting pay", "hideLabel": true, "checked": false, "name": "income_wg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_2_panel1208 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_ag1206, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_wg1207, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_kg1211 = new Ext.form.Checkbox({ "boxLabel": "indemnisation maladie", "hideLabel": true, "checked": false, "name": "income_kg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_rente1212 = new Ext.form.Checkbox({ "boxLabel": "persone de retraite", "hideLabel": true, "checked": false, "name": "income_rente", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_3_panel1213 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_kg1211, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_rente1212, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_misc1216 = new Ext.form.Checkbox({ "boxLabel": "autres revenus", "hideLabel": true, "checked": false, "name": "income_misc", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_panel1217 = new Ext.Panel({ "flex": 31, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": aid_type1205, "anchor": "-20", "labelAlign": "top" }, income_2_panel1208, income_3_panel1213, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_misc1216, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 180, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_1_panel1220 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ status_panel1204, income_panel1217 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_seeking1221 = new Ext.form.Checkbox({ "boxLabel": "cherche du travail", "hideLabel": true, "checked": false, "name": "is_seeking", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var unemployed_since1222 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Cherche du travail depuis", "anchor": "-20", "name": "unemployed_since" });\n'
20130515 '    var work_permit_suspended_until1223 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "suspendu jusque", "anchor": "-20", "name": "work_permit_suspended_until" });\n'
20130515 '    var suche_1_panel1224 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_seeking1221, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unemployed_since1222, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_suspended_until1223, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var unavailable_until1228 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Indidponible jusque", "anchor": "-20", "name": "unavailable_until" });\n'
20130515 '    var unavailable_why1229 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "raison", "anchor": "-20", "name": "unavailable_why" });\n'
20130515 '    var suche_2_panel1230 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_until1228, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_why1229, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ExclusionsByPerson_grid1238 = new Lino.pcsw.ExclusionsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ExclusionsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var suche_panel1239 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Recherche de travail", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ suche_1_panel1224, suche_2_panel1230, pcsw_ExclusionsByPerson_grid1238 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var needs_residence_permit1240 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de s\\u00e9jour", "hideLabel": true, "checked": false, "name": "needs_residence_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var needs_work_permit1241 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de travail", "hideLabel": true, "checked": false, "name": "needs_work_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var papers_1_panel1242 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 288, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_residence_permit1240, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_work_permit1241, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var residence_permit_disp1245 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de s\\u00e9jour", "name": "residence_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var work_permit_disp1246 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de travail", "name": "work_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var driving_licence_disp1247 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "permis de conduire", "name": "driving_licence", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var papers_2_panel1248 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_permit_disp1245, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_disp1246, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": driving_licence_disp1247, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox1252 = new Lino.HtmlBoxPanel({ "flex": 42, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var papers_panel1253 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Papiers", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ papers_1_panel1242, papers_2_panel1248, UploadsByController_htmlbox1252 ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_2_panel1254 = new Ext.Panel({ "flex": 63, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ suche_panel1239, papers_panel1253 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_panel1255 = new Ext.Panel({ "layout": "vbox", "title": "Statut", "items": [ status_tab_1_panel1220, status_tab_2_panel1254 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var workflow_buttons_disp1256 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker1257 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Interm\\u00e9diaire ", "name": "broker", "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ...", "selectOnFocus": true, "hiddenName": "brokerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/broker", "method": "GET" }) }) });\n'
20130515 '    var faculty1258 = new Lino.TwinCombo({ "fieldLabel": "Sp\\u00e9cificit\\u00e9", "name": "faculty", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.newcomers.Faculties.detail)}, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9...", "selectOnFocus": true, "hiddenName": "facultyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/faculty", "method": "GET" }) }) });\n'
20130515 '    var newcomers_left_panel1259 = new Ext.Panel({ "flex": 33, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp1256, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": broker1257, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": faculty1258, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var coaching_1_panel1278 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ newcomers_left_panel1259 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ContactsByClient_grid1286 = new Lino.pcsw.ContactsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ContactsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var pcsw_CoachingsByClient_grid1294 = new Lino.pcsw.CoachingsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var coaching_2_panel1295 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ pcsw_ContactsByClient_grid1286, pcsw_CoachingsByClient_grid1294 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var coaching_panel1296 = new Ext.Panel({ "layout": "vbox", "title": "Accompagnement", "items": [ coaching_1_panel1278, coaching_2_panel1295 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_StudiesByPerson_grid1309 = new Lino.jobs.StudiesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "master_panel": this, "listeners": { "render": Lino.quicktip_renderer("\\u00c9tudes & formations","List of studies for a given person.") }, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByPerson.grid) ] });\n'
20130515 '    var jobs_ExperiencesByPerson_grid1319 = new Lino.jobs.ExperiencesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var education_panel1320 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Formation", "hideCheckBoxLabels": true, "items": [ jobs_StudiesByPerson_grid1309, jobs_ExperiencesByPerson_grid1319 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_LanguageKnowledgesByPerson_grid1327 = new Lino.cv.LanguageKnowledgesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.cv.LanguageKnowledgesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var courses_CourseRequestsByPerson_grid1363 = new Lino.courses.CourseRequestsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseRequestsByPerson.grid) ], "master_panel": this });\n'
20130515 '    var languages_panel1364 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Langues", "hideCheckBoxLabels": true, "items": [ cv_LanguageKnowledgesByPerson_grid1327, courses_CourseRequestsByPerson_grid1363 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_SkillsByPerson_grid1371 = new Lino.cv.SkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var cv_SoftSkillsByPerson_grid1378 = new Lino.cv.SoftSkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SoftSkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var skills1379 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Autres talents", "anchor": "-20 -10", "growMax": 2000, "name": "skills" });\n'
20130515 '    var competences_1_panel1380 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_SkillsByPerson_grid1371, cv_SoftSkillsByPerson_grid1378, { "items": skills1379, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 28 } ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 135, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var cv_ObstaclesByPerson_grid1388 = new Lino.cv.ObstaclesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.ObstaclesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var obstacles1389 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Obstacles", "anchor": "-20 -10", "growMax": 2000, "name": "obstacles" });\n'
20130515 '    var competences_2_panel1390 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_ObstaclesByPerson_grid1388, { "items": obstacles1389, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 44 } ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 90, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var competences_panel1392 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Comp\\u00e9tences", "hideCheckBoxLabels": true, "items": [ competences_1_panel1380, competences_2_panel1390 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_CandidaturesByPerson_grid1401 = new Lino.jobs.CandidaturesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Demandes d\'emploi", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var isip_ContractsByPerson_grid1505 = new Lino.isip.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.isip.ContractsByPerson.grid) ] });\n'
20130515 '    var jobs_ContractsByPerson_grid1613 = new Lino.jobs.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByPerson.grid) ] });\n'
20130515 '    var contracts_panel1614 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Contrats", "hideCheckBoxLabels": true, "items": [ isip_ContractsByPerson_grid1505, jobs_ContractsByPerson_grid1613 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByPerson_grid1629 = new Lino.pcsw.NotesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Historique", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var cal_EventsByProject_grid1655 = new Lino.cal.EventsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByProject.grid) ] });\n'
20130515 '    var cal_TasksByProject_grid1678 = new Lino.cal.TasksByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByProject.grid) ], "master_panel": this });\n'
20130515 '    var calendar_panel1679 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_EventsByProject_grid1655, cal_TasksByProject_grid1678 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByProject_grid1691 = new Lino.outbox.MailsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByProject.grid) ], "master_panel": this });\n'
20130515 '    var postings_PostingsByProject_grid1702 = new Lino.postings.PostingsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByProject.grid) ], "master_panel": this });\n'
20130515 '    var outbox_panel1703 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Correspondence", "hideCheckBoxLabels": true, "items": [ outbox_MailsByProject_grid1691, postings_PostingsByProject_grid1702 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var activity1704 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/activity", "method": "GET" }) }) });\n'
20130515 '    var client_state1705 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "client_stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates, "name": "client_state" });\n'
20130515 '    var refusal_reason1706 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "refusal reason", "name": "refusal_reason", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "hiddenName": "refusal_reasonHidden" });\n'
20130515 '    var misc_1_panel1707 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1704, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1705, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refusal_reason1706, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_cpas1711 = new Ext.form.Checkbox({ "boxLabel": "client CPAS", "hideLabel": true, "checked": false, "name": "is_cpas", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_senior1712 = new Ext.form.Checkbox({ "boxLabel": "retrait\\u00e9", "hideLabel": true, "checked": false, "name": "is_senior", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_obsolete1713 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var misc_2_panel1714 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_cpas1711, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_senior1712, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1713, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1718 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var remarks21719 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque (Bureau Social)", "anchor": "-20 -10", "growMax": 2000, "name": "remarks2" });\n'
20130515 '    var misc_3_panel1720 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 225, "hideCheckBoxLabels": true, "items": [ { "items": remarks1718, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 }, { "items": remarks21719, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 } ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByPerson_grid1723 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var households_MembersByPerson_grid1724 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var misc_4_panel1725 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_RolesByPerson_grid1723, households_MembersByPerson_grid1724 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var misc_panel1726 = new Ext.Panel({ "layout": "vbox", "title": "Divers", "items": [ misc_1_panel1707, misc_2_panel1714, misc_3_panel1720, misc_4_panel1725 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cbss_identify_person_disp1727 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates IdentifyPerson", "name": "cbss_identify_person", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_manage_access_disp1728 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates ManageAccess", "name": "cbss_manage_access", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_retrieve_ti_groups_disp1729 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates Tx25", "name": "cbss_retrieve_ti_groups", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_1_panel1730 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_identify_person_disp1727, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_manage_access_disp1728, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_retrieve_ti_groups_disp1729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cbss_summary_htmlbox1734 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "cbss_summary", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Sommaire BCSS", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var cbss_panel1735 = new Ext.Panel({ "layout": "vbox", "title": "BCSS", "items": [ cbss_1_panel1730, cbss_summary_htmlbox1734 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 126, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1739 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1186, status_tab_panel1255, coaching_panel1296, education_panel1320, languages_panel1364, competences_panel1392, jobs_CandidaturesByPerson_grid1401, contracts_panel1614, pcsw_NotesByPerson_grid1629, calendar_panel1679, outbox_panel1703, misc_panel1726, cbss_panel1735 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1112.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1112.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      image_htmlbox1184.refresh();\n'
20130515 '      pcsw_ExclusionsByPerson_grid1238.on_master_changed();\n'
20130515 '      UploadsByController_htmlbox1252.refresh();\n'
20130515 '      pcsw_ContactsByClient_grid1286.on_master_changed();\n'
20130515 '      pcsw_CoachingsByClient_grid1294.on_master_changed();\n'
20130515 '      jobs_StudiesByPerson_grid1309.on_master_changed();\n'
20130515 '      jobs_ExperiencesByPerson_grid1319.on_master_changed();\n'
20130515 '      cv_LanguageKnowledgesByPerson_grid1327.on_master_changed();\n'
20130515 '      courses_CourseRequestsByPerson_grid1363.on_master_changed();\n'
20130515 '      cv_SkillsByPerson_grid1371.on_master_changed();\n'
20130515 '      cv_SoftSkillsByPerson_grid1378.on_master_changed();\n'
20130515 '      cv_ObstaclesByPerson_grid1388.on_master_changed();\n'
20130515 '      jobs_CandidaturesByPerson_grid1401.on_master_changed();\n'
20130515 '      isip_ContractsByPerson_grid1505.on_master_changed();\n'
20130515 '      jobs_ContractsByPerson_grid1613.on_master_changed();\n'
20130515 '      pcsw_NotesByPerson_grid1629.on_master_changed();\n'
20130515 '      cal_EventsByProject_grid1655.on_master_changed();\n'
20130515 '      cal_TasksByProject_grid1678.on_master_changed();\n'
20130515 '      outbox_MailsByProject_grid1691.on_master_changed();\n'
20130515 '      postings_PostingsByProject_grid1702.on_master_changed();\n'
20130515 '      contacts_RolesByPerson_grid1723.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1724.on_master_changed();\n'
20130515 '      cbss_summary_htmlbox1734.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1111.on('change',Lino.chooser_handler(city1112,'country'));\n"
20130515 '      Lino.pcsw.Clients.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var event_type728 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type729 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel730 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type728, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var subject733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project734 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company735 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel736 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project734, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company735, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel739 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 72, "autoScroll": false, "items": [ main_1_panel730, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject733, "anchor": "-20", "labelAlign": "top" }, main_3_panel736 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2355 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2357 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var main_2_panel2358 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 70, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2356, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2357, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var history2361 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_panel2362 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2355, "anchor": "-20", "labelAlign": "top" }, main_2_panel2358, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2361, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 69,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1881 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var provider1882 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }) });\n'
20130515 '    var contract_type1883 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }) });\n'
20130515 '    var type1884 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }) });\n'
20130515 '    var id1885 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel1886 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1881, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1882, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type1883, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1884, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1885, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var sector1892 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }) });\n'
20130515 '    var function1893 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }) });\n'
20130515 '    var capacity1894 = new Ext.form.NumberField({ "fieldLabel": "Capacit\\u00e9", "name": "capacity", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var hourly_rate1895 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var main_2_panel1896 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1892, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1893, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": capacity1894, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1895, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1901 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var CandidaturesByJob_grid1910 = new Lino.jobs.CandidaturesByJob.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByJob.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var main_3_panel1911 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1901, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 33 }, CandidaturesByJob_grid1910 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var ContractsByJob_grid1941 = new Lino.jobs.ContractsByJob.GridPanel({ "flex": 41, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByJob.grid) ], "master_panel": this });\n'
20130515 '    var main_panel1942 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1886, main_2_panel1896, main_3_panel1911, ContractsByJob_grid1941 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1942;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1893.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      CandidaturesByJob_grid1910.on_master_changed();\n'
20130515 '      ContractsByJob_grid1941.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1892.on('change',Lino.chooser_handler(function1893,'sector'));\n"
20130515 '      Lino.jobs.Jobs.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Jobs.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name297 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var country298 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }) });\n'
20130515 '    var region299 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }) });\n'
20130515 '    var city300 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code301 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel302 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country298, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region299, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city300, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code301, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr1307 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix308 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street309 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no310 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box311 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel312 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix308, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street309, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no310, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box311, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2317 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel318 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name297, "anchor": "-20", "labelAlign": "top" }, address_box_2_panel302, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr1307, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel312, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2317, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id322 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language323 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel324 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id322, "labelAlign": "top" }, { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language323, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email327 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url328 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone329 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm330 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax331 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel332 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm330, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax331, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel335 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel324, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email327, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url328, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone329, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel332 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel339 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel318, contact_box_panel335 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks340 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var activity341 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1342 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2343 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete344 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_2_panel345 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity341, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1342, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2343, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete344, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_person350 = new Ext.form.Checkbox({ "boxLabel": "est une Personne (<a href=\\"javascript:Lino.show_mti_child(\'is_person\',Lino.contacts.Persons.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Personne","Si ce partenaire est \\u00e9galement une personne.") }, "hideLabel": true, "name": "is_person", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_company351 = new Ext.form.Checkbox({ "boxLabel": "est une Organisation (<a href=\\"javascript:Lino.show_mti_child(\'is_company\',Lino.contacts.Companies.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Organisation","Si ce partenaire est \\u00e9galement une organisation.") }, "hideLabel": true, "name": "is_company", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_household352 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un m\\u00e9nage (<a href=\\"javascript:Lino.show_mti_child(\'is_household\',Lino.households.Households.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_household" });\n'
20130515 '    var created353 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified354 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_3_panel355 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_person350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_company351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_household352, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created353, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified354, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel361 = new Ext.Panel({ "flex": 58, "layout": "vbox", "items": [ { "items": remarks340, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, bottom_box_2_panel345, bottom_box_3_panel355 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_panel363 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel339, bottom_box_panel361 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var changes_ChangesByMaster_grid388 = new Lino.changes.ChangesByMaster.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Changes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.changes.ChangesByMaster.grid) ], "master_panel": this });\n'
20130515 '    var main_panel503 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel363, changes_ChangesByMaster_grid388 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region299.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      changes_ChangesByMaster_grid388.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country298.on('change',Lino.chooser_handler(region299,'country'));\n"
20130515 "      country298.on('change',Lino.chooser_handler(city300,'country'));\n"
20130515 "      region299.on('change',Lino.chooser_handler(city300,'region'));\n"
20130515 '      Lino.contacts.Partners.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 76,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2099 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var start_date2100 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var offer2101 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/Courses/offer", "method": "GET" }) }), "name": "offer" });\n'
20130515 '    var title2102 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Name", "anchor": "-20", "name": "title" });\n'
20130515 '    var main_1_panel2103 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2099, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2100, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer2101, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2102, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark2108 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Remarque", "anchor": "-20", "name": "remark" });\n'
20130515 '    var courses_ParticipantsByCourse_grid2114 = new Lino.courses.ParticipantsByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.ParticipantsByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var courses_CandidatesByCourse_grid2121 = new Lino.courses.CandidatesByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.CandidatesByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var main_panel2122 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel2103, { "items": remark2108, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, courses_ParticipantsByCourse_grid2114, courses_CandidatesByCourse_grid2121 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2122;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      courses_ParticipantsByCourse_grid2114.on_master_changed();\n'
20130515 '      courses_CandidatesByCourse_grid2121.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CoursesByOffer.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var body_htmlbox2452 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "body", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2453 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ body_htmlbox2452 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2453;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body_htmlbox2452.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user135 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project136 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel137 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user135, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project136, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel140 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary134, "anchor": "-20", "labelAlign": "top" }, main_2_panel137 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel140;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var isocode204 = new Ext.form.TextField({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">ISO code</span>", "name": "isocode", "boxMinWidth": Lino.chars2width(4), "listeners": { "render": Lino.quicktip_renderer("ISO code","        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.") }, "maxLength": 4, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name205 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr206 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl207 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var short_code208 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Short code","A short abbreviation for regional usage. Obsolete.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Short code</span>", "name": "short_code", "maxLength": 4, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var inscode209 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this country used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20" });\n'
20130515 '    var main_1_panel210 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": isocode204, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name205, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr206, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl207, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": short_code208, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode209, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var countries_CitiesByCountry_grid533 = new Lino.countries.CitiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 48 });\n'
20130515 '    var jobs_StudiesByCountry_grid546 = new Lino.jobs.StudiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 51 });\n'
20130515 '    var main_2_panel547 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ countries_CitiesByCountry_grid533, jobs_StudiesByCountry_grid546 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel548 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel210, main_2_panel547 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel548;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      countries_CitiesByCountry_grid533.on_master_changed();\n'
20130515 '      jobs_StudiesByCountry_grid546.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Countries.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name226 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr227 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl228 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var country229 = new Lino.TwinCombo({ "fieldLabel": "Pays", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/country", "method": "GET" }) }), "name": "country" });\n'
20130515 '    var inscode230 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this place used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 5, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "anchor": "-20" });\n'
20130515 '    var main_1_panel231 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name226, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr227, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl228, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country229, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode230, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var parent237 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Part of</span>", "name": "parent", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "listeners": { "render": Lino.quicktip_renderer("Part of","The superordinate geographic place of which this place is a part.") }, "selectOnFocus": true, "hiddenName": "parentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/parent", "method": "GET" }) }) });\n'
20130515 '    var type238 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Place Type", "name": "type", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/type", "method": "GET" }) }), "hiddenName": "typeHidden" });\n'
20130515 '    var id239 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel240 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": parent237, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type238, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id239, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var CitiesByCity_grid528 = new Lino.countries.CitiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var contacts_PartnersByCity_grid529 = new Lino.contacts.PartnersByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.PartnersByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var jobs_StudiesByCity_grid530 = new Lino.jobs.StudiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel531 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_PartnersByCity_grid529, jobs_StudiesByCity_grid530 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel532 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel231, main_2_panel240, CitiesByCity_grid528, main_4_panel531 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel532;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type238.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '      CitiesByCity_grid528.on_master_changed();\n'
20130515 '      contacts_PartnersByCity_grid529.on_master_changed();\n'
20130515 '      jobs_StudiesByCity_grid530.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country229.on('change',Lino.chooser_handler(type238,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.countries.CitiesByCity.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.About.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var main_panel2444 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ { "html": "<div class=\\"htmlText\\"><span>This is <a href=\\"http://welfare.lino-framework.org\\" target=\\"_blank\\">Lino Welfare</a> 1.1.4 using <a href=\\"http://site.lino-framework.org\\" target=\\"_blank\\">djangosite</a> 0.1.4, <a href=\\"http://www.python.org/\\" target=\\"_blank\\">Python</a> 2.7.3, <a href=\\"http://www.djangoproject.com\\" target=\\"_blank\\">Django</a> 1.5.1, <a href=\\"http://babel.edgewall.org/\\" target=\\"_blank\\">Babel</a> 1.0dev-r661, <a href=\\"http://www.lino-framework.org\\" target=\\"_blank\\">Lino</a> 1.6.7, <a href=\\"http://jinja.pocoo.org/\\" target=\\"_blank\\">Jinja</a> 2.6, <a href=\\"http://sphinx-doc.org/\\" target=\\"_blank\\">Sphinx</a> 1.2b1, <a href=\\"http://labix.org/python-dateutil\\" target=\\"_blank\\">python-dateutil</a> 2.1, <a href=\\"http://pypi.python.org/pypi/odfpy\\" target=\\"_blank\\">OdfPy</a> ODFPY/0.9.6, <a href=\\"http://docutils.sourceforge.net/\\" target=\\"_blank\\">docutils</a> 0.10, <a href=\\"https://fedorahosted.org/suds/\\" target=\\"_blank\\">suds</a> 0.4, <a href=\\"http://pyyaml.org/\\" target=\\"_blank\\">PyYaml</a> 3.10, <a href=\\"http://appyframework.org/pod.html\\" target=\\"_blank\\">Appy</a> 0.8.3 (2013/02/22 15:29)</span><p>Server uptime : <b>mercredi 15 mai 2013 at 11:45:06.556847</b></p><p>Source timestamps:</p><ul><li>djangosite : <b>mercredi 15 mai 2013 at 11:02:05.242649</b></li><li>lino : <b>mercredi 15 mai 2013 at 10:57:20.598657</b></li><li>lino_welfare : <b>mercredi 15 mai 2013 at 09:04:22.174857</b></li><li>atelier : <b>mardi 14 mai 2013 at 21:14:51.339674</b></li><li>django : <b>mercredi 8 mai 2013 at 10:18:59.384324</b></li><li>north : <b>dimanche 5 mai 2013 at 22:52:00.438131</b></li></ul></div>", "xtype": "label" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2444;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.about.About.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id185 = new Ext.form.TextField({ "fieldLabel": "id", "name": "id", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20", "allowBlank": false });\n'
20130515 '    var iso2186 = new Ext.form.TextField({ "fieldLabel": "iso2", "name": "iso2", "maxLength": 2, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "anchor": "-20" });\n'
20130515 '    var name187 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr188 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel190 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id185, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": iso2186, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name187, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr188, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cv_KnowledgesByLanguage_grid202 = new Lino.cv.KnowledgesByLanguage.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.KnowledgesByLanguage.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var main_panel203 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel190, cv_KnowledgesByLanguage_grid202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel203;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cv_KnowledgesByLanguage_grid202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Languages.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 77,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix2017 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name2018 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id2019 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language2020 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel2021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix2017, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2018, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2019, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id2026 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity2027 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type2028 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel2029 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id2026, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity2027, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2028, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account12033 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account22034 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete2035 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel2036 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account12033, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account22034, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete2035, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel2040 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel2021, intro_box_2_panel2029, intro_box_3_panel2036 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country2041 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region2042 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel2043 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country2041, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region2042, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city2046 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code2047 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel2048 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city2046, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code2047, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix2051 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street2052 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no2053 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box2054 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel2055 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix2051, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street2052, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no2053, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box2054, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr22060 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel2061 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel2043, box3_2_panel2048, box3_3_panel2055, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr22060, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email2063 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url2064 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone2065 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm2066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel2067 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email2063, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url2064, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone2065, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm2066, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel2072 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel2061, box4_panel2067 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks2073 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid2074 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel2075 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks2073, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid2074 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel2077 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel2040, address_box_panel2072, bottom_box_panel2075 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid2078 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var CourseOffersByProvider_grid2126 = new Lino.courses.CourseOffersByProvider.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Offres de cours", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseOffersByProvider.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2127 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel2077, pcsw_NotesByCompany_grid2078, CourseOffersByProvider_grid2126 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2127;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region2042.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid2074.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid2078.on_master_changed();\n'
20130515 '      CourseOffersByProvider_grid2126.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2041.on('change',Lino.chooser_handler(region2042,'country'));\n"
20130515 "      country2041.on('change',Lino.chooser_handler(city2046,'country'));\n"
20130515 "      region2042.on('change',Lino.chooser_handler(city2046,'region'));\n"
20130515 '      Lino.courses.CourseProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username38 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id39 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var profile40 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var box1_1_panel41 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username38, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id39, "labelAlign": "top" }, { "flex": 63, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile40, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name45 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name46 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var partner47 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel48 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name45, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name46, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner47, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email52 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var language53 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_3_panel54 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email52, "labelAlign": "top" }, { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language53, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created57 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified58 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box1_4_panel59 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created57, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified58, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box1_panel62 = new Ext.Panel({ "flex": 66, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box1_1_panel41, box1_2_panel48, box1_3_panel54, box1_4_panel59 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel66 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel62 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks67 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var AuthoritiesGiven_grid70 = new Lino.users.AuthoritiesGiven.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.users.AuthoritiesGiven.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var general_2_panel71 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks67, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, AuthoritiesGiven_grid70 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel73 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel66, general_2_panel71 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var calendar74 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Calendrier par d\\u00e9faut</span>", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "listeners": { "render": Lino.quicktip_renderer("Calendrier par d\\u00e9faut","Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.") }, "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/calendar", "method": "GET" }) }) });\n'
20130515 '    var access_class75 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s par d\\u00e9faut</span>", "allowBlank": false, "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s par d\\u00e9faut","The default access class for your calendar events and tasks.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses, "name": "access_class" });\n'
20130515 '    var cal_left_1_panel76 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar74, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class75, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_SubscriptionsByUser_grid83 = new Lino.cal.SubscriptionsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.SubscriptionsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var cal_left_panel84 = new Ext.Panel({ "flex": 33, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ cal_left_1_panel76, cal_SubscriptionsByUser_grid83 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByUser_grid142 = new Lino.cal.TasksByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var cal_1_panel143 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_left_panel84, cal_TasksByUser_grid142 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var newcomer_quota144 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Quota nouvelles demandes","Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Quota nouvelles demandes</span>", "name": "newcomer_quota", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var coaching_type145 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Service</span>", "name": "coaching_type", "pageSize": 20, "emptyText": "Choisir Service...", "listeners": { "render": Lino.quicktip_renderer("Service","The default CoachingType used when creating Coachings.") }, "selectOnFocus": true, "hiddenName": "coaching_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/coaching_type", "method": "GET" }) }) });\n'
20130515 '    var coaching_supervisor146 = new Ext.form.Checkbox({ "boxLabel": "Notify me when a coach has been assigned", "listeners": { "render": Lino.quicktip_renderer("Notify me when a coach has been assigned","Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.") }, "hideLabel": true, "checked": false, "name": "coaching_supervisor", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var newcomers_CompetencesByUser_grid152 = new Lino.newcomers.CompetencesByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.newcomers.CompetencesByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var coaching_a_panel153 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ { "items": newcomer_quota144, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_type145, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_supervisor146, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, newcomers_CompetencesByUser_grid152 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 369, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_CoachingsByUser_grid164 = new Lino.pcsw.CoachingsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var coaching_1_panel165 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Accompagnement", "hideCheckBoxLabels": true, "items": [ coaching_a_panel153, pcsw_CoachingsByUser_grid164 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel166 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel73, cal_1_panel143, coaching_1_panel165 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel166;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      AuthoritiesGiven_grid70.on_master_changed();\n'
20130515 '      cal_SubscriptionsByUser_grid83.on_master_changed();\n'
20130515 '      cal_TasksByUser_grid142.on_master_changed();\n'
20130515 '      newcomers_CompetencesByUser_grid152.on_master_changed();\n'
20130515 '      pcsw_CoachingsByUser_grid164.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2440 = new Lino.HtmlBoxPanel({ "flex": 1, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "north", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var welcome_htmlbox2441 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "center", "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var main_panel2442 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2440, welcome_htmlbox2441 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2442;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2440.refresh();\n'
20130515 '      welcome_htmlbox2441.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 10,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var time372 = new Ext.form.DisplayField({ "fieldLabel": "time", "name": "time", "selectOnFocus": true, "anchor": "-20", "value": "<br>", "allowBlank": false });\n'
20130515 '    var user373 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/Changes/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var type374 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Change Type", "allowBlank": false, "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.ChangeTypes, "name": "type" });\n'
20130515 '    var master_disp375 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Signal\\u00e9tique", "anchor": "-20", "name": "master" });\n'
20130515 '    var object_disp376 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Object", "anchor": "-20", "name": "object" });\n'
20130515 '    var id377 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel378 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": time372, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user373, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type374, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": master_disp375, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": object_disp376, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id377, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var diff385 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Changes", "anchor": "-20 -10", "growMax": 2000, "name": "diff" });\n'
20130515 '    var main_panel386 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ main_1_panel378, { "items": diff385, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel386;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.changes.ChangesByMaster.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 79,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2084 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var title2085 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "title", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var content2086 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var provider2087 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "name": "provider" });\n'
20130515 '    var main_1_panel2088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2084, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2085, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content2086, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider2087, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 198, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2093 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "center", "title": "Description", "name": "description" });\n'
20130515 '    var CoursesByOffer_grid2124 = new Lino.courses.CoursesByOffer.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "south", "tools": [ Lino.show_in_own_window_button(Lino.courses.CoursesByOffer.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2125 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel2088, description2093, CoursesByOffer_grid2124 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2125;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2093.refresh();\n'
20130515 '      CoursesByOffer_grid2124.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseOffers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name998 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name999 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var gender1000 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var title1001 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var name_box_panel1002 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name998, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name999, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1000, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1001, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1007 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }) });\n'
20130515 '    var region1008 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }) });\n'
20130515 '    var city1009 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1010 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel1011 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1007, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1008, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1009, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1010, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr11016 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix1017 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1018 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1019 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1020 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel1021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1017, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1018, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1019, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21026 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel1027 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ name_box_panel1002, address_box_2_panel1011, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr11016, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel1021, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21026, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1030 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1031 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel1032 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1030, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1031, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1035 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1036 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1037 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1038 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax1039 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel1040 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1038, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1039, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel1043 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel1032, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1035, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1036, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1037, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel1040 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1047 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel1027, contact_box_panel1043 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var activity1048 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account11049 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21050 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1051 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_1_panel1052 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1048, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11049, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21050, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1051, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_client1057 = new Ext.form.Checkbox({ "boxLabel": "est un client (<a href=\\"javascript:Lino.show_mti_child(\'is_client\',Lino.pcsw.Clients.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est un client","Whether this Person is a Client.") }, "hideLabel": true, "name": "is_client", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var created1058 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1059 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_2_panel1060 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_client1057, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1058, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1059, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1064 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByPerson_grid1069 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var households_MembersByPerson_grid1076 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 36 });\n'
20130515 '    var bottom_box_3_panel1077 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1064, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 36 }, contacts_RolesByPerson_grid1069, households_MembersByPerson_grid1076 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel1079 = new Ext.Panel({ "flex": 58, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ bottom_box_1_panel1052, bottom_box_2_panel1060, bottom_box_3_panel1077 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var general_panel1080 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1047, bottom_box_panel1079 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1084 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1080 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1084;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1008.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByPerson_grid1069.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1076.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1007.on('change',Lino.chooser_handler(region1008,'country'));\n"
20130515 "      country1007.on('change',Lino.chooser_handler(city1009,'country'));\n"
20130515 "      region1008.on('change',Lino.chooser_handler(city1009,'region'));\n"
20130515 '      Lino.contacts.Persons.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name743 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language744 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel746 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language744, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email745, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type749 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var id750 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_3_panel751 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type749, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id750, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel754 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name743, "anchor": "-20", "labelAlign": "top" }, main_2_panel746, main_3_panel751 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel754;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username167 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var email168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_1_panel169 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username167, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email168, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name172 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var main_2_panel174 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name172, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name173, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var partner177 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var language178 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var profile179 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var main_4_panel180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language178, "labelAlign": "top" }, { "flex": 69, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel183 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ main_1_panel169, main_2_panel174, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner177, "anchor": "-20", "labelAlign": "top" }, main_4_panel180 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel183;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2407 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2408 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2409 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2407, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2408, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type2412 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var valid_until2413 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2414 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2412, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2413, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var description2417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var main_panel2418 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ main_1_panel2409, main_2_panel2414, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2417, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2418;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1547 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1548 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1549 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1550 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1551 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_1_panel1552 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1547, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1548, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1549, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1550, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1551, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var job1558 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var type1559 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1560 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1561 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1562 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel1563 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1558, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1559, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1560, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1561, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1562, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1569 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var duration1570 = new Lino.SimpleRemoteComboFieldElement({ "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "fieldLabel": "dur\\u00e9e (jours)", "name": "duration", "selectOnFocus": true, "anchor": "-20", "value": null });\n'
20130515 '    var applies_until1571 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1572 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var box1_3_panel1573 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1569, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": duration1570, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1571, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1572, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var regime1578 = new Lino.TwinCombo({ "fieldLabel": "R\\u00e9gime de travail", "name": "regime", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Regimes.detail)}, "emptyText": "Choisir R\\u00e9gime de travail...", "selectOnFocus": true, "hiddenName": "regimeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }) });\n'
20130515 '    var schedule1579 = new Lino.TwinCombo({ "fieldLabel": "Horaire", "name": "schedule", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Schedules.detail)}, "emptyText": "Choisir Horaire...", "selectOnFocus": true, "hiddenName": "scheduleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }) });\n'
20130515 '    var hourly_rate1580 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var refund_rate1581 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "tarif de remboursement", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }), "name": "refund_rate" });\n'
20130515 '    var box1_4_panel1582 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 207, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": regime1578, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": schedule1579, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1580, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refund_rate1581, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var reference_person1587 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "persone de r\\u00e9f\\u00e9rence", "anchor": "-20", "name": "reference_person" });\n'
20130515 '    var build_time1588 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var box1_5_panel1589 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": reference_person1587, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time1588, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1592 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1593 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1594 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1595 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var box1_6_panel1596 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1592, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1593, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1594, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1595, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var responsibilities1601 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "responsibilities", "title": "responsabilit\\u00e9s" });\n'
20130515 '    var box1_panel1602 = new Ext.Panel({ "flex": 70, "layout": "vbox", "items": [ box1_1_panel1552, box1_2_panel1563, box1_3_panel1573, box1_4_panel1582, box1_5_panel1589, box1_6_panel1596, responsibilities1601 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 0, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cal_EventsByController_grid1603 = new Lino.cal.EventsByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ] });\n'
20130515 '    var cal_TasksByController_grid1604 = new Lino.cal.TasksByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "master_panel": this });\n'
20130515 '    var right_panel1605 = new Lino.VBorderPanel({ "flex": 30, "border": false, "hideCheckBoxLabels": true, "items": [ cal_EventsByController_grid1603, cal_TasksByController_grid1604 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel1606 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1602, right_panel1605 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel1607 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel1606 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1607;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1561.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1601.refresh();\n'
20130515 '      cal_EventsByController_grid1603.on_master_changed();\n'
20130515 '      cal_TasksByController_grid1604.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1560.on('change',Lino.chooser_handler(contact_person1561,'company'));\n"
20130515 '      Lino.jobs.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1558.on("change",function(){this.save()},this);\n'
20130515 '    company1560.on("change",function(){this.save()},this);\n'
20130515 '    contact_person1561.on("change",function(){this.save()},this);\n'
20130515 '    contact_role1562.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name920 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl922 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel923 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name920, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr921, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl922, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type927 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var invite_team_members928 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color929 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var main_2_panel930 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type927, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members928, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color929, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 72, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel934 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel923, main_2_panel930 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel934;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2233 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2234 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2235 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2236 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2237 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2238 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2239 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2240 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2233, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2234, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2235, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2236, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2237, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2238, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2239, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var action2248 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2249 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2250 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2251 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2248, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2249, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2250, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2255 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2256 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2257 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2255, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2256, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2260 = new Ext.form.FieldSet({ "flex": 37, "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2251, p1_2_panel2257 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2261 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2262 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2263 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2264 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2261, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2262, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2263, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2268 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2269 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2270 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2271 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2268, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2269, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2270, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2275 = new Ext.form.FieldSet({ "flex": 62, "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2264, proof_2_panel2271 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2276 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2260, proof_panel2275 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var result_htmlbox2277 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "result", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "R\\u015bultat", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var request_panel2278 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2240, parameters_panel2276, result_htmlbox2277 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2286 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2278 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2286;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2255.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      result_htmlbox2277.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2234.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2158 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2159 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2160 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2161 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2162 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2163 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2164 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2165 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2159, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2160, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2161, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2162, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2163, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2164, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var p1_panel2175 = new Ext.form.FieldSet({ "flex": 25, "layout": "vbox", "title": "avec NISS", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ { "items": national_id2173, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "flex": 50, "html": "<br/>", "xtype": "label" } ], "hideCheckBoxLabels": true, "labelWidth": 45, "border": false, "labelAlign": "top" });\n'
20130515 '    var first_name2177 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2178 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2179 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2177, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2178, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2184 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2185 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2186 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2187 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2184, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2185, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2186, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2191 = new Ext.form.FieldSet({ "flex": 75, "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2180, p2_2_panel2187 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2192 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2175, p2_panel2191 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var IdentifyPersonResult_grid2202 = new Lino.cbss.IdentifyPersonResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.IdentifyPersonResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var request_panel2203 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2165, parameters_panel2192, IdentifyPersonResult_grid2202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2204 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2205 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2206 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2207 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2204, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2205, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2206, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2211 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2203, technical_panel2207 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2211;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      IdentifyPersonResult_grid2202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2159.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2386 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2387 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2388 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2386, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2387, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type2391 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var description2392 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var valid_until2393 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2394 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2391, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2392, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2393, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var modified2398 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var created2399 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var owner_disp2400 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_3_panel2401 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified2398, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created2399, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp2400, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid2405 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2406 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2388, main_2_panel2394, main_3_panel2401, cal_TasksByController_grid2405 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2406;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cal_TasksByController_grid2405.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var app_disp2425 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "app_label", "name": "app", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp2426 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "name", "name": "name", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp2427 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "docstring", "name": "docstring", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows2428 = new Ext.form.NumberField({ "disabled": true, "fieldLabel": "Rows", "anchor": "-20", "name": "rows" });\n'
20130515 '    var main_1_panel2429 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": app_disp2425, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_disp2426, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": docstring_disp2427, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": rows2428, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var about_FieldsByModel_grid2438 = new Lino.about.FieldsByModel.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.about.FieldsByModel.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2439 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2429, about_FieldsByModel_grid2438 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2439;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      about_FieldsByModel_grid2438.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.about.Models.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 66,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Name", "anchor": "-20", "name": "name" });\n'
20130515 '    var provider1976 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }) });\n'
20130515 '    var sector1977 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }) });\n'
20130515 '    var function1978 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel1979 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1975, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1976, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1977, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1978, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var selection_from1984 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de s\\u00e9lection", "anchor": "-20", "name": "selection_from" });\n'
20130515 '    var selection_until1985 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin de s\\u00e9lection", "anchor": "-20", "name": "selection_until" });\n'
20130515 '    var start_date1986 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_2_panel1987 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_from1984, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_until1985, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date1986, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1991 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var ExperiencesByOffer_grid2003 = new Lino.jobs.ExperiencesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var CandidaturesByOffer_grid2013 = new Lino.jobs.CandidaturesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel2014 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ ExperiencesByOffer_grid2003, CandidaturesByOffer_grid2013 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2015 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel1979, main_2_panel1987, { "items": remark1991, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 41 }, main_4_panel2014 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2015;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1978.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      ExperiencesByOffer_grid2003.on_master_changed();\n'
20130515 '      CandidaturesByOffer_grid2013.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1977.on('change',Lino.chooser_handler(function1978,'sector'));\n"
20130515 '      Lino.jobs.Offers.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Offers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 75,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date_submitted1338 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date d\\u00e9ntr\\u00e9e","When this request has been submitted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date d\\u00e9ntr\\u00e9e</span>", "name": "date_submitted", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var person1339 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Client</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "listeners": { "render": Lino.quicktip_renderer("Client","Le client qui d\\u00e9sire suivre un cours.") }, "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var content1340 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Contenu</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "listeners": { "render": Lino.quicktip_renderer("Contenu","Der gew\\u00fcnschte Kursinhalt.)") }, "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var offer1341 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "name": "offer", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/offer", "method": "GET" }) }) });\n'
20130515 '    var urgent1342 = new Ext.form.Checkbox({ "boxLabel": "cause professionnelle", "listeners": { "render": Lino.quicktip_renderer("cause professionnelle","Check this if the request is needed for job search.") }, "hideLabel": true, "checked": false, "name": "urgent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1343 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_submitted1338, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person1339, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content1340, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer1341, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": urgent1342, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var course1349 = new Lino.TwinCombo({ "fieldLabel": "Cours trouv\\u00e9", "name": "course", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.Courses.detail)}, "emptyText": "Choisir Cours...", "selectOnFocus": true, "hiddenName": "courseHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/course", "method": "GET" }) }) });\n'
20130515 '    var state1350 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "name": "state" });\n'
20130515 '    var date_ended1351 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var id1352 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel1353 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course1349, "labelAlign": "top" }, { "flex": 26, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state1350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1352, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1358 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var UploadsByController_htmlbox1359 = new Lino.HtmlBoxPanel({ "flex": 33, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel1360 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1358, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, UploadsByController_htmlbox1359 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1362 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1343, main_2_panel1353, main_3_panel1360 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1341.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '      UploadsByController_htmlbox1359.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1340.on('change',Lino.chooser_handler(offer1341,'content'));\n"
20130515 '      Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    offer1341.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2365 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var name2366 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2367 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2368 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2369 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2365, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2366, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2367, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2368, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 108, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2374 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "description" });\n'
20130515 '    var text2375 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "south", "title": "Texte mod\\u00e8le", "name": "text" });\n'
20130515 '    var main_panel2376 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ main_1_panel2369, { "flex": 5, "layout": "form", "xtype": "panel", "items": description2374, "region": "center", "labelAlign": "top", "split": true }, text2375 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2376;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text2375.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2287 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var action2288 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2289 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2290 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2291 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2288, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2289, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2290, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2295 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2296 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2297 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2295, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2296, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2300 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2291, p1_2_panel2297 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id2301 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2302 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2303 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2304 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2301, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2302, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2303, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2309 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2310 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2311 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2308, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2309, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2310, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2315 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2304, proof_2_panel2311 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2316 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2287, "anchor": "-20", "labelAlign": "top" }, p1_panel2300, proof_panel2315 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2316;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2295.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2287.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type850 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var name851 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr852 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl853 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var id854 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel855 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type850, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name851, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr852, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl853, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id854, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var url_template861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL template", "anchor": "-20", "name": "url_template" });\n'
20130515 '    var username862 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Username", "anchor": "-20", "name": "username" });\n'
20130515 '    var password863 = new Ext.form.TextField({ "fieldLabel": "Password", "name": "password", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "inputType": "password" });\n'
20130515 '    var main_2_panel864 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": url_template861, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username862, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": password863, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var readonly868 = new Ext.form.Checkbox({ "boxLabel": "read-only", "hideLabel": true, "checked": false, "name": "readonly", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var invite_team_members869 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color870 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var start_date871 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_3_panel872 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": readonly868, "labelAlign": "top" }, { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members869, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color870, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date871, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var build_method877 = new Lino.ChoicesFieldElement({ "fieldLabel": "M\\u00e9thode de construction", "name": "build_method", "selectOnFocus": true, "anchor": "-20", "store": [ [ "appyodt", "AppyOdtBuildMethod" ], [ "appypdf", "AppyPdfBuildMethod" ], [ "appyrtf", "AppyRtfBuildMethod" ], [ "latex", "LatexBuildMethod" ], [ "pisa", "PisaBuildMethod" ], [ "rtf", "RtfBuildMethod" ] ], "hiddenName": "build_methodHidden" });\n'
20130515 '    var template878 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "Mod\\u00e8le", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/template", "method": "GET" }) }), "name": "template" });\n'
20130515 '    var email_template879 = new Lino.SimpleRemoteComboFieldElement({ "listeners": { "render": Lino.quicktip_renderer("Email template","The name of the file to be used as template \\nwhen creating an email from a mailable of this type.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Email template</span>", "name": "email_template", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/email_template", "method": "GET" }) }) });\n'
20130515 '    var attach_to_email880 = new Ext.form.Checkbox({ "boxLabel": "Attach to email", "listeners": { "render": Lino.quicktip_renderer("Attach to email","Whether the printable file should be attached to the email\\nwhen creating an email from a mailable of this type.\\n") }, "hideLabel": true, "checked": false, "name": "attach_to_email", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_4_panel881 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_method877, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": template878, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email_template879, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": attach_to_email880, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var main_panel919 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel855, main_2_panel864, main_3_panel872, main_4_panel881 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel919;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      template878.setContextValue('build_method',record ? record.data['build_methodHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      build_method877.on('change',Lino.chooser_handler(template878,'build_method'));\n"
20130515 '      Lino.cal.PanelCalendars.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 41,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type935 = new Lino.TwinCombo({ "fieldLabel": "Type de m\\u00e9nage", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.households.Types.detail)}, "emptyText": "Choisir Type de m\\u00e9nage...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }) });\n'
20130515 '    var name936 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language937 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var id938 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var intro_box_1_panel939 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type935, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name936, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language937, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id938, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var country944 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }) });\n'
20130515 '    var region945 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel946 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country944, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region945, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city949 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code950 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel951 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city949, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code950, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix954 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street955 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no956 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box957 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel958 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix954, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street955, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no956, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box957, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2963 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var activity964 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1965 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2966 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var box3_5_panel967 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity964, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1965, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2966, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel971 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel946, box3_2_panel951, box3_3_panel958, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2963, "anchor": "-20", "labelAlign": "top" }, box3_5_panel967 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email973 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url974 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm976 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel977 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email973, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url974, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone975, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm976, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel982 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel971, box4_panel977 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks983 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var households_MembersByHousehold_grid990 = new Lino.households.MembersByHousehold.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByHousehold.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var bottom_box_panel991 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks983, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 49 }, households_MembersByHousehold_grid990 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel993 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_1_panel939, address_box_panel982, bottom_box_panel991 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel997 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel993 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel997;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region945.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      households_MembersByHousehold_grid990.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country944.on('change',Lino.chooser_handler(region945,'country'));\n"
20130515 "      country944.on('change',Lino.chooser_handler(city949,'country'));\n"
20130515 "      region945.on('change',Lino.chooser_handler(city949,'region'));\n"
20130515 '      Lino.households.Households.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.households.Households.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var calendar756 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var summary757 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var project758 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var general_1_panel759 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar756, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary757, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project758, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var start_date763 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time764 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel765 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date763, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time764, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date768 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time769 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel770 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date768, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time769, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var user773 = new Lino.TwinCombo({ "fieldLabel": "Responsible user", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to774 = new Lino.TwinCombo({ "fieldLabel": "Attribu\\u00e9 \\u00e0", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel775 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ start_panel765, end_panel770, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user773, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to774, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var place778 = new Lino.TwinCombo({ "fieldLabel": "Place", "name": "place", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Places.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "placeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/place", "method": "GET" }) }) });\n'
20130515 '    var priority779 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Priorit\\u00e9", "name": "priority", "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9...", "selectOnFocus": true, "hiddenName": "priorityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/priority", "method": "GET" }) }) });\n'
20130515 '    var access_class780 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s</span>", "name": "access_class", "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s","Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses });\n'
20130515 '    var transparent781 = new Ext.form.Checkbox({ "boxLabel": "non bloquant", "listeners": { "render": Lino.quicktip_renderer("non bloquant","Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.") }, "hideLabel": true, "checked": false, "name": "transparent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var general_3_panel782 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": place778, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": priority779, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class780, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": transparent781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var owner_disp787 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var workflow_buttons_disp788 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var general_4_panel789 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp787, "labelAlign": "top" }, { "flex": 75, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp788, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description792 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 33, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var GuestsByEvent_grid802 = new Lino.cal.GuestsByEvent.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.GuestsByEvent.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var general_5_panel803 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ description792, GuestsByEvent_grid802 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel804 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel759, general_2_panel775, general_3_panel782, general_4_panel789, general_5_panel803 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var id805 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var created806 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified807 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var more_1_panel808 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id805, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created806, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified807, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByController_grid812 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var postings_PostingsByController_grid813 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var more_2_panel814 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ outbox_MailsByController_grid812, postings_PostingsByController_grid813 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var more_panel815 = new Ext.Panel({ "layout": "vbox", "title": "Plus", "items": [ more_1_panel808, more_2_panel814 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel816 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel804, more_panel815 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel816;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description792.refresh();\n'
20130515 '      GuestsByEvent_grid802.on_master_changed();\n'
20130515 '      outbox_MailsByController_grid812.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid813.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(70), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.cal.GuestStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.MySettings\n'
20130515 'Lino.users.MySettings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/MySettings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  title : "Utilisateurs",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "username" }, { "name": "profile" }, \'profileHidden\', { "name": "first_name" }, { "name": "last_name" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "password" }, { "name": "email" }, { "name": "remarks" }, { "name": "language" }, \'languageHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "access_class" }, \'access_classHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "coaching_type" }, \'coaching_typeHidden\', { "type": "boolean", "name": "coaching_supervisor" }, { "type": "int", "name": "newcomer_quota" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 7,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 24,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var username2468 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 30 });\n'
20130515 '    var profile2469 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.UserProfiles });\n'
20130515 '    var first_name2470 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var last_name2471 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var id2472 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2473 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2474 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var password2475 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 128 });\n'
20130515 '    var email2476 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var remarks2477 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var language2478 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ] });\n'
20130515 '    var partner2479 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var access_class2480 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.AccessClasses });\n'
20130515 '    var calendar2481 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var coaching_type2482 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/coaching_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var coaching_supervisor2483 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var newcomer_quota2484 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Username", "editable": true, "tooltip": "\\n        Required. Must be unique. \\n        ", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "username", "editor": username2468 }, { "colIndex": 1, "sortable": true, "header": "User Profile", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(47), "dataIndex": "profile", "editor": profile2469 }, { "colIndex": 2, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2470 }, { "colIndex": 3, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2471 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2472, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Password", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "password", "hidden": true, "editor": password2475 }, { "colIndex": 8, "sortable": true, "header": "adresse e-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2476 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remarks2477, "dataIndex": "remarks" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2478 }, { "colIndex": 11, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2479, "dataIndex": "partner" }, { "colIndex": 12, "sortable": true, "header": "Classe d\'acc\\u00e8s par d\\u00e9faut", "editable": true, "tooltip": "The default access class for your calendar events and tasks.", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class2480 }, { "colIndex": 13, "sortable": true, "header": "Calendrier par d\\u00e9faut", "editable": true, "tooltip": "Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2481 }, { "colIndex": 14, "sortable": true, "header": "Service", "editable": true, "tooltip": "The default CoachingType used when creating Coachings.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "coaching_type", "editor": coaching_type2482 }, { "colIndex": 15, "sortable": false, "xtype": "checkcolumn", "header": "Notify me when a coach has been assigned", "editable": true, "tooltip": "Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "coaching_supervisor" }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n", "filter": { "type": "numeric" }, "header": "Quota nouvelles demandes", "dataIndex": "newcomer_quota", "width": Lino.chars2width(6), "editor": newcomer_quota2484 }) ];\n'
20130515 '    Lino.users.MySettings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Languages\n'
20130515 'Lino.countries.Languages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Languages",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Langues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "id" }, { "name": "iso2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 12,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2486 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2487 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2488 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2489 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "allowBlank": false, "maxLength": 3 });\n'
20130515 '    var iso22490 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "maxLength": 2 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2486 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2487 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2488 }, { "colIndex": 3, "sortable": true, "header": "id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "id", "editor": id2489 }, { "colIndex": 4, "sortable": true, "header": "iso2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso2", "editor": iso22490 } ];\n'
20130515 '    Lino.countries.Languages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insertPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Langues",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Languages.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detailPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Langues",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Languages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Countries\n'
20130515 'Lino.countries.Countries.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Countries",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pays",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "isocode" }, { "name": "short_code" }, { "name": "iso3" }, { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 11,\n'
20130515 '  ls_id_property : "isocode",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2492 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2493 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2494 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var isocode2495 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "allowBlank": false, "maxLength": 4 });\n'
20130515 '    var short_code2496 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var iso32497 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    var inscode2498 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2492 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2493 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2494 }, { "colIndex": 3, "sortable": true, "header": "ISO code", "editable": true, "tooltip": "        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "isocode", "editor": isocode2495 }, { "colIndex": 4, "sortable": true, "header": "Short code", "editable": true, "tooltip": "A short abbreviation for regional usage. Obsolete.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "short_code", "editor": short_code2496 }, { "colIndex": 5, "sortable": true, "header": "ISO-3 code", "editable": true, "tooltip": "The three-letter code for this country as defined by ISO 3166-1.", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso3", "editor": iso32497 }, { "colIndex": 6, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this country used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "inscode", "editor": inscode2498 } ];\n'
20130515 '    Lino.countries.Countries.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insertPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Pays",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Countries.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detailPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Pays",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Countries.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.PropChoices\n'
20130515 'Lino.properties.PropChoices.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/PropChoices",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "type" }, \'typeHidden\', { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2500 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var type2501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/properties/PropChoices/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type de propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value2502 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text2503 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr2504 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl2505 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2500, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Type de propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2501 }, { "colIndex": 2, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value2502 }, { "colIndex": 3, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text2503 }, { "colIndex": 4, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr2504 }, { "colIndex": 5, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl2505 } ];\n'
20130515 '    Lino.properties.PropChoices.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.PropChoices.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.PropChoices.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Partners\n'
20130515 'Lino.contacts.Partners.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Partners",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 29,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2507 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2508 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2509 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2510 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2511 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2512 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2514 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12515 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2517 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2518 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2519 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22520 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2521 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2522 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2523 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2524 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2525 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2526 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2527 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2528 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12529 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var id2531 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2512.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2512.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2513.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2511.on('change',Lino.chooser_handler(city2512,'country'));\n"
20130515 "      region2513.on('change',Lino.chooser_handler(city2512,'region'));\n"
20130515 "      country2511.on('change',Lino.chooser_handler(region2513,'country'));\n"
20130515 '      Lino.contacts.Partners.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2507 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2508 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2511, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2512 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2513 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2514 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12515 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2516 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2517 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2518 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2519 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22520 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2521 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2522 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2523 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2524 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2525 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2526, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2528 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12529 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22530 }, new Lino.NullNumberColumn({ "colIndex": 24, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2531, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Partners.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Partners.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Partners.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Companies\n'
20130515 'Lino.contacts.Companies.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Companies",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 20,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2533 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2534 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2535 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2536 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2538 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2539 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2540 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12541 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2542 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2544 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2545 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22546 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2547 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2548 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2550 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2551 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2552 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2553 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12555 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22556 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2557 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2560 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2561 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2538.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2538.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2539.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2537.on('change',Lino.chooser_handler(city2538,'country'));\n"
20130515 "      region2539.on('change',Lino.chooser_handler(city2538,'region'));\n"
20130515 "      country2537.on('change',Lino.chooser_handler(region2539,'country'));\n"
20130515 '      Lino.contacts.Companies.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2533 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2534 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2537, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2538 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2539 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2540 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12541 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2542 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2543 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2544 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2545 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22546 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2547 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2548 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2549 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2550 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2551 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2552, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2554 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12555 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22556 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2557 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2558 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2559 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2560 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2561, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Companies.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisations",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detailPanel = Ext.extend(Lino.contacts.Companies.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisations",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Companies.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByState\n'
20130515 'Lino.postings.PostingsByState.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByState",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2563 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2564 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2565 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2566 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2567 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2568 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2569 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2571 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2572 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2569.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2568.on('change',Lino.chooser_handler(owner_id2569,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByState.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2563, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2564 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2565, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2567, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2568 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2569 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2570, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2571 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByState.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByState.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByState.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByState.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByState",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsReady\n'
20130515 'Lino.postings.PostingsReady.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsReady",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux \\u00e0 imprimer",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2574 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2575 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2576 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2577 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2578 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2582 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2583 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2580.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2579.on('change',Lino.chooser_handler(owner_id2580,'owner_type'));\n"
20130515 '      Lino.postings.PostingsReady.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2574, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2575 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2576, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2578, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2579 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2580 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2581, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2582 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsReady.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsReady.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsReady.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsReady.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsReady",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsPrinted\n'
20130515 'Lino.postings.PostingsPrinted.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsPrinted",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux imprim\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2585 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2588 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2589 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2590 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2592 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2593 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2594 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2591.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2590.on('change',Lino.chooser_handler(owner_id2591,'owner_type'));\n"
20130515 '      Lino.postings.PostingsPrinted.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2585, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2586 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2587, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2589, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2590 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2591 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2592, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2593 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsPrinted.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsPrinted.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsPrinted.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsPrinted.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsPrinted",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsSent\n'
20130515 'Lino.postings.PostingsSent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsSent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux envoy\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2596 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2597 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2599 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2600 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2603 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2604 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2605 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2602.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2601.on('change',Lino.chooser_handler(owner_id2602,'owner_type'));\n"
20130515 '      Lino.postings.PostingsSent.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2596, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2597 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2598, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2600, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2601 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2602 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2603, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2604 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsSent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsSent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsSent.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsSent.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsSent",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEvents\n'
20130515 'Lino.cal.MyEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "calendar" }, \'calendarHidden\', { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2607 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2608 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var calendar2609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var project2610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2611 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2612 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2613 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2616 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2617 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2618 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2619 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2620 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2621 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class2623 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2624 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2625 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2626 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2629 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2631 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2614.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2621.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2613.on('change',Lino.chooser_handler(owner_id2614,'owner_type'));\n"
20130515 '      Lino.cal.MyEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2607, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2608 }, { "colIndex": 2, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2609 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2610, "dataIndex": "project" }, { "colIndex": 4, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2611 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2612, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2613 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2614 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2615 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2619 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2620 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2621, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2622 }, { "colIndex": 16, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2623 }, new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2624 }), new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 19, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 20, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2627 }, { "colIndex": 21, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2628 }, { "colIndex": 22, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2629 }, { "colIndex": 23, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2630 }, { "width": Lino.chars2width(11), "colIndex": 24, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyUnclearEvents\n'
20130515 'Lino.cal.MyUnclearEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyUnclearEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2633 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2634 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2635 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2636 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2637 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2638 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2641 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2642 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2643 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2644 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2645 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2646 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2647 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2648 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2650 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2651 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2652 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2653 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2656 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2658 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2640.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2647.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2639.on('change',Lino.chooser_handler(owner_id2640,'owner_type'));\n"
20130515 '      Lino.cal.MyUnclearEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2633, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2634 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2635, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2636 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2638, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2639 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2640 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2641 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2645 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2646 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2647, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2648 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2649 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2650 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2651 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2654 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2655 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2656 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2657 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyUnclearEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyUnclearEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsAssignedToMe\n'
20130515 'Lino.cal.EventsAssignedToMe.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsAssignedToMe",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2661 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2663 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2669 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2670 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2671 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2674 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2675 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2676 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2677 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2678 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2679 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2680 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2681 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2683 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2684 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2685 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2674.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2666.on('change',Lino.chooser_handler(owner_id2667,'owner_type'));\n"
20130515 '      Lino.cal.EventsAssignedToMe.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2660, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2661 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2662, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2663 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2666 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2667 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2668 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2672 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2673 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2674, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2675 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2676 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2677 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2678 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2681 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2682 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2683 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2684 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsAssignedToMe.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEventsToday\n'
20130515 'Lino.cal.MyEventsToday.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEventsToday",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous aujourd\'hui",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "build_time" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_time2687 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary2688 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2689 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2690 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2692 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2694 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project2696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var build_time2697 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_date2698 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date2699 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2700 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2701 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2703 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2704 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2705 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2706 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2707 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2708 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2712 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2692.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2701.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2691.on('change',Lino.chooser_handler(owner_id2692,'owner_type'));\n"
20130515 '      Lino.cal.MyEventsToday.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(9), "colIndex": 0, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2687 }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2688 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2690, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2691 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2692 }, { "colIndex": 6, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2693 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2696, "dataIndex": "project" }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2698, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2699 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2700 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2701, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2702 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2703 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2704 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2705 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2708 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2709 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2710 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2711 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEventsToday.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous aujourd\'hui",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous aujourd\'hui",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEventsToday.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelCalendars\n'
20130515 'Lino.cal.PanelCalendars.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelCalendars",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Calendriers",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "babel_name" }, { "name": "description" }, { "type": "int", "name": "color" }, { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 35,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2714 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var babel_name_disp2715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var description2716 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var color2717 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var is_hidden_disp2718 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2716.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2714, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "babel_name", "header": "babel_name", "editable": false }, { "colIndex": 2, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2716, "dataIndex": "description" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Couleur", "dataIndex": "color", "width": Lino.chars2width(6), "editor": color2717 }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "is_hidden", "header": "Invisible", "editable": false } ];\n'
20130515 '    Lino.cal.PanelCalendars.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insertPanel = Ext.extend(Lino.cal.PanelCalendars.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Calendriers",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detailPanel = Ext.extend(Lino.cal.PanelCalendars.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Calendriers",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelCalendars.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelEvents\n'
20130515 'Lino.cal.PanelEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "start_dt" }, { "name": "end_dt" }, { "name": "summary" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "place" }, \'placeHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "url" }, { "type": "boolean", "name": "all_day" }, { "name": "reminder" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2720 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var start_dt2721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_dt2722 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var summary2723 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var description2724 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var user2725 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var place2726 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var calendar2727 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var url_disp2728 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var all_day2729 = new Ext.form.Checkbox({ "disabled": true });\n'
20130515 '    var reminder_disp2730 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2724.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2720, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": false, "dataIndex": "start_dt", "header": "D\\u00e9but", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": false, "dataIndex": "end_dt", "header": "Fin", "editable": false }, { "width": Lino.chars2width(5), "colIndex": 3, "sortable": false, "dataIndex": "summary", "header": "R\\u00e9sum\\u00e9", "editable": false }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2724, "dataIndex": "description" }, { "colIndex": 5, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2725 }, { "colIndex": 6, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2726 }, { "colIndex": 7, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2727 }, { "width": Lino.chars2width(31), "colIndex": 8, "sortable": false, "dataIndex": "url", "header": "Link URL", "editable": false }, { "header": "journ\\u00e9e enti\\u00e8re", "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "width": Lino.chars2width(11), "editable": false, "dataIndex": "all_day" }, { "width": Lino.chars2width(31), "colIndex": 10, "sortable": false, "dataIndex": "reminder", "header": "Rappel", "editable": false } ];\n'
20130515 '    Lino.cal.PanelEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.PanelEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.Households\n'
20130515 'Lino.households.Households.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/Households",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 32,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2732 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2734 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2735 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2736 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2737 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2738 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2739 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12740 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2741 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2743 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2744 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2746 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2747 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2749 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2750 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2751 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2752 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12754 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2756 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2757 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de m\\u00e9nage..." });\n'
20130515 '    var id2758 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2737.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2737.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2738.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2736.on('change',Lino.chooser_handler(city2737,'country'));\n"
20130515 "      region2738.on('change',Lino.chooser_handler(city2737,'region'));\n"
20130515 "      country2736.on('change',Lino.chooser_handler(region2738,'country'));\n"
20130515 '      Lino.households.Households.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2732 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2733 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2736, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2737 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2738 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2739 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12740 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2741 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2742 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2743 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2744 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22745 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2746 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2747 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2748 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2749 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2750 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2751, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2753 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12754 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22755 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2756 }, { "colIndex": 25, "sortable": true, "header": "Type de m\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2757 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2758, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.Households.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.Households.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.Households.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Persons\n'
20130515 'Lino.contacts.Persons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Persons",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "address_column" }, { "name": "email" }, { "name": "phone" }, { "name": "gsm" }, { "type": "int", "name": "id" }, { "name": "language" }, \'languageHidden\', { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "url" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 39,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2760 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_column_disp2761 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2762 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2763 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2764 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2765 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var language2766 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var created2767 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2768 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2769 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2770 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2771 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2772 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2773 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12774 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2776 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2777 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2778 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22779 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var url2780 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2781 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2782 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2783 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12785 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22786 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2787 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2788 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2789 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2790 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2791 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2770.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2770.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2771.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2769.on('change',Lino.chooser_handler(city2770,'country'));\n"
20130515 "      region2771.on('change',Lino.chooser_handler(city2770,'region'));\n"
20130515 "      country2769.on('change',Lino.chooser_handler(region2771,'country'));\n"
20130515 '      Lino.contacts.Persons.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "colIndex": 2, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2762 }, { "colIndex": 3, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2763 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2764 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2765, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2766 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2769, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2770 }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2771 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2772 }, { "colIndex": 13, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2773 }, { "colIndex": 14, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12774 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2775 }, { "colIndex": 16, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2776 }, { "colIndex": 17, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2777 }, { "colIndex": 18, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2778 }, { "colIndex": 19, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22779 }, { "colIndex": 20, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2780 }, { "colIndex": 21, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2781 }, { "colIndex": 22, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2782, "dataIndex": "remarks" }, { "colIndex": 23, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 24, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2784 }, { "colIndex": 25, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12785 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22786 }, { "colIndex": 27, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2787 }, { "colIndex": 28, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2788 }, { "colIndex": 29, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2789 }, { "colIndex": 30, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2790 }, { "colIndex": 31, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2791 } ];\n'
20130515 '    Lino.contacts.Persons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insertPanel = Ext.extend(Lino.contacts.Persons.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Personnes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Persons.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detailPanel = Ext.extend(Lino.contacts.Persons.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Personnes",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Persons.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Persons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.contacts.Persons.ParamsPanel({});\n'
20130515 '  return new Lino.contacts.Persons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.Clients\n'
20130515 'Lino.pcsw.Clients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/Clients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "client_state" }, \'client_stateHidden\', { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2793 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var client_state2794 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var national_id2795 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2797 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2798 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2800 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2801 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12802 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2804 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state2794 }, { "colIndex": 2, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2795 }, { "colIndex": 3, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2796 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 5, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 6, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2799 }, { "colIndex": 7, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2800 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2801, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 9, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12802 }, { "colIndex": 10, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2803 }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2804 } ];\n'
20130515 '    Lino.pcsw.Clients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.Clients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.Clients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.Clients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.IntegClients\n'
20130515 'Lino.pcsw.IntegClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/IntegClients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2806 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var applies_from2807 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var applies_until2808 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var national_id2809 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2810 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2811 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2812 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2814 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2815 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2817 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2818 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat d\\u00e9bute", "dataIndex": "applies_from", "width": Lino.chars2width(9) }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat se termine", "dataIndex": "applies_until", "width": Lino.chars2width(9) }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2809 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2810 }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 6, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 7, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2813 }, { "colIndex": 8, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2814 }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2815, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12816 }, { "colIndex": 11, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2817 }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2818 } ];\n'
20130515 '    Lino.pcsw.IntegClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.IntegClients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/IntegClients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.IntegClients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.IntegClients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.IntegClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.IntegClients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.IntegClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.OverlappingContracts\n'
20130515 'Lino.pcsw.OverlappingContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/OverlappingContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contrats chevauchants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2820 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2821 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2822 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2823 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2825 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2826 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2827 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12828 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2829 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2830 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2831 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2832 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22833 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2834 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email2835 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url2836 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2839 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2840 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2841 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2842 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12843 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22844 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2845 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2846 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2847 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2848 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2849 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2824.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2824.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2825.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2823.on('change',Lino.chooser_handler(city2824,'country'));\n"
20130515 "      region2825.on('change',Lino.chooser_handler(city2824,'region'));\n"
20130515 "      country2823.on('change',Lino.chooser_handler(region2825,'country'));\n"
20130515 '      Lino.pcsw.OverlappingContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2820, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 3, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2823, "dataIndex": "country" }, { "colIndex": 4, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2824 }, { "colIndex": 5, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2825 }, { "colIndex": 6, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2826 }, { "colIndex": 7, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2827 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12828 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2829 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2830 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2831 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2832 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22833 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2834 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2835 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2836 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2837 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2838 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2839 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2840, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2842 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12843 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22844 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2845 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2846 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2847 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2848 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2849 } ];\n'
20130515 '    Lino.pcsw.OverlappingContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.OverlappingContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.OverlappingContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.Contracts\n'
20130515 'Lino.isip.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2851 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2852 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2853 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2854 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2855 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2856 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2857 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2858 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2859 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2860 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12861 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22862 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2863 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2864 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2865 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2866 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2867 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2868 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2869 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2870 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2871 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2872 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2873 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2874 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2875 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2859.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2870.refresh();\n'
20130515 '      goals2871.refresh();\n'
20130515 '      duties_asd2872.refresh();\n'
20130515 '      duties_dsbe2873.refresh();\n'
20130515 '      duties_company2874.refresh();\n'
20130515 '      duties_person2875.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2858.on('change',Lino.chooser_handler(contact_person2859,'company'));\n"
20130515 '      Lino.isip.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2851, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2852, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2853, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2854, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2855 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2856 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2858, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2859, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2860 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12861, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22862, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2863 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2864 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2865 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2866 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2867 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2868 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2869 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2870, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2871, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2872, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2873, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2874, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2875, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.MyContracts\n'
20130515 'Lino.isip.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2877 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2878 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2879 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2880 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2883 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2884 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2885 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2886 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12887 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22888 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2889 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2890 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2891 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2893 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2895 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2896 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2897 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2898 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2899 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2900 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2901 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2885.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2896.refresh();\n'
20130515 '      goals2897.refresh();\n'
20130515 '      duties_asd2898.refresh();\n'
20130515 '      duties_dsbe2899.refresh();\n'
20130515 '      duties_company2900.refresh();\n'
20130515 '      duties_person2901.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2884.on('change',Lino.chooser_handler(contact_person2885,'company'));\n"
20130515 '      Lino.isip.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2877, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2878, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2879, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2880, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2881 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2882 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2884, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2885, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2886 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12887, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22888, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2889 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2890 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2891 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2892 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2893 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2894 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2895 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2896, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2897, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2898, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2899, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2900, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2901, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobProviders\n'
20130515 'Lino.jobs.JobProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Employants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 72,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2903 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2904 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2906 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2907 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2908 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2909 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2910 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12911 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2912 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2913 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2914 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2915 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22916 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2917 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2918 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2919 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2920 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2922 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2923 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12925 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22926 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2927 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2928 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2931 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2908.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2908.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2909.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2907.on('change',Lino.chooser_handler(city2908,'country'));\n"
20130515 "      region2909.on('change',Lino.chooser_handler(city2908,'region'));\n"
20130515 "      country2907.on('change',Lino.chooser_handler(region2909,'country'));\n"
20130515 '      Lino.jobs.JobProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2903 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2904 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2907, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2908 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2909 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2910 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12911 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2912 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2913 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2914 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2915 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22916 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2917 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2918 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2919 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2920 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2921 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2922, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2924 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12925 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22926 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2927 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2928 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2929 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2930 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2931, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Employants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detailPanel = Ext.extend(Lino.jobs.JobProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Employants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Contracts\n'
20130515 'Lino.jobs.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2933 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job2934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from2935 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2936 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user2937 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2938 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time2939 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2940 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2941 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2942 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12943 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client2945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language2946 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2948 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2950 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2951 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2952 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration2953 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2956 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2957 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2958 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2959 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2960 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2941.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2959.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2940.on('change',Lino.chooser_handler(contact_person2941,'company'));\n"
20130515 '      Lino.jobs.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2933, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2934, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2935, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2936, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2937 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2938 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2940, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2941, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2942 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12943, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22944, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2945, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2946 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2947 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2948 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2949 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2950 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2951 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2952 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2953 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2954 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2955 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2956 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2957 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2958 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2959, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2960, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.MyContracts\n'
20130515 'Lino.jobs.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from2962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2963 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var id2965 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user2966 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var build_time2967 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2968 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2969 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2970 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12971 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22972 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2973 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until2974 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided2975 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2976 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2977 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2978 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2979 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2980 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type2981 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var duration2982 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2983 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2985 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2986 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2987 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2988 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2989 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2969.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2988.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2968.on('change',Lino.chooser_handler(contact_person2969,'company'));\n"
20130515 '      Lino.jobs.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2962, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2963, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2964, "dataIndex": "job" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2965, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2966 }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2968, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2969, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2970 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12971, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22972, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2973 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2974, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2975 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2976 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2977 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2978 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2979 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2980 }, { "colIndex": 19, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2981 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2982 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2983 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2984 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2985 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2986 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2987 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2988, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2989, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Offers\n'
20130515 'Lino.jobs.Offers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Offers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres d\'emploi",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "type": "date", "name": "selection_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "selection_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 66,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2991 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2992 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var name2994 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var provider2995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var selection_from2996 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var selection_until2997 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_date2998 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark2999 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2993.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2992.on('change',Lino.chooser_handler(function2993,'sector'));\n"
20130515 '      Lino.jobs.Offers.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2991, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2992 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2993 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2994 }, { "colIndex": 4, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider2995, "dataIndex": "provider" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de s\\u00e9lection", "editor": selection_from2996, "width": Lino.chars2width(9), "dataIndex": "selection_from" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin de s\\u00e9lection", "editor": selection_until2997, "width": Lino.chars2width(9), "dataIndex": "selection_until" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2998, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2999, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Offers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insertPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres d\'emploi",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Offers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detailPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres d\'emploi",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Offers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Jobs\n'
20130515 'Lino.jobs.Jobs.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Jobs",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3001 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3002 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3003 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3004 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type3005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type3006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3007 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3008 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3009 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3010 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3004.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3003.on('change',Lino.chooser_handler(function3004,'sector'));\n"
20130515 '      Lino.jobs.Jobs.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3001 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3002, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3003 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3004 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3005 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3006 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3007 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3008 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3009, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3010, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.Jobs.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Jobs.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Jobs.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsSearch\n'
20130515 'Lino.jobs.ContractsSearch.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsSearch",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Recherche contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "client" }, \'clientHidden\', { "name": "client__city" }, \'client__cityHidden\', { "name": "client__national_id" }, { "name": "client__gender" }, \'client__genderHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 49,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3012 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3013 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3014 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var job3015 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var client3016 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var client__city3017 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var client__national_id3018 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var client__gender3019 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(1), "maxLength": 1 });\n'
20130515 '    var user3020 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3021 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3022 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3023 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3024 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3025 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13026 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23027 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3028 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3029 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3030 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3031 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3032 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3033 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3034 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3035 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3036 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3037 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3038 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3039 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3040 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3041 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3042 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3024.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3041.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3023.on('change',Lino.chooser_handler(contact_person3024,'company'));\n"
20130515 '      Lino.jobs.ContractsSearch.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3012, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3013, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3014, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3015, "dataIndex": "job" }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3016, "dataIndex": "client" }, { "filter": { "type": "string" }, "width": Lino.chars2width(21), "colIndex": 5, "sortable": true, "dataIndex": "client__city", "header": "Place", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "client__national_id", "header": "NISS", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(5), "colIndex": 7, "sortable": true, "dataIndex": "client__gender", "header": "Sexe", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3020 }, { "colIndex": 9, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3021 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3023, "dataIndex": "company" }, { "colIndex": 12, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3024, "dataIndex": "contact_person" }, { "colIndex": 13, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3025 }, { "colIndex": 14, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13026, "dataIndex": "signer1" }, { "colIndex": 15, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23027, "dataIndex": "signer2" }, { "colIndex": 16, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3028 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3029 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3030 }, { "colIndex": 19, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3031 }, { "colIndex": 20, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3032 }, { "colIndex": 21, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3033 }, { "colIndex": 22, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3034 }, { "colIndex": 23, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3035 }, { "colIndex": 24, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3036 }, { "colIndex": 25, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3037 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3038 }), { "colIndex": 27, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3039 }, { "colIndex": 28, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3040 }, { "colIndex": 29, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3041, "dataIndex": "responsibilities" }, { "colIndex": 30, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3042, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsSearch.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Recherche contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Recherche contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsSearch.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsSearch.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseProviders\n'
20130515 'Lino.courses.CourseProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisateurs de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 77,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3044 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3045 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3046 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3047 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3048 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3049 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3050 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3051 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13052 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3053 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3054 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3055 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3056 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23057 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3058 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3059 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3060 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3061 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3062 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3063 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3064 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23067 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3068 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id3069 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type3070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type3071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id3072 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3049.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3049.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3050.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3048.on('change',Lino.chooser_handler(city3049,'country'));\n"
20130515 "      region3050.on('change',Lino.chooser_handler(city3049,'region'));\n"
20130515 "      country3048.on('change',Lino.chooser_handler(region3050,'country'));\n"
20130515 '      Lino.courses.CourseProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3044 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3045 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3048, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3049 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3050 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3051 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13052 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3053 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3054 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3055 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3056 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23057 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3058 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3059 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3060 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3061 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3062 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3063, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3065 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13066 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23067 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3068 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id3069 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3070 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type3071 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3072, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisateurs de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detailPanel = Ext.extend(Lino.courses.CourseProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisateurs de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffers\n'
20130515 'Lino.courses.CourseOffers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3075 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content3076 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var provider3077 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3078 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3078.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3074, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3075 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3076 }, { "colIndex": 3, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3077, "dataIndex": "provider" }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3078, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.PendingCourseRequests\n'
20130515 'Lino.courses.PendingCourseRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/PendingCourseRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demandes de cours ouvertes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "person" }, \'personHidden\', { "type": "int", "name": "age" }, { "name": "address" }, { "name": "person__gsm" }, { "name": "person__phone" }, { "name": "person__coaches" }, { "name": "content" }, \'contentHidden\', { "type": "boolean", "name": "urgent" }, { "name": "remark" }, { "type": "int", "name": "a16" }, { "type": "int", "name": "a25" }, { "type": "int", "name": "a31" }, { "type": "int", "name": "a41" }, { "type": "int", "name": "a51" }, { "type": "int", "name": "a61" }, { "type": "int", "name": "ax" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 20,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 22,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted3080 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp3081 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person3082 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var age3083 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var address_disp3084 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person__gsm3085 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__phone3086 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__coaches_disp3087 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content3088 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var urgent3089 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var remark3090 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var a163091 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a253092 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a313093 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a413094 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a513095 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a613096 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var ax3097 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3080 }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3082, "dataIndex": "person" }, new Lino.NullNumberColumn({ "header": "\\u00e2ge", "colIndex": 3, "sortable": false, "dataIndex": "age", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "person__gsm", "header": "GSM", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "person__phone", "header": "T\\u00e9l\\u00e9phone", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 7, "sortable": false, "dataIndex": "person__coaches", "header": "Accompagnants", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3088 }, { "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 10, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3090, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "header": "16-24", "colIndex": 11, "sortable": false, "dataIndex": "a16", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "25-30", "colIndex": 12, "sortable": false, "dataIndex": "a25", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "31-40", "colIndex": 13, "sortable": false, "dataIndex": "a31", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "41-50", "colIndex": 14, "sortable": false, "dataIndex": "a41", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "51-60", "colIndex": 15, "sortable": false, "dataIndex": "a51", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": ">61", "colIndex": 16, "sortable": false, "dataIndex": "a61", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "age inconnu", "colIndex": 17, "sortable": false, "dataIndex": "ax", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.courses.PendingCourseRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demandes de cours ouvertes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demandes de cours ouvertes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.courses.PendingCourseRequests.ParamsPanel({});\n'
20130515 '  return new Lino.courses.PendingCourseRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonRequests\n'
20130515 'Lino.cbss.IdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 25,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3099 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3100 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3101 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3102 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3103 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3104 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3105 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3106 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3107 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3108 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3109 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3110 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3111 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3112 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3113 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3114 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3115 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3117 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3118 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3099, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3100 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3101, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3110 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3111 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3112 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3113 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3114 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3115 }, { "colIndex": 17, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3116 }, { "colIndex": 18, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3117 }, new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3118 }) ];\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequests\n'
20130515 'Lino.cbss.ManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3120 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3121 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3122 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3123 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3124 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3125 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3126 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3127 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3128 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3129 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3130 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3131 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3132 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3133 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3137 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3138 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3139 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3140 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3141 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3142 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3138.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3137.on('change',Lino.chooser_handler(purpose3138,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3120, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3121 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3122, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3131 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3132 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3133 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3134 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3135 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3136 }, { "colIndex": 17, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 18, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3138 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3139, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 20, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3140, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 21, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3141 }, { "colIndex": 22, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3142 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3144 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3145 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3146 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3147 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3148 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3149 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3150 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3151 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3152 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3153 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3144, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3145 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3146, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3147 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3148 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class sessions.SessionTable\n'
20130515 'Lino.sessions.SessionTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/sessions/SessionTable",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "sessions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "session_key" }, { "name": "session_data" }, { "name": "expire_date" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 4,\n'
20130515 '  ls_id_property : "session_key",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var session_key3155 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 40 });\n'
20130515 '    var session_data3156 = new Ext.form.TextArea({ "selectOnFocus": true, "allowBlank": false, "growMax": 2000 });\n'
20130515 '    var expire_date3157 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "cl\\u00e9 de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "session_key", "editor": session_key3155 }, { "colIndex": 1, "sortable": false, "header": "donn\\u00e9es de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": session_data3156, "dataIndex": "session_data" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "expire_date", "header": "date d\'expiration", "editable": true, "editor": expire_date3157 } ];\n'
20130515 '    Lino.sessions.SessionTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.sessions.SessionTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.sessions.SessionTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class ui.MyTextFieldTemplates\n'
20130515 'Lino.ui.MyTextFieldTemplates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/ui/MyTextFieldTemplates",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Text Field Templates",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "name" }, { "name": "description" }, { "name": "team" }, \'teamHidden\', { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 1,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3159 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var name3160 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var description3161 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var team3162 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/MyTextFieldTemplates/team", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Team..." });\n'
20130515 '    var text3163 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Texte mod\\u00e8le" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text3163.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3159, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3160 }, { "colIndex": 2, "sortable": false, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3161, "dataIndex": "description" }, { "colIndex": 3, "sortable": true, "header": "Team", "editable": true, "tooltip": "If not empty, then this template is reserved to members of this team.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "team", "editor": team3162 }, { "colIndex": 4, "sortable": false, "header": "text", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": text3163, "dataIndex": "text" } ];\n'
20130515 '    Lino.ui.MyTextFieldTemplates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insertPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Text Field Templates",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detailPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Text Field Templates",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.ui.MyTextFieldTemplates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesGiven\n'
20130515 'Lino.users.AuthoritiesGiven.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesGiven",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations accord\\u00e9es",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "authorized" }, \'authorizedHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var authorized68 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesGiven/authorized", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      authorized68.setContextValue('mk',bp['mk']);\n"
20130515 "      authorized68.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Utilisateur", "editable": true, "tooltip": "The user who gets authority to act in your name.", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "authorized", "editor": authorized68 } ];\n'
20130515 '    Lino.users.AuthoritiesGiven.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesGiven.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesGiven.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesTaken\n'
20130515 'Lino.users.AuthoritiesTaken.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesTaken",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3165 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesTaken/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3165 } ];\n'
20130515 '    Lino.users.AuthoritiesTaken.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesTaken.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesTaken.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCity\n'
20130515 'Lino.countries.CitiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Subdivisions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name244 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr245 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl246 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code248 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id249 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/country", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var inscode251 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type247.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country250.on('change',Lino.chooser_handler(type247,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name244 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr245 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl246 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type247 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code248 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id249, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country250, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode251 } ];\n'
20130515 '    Lino.countries.CitiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Subdivisions",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Subdivisions",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCountry\n'
20130515 'Lino.countries.CitiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Places",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "parent" }, \'parentHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name217 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr218 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type220 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code221 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id222 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var parent223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/parent", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var inscode224 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      type220.setContextValue('mk',bp['mk']);\n"
20130515 "      type220.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name217 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr218 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl219 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type220 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code221 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id222, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Part of", "editable": true, "tooltip": "The superordinate geographic place of which this place is a part.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "parent", "editor": parent223 }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode224 } ];\n'
20130515 '    Lino.countries.CitiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Places",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Places",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.ChoicesByType\n'
20130515 'Lino.properties.ChoicesByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/ChoicesByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3167 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text3168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr3169 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl3170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3171 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value3167 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text3168 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr3169 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl3170 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3171, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.properties.ChoicesByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.ChoicesByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.ChoicesByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCity\n'
20130515 'Lino.contacts.PartnersByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var street272 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no273 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box274 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr2275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name276 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id278 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created279 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified280 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var region282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code283 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr1284 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix285 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email286 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url287 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone288 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax290 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks291 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete292 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity293 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account1294 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account2295 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region282.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country281.on('change',Lino.chooser_handler(region282,'country'));\n"
20130515 '      Lino.contacts.PartnersByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street272 }, { "colIndex": 1, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no273 }, { "colIndex": 2, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box274 }, { "colIndex": 3, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr2275 }, { "colIndex": 4, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name276 }, { "colIndex": 5, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language277 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id278, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country281, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region282 }, { "colIndex": 11, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code283 }, { "colIndex": 12, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr1284 }, { "colIndex": 13, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix285 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email286 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url287 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone288 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm289 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax290 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks291, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity293 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account1294 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account2295 } ];\n'
20130515 '    Lino.contacts.PartnersByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCountry\n'
20130515 'Lino.contacts.PartnersByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3173 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3174 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3175 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3176 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language3177 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3178 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3179 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3180 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3181 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3182 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13183 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3184 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_box3185 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23186 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3187 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3188 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3190 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3191 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3192 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3193 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3194 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23196 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city3173.setContextValue('mk',bp['mk']);\n"
20130515 "      city3173.setContextValue('mt',bp['mt']);\n"
20130515 "      city3173.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      var bp = this.get_base_params();\n'
20130515 "      region3181.setContextValue('mk',bp['mk']);\n"
20130515 "      region3181.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      region3181.on('change',Lino.chooser_handler(city3173,'region'));\n"
20130515 '      Lino.contacts.PartnersByCountry.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3173 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3174 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3175 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3176 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3177 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3178, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3181 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3182 }, { "colIndex": 10, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13183 }, { "colIndex": 11, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3184 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3185 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23186 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3187 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3188 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3189 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3190 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3191 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3192, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3194 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13195 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23196 } ];\n'
20130515 '    Lino.contacts.PartnersByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByCompany\n'
20130515 'Lino.contacts.RolesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes de contact",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var type616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id617 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person615, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type616 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id617, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByPerson\n'
20130515 'Lino.contacts.RolesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contact pour",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, \'companyHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/company", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var type1066 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id1067 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1065, "dataIndex": "company" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1066 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1067, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.MyPostings\n'
20130515 'Lino.postings.MyPostings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/MyPostings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3198 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner3199 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state3200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3201 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3202 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3203 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3204 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3205 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var owner_disp3206 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3204.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3203.on('change',Lino.chooser_handler(owner_id3204,'owner_type'));\n"
20130515 '      Lino.postings.MyPostings.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3198, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3199, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3200 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3202, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3203 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3204 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3205, "dataIndex": "project" }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.MyPostings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.MyPostings.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.MyPostings.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.MyPostings.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/MyPostings",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByPartner\n'
20130515 'Lino.postings.PostingsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3208 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3209 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var state3210 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3211 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3212 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3213 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3214 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user3215 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project3216 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3214.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3213.on('change',Lino.chooser_handler(owner_id3214,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByPartner.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3208, "width": Lino.chars2width(9), "dataIndex": "date" }, { "width": Lino.chars2width(11), "colIndex": 1, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3210 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3212, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3213 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3214 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3215 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3216, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByPartner.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByPartner",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByProject\n'
20130515 'Lino.postings.PostingsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1692 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner1693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state1694 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp1695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1696 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user1699 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1700 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1698.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1697.on('change',Lino.chooser_handler(owner_id1698,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date1692, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner1693, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state1694 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1696, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1697 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1698 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1699 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByProject.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByProject",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientsByMail\n'
20130515 'Lino.outbox.RecipientsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/RecipientsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Recipients",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "address" }, { "name": "name" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 28,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner689 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/RecipientsByMail/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var address690 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var name691 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var type692 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.outbox.RecipientType });\n'
20130515 '    var id693 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner689, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "Addresse", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "address", "editor": address690 }, { "colIndex": 2, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "name", "editor": name691 }, { "colIndex": 3, "sortable": true, "header": "Recipient Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type692 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id693, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.outbox.RecipientsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MyOutbox\n'
20130515 'Lino.outbox.MyOutbox.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MyOutbox",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Mon courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3218 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox3219 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject3220 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3221 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3222 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3224 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date3225 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3226 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var body3227 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3219.refresh();\n'
20130515 "      owner_id3223.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body3227.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3222.on('change',Lino.chooser_handler(owner_id3223,'owner_type'));\n"
20130515 '      Lino.outbox.MyOutbox.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3220 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3221, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3222 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3223 }, { "colIndex": 6, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3224, "dataIndex": "project" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date3225 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3227, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MyOutbox.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mon courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mon courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MyOutbox.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByUser\n'
20130515 'Lino.outbox.MailsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "recipients" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3229 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3230 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox3231 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3231.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3230 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByProject\n'
20130515 'Lino.outbox.MailsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "subject" }, { "name": "recipients" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "body" }, { "name": "sent" }, { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1680 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var subject1681 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox1682 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var user1683 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id1684 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1685 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var body1687 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var sent1688 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var owner_disp1689 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox1682.refresh();\n'
20130515 "      owner_id1686.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body1687.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1685.on('change',Lino.chooser_handler(owner_id1686,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date1680 }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1681 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 3, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1683 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1684, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1685 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1686 }, { "colIndex": 7, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1687, "dataIndex": "body" }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.SentByPartner\n'
20130515 'Lino.outbox.SentByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/SentByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3233 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3234 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/SentByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3234 }, { "colIndex": 2, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3235 } ];\n'
20130515 '    Lino.outbox.SentByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.SentByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.AttachmentsByMail\n'
20130515 'Lino.outbox.AttachmentsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/AttachmentsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pi\\u00e8ces jointes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 29,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3237 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3238 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3239 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_id", "method": "GET" }) }) });\n'
20130515 '    var owner_disp3240 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3239.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3238.on('change',Lino.chooser_handler(owner_id3239,'owner_type'));\n"
20130515 '      Lino.outbox.AttachmentsByMail.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3237, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3238 }, { "colIndex": 2, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3239 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.AttachmentsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.AttachmentsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.AttachmentsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.SubscriptionsByUser\n'
20130515 'Lino.cal.SubscriptionsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/SubscriptionsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Abonnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "calendar" }, \'calendarHidden\', { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 37,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id79 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var calendar80 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/SubscriptionsByUser/calendar", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var is_hidden81 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id79, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Calendrier", "editable": true, "tooltip": "The calendar you want to subscribe to.\\nYou can subscribe to *non-private* calendars of *other* users.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar80 }, { "colIndex": 2, "sortable": false, "xtype": "checkcolumn", "header": "cach\\u00e9", "editable": true, "tooltip": "Activer cette case pour ne pas afficher ce calendrier en ouvrant le panneau.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_hidden" } ];\n'
20130515 '    Lino.cal.SubscriptionsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.SubscriptionsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.SubscriptionsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByProject\n'
20130515 'Lino.cal.EventsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "calendar" }, \'calendarHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1630 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1631 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var user1632 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1633 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1634 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var id1635 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1636 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1638 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1639 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time1640 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date1641 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time1642 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1643 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1644 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class1645 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1646 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1647 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent1648 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place1649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority1650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state1651 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to1652 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1653 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1637.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1643.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1636.on('change',Lino.chooser_handler(owner_id1637,'owner_type'));\n"
20130515 '      Lino.cal.EventsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1630, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1631 }, { "colIndex": 2, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1632 }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1633 }, { "colIndex": 4, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1634 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1635, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type1636 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id1637 }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date1641 }, { "colIndex": 12, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time1642 }, { "colIndex": 13, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description1643, "dataIndex": "description" }, { "colIndex": 14, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid1644 }, { "colIndex": 15, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class1645 }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence1646 }), new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 18, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 19, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place1649 }, { "colIndex": 20, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority1650 }, { "colIndex": 21, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state1651 }, { "colIndex": 22, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to1652 }, { "width": Lino.chars2width(11), "colIndex": 23, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByUser\n'
20130515 'Lino.cal.TasksByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date85 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary86 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp87 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id88 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type89 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id90 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created91 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified92 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project93 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time94 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description95 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid96 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar97 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class98 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence99 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type100 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date101 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time102 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent103 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state104 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp105 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id90.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description95.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type89.on('change',Lino.chooser_handler(owner_id90,'owner_type'));\n"
20130515 '      Lino.cal.TasksByUser.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date85, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary86 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id88, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type89 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id90 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project93, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time94 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description95, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid96 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar97 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class98 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence99 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date101, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time102 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent103 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state104 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasks\n'
20130515 'Lino.cal.MyTasks.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasks",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3242 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3243 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3244 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3245 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3246 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3248 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3249 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3251 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3252 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3253 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3254 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3255 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3256 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3257 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3258 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3259 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3260 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3261 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3262 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3247.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3252.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3246.on('change',Lino.chooser_handler(owner_id3247,'owner_type'));\n"
20130515 '      Lino.cal.MyTasks.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3242, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3243 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3245, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3246 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3247 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3250, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3251 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3252, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3253 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3254 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3255 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3256 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3258, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3259 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3260 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3261 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasks.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasks.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasksToDo\n'
20130515 'Lino.cal.MyTasksToDo.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasksToDo",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "To-do list",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3264 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3265 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3266 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3267 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3268 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3269 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3270 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3271 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3272 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3273 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3274 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3276 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3278 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3279 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3280 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3281 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3282 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3283 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3284 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3269.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3274.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3268.on('change',Lino.chooser_handler(owner_id3269,'owner_type'));\n"
20130515 '      Lino.cal.MyTasksToDo.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3264, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3265 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3267, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3268 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3269 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3272, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3273 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3274, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3275 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3276 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3277 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3278 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3280, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3281 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3282 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3283 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasksToDo.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau To-do list",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail To-do list",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByProject\n'
20130515 'Lino.cal.TasksByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1656 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1658 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1659 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1660 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1661 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1663 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_time1665 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1666 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1667 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class1669 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1670 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1671 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date1672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time1673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent1674 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state1675 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp1676 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1662.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1666.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1661.on('change',Lino.chooser_handler(owner_id1662,'owner_type'));\n"
20130515 '      Lino.cal.TasksByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1656, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1657 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1658 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1660, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1661 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1662 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1665 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description1666, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid1667 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1668 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class1669 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence1670 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date1672, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time1673 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent1674 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state1675 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByEvent\n'
20130515 'Lino.cal.GuestsByEvent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByEvent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner793 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role794 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp795 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event797 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id798 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time799 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner793, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role794 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark796 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event797 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id798, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state800 } ];\n'
20130515 '    Lino.cal.GuestsByEvent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByRole\n'
20130515 'Lino.cal.GuestsByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner3286 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role3287 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3288 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event3290 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id3291 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3292 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3293 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3286, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3287 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3289 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3290 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3291, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3293 } ];\n'
20130515 '    Lino.cal.GuestsByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByRole.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByPartner\n'
20130515 'Lino.cal.GuestsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "event" }, \'eventHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event3295 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var role3296 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3297 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3299 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3300 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3301 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3295 }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3296 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3298 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3299, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3301 } ];\n'
20130515 '    Lino.cal.GuestsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByPartner.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPresences\n'
20130515 'Lino.cal.MyPresences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPresences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes pr\\u00e9sences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3303 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3304 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3305 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3306 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3307 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3309 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3310 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3311 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3312 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3306 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3308 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3309, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3311 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3312 } ];\n'
20130515 '    Lino.cal.MyPresences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPresences.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPresences.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPendingInvitations\n'
20130515 'Lino.cal.MyPendingInvitations.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPendingInvitations",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes invitations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3314 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3315 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3316 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3317 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3318 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3319 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3320 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3321 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3322 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3317 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3319 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3320, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3322 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3323 } ];\n'
20130515 '    Lino.cal.MyPendingInvitations.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPendingInvitations.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPendingInvitations.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.MyUploads\n'
20130515 'Lino.uploads.MyUploads.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/MyUploads",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "owner" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "name": "type" }, \'typeHidden\', { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3325 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var description3326 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3327 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp3328 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var id3329 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3332 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3333 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3334 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var type3335 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var valid_until3336 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3331.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3330.on('change',Lino.chooser_handler(owner_id3331,'owner_type'));\n"
20130515 '      Lino.uploads.MyUploads.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3325 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3326 }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3327 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3329, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3330 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3331 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3335 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3336, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.MyUploads.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.MyUploads.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.MyUploads.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.HouseholdsByType\n'
20130515 'Lino.households.HouseholdsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/HouseholdsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 30,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 32,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3338 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3339 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3342 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3343 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3344 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3345 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13346 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3347 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3348 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3349 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3350 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23351 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3352 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3353 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3354 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3355 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3357 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3358 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3359 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13360 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23361 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3362 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3363 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3343.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3343.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3344.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3342.on('change',Lino.chooser_handler(city3343,'country'));\n"
20130515 "      region3344.on('change',Lino.chooser_handler(city3343,'region'));\n"
20130515 "      country3342.on('change',Lino.chooser_handler(region3344,'country'));\n"
20130515 '      Lino.households.HouseholdsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3338 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3339 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3342, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3343 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3344 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3345 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13346 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3347 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3348 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3349 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3350 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23351 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3352 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3353 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3354 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3355 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3356 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3357, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3359 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13360 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23361 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3362 }, new Lino.NullNumberColumn({ "colIndex": 25, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3363, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.HouseholdsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.HouseholdsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByHousehold\n'
20130515 'Lino.households.MembersByHousehold.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByHousehold",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var role985 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date986 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date987 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id988 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person984, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role985 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date986, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date987, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id988, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByHousehold.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByHousehold.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByHousehold.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByPerson\n'
20130515 'Lino.households.MembersByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membre de ",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "household" }, \'householdHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var household1070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var role1071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date1072 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1073 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id1074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household1070, "dataIndex": "household" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role1071 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date1072, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date1073, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1074, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByRole\n'
20130515 'Lino.households.MembersByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "household" }, \'householdHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person3365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var household3366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var start_date3367 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date3368 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id3369 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person3365, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household3366, "dataIndex": "household" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date3367, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date3368, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3369, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountsByGroup\n'
20130515 'Lino.accounts.AccountsByGroup.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/accounts/AccountsByGroup",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comptes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "ref" }, { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "default_amount" }, { "name": "periods" }, { "type": "boolean", "name": "required_for_household" }, { "type": "boolean", "name": "required_for_person" }, { "name": "group" }, \'groupHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 43,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var ref3371 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    var name3372 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr3373 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl3374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var default_amount3375 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var periods3376 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": true, "value": 1, "allowDecimals": false });\n'
20130515 '    var required_for_household3377 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var required_for_person3378 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3379 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/accounts/AccountsByGroup/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de comptes..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "ref", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "ref", "editor": ref3371 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3372 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr3373 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl3374 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "header": "Default amount", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "default_amount", "editor": default_amount3375 }), new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0/i", "editable": true, "tooltip": "For how many months the entered amount counts. \\nFor example 1 means a monthly amount, 12 a yearly amount.", "filter": { "type": "numeric" }, "header": "P\\u00e9riodes", "dataIndex": "periods", "width": Lino.chars2width(6), "editor": periods3376 }), { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour m\\u00e9nages", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_household" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour personnes", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_person" }, { "colIndex": 8, "sortable": true, "header": "Groupe de comptes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3379 } ];\n'
20130515 '    Lino.accounts.AccountsByGroup.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountsByGroup.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountsByGroup.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.accounts.AccountsByGroup.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.accounts.AccountsByGroup.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.MyNotes\n'
20130515 'Lino.notes.MyNotes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/MyNotes",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "project" }, \'projectHidden\', { "name": "body" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3381 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var project3385 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var body3386 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var id3387 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3388 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3389 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3390 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3391 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3392 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3393 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3386.refresh();\n'
20130515 "      owner_id3389.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3388.on('change',Lino.chooser_handler(owner_id3389,'owner_type'));\n"
20130515 '      Lino.notes.MyNotes.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3381, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3382 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3383 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3384 }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3385, "dataIndex": "project" }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3386, "dataIndex": "body" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3387, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3388 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3389 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3391 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3392, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.MyNotes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.MyNotes.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.MyNotes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.NotesByProject\n'
20130515 'Lino.notes.NotesByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/NotesByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3395 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3398 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body3399 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user3400 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3401 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3402 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3403 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3404 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3405 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3406 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3407 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3399.refresh();\n'
20130515 "      owner_id3403.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3402.on('change',Lino.chooser_handler(owner_id3403,'owner_type'));\n"
20130515 '      Lino.notes.NotesByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3395, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3396 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3397 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3398 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3399, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3400 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3401, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3402 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3403 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3405 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3406, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.NotesByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.NotesByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.NotesByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.LanguageKnowledgesByPerson\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/LanguageKnowledgesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var language1321 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/LanguageKnowledgesByPerson/language", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var native1322 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken1323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written1324 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level1325 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1321, "dataIndex": "language" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken1323 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written1324 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level1325 } ];\n'
20130515 '    Lino.cv.LanguageKnowledgesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.LanguageKnowledgesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.KnowledgesByLanguage\n'
20130515 'Lino.cv.KnowledgesByLanguage.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/KnowledgesByLanguage",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person196 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/KnowledgesByLanguage/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var native197 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken198 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written199 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person196, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken198 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written199 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level200 } ];\n'
20130515 '    Lino.cv.KnowledgesByLanguage.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.KnowledgesByLanguage.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.KnowledgesByLanguage.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.PropsByPerson\n'
20130515 'Lino.cv.PropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/PropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3411 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3412 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3413 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3409.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3410.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3413.on('change',Lino.chooser_handler(property3409,'group'));\n"
20130515 "      property3409.on('change',Lino.chooser_handler(value3410,'property'));\n"
20130515 '      Lino.cv.PropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3409 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3410 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3411 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3412, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3413 } ];\n'
20130515 '    Lino.cv.PropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.PropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.PropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ConfiguredPropsByPerson\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ConfiguredPropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3415 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3418 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3419 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3415.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3416.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3419.on('change',Lino.chooser_handler(property3415,'group'));\n"
20130515 "      property3415.on('change',Lino.chooser_handler(value3416,'property'));\n"
20130515 '      Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3415 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3416 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3417 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3418, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3419 } ];\n'
20130515 '    Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ConfiguredPropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SkillsByPerson\n'
20130515 'Lino.cv.SkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1367 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1368 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1365.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1366.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1369.on('change',Lino.chooser_handler(property1365,'group'));\n"
20130515 "      property1365.on('change',Lino.chooser_handler(value1366,'property'));\n"
20130515 '      Lino.cv.SkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1365 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1366 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1367 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1368, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1369 } ];\n'
20130515 '    Lino.cv.SkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SoftSkillsByPerson\n'
20130515 'Lino.cv.SoftSkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SoftSkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences sociales",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1372 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1373 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1375 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1376 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1372.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1373.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1376.on('change',Lino.chooser_handler(property1372,'group'));\n"
20130515 "      property1372.on('change',Lino.chooser_handler(value1373,'property'));\n"
20130515 '      Lino.cv.SoftSkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1372 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1373 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1374 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1375, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1376 } ];\n'
20130515 '    Lino.cv.SoftSkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SoftSkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SoftSkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ObstaclesByPerson\n'
20130515 'Lino.cv.ObstaclesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ObstaclesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Obstacles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1385 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1386 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1382.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1383.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1386.on('change',Lino.chooser_handler(property1382,'group'));\n"
20130515 "      property1382.on('change',Lino.chooser_handler(value1383,'property'));\n"
20130515 '      Lino.cv.ObstaclesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1382 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1383 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1384 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1385, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1386 } ];\n'
20130515 '    Lino.cv.ObstaclesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ObstaclesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ObstaclesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ClientsByNationality\n'
20130515 'Lino.pcsw.ClientsByNationality.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ClientsByNationality",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "country" }, \'countryHidden\', { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "broker" }, \'brokerHidden\', { "name": "faculty" }, \'facultyHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3421 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3422 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3423 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3424 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23425 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name3426 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var country3427 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var language3428 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3429 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3430 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3431 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3432 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3433 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13434 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3435 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3436 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3437 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3438 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3439 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3440 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3441 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3442 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3443 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13444 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23445 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3446 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3447 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3448 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3449 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3450 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23451 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3452 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3453 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3454 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3455 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3456 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3457 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3458 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3459 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3460 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3461 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var card_number3462 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3463 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3464 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3465 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3466 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3467 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3468 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3469 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3470 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3471 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3472 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3473 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3474 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3475 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3476 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3477 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3478 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3479 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3480 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3481 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3482 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3483 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3484 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3485 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3486 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3487 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3488 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    var broker3489 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var faculty3490 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/faculty", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3421.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3421.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3432.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3427.on('change',Lino.chooser_handler(city3421,'country'));\n"
20130515 "      region3432.on('change',Lino.chooser_handler(city3421,'region'));\n"
20130515 "      country3427.on('change',Lino.chooser_handler(region3432,'country'));\n"
20130515 '      Lino.pcsw.ClientsByNationality.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3421 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3422 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3423 }, { "colIndex": 3, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3424 }, { "colIndex": 4, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23425 }, { "colIndex": 5, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3426 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3427, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3428 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3429, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3432 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3433 }, { "colIndex": 13, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13434 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3435 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3436 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3437 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3438 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3439 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3440 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3441, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3443 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13444 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23445 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3446 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3447 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3448 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3449 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3450 }, { "colIndex": 30, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23451, "dataIndex": "remarks2" }, { "colIndex": 31, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3452 }, { "colIndex": 32, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 33, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 34, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3455 }, { "colIndex": 35, "sortable": true, "header": "Lieu de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3456 }, { "colIndex": 36, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3457, "dataIndex": "birth_country" }, { "colIndex": 37, "sortable": true, "header": "Etat civil'
20130515 '", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3458 }, { "colIndex": 38, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3459 }, { "colIndex": 39, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3460, "dataIndex": "health_insurance" }, { "colIndex": 40, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3461, "dataIndex": "pharmacy" }, { "colIndex": 41, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3462 }, { "colIndex": 42, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3463, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 43, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3464, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 44, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3465 }, { "colIndex": 45, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3466 }, { "colIndex": 46, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3467 }, { "colIndex": 47, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3468 }, { "colIndex": 48, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3469, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 49, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3470, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 50, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 51, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3473, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 53, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3474 }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 56, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 57, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 60, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3481, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 61, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3482 }, { "colIndex": 62, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3483, "dataIndex": "obstacles" }, { "colIndex": 63, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3484, "dataIndex": "skills" }, { "colIndex": 64, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3485 }, { "colIndex": 65, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3486 }, { "colIndex": 66, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3487 }, { "colIndex": 67, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3488 }, { "colIndex": 68, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3489 }, { "colIndex": 69, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3490 } ];\n'
20130515 '    Lino.pcsw.ClientsByNationality.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.ClientsByNationality.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ExclusionsByPerson\n'
20130515 'Lino.pcsw.ExclusionsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ExclusionsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "exclusions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "excluded_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "excluded_until", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 46,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var excluded_from1233 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var excluded_until1234 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type1235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ExclusionsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Exclusion Type..." });\n'
20130515 '    var remark1236 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "de", "editor": excluded_from1233, "width": Lino.chars2width(9), "dataIndex": "excluded_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": excluded_until1234, "width": Lino.chars2width(9), "dataIndex": "excluded_until" }, { "colIndex": 2, "sortable": true, "header": "Raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1235 }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1236 } ];\n'
20130515 '    Lino.pcsw.ExclusionsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ExclusionsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ExclusionsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ContactsByClient\n'
20130515 'Lino.pcsw.ContactsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ContactsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Contacts",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 54,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1279 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var company1280 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1283 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1284 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      company1280.setContextValue('type',record ? record.data['typeHidden'] : undefined);\n"
20130515 "      contact_person1281.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      type1279.on('change',Lino.chooser_handler(company1280,'type'));\n"
20130515 "      company1280.on('change',Lino.chooser_handler(contact_person1281,'company'));\n"
20130515 '      Lino.pcsw.ContactsByClient.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1279 }, { "colIndex": 1, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1280, "dataIndex": "company" }, { "colIndex": 2, "sortable": true, "header": "Personne de contact", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1281, "dataIndex": "contact_person" }, { "colIndex": 3, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1282 }, { "colIndex": 4, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1283, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1284, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.ContactsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ContactsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ContactsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByClient\n'
20130515 'Lino.pcsw.CoachingsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "type": "boolean", "name": "primary" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1287 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1288 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1289 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var primary1290 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var type1291 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var id1292 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date1287, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date1288, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Accompagnant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "user", "editor": user1289 }, { "colIndex": 3, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, { "colIndex": 4, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "type", "editor": type1291 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1292, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByUser\n'
20130515 'Lino.pcsw.CoachingsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "type" }, \'typeHidden\', { "type": "boolean", "name": "primary" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date157 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date158 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client159 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type160 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var primary161 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var id162 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date157, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date158, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client159, "dataIndex": "client" }, { "colIndex": 3, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type160 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id162, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByPerson\n'
20130515 'Lino.pcsw.NotesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "name": "company" }, \'companyHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1615 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type1616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type1617 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject1618 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body1619 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user1620 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var company1621 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var id1622 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time1625 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language1626 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp1627 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body1619.refresh();\n'
20130515 "      owner_id1624.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1623.on('change',Lino.chooser_handler(owner_id1624,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date1615, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type1616 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1617 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1618 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1619, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1620 }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1621, "dataIndex": "company" }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1622, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1623 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1624 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1626 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByCompany\n'
20130515 'Lino.pcsw.NotesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "project" }, \'projectHidden\', { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date622 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var project623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var event_type624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type625 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject626 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body627 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id629 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time632 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language633 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp634 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body627.refresh();\n'
20130515 "      owner_id631.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type630.on('change',Lino.chooser_handler(owner_id631,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByCompany.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date622, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project623, "dataIndex": "project" }, { "colIndex": 2, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type624 }, { "colIndex": 3, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type625 }, { "colIndex": 4, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject626 }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body627, "dataIndex": "body" }, { "colIndex": 6, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user628 }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id629, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type630 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id631 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language633 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPerson\n'
20130515 'Lino.isip.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from1402 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1403 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1404 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1405 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var id1406 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1407 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1408 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11411 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21412 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1413 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1414 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1415 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1417 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1418 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1419 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages1420 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals1421 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd1422 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1423 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company1424 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1425 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1409.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages1420.refresh();\n'
20130515 '      goals1421.refresh();\n'
20130515 '      duties_asd1422.refresh();\n'
20130515 '      duties_dsbe1423.refresh();\n'
20130515 '      duties_company1424.refresh();\n'
20130515 '      duties_person1425.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1408.on('change',Lino.chooser_handler(contact_person1409,'company'));\n"
20130515 '      Lino.isip.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1402, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1403, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1404 }, { "colIndex": 3, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1405 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1406, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1408, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1409, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1410 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11411, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21412, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1413 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1414 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1415 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1416 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1417 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1418 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1419 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages1420, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals1421, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd1422, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe1423, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company1424, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person1425, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPolicy\n'
20130515 'Lino.isip.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3492 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3493 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3494 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3495 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3496 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3497 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time3498 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3499 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3500 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13502 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23503 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3504 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3505 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3506 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3507 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3508 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3509 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3510 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3511 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3512 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3513 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3514 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3515 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3500.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3510.refresh();\n'
20130515 '      goals3511.refresh();\n'
20130515 '      duties_asd3512.refresh();\n'
20130515 '      duties_dsbe3513.refresh();\n'
20130515 '      duties_company3514.refresh();\n'
20130515 '      duties_person3515.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3499.on('change',Lino.chooser_handler(contact_person3500,'company'));\n"
20130515 '      Lino.isip.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3492, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3493, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3494, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3495, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3496 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3497 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3499, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3500, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3501 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13502, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23503, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3504 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3505 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3506 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3507 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3508 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3509 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3510, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3511, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3512, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3513, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3514, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3515, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByType\n'
20130515 'Lino.isip.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from3517 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3518 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3519 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3520 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3521 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3524 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13525 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3527 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until3528 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided3529 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3530 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3531 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3532 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3533 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3534 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3535 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3536 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3537 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3538 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3539 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3540 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3523.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3535.refresh();\n'
20130515 '      goals3536.refresh();\n'
20130515 '      duties_asd3537.refresh();\n'
20130515 '      duties_dsbe3538.refresh();\n'
20130515 '      duties_company3539.refresh();\n'
20130515 '      duties_person3540.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3522.on('change',Lino.chooser_handler(contact_person3523,'company'));\n"
20130515 '      Lino.isip.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3517, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3518, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3519 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3520, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3522, "dataIndex": "company" }, { "colIndex": 6, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3523, "dataIndex": "contact_person" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3524 }, { "colIndex": 8, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13525, "dataIndex": "signer1" }, { "colIndex": 9, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23526, "dataIndex": "signer2" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3527 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3528, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3529 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3530 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3531 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3532 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3533 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3534 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3535, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3536, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3537, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3538, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3539, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3540, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPerson\n'
20130515 'Lino.jobs.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job1506 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1507 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1508 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1509 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1510 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1511 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1512 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11516 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21517 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1518 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1519 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1520 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1521 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1524 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1525 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1527 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1528 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1529 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1531 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1532 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1514.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1531.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1513.on('change',Lino.chooser_handler(contact_person1514,'company'));\n"
20130515 '      Lino.jobs.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1506, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1507, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1508, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1509 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1510 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1511, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1513, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": contact_person1514, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "hidden": true, "editor": contact_role1515 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11516, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21517, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "hidden": true, "editor": language1518 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1519 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1520 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1521 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1522 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1523 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1524 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "hidden": true, "editor": duration1525 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "hidden": true, "editor": regime1526 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "hidden": true, "editor": schedule1527 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "hidden": true, "editor": hourly_rate1528 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1529 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "hidden": true, "editor": reference_person1530 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": responsibilities1531, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remark1532, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByProvider\n'
20130515 'Lino.jobs.ContractsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job1945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1946 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1948 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1950 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1951 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var contact_person1952 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1953 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1956 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1957 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1958 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1959 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1960 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1961 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1963 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1965 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1966 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1967 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1968 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1969 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1970 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      contact_person1952.setContextValue('mk',bp['mk']);\n"
20130515 "      contact_person1952.setContextValue('mt',bp['mt']);\n"
20130515 '      responsibilities1969.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1944, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1945, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1946, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1947, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1948 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1949 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1950, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1952, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1953 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11954, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21955, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1956 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1957 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1958 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1959 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1960 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1961 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1962 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1963 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1964 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1965 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1966 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1967 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1968 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1969, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1970, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPolicy\n'
20130515 'Lino.jobs.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3542 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3543 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3544 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3545 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3546 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3547 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3548 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3549 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3550 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3551 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13552 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23553 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3555 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3556 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3557 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3558 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3560 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3561 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3562 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3563 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3564 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3565 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3567 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3568 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3550.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3567.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3549.on('change',Lino.chooser_handler(contact_person3550,'company'));\n"
20130515 '      Lino.jobs.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3542, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3543, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3544, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3545, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3546 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3547 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3549, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3550, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3551 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13552, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23553, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3554, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3555 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3556 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3557 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3558 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3559 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3560 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3561 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3562 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3563 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3564 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3565 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3566 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3567, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3568, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByJob\n'
20130515 'Lino.jobs.ContractsByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1913 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var applies_from1914 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1915 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1916 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1917 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1918 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1919 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1920 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1921 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1922 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11923 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1925 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1926 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1927 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1928 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1931 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1932 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1933 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1935 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1936 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1937 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1938 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1939 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1921.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1938.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1920.on('change',Lino.chooser_handler(contact_person1921,'company'));\n"
20130515 '      Lino.jobs.ContractsByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1913, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1914, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1915, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1916 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1917 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1918, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1920, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1921, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1922 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11923, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21924, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1925 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1926 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1927 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1928 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1929 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1930 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1931 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1932 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1933 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1934 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1935 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1936 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1937 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1938, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1939, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByRegime\n'
20130515 'Lino.jobs.ContractsByRegime.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByRegime",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3571 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3572 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3573 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3574 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3575 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3576 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3577 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3578 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3582 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3583 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3584 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3585 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3588 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3589 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3590 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var schedule3591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3592 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3593 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3594 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3595 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3596 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3578.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3595.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3577.on('change',Lino.chooser_handler(contact_person3578,'company'));\n"
20130515 '      Lino.jobs.ContractsByRegime.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3570, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3571, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3572, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3573 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3574 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3575, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3577, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3578, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3579 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13580, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23581, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3582, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3583 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3584 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3585 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3586 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3587 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3588 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3589 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3590 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3591 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3592 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3593 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3594 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3595, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3596, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByRegime.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByRegime.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByRegime.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsBySchedule\n'
20130515 'Lino.jobs.ContractsBySchedule.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsBySchedule",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3599 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3600 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3603 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3604 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3605 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3606 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3607 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13608 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3611 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3612 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3613 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3617 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3618 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3619 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var hourly_rate3620 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3621 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3623 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3624 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3606.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3623.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3605.on('change',Lino.chooser_handler(contact_person3606,'company'));\n"
20130515 '      Lino.jobs.ContractsBySchedule.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3598, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3599, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3600, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3601 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3602 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3603, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3605, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3606, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3607 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13608, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23609, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3610, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3611 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3612 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3613 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3614 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3615 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3616 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3617 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3618 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3619 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3620 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3621 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3622 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3623, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3624, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsBySchedule.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsBySchedule.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCountry\n'
20130515 'Lino.jobs.StudiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "city" }, \'cityHidden\', { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id534 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var city535 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var person536 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content538 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started539 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped540 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success541 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language542 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks544 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city535.setContextValue('mk',bp['mk']);\n"
20130515 "      city535.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id534, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city535 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person536, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type537 }, { "colIndex": 4, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content538 }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started539, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped540, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 8, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language542, "dataIndex": "language" }, { "colIndex": 9, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school543 }, { "colIndex": 10, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks544, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.StudiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCity\n'
20130515 'Lino.jobs.StudiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "school" }, { "name": "type" }, \'typeHidden\', { "name": "person" }, \'personHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var school513 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var person515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var content516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started517 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped518 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success519 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language520 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var remarks521 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id522 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school513 }, { "colIndex": 1, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type514 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person515, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content516 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started517, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped518, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language520, "dataIndex": "language" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks521, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id522, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country523, "dataIndex": "country" } ];\n'
20130515 '    Lino.jobs.StudiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByPerson\n'
20130515 'Lino.jobs.StudiesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1297 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content1298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started1299 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1300 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var country1301 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city1302 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var success1303 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language1304 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school1305 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks1306 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1307 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1302.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1301.on('change',Lino.chooser_handler(city1302,'country'));\n"
20130515 '      Lino.jobs.StudiesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1297 }, { "colIndex": 1, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content1298 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1299, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1300, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1301, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city1302 }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1304, "dataIndex": "language" }, { "colIndex": 8, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school1305 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1306, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 10, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1307, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.StudiesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByFunction\n'
20130515 'Lino.jobs.ExperiencesByFunction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByFunction",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3626 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector3627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var person3628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company3629 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title3630 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country3631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started3632 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped3633 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks3634 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3626, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3627 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3628, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company3629 }, { "colIndex": 4, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3630 }, { "colIndex": 5, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3631, "dataIndex": "country" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started3632, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped3633, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3634, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByFunction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByFunction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByFunction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByPerson\n'
20130515 'Lino.jobs.ExperiencesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "country" }, \'countryHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1310 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var started1311 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1312 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var title1313 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector1314 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1315 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var country1316 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var remarks1317 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1315.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1314.on('change',Lino.chooser_handler(function1315,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1310 }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1311, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1312, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 3, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1313 }, { "colIndex": 4, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1314 }, { "colIndex": 5, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1315 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1316, "dataIndex": "country" }, { "colIndex": 7, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1317, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByPerson\n'
20130515 'Lino.jobs.CandidaturesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1393 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var job1394 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var state1395 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1398 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1399 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1397.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1396.on('change',Lino.chooser_handler(function1397,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1393 }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1394, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1395 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1396 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1397 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1398, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1399, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByJob\n'
20130515 'Lino.jobs.CandidaturesByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "person" }, \'personHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1902 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var person1903 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state1904 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1905 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1906 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1907 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1908 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1906.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1905.on('change',Lino.chooser_handler(function1906,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1902 }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1903, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1904 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1905 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1906 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1907, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1908, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByOffer\n'
20130515 'Lino.jobs.CandidaturesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2004 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person2007 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2008 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var date_submitted2009 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var remark2010 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var state2011 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2006.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2005.on('change',Lino.chooser_handler(function2006,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2004, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2005 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2006 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2007, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2008, "dataIndex": "job" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2009 }, { "colIndex": 6, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2010, "dataIndex": "remark" }, { "colIndex": 7, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state2011 } ];\n'
20130515 '    Lino.jobs.CandidaturesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByOffer\n'
20130515 'Lino.jobs.ExperiencesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id1992 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector1993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1994 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person1995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company1996 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title1997 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country1998 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started1999 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped2000 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks2001 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1994.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1993.on('change',Lino.chooser_handler(function1994,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1992, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1993 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1994 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1995, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1996 }, { "colIndex": 5, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1997 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1998, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1999, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped2000, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2001, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByProvider\n'
20130515 'Lino.jobs.JobsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name1870 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider1871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector1872 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1873 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type1874 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type1875 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate1876 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity1877 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark1878 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1879 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1873.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1872.on('change',Lino.chooser_handler(function1873,'sector'));\n"
20130515 '      Lino.jobs.JobsByProvider.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name1870 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider1871, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1872 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1873 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1874 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type1875 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1876 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity1877 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1878, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1879, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByType\n'
20130515 'Lino.jobs.JobsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3636 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3638 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var contract_type3640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3641 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3642 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3643 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3644 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3639.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3638.on('change',Lino.chooser_handler(function3639,'sector'));\n"
20130515 '      Lino.jobs.JobsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3636 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3637, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3638 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3639 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3640 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3641 }), new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3642 }), { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3643, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3644, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByType\n'
20130515 'Lino.jobs.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3646 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3647 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3648 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3649 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3651 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3652 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3653 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13656 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3658 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3659 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3661 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3663 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3664 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3665 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3666 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3669 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3670 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3671 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3672 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3673 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3654.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3672.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3653.on('change',Lino.chooser_handler(contact_person3654,'company'));\n"
20130515 '      Lino.jobs.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3646, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3647, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3648, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3649, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3650 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3651 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3653, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3654, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3655 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13656, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23657, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3658, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3659 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3660 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3661 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3662 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3663 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3664 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3665 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3666 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3667 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3668 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3669 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3670 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3671 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3672, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3673, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsOverviewByType\n'
20130515 'Lino.jobs.JobsOverviewByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsOverviewByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Situation contrats Art 60-7",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  disable_editing : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job_desc" }, { "name": "working" }, { "name": "probation" }, { "name": "candidates" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job_desc_disp3675 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var working_disp3676 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var probation_disp3677 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var candidates_disp3678 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "job_desc", "header": "Emploi", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "working", "header": "Travaille", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "probation", "header": "p\\u00e9riode d\'essai", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "candidates", "header": "Candidats", "editable": false } ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Situation contrats Art 60-7",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/jobs/JobsOverviewByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.JobsOverviewByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsOverviewByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverviewByType.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CoursesByOffer\n'
20130515 'Lino.courses.CoursesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CoursesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  title : "Cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 76,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2094 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var title2095 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remark2096 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2097 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2094, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2095 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark2096 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2097, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CoursesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insertPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detailPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CoursesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByProvider\n'
20130515 'Lino.courses.CourseOffersByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2079 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title2080 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content2081 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByProvider/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var description2082 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2082.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2079, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2080 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2081 }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2082, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByContent\n'
20130515 'Lino.courses.CourseOffersByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3680 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3681 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var provider3682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByContent/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3683 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3683.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3680, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3681 }, { "colIndex": 2, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3682, "dataIndex": "provider" }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3683, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByPerson\n'
20130515 'Lino.courses.CourseRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "content" }, \'contentHidden\', { "name": "offer" }, \'offerHidden\', { "name": "course" }, \'courseHidden\', { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1328 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var content1329 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var offer1330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var course1331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var urgent1332 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state1333 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var date_ended1334 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark1335 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1336 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1330.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1329.on('change',Lino.chooser_handler(offer1330,'content'));\n"
20130515 '      Lino.courses.CourseRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(11), "editor": date_submitted1328 }, { "colIndex": 1, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "content", "editor": content1329 }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer1330, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course1331 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state1333 }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended1334, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.text_renderer, "editor": remark1335, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1336, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByContent\n'
20130515 'Lino.courses.CourseRequestsByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "course" }, \'courseHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3685 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3687 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var date_submitted3688 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3689 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3690 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var course3691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var remark3692 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3693 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      offer3687.setContextValue('mk',bp['mk']);\n"
20130515 "      offer3687.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3685, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3686, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3687, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3688 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3690 }, { "colIndex": 6, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course3691 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3692, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3693, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.CourseRequestsByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.RequestsByCourse\n'
20130515 'Lino.courses.RequestsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/RequestsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "name": "content" }, \'contentHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3695 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var content3698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var date_submitted3699 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3700 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3701 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var remark3702 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3703 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer3697.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content3698.on('change',Lino.chooser_handler(offer3697,'content'));\n"
20130515 '      Lino.courses.RequestsByCourse.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3695, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3696, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3697, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3698 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3699 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3701 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3702, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3703, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.RequestsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.ParticipantsByCourse\n'
20130515 'Lino.courses.ParticipantsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/ParticipantsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2109 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/ParticipantsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2110 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended2111 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var workflow_buttons_disp2112 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2109, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2110, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended2111, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false } ];\n'
20130515 '    Lino.courses.ParticipantsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Participants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Participants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CandidatesByCourse\n'
20130515 'Lino.courses.CandidatesByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CandidatesByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "content" }, \'contentHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2115 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2116 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_submitted2117 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp2118 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content2119 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2115, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2116, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2117 }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 4, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2119 } ];\n'
20130515 '    Lino.courses.CandidatesByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Candidats",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Candidats",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.CompetencesByUser\n'
20130515 'Lino.newcomers.CompetencesByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/CompetencesByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno147 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty148 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/CompetencesByUser/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight149 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id150 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno147 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty148 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight149 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id150, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.CompetencesByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.CompetencesByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.CompetencesByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.CompetencesByUser.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.CompetencesByUser.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.MyCompetences\n'
20130515 'Lino.newcomers.MyCompetences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/MyCompetences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Mes Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno3705 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty3706 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/MyCompetences/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight3707 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id3708 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno3705 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3706 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight3707 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3708, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.MyCompetences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.MyCompetences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.MyCompetences.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.MyCompetences.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.MyCompetences.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.ClientsByFaculty\n'
20130515 'Lino.newcomers.ClientsByFaculty.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/ClientsByFaculty",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "broker" }, \'brokerHidden\', { "name": "address_column" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "nationality" }, \'nationalityHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 92,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp3710 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker3711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var address_column_disp3712 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3713 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3714 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3717 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3718 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3719 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3720 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr13721 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3722 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3723 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3724 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3725 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23726 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3727 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email3728 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3729 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3730 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3731 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3732 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3733 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3734 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3735 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13736 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23737 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3738 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3739 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3740 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3741 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23743 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3744 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3745 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3746 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3747 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3749 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3750 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3751 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3752 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var nationality3754 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/nationality", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var card_number3755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3756 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3757 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3758 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3759 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3760 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3761 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3762 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3763 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3764 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3765 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3766 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3767 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3768 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3769 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3770 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3771 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3772 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3773 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3774 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3776 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3777 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3778 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3779 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3780 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3781 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3717.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3717.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3718.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3716.on('change',Lino.chooser_handler(city3717,'country'));\n"
20130515 "      region3718.on('change',Lino.chooser_handler(city3717,'region'));\n"
20130515 "      country3716.on('change',Lino.chooser_handler(region3718,'country'));\n"
20130515 '      Lino.newcomers.ClientsByFaculty.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3711 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3713, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3716, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3717 }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3718 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3719 }, { "colIndex": 10, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3720 }, { "colIndex": 11, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13721 }, { "colIndex": 12, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3722 }, { "colIndex": 13, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3723 }, { "colIndex": 14, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3724 }, { "colIndex": 15, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3725 }, { "colIndex": 16, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23726 }, { "colIndex": 17, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3727 }, { "colIndex": 18, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3728 }, { "colIndex": 19, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3729 }, { "colIndex": 20, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3730 }, { "colIndex": 21, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3731 }, { "colIndex": 22, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3732 }, { "colIndex": 23, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3733, "dataIndex": "remarks" }, { "colIndex": 24, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 25, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3735 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13736 }, { "colIndex": 27, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23737 }, { "colIndex": 28, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3738 }, { "colIndex": 29, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3739 }, { "colIndex": 30, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3740 }, { "colIndex": 31, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3741 }, { "colIndex": 32, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3742 }, { "colIndex": 33, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23743, "dataIndex": "remarks2" }, { "colIndex": 34, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3744 }, { "colIndex": 35, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 36, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 37, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3747 }, { "colIndex": 38, "sortable": true, "header": "Lieu de naissance", "editable": true,'
20130515 ' "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3748 }, { "colIndex": 39, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3749, "dataIndex": "birth_country" }, { "colIndex": 40, "sortable": true, "header": "Etat civil", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3750 }, { "colIndex": 41, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3751 }, { "colIndex": 42, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3752, "dataIndex": "health_insurance" }, { "colIndex": 43, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3753, "dataIndex": "pharmacy" }, { "colIndex": 44, "sortable": true, "header": "Nationalit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'nationalityHidden\',\'Lino.countries.Countries.detail\'), "editor": nationality3754, "dataIndex": "nationality" }, { "colIndex": 45, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3755 }, { "colIndex": 46, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3756, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 47, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3757, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 48, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3758 }, { "colIndex": 49, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3759 }, { "colIndex": 50, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3760 }, { "colIndex": 51, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3761 }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3762, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 53, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3763, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 56, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3766, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 57, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3767 }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 60, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 61, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 62, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 63, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 64, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3774, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 65, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3775 }, { "colIndex": 66, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3776, "dataIndex": "obstacles" }, { "colIndex": 67, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3777, "dataIndex": "skills" }, { "colIndex": 68, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3778 }, { "colIndex": 69, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3779 }, { "colIndex": 70, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3780 }, { "colIndex": 71, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3781 } ];\n'
20130515 '    Lino.newcomers.ClientsByFaculty.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyIdentifyPersonRequests\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3783 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyIdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3785 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3786 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3787 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3788 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3789 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3790 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3791 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3792 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3793 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3794 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3795 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3797 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3798 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3801 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3783, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3784, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3793 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3794 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3795 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3796 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3797 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3798 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3799 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3800 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3801 }) ];\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyRequestsByPerson\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "type": "int", "name": "id" }, { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3804 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3805 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var id3806 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var environment3807 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3808 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3809 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3810 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3811 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3812 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3814 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3815 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3818 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3819 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3820 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3821 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3803 }, { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 2, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3806, "width": Lino.chars2width(6), "dataIndex": "id" }), { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3813 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3814 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3815 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3816 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3817 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3818 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3819 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3820 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3821 }) ];\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequestsByPerson\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3823 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3825 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3826 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3827 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3828 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3829 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3830 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3831 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3832 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3833 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3834 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3835 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3836 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3839 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3840 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3841 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3842 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3843 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3844 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3840.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3839.on('change',Lino.chooser_handler(purpose3840,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3823, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3824 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3833 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3834 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3835 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3836 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3837 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3838 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3840 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3841, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3842, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3843 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3844 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyManageAccessRequests\n'
20130515 'Lino.cbss.MyManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3846 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3847 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3848 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3849 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3850 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3851 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3852 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3853 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3854 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3855 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3856 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3857 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3858 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3859 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3860 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3862 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3863 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3864 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3865 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3866 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3867 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3863.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3862.on('change',Lino.chooser_handler(purpose3863,'sector'));\n"
20130515 '      Lino.cbss.MyManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3846, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3847, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3856 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3857 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3858 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3859 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3860 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3861 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3863 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3864, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3865, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3866 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3867 } ];\n'
20130515 '    Lino.cbss.MyManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequestsByPerson\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3869 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3870 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3872 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3873 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3874 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3875 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3876 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3877 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3878 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3869, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3870 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3871, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3872 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3873 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyRetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3880 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3883 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3884 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3885 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3886 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3887 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3888 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3889 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3880, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3881 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3882, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3883 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3884 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.UploadsByController\n'
20130515 'Lino.uploads.UploadsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/UploadsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "type" }, \'typeHidden\', { "name": "description" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3891 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var type3892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var description3893 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3895 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3896 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3897 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3898 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3899 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3900 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var valid_until3901 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3897.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3896.on('change',Lino.chooser_handler(owner_id3897,'owner_type'));\n"
20130515 '      Lino.uploads.UploadsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3891 }, { "colIndex": 1, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3892 }, { "colIndex": 2, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3893 }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3894 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3895, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3896 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3897 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3901, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.UploadsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.UploadsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByController\n'
20130515 'Lino.postings.PostingsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date708 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp711 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id712 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type713 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id714 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user715 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id714.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type713.on('change',Lino.chooser_handler(owner_id714,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date708, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner709, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state710 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id712, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type713 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id714 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user715 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project716, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByController.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByController",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByController\n'
20130515 'Lino.cal.TasksByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date719 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary720 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id722 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date719, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary720 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id722, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.TasksByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByController\n'
20130515 'Lino.outbox.MailsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Outgoing Mails",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent662 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox663 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject664 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project669 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date670 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var body671 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox663.refresh();\n'
20130515 "      owner_id667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body671.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type666.on('change',Lino.chooser_handler(owner_id667,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject664 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type666 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id667 }, { "colIndex": 6, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user668 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project669, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date670 }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body671, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MailsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Outgoing Mails",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Outgoing Mails",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class changes.ChangesByMaster\n'
20130515 'Lino.changes.ChangesByMaster.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/changes/ChangesByMaster",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Changes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "time" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "object" }, { "name": "diff" }, { "name": "object_type" }, \'object_typeHidden\', { "name": "object_id" }, \'object_idHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 10,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var time364 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    var user365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type366 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.lino.ChangeTypes });\n'
20130515 '    var object_disp367 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var diff368 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var object_type369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var object_id370 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_id", "method": "GET" }) }) });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      object_id370.setContextValue('object_type',record ? record.data['object_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      object_type369.on('change',Lino.chooser_handler(object_id370,'object_type'));\n"
20130515 '      Lino.changes.ChangesByMaster.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "time", "header": "time", "editable": true, "editor": time364 }, { "colIndex": 1, "sortable": true, "header": "Utilisateur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user365 }, { "colIndex": 2, "sortable": true, "header": "Change Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "type", "editor": type366 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "object", "header": "Object", "editable": false }, { "colIndex": 4, "sortable": false, "header": "Changes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": diff368, "dataIndex": "diff" }, { "colIndex": 5, "sortable": true, "header": "Object type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "object_type", "editor": object_type369 }, { "colIndex": 6, "sortable": true, "header": "object id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "object_id", "editor": object_id370 } ];\n'
20130515 '    Lino.changes.ChangesByMaster.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insertPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Changes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detailPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Changes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.changes.ChangesByMaster.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByController\n'
20130515 'Lino.cal.EventsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1477 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1478 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary1479 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1480 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1481 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1477, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1478 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1479 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1481, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.EventsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.Models\n'
20130515 'Lino.about.Models.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/Models",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Models",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "app" }, { "name": "name" }, { "name": "docstring" }, { "name": "rows" }, { "name": "detail_action" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var app_disp3903 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp3904 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp3905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows3906 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var detail_action_disp3907 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "app", "header": "app_label", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "docstring", "header": "docstring", "editable": false }, new Lino.NullNumberColumn({ "header": "Rows", "colIndex": 3, "sortable": false, "dataIndex": "rows", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "detail_action", "header": "detail_action", "editable": false } ];\n'
20130515 '    Lino.about.Models.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.detailPanel = Ext.extend(Lino.about.Models.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Models",\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/about/Models",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    Lino.about.Models.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.Models.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.about.Models.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.FieldsByModel\n'
20130515 'Lino.about.FieldsByModel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/FieldsByModel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Fields",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "verbose_name" }, { "name": "help_text_column" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_disp2434 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var verbose_name_disp2435 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var help_text_column_disp2436 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "verbose_name", "header": "verbose name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "help_text_column", "header": "help text", "editable": false } ];\n'
20130515 '    Lino.about.FieldsByModel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.FieldsByModel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.FieldsByModel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.SourceFiles\n'
20130515 'Lino.about.SourceFiles.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/SourceFiles",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Source files",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "module_name" }, { "type": "int", "name": "code_lines" }, { "type": "int", "name": "doc_lines" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var module_name3909 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var code_lines3910 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var doc_lines3911 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(5), "colIndex": 0, "sortable": false, "dataIndex": "module_name", "header": "module name", "editable": false }, new Lino.NullNumberColumn({ "header": "Code", "colIndex": 1, "sortable": false, "dataIndex": "code_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "doc", "colIndex": 2, "sortable": false, "dataIndex": "doc_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.about.SourceFiles.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.SourceFiles.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.SourceFiles.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.UsersWithClients\n'
20130515 'Lino.pcsw.UsersWithClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/UsersWithClients",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Agents et leurs clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "G1" }, { "name": "G2" }, { "name": "G4" }, { "name": "G4bis" }, { "name": "G9" }, { "name": "primary_clients" }, { "name": "active_clients" }, { "name": "row_total" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3913 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var G13914 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G23915 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G43916 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G4bis3917 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G93918 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var primary_clients3919 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var active_clients3920 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var row_total3921 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "user", "header": "Accompagnant", "editable": false }, new Lino.NullNumberColumn({ "header": "Bilan", "colIndex": 1, "sortable": false, "dataIndex": "G1", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Formation", "colIndex": 2, "sortable": false, "dataIndex": "G2", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Recherche", "colIndex": 3, "sortable": false, "dataIndex": "G4", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Travail", "colIndex": 4, "sortable": false, "dataIndex": "G4bis", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Standby", "colIndex": 5, "sortable": false, "dataIndex": "G9", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Dossiers complets", "colIndex": 6, "sortable": false, "dataIndex": "primary_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Clients actifs", "colIndex": 7, "sortable": false, "dataIndex": "active_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Total", "colIndex": 8, "sortable": false, "dataIndex": "row_total", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.pcsw.UsersWithClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.UsersWithClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.UsersWithClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class debts.SummaryTable\n'
20130515 'Lino.debts.SummaryTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/debts/SummaryTable",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "SummaryTable",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "desc" }, { "name": "amount" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 3,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var desc_disp3923 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var amount3924 = new Ext.form.NumberField({ "disabled": true, "decimalPrecision": 2, "decimalSeparator": "," });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "desc", "header": "Description", "editable": false }, new Lino.NullNumberColumn({ "width": Lino.chars2width(13), "colIndex": 1, "sortable": false, "dataIndex": "amount", "header": "Montant", "editable": false }) ];\n'
20130515 '    Lino.debts.SummaryTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.debts.SummaryTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.debts.SummaryTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonResult\n'
20130515 'Lino.cbss.IdentifyPersonResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/IdentifyPersonResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "national_id" }, { "name": "last_name" }, { "name": "first_name" }, { "name": "address" }, { "name": "birth_date" }, { "name": "birth_location" }, { "name": "civil_state" }, { "name": "gender" }, \'genderHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 10,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var national_id_disp2193 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var last_name_disp2194 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var first_name_disp2195 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_disp2196 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_date_disp2197 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_location_disp2198 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state_disp2199 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var gender2200 = new Lino.ChoicesFieldElement({ "disabled": true, "store": [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ] });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "national_id", "header": "NISS", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 1, "sortable": false, "dataIndex": "last_name", "header": "Nom de famille", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 2, "sortable": false, "dataIndex": "first_name", "header": "Pr\\u00e9nom", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 4, "sortable": false, "dataIndex": "birth_date", "header": "date de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "birth_location", "header": "Lieu de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 6, "sortable": false, "dataIndex": "civil_state", "header": "Etat civil", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 7, "sortable": false, "dataIndex": "gender", "header": "Sexe", "editable": false } ];\n'
20130515 '    Lino.cbss.IdentifyPersonResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsResult\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "group" }, { "name": "type" }, { "type": "date", "name": "since", "dateFormat": "d.m.Y" }, { "name": "info" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var group_disp2340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var type_disp2341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var since2342 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var info_disp2343 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(19), "colIndex": 0, "sortable": false, "dataIndex": "group", "header": "Groupe", "editable": false }, { "width": Lino.chars2width(6), "colIndex": 1, "sortable": false, "dataIndex": "type", "header": "TI", "editable": false }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Depuis", "dataIndex": "since", "width": Lino.chars2width(15) }, { "width": Lino.chars2width(51), "colIndex": 3, "sortable": false, "dataIndex": "info", "header": "Information", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.CalendarPanel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  return Lino.calendar_app.get_main_panel();\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestStates\n'
20130515 'Lino.courses.CourseRequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/courses/CourseRequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3926 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3927 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3928 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.courses.CourseRequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestStates.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingStates\n'
20130515 'Lino.postings.PostingStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/postings/PostingStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3930 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3931 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3932 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.postings.PostingStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.DurationUnits\n'
20130515 'Lino.cal.DurationUnits.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/DurationUnits",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DurationUnits",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3934 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3935 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3936 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.DurationUnits.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.DurationUnits.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.DurationUnits.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.Weekdays\n'
20130515 'Lino.cal.Weekdays.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/Weekdays",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Weekdays",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3938 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3939 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3940 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.Weekdays.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.Weekdays.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.Weekdays.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountTypes\n'
20130515 'Lino.accounts.AccountTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/accounts/AccountTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccountTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3942 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3943 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3944 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.accounts.AccountTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.CefLevel\n'
20130515 'Lino.cv.CefLevel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cv/CefLevel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CEF levels",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3946 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3947 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3948 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cv.CefLevel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.CefLevel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.CefLevel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.HowWell\n'
20130515 'Lino.properties.HowWell.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/HowWell",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "HowWell",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3950 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3951 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3952 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.HowWell.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.HowWell.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.HowWell.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidatureStates\n'
20130515 'Lino.jobs.CandidatureStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/jobs/CandidatureStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Candidature states",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3954 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3955 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3956 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.jobs.CandidatureStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidatureStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidatureStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientType\n'
20130515 'Lino.outbox.RecipientType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/outbox/RecipientType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RecipientType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3958 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3959 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3960 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.outbox.RecipientType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CityTypes\n'
20130515 'Lino.countries.CityTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/countries/CityTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CityTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3962 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3963 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3964 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.countries.CityTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CityTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CityTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.DoYouLike\n'
20130515 'Lino.properties.DoYouLike.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/DoYouLike",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DoYouLike",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3966 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3967 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3968 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.DoYouLike.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.DoYouLike.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.DoYouLike.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestLanguages\n'
20130515 'Lino.cbss.RequestLanguages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestLanguages",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RequestLanguages",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3970 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3971 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3972 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestLanguages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestLanguages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestLanguages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAction\n'
20130515 'Lino.cbss.ManageAction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/ManageAction",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ManageAction",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3974 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3975 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3976 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.ManageAction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.RefusalReasons\n'
20130515 'Lino.pcsw.RefusalReasons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/RefusalReasons",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RefusalReasons",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3978 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3979 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3980 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.RefusalReasons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.RefusalReasons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.RefusalReasons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestStates\n'
20130515 'Lino.cbss.RequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3982 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3983 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3984 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.ChangeTypes\n'
20130515 'Lino.lino.ChangeTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/ChangeTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Change Types",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3986 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3987 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3988 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.ChangeTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.ChangeTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.ChangeTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.AccessClasses\n'
20130515 'Lino.cal.AccessClasses.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/AccessClasses",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccessClasses",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3990 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3991 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3992 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.AccessClasses.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.AccessClasses.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.AccessClasses.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.QueryRegister\n'
20130515 'Lino.cbss.QueryRegister.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/QueryRegister",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "QueryRegister",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3994 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3995 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3996 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.QueryRegister.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.QueryRegister.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.QueryRegister.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.Genders\n'
20130515 'Lino.lino.Genders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/Genders",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "GenNo Lino in response
Retry userdocs/gen/screenshots/de/cal.CalendarPanel.jpg (3 attempts left)
ders",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3998 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3999 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4000 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.Genders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Genders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.Genders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ResidenceType\n'
20130515 'Lino.pcsw.ResidenceType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/ResidenceType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ResidenceType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value4002 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name4003 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4004 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.ResidenceType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ResidenceType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ResidenceType.GridPanel(p);\n'
20130515 '});\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:20 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "count": 5, "rows": [ { "babel_name": "Rencontres internes avec client", "description": "", "color": 20, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 1 }, { "babel_name": "Rencontres client externes", "description": "", "color": 1, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 2 }, { "babel_name": "R\\u00e9unions internes", "description": "", "color": 4, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 3 }, { "babel_name": "R\\u00e9unions externes", "description": "", "color": 8, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 4 }, { "babel_name": "Coordinations en \\u00e9quipe", "description": "", "color": 12, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 5 } ] }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:20 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "count": 8, "rows": [ { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Propos\\u00e9) Diner avec SAFFRE Luc (112)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-14T08:30:00", "end_dt": "2013-05-14T09:30:00", "id": 66, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Draft) Souper avec AUSDEMWALD Alfons (116)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-15T09:40:00", "end_dt": "2013-05-15T10:55:00", "id": 67, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Communiqu\\u00e9) Petit-d\\u00e9jeuner avec BASTIAENSEN Laurent (117)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-16T10:20:00", "end_dt": "2013-05-16T11:50:00", "id": 68, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Planif\\u00e9) Rencontre avec COLLARD Charlotte (118)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 4, "calendar": "R\\u00e9unions externes", "start_dt": "2013-05-16T11:10:00", "end_dt": "2013-05-16T12:55:00", "id": 69, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(a eu lieu) Consultation avec CHANTRAINE Marc (120)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 5, "calendar": "Coordinations en \\u00e9quipe", "start_dt": "2013-05-17T13:30:00", "end_dt": "2013-05-17T15:30:00", "id": 70, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(D\\u00e9plac\\u00e9) S\\u00e9minaire avec DERICUM Daniel (121)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-18T08:30:00", "end_dt": "2013-05-18T11:00:00", "id": 71, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Annul\\u00e9) Evaluation avec DEMEULENAERE Doroth\\u00e9e (122)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-18T09:40:00", "end_dt": "2013-05-18T12:40:00", "id": 72, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Absent) Premi\\u00e8re rencontre avec DOBBELSTEIN-DEMEULENAERE Doroth\\u00e9e (123)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-19T10:20:00", "end_dt": "2013-05-19T11:20:00", "id": 73, "reminder": false } ] }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:20 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "count": 8, "rows": [ { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Propos\\u00e9) Diner avec SAFFRE Luc (112)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-14T08:30:00", "end_dt": "2013-05-14T09:30:00", "id": 66, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Draft) Souper avec AUSDEMWALD Alfons (116)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-15T09:40:00", "end_dt": "2013-05-15T10:55:00", "id": 67, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Communiqu\\u00e9) Petit-d\\u00e9jeuner avec BASTIAENSEN Laurent (117)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-16T10:20:00", "end_dt": "2013-05-16T11:50:00", "id": 68, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Planif\\u00e9) Rencontre avec COLLARD Charlotte (118)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 4, "calendar": "R\\u00e9unions externes", "start_dt": "2013-05-16T11:10:00", "end_dt": "2013-05-16T12:55:00", "id": 69, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(a eu lieu) Consultation avec CHANTRAINE Marc (120)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 5, "calendar": "Coordinations en \\u00e9quipe", "start_dt": "2013-05-17T13:30:00", "end_dtLino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen57" style="display: none; "></div><div id="ext-comp-1099" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-tl"><div class="x-window-tr"><div class="x-window-tc"><div class="x-window-header x-unselectable" id="ext-gen49" style="-webkit-user-select: none; "><div class="x-tool x-tool-close" id="ext-gen55">&nbsp;</div><div class="x-tool x-tool-pin" id="ext-gen54">&nbsp;</div><span class="x-window-header-text" id="ext-gen58">Calendrier</span></div></div></div></div><div class="x-window-bwrap" id="ext-gen50"><div class="x-window-ml"><div class="x-window-mr"><div class="x-window-mc" id="ext-gen53"><div class="x-window-body" id="ext-gen51" style="width: 1018px; height: 679px; "><div id="ext-comp-1082" class=" x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen60"><div class="x-panel-body x-panel-body-noheader" id="ext-gen61" style="width: 1012px; height: 677px; "><div id="app-center" class=" x-panel" style="width: 1012px; "><div class="x-panel-header x-unselectable app-center-header" id="ext-gen63" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen66">Mai 13 - 19, 2013</span></div><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-border-layout-ct" id="ext-gen65" style="width: 1006px; height: 650px; "><div id="app-west" class=" x-panel x-panel-noborder x-border-panel" style="width: 176px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder" id="ext-gen69" style="width: 172px; height: 650px; "><div class="x-date-picker x-unselectable ext-cal-nav-picker" id="ext-gen70" style="-webkit-user-select: none; width: 175px; "><table cellspacing="0" id="ext-gen71" style="width: 175px; "><tbody><tr><td class="x-date-left"><a href="#" title="Mois précédent (CTRL+Flèche gauche)" id="ext-gen72" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td><td class="x-date-middle" align="center" id="ext-gen75"><table id="ext-comp-1100" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class=" x-btn-arrow" unselectable="on" id="ext-gen77"><button type="button" id="ext-gen76" class=" x-btn-text">Mai 2013</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-date-right"><a href="#" title="Mois suivant (CTRL+Flèche droite)" id="ext-gen73" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td></tr><tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr><th><span>L</span></th><th><span>M</span></th><th><span>M</span></th><th><span>J</span></th><th><span>V</span></th><th><span>S</span></th><th><span>D</span></th></tr></thead><tbody><tr><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>10</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>11</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>12</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>13</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>14</span></em></a></td><td class="x-date-active x-date-today x-date-selected" title="Aujourd'hui"><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>15</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>16</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>17</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>18</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>19</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>20</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>21</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>22</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>23</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>24</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>25</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>26</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>27</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>28</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>31</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td></tr><tr><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td></tr></tbody></table></td></tr><tr><td colspan="3" class="x-date-bottom" align="center" id="ext-gen78"><table id="ext-comp-1101" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen79" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table><div class="x-date-mp" id="ext-gen74"></div></div><div id="ext-comp-1083" class=" x-panel"><div class="x-panel-bwrap" id="ext-gen80"><div class="x-panel-body x-panel-body-noheader" id="ext-gen81"><table id="ext-comp-1081" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen89" class=" x-btn-text">Team view</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></div></div><div id="ext-comp-1084" class=" x-panel x-calendar-list x-panel-noborder" style="width: 175px; "><div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen83" style="-webkit-user-select: none; "><div class="x-tool x-tool-toggle" id="ext-gen86">&nbsp;</div><span class="x-panel-header-text" id="ext-gen87">Agendas</span></div><div class="x-panel-bwrap" id="ext-gen84"><div class="x-panel-body x-panel-body-noborder" id="ext-gen85" style="width: 171px; height: auto; "><ul class="x-unselectable"><li id="ext-comp-1084__1" class="ext-cal-evr x-cal-20-ad ">Rencontres internes avec client<em>&nbsp;</em></li><li id="ext-comp-1084__2" class="ext-cal-evr x-cal-1-ad ">Rencontres client externes<em>&nbsp;</em></li><li id="ext-comp-1084__3" class="ext-cal-evr x-cal-4-ad ">Réunions internes<em>&nbsp;</em></li><li id="ext-comp-1084__4" class="ext-cal-evr x-cal-8-ad ">Réunions externes<em>&nbsp;</em></li><li id="ext-comp-1084__5" class="ext-cal-evr x-cal-12-ad ">Coordinations en équipe<em>&nbsp;</em></li></ul></div></div></div></div></div></div><div id="app-calendar" class=" x-panel x-cal-panel x-panel-noborder x-border-panel" style="width: 834px; left: 176px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen90"><div class="x-panel-tbar x-panel-tbar-noheader x-panel-tbar-noborder" id="ext-gen91" style="width: 834px; "><div id="ext-comp-1085" class="x-toolbar x-small-editor ext-cal-toolbar x-toolbar-layout-ct" style="width: 828px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen98"><table id="app-calendar-tb-today" cellspacing="0" class="x-btn  x-btn-noicon x-item-disabled" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen99" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen100"><table id="app-calendar-tb-prev" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen101" class=" x-btn-text x-tbar-page-prev">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen102"><table id="app-calendar-tb-next" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen103" class=" x-btn-text x-tbar-page-next">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen104"><div class="xtb-text" id="ext-comp-1086">Aller au :</div></td><td class="x-toolbar-cell" id="ext-gen105"><div class="x-form-field-wrap x-form-field-trigger-wrap" id="ext-gen106" style="width: 94px; "><input type="text" size="10" autocomplete="off" id="app-calendar-tb-jump-dt" name="app-calendar-tb-jump-dt" class="x-form-text x-form-field" style="width: 69px; "><img src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif" alt="" class="x-form-trigger x-form-date-trigger" id="ext-gen107"></div></td><td class="x-toolbar-cell" id="ext-gen108"><table id="app-calendar-tb-jump" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen109" class=" x-btn-text">Ok</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen110"><table id="app-calendar-tb-day" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen111" class=" x-btn-text">Jour</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen112"><table id="app-calendar-tb-week" cellspacing="0" class="x-btn  x-btn-noicon x-btn-pressed" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen113" class=" x-btn-text">Semaine</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen114"><table id="app-calendar-tb-multiweek" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen115" class=" x-btn-text">2 semaines</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen116"><table id="app-calendar-tb-month" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen117" class=" x-btn-text">Mois</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-cal-body" id="ext-gen92" style="width: 830px; height: 622px; "><div id="app-calendar-week" class=" ext-cal-dayview ext-cal-ct" style="width: 830px; height: 622px; "><div id="app-calendar-week-hd" class=" ext-cal-day-header ext-cal-monthview ext-cal-ct x-unselectable" style="-webkit-user-select: none; height: 52px; "><div class="ext-cal-hd-ct"><table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0"><tbody><tr><td class="ext-cal-gutter"></td><td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner" id="ext-gen144" style="height: 50px; "><div id="app-calendar-week-hd-wk-0" class="ext-cal-wk-ct" style="top:0%; height:100%;"><table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0" id="ext-gen145" style="height: 49px; "><tbody><tr><td id="app-calendar-week-hd-day-20130513" class="ext-cal-day  ext-cal-day-first">&nbsp;</td><td id="app-calendar-week-hd-day-20130514" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130515" class="ext-cal-day  ext-cal-day-today">&nbsp;</td><td id="app-calendar-week-hd-day-20130516" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130517" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130518" class="ext-cal-day  ext-cal-day-we">&nbsp;</td><td id="app-calendar-week-hd-day-20130519" class="ext-cal-day  ext-cal-day-we">&nbsp;</td></tr></tbody></table><table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0" id="ext-gen143"><tbody><tr><td id="app-calendar-week-hd-ev-day-20130513" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>13 Mai 2013</div></td><td id="app-calendar-week-hd-ev-day-20130514" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Mar 14</div></td><td id="app-calendar-week-hd-ev-day-20130515" class="ext-cal-dtitle  ext-cal-dtitle-today ext-cal-dtitle-first"><div>Aujourd'hui <span id="app-calendar-week-hd-clock" class="ext-cal-dtitle-time">11:45</span></div></td><td id="app-calendar-week-hd-ev-day-20130516" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Jeu 16</div></td><td id="app-calendar-week-hd-ev-day-20130517" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Ven 17</div></td><td id="app-calendar-week-hd-ev-day-20130518" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Sam 18</div></td><td id="app-calendar-week-hd-ev-day-20130519" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Dim 19</div></td></tr><tr id="ext-gen142"><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130513" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130514" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130515" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130516" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130517" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130518" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130519" rowspan="2">&nbsp;</td></tr></tbody></table></div></div></td><td class="ext-cal-gutter-rt"></td></tr></tbody></table></div></div><div id="app-calendar-week-bd" class=" ext-cal-body-ct x-unselectable" style="-webkit-user-select: none; height: 569px; "><table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:420px;"><tbody><tr height="1"><td class="ext-cal-gutter"></td><td colspan="7"><div class="ext-cal-bg-rows"><div class="ext-cal-bg-rows-inner"><div class="ext-cal-bg-row ext-row-1" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-2" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-3" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-4" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-5" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-6" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-7" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-8" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-9" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-10" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div></div></div></td></tr><tr><td class="ext-cal-day-times"><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">8:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">9:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">10:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">11:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">12:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">13:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">14:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">15:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">16:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">17:00</div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130513" class="ext-cal-day-col-gutter" style="height:420px;"></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130514" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-66 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 22px; height: 40px;"><div class="ext-evt-bd">8:30 (Proposé) Diner avec SAFFRE Luc (112)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130515" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-67 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 71px; height: 50.5px;"><div class="ext-evt-bd">9:40 (Draft) Souper avec AUSDEMWALD Alfons (116)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130516" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-68 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 99px; height: 60.99999999999999px;"><div class="ext-evt-bd">10:20 (Communiqué) Petit-déjeuner avec BASTIAENSEN Laurent (117)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-69 x-cal-8 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 134px; height: 71.5px;"><div class="ext-evt-bd">11:10 (Planifé) Rencontre avec COLLARD Charlotte (118)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130517" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-70 x-cal-12 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 231.99999999999997px; height: 82px;"><div class="ext-evt-bd">13:30 (a eu lieu) Consultation avec CHANTRAINE Marc (120)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130518" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-71 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 22px; height: 103px;"><div class="ext-evt-bd">8:30 (Déplacé) Séminaire avec DERICUM Daniel (121)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-72 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 71px; height: 123.99999999999999px;"><div class="ext-evt-bd">9:40 (Annulé) Evaluation avec DEMEULENAERE Dorothée (122)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130519" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-73 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 99px; height: 40px;"><div class="ext-evt-bd">10:20 (Absent) Première rencontre avec DOBBELSTEIN-DEMEULENAERE Dorothée (123)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-window-bl x-panel-nofooter" id="ext-gen52"><div class="x-window-br"><div class="x-window-bc"></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen56">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen118" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen119" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen120" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen121" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen122" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen123" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen124" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen125" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div id="ext-gen95" class="ext-dd-drag-proxy x-dd-drag-proxy x-dd-drop-nodrop" style="position: absolute; z-index: 15000; visibility: hidden; left: -10000px; top: -10000px; "><div class="x-dd-drop-icon"></div><div class="ext-dd-ghost-ct"><div class="x-dd-drag-ghost" id="ext-gen96"></div><div class="ext-dd-msg" id="ext-gen97"></div></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1099-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/de/cal.CalendarPanel.jpg (2 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen57" style="display: none; "></div><div id="ext-comp-1099" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-tl"><div class="x-window-tr"><div class="x-window-tc"><div class="x-window-header x-unselectable" id="ext-gen49" style="-webkit-user-select: none; "><div class="x-tool x-tool-close" id="ext-gen55">&nbsp;</div><div class="x-tool x-tool-pin" id="ext-gen54">&nbsp;</div><span class="x-window-header-text" id="ext-gen58">Calendrier</span></div></div></div></div><div class="x-window-bwrap" id="ext-gen50"><div class="x-window-ml"><div class="x-window-mr"><div class="x-window-mc" id="ext-gen53"><div class="x-window-body" id="ext-gen51" style="width: 1018px; height: 679px; "><div id="ext-comp-1082" class=" x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen60"><div class="x-panel-body x-panel-body-noheader" id="ext-gen61" style="width: 1012px; height: 677px; "><div id="app-center" class=" x-panel" style="width: 1012px; "><div class="x-panel-header x-unselectable app-center-header" id="ext-gen63" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen66">Mai 13 - 19, 2013</span></div><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-border-layout-ct" id="ext-gen65" style="width: 1006px; height: 650px; "><div id="app-west" class=" x-panel x-panel-noborder x-border-panel" style="width: 176px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder" id="ext-gen69" style="width: 172px; height: 650px; "><div class="x-date-picker x-unselectable ext-cal-nav-picker" id="ext-gen70" style="-webkit-user-select: none; width: 175px; "><table cellspacing="0" id="ext-gen71" style="width: 175px; "><tbody><tr><td class="x-date-left"><a href="#" title="Mois précédent (CTRL+Flèche gauche)" id="ext-gen72" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td><td class="x-date-middle" align="center" id="ext-gen75"><table id="ext-comp-1100" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class=" x-btn-arrow" unselectable="on" id="ext-gen77"><button type="button" id="ext-gen76" class=" x-btn-text">Mai 2013</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-date-right"><a href="#" title="Mois suivant (CTRL+Flèche droite)" id="ext-gen73" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td></tr><tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr><th><span>L</span></th><th><span>M</span></th><th><span>M</span></th><th><span>J</span></th><th><span>V</span></th><th><span>S</span></th><th><span>D</span></th></tr></thead><tbody><tr><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>10</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>11</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>12</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>13</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>14</span></em></a></td><td class="x-date-active x-date-today x-date-selected" title="Aujourd'hui"><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>15</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>16</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>17</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>18</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>19</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>20</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>21</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>22</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>23</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>24</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>25</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>26</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>27</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>28</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>31</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td></tr><tr><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td></tr></tbody></table></td></tr><tr><td colspan="3" class="x-date-bottom" align="center" id="ext-gen78"><table id="ext-comp-1101" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen79" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table><div class="x-date-mp" id="ext-gen74"></div></div><div id="ext-comp-1083" class=" x-panel"><div class="x-panel-bwrap" id="ext-gen80"><div class="x-panel-body x-panel-body-noheader" id="ext-gen81"><table id="ext-comp-1081" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen89" class=" x-btn-text">Team view</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></div></div><div id="ext-comp-1084" class=" x-panel x-calendar-list x-panel-noborder" style="width: 175px; "><div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen83" style="-webkit-user-select: none; "><div class="x-tool x-tool-toggle" id="ext-gen86">&nbsp;</div><span class="x-panel-header-text" id="ext-gen87">Agendas</span></div><div class="x-panel-bwrap" id="ext-gen84"><div class="x-panel-body x-panel-body-noborder" id="ext-gen85" style="width: 171px; height: auto; "><ul class="x-unselectable"><li id="ext-comp-1084__1" class="ext-cal-evr x-cal-20-ad ">Rencontres internes avec client<em>&nbsp;</em></li><li id="ext-comp-1084__2" class="ext-cal-evr x-cal-1-ad ">Rencontres client externes<em>&nbsp;</em></li><li id="ext-comp-1084__3" class="ext-cal-evr x-cal-4-ad ">Réunions internes<em>&nbsp;</em></li><li id="ext-comp-1084__4" class="ext-cal-evr x-cal-8-ad ">Réunions externes<em>&nbsp;</em></li><li id="ext-comp-1084__5" class="ext-cal-evr x-cal-12-ad ">Coordinations en équipe<em>&nbsp;</em></li></ul></div></div></div></div></div></div><div id="app-calendar" class=" x-panel x-cal-panel x-panel-noborder x-border-panel" style="width: 834px; left: 176px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen90"><div class="x-panel-tbar x-panel-tbar-noheader x-panel-tbar-noborder" id="ext-gen91" style="width: 834px; "><div id="ext-comp-1085" class="x-toolbar x-small-editor ext-cal-toolbar x-toolbar-layout-ct" style="width: 828px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen98"><table id="app-calendar-tb-today" cellspacing="0" class="x-btn  x-btn-noicon x-item-disabled" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen99" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen100"><table id="app-calendar-tb-prev" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen101" class=" x-btn-text x-tbar-page-prev">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen102"><table id="app-calendar-tb-next" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen103" class=" x-btn-text x-tbar-page-next">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen104"><div class="xtb-text" id="ext-comp-1086">Aller au :</div></td><td class="x-toolbar-cell" id="ext-gen105"><div class="x-form-field-wrap x-form-field-trigger-wrap" id="ext-gen106" style="width: 94px; "><input type="text" size="10" autocomplete="off" id="app-calendar-tb-jump-dt" name="app-calendar-tb-jump-dt" class="x-form-text x-form-field" style="width: 69px; "><img src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif" alt="" class="x-form-trigger x-form-date-trigger" id="ext-gen107"></div></td><td class="x-toolbar-cell" id="ext-gen108"><table id="app-calendar-tb-jump" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen109" class=" x-btn-text">Ok</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen110"><table id="app-calendar-tb-day" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen111" class=" x-btn-text">Jour</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen112"><table id="app-calendar-tb-week" cellspacing="0" class="x-btn  x-btn-noicon x-btn-pressed" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen113" class=" x-btn-text">Semaine</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen114"><table id="app-calendar-tb-multiweek" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen115" class=" x-btn-text">2 semaines</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen116"><table id="app-calendar-tb-month" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen117" class=" x-btn-text">Mois</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-cal-body" id="ext-gen92" style="width: 830px; height: 622px; "><div id="app-calendar-week" class=" ext-cal-dayview ext-cal-ct" style="width: 830px; height: 622px; "><div id="app-calendar-week-hd" class=" ext-cal-day-header ext-cal-monthview ext-cal-ct x-unselectable" style="-webkit-user-select: none; height: 52px; "><div class="ext-cal-hd-ct"><table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0"><tbody><tr><td class="ext-cal-gutter"></td><td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner" id="ext-gen144" style="height: 50px; "><div id="app-calendar-week-hd-wk-0" class="ext-cal-wk-ct" style="top:0%; height:100%;"><table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0" id="ext-gen145" style="height: 49px; "><tbody><tr><td id="app-calendar-week-hd-day-20130513" class="ext-cal-day  ext-cal-day-first">&nbsp;</td><td id="app-calendar-week-hd-day-20130514" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130515" class="ext-cal-day  ext-cal-day-today">&nbsp;</td><td id="app-calendar-week-hd-day-20130516" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130517" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130518" class="ext-cal-day  ext-cal-day-we">&nbsp;</td><td id="app-calendar-week-hd-day-20130519" class="ext-cal-day  ext-cal-day-we">&nbsp;</td></tr></tbody></table><table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0" id="ext-gen143"><tbody><tr><td id="app-calendar-week-hd-ev-day-20130513" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>13 Mai 2013</div></td><td id="app-calendar-week-hd-ev-day-20130514" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Mar 14</div></td><td id="app-calendar-week-hd-ev-day-20130515" class="ext-cal-dtitle  ext-cal-dtitle-today ext-cal-dtitle-first"><div>Aujourd'hui <span id="app-calendar-week-hd-clock" class="ext-cal-dtitle-time">11:45</span></div></td><td id="app-calendar-week-hd-ev-day-20130516" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Jeu 16</div></td><td id="app-calendar-week-hd-ev-day-20130517" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Ven 17</div></td><td id="app-calendar-week-hd-ev-day-20130518" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Sam 18</div></td><td id="app-calendar-week-hd-ev-day-20130519" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Dim 19</div></td></tr><tr id="ext-gen142"><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130513" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130514" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130515" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130516" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130517" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130518" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130519" rowspan="2">&nbsp;</td></tr></tbody></table></div></div></td><td class="ext-cal-gutter-rt"></td></tr></tbody></table></div></div><div id="app-calendar-week-bd" class=" ext-cal-body-ct x-unselectable" style="-webkit-user-select: none; height: 569px; "><table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:420px;"><tbody><tr height="1"><td class="ext-cal-gutter"></td><td colspan="7"><div class="ext-cal-bg-rows"><div class="ext-cal-bg-rows-inner"><div class="ext-cal-bg-row ext-row-1" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-2" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-3" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-4" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-5" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-6" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-7" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-8" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-9" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-10" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div></div></div></td></tr><tr><td class="ext-cal-day-times"><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">8:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">9:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">10:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">11:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">12:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">13:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">14:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">15:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">16:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">17:00</div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130513" class="ext-cal-day-col-gutter" style="height:420px;"></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130514" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-66 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 22px; height: 40px;"><div class="ext-evt-bd">8:30 (Proposé) Diner avec SAFFRE Luc (112)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130515" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-67 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 71px; height: 50.5px;"><div class="ext-evt-bd">9:40 (Draft) Souper avec AUSDEMWALD Alfons (116)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130516" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-68 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 99px; height: 60.99999999999999px;"><div class="ext-evt-bd">10:20 (Communiqué) Petit-déjeuner avec BASTIAENSEN Laurent (117)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-69 x-cal-8 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 134px; height: 71.5px;"><div class="ext-evt-bd">11:10 (Planifé) Rencontre avec COLLARD Charlotte (118)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130517" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-70 x-cal-12 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 231.99999999999997px; height: 82px;"><div class="ext-evt-bd">13:30 (a eu lieu) Consultation avec CHANTRAINE Marc (120)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130518" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-71 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 22px; height: 103px;"><div class="ext-evt-bd">8:30 (Déplacé) Séminaire avec DERICUM Daniel (121)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-72 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 71px; height: 123.99999999999999px;"><div class="ext-evt-bd">9:40 (Annulé) Evaluation avec DEMEULENAERE Dorothée (122)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130519" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-73 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 99px; height: 40px;"><div class="ext-evt-bd">10:20 (Absent) Première rencontre avec DOBBELSTEIN-DEMEULENAERE Dorothée (123)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-window-bl x-panel-nofooter" id="ext-gen52"><div class="x-window-br"><div class="x-window-bc"></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen56">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen118" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen119" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen120" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen121" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen122" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen123" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen124" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen125" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div id="ext-gen95" class="ext-dd-drag-proxy x-dd-drag-proxy x-dd-drop-nodrop" style="position: absolute; z-index: 15000; visibility: hidden; left: -10000px; top: -10000px; "><div class="x-dd-drop-icon"></div><div class="ext-dd-ghost-ct"><div class="x-dd-drag-ghost" id="ext-gen96"></div><div class="ext-dd-msg" id="ext-gen97"></div></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1099-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/de/cal.CalendarPanel.jpg (1 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen57" style="display: none; "></div><div id="ext-comp-1099" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-tl"><div class="x-window-tr"><div class="x-window-tc"><div class="x-window-header x-unselectable" id="ext-gen49" style="-webkit-user-select: none; "><div class="x-tool x-tool-close" id="ext-gen55">&nbsp;</div><div class="x-tool x-tool-pin" id="ext-gen54">&nbsp;</div><span class="x-window-header-text" id="ext-gen58">Calendrier</span></div></div></div></div><div class="x-window-bwrap" id="ext-gen50"><div class="x-window-ml"><div class="x-window-mr"><div class="x-window-mc" id="ext-gen53"><div class="x-window-body" id="ext-gen51" style="width: 1018px; height: 679px; "><div id="ext-comp-1082" class=" x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen60"><div class="x-panel-body x-panel-body-noheader" id="ext-gen61" style="width: 1012px; height: 677px; "><div id="app-center" class=" x-panel" style="width: 1012px; "><div class="x-panel-header x-unselectable app-center-header" id="ext-gen63" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen66">Mai 13 - 19, 2013</span></div><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-border-layout-ct" id="ext-gen65" style="width: 1006px; height: 650px; "><div id="app-west" class=" x-panel x-panel-noborder x-border-panel" style="width: 176px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder" id="ext-gen69" style="width: 172px; height: 650px; "><div class="x-date-picker x-unselectable ext-cal-nav-picker" id="ext-gen70" style="-webkit-user-select: none; width: 175px; "><table cellspacing="0" id="ext-gen71" style="width: 175px; "><tbody><tr><td class="x-date-left"><a href="#" title="Mois précédent (CTRL+Flèche gauche)" id="ext-gen72" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td><td class="x-date-middle" align="center" id="ext-gen75"><table id="ext-comp-1100" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class=" x-btn-arrow" unselectable="on" id="ext-gen77"><button type="button" id="ext-gen76" class=" x-btn-text">Mai 2013</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-date-right"><a href="#" title="Mois suivant (CTRL+Flèche droite)" id="ext-gen73" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td></tr><tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr><th><span>L</span></th><th><span>M</span></th><th><span>M</span></th><th><span>J</span></th><th><span>V</span></th><th><span>S</span></th><th><span>D</span></th></tr></thead><tbody><tr><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>10</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>11</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>12</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>13</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>14</span></em></a></td><td class="x-date-active x-date-today x-date-selected" title="Aujourd'hui"><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>15</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>16</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>17</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>18</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>19</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>20</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>21</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>22</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>23</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>24</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>25</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>26</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>27</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>28</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>31</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td></tr><tr><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td></tr></tbody></table></td></tr><tr><td colspan="3" class="x-date-bottom" align="center" id="ext-gen78"><table id="ext-comp-1101" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen79" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table><div class="x-date-mp" id="ext-gen74"></div></div><div id="ext-comp-1083" class=" x-panel"><div class="x-panel-bwrap" id="ext-gen80"><div class="x-panel-body x-panel-body-noheader" id="ext-gen81"><table id="ext-comp-1081" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen89" class=" x-btn-text">Team view</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></div></div><div id="ext-comp-1084" class=" x-panel x-calendar-list x-panel-noborder" style="width: 175px; "><div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen83" style="-webkit-user-select: none; "><div class="x-tool x-tool-toggle" id="ext-gen86">&nbsp;</div><span class="x-panel-header-text" id="ext-gen87">Agendas</span></div><div class="x-panel-bwrap" id="ext-gen84"><div class="x-panel-body x-panel-body-noborder" id="ext-gen85" style="width: 171px; height: auto; "><ul class="x-unselectable"><li id="ext-comp-1084__1" class="ext-cal-evr x-cal-20-ad ">Rencontres internes avec client<em>&nbsp;</em></li><li id="ext-comp-1084__2" class="ext-cal-evr x-cal-1-ad ">Rencontres client externes<em>&nbsp;</em></li><li id="ext-comp-1084__3" class="ext-cal-evr x-cal-4-ad ">Réunions internes<em>&nbsp;</em></li><li id="ext-comp-1084__4" class="ext-cal-evr x-cal-8-ad ">Réunions externes<em>&nbsp;</em></li><li id="ext-comp-1084__5" class="ext-cal-evr x-cal-12-ad ">Coordinations en équipe<em>&nbsp;</em></li></ul></div></div></div></div></div></div><div id="app-calendar" class=" x-panel x-cal-panel x-panel-noborder x-border-panel" style="width: 834px; left: 176px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen90"><div class="x-panel-tbar x-panel-tbar-noheader x-panel-tbar-noborder" id="ext-gen91" style="width: 834px; "><div id="ext-comp-1085" class="x-toolbar x-small-editor ext-cal-toolbar x-toolbar-layout-ct" style="width: 828px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen98"><table id="app-calendar-tb-today" cellspacing="0" class="x-btn  x-btn-noicon x-item-disabled" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen99" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen100"><table id="app-calendar-tb-prev" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen101" class=" x-btn-text x-tbar-page-prev">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen102"><table id="app-calendar-tb-next" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen103" class=" x-btn-text x-tbar-page-next">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen104"><div class="xtb-text" id="ext-comp-1086">Aller au :</div></td><td class="x-toolbar-cell" id="ext-gen105"><div class="x-form-field-wrap x-form-field-trigger-wrap" id="ext-gen106" style="width: 94px; "><input type="text" size="10" autocomplete="off" id="app-calendar-tb-jump-dt" name="app-calendar-tb-jump-dt" class="x-form-text x-form-field" style="width: 69px; "><img src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif" alt="" class="x-form-trigger x-form-date-trigger" id="ext-gen107"></div></td><td class="x-toolbar-cell" id="ext-gen108"><table id="app-calendar-tb-jump" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen109" class=" x-btn-text">Ok</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen110"><table id="app-calendar-tb-day" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen111" class=" x-btn-text">Jour</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen112"><table id="app-calendar-tb-week" cellspacing="0" class="x-btn  x-btn-noicon x-btn-pressed" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen113" class=" x-btn-text">Semaine</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen114"><table id="app-calendar-tb-multiweek" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen115" class=" x-btn-text">2 semaines</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen116"><table id="app-calendar-tb-month" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen117" class=" x-btn-text">Mois</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-cal-body" id="ext-gen92" style="width: 830px; height: 622px; "><div id="app-calendar-week" class=" ext-cal-dayview ext-cal-ct" style="width: 830px; height: 622px; "><div id="app-calendar-week-hd" class=" ext-cal-day-header ext-cal-monthview ext-cal-ct x-unselectable" style="-webkit-user-select: none; height: 52px; "><div class="ext-cal-hd-ct"><table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0"><tbody><tr><td class="ext-cal-gutter"></td><td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner" id="ext-gen144" style="height: 50px; "><div id="app-calendar-week-hd-wk-0" class="ext-cal-wk-ct" style="top:0%; height:100%;"><table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0" id="ext-gen145" style="height: 49px; "><tbody><tr><td id="app-calendar-week-hd-day-20130513" class="ext-cal-day  ext-cal-day-first">&nbsp;</td><td id="app-calendar-week-hd-day-20130514" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130515" class="ext-cal-day  ext-cal-day-today">&nbsp;</td><td id="app-calendar-week-hd-day-20130516" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130517" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130518" class="ext-cal-day  ext-cal-day-we">&nbsp;</td><td id="app-calendar-week-hd-day-20130519" class="ext-cal-day  ext-cal-day-we">&nbsp;</td></tr></tbody></table><table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0" id="ext-gen143"><tbody><tr><td id="app-calendar-week-hd-ev-day-20130513" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>13 Mai 2013</div></td><td id="app-calendar-week-hd-ev-day-20130514" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Mar 14</div></td><td id="app-calendar-week-hd-ev-day-20130515" class="ext-cal-dtitle  ext-cal-dtitle-today ext-cal-dtitle-first"><div>Aujourd'hui <span id="app-calendar-week-hd-clock" class="ext-cal-dtitle-time">11:45</span></div></td><td id="app-calendar-week-hd-ev-day-20130516" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Jeu 16</div></td><td id="app-calendar-week-hd-ev-day-20130517" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Ven 17</div></td><td id="app-calendar-week-hd-ev-day-20130518" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Sam 18</div></td><td id="app-calendar-week-hd-ev-day-20130519" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Dim 19</div></td></tr><tr id="ext-gen142"><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130513" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130514" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130515" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130516" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130517" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130518" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130519" rowspan="2">&nbsp;</td></tr></tbody></table></div></div></td><td class="ext-cal-gutter-rt"></td></tr></tbody></table></div></div><div id="app-calendar-week-bd" class=" ext-cal-body-ct x-unselectable" style="-webkit-user-select: none; height: 569px; "><table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:420px;"><tbody><tr height="1"><td class="ext-cal-gutter"></td><td colspan="7"><div class="ext-cal-bg-rows"><div class="ext-cal-bg-rows-inner"><div class="ext-cal-bg-row ext-row-1" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-2" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-3" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-4" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-5" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-6" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-7" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-8" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-9" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-10" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div></div></div></td></tr><tr><td class="ext-cal-day-times"><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">8:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">9:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">10:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">11:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">12:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">13:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">14:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">15:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">16:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">17:00</div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130513" class="ext-cal-day-col-gutter" style="height:420px;"></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130514" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-66 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 22px; height: 40px;"><div class="ext-evt-bd">8:30 (Proposé) Diner avec SAFFRE Luc (112)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130515" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-67 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 71px; height: 50.5px;"><div class="ext-evt-bd">9:40 (Draft) Souper avec AUSDEMWALD Alfons (116)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130516" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-68 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 99px; height: 60.99999999999999px;"><div class="ext-evt-bd">10:20 (Communiqué) Petit-déjeuner avec BASTIAENSEN Laurent (117)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-69 x-cal-8 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 134px; height: 71.5px;"><div class="ext-evt-bd">11:10 (Planifé) Rencontre avec COLLARD Charlotte (118)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130517" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-70 x-cal-12 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 231.99999999999997px; height: 82px;"><div class="ext-evt-bd">13:30 (a eu lieu) Consultation avec CHANTRAINE Marc (120)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130518" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-71 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 22px; height: 103px;"><div class="ext-evt-bd">8:30 (Déplacé) Séminaire avec DERICUM Daniel (121)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-72 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 71px; height: 123.99999999999999px;"><div class="ext-evt-bd">9:40 (Annulé) Evaluation avec DEMEULENAERE Dorothée (122)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130519" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-73 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 99px; height: 40px;"><div class="ext-evt-bd">10:20 (Absent) Première rencontre avec DOBBELSTEIN-DEMEULENAERE Dorothée (123)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-window-bl x-panel-nofooter" id="ext-gen52"><div class="x-window-br"><div class="x-window-bc"></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen56">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen118" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen119" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen120" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen121" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen122" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen123" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen124" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen125" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div id="ext-gen95" class="ext-dd-drag-proxy x-dd-drag-proxy x-dd-drop-nodrop" style="position: absolute; z-index: 15000; visibility: hidden; left: -10000px; top: -10000px; "><div class="x-dd-drop-icon"></div><div class="ext-dd-ghost-ct"><div class="x-dd-drag-ghost" id="ext-gen96"></div><div class="ext-dd-msg" id="ext-gen97"></div></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1099-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Giving up userdocs/gen/screenshots/de/cal.CalendarPanel.jpg
Rendering to userdocs/gen/screenshots/de/cal.CalendarPanel.jpg false
Loading http://127.0.0.1:8000?lng=fr to userdocs/gen/screenshots/fr/index.jpg
": "2013-05-17T15:30:00", "id": 70, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(D\\u00e9plac\\u00e9) S\\u00e9minaire avec DERICUM Daniel (121)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-18T08:30:00", "end_dt": "2013-05-18T11:00:00", "id": 71, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Annul\\u00e9) Evaluation avec DEMEULENAERE Doroth\\u00e9e (122)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-18T09:40:00", "end_dt": "2013-05-18T12:40:00", "id": 72, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Absent) Premi\\u00e8re rencontre avec DOBBELSTEIN-DEMEULENAERE Doroth\\u00e9e (123)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-19T10:20:00", "end_dt": "2013-05-19T11:20:00", "id": 73, "reminder": false } ] }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:23 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: text/html; charset=utf-8\r\nContent-Language: fr\r\n\r\n'
20130515 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html><head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<title id="title">Lino-Welfare</title>\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css" />\n<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css" />\n<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css" />\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>\n<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>\n<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>\n<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>\n<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>\n<script language="jopened auth!
avascript" type="text/javascript">\ntinymce.init({\n        theme : "advanced"\n        // , mode : "textareas"\n});\n</script>\n<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>\n<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>\n<script type="text/javascript">\nExt.onReady(function(){\nLino.set_subst_user();\nLino.user = { "name": "Alicia Allmanns", "id": 6 };\nLino.main_menu = Lino.main_menu.concat([\'->\',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);\n  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});\n  Lino.viewport.render("body");\nLino.lino.Home.show.run(null,{ "record_id": -99998 })\n}); // end of onReady()\n</script></head><body>\n<div id="body"></div>\n</body></html>'
20130515 authenticate alicia,1234
20130515 authenticate None,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:23 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "message": "Could not authenticate u\'None\'", "success": false }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:23 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Tue, 19 Mar 2013 15:33:52 GMT\r\nContent-Length: 7750\r\nContent-Type: text/css\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\r\n'
20130515 ' Copyright 2009-2013 Luc Saffre\r\n'
20130515 ' This file is part of the Lino project.\r\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \r\n'
20130515 ' it under the terms of the GNU General Public License as published by\r\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\r\n'
20130515 ' (at your option) any later version.\r\n'
20130515 ' Lino is distributed in the hope that it will be useful, \r\n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \r\n'
20130515 ' GNU General Public License for more details.\r\n'
20130515 ' You should have received a copy of the GNU General Public License\r\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'http://stackoverflow.com/questions/2106104/word-wrap-grid-cells-in-ext-js \r\n'
20130515 'e.g. welfare.jobs.NewJobsOverview needs\r\n'
20130515 '*/\r\n'
20130515 '/* \r\n'
20130515 '.x-grid3-cell-inner {\r\n'
20130515 '  /* white-space: normal; changed from nowrap \r\n'
20130515 '  height:18px; \r\n'
20130515 '  overflow:hidden;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-grid3-hd-inner {\r\n'
20130515 '  white-space: normal; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*.lino-phantom-row table.x-grid3-row-table {\r\n'
20130515 '\tcolor: blue; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '.lino-phantom-row td {\r\n'
20130515 '\t/* font-style: italic; */\r\n'
20130515 '\tcolor:white;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-item-disabled, .x-tree-node-disabled, .x-date-disabled\r\n'
20130515 '*/\r\n'
20130515 '.x-item-disabled {\r\n'
20130515 '  color: blue; \r\n'
20130515 '  /*   opacity: 1;  \r\n'
20130515 '  font-weight: bold; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-item-disabled * {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '  /*font-weight: bold !important; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-noicon {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '.x-btn-pressed {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-text {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-menu-active {\r\n'
20130515 "\tcursor: 'wait';\r\n"
20130515 "\tcolor:'red';\r\n"
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* See blog/2011/0603\r\n'
20130515 '*/\r\n'
20130515 '.x-form-item-label{\r\n'
20130515 '    white-space: nowrap; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-form-field { padding: 10px; }\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-panel-body-noheader { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '.x-panel-body { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* TinyMCE specific rules */\r\n'
20130515 '/* \r\n'
20130515 'body.mceContentBody {\r\n'
20130515 '  color: red !important; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 'body.mceNonEditable {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 '\r\n'
20130515 'To display "normal" HTML inside an ExtJS component, \r\n'
20130515 'wrap it into a <div class="htmlText">.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.htmlText {\r\n'
20130515 '\tfont-family: arial,tahoma;\r\n'
20130515 '}\r\n'
20130515 '.htmlText h1 {\r\n'
20130515 '\tfont-size:16px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:12px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText h2 {\r\n'
20130515 '\tfont-size:13px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:10px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText td,th {\r\n'
20130515 '\tpadding:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText p {\r\n'
20130515 '\tmargin-top:0px;\r\n'
20130515 '\tmargin-bottom:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ol {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: decimal; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ul {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: square; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText strong {\r\n'
20130515 '\tfont-weight:bold;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText em {\r\n'
20130515 '\tfont-style: italic;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to http://de.selfhtml.org/css/formate/zentrale.htm\r\n'
20130515 '*/\r\n'
20130515 'table.htmlText tr td {\r\n'
20130515 '\tvertical-align: middle;\r\n'
20130515 '\ttext-align: center;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'The following are \r\n'
20130515 "Alexander Dawson's CSS tooltips\r\n"
20130515 'from <http://sixrevisions.com/css/css-only-tooltips/>,\r\n'
20130515 'adapted for usage in an ExtJS application.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-form-item-label .tooltip {\r\n'
20130515 '\tborder-bottom: 1px dotted #000000; color: #000000; outline: none;\r\n'
20130515 '\tcursor: help; \r\n'
20130515 '\ttext-decoration: none;\r\n'
20130515 '\tposition: relative;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip span {\r\n'
20130515 '\tmargin-left: -999em;\r\n'
20130515 '\tposition: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover span {\r\n'
20130515 '\tborder-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; \r\n'
20130515 '\tbox-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); \r\n'
20130515 '\t-moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);\r\n'
20130515 '\tfont-family: Calibri, Tahoma, Geneva, sans-serif;\r\n'
20130515 '\tposition: absolute; left: 1em; top: 2em; z-index: 99;\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '    white-space: normal; \r\n'
20130515 '\tmargin-left: 0; width: 250px;\r\n'
20130515 '\t\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover img {\r\n'
20130515 '\tborder: 0; margin: -10px 0 0 -55px;\r\n'
20130515 '\tfloat: left; position: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover em {\r\n'
20130515 '\tfont-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold;\r\n'
20130515 '\tdisplay: block; padding: 0.2em 0 0.6em 0;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .classic { padding: 0.8em 1em; }\r\n'
20130515 '.x-form-item-label .custom { padding: 0.5em 0.8em 0.8em 2em; }\r\n'
20130515 '.x-form-item-label * html a:hover { background: transparent; }\r\n'
20130515 '.x-form-item-label .classic {background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '.x-form-item-label .critical { background: #FFCCAA; border: 1px solid #FF3334;\t}\r\n'
20130515 '.x-form-item-label .help { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .info { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .warning { background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 ' 20120229 For css tooltips we need to override some CSS rules of ExtJS.\r\n'
20130515 ' set all overflows \r\n'
20130515 " to 'visible' for CSS tooltips.\r\n"
20130515 " I don't really understand it, and it doesn't yet work,\r\n"
20130515 " but it doesn't seem to  cause any problem.\r\n"
20130515 ' \r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: hidden;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-body .x-panel-body-noheader {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-bwrap {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-box-inner {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-fieldset .x-form-label-top .x-box-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-tip \r\n'
20130515 '  .x-tip-tl\r\n'
20130515 '    .x-tip-tr\r\n'
20130515 '      .x-tip-tc\r\n'
20130515 '        .x-tip-header\r\n'
20130515 '          .x-tip-header-text\r\n'
20130515 '  .x-tip-bwrap\r\n'
20130515 '    .x-tip-ml\r\n'
20130515 '      .x-tip-mr\r\n'
20130515 '        .x-tip-mc\r\n'
20130515 '          .x-tip-body\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: #FFFFAA; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-header-text { border: 0; }\r\n'
20130515 '\r\n'
20130515 '.x-tip div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-ml div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mr div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mc div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-body div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* border: 1px solid #FFAD33;  */\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '.x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/mjames/delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '/*\r\n'
20130515 '.x-item-disabled .x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/default/grid/delete-disabled.gif) !important;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-tbar-new{\r\n'
20130515 '\tbackground-image: url(images/mjames/add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 'ShowDetailAction\r\n'
20130515 '$a.icon_name\r\n'
20130515 '$a.icon_file\r\n'
20130515 '*/\r\n'
20130515 '.x-tbar-detail{\r\n'
20130515 '\tbackground-image: url(images/mjames/application_form.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-save{\r\n'
20130515 '\tbackground-image: url(images/mjames/disk.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-email_add{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-email_send{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_go.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-create-postings{\r\n'
20130515 '\tbackground-image: url(images/mjames/script_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-calendar{\r\n'
20130515 '\tbackground-image: url(images/mjames/calendar.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-print{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-clearcache{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer_delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-duplicate{\r\n'
20130515 '\tbackground-image: url(images/mjames/arrow_divide.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-pdf{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_white_acrobat.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-html{\r\n'
20130515 '\tbackground-image: url(images/mjames/html.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-csv{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_excel.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-vcard{\r\n'
20130515 '\tbackground-image: url(images/mjames/vcard.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-done{\r\n'
20130515 '\tbackground-image: url(images/mjames/accept.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-parameters{\r\n'
20130515 '\tbackground-image: url(images/mjames/database_gear.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to Animal in \r\n'
20130515 'http://www.sencha.com/forum/showthread.php?70195-NumberField-and-Right-Alignment\r\n'
20130515 '*/\r\n'
20130515 '.x-form-num-field {\r\n'
20130515 '    text-align: right;\r\n'
20130515 '}'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:23 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 15 May 2013 08:45:09 GMT\r\nContent-Length: 2000115\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\n'
20130515 ' Copyright 2009-2013 Luc Saffre\n'
20130515 ' This file is part of the Lino project.\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \n'
20130515 ' it under the terms of the GNU General Public License as published by\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\n'
20130515 ' (at your option) any later version.\n'
20130515 ' Lino is distributed in the hope that it will be useful, \n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \n'
20130515 ' GNU General Public License for more details.\n'
20130515 ' You should have received a copy of the GNU General Public License\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\n'
20130515 '*/\n'
20130515 '\n'
20130515 '// lino.js --- generated Wed May 15 11:45:07 2013 by Lino version 1.6.7.\n'
20130515 "Ext.BLANK_IMAGE_URL = 'http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif';\n"
20130515 'LANGUAGE_CHOICES = [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ];\n'
20130515 'MEDIA_URL = "/media";\n'
20130515 '\n'
20130515 '/* MonthPickerPlugin: thanks to keypoint @ sencha forum\n'
20130515 '   http://www.sencha.com/forum/showthread.php?74002-3.x-Ext.ux.MonthMenu&p=356860#post356860\n'
20130515 '*/\n'
20130515 "Ext.namespace('Ext.ux'); \n"
20130515 '\n'
20130515 'Ext.ux.MonthPickerPlugin = function() { \n'
20130515 '    var picker; \n'
20130515 '    var oldDateDefaults; \n'
20130515 '\n'
20130515 '    this.init = function(pk) { \n'
20130515 '        picker = pk; \n'
20130515 '        picker.onTriggerClick = picker.onTriggerClick.createSequence(onClick); \n'
20130515 '        picker.getValue = picker.getValue.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '        picker.beforeBlur = picker.beforeBlur.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '    }; \n'
20130515 '\n'
20130515 '    function setDefaultMonthDay() { \n'
20130515 '        oldDateDefaults = Date.defaults.d; \n'
20130515 '        Date.defaults.d = 1; \n'
20130515 '        return true; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function restoreDefaultMonthDay(ret) { \n'
20130515 '        Date.defaults.d = oldDateDefaults; \n'
20130515 '        return ret; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function onClick(e, el, opt) { \n'
20130515 '        var p = picker.menu.picker; \n'
20130515 '        p.activeDate = p.activeDate.getFirstDateOfMonth(); \n'
20130515 '        if (p.value) { \n'
20130515 '            p.value = p.value.getFirstDateOfMonth(); \n'
20130515 '        } \n'
20130515 '\n'
20130515 '        p.showMonthPicker(); \n'
20130515 '         \n'
20130515 '        if (!p.disabled) { \n'
20130515 '            p.monthPicker.stopFx(); \n'
20130515 '            p.monthPicker.show(); \n'
20130515 '\n'
20130515 "            p.mun(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mun(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '            p.onMonthClick = p.onMonthClick.createSequence(pickerClick); \n'
20130515 '            p.onMonthDblClick = p.onMonthDblClick.createSequence(pickerDblclick); \n'
20130515 "            p.mon(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mon(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerClick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 "        if (el.is('button.x-date-mp-cancel')) { \n"
20130515 '            picker.menu.hide(); \n'
20130515 "        } else if(el.is('button.x-date-mp-ok')) { \n"
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerDblclick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 '        if (el.parent() \n'
20130515 "            && (el.parent().is('td.x-date-mp-month') \n"
20130515 "            || el.parent().is('td.x-date-mp-year'))) { \n"
20130515 '\n'
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '}; \n'
20130515 '\n'
20130515 "Ext.preg('monthPickerPlugin', Ext.ux.MonthPickerPlugin);  \n"
20130515 '\n'
20130515 '//~ /* \n'
20130515 '  //~ http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/\n'
20130515 '//~ */\n'
20130515 '//~ /**\n'
20130515 ' //~ * This submit action is basically the same as the normal submit action,\n'
20130515 ' //~ * only that it uses the fields getSubmitValue() to compose the values to submit,\n'
20130515 ' //~ * instead of looping over the input-tags in the form-tag of the form.\n'
20130515 ' //~ *\n'
20130515 ' //~ * To use it, just use the OOSubmit-plugin on either a FormPanel or a BasicForm,\n'
20130515 " //~ * or explicitly call form.doAction('oosubmit');\n"
20130515 ' //~ *\n'
20130515 ' //~ * @param {Object} form\n'
20130515 ' //~ * @param {Object} options\n'
20130515 ' //~ */\n'
20130515 '//~ Ext.ux.OOSubmitAction = function(form, options){\n'
20130515 '    //~ Ext.ux.OOSubmitAction.superclass.constructor.call(this, form, options);\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.extend(Ext.ux.OOSubmitAction, Ext.form.Action.Submit, {\n'
20130515 '    //~ /**\n'
20130515 "    //~ * @cfg {boolean} clientValidation Determines whether a Form's fields are validated\n"
20130515 '    //~ * in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission.\n'
20130515 "    //~ * Pass <tt>false</tt> in the Form's submit options to prevent this. If not defined, pre-submission field validation\n"
20130515 '    //~ * is performed.\n'
20130515 '    //~ */\n'
20130515 "    //~ type : 'oosubmit',\n"
20130515 '\n'
20130515 '    //~ // private\n'
20130515 '    //~ /**\n'
20130515 '     //~ * This is nearly a copy of the original submit action run method\n'
20130515 '     //~ */\n'
20130515 '    //~ run : function(){\n'
20130515 '        //~ var o = this.options;\n'
20130515 '        //~ var method = this.getMethod();\n'
20130515 "        //~ var isPost = method == 'POST';\n"
20130515 '\n'
20130515 '        //~ var params = this.options.params || {};\n'
20130515 '        //~ if (isPost) Ext.applyIf(params, this.form.baseParams);\n'
20130515 '\n'
20130515 '        //~ //now add the form parameters\n'
20130515 '        //~ this.form.items.each(function(field)\n'
20130515 '        //~ {\n'
20130515 '            //~ if (!field.disabled)\n'
20130515 '            //~ {\n'
20130515 '                //~ //check if the form item provides a specialized getSubmitValue() and use that if available\n'
20130515 '                //~ if (typeof field.getSubmitValue == "function")\n'
20130515 '                    //~ params[field.getName()] = field.getSubmitValue();\n'
20130515 '                //~ else\n'
20130515 '                    //~ params[field.getName()] = field.getValue();\n'
20130515 '            //~ }\n'
20130515 '        //~ });\n'
20130515 '\n'
20130515 '        //~ //convert params to get style if we are not post\n'
20130515 '        //~ if (!isPost) params=Ext.urlEncode(params);\n'
20130515 '\n'
20130515 '        //~ if(o.clientValidation === false || this.form.isValid()){\n'
20130515 '            //~ Ext.Ajax.request(Ext.apply(this.createCallback(o), {\n'
20130515 '                //~ url:this.getUrl(!isPost),\n'
20130515 '                //~ method: method,\n'
20130515 '                //~ params:params, //add our values\n'
20130515 '                //~ isUpload: this.form.fileUpload\n'
20130515 '            //~ }));\n'
20130515 '\n'
20130515 '        //~ }else if (o.clientValidation !== false){ // client validation failed\n'
20130515 '            //~ this.failureType = Ext.form.Action.CLIENT_INVALID;\n'
20130515 '            //~ this.form.afterAction(this, false);\n'
20130515 '        //~ }\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '//~ });\n'
20130515 '//~ //add our action to the registry of known actions\n'
20130515 "//~ Ext.form.Action.ACTION_TYPES['oosubmit'] = Ext.ux.OOSubmitAction;\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/**\n'
20130515 'JC Watsons solution (adapted to ExtJS 3.3.1 by LS) is elegant and simple:\n'
20130515 '`A "fix" for unchecked checkbox submission  behaviour\n'
20130515 '<http://www.sencha.com/forum/showthread.php?28449>`_\n'
20130515 '\n'
20130515 'Added special handling for checkbox inputs. \n'
20130515 'ExtJS defines disabled checkboxes `readonly`, not `disabled` as for other inputs.\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Ext.lib.Ajax.serializeForm = function(form) {\n'
20130515 "    //~ console.log('20120203 linolib.js serializeForm',form);\n"
20130515 '    var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements, \n'
20130515 '        hasSubmit = false, \n'
20130515 '        encoder = encodeURIComponent, \n'
20130515 '        name, \n'
20130515 "        data = '', \n"
20130515 '        type, \n'
20130515 '        hasValue;\n'
20130515 '\n'
20130515 '    Ext.each(fElements, function(element){\n'
20130515 '        name = element.name;\n'
20130515 '        type = element.type;\n'
20130515 '\n'
20130515 "        if (!element.disabled && name && !(type == 'checkbox' && element.readonly)) {\n"
20130515 '            if (/select-(one|multiple)/i.test(type)) {\n'
20130515 '                Ext.each(element.options, function(opt){\n'
20130515 '                    if (opt.selected) {\n'
20130515 "                        hasValue = opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified;\n"
20130515 '                        data += String.format("{0}={1}&", encoder(name), encoder(hasValue ? opt.value : opt.text));\n'
20130515 '                    }\n'
20130515 '                });\n'
20130515 '            } else if (!(/file|undefined|reset|button/i.test(type))) {\n'
20130515 "                //~ if (!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)) {\n"
20130515 "                if (!(type == 'submit' && hasSubmit)) {\n"
20130515 "                    if (type == 'checkbox') {\n"
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&');\n"
20130515 "                        data += encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&';\n"
20130515 '                    } else {\n'
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + encoder(element.value) + '&');\n"
20130515 "                        data += encoder(name) + '=' + encoder(element.value) + '&';\n"
20130515 '                    }\n'
20130515 '                    hasSubmit = /submit/i.test(type);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        //~ } else {\n'
20130515 '            //~ console.log(name,type,element.readonly);\n'
20130515 '        }\n'
20130515 '    });\n'
20130515 '    return data.substr(0, data.length - 1);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Set a long timeout of fifteen minutes. \n'
20130515 'See /blog/2012/0307\n'
20130515 '*/\n'
20130515 'Ext.Ajax.timeout = 15 * 60 * 1000; \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'My fix for the "Cannot set QuickTips dismissDelay to 0" bug,\n'
20130515 'see http://www.sencha.com/forum/showthread.php?183515 \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.QuickTip,{\n'
20130515 '  showAt : function(xy){\n'
20130515 '        var t = this.activeTarget;\n'
20130515 '        //~ console.log("20120224 QuickTip.showAt",this.title,this.dismissDelay,t.dismissDelay);\n'
20130515 '        if(t){\n'
20130515 '            if(!this.rendered){\n'
20130515 '                this.render(Ext.getBody());\n'
20130515 '                this.activeTarget = t;\n'
20130515 '            }\n'
20130515 '            if(t.width){\n'
20130515 '                this.setWidth(t.width);\n'
20130515 '                this.body.setWidth(this.adjustBodyWidth(t.width - this.getFrameWidth()));\n'
20130515 '                this.measureWidth = false;\n'
20130515 '            } else{\n'
20130515 '                this.measureWidth = true;\n'
20130515 '            }\n'
20130515 "            this.setTitle(t.title || '');\n"
20130515 '            this.body.update(t.text);\n'
20130515 '            this.autoHide = t.autoHide;\n'
20130515 '            // bugfix by Luc 20120226\n'
20130515 '            if (t.dismissDelay != undefined) this.dismissDelay = t.dismissDelay;\n'
20130515 '            //~ this.dismissDelay = t.dismissDelay || this.dismissDelay;\n'
20130515 '            if(this.lastCls){\n'
20130515 '                this.el.removeClass(this.lastCls);\n'
20130515 '                delete this.lastCls;\n'
20130515 '            }\n'
20130515 '            if(t.cls){\n'
20130515 '                this.el.addClass(t.cls);\n'
20130515 '                this.lastCls = t.cls;\n'
20130515 '            }\n'
20130515 '            if(this.anchor){\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else if(t.align){ \n'
20130515 '                xy = this.el.getAlignToXY(t.el, t.align);\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else{\n'
20130515 '                this.constrainPosition = true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.QuickTip.superclass.showAt.call(this, xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Another hack. See /docs/blog/2012/0228\n'
20130515 '*/\n'
20130515 'Ext.Element.addMethods(\n'
20130515 '    function() {\n'
20130515 '        var VISIBILITY      = "visibility",\n'
20130515 '            DISPLAY         = "display",\n'
20130515 '            HIDDEN          = "hidden",\n'
20130515 '            NONE            = "none",\n'
20130515 '            XMASKED         = "x-masked",\n'
20130515 '            XMASKEDRELATIVE = "x-masked-relative",\n'
20130515 '            data            = Ext.Element.data;\n'
20130515 '\n'
20130515 '        return {\n'
20130515 '            \n'
20130515 '            mask : function(msg, msgCls) {\n'
20130515 '                var me  = this,\n'
20130515 '                    dom = me.dom,\n'
20130515 '                    dh  = Ext.DomHelper,\n'
20130515 '                    EXTELMASKMSG = "ext-el-mask-msg",\n'
20130515 '                    el,\n'
20130515 '                    mask;\n'
20130515 '                // removed the following lines. See /docs/blog/2012/0228\n'
20130515 "                //~ if (!(/^body/i.test(dom.tagName) && me.getStyle('position') == 'static')) {\n"
20130515 '                    //~ console.log(20120228,dom.tagName,me);\n'
20130515 '                    //~ me.addClass(XMASKEDRELATIVE); \n'
20130515 '                //~ }\n'
20130515 "                if (el = data(dom, 'maskMsg')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 "                if (el = data(dom, 'mask')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 '\n'
20130515 '                mask = dh.append(dom, {cls : "ext-el-mask"}, true);\n'
20130515 "                data(dom, 'mask', mask);\n"
20130515 '\n'
20130515 '                me.addClass(XMASKED);\n'
20130515 '                mask.setDisplayed(true);\n'
20130515 '                \n'
20130515 "                if (typeof msg == 'string') {\n"
20130515 "                    var mm = dh.append(dom, {cls : EXTELMASKMSG, cn:{tag:'div'}}, true);\n"
20130515 "                    data(dom, 'maskMsg', mm);\n"
20130515 '                    mm.dom.className = msgCls ? EXTELMASKMSG + " " + msgCls : EXTELMASKMSG;\n'
20130515 '                    mm.dom.firstChild.innerHTML = msg;\n'
20130515 '                    mm.setDisplayed(true);\n'
20130515 '                    mm.center(me);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                \n'
20130515 "                if (Ext.isIE && !(Ext.isIE7 && Ext.isStrict) && me.getStyle('height') == 'auto') {\n"
20130515 '                    mask.setSize(undefined, me.getHeight());\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                return mask;\n'
20130515 '            }\n'
20130515 '\n'
20130515 '            \n'
20130515 '        };\n'
20130515 '    }()\n'
20130515 ');\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 "Ext.namespace('Lino');\n"
20130515 '    \n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.subst_user_field = new Ext.form.ComboBox({});\n'
20130515 '//~ Lino.subst_user = null;\n'
20130515 'Lino.insert_subst_user = function(p){\n'
20130515 "    //~ console.log('20120714 insert_subst_user',Lino.subst_user,p);\n"
20130515 '    //~ if (Lino.subst_user_field.getValue()) {\n'
20130515 '    if (p.su) return;\n'
20130515 '    if (Lino.subst_user) {\n'
20130515 '        //~ p.su = Lino.subst_user_field.getValue();\n'
20130515 '        p.su = Lino.subst_user;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ delete p.su;\n'
20130515 '    }\n'
20130515 "    //~ console.log('20120714 insert_subst_user -->',Lino.subst_user,p);\n"
20130515 '}\n'
20130515 '\n'
20130515 'Lino.login_window = null;\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_login_window = function() {\n'
20130515 "  //~ console.log('20121103 show_login_window',arguments);\n"
20130515 '  //~ var current_window = Lino.current_window;\n'
20130515 '  if (Lino.login_window == null) {\n'
20130515 '    \n'
20130515 '      function do_login() { \n'
20130515 '            Lino.viewport.loadMask.show()\n'
20130515 '            //~ Lino.body_loadMask.show()\n'
20130515 '            login_panel.getForm().submit({ \n'
20130515 "                method:'POST', \n"
20130515 "                waitTitle:'Connecting', \n"
20130515 "                waitMsg:'Sending data...',\n"
20130515 '                success:function(){ \n'
20130515 "                  //~ console.log('20121104 logged in',arguments);\n"
20130515 '                  Lino.login_window.hide();\n'
20130515 '                  Lino.close_all_windows();\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                },\n'
20130515 '                failure: function(form,action) { \n'
20130515 '                  //~ this.loadMask.hide();\n'
20130515 '                  Lino.on_submit_failure(form,action);\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                  //~ if (Lino.current_window) Lino.current_window.main_item.loadMask.hide()\n'
20130515 '                }\n'
20130515 '                //~ failure:function(form, action){ \n'
20130515 '                    //~ alert_msg\n'
20130515 "                    //~ if(action.failureType == 'server'){ \n"
20130515 '                        //~ obj = Ext.util.JSON.decode(action.response.responseText); \n'
20130515 "                        //~ Ext.Msg.alert('Login Failed!', obj.errors.reason); \n"
20130515 '                    //~ }else{ \n'
20130515 "                        //~ Ext.Msg.alert('Warning!', 'Authentication server is unreachable : ' + action.response.responseText); \n"
20130515 '                    //~ } \n'
20130515 '                    //~ Lino.login_panel.getForm().reset(); \n'
20130515 '                //~ } \n'
20130515 '            }); \n'
20130515 '      };\n'
20130515 '    \n'
20130515 '      var login_button = new Ext.Button({ \n'
20130515 '        text:"Log in",\n'
20130515 '        formBind: true,\t \n'
20130515 '        // Function that fires when user clicks the button \n'
20130515 '        handler: do_login});\n'
20130515 '    \n'
20130515 '      var login_panel = new Ext.FormPanel({ \n'
20130515 '        //~ inspired by http://www.sencha.com/learn/a-basic-login/\n'
20130515 '        autoHeight:true,\n'
20130515 '        labelWidth:90,\n'
20130515 "        url:'/auth', \n"
20130515 '        frame:true, \n'
20130515 "        defaultType:'textfield',\n"
20130515 '        monitorValid:true,\n'
20130515 '        items:[{ \n'
20130515 '            fieldLabel:"Username", \n'
20130515 "            id: 'username',\n"
20130515 "            name:'username', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        },{ \n'
20130515 '            fieldLabel:"Password", \n'
20130515 "            name:'password', \n"
20130515 "            inputType:'password', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        }],        \n'
20130515 '        buttons:[ login_button ]});\n'
20130515 '        \n'
20130515 '      Lino.login_window = new Ext.Window({\n'
20130515 "          layout:'fit',\n"
20130515 "          defaultButton: 'username',\n"
20130515 '          width:300,\n'
20130515 '          title:"Log in", \n'
20130515 '          autoHeight:true,\n'
20130515 '          modal: true,\n'
20130515 '          closeAction: "hide",\n'
20130515 '          keys: {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            fn: function() { do_login()}\n'
20130515 '          },\n'
20130515 '          //~ defaultButton: login_button,\n'
20130515 "          //~ height:'auto',\n"
20130515 '          //~ closable: false,\n'
20130515 '          //~ resizable: false,\n'
20130515 '          //~ plain: true,\n'
20130515 '          //~ border: false,\n'
20130515 '          items: [login_panel] });\n'
20130515 '  };\n'
20130515 '  Lino.login_window.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.logout = function(id,name) {\n'
20130515 "    //~ console.log('20121104 gonna log out',arguments);\n"
20130515 '    //~ Lino.do_action\n'
20130515 "    Lino.call_ajax_action(Lino.viewport,'GET','/auth',{},'logout',undefined,undefined,function(){\n"
20130515 "        //~ console.log('20121104 logged out',arguments);\n"
20130515 '        //~ Lino.login_window.hide();\n'
20130515 '        Lino.close_all_windows();\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.set_subst_user = function(id,name) {\n'
20130515 "    //~ console.log(20120714,'Lino.set_subst_user',id,name);\n"
20130515 '    Lino.subst_user = id;\n'
20130515 '\n'
20130515 '    if(id) {\n'
20130515 '        Lino.eventStore.setBaseParam("su",id);\n'
20130515 '    } else {\n'
20130515 "      delete Lino.eventStore.baseParams['su'];\n"
20130515 '    }\n'
20130515 '\n'
20130515 '    if (Lino.current_window) \n'
20130515 '        Lino.current_window.main_item.set_base_param("su",id);\n'
20130515 '    if (Lino.viewport) Lino.permalink_handler(Lino.current_window)();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.select_subst_user = function(cmp,rec,value){\n'
20130515 '    //~ Lino.subst_user=value;\n'
20130515 '    //~ console.log(20120713,rec);\n'
20130515 '//~ }\n'
20130515 '    \n'
20130515 'Lino.current_window = null;\n'
20130515 'Lino.window_history = Array();\n'
20130515 '    \n'
20130515 'Lino.chars2width = function(cols) {  return cols * 9; }\n'
20130515 'Lino.rows2height = function(cols) {  return cols * 20; }\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Viewport = Ext.extend(Ext.Viewport,{\n'
20130515 '  layout:"fit"\n'
20130515 '  ,initComponent : function(){\n'
20130515 '    Lino.Viewport.superclass.initComponent.call(this);\n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.el,{msg:"Please wait..."});\n'
20130515 '      //~ console.log("20121118 Lino.viewport.loadMask",this.loadMask);\n'
20130515 '    },this);\n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,refresh : function() {\n'
20130515 '      var caller = this;\n'
20130515 '      console.log("20121120 Lino.Viewport.refresh()");\n'
20130515 '      if (caller.loadMask) caller.loadMask.show();\n'
20130515 '      var success = function(response) {\n'
20130515 '        if (caller.loadMask) caller.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '          if (result.html) {\n'
20130515 "              Ext.getCmp('main_area').update(result.html);\n"
20130515 '          }\n'
20130515 '          if (result.message) {\n'
20130515 '              if (result.alert) {\n'
20130515 "                  //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "                  Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '              } else {\n'
20130515 '                  Lino.notify(result.message);\n'
20130515 '              }\n'
20130515 '          }\n'
20130515 '          \n'
20130515 '          if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '          if (result.js_code) { \n'
20130515 '            var jsr = result.js_code(caller);\n'
20130515 "            //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '          };\n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      var action = {\n'
20130515 "        url : '/api/main_html',\n"
20130515 '        waitMsg: "Please wait...",\n'
20130515 '        failure: Lino.ajax_error_handler(caller),\n'
20130515 '        success: success,\n'
20130515 "        method: 'GET',\n"
20130515 '        params: {}\n'
20130515 '      };\n'
20130515 '      Lino.insert_subst_user(action.params);\n'
20130515 '      Ext.Ajax.request(action);\n'
20130515 '    \n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.open_window = function(win,st,requesting_panel) {\n'
20130515 '  //~ console.log("20120918 Lino.open_window()",win,st);\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  if (cw) {\n'
20130515 '    //~ console.log("20120918 Lino.open_window() save current status",cw.main_item.get_status());\n'
20130515 '    Lino.window_history.push({\n'
20130515 '      window:cw,\n'
20130515 '      status:cw.main_item.get_status()\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '  Lino.current_window = win;\n'
20130515 '  //~ if (st.su) \n'
20130515 '      //~ Lino.subst_user_field.setValue(st.su);\n'
20130515 '  win.main_item.set_status(st,requesting_panel);\n'
20130515 '  win.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.load_url = function(url) {\n'
20130515 '    //~ foo.bar.baz = 2; \n'
20130515 '    //~ console.log("20121120 Lino.load_url()");\n'
20130515 '    //~ Lino.body_loadMask.show();\n'
20130515 '    Lino.viewport.loadMask.show();\n'
20130515 '    //~ location.replace(url);\n'
20130515 '    document.location = url;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.close_window = function(status_update) {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  var ww = Lino.window_history.pop();\n'
20130515 '  if (ww) {\n'
20130515 '    //~ if (status_update) Ext.apply(ww.status,status_update);\n'
20130515 '    if (status_update) status_update(ww);\n'
20130515 '    ww.window.main_item.set_status(ww.status);\n'
20130515 '    Lino.current_window = ww.window;\n'
20130515 '  } else {\n'
20130515 '    Lino.current_window = null;\n'
20130515 '  }\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.close_all_windows = function() {\n'
20130515 '  if (Lino.window_history.length == 0) {\n'
20130515 '      //~ Lino.viewport.refresh();\n'
20130515 '      var url =  "/"\n'
20130515 '      //~ console.log("20121120 Lino.close_all_windows() : no window_history");\n'
20130515 '      //~ if (ADMIN_URL) \n'
20130515 '      var p = {};\n'
20130515 '      Lino.insert_subst_user(p)\n'
20130515 '      if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '      Lino.load_url(url);\n'
20130515 '  } else {\n'
20130515 '    //~ console.log("20121120 Lino.close_all_windows() with window_history");\n'
20130515 '    while (Lino.window_history.length > 0) {\n'
20130515 '      Lino.close_window();\n'
20130515 '      //~ Lino.window_history.pop().hide_really();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '  //~ Lino.current_window = null;\n'
20130515 '  //~ Lino.close_window();\n'
20130515 '  //~ var ww = \n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.kill_current_window = function() {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  Lino.current_window = null;\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.calling_window = function() {\n'
20130515 '    if (Lino.window_history.length) return Lino.window_history[Lino.window_history.length-1];\n'
20130515 '}\n'
20130515 '\n'
20130515 '//~ Lino.WindowAction = function(mainItemClass,windowConfig,mainConfig,ppf) {\n'
20130515 'Lino.WindowAction = function(windowConfig,main_item_fn) {\n'
20130515 '    //~ if(!mainConfig) mainConfig = {};\n'
20130515 '    //~ mainConfig.is_main_window = true;\n'
20130515 '    this.windowConfig = windowConfig;\n'
20130515 '    this.main_item_fn = main_item_fn;\n'
20130515 '    //~ if (ppf) mainConfig.params_panel.fields = ppf;\n'
20130515 '    //~ this.mainConfig = mainConfig;\n'
20130515 '    //~ this.mainItemClass = mainItemClass;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.WindowAction = Ext.extend(Lino.WindowAction,{\n'
20130515 '    window : null,\n'
20130515 '    //~ mainItemClass: null,\n'
20130515 '    get_window : function() {\n'
20130515 '      //~ if(mainConfig) Ext.apply(this.mainConfig,mainConfig);\n'
20130515 '      if (this.window == null)  {\n'
20130515 '          //~ this.windowConfig.main_item = new this.mainItemClass(this.mainConfig);\n'
20130515 '          this.windowConfig.main_item = this.main_item_fn();\n'
20130515 '          this.window = new Lino.Window(this.windowConfig);\n'
20130515 '      }\n'
20130515 '      return this.window;\n'
20130515 '    },\n'
20130515 '    run : function(requesting_panel,status) {\n'
20130515 "      //~ console.log('20120625 window_action.run()',this)\n"
20130515 '      Lino.open_window(this.get_window(),status,requesting_panel);\n'
20130515 '    }\n'
20130515 '  \n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.PanelMixin = {\n'
20130515 '  get_containing_window : function (){\n'
20130515 '      if (this.containing_window) return this.containing_window;\n'
20130515 '      return this.containing_panel.get_containing_window();\n'
20130515 '  }\n'
20130515 '  ,set_window_title : function(title) {\n'
20130515 '    //~ this.setTitle(title);\n'
20130515 '    var cw = this.get_containing_window();\n'
20130515 '\n'
20130515 '    //~ if (cw) {\n'
20130515 '    //~ if (cw && cw.closable) {\n'
20130515 '    if (cw && !cw.main_item.hide_window_title) {\n'
20130515 "      //~ console.log('20111202 set_window_title(',title,') for',this.containing_window);\n"
20130515 '      //~ if (! this.containing_window.rendered) console.log("WARNING: not rendered!");\n'
20130515 '      cw.setTitle(title);\n'
20130515 '    //~ } else {\n'
20130515 '      //~ document.title = title;\n'
20130515 '    }\n'
20130515 "    //~ else console.log('20111202 not set_window_title(',title,') for',this);\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 "Lino.status_bar = new Ext.ux.StatusBar({defaultText:'Lino version 1.6.7.'});\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.edit_tinymce_text = function(panel,options) {\n'
20130515 '  // `panel` is the RichTextPanel\n'
20130515 '  //~ console.log(20111220,panel);\n'
20130515 '  //~ var rec = panel.get_current_record();\n'
20130515 '  var rec = panel.containing_panel.get_current_record();\n'
20130515 "  var value = rec ? rec.data[panel.editor.name] : '';\n"
20130515 '  var saving = false;\n'
20130515 '  var todo_after_save = false;\n'
20130515 '  var discard_changes = false;\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  function save() {\n'
20130515 "    //~ if (todo_after_save) {alert('tried to save again'); return; }\n"
20130515 "    if (saving) {alert('tried to save again'); return; }\n"
20130515 '    //~ var url = panel.containing_window.main_item.get_record_url(rec.id);\n'
20130515 '    var url = panel.containing_panel.get_record_url(rec.id);\n'
20130515 '    var params = Ext.apply({},panel.containing_panel.get_base_params());\n'
20130515 '    params[panel.editor.name] = editor.getValue();\n'
20130515 '    //~ params.su = Lino.subst_user;\n'
20130515 '    //~ Lino.insert_subst_user(params);\n'
20130515 '    var a = { \n'
20130515 '      params: params, \n'
20130515 "      method: 'PUT',\n"
20130515 '      url: url,\n'
20130515 '      failure: function() {\n'
20130515 '          //~ if (editor.ed.getContainer()) \n'
20130515 '          editor.ed.setProgressState(0);\n'
20130515 '          todo_after_save = false;\n'
20130515 '          saving = false;\n'
20130515 "          console.log('tinymce.save() failed. sorry.',arguments);\n"
20130515 '        },\n'
20130515 '      success: function() {\n'
20130515 '        saving = false;\n'
20130515 '        //~ if (editor.ed.getContainer()) \n'
20130515 '        editor.ed.setProgressState(0);\n'
20130515 '        rec.data[panel.editor.name] = editor.getValue();\n'
20130515 '        if(todo_after_save) {\n'
20130515 '            var fn = todo_after_save;\n'
20130515 '            todo_after_save = false;\n'
20130515 '            fn();\n'
20130515 '        }\n'
20130515 '        //~ panel.containing_window.set_current_record(rec);\n'
20130515 '        panel.refresh();\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    //~ if (editor.ed.getContainer()) \n'
20130515 '    editor.ed.setProgressState(1); // Show progress\n'
20130515 '    saving = true;\n'
20130515 '    //~ console.log(a);\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '  };\n'
20130515 '  function save_callback() {\n'
20130515 '      save();\n'
20130515 '      //~ save(function(){editor.ed.setDirty(false);})\n'
20130515 '      /* return true have the save button disabled.  \n'
20130515 "      That's not perfect because the PUT is asynchronous \n"
20130515 '      and the response is not yet known.\n'
20130515 '      */\n'
20130515 '      return true;\n'
20130515 '  }\n'
20130515 '  //~ var actions = [\n'
20130515 '    //~ {text:"Save",handler:save}\n'
20130515 '  //~ ]; \n'
20130515 '  //~ console.log(20110610,panel.editor.disabled);\n'
20130515 '  var settings = {};\n'
20130515 '  Ext.apply(settings,{\n'
20130515 '        readonly: panel.editor.disabled,\n'
20130515 '        //~ language: "de",\n'
20130515 '        plugins : "save,emotions,spellchecker,advhr,insertdatetime,preview,table,searchreplace,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "save,cancel,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect,|,search,replace",\n'
20130515 '        theme_advanced_buttons2 : "cut,copy,paste,template,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,|,code,preview,|,forecolor,backcolor",\n'
20130515 '        theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions,|,tablecontrols",      \n'
20130515 '        theme_advanced_resizing : false,\n'
20130515 '        convert_urls : false,\n'
20130515 '        save_onsavecallback : save_callback,\n'
20130515 '        save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '  });\n'
20130515 '  Ext.apply(settings,options);\n'
20130515 '  var editor = new Ext.ux.TinyMCE({\n'
20130515 '      value : value,\n'
20130515 '      tinymceSettings: settings\n'
20130515 '    });\n'
20130515 '  var win = new Ext.Window({\n'
20130515 '    title: rec.title, \n'
20130515 '    //~ bbar: actions,\n'
20130515 "    layout: 'fit',\n"
20130515 '    items: editor,\n'
20130515 '    width: 600, \n'
20130515 '    height:500,\n'
20130515 '    minWidth: 100,\n'
20130515 '\t\tminHeight: 100,\n'
20130515 '    modal: true,\n'
20130515 '    resizable: true,\n'
20130515 '    maximizable: true,\n'
20130515 '    //~ maximized: true,\n'
20130515 '    //~ closeAction: "close"\n'
20130515 '    closeAction: "hide"\n'
20130515 '    //~ hideMode: "offsets",\n'
20130515 '    //~ constrainHeader: true,\n'
20130515 "    //~ bodyStyle: 'padding: 10px'\n"
20130515 '  });\n'
20130515 '\n'
20130515 "  //~ win.on('beforeclose',function() {\n"
20130515 "  win.on('beforehide',function() {\n"
20130515 '    if (todo_after_save) return false;\n'
20130515 '    if (discard_changes) return true;\n'
20130515 '    if (editor.isDirty()) {\n'
20130515 '        //~ var ok = false;\n'
20130515 '        //~ var allowClose = true;\n'
20130515 '        var config = {title:"Confirmation"};\n'
20130515 '        config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        config.msg = "Save changes to text ?";\n'
20130515 '        config.modal = true;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 "          //~ console.log('do_when_clean',buttonId)\n"
20130515 '          if (buttonId == "yes") {\n'
20130515 "              /* we cancel this close, but save()'s onSuccess will call again.*/\n"
20130515 '              //~ allowClose = false;\n'
20130515 '              todo_after_save = function(){win.hide();}\n'
20130515 "              editor.ed.execCommand('mceSave');\n"
20130515 '              //~ editor.ed.save(function(){win.close();});\n'
20130515 '          } else if (buttonId == "no") { \n'
20130515 '              discard_changes = true;\n'
20130515 '              win.hide()\n'
20130515 '          //~ } else if (buttonId == "cancel") { \n'
20130515 '            //~ ok = true;\n'
20130515 '              //~ allowClose = false;\n'
20130515 '          //~ } else { \n'
20130515 "            //~ console.log('unknwon buttonId:',buttonId);\n"
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return false;\n'
20130515 '        //~ return allowClose;\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '  win.show();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/* \n'
20130515 '  Originally copied from Ext JS Library 3.3.1\n'
20130515 '  Modifications by Luc Saffre : \n'
20130515 '  - rendering of phantom records\n'
20130515 '  - fire afteredit event\n'
20130515 '  - react on dblclcik, not on single click\n'
20130515 '\n'
20130515 ' */\n'
20130515 'Lino.CheckColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 '\n'
20130515 '    processEvent : function(name, e, grid, rowIndex, colIndex){\n'
20130515 "        //~ console.log('20110713 Lino.CheckColumn.processEvent',name)\n"
20130515 "        if (name == 'click') {\n"
20130515 "        //~ if (name == 'mousedown') {\n"
20130515 "        //~ if (name == 'dblclick') {\n"
20130515 '            return this.toggleValue(grid, rowIndex, colIndex);\n'
20130515 '        } else {\n'
20130515 '            return Ext.grid.ActionColumn.superclass.processEvent.apply(this, arguments);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    toggleValue : function (grid,rowIndex,colIndex) {\n'
20130515 '        var record = grid.store.getAt(rowIndex);\n'
20130515 '        var dataIndex = grid.colModel.getDataIndex(colIndex);\n'
20130515 '        // 20120514\n'
20130515 '        //~ if(record.data.disabled_fields && record.data.disabled_fields[dataIndex]) {\n'
20130515 '          //~ Lino.notify("This field is disabled");\n'
20130515 '          //~ return false;\n'
20130515 '        //~ }\n'
20130515 '      \n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("This field is disabled.");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        var startValue = record.data[dataIndex];\n'
20130515 '        var value = !startValue;\n'
20130515 '        //~ record.set(this.dataIndex, value);\n'
20130515 '        var e = {\n'
20130515 '            grid: grid,\n'
20130515 '            record: record,\n'
20130515 '            field: dataIndex,\n'
20130515 '            originalValue: startValue,\n'
20130515 '            value: value,\n'
20130515 '            row: rowIndex,\n'
20130515 '            column: colIndex,\n'
20130515 '            cancel: false\n'
20130515 '        };\n'
20130515 '        if(grid.fireEvent("beforeedit", e) !== false && !e.cancel){\n'
20130515 '        //~ if(grid.fireEvent("validateedit", e) !== false && !e.cancel){\n'
20130515 '            record.set(dataIndex, value);\n'
20130515 '            delete e.cancel;\n'
20130515 '            grid.fireEvent("afteredit", e);\n'
20130515 '        }\n'
20130515 '        return false; // Cancel event propagation\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    renderer : function(v, p, record){\n'
20130515 "        if (record.phantom) return '';\n"
20130515 "        p.css += ' x-grid3-check-col-td'; \n"
20130515 '        return String.format(\'<div class="x-grid3-check-col{0}">&#160;</div>\', v ? \'-on\' : \'\');\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // Deprecate use as a plugin. Remove in 4.0\n'
20130515 '    // init: Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 '// register ptype. Deprecate. Remove in 4.0\n'
20130515 "// Ext.preg('checkcolumn', Lino.CheckColumn);\n"
20130515 '\n'
20130515 '// backwards compat. Remove in 4.0\n'
20130515 '// Ext.grid.CheckColumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '// register Column xtype\n'
20130515 'Ext.grid.Column.types.checkcolumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '\n'
20130515 '/* 20110725 : \n'
20130515 'Lino.on_tab_activate is necessary \n'
20130515 'in contacts.Person.2.dtl \n'
20130515 "(but don't ask me why...)\n"
20130515 '*/\n'
20130515 'Lino.on_tab_activate = function(item) {\n'
20130515 "  //~ console.log('activate',item); \n"
20130515 '  if (item.rendered && item.doLayout) item.doLayout();\n'
20130515 '  //~ if (item.rendered) item.doLayout();\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.TimeField = Ext.extend(Ext.form.TimeField,{\n'
20130515 "  format: 'H:i',\n"
20130515 '  increment: 15\n'
20130515 '  });\n'
20130515 'Lino.DateField = Ext.extend(Ext.form.DateField,{\n'
20130515 '  boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  });\n'
20130515 'Lino.DatePickerField = Ext.extend(Ext.DatePicker,{\n'
20130515 '  //~ boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  //~ altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  formatDate : function(date){\n'
20130515 '      console.log("20121203 formatDate",this.name,date);\n'
20130515 '      return Ext.isDate(date) ? date.dateFormat(this.format) : date;\n'
20130515 '  }\n'
20130515 '  });\n'
20130515 'Lino.DateTimeField = Ext.extend(Ext.ux.form.DateTime,{\n'
20130515 "  dateFormat: 'd.m.Y',\n"
20130515 "  timeFormat: 'H:i',\n"
20130515 "  //~ hiddenFormat: 'd.m.Y H:i'\n"
20130515 '  });\n'
20130515 'Lino.URLField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 "  //~ triggerClass : 'x-form-world-trigger',\n"
20130515 "  vtype: 'url',\n"
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    window.open(this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 'Lino.IncompleteDateField = Ext.extend(Ext.form.TextField,{\n'
20130515 '  //~ regex: /^-?\\d+-[01]\\d-[0123]\\d$/,\n'
20130515 '  //~ regex: /^[0123]\\d\\.[01]\\d\\.-?\\d+$/,\n'
20130515 '  maxLength: 10,\n'
20130515 '  boxMinWidth: Lino.chars2width(10),\n'
20130515 '  regex: /^[0123]?\\d\\.[01]?\\d\\.-?\\d+$/,\n'
20130515 "  regexText: 'Enter a date in format YYYY-MM-DD (use zeroes for unknown parts).'\n"
20130515 '  });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.make_dropzone = function(cmp) {\n'
20130515 "    //~ cmp.on('render', function(ct, position){\n"
20130515 '      //~ ct.el.on({\n'
20130515 '        //~ dragenter:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,dragover:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ event.stopEvent();\n'
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,drop:{\n'
20130515 '          //~ scope:this\n'
20130515 '          //~ ,fn:function(event){\n'
20130515 '            //~ event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            //~ var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            //~ if(files === undefined){\n'
20130515 '              //~ return true;\n'
20130515 '            //~ }\n'
20130515 '            //~ var len = files.length;\n'
20130515 '            //~ while(--len >= 0){\n'
20130515 '              //~ console.log(files[len]);\n'
20130515 '              //~ // this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            //~ }\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ });\n'
20130515 '    //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.FileUploadField = Ext.ux.form.FileUploadField;\n'
20130515 '\n'
20130515 'Lino.FileUploadField = Ext.extend(Ext.ux.form.FileUploadField,{\n'
20130515 '    onRender : function(ct, position){\n'
20130515 '      Lino.FileUploadField.superclass.onRender.call(this, ct, position);\n'
20130515 '      this.el.on({\n'
20130515 '        dragenter:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,dragover:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          event.stopEvent();\n'
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,drop:{\n'
20130515 '          scope:this\n'
20130515 '          ,fn:function(event){\n'
20130515 '            event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            if(files === undefined){\n'
20130515 '              return true;\n'
20130515 '            }\n'
20130515 '            var len = files.length;\n'
20130515 '            while(--len >= 0){\n'
20130515 '              console.log(files[len]);\n'
20130515 '              //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.FileField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 '  editable: false,\n'
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    if (this.getValue()) window.open(MEDIA_URL + '/'+this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.file_field_handler = function(panel,config) {\n'
20130515 '  //~ if (instanceof Lino.DetailWrapper) {\n'
20130515 "  if (panel.action_name == 'insert') {\n"
20130515 '  //~ if (panel.get_current_record().phantom) {\n'
20130515 '      panel.has_file_upload = true;\n'
20130515 '\n'
20130515 '      var f = new Lino.FileUploadField(config);\n'
20130515 '      //~ Lino.make_dropzone(f);\n'
20130515 '      return f;\n'
20130515 '      //~ return new Ext.ux.form.FileUploadField(config);\n'
20130515 '      //~ return new Lino.FileField(config);\n'
20130515 '      \n'
20130515 '  } else {\n'
20130515 '      //~ return new Lino.URLField(config);\n'
20130515 '      return new Lino.FileField(config);\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.VBorderPanel = Ext.extend(Ext.Panel,{\n'
20130515 '    constructor : function(config) {\n'
20130515 "      config.layout = 'border';\n"
20130515 '      delete config.layoutConfig;\n'
20130515 '      Lino.VBorderPanel.superclass.constructor.call(this,config);\n'
20130515 '      for(var i=0; i < this.items.length;i++) {\n'
20130515 '        var item = this.items.get(i);\n'
20130515 '        if (this.isVertical(item) && item.collapsible) {\n'
20130515 "          item.on('collapse',this.onBodyResize,this);\n"
20130515 "          item.on('expand',this.onBodyResize,this);\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '    },\n'
20130515 '    isVertical : function(item) {\n'
20130515 "       return (item.region == 'north' || item.region == 'south' || item.region == 'center');\n"
20130515 '    },\n'
20130515 '    onBodyResize: function(w, h){\n'
20130515 "        //~ console.log('VBorderPanel.onBodyResize',this.title)\n"
20130515 '      if (this.isVisible()) { // to avoid "Uncaught TypeError: Cannot call method \'getHeight\' of undefined."\n'
20130515 '        var sumflex = 0;\n'
20130515 '        var availableHeight = this.getInnerHeight();\n'
20130515 '        var me = this;\n'
20130515 '        this.items.each(function(item){\n'
20130515 '          if (me.isVertical(item)) {\n'
20130515 '              if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  if (item.rendered) availableHeight -= item.getHeight();\n'
20130515 '              } else {\n'
20130515 '                  sumflex += item.flex;\n'
20130515 '              }\n'
20130515 '          } \n'
20130515 '          \n'
20130515 '        });\n'
20130515 '        //~ for(var i=0; i < this.items.length;i++) {\n'
20130515 '          //~ var item = this.items.get(i);\n'
20130515 '          //~ // if (this.isVertical(item) && item.getResizeEl()) {\n'
20130515 '          //~ if (this.isVertical(item)) {\n'
20130515 '              //~ if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  //~ // item.syncSize()\n'
20130515 '                  //~ // item.doLayout()\n'
20130515 '                  //~ // if (item.region == "north") console.log(\'region north\',item.getHeight(),item.id, item);\n'
20130515 "                  //~ // if (item.getHeight() == 0) console.log(20100921,'both flex and getHeight() are 0!');\n"
20130515 '                  //~ availableHeight -= item.getHeight();\n'
20130515 '              //~ } else {\n'
20130515 '                  //~ sumflex += item.flex;\n'
20130515 '                  //~ // console.log(item.flex);\n'
20130515 '              //~ }\n'
20130515 '          //~ } \n'
20130515 "          //~ // else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        //~ }\n'
20130515 '        var hunit = availableHeight / sumflex;\n'
20130515 "        //~ console.log('sumflex=',sumflex,'hunit=',hunit, 'availableHeight=',availableHeight);\n"
20130515 '        for(var i=0; i < this.items.length;i++) {\n'
20130515 '          var item = this.items.get(i);\n'
20130515 '          if (this.isVertical(item)) {\n'
20130515 '              if (item.flex != 0 && ! item.collapsed) {\n'
20130515 '                  item.setHeight(hunit * item.flex);\n'
20130515 "                  //~ console.log(item.region,' : height set to',item.getHeight());\n"
20130515 '              }\n'
20130515 '          }\n'
20130515 "          //~ else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '      Lino.VBorderPanel.superclass.onBodyResize.call(this, w, h);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 '  modifications to the standard behaviour of a CellSelectionModel:\n'
20130515 '  \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.grid.CellSelectionModel, {\n'
20130515 '//~ var dummy = {\n'
20130515 '\n'
20130515 '    handleKeyDown : function(e){\n'
20130515 "        /* removed because F2 wouldn't pass\n"
20130515 '        if(!e.isNavKeyPress()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        */\n'
20130515 "        //~ console.log('handleKeyDown',e)\n"
20130515 '        var k = e.getKey(),\n'
20130515 '            g = this.grid,\n'
20130515 '            s = this.selection,\n'
20130515 '            sm = this,\n'
20130515 '            walk = function(row, col, step){\n'
20130515 '                return g.walkCells(\n'
20130515 '                    row,\n'
20130515 '                    col,\n'
20130515 '                    step,\n'
20130515 '                    g.isEditor && g.editing ? sm.acceptsNav : sm.isSelectable, \n'
20130515 '                    sm\n'
20130515 '                );\n'
20130515 '            },\n'
20130515 '            cell, newCell, r, c, ae;\n'
20130515 '\n'
20130515 '        switch(k){\n'
20130515 '            case e.ESC:\n'
20130515 '            case e.PAGE_UP:\n'
20130515 '            case e.PAGE_DOWN:\n'
20130515 '                break;\n'
20130515 '            default:\n'
20130515 "                // e.stopEvent(); // removed because Browser keys like Alt-Home, Ctrl-R wouldn't work\n"
20130515 '                break;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        if(!s){\n'
20130515 '            cell = walk(0, 0, 1); \n'
20130515 '            if(cell){\n'
20130515 '                this.select(cell[0], cell[1]);\n'
20130515 '            }\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        cell = s.cell;  \n'
20130515 '        r = cell[0];    \n'
20130515 '        c = cell[1];    \n'
20130515 '        \n'
20130515 '        switch(k){\n'
20130515 '            case e.TAB:\n'
20130515 '                if(e.shiftKey){\n'
20130515 '                    newCell = walk(r, c - 1, -1);\n'
20130515 '                }else{\n'
20130515 '                    newCell = walk(r, c + 1, 1);\n'
20130515 '                }\n'
20130515 '                break;\n'
20130515 '            case e.HOME:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  if (!e.hasModifier()){\n'
20130515 '                      newCell = [r, 0];\n'
20130515 "                      //~ console.log('home',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '                      if (activePage > 1) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          t.moveFirst();\n'
20130515 '                          return;\n'
20130515 '                      }\n'
20130515 '                      newCell = [0, c];\n'
20130515 '                      break;\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.END:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  c = g.colModel.getColumnCount()-1;\n'
20130515 '                  if (!e.hasModifier()) {\n'
20130515 '                      newCell = [r, c];\n'
20130515 "                      //~ console.log('end',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var d = t.getPageData();\n'
20130515 '                      if (d.activePage < d.pages) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          var self = this;\n'
20130515 "                          t.on('change',function(tb,pageData) {\n"
20130515 '                              var r = g.store.getCount()-2;\n'
20130515 '                              self.select(r, c);\n'
20130515 "                              //~ console.log('change',r,c);\n"
20130515 '                          },this,{single:true});\n'
20130515 '                          t.moveLast();\n'
20130515 '                          return;\n'
20130515 '                      } else {\n'
20130515 '                          newCell = [g.store.getCount()-1, c];\n'
20130515 "                          //~ console.log('ctrl-end',newCell);\n"
20130515 '                          break;\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.DOWN:\n'
20130515 '                newCell = walk(r + 1, c, 1);\n'
20130515 '                break;\n'
20130515 '            case e.UP:\n'
20130515 '                newCell = walk(r - 1, c, -1);\n'
20130515 '                break;\n'
20130515 '            case e.RIGHT:\n'
20130515 '                newCell = walk(r, c + 1, 1);\n'
20130515 '                break;\n'
20130515 '            case e.LEFT:\n'
20130515 '                newCell = walk(r, c - 1, -1);\n'
20130515 '                break;\n'
20130515 '            case e.F2:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.isEditor && !g.editing) {\n'
20130515 '                        g.startEditing(r, c);\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.INSERT:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.ls_insert_handler && !g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.show_insert(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.DELETE:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (!g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.delete_selected(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.ENTER:\n'
20130515 '                e.stopEvent();\n'
20130515 '                g.onCellDblClick(r,c);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '\n'
20130515 '        if(newCell){\n'
20130515 '          e.stopEvent();\n'
20130515 '          r = newCell[0];\n'
20130515 '          c = newCell[1];\n'
20130515 '          this.select(r, c); \n'
20130515 '          if(g.isEditor && g.editing){ \n'
20130515 '            ae = g.activeEditor;\n'
20130515 '            if(ae && ae.field.triggerBlur){\n'
20130515 '                ae.field.triggerBlur();\n'
20130515 '            }\n'
20130515 '            g.startEditing(r, c);\n'
20130515 '          }\n'
20130515 '        //~ } else if (g.isEditor && !g.editing && e.charCode) {\n'
20130515 '        //~ // } else if (!e.isSpecialKey() && g.isEditor && !g.editing) {\n'
20130515 '            //~ g.set_start_value(String.fromCharCode(e.charCode));\n'
20130515 '            //~ // g.set_start_value(String.fromCharCode(k));\n'
20130515 '            //~ // g.set_start_value(e.charCode);\n'
20130515 '            //~ g.startEditing(r, c);\n'
20130515 '            //~ // e.stopEvent();\n'
20130515 '            //~ return;\n'
20130515 '        // } else {\n'
20130515 "          // console.log('20120513',e,g);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ };\n'
20130515 '});\n'
20130515 '\n'
20130515 ' \n'
20130515 '\n'
20130515 'function PseudoConsole() {\n'
20130515 '    this.log = function() {};\n'
20130515 '};\n'
20130515 "if (typeof(console) == 'undefined') console = new PseudoConsole();\n"
20130515 '\n'
20130515 'Lino.notify = function(msg) {\n'
20130515 "  if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg);\n"
20130515 '  Lino.status_bar.setStatus({\n'
20130515 '    text: msg,\n'
20130515 "    iconCls: 'ok-icon',\n"
20130515 '    clear: true // auto-clear after a set interval\n'
20130515 '  });\n'
20130515 "  //~ Ext.getCmp('konsole').setTitle(msg.replace(/\\n/g,'<br/>'));\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg.replace(/\\n/g,'<br/>'));\n"
20130515 '};\n'
20130515 'Lino.alert = function(msg) {\n'
20130515 "  //~ if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  Ext.MessageBox.alert('Notify',msg);\n"
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.show_about = function() {\n'
20130515 '  //~ new Ext.Window({\n'
20130515 '    //~ width: 400, height: 400,\n'
20130515 '    //~ title: "About",\n'
20130515 '    //~ html: \'<a href="http://www.extjs.com" target="_blank">ExtJS</a> version \' + Ext.version\n'
20130515 '  //~ }).show();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'function obj2str(o) {\n'
20130515 "  if (typeof o != 'object') return String(o);\n"
20130515 "  var s = '';\n"
20130515 '  for (var p in o) {\n'
20130515 "    s += p + ': ' + obj2str(o[p]) + '\\n';\n"
20130515 '  }\n'
20130515 '  return s;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.on_store_exception = function (store,type,action,options,response,arg) {\n'
20130515 '  //~ throw response;\n'
20130515 '  console.log("on_store_exception: store=",store,\n'
20130515 '    "type=",type,\n'
20130515 '    "action=",action,\n'
20130515 '    "options=",options,\n'
20130515 '    "response=",response,\n'
20130515 '    "arg=",arg);\n'
20130515 '  if (arg) { console.log(arg.stack)};\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.on_submit_success = function(form, action) {\n'
20130515 '   //~ Lino.notify(action.result.message);\n'
20130515 '   //~ this.close();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.on_submit_failure = function(form, action) {\n'
20130515 '    //~ Lino.notify();\n'
20130515 '  // action may be undefined\n'
20130515 '    switch (action.failureType) {\n'
20130515 '        case Ext.form.Action.CLIENT_INVALID:\n'
20130515 "            Ext.Msg.alert('Client-side failure', 'Form fields may not be submitted with invalid values');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.CONNECT_FAILURE:\n'
20130515 "            Ext.Msg.alert('Connection failure', 'Ajax communication failed');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.SERVER_INVALID:\n'
20130515 "            Ext.Msg.alert('Server-side failure', action.result.message);\n"
20130515 '   }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Lino.save_wc_handler = function(ww) {\n'
20130515 '  return function(event,toolEl,panel,tc) {\n'
20130515 '    var pos = panel.getPosition();\n'
20130515 '    var size = panel.getSize();\n'
20130515 '    wc = ww.get_window_config();\n'
20130515 '    Ext.applyIf(wc,{ \n'
20130515 '      x:pos[0],y:pos[1],height:size.height,width:size.width,\n'
20130515 '      maximized:panel.maximized});\n'
20130515 "    Lino.do_action(ww,{url:'/window_configs/'+ww.config.permalink_name,params:wc,method:'POST'});\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '*/\n'
20130515 '\n'
20130515 'Lino.show_in_own_window_button = function(handler) {\n'
20130515 '  return {\n'
20130515 '    qtip: "Show this panel in own window", \n'
20130515 '    id: "up",\n'
20130515 '    handler: function(event,toolEl,panel, tc) {\n'
20130515 "      //~ console.log('20111206 report_window_button',panel,handler);\n"
20130515 '      //~ var bp = ww.get_master_params();\n'
20130515 '      //~ panel.containing_window = ww; // for HtmlBox. see blog/2010/1022\n'
20130515 '      //~ handler(panel,{base_params:bp});\n'
20130515 '      //~ handler(panel,{base_params:panel.get_master_params()});\n'
20130515 '      handler.run(null,{base_params:panel.containing_panel.get_master_params()});\n'
20130515 '      //~ handler(panel,{master_panel:panel.containing_window.main_item});\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.delete_selected = function(panel) {\n'
20130515 '  //~ console.log("Lino.delete_selected",panel);\n'
20130515 '  var recs1 = panel.get_selected();\n'
20130515 '  var recs = [];\n'
20130515 '  for ( var i=0; i < recs1.length; i++ ) { if (! recs1[i].phantom) recs.push(recs1[i]); }\n'
20130515 '  if (recs.length == 0) {\n'
20130515 '    Lino.notify("Please select at least one record.");\n'
20130515 '    return;\n'
20130515 '  };\n'
20130515 '  if (recs.length == 1) {\n'
20130515 '      if (recs[0].disable_delete) {\n'
20130515 '        Lino.alert(recs[0].disable_delete);\n'
20130515 '        return;\n'
20130515 '      }\n'
20130515 '  };\n'
20130515 '  //~ console.log(recs);\n'
20130515 '  Ext.MessageBox.show({\n'
20130515 '    title: "Confirmation",\n'
20130515 '    msg: String.format("Delete {0} rows. Are you sure?",String(recs.length)),\n'
20130515 '    //~ msg: "Delete " + String(recs.length) + " rows. Are you sure?",\n'
20130515 '    //~ buttons: Ext.MessageBox.YESNOCANCEL,\n'
20130515 '    buttons: Ext.MessageBox.YESNO,\n'
20130515 '    fn: function(btn) {\n'
20130515 "      if (btn == 'yes') {\n"
20130515 '        for ( var i=0; i < recs.length; i++ ) {\n'
20130515 '          Lino.do_action(panel,{\n'
20130515 "              method:'DELETE',\n"
20130515 "              url:  '/api' + panel.ls_url + '/' + recs[i].id,\n"
20130515 '              after_success: panel.after_delete.createDelegate(panel)\n'
20130515 '          })\n'
20130515 '        }\n'
20130515 '        //~ caller.after_delete();\n'
20130515 '      }\n'
20130515 '      else Lino.notify("Dann eben nicht.");\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.action_handler = function (panel,on_success,on_confirm) {\n'
20130515 '  return function (response) {\n'
20130515 '    //~ console.log(20120608,panel);\n'
20130515 '    if (panel instanceof Lino.GridPanel) {\n'
20130515 '        //~ gridmode = false;\n'
20130515 '        gridmode = true;\n'
20130515 "        //~ console.log('20120608 yes');\n"
20130515 '    } else {\n'
20130515 '        gridmode = false;\n'
20130515 "        //~ console.log('20120608 no');\n"
20130515 '    }\n'
20130515 '    panel.loadMask.hide(); // 20120211\n'
20130515 '    if (!response.responseText) return ;\n'
20130515 '    var result = Ext.decode(response.responseText);\n'
20130515 "    //~ console.log('Lino.action_handler()','result is',result,'on_confirm is',on_confirm);\n"
20130515 '    \n'
20130515 '    if (result.eval_js) {\n'
20130515 '        //~ console.log(20120618,result.eval_js);\n'
20130515 '        eval(result.eval_js);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.xcallback) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        var config = {title:result.xcallback.title};\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        config.buttons = result.xcallback.buttons;\n'
20130515 '        config.msg = result.message;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 '          panel.loadMask.show(); \n'
20130515 '          //~ Lino.insert_subst_user(p);\n'
20130515 '          Ext.Ajax.request({\n'
20130515 "            method: 'GET',\n"
20130515 "            url: '/callbacks/'+result.xcallback.id + '/' + buttonId,\n"
20130515 '            //~ params: {bi: buttonId},\n'
20130515 '            success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '          });\n'
20130515 "          //~ Lino.call_ajax_action(panel,'GET',)\n"
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (on_success && result.success) on_success(result);\n'
20130515 '    \n'
20130515 '    //~ if (on_confirm && result.confirm_message) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        //~ // config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        //~ config.msg = result.confirm_message;\n'
20130515 '        //~ config.fn = function(buttonId,text,opt) {\n'
20130515 '          //~ if (buttonId == "yes") {\n'
20130515 '              //~ on_confirm(panel,undefined,result.step);\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '        //~ Ext.MessageBox.show(config);\n'
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    //~ if (result.dialog_fn) {\n'
20130515 "        //~ console.log('20120928 TODO',result.dialog_fn);\n"
20130515 '    //~ }\n'
20130515 '    if (result.message) {\n'
20130515 '        //~ if (result.alert && ! gridmode) {\n'
20130515 '        if (result.alert) { // 20120628b \n'
20130515 "            //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '            if (result.alert === true) result.alert = "Alert";\n'
20130515 '            Ext.MessageBox.alert(result.alert,result.message);\n'
20130515 '        } else {\n'
20130515 '            Lino.notify(result.message);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    // \n'
20130515 '    if (result.data_record && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 '        panel.set_status({data_record:result.data_record});\n'
20130515 '    }\n'
20130515 '    else if (result.new_status && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.set_status(result.new_status);\n'
20130515 '    }\n'
20130515 '    else if (result.goto_record_id != undefined && ! gridmode) {\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.load_record_id(result.goto_record_id);\n'
20130515 '    }\n'
20130515 '    else if (result.refresh_all) {\n'
20130515 '        var cw = panel.get_containing_window();\n'
20130515 '        //~ console.log("20120123 refresh_all");\n'
20130515 '        if (cw) {\n'
20130515 '          cw.main_item.refresh();\n'
20130515 '        }\n'
20130515 '        else console.log("20120123 cannot refresh_all",panel);\n'
20130515 '    } else {\n'
20130515 '        //~ console.log("20121212 b gonna refresh",panel);\n'
20130515 '        if (result.refresh) panel.refresh();\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.open_url) {\n'
20130515 '        //~ console.log(20111126,result.open_url);\n'
20130515 '        //~ if (!result.message)\n'
20130515 '            //~ Lino.notify(\'Open new window <a href="\'+result.open_url+\'" target="_blank">\'+result.open_url+\'</a>\');\n'
20130515 '        window.open(result.open_url,\'foo\',"");\n'
20130515 '        //~ document.location = result.open_url;\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.do_action = function(caller,action) {\n'
20130515 '  action.success = function(response) {\n'
20130515 '    if (caller.loadMask) caller.loadMask.hide();\n'
20130515 "    //~ console.log('Lino.do_action()',action,'action success',response);\n"
20130515 '    if (action.after_success) {\n'
20130515 "        //~ console.log('Lino.do_action() calling after_success');\n"
20130515 '        action.after_success();\n'
20130515 '    }\n'
20130515 '    if (response.responseText) {\n'
20130515 '      var result = Ext.decode(response.responseText);\n'
20130515 "      //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '      if (result.message) {\n'
20130515 '          if (result.alert) {\n'
20130515 "              //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "              Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '          } else {\n'
20130515 '              Lino.notify(result.message);\n'
20130515 '          }\n'
20130515 '      }\n'
20130515 '      \n'
20130515 "      //~ if (result.alert_msg) Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '      //~ if (result.message) Lino.notify(result.message);\n'
20130515 '      if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '      if (result.js_code) { \n'
20130515 "        //~ console.log('Lino.do_action()',action,'gonna call js_code in',result);\n"
20130515 '        var jsr = result.js_code(caller);\n'
20130515 "        //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '        if (action.after_js_code) {\n'
20130515 "          //~ console.log('Lino.do_action()',action,'gonna call after_js_code');\n"
20130515 '          action.after_js_code(jsr);\n'
20130515 "          //~ console.log('Lino.do_action()',action,'returned from after_js_code');\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('Lino.do_action()',action,' : after_js_code is false');\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '    }\n'
20130515 '  };\n'
20130515 '  Ext.applyIf(action,{\n'
20130515 '    waitMsg: "Please wait...",\n'
20130515 '    failure: Lino.ajax_error_handler(caller),\n'
20130515 '    params: {}\n'
20130515 '  });\n'
20130515 '  //~ action.params.su = Lino.subst_user;\n'
20130515 '  Lino.insert_subst_user(action.params);\n'
20130515 '  \n'
20130515 '  Ext.Ajax.request(action);\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gup = function( name )\n'
20130515 '//~ {\n'
20130515 '  //~ // Thanks to http://www.netlobo.com/url_query_string_javascript.html\n'
20130515 '  //~ name = name.replace(/[\\[]/,"\\\\\\[").replace(/[\\]]/,"\\\\\\]");\n'
20130515 '  //~ var regexS = "[\\\\?&]"+name+"=([^&#]*)";\n'
20130515 '  //~ var regex = new RegExp( regexS );\n'
20130515 '  //~ var results = regex.exec( window.location.href );\n'
20130515 '  //~ if( results == null )\n'
20130515 '    //~ return "";\n'
20130515 '  //~ else\n'
20130515 '    //~ return results[1];\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.refresh_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 "      //~ console.log('refresh',ww);\n"
20130515 '      //~ ww.main_item.doLayout(false,true);\n'
20130515 '      //~ ww.main_item.syncSize();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.tools_close_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 '      //~ ww.close();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 'Lino.permalink_handler = function (ww) {\n'
20130515 '  return function() { \n'
20130515 '    //~ console.log(20100923,ww.get_permalink());\n'
20130515 '    //~ document.location = ww.main_item.get_permalink();\n'
20130515 '    Lino.load_url(ww.main_item.get_permalink());\n'
20130515 '    //~ console.log(20120715, ww.main_item.get_permalink());\n'
20130515 '    //~ document.location = "?permalink=" + ww.get_permalink();\n'
20130515 '    //~ document.location = "?permalink=" + ww.config.permalink_name +\'()\';\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '//~ Lino.run_permalink = function() {\n'
20130515 "  //~ var plink = Lino.gup('permalink');\n"
20130515 "  //~ if(plink) { eval('Lino.'+plink); }\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.MainPanel = {\n'
20130515 '  is_home_page : false,\n'
20130515 '  setting_param_values : false,\n'
20130515 '  config_containing_window : function(wincfg) { }\n'
20130515 '  ,init_containing_window : function(win) { }\n'
20130515 '  ,is_loading : function() { return true; } // overridden by subclasses\n'
20130515 '  ,do_when_clean : function(auto_save,todo) { todo() }\n'
20130515 '  ,get_master_params : function() {\n'
20130515 '    var p = {}\n'
20130515 "    p['mt'] = this.content_type; \n"
20130515 '    rec = this.get_current_record()\n'
20130515 '    if (rec) {\n'
20130515 '      if (rec.phantom) {\n'
20130515 "          p['mk'] = undefined; \n"
20130515 '      }else{\n'
20130515 "          p['mk'] = rec.id; \n"
20130515 '      }\n'
20130515 '    } else {\n'
20130515 "      p['mk'] = undefined;\n"
20130515 '    }\n'
20130515 "    //~ console.log('get_master_params returns',p,'using record',rec);\n"
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,get_permalink : function() {\n'
20130515 '    //~ var p = this.main_item.get_base_params() || {};\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    delete p.fmt;\n'
20130515 '    //~ if (p.fmt) delete p.fmt;\n'
20130515 '    Ext.apply(p,this.get_permalink_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "     //~ p.fmt = 'html';\n"
20130515 "    //~ console.log('get_permalink',p,this.get_permalink_params());\n"
20130515 '    if (this.is_home_page)\n'
20130515 "        //~ var url = '';\n"
20130515 "        var url = '/';\n"
20130515 '    else \n'
20130515 '        var url = this.get_permalink_url();\n'
20130515 '    if (p.su == null) \n'
20130515 '        delete p.su;\n'
20130515 '    if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '    return url;\n'
20130515 '  }\n'
20130515 '  ,get_record_url : function(record_id) {\n'
20130515 "      var url = '/api' + this.ls_url\n"
20130515 '      //~ var url = this.containing_window.config.url_data; // ls_url;\n'
20130515 "      url += '/' + (record_id === undefined ? '-99999' : String(record_id));\n"
20130515 "      //~ if (record_id !== undefined) url += '/' + String(record_id);\n"
20130515 "      //~ url += '/' + String(record_id);\n"
20130515 '      return url;\n'
20130515 '  }\n'
20130515 '  ,get_permalink_url : function() {\n'
20130515 "      return '/api' + this.ls_url;\n"
20130515 '  }\n'
20130515 '  ,get_permalink_params : function() {\n'
20130515 "      //~ return {an:'grid'};\n"
20130515 '      var p = {};\n'
20130515 '      if (this.action_name)\n'
20130515 '          p.an = this.action_name;\n'
20130515 '      this.add_param_values(p)\n'
20130515 '      return p;\n'
20130515 '  }\n'
20130515 '  ,set_status : function(status) {}\n'
20130515 '  ,get_status : function() { return {}}\n'
20130515 '  ,refresh : function() {}\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,add_params_panel : function (tbar) {\n'
20130515 '      if (this.params_panel) {\n'
20130515 '        tbar = tbar.concat([{ scope:this, \n'
20130515 '          //~ text: "$_("[parameters]")", // gear\n'
20130515 "          iconCls: 'x-tbar-parameters',\n"
20130515 '          tooltip:"Show or hide the table parameters panel",\n'
20130515 '          enableToggle: true,\n'
20130515 '          //~ pressed: ! this.params_panel.hidden,\n'
20130515 '          pressed: ! this.params_panel_hidden,\n'
20130515 '          toggleHandler: function(btn,state) { \n'
20130515 '            //~ if (this.params_panel.isVisible()) \n'
20130515 '                //~ this.params_panel.hide();\n'
20130515 '            //~ else\n'
20130515 '                //~ this.params_panel.show();\n'
20130515 '            //~ console.log("20120210 add_params_panel",state,this.params_panel);\n'
20130515 '            if (state) {\n'
20130515 '              this.params_panel.show();\n'
20130515 '              this.params_panel.doLayout();\n'
20130515 '            } else this.params_panel.hide();\n'
20130515 '            this.get_containing_window().doLayout();\n'
20130515 '          }\n'
20130515 '        }]);\n'
20130515 '        var t = this;\n'
20130515 '        var refresh = function() {if (!t.setting_param_values) t.refresh();}\n'
20130515 '        Ext.each(this.params_panel.fields,function(f) {\n'
20130515 "          //~ f.on('valid',function() {t.refresh()});\n"
20130515 '          if (f instanceof Ext.form.Checkbox) {\n'
20130515 "              f.on('check',refresh);\n"
20130515 '          } else if (f instanceof Ext.DatePicker) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 '          } else if (f instanceof Ext.form.TriggerField) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 "              //~ f.on('change',refresh);\n"
20130515 "              //~ f.on('valid',refresh);\n"
20130515 '          } else {\n'
20130515 '              if (! f.on) \n'
20130515 '                  console.log("20121010 no method \'on\'",f);\n'
20130515 '              else\n'
20130515 "                  f.on('change',refresh);\n"
20130515 '            }\n'
20130515 '          });\n'
20130515 '      }\n'
20130515 '      return tbar;\n'
20130515 '  }\n'
20130515 '  ,add_param_values : function (p) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 '      /* \n'
20130515 '      20120918 add param_values to the request string \n'
20130515 '      *only if the params_form is dirty*.\n'
20130515 '      Otherwise Actor.default_params() would never be used.\n'
20130515 '      \n'
20130515 '      20121023 But IntegClients.params_default has non-empty default values. \n'
20130515 '      Users must have the possibility to make them empty.\n'
20130515 '      */\n'
20130515 '      if (this.params_panel.form.isDirty()) {\n'
20130515 '        p.pv = this.get_param_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_param_values) \n'
20130515 '          p.pv = Lino.fields2array(\n'
20130515 '            this.params_panel.fields,this.status_param_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.params_panel.form.isDirty()) return;\n'
20130515 '      //~ p.pv = this.get_param_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  get_param_values : function() { // similar to get_field_values()\n'
20130515 '      return Lino.fields2array(this.params_panel.fields);\n'
20130515 '  },\n'
20130515 '  set_param_values : function(pv) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_param_values = pv;\n'
20130515 '      //~ this.params_panel.form.suspendEvents(false);\n'
20130515 '      this.setting_param_values = true;\n'
20130515 '      if (pv) { \n'
20130515 '          this.params_panel.form.my_loadRecord(pv);\n'
20130515 '      } else { \n'
20130515 '        this.params_panel.form.reset(); \n'
20130515 '      }\n'
20130515 '      this.setting_param_values = false;\n'
20130515 '      //~ this.params_panel.form.resumeEvents();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ajax_error_handler = function(panel) {\n'
20130515 '  return function(response,options) {\n'
20130515 "    console.log('Ajax failure:',response,options);\n"
20130515 '    if (panel.loadMask) panel.loadMask.hide();\n'
20130515 '    if (response.responseText) {\n'
20130515 "      var lines = response.responseText.split('\\n');\n"
20130515 '      if (lines.length > 10) {\n'
20130515 '          line = lines.splice(5,lines.length-10,"(...)");\n'
20130515 '      }\n'
20130515 '      Ext.MessageBox.alert(\n'
20130515 '        response.statusText,\n'
20130515 "        lines.join('<br/>')\n"
20130515 "        //~ response.responseText.replace(/\\n/g,'<br/>'))\n"
20130515 '      )\n'
20130515 '    } else {\n'
20130515 "      Ext.MessageBox.alert('Action failed',\n"
20130515 "        'Lino server did not respond to Ajax request');\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 "// Ext.Ajax.on('requestexception',Lino.ajax_error_handler)\n"
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 'Ext.QuickTips.init();\n'
20130515 '\n'
20130515 '/* setting QuickTips dismissDelay to 0 */\n'
20130515 '// Apply a set of config properties to the singleton\n'
20130515 '//~ Ext.apply(Ext.QuickTips.getQuickTip(), {\n'
20130515 '//~ Ext.apply(Ext.ToolTip, {\n'
20130515 '    //~ dismissDelay: 0\n'
20130515 '    //~ autoHide: false,\n'
20130515 '    //~ closable: true,\n'
20130515 '    //~ maxWidth: 200,\n'
20130515 '    //~ minWidth: 100,\n'
20130515 '    //~ showDelay: 50      // Show 50ms after entering target\n'
20130515 '    //~ ,trackMouse: true\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Ext.apply(Ext.QuickTip, {\n'
20130515 '    //~ dismissDelay: 0,\n'
20130515 '//~ });\n'
20130515 '  \n'
20130515 'Lino.quicktip_renderer = function(title,body) {\n'
20130515 '  return function(c) {\n'
20130515 '    //~ if (c instanceof Ext.Panel) var t = c.bwrap; else // 20130129\n'
20130515 '    if (c instanceof Ext.Panel) var t = c.header; else // 20130129\n'
20130515 '    var t = c.getEl();\n'
20130515 '    //~ console.log(20130129,t,title,body);\n'
20130515 '    //~ t.dismissDelay = 0;\n'
20130515 '    Ext.QuickTips.register({\n'
20130515 '      target: t,\n'
20130515 "      //~ cls: 'lino-quicktip-classical',\n"
20130515 '      dismissDelay: 0,\n'
20130515 '      //~ autoHide: false,\n'
20130515 '      showDelay: 50,      // Show 50ms after entering target\n'
20130515 '      //~ title: title,\n'
20130515 '      text: body\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '  \n'
20130515 'Lino.help_text_editor = function() {\n'
20130515 '  //~ var bp = {\n'
20130515 '      //~ mk:this.content_type,\n'
20130515 '      //~ mt:1\n'
20130515 '    //~ };\n'
20130515 '    //~ console.log(20120202,bp);\n'
20130515 '  //~ Lino.lino.ContentTypes.detail({},{base_params:bp});\n'
20130515 '  //~ Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '  Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '}\n'
20130515 '\n'
20130515 '// Path to the blank image should point to a valid location on your server\n'
20130515 "//~ Ext.BLANK_IMAGE_URL = MEDIA_URL + '/extjs/resources/images/default/s.gif'; \n"
20130515 '\n'
20130515 '\n'
20130515 '// used as Ext.grid.Column.renderer for id columns in order to hide the special id value -99999\n'
20130515 'Lino.id_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.raw_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.text_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return "not implemented"; \n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.NullNumberColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 "    align : 'right', \n"
20130515 "    format : '0,00/i', \n"
20130515 '    renderer : function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '        //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "        if (value === null) return '';\n"
20130515 '        return Ext.util.Format.number(value, this.format);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.NullNumberColumn = Ext.extend(Ext.grid.NumberColumn, {\n'
20130515 "    //~ align : 'right', \n"
20130515 '    //~ constructor: function(cfg){\n'
20130515 '        //~ Ext.grid.NumberColumn.superclass.constructor.call(this, cfg);\n'
20130515 '        //~ var t = this;\n'
20130515 '        //~ this.renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '          //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "          //~ if (value === null) return '';\n"
20130515 '          //~ return Ext.util.Format.number(value, t.format);\n'
20130515 '      //~ };\n'
20130515 '    //~ }\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.cell_button_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return \'<input type="button" onclick="alert(value)" value=" ? ">\' ;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.default_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  //~ return value;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.fk_renderer = function(fkname,handlername) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    //~ if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'.run(null,{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.lfk_renderer = function(panel,fkname) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 "  var handlername = 'console.log';\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'({},{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gfk_renderer = function() {\n'
20130515 '  //~ return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ if (record.phantom) return '';\n"
20130515 "    //~ console.log('Lino.gfk_renderer',value,colIndex,record,metaData,store);\n"
20130515 '    //~ return value;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.build_buttons = function(panel,actions) {\n'
20130515 '  //~ console.log("20121006 Lino.build_buttons",actions);\n'
20130515 '  if (actions) {\n'
20130515 '    var buttons = Array(actions.length);\n'
20130515 '    var cmenu = Array(actions.length);\n'
20130515 '    for (var i=0; i < actions.length; i++) { \n'
20130515 '      buttons[i] = new Ext.Toolbar.Button(actions[i]);\n'
20130515 '      cmenu[i] = actions[i]\n'
20130515 '      cmenu[i].text = actions[i].menu_item_text;\n'
20130515 '      if (actions[i].panel_btn_handler) {\n'
20130515 '          var h = actions[i].panel_btn_handler.createCallback(panel,buttons[i]);\n'
20130515 '          //~ if (actions[i].must_save) {\n'
20130515 '          if (actions[i].auto_save == true) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[true,h]));\n"
20130515 '          } else if (actions[i].auto_save == null) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[false,h]));\n"
20130515 '          } else if (actions[i].auto_save == false) {\n'
20130515 "              buttons[i].on('click',h);\n"
20130515 '          } else {\n'
20130515 '              console.log("20120703 unhandled auto_save value",actions[i])\n'
20130515 '          }\n'
20130515 '          cmenu[i].handler = actions[i].panel_btn_handler.createCallback(panel,cmenu[i]);\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    return {bbar:buttons, cmenu:new Ext.menu.Menu(cmenu)};\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.do_when_visible = function(cmp,todo) {\n'
20130515 '  //~ if (cmp.el && cmp.el.dom) \n'
20130515 '  if (cmp.isVisible()) { \n'
20130515 "    // 'visible' means 'rendered and not hidden'\n"
20130515 "    //~ console.log(cmp.title,'-> cmp is visible now');\n"
20130515 '    todo(); \n'
20130515 '  //~ } else {\n'
20130515 "      //~ cmp.on('resize',todo,cmp,{single:true});\n"
20130515 '  //~ }\n'
20130515 '  //~ if (false) { // 20120213\n'
20130515 '  } else { \n'
20130515 "    //~ console.log('Lino.do_when_visible() must defer because not isVisible()',todo,cmp);\n"
20130515 '    if (cmp.rendered) {\n'
20130515 "      //~ console.log(cmp,'-> cmp is rendered but not visible: and now?');\n"
20130515 "      //~ console.log(cmp.title,'-> cmp is rendered but not visible: try again in a moment...');\n"
20130515 '      //~ var fn = function() {Lino.do_when_visible(cmp,todo)};\n'
20130515 '      //~ fn.defer(100);\n'
20130515 '      \n'
20130515 '      Lino.do_when_visible.defer(50,this,[cmp,todo]);\n'
20130515 '      //~ Lino.do_when_visible.defer(100,this,[cmp,todo]);\n'
20130515 '      \n'
20130515 '    } else {\n'
20130515 "      //~ console.log(cmp.title,'-> after render');\n"
20130515 "      cmp.on('afterrender',todo,cmp,{single:true});\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '};    \n'
20130515 '\n'
20130515 '/*\n'
20130515 '*/\n'
20130515 'Lino.do_on_current_record = function(panel,fn,phantom_fn) {\n'
20130515 '  var rec = panel.get_current_record();\n'
20130515 '  if (rec == undefined) {\n'
20130515 '    Lino.notify("There\'s no selected record.");\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  // 20120307 A VirtualTable with a Detail (lino.Models) has only "phantom" records.\n'
20130515 '  if (rec.phantom) {\n'
20130515 '    //~ if (!panel.editable) { console.log("20120312 not editable:",panel)}\n'
20130515 '    if (phantom_fn) {\n'
20130515 '      phantom_fn(panel);\n'
20130515 '    } else {\n'
20130515 '      Lino.notify("Action not available on phantom record.");\n'
20130515 '    }\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  return fn(rec);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.call_ajax_action = function(panel,method,url,p,actionName,step,on_confirm,on_success) {\n'
20130515 '  p.an = actionName;\n'
20130515 '  if (!panel) panel = Lino.viewport;\n'
20130515 '  Ext.apply(p,panel.get_base_params());\n'
20130515 '  //~ console.log("20121212 Lino.call_ajax_action",panel);\n'
20130515 '  panel.loadMask.show(); \n'
20130515 '  //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 '  //~ Lino.insert_subst_user(p);\n'
20130515 '    \n'
20130515 "  //~ if (step) p['$ext_requests.URL_PARAM_ACTION_STEP'] = step;\n"
20130515 '  //~ if (pp) pp(p); // "parameter processor" : first used for read beid card\n'
20130515 '  Ext.Ajax.request({\n'
20130515 '    method: method,\n'
20130515 '    url: url,\n'
20130515 '    params: p,\n'
20130515 '    success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.row_action_handler = function(actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      if (pp) { p = pp(); if (! p) return; }\n'
20130515 '      Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '          //~ console.log(panel);\n'
20130515 '          //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '          Lino.call_ajax_action(panel,hm,panel.get_record_url(rec.id),p,actionName,step,fn);\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.list_action_handler = function(ls_url,actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 "  var url = '/api' + ls_url\n"
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      //~ console.log("20121210 Lino.list_action_handler",arguments);\n'
20130515 "      //~ var url = ADMIN_URL + '/api' + panel.ls_url\n"
20130515 '      if (pp) { p = pp();  if (! p) return; }\n'
20130515 '      Lino.call_ajax_action(panel,hm,url,p,actionName,step,fn);\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.param_action_handler = function(window_action) { // 20121012\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '      //~ console.log(panel);\n'
20130515 '      //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '      window_action.run(panel.getId(),{}); \n'
20130515 '    });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.run_row_action = function(requesting_panel,url,pk,actionName,pp) {\n'
20130515 '  //~ var panel = action.get_window().main_item;\n'
20130515 "  url = '/api' + url  + '/' + pk;\n"
20130515 '  var panel = Ext.getCmp(requesting_panel);\n'
20130515 '  if (pp) var p = pp(); else var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    //~ 20120723 Lino.call_ajax_action(panel,pk,actionName,step,fn);\n'
20130515 "    Lino.call_ajax_action(panel,'GET',url,p,actionName,step,fn);\n"
20130515 '  }\n'
20130515 '  fn(panel,null,null);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_detail = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel, \n'
20130515 '    function(rec) {\n'
20130515 '      //~ panel.loadMask.show();\n'
20130515 '      var bp = panel.get_base_params();\n'
20130515 '      //~ var bp = {};\n'
20130515 '      panel.add_param_values(bp); // 20120918\n'
20130515 '      var status = {\n'
20130515 '        record_id:rec.id,\n'
20130515 '        base_params:bp\n'
20130515 '        //~ param_values: pv.$ext_requests.URL_PARAM_PARAM_VALUES\n'
20130515 '      }\n'
20130515 '      //~ console.log("20120918 Lino.show_detail",status);\n'
20130515 '      panel.ls_detail_handler.run(null,status);\n'
20130515 '      //~ panel.loadMask.hide();\n'
20130515 '      //~ panel.containing_window.window.hideMask();\n'
20130515 '      //~ panel.el.unmask();\n'
20130515 '    },\n'
20130515 '    Lino.show_insert\n'
20130515 '  );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_fk_detail = function(combo,detail_action) {\n'
20130515 '    //~ console.log("Lino.show_fk_detail",combo,handler);\n'
20130515 '    pk = combo.getValue();\n'
20130515 '    if (pk) {\n'
20130515 '        detail_action.run(null,{record_id: pk})\n'
20130515 '      } else {\n'
20130515 '        Lino.notify("Cannot show detail for empty foreign key.");\n'
20130515 '      }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert = function(panel,btn) {\n'
20130515 '  var bp = panel.get_base_params();\n'
20130515 "  //~ console.log('20120125 Lino.show_insert',bp)\n"
20130515 '  //~ panel.ls_insert_handler.run(null,{record_id:-99999,base_params:bp});\n'
20130515 '  panel.ls_insert_handler.run(panel.getId(),{record_id:-99999,base_params:bp});\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert_duplicate = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel,\n'
20130515 '    function(rec) {\n'
20130515 '      var newRec = {};\n'
20130515 '      Ext.apply(newRec,rec);\n'
20130515 '      newRec.id = -99999;\n'
20130515 '      panel.ls_insert_handler.run(null,{data_record:rec});\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.update_row_handler = function(action_name) {\n'
20130515 '  //~ return function(panel,btn) {\n'
20130515 '    //~ Lino.notify("Sorry, " + action_name + " is not implemented.");\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'if (Ext.ux.grid !== undefined) {\n'
20130515 '    Lino.GridFilters = Ext.extend(Ext.ux.grid.GridFilters,{\n'
20130515 '      encode:true,\n'
20130515 '      local:false\n'
20130515 '    });\n'
20130515 '} else {\n'
20130515 '    Lino.GridFilters = function() {}; // dummy\n'
20130515 '    Ext.override(Lino.GridFilters,{\n'
20130515 '      init : function() {}\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.TextField,{\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.Field,{\n'
20130515 '    //~ editable : false,\n'
20130515 '    //~ constructor : function(ww,config,params){\n'
20130515 '      //~ this.containing_window = ww;\n'
20130515 '      //~ if (params) Ext.apply(config,params);\n'
20130515 '      //~ Lino.ButtonField.superclass.constructor.call(this, config);\n'
20130515 '    //~ },\n'
20130515 '    //~ setButtons : function(buttons){\n'
20130515 "      //~ console.log('setButtons',buttons);\n"
20130515 '    //~ },\n'
20130515 '    //~ onRender : function(ct, position){\n'
20130515 '        //~ if(!this.el){\n'
20130515 '            //~ this.panel = new Ext.Container({items:[\n'
20130515 "              //~ {xtype:'button',text:'upload'},\n"
20130515 "              //~ {xtype:'button',text:'show'},\n"
20130515 "              //~ {xtype:'button',text:'edit'}\n"
20130515 '            //~ ]});\n'
20130515 '            //~ this.panel.ownerCt = this;\n'
20130515 '            //~ this.el = this.panel.getEl();\n'
20130515 '\n'
20130515 '        //~ }\n'
20130515 '        //~ Lino.ButtonField.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '  \n'
20130515 '//~ });\n'
20130515 '\n'
20130515 'Lino.FieldBoxMixin = {\n'
20130515 '  before_init : function(config,params) {\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    if (actions) config.bbar = actions.bbar;\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.containing_window = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  do_when_clean : function(auto_save,todo) { todo() },\n'
20130515 '  //~ format_data : function(html) { return \'<div class="htmlText">\' + html + \'</div>\' },\n'
20130515 '  format_data : function(html) { return html },\n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '    //~ if (p.param_values) this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,{\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  constructor : function(config,params) {\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    Lino.HtmlBoxPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.constructor.call(this, ww,config,params);\n'
20130515 '  //~ },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  //~ disable : function() { var tb = this.getBottomToolbar(); if(tb) tb.disable()},\n'
20130515 '  //~ enable : function() { var tb = this.getBottomToolbar(); if(tb) tb.enable()},\n'
20130515 '  onRender : function(ct, position){\n'
20130515 '    Lino.HtmlBoxPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ console.log(20111125,this.containing_window);\n'
20130515 '    if (this.containing_panel) {\n'
20130515 "      this.containing_panel.on('enable',this.enable,this);\n"
20130515 "      this.containing_panel.on('disable',this.disable,this);\n"
20130515 '    }\n'
20130515 '    this.el.on({\n'
20130515 '      dragenter:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,dragover:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        event.stopEvent();\n'
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,drop:{\n'
20130515 '        scope:this\n'
20130515 '        ,fn:function(event){\n'
20130515 '          event.stopEvent();\n'
20130515 '          //~ console.log(20110516);\n'
20130515 '          var files = event.browserEvent.dataTransfer.files;\n'
20130515 '          if(files === undefined){\n'
20130515 '            return true;\n'
20130515 '          }\n'
20130515 '          var len = files.length;\n'
20130515 '          while(--len >= 0){\n'
20130515 '            console.log(files[len]);\n'
20130515 '            //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '          }\n'
20130515 '          Lino.show_insert(this);\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '      var record = this.containing_panel.get_current_record();\n'
20130515 "      //~ console.log('HtmlBox.refresh()',this.title,record,record.title);\n"
20130515 '      var box = this.items.get(0);\n'
20130515 '      var todo = function() {\n'
20130515 '        if (this.disabled) return;\n'
20130515 '        //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '        var el = box.getEl();\n'
20130515 '        if (el) {\n'
20130515 "          el.update(record ? this.format_data(record.data[this.name]) : '');\n"
20130515 "          //~ console.log('HtmlBox.refresh()',this.name);\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('HtmlBox.refresh() failed for',this.name);\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '      Lino.do_when_visible(box,todo.createDelegate(this));\n'
20130515 '    //~ }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.RichTextPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,{\n'
20130515 '    \n'
20130515 '  //~ initComponent : function(){\n'
20130515 '    //~ Lino.RichTextPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ },\n'
20130515 '  constructor : function(config,params) {\n'
20130515 "    //~ console.log('Lino.RichTextPanel.initComponent',this);\n"
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + String(rec.id) + "/" + config.name;\n'
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + config.name;\n'
20130515 '    var t = this;\n'
20130515 '    var tinymce_options = {\n'
20130515 '        theme : "advanced",\n'
20130515 "        content_css: '/media/lino/extjs/lino.css',\n"
20130515 "        language: 'de',\n"
20130515 '        //~ template_external_list_url : url,\n'
20130515 '        theme_advanced_toolbar_location : "top",\n'
20130515 '        theme_advanced_toolbar_align : "left",\n'
20130515 '        theme_advanced_statusbar_location : "bottom",\n'
20130515 '        template_popup_width : 700,\n'
20130515 '        template_popup_height : 500,\n'
20130515 '        template_replace_values : { \n'
20130515 '            data_field : function(element){ \n'
20130515 '                //~ console.log(20110722,fieldName,t.containing_window.get_current_record()); \n'
20130515 '                var fieldName = element.innerHTML;\n'
20130515 '                element.innerHTML = t.containing_panel.get_current_record().data[fieldName];\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '    var editorConfig = {\n'
20130515 '      tinymceSettings: {\n'
20130515 '        plugins : "noneditable,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,template",\n'
20130515 '        theme_advanced_buttons2 : "",\n'
20130515 '        theme_advanced_buttons3 : "", // ,|,sub,sup,|,charmap",      \n'
20130515 '        theme_advanced_resizing : false\n'
20130515 '        //~ save_onsavecallback : save_callback,\n'
20130515 '        //~ save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '        \n'
20130515 '    }};\n'
20130515 '    Ext.apply(editorConfig.tinymceSettings,tinymce_options);\n'
20130515 '    //~ editorConfig.name = config.action_name;\n'
20130515 '    editorConfig.name = config.name;\n'
20130515 '    delete config.name;\n'
20130515 '    //~ config.title = config.label;\n'
20130515 '    //~ delete config.label;\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    \n'
20130515 '    this.editor = new Ext.ux.TinyMCE(editorConfig);\n'
20130515 '    var t = this;\n'
20130515 '    config.tools = [{\n'
20130515 '                      qtip: "Edit text in own window", \n'
20130515 '                      id: "up",\n'
20130515 '                      handler: function(){\n'
20130515 '                        if(t.editor.isDirty()) {\n'
20130515 '                            var record = t.containing_panel.get_current_record();\n'
20130515 '                            record.data[t.editor.name] = t.editor.getValue();\n'
20130515 '                        }\n'
20130515 '                        Lino.edit_tinymce_text(t,tinymce_options)\n'
20130515 '                      }\n'
20130515 '                    }];\n'
20130515 '    \n'
20130515 '    config.items = this.editor;\n'
20130515 '    config.layout = "fit";\n'
20130515 '    Lino.RichTextPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    var record = this.containing_panel.get_current_record();\n'
20130515 "    //~ console.log('RichTextPanel.refresh()',this.title,record.title,record);\n"
20130515 '    var todo = function() {\n'
20130515 '      //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '      if (record) {\n'
20130515 '        var url = \'/templates\' + this.containing_panel.ls_url + "/" \n'
20130515 '            + String(record.id) + "/" + this.editor.name;\n'
20130515 "        //~ console.log('RichTextPanel.refresh()',url);\n"
20130515 '        if (this.editor.ed) this.editor.ed.settings.template_external_list_url = url;\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 "        //~ var v = record ? this.format_data(record.data[this.editor.name]) : ''\n"
20130515 '        var v = this.format_data(record.data[this.editor.name])\n'
20130515 '        this.editor.setValue(v);\n'
20130515 '      } else {\n'
20130515 "        this.editor.setValue('(no data)');\n"
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.PanelMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 "  //~ layout:'fit'\n"
20130515 '  //~ ,autoHeight: true\n'
20130515 '  //~ ,frame: true\n'
20130515 '  window_title: "Action Parameters",\n'
20130515 '  constructor : function(config){\n'
20130515 '    config.bbar = [\n'
20130515 "        {text:'OK',handler:this.on_ok,scope:this},\n"
20130515 "        {text:'Cancel',handler:this.on_cancel,scope:this}\n"
20130515 '    ];\n'
20130515 '    //~ config.items = config.params_panel;\n'
20130515 '    Lino.ActionFormPanel.superclass.constructor.call(this, config);\n'
20130515 '  }\n'
20130515 '  //~ ,initComponent : function(){\n'
20130515 '    //~ Lino.ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '    //~ var rp = this.requesting_panel;\n'
20130515 '    //~ console.log("on_ok",this.requesting_panel,arguments);\n'
20130515 '    //~ Lino.row_action_handler()\n'
20130515 '    var panel = this.requesting_panel;\n'
20130515 '    var actionName = this.action_name;\n'
20130515 '    var rec = panel.get_current_record();\n'
20130515 '    var self = this;\n'
20130515 '    function on_success() { self.get_containing_window().close(); };\n'
20130515 '    var fn = function(panel,btn,step) {\n'
20130515 '      var p = {};\n'
20130515 '      self.add_field_values(p)\n'
20130515 "      Lino.call_ajax_action(panel,'GET',panel.get_record_url(rec.id),p,actionName,step,fn,on_success);\n"
20130515 '    }\n'
20130515 '    fn(panel,null,null);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '  }\n'
20130515 '  ,set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 ActionFormPanel.set_status()',status,rp,this.requesting_panel);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_field_values(status.field_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,add_field_values : function (p) { // similar to add_param_values()\n'
20130515 '      //~ 20121023 \n'
20130515 '      if (this.form.isDirty()) {\n'
20130515 '        p.fv = this.get_field_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_field_values) \n'
20130515 '          p.fv = Lino.fields2array(this.fields,this.status_field_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.form.isDirty()) return;\n'
20130515 '      //~ p.$ext_requests.URL_PARAM_FIELD_VALUES = this.get_field_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '  }\n'
20130515 '  ,get_field_values : function() {\n'
20130515 '      return Lino.fields2array(this.fields);\n'
20130515 '  }\n'
20130515 '  ,set_field_values : function(pv) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_field_values = pv;\n'
20130515 '      if (pv) this.form.my_loadRecord(pv);\n'
20130515 '      else this.form.reset(); \n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.title = this.window_title;\n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.fields2array = function(fields,values) {\n'
20130515 "    //~ console.log('20120116 gonna loop on', fields);\n"
20130515 '    var pv = Array(fields.length);\n'
20130515 '    for(var i=0; i < fields.length;i++) {\n'
20130515 '        var f = fields[i]\n'
20130515 '        if (values) \n'
20130515 '          var v = values[f.name];\n'
20130515 '        else \n'
20130515 '          var v = f.getValue();\n'
20130515 '        if (f.formatDate) {\n'
20130515 '            pv[i] = f.formatDate(v); \n'
20130515 '        } else {\n'
20130515 '            pv[i] = v; // f.getValue(); \n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    return pv;\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.FormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,Lino.PanelMixin);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  //~ base_params : {},\n'
20130515 '  //~ trackResetOnLoad : true,\n'
20130515 '  //~ query_params : {},\n'
20130515 "  //~ 20110119b quick_search_text : '',\n"
20130515 '  constructor : function(config,params){\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    this.base_params = {};\n'
20130515 "    //~ ww.config.base_params.query = ''; // 20111018\n"
20130515 '    //~ console.log(config);\n'
20130515 "    //~ console.log('FormPanel.constructor() 1',config)\n"
20130515 '    //~ Ext.applyIf(config,{base_params:{}});\n'
20130515 "    //~ console.log('FormPanel.constructor() 2',config)\n"
20130515 '      \n'
20130515 '    config.trackResetOnLoad = true;\n'
20130515 '    \n'
20130515 '    Lino.FormPanel.superclass.constructor.call(this, config);\n'
20130515 '      \n'
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',null); // 20111018\n"
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',''); // 20111018\n"
20130515 '      \n'
20130515 '  },\n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    //~ console.log("20111201 containing_window",this.containing_window,this);\n'
20130515 '    \n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    if (actions) {\n'
20130515 '        this.bbar = actions.bbar;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ this.bbar = [];\n'
20130515 '    }\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ var config = this;\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window instanceof Lino.DetailWrapper) {\n'
20130515 '    \n'
20130515 "    //~ console.log('20120121 initComponent', this.action_name);\n"
20130515 "    //~ if (this.action_name == 'detail' | this.action_name == 'show') {\n"
20130515 "    //~ if (this.action_name != 'insert') {\n"
20130515 '    if (! this.hide_top_toolbar) {\n'
20130515 '      this.tbar = [];\n'
20130515 '      // 20111015    \n'
20130515 '      if (! this.hide_navigator) {\n'
20130515 '        this.record_selector = new Lino.RemoteComboFieldElement({\n'
20130515 '          store: new Lino.ComplexRemoteComboStore({\n'
20130515 '            //~ baseParams: this.containing_window.config.base_params,\n'
20130515 '            baseParams: this.get_base_params(),\n'
20130515 '            //~ value: this.containing_window.config.base_params.query,\n'
20130515 '            proxy: new Ext.data.HttpProxy({\n'
20130515 "              url: '/choices' + this.ls_url,\n"
20130515 "              method:'GET'\n"
20130515 '            })\n'
20130515 '          }),\n'
20130515 '          pageSize:25,\n'
20130515 '          listeners: { \n'
20130515 '            scope:this, \n'
20130515 '            select:function(combo,record,index) {\n'
20130515 "              //~ console.log('jumpto_select',arguments);\n"
20130515 '              this.goto_record_id(record.id);\n'
20130515 '            }\n'
20130515 '          },\n'
20130515 '          emptyText: "Go to record"\n'
20130515 '        })\n'
20130515 '        this.tbar = this.tbar.concat([this.record_selector]);\n'
20130515 '        \n'
20130515 '        this.tbar = this.tbar.concat([\n'
20130515 '          this.first = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"First",disabled:true,handler:this.moveFirst,scope:this,iconCls:\'x-tbar-page-first\'}),\n'
20130515 '          this.prev = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Previous",disabled:true,handler:this.movePrev,scope:this,iconCls:\'x-tbar-page-prev\'}),\n'
20130515 '          this.next = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Next",disabled:true,handler:this.moveNext,scope:this,iconCls:\'x-tbar-page-next\'}),\n'
20130515 '          this.last = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Last",disabled:true,handler:this.moveLast,scope:this,iconCls:\'x-tbar-page-last\'})\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      this.tbar = this.add_params_panel(this.tbar);\n'
20130515 '      \n'
20130515 '      //~ console.log(20101117,this.containing_window.refresh);\n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 '        {\n'
20130515 "          //~ text:'Refresh',\n"
20130515 '          handler:function(){ this.do_when_clean(true,this.refresh.createDelegate(this)) },\n'
20130515 "          iconCls: 'x-tbar-loading',\n"
20130515 '          tooltip:"Reload current record",\n'
20130515 '          scope:this}\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '      if (this.bbar) { // since 20121016\n'
20130515 '        if (this.tbar) {\n'
20130515 "            this.tbar = this.tbar.concat(['-']) ;\n"
20130515 '        } else {\n'
20130515 '          this.tbar = [];\n'
20130515 '        }\n'
20130515 '        this.tbar = this.tbar.concat(this.bbar) ;\n'
20130515 '        this.bbar = undefined;\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 "          '->',\n"
20130515 '          this.displayItem = new Ext.Toolbar.TextItem({})\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '    }\n'
20130515 "    //~ if (this.content_type && this.action_name != 'insert') {\n"
20130515 '      //~ this.bbar = this.bbar.concat([\n'
20130515 "        //~ '->',\n"
20130515 '        //~ { text: "[$_(\'Help Text Editor\')]",\n'
20130515 '          //~ handler: Lino.help_text_editor,\n'
20130515 '          //~ qtip: "$_(\'Edit help texts for fields on this model.\')",\n'
20130515 '          //~ scope: this}\n'
20130515 '      //~ ])\n'
20130515 '    //~ }\n'
20130515 '    //~ this.before_row_edit = config.before_row_edit.createDelegate(this);\n'
20130515 '      \n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '        //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '    //~ }\n'
20130515 '      \n'
20130515 '    Lino.FormPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.bwrap,{msg:"Please wait..."});\n'
20130515 '    },this);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.cascade(function(cmp){\n'
20130515 '      //~ // var active_field = false;\n'
20130515 '      //~ for (i = 0; i < this_.active_fields.length; i++) {\n'
20130515 '        //~ if (cmp.name == this_.active_fields[i]) {\n'
20130515 '            //~ // active_field = true; break;\n'
20130515 '            //~ cmp.on("change",function() {this_.save()});\n'
20130515 '        //~ }\n'
20130515 '      //~ };\n'
20130515 '      //~ if (active_field) {\n'
20130515 '      // if (cmp instanceof Lino.GridPanel) {\n'
20130515 '          //~ cmp.on("change",function() {this_.save()});\n'
20130515 '      //~ }\n'
20130515 '    //~ });\n'
20130515 '    \n'
20130515 "    if (this.action_name == 'insert') {\n"
20130515 '      this.cascade(function(cmp){\n'
20130515 "        // console.log('20110613 cascade',cmp);\n"
20130515 '        if (cmp.disabled_in_insert_window) {\n'
20130515 '            //~ cmp.disable();\n'
20130515 '            cmp.hide();\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    if (this.current_record == null) return true; \n'
20130515 '    var loading = false;\n'
20130515 '    this.cascade(function(cmp){\n'
20130515 '        if (cmp instanceof Lino.GridPanel && cmp.is_loading()) {\n'
20130515 "            //~ console.log(cmp.title,'is loading');\n"
20130515 '            loading = true;\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    return loading;\n'
20130515 '    //~ var a = this.findByType(Lino.GridPanel);\n'
20130515 '    //~ for (i=0;i<a.length;i++) {\n'
20130515 '        //~ if (a[i].is_loading()) return true;\n'
20130515 '    //~ }\n'
20130515 '    //~ return false;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '      var st = {\n'
20130515 '        base_params: this.get_base_params(),\n'
20130515 '        data_record : this.get_current_record()\n'
20130515 '        }\n'
20130515 '      var tp = this.items.get(0);\n'
20130515 '      if (tp instanceof Ext.TabPanel) {\n'
20130515 '        st.active_tab = tp.getActiveTab();\n'
20130515 '      }\n'
20130515 '      st.param_values = this.status_param_values;\n'
20130515 '      return st;\n'
20130515 '  },\n'
20130515 '  set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 FormPanel.set_status()',status);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '    var tp = this.items.get(0);\n'
20130515 '    if (tp instanceof Ext.TabPanel) {\n'
20130515 '      if (status.active_tab) {\n'
20130515 "        //~ console.log('20111201 active_tab',this.active_tab,this.items.get(0));\n"
20130515 '        //~ tp.activeTab = status.active_tab;\n'
20130515 '        tp.setActiveTab(status.active_tab);\n'
20130515 '        //~ this.main_item.items.get(0).activate(status.active_tab);\n'
20130515 '      } else {\n'
20130515 '        tp.setActiveTab(0);\n'
20130515 '      }\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '    if (status.data_record) {\n'
20130515 "      //~ console.log('20111201 Lino.FormPanel with data_record',this.data_record.title,this.containing_window);\n"
20130515 '      //~ this.main_item.on_master_changed.defer(2000,this.main_item,[status.data_record]);\n'
20130515 '      //~ Lino.do_when_visible(this.main_item,function(){this.on_master_changed(status.data_record)});\n'
20130515 "      //~ this.main_item.on('afterrender',function(){\n"
20130515 '      //~   this.main_item.on_master_changed(status.data_record)},this,{single:true});\n'
20130515 "      /* must defer because because set_window_title() didn't work otherwise */\n"
20130515 '      this.set_current_record.createDelegate(this,[status.data_record]).defer(100);\n'
20130515 '      //~ this.set_current_record(this.data_record);\n'
20130515 '      //~ return;\n'
20130515 '    } else if (status.record_id != undefined) { \n'
20130515 '      /* possible values include 0 and null, 0 being a valid record id, \n'
20130515 '      null the equivalent of undefined\n'
20130515 '      */\n'
20130515 '      //~ this.main_item.goto_record_id(this.status.record_id);\n'
20130515 '      this.load_record_id(status.record_id);\n'
20130515 '    } else {\n'
20130515 '      this.set_current_record(undefined);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '    \n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert_action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.base_params;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 "    delete p['query'] // 20120725\n"
20130515 '    Ext.apply(this.base_params,p);\n'
20130515 '    if (this.record_selector) {\n'
20130515 '        var store = this.record_selector.getStore();\n'
20130515 '        for (k in p) store.setBaseParam(k,p[k]);\n'
20130515 '        delete this.record_selector.lastQuery;\n'
20130515 '        //~ console.log("20120725 record_selector.setBaseParam",p)\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '        \n'
20130515 '      //~ if (this.record_selector) {\n'
20130515 '          //~ var store = this.record_selector.getStore();\n'
20130515 '          //~ for (k in store.baseParams) store.setBaseParam(k,undefined);\n'
20130515 '          //~ delete this.record_selector.lastQuery;\n'
20130515 '          //~ console.log("20120725 record_selector.getBaseParams() -->",store.baseParams)\n'
20130515 '      //~ }\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '    //~ if (this.record_selector) {\n'
20130515 '        //~ this.record_selector.getStore().setBaseParam(k,v);\n'
20130515 '        //~ delete this.record_selector.lastQuery;\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  after_delete : function() {\n'
20130515 '    if (this.current_record.navinfo.next)\n'
20130515 '      this.moveNext();\n'
20130515 '    else if (this.current_record.navinfo.prev)\n'
20130515 '      this.movePrev();\n'
20130515 '    else \n'
20130515 '      this.abandon();\n'
20130515 '  },\n'
20130515 '  moveFirst : function() {this.goto_record_id(this.current_record.navinfo.first)},\n'
20130515 '  movePrev : function() {this.goto_record_id(this.current_record.navinfo.prev)},\n'
20130515 '  moveNext : function() {this.goto_record_id(this.current_record.navinfo.next)},\n'
20130515 '  moveLast : function() {this.goto_record_id(this.current_record.navinfo.last)},\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ console.log('20120121 Lino.FormPanel.refresh()',this);\n"
20130515 '    if (this.current_record) {\n'
20130515 '        this.load_record_id(this.current_record.id,after);\n'
20130515 '    } else {\n'
20130515 '        this.set_current_record(undefined,after);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  do_when_clean : function(auto_save,todo) {\n'
20130515 '    var this_ = this;\n'
20130515 '    if (this.form.isDirty()) {\n'
20130515 '        if (auto_save) {\n'
20130515 '            this_.save(todo);\n'
20130515 '        } else {\n'
20130515 "          //~ console.log('20111217 do_when_clean() form is dirty',this.form);\n"
20130515 '          var config = {title:"Confirmation"};\n'
20130515 '          config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '          config.msg = "Save changes to current record ?";\n'
20130515 '          config.fn = function(buttonId,text,opt) {\n'
20130515 "            //~ console.log('do_when_clean',buttonId)\n"
20130515 '            if (buttonId == "yes") {\n'
20130515 '                //~ Lino.submit_detail(this_,undefined,todo);\n'
20130515 '                //~ this_.containing_window.save(todo);\n'
20130515 '                this_.save(todo);\n'
20130515 '            } else if (buttonId == "no") { \n'
20130515 '              todo();\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '    }else{\n'
20130515 "      //~ console.log('do_when_clean : now!')\n"
20130515 '      todo();\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  goto_record_id : function(record_id) {\n'
20130515 "    //~ console.log('20110701 Lino.FormPanel.goto_record_id()',record_id);\n"
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.do_when_clean(function() { this_.load_record_id(record_id) }\n'
20130515 '    this.do_when_clean(true,this.load_record_id.createDelegate(this,[record_id]));\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  load_record_id : function(record_id,after) {\n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var p = { fmt: this.containing_window.config.action_name};\n'
20130515 '    //~ var p = Ext.apply({},this.containing_window.config.base_params);\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "    //~ console.log('20110713 action_name=',this.containing_window.config.action_name,\n"
20130515 "      //~ 'base_params=',this.containing_window.config.base_params);\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ p.an = this.action_name;\n'
20130515 '    //~ p.an = this.containing_window.config.action_name;\n'
20130515 "    //~ p.fmt = 'json';\n"
20130515 "    //~ p.fmt = '$ext_requests.URL_FORMAT_JSON';\n"
20130515 '    p.rp = this.getId();\n'
20130515 '    //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 "    p.fmt = 'json';\n"
20130515 "    //~ 20110119b p['$URL_PARAM_FILTER'] = this.quick_search_text;\n"
20130515 '    //~ Ext.apply(p,this.query_params);\n'
20130515 '    this.add_param_values(p);\n'
20130515 "    //~ console.log('20121120 FormPanel.load_record_id',record_id,p);\n"
20130515 '    if (this.loadMask) this.loadMask.show();\n'
20130515 '    Ext.Ajax.request({ \n'
20130515 "      waitMsg: 'Loading record...',\n"
20130515 "      method: 'GET',\n"
20130515 '      params: p,\n'
20130515 '      scope: this,\n'
20130515 '      url: this.get_record_url(record_id),\n'
20130515 '      success: function(response) {   \n'
20130515 '        // todo: convert to Lino.action_handler.... but result \n'
20130515 '        if (this.loadMask) this.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var rec = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('20120918 goto_record_id success',rec);\n"
20130515 '          this.set_param_values(rec.param_values);\n'
20130515 '          this.set_current_record(rec,after);\n'
20130515 '        }\n'
20130515 '      },\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  abandon : function () {\n'
20130515 "    Ext.MessageBox.alert('Note',\n"
20130515 '      "No more records to display. Detail window has been closed.");\n'
20130515 '    Lino.close_window();\n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ this.containing_window.hide();\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_current_record : function(record,after) {\n'
20130515 "    //~ console.log('20120722 Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    if (this.record_selector) {\n'
20130515 '        this.record_selector.clearValue();\n'
20130515 "        // e.g. InsertWrapper FormPanel doesn't have a record_selector\n"
20130515 '    }\n'
20130515 '    this.current_record = record;\n'
20130515 '    //~ if (record) \n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    //~ else\n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record);\n"
20130515 '    //~ this.config.main_panel.form.load(record);    \n'
20130515 '    if (record) {\n'
20130515 '      this.enable();\n'
20130515 '      this.form.my_loadRecord(record.data);\n'
20130515 '      this.set_window_title(record.title);\n'
20130515 '      //~ this.getBottomToolbar().enable();\n'
20130515 '      var da = record.data.disabled_actions;\n'
20130515 '      if (da) {\n'
20130515 "          //~ console.log('20120528 disabled_actions =',da,this.getBottomToolbar());\n"
20130515 '          //~ 20121016 this.getBottomToolbar().items.each(function(item,index,length){\n'
20130515 '          var tb = this.getTopToolbar();\n'
20130515 '          if (tb) tb.items.each(function(item,index,length){\n'
20130515 "              //~ console.log('20120528 ',item.itemId,'-->',da[item.itemId]);\n"
20130515 '              if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '          });\n'
20130515 '      };\n'
20130515 '      if (this.disable_editing | record.data.disable_editing) {\n'
20130515 '          //~ console.log("20120202 disable_editing",record.title);\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            if (!cmp.always_enabled) cmp.disable();\n'
20130515 '          },this);\n'
20130515 '      } else {\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            //~ console.log("20120202",cmp);\n'
20130515 '            if (record.data.disabled_fields[cmp.name]) cmp.disable();\n'
20130515 '            else cmp.enable();\n'
20130515 '          },this);\n'
20130515 '        \n'
20130515 '          //~ if (record.data.disabled_fields) {\n'
20130515 '              //~ for (i = 0; i < record.data.disabled_fields.length; i++) {\n'
20130515 "                  //~ var flds = this.find('name',record.data.disabled_fields[i]);\n"
20130515 '                  //~ if (flds.length == 1) { \n'
20130515 '                    //~ flds[0].disable(); \n'
20130515 '                  //~ }\n'
20130515 '              //~ }\n'
20130515 '          //~ }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '      if (record.navinfo && ! this.hide_top_toolbar && ! this.hide_navigator) {\n'
20130515 '        //~ if (record.navinfo.recno == 0) {\n'
20130515 '            //~ this.first.setDisabled(true);\n'
20130515 '            //~ this.prev.setDisabled(true);\n'
20130515 '            //~ this.next.setDisabled(true);\n'
20130515 '            //~ this.last.setDisabled(true);\n'
20130515 '        //~ } else {\n'
20130515 '            this.first.setDisabled(!record.navinfo.first);\n'
20130515 '            this.prev.setDisabled(!record.navinfo.prev);\n'
20130515 '            this.next.setDisabled(!record.navinfo.next);\n'
20130515 '            this.last.setDisabled(!record.navinfo.last);\n'
20130515 '        //~ }\n'
20130515 '        this.displayItem.setText(record.navinfo.message);\n'
20130515 '      }\n'
20130515 '    } else {\n'
20130515 '      if (this.form.rendered) \n'
20130515 '        this.form.reset(); /* FileUploadField would fail when resetting a non-rendered form */\n'
20130515 '      //~ this.disable();\n'
20130515 '      //~ this.getBottomToolbar().disable();\n'
20130515 '      this.form.items.each(function(cmp){\n'
20130515 '        cmp.disable();\n'
20130515 '      },this);\n'
20130515 '      this.set_window_title(this.empty_title);\n'
20130515 '      //~ this.containing_window.window.setTitle(this.empty_title);\n'
20130515 '      if (!this.hide_navigator) {\n'
20130515 '        this.first.disable();\n'
20130515 '        this.prev.disable();\n'
20130515 '        this.next.disable();\n'
20130515 '        this.last.disable();\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 "    //~ console.log('20100531 Lino.DetailMixin.on_load_master_record',this.main_form);\n"
20130515 '    this.before_row_edit(record);\n'
20130515 '    if (after) after();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_selected : function() { return [ this.current_record ] },\n'
20130515 '  get_current_record : function() {  \n'
20130515 '    //~ console.log(20100714,this.current_record);\n'
20130515 '    return this.current_record \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_permalink_url : function() {\n'
20130515 '      var rec = this.get_current_record();\n'
20130515 '      if (rec && ! rec.phantom && rec.id != -99998)\n'
20130515 "          return '/api' + this.ls_url + '/' + rec.id;\n"
20130515 "      return '/api' + this.ls_url;\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  get_permalink_params : function() {\n'
20130515 '    var p = {};\n'
20130515 "    //~ var p = {an:'detail'};\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ var p = {an:this.action_name};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.activeTab) {\n'
20130515 '      var tab = main.items.indexOf(main.activeTab);\n'
20130515 "      //~ console.log('main.activeTab',tab,main.activeTab);\n"
20130515 '      if (tab) p.tab = tab;\n'
20130515 '    }\n'
20130515 '    this.add_param_values(p)\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.FormPanel.save() \n'
20130515 '  */\n'
20130515 '  save : function(after,switch_to_detail,action_name) {\n'
20130515 '    //~ var panel = this;\n'
20130515 "    //~ console.log('20121120 FormPanel.save');\n"
20130515 '    this.loadMask.show();\n'
20130515 '    var rec = this.get_current_record();\n'
20130515 '    if (this.has_file_upload) this.form.fileUpload = true;\n'
20130515 "    //~ console.log('FormPanel.save()',rec);\n"
20130515 '    if (!action_name) action_name = this.action_name;\n'
20130515 '    if (rec) {\n'
20130515 '      var p = {};\n'
20130515 '      Ext.apply(p,this.get_base_params());\n'
20130515 '      p.rp = this.getId();\n'
20130515 '      //~ if (this.action_name) \n'
20130515 '          //~ p.$ext_requests.URL_PARAM_ACTION_NAME = this.action_name;\n'
20130515 '      p.an = action_name;\n'
20130515 '      if (rec.phantom) {\n'
20130515 "        //~ if (this.action_name != 'insert') \n"
20130515 '            //~ console.log("Warning: phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url,\n"
20130515 "          method: 'POST',\n"
20130515 '          params: p, \n'
20130515 '          scope: this,\n'
20130515 '          success: function(form, action) {\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            /***\n'
20130515 '            Close this window, but update the status of the \n'
20130515 '            calling window.\n'
20130515 '            If the calling window is a detail on the same table,\n'
20130515 '            then it should skip to the new record. But only then.\n'
20130515 '            A successful response usually has a data_record,\n'
20130515 '            except if it is a fileupload form where some mysterious \n'
20130515 '            decoding problems (20120209) force us to return a record_id \n'
20130515 '            which will lead to an additional GET.\n'
20130515 '            ***/\n'
20130515 '            var url = this.ls_url;\n'
20130515 '            var ww = Lino.calling_window();\n'
20130515 '            if (ww && ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                   && ww.window.main_item.ls_url == this.ls_url) {\n'
20130515 '                //~ console.log("20120217 case 1");\n'
20130515 '                ww.status.record_id = action.result.record_id;\n'
20130515 '                ww.status.data_record = action.result.data_record;\n'
20130515 '                Lino.close_window();\n'
20130515 '            } else if (this.ls_detail_handler && switch_to_detail) {\n'
20130515 '                //~ console.log("20120217 case 2");\n'
20130515 '                Lino.kill_current_window();\n'
20130515 '                this.ls_detail_handler.run(null,{\n'
20130515 '                    record_id:action.result.record_id,\n'
20130515 '                    data_record: action.result.data_record,\n'
20130515 '                    base_params:this.get_base_params()\n'
20130515 '                });\n'
20130515 '            } else {\n'
20130515 '                //~ console.log("20120217 case 3");\n'
20130515 '                Lino.close_window();\n'
20130515 '            }\n'
20130515 '            //~ Lino.close_window(function(ww){\n'
20130515 '                //~ if (ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                    //~ && ww.window.main_item.ls_url == url) {\n'
20130515 '                  //~ ww.status.record_id = action.result.record_id,\n'
20130515 '                  //~ ww.status.data_record = action.result.data_record\n'
20130515 '                //~ }\n'
20130515 '            //~ });\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action);\n'
20130515 '          },\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      } else {\n'
20130515 "        //~ if (this.action_name != 'detail') \n"
20130515 '            //~ console.log("Warning: non-phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url + '/' + rec.id,\n"
20130515 "          method: 'PUT',\n"
20130515 "          //~ headers: { 'HTTP_X_REQUESTED_WITH' : 'XMLHttpRequest'},\n"
20130515 '          scope: this,\n'
20130515 '          params: p, \n'
20130515 '          success: function(form, action) {\n'
20130515 '            //~ panel.form.setValues(rec.data);\n'
20130515 '            //~ 20110701 panel.form.my_loadRecord(rec);\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            if (action.result.data_record)\n'
20130515 '                this.set_current_record(action.result.data_record,after);\n'
20130515 '            else\n'
20130515 '                console.log("Warning: no data_record in response to FormPanel.PUT")\n'
20130515 '            //~ this.refresh_with_after(after);\n'
20130515 '            //~ if (after) after(); else panel.refresh();\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action)},\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      }\n'
20130515 '    } else Lino.notify("Sorry, no current record.");\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '      this.save(null,true);\n'
20130515 '      //~ var rec = this.get_current_record();\n'
20130515 '      //~ if (rec && rec.phantom)\n'
20130515 '          //~ this.do_when_clean(true,function() { Lino.close_window(); });\n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok, scope:this }\n'
20130515 '        ,{ key: Ext.EventObject.ESCAPE, fn: this.on_cancel, scope:this }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  /* not used (no longer possible without .dtl files)\n'
20130515 '  , edit_detail_config : function () {\n'
20130515 '    var active_tab = {};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.getActiveTab !== undefined) {\n'
20130515 '      var tabitem = main.getActiveTab();\n'
20130515 '      Ext.apply(active_tab,{$ext_requests.URL_PARAM_TAB : main.items.indexOf(tabitem)});\n'
20130515 '    }\n'
20130515 '    var editor = new Ext.form.TextArea();\n'
20130515 '    var close = function() { win.close(); }\n'
20130515 '    var _this = this;\n'
20130515 '    var save = function() { \n'
20130515 '      //~ console.log(20110609,arguments); \n'
20130515 '      var params = {desc: editor.getValue()};\n'
20130515 '      Ext.apply(params,active_tab);\n'
20130515 '      var a = { \n'
20130515 '        params: params, \n'
20130515 "        method: 'PUT',\n"
20130515 "        url: ADMIN_URL + '/detail_config' + _this.ls_url,\n"
20130515 '        failure : Lino.ajax_error_handler(this),\n'
20130515 '        success: Lino.action_handler( _this, function(result) {\n'
20130515 "          //~ console.log('detail_config/save success',result);\n"
20130515 '          win.close();\n'
20130515 '          document.location = _this.get_permalink();\n'
20130515 '        })\n'
20130515 '      };\n'
20130515 "      //~ console.log('detail_config/save sent',a);\n"
20130515 '      _this.loadMask.show(); // 20120211\n'
20130515 '      Ext.Ajax.request(a);\n'
20130515 '    }\n'
20130515 "    var save_btn = new Ext.Button({text:'Save',handler:save,disabled:true});\n"
20130515 "    var win = new Ext.Window({title:'Detail Layout',\n"
20130515 "      items:editor, layout:'fit',\n"
20130515 '      width:500,height:500,\n'
20130515 "      bbar:[{text:'Cancel',handler:close},save_btn]});\n"
20130515 '    var a = { \n'
20130515 '      params:active_tab, \n'
20130515 "      method:'GET',\n"
20130515 "      url:ADMIN_URL+'/detail_config'+_this.ls_url,\n"
20130515 '      success : function(response) {\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 '          if (result.success) {\n'
20130515 '            editor.setValue(result.desc);\n'
20130515 '            save_btn.enable();\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    win.show();\n'
20130515 '  }\n'
20130515 '  */\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.getRowClass = function(record, rowIndex, rowParams, store) {\n'
20130515 '  if (record.phantom) {\n'
20130515 '    //~ console.log(20101009,record);\n'
20130515 '    //~ rowParams.bodyStyle = "color:red;background-color:blue";\n'
20130515 "    return 'lino-phantom-row';\n"
20130515 '    }\n'
20130515 "  //~ console.log('20101009 not a phantom:',record);\n"
20130515 "  return '';\n"
20130515 '}\n'
20130515 '\n'
20130515 '//~ FOO = 0;\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.GridStore = Ext.extend(Ext.data.ArrayStore,{ \n'
20130515 '  autoLoad: false\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    if (!options) options = {};\n'
20130515 '    if (!options.params) options.params = {};\n'
20130515 "    options.params.fmt = 'json';\n"
20130515 '    options.params.rp = this.grid_panel.getId();\n'
20130515 '    Lino.insert_subst_user(options.params); // since 20121016\n'
20130515 '      \n'
20130515 '    \n'
20130515 '    if (this.grid_panel.hide_top_toolbar) {\n'
20130515 '        //~ console.log("20120206 GridStore.load() toolbar is hidden");\n'
20130515 '        options.params.start = 0;\n'
20130515 '        if (this.grid_panel.preview_limit) {\n'
20130515 '          options.params.limit = this.grid_panel.preview_limit;\n'
20130515 '        }\n'
20130515 '    } else {\n'
20130515 '        var ps = this.grid_panel.calculatePageSize();\n'
20130515 '        if (!ps) {\n'
20130515 "            //~ this.gridpanel.on('render',this.load())\n"
20130515 '          //~ console.log("20120814 GridStore.load() failed to calculate pagesize");\n'
20130515 '          return false;\n'
20130515 '            //~ params.$URL_PARAM_LIMIT = 1;\n'
20130515 "            //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '            //~ return;\n'
20130515 '        } \n'
20130515 '        options.params.limit = ps;\n'
20130515 '      \n'
20130515 '        //~ options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '        //~ if (this.grid_panel.getTopToolbar().pageSize !=  ps) {\n'
20130515 '          //~ console.log("20120206 abort load because toolbar says pagesize",\n'
20130515 '            //~ this.grid_panel.getTopToolbar().pageSize,\n'
20130515 '            //~ "while actual pagesize is",ps);\n'
20130515 '            //~ return;\n'
20130515 '        //~ }\n'
20130515 '        \n'
20130515 '        this.grid_panel.getTopToolbar().pageSize =  ps;\n'
20130515 '        if (options.params.start == undefined)\n'
20130515 '            options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    this.grid_panel.add_param_values(options.params);\n'
20130515 '    //~ Lino.insert_subst_user(options.params);\n'
20130515 '    //~ console.log("20120814 GridStore.load()",options.params,this.baseParams);\n'
20130515 '    //~ if (FOO > 0) {\n'
20130515 '        //~ foo.bar = baz;\n'
20130515 '    //~ } else FOO += 1;\n'
20130515 '    return Lino.GridStore.superclass.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '    \n'
20130515 'Lino.GridPanel = Ext.extend(Ext.grid.EditorGridPanel,Lino.MainPanel);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,Lino.PanelMixin);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 "  quick_search_text : '',\n"
20130515 '  is_searching : false,\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  clicksToEdit:2,\n'
20130515 '  enableColLock: false,\n'
20130515 '  autoHeight: false,\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  preview_limit : undefined, \n'
20130515 '  //~ loadMask: true,\n'
20130515 '  //~ viewConfig: {\n'
20130515 '          //~ getRowClass: Lino.getRowClass,\n'
20130515 '          //~ emptyText:"$_(\'No data to display.\')"\n'
20130515 '        //~ },\n'
20130515 '  loadMask: {msg:"Please wait..."},\n'
20130515 '  \n'
20130515 '  constructor : function(config){\n'
20130515 '\n'
20130515 '    config.plugins = [new Lino.GridFilters()];\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ console.log("20111206 install refresh");\n'
20130515 "        //~ this.containing_window.on('show',this.refresh,this);\n"
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    //~ return this.store.getCount() > 0; \n'
20130515 '    return !this.loadMask.disabled; \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_config_containing_window : function(wincfg) { \n'
20130515 '      //~ temporarily remove save_grid_config button (see /blog(2012/1107)\n'
20130515 '      if (wincfg.tools != undefined) \n'
20130515 '        wincfg.tools = [\n'
20130515 '          //~ {handler:this.save_grid_data,\n'
20130515 '            //~ qtip:"$_("Save Grid Data")",\n'
20130515 '            //~ scope:this, id:"save_data"}, // 20120814\n'
20130515 '          {handler:this.save_grid_config,\n'
20130515 '            qtip:"Save Grid Configuration",\n'
20130515 '            scope:this, id:"save"}\n'
20130515 '        ].concat(wincfg.tools);\n'
20130515 '      //~ wincfg.listeners = { show: ... };\n'
20130515 '  },\n'
20130515 '  init_containing_window : function(win) { \n'
20130515 '    //~ console.log("20111206 install refresh");\n'
20130515 "    //~ win.on('show',this.refresh,this);\n"
20130515 '  },\n'
20130515 '  \n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    /* \n'
20130515 '    Problem 20111206:\n'
20130515 "    When a GridPanel is the main item of the window, then it doesn't \n"
20130515 "    have it's own header but uses the window's header bar.\n"
20130515 '    We must do this in initComponent because e.g. in beforerender \n'
20130515 "    it's already to late: a header element has been created because \n"
20130515 '    there was a title.\n'
20130515 '    But Lino.Window adds itself as `this.containing_window` \n'
20130515 '    only after the GridPanel has been initialized.\n'
20130515 '    Workaround is to generate a line "params.containing_window = true;" \n'
20130515 '    in the handler function.\n'
20130515 '    */ \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '    if (this.is_main_window) {\n'
20130515 "        //~ console.log(20111206, 'delete title',this.title,'from',this);\n"
20130515 '        //~ delete this.title;\n'
20130515 '        this.tools = undefined;  \n'
20130515 '        this.title = undefined;  /* simply deleting it \n'
20130515 "          isn't enough because that would only \n"
20130515 '          unhide the title defined in some base class. */\n'
20130515 '    } \n'
20130515 "    //~ else console.log(20111206, 'dont delete title',this.title,'from',this);\n"
20130515 '    \n'
20130515 '    /* e.g. when slave gridwindow called from a permalink */\n'
20130515 '    //~ if (this.base_params) Ext.apply(bp,this.base_params);  \n'
20130515 "    //~ bp['fmt'] = 'json';\n"
20130515 '    \n'
20130515 '    //~ function on_proxy_write( proxy, action,data, response,rs,options) {\n'
20130515 "      //~ console.log('20120814 on_proxy_write',action,data,response)\n"
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '    //~ }\n'
20130515 '    //~ function on_proxy_load( proxy, transactionObject, callbackOptions ) {\n'
20130515 "      //~ console.log('on_proxy_load',transactionObject)\n"
20130515 '    //~ }\n'
20130515 '    var proxy = new Ext.data.HttpProxy({ \n'
20130515 '      // 20120814 \n'
20130515 "      url: '/api' + this.ls_url\n"
20130515 '      ,method: "GET"\n'
20130515 "      //~ ,url: ADMIN_URL + '/restful' + this.ls_url\n"
20130515 '      //~ ,restful: true \n'
20130515 '      //~ ,listeners: {load:on_proxy_load} \n'
20130515 '      //~ ,listeners: {write:on_proxy_write} \n'
20130515 '    });\n'
20130515 '    //~ config.store = new Ext.data.JsonStore({ \n'
20130515 '    //~ this.store = new Ext.data.ArrayStore({ \n'
20130515 '    this.store = new Lino.GridStore({ \n'
20130515 '      grid_panel: this\n'
20130515 '      ,listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,remoteSort: true\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      //~ ,id: "id" \n'
20130515 '      ,proxy: proxy\n'
20130515 '      //~ autoLoad: this.containing_window ? true : false\n'
20130515 '      ,idIndex: this.pk_index\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,fields: this.ls_store_fields\n'
20130515 '      ,idProperty: this.ls_id_property \n'
20130515 '      // 20120814\n'
20130515 '      //~ ,writer : new Ext.data.JsonWriter({\n'
20130515 '        //~ writeAllFields: false\n'
20130515 '        //~ ,listful: true\n'
20130515 '      //~ })\n'
20130515 '      //~ ,restful : true\n'
20130515 '    });\n'
20130515 '      \n'
20130515 "    //~ console.log('config.pk_index',config.pk_index,config.store),\n"
20130515 '    delete this.ls_store_fields;\n'
20130515 '      \n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var grid = this;\n'
20130515 "    this.store.on('load', function() {\n"
20130515 "        //~ console.log('20120814 GridStore.on(load)',this_.store);\n"
20130515 '        //~ var da = this_.store.reader.arrayData.disabled_actions;\n'
20130515 '        //~ if (da) {\n'
20130515 '            //~ this.cmenu.cascade(function(item){ \n'
20130515 '              //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '              //~ if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '            //~ });\n'
20130515 '        //~ };\n'
20130515 '        this_.set_param_values(this_.store.reader.arrayData.param_values);\n'
20130515 '        //~ this_.set_status(this_.store.reader.arrayData.status);\n'
20130515 '        //~ 20120918\n'
20130515 '        if (this_.store.reader.arrayData.no_data_text) {\n'
20130515 '            //~ this.viewConfig.emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().refresh();\n'
20130515 '        }\n'
20130515 '        if (this_.containing_window)\n'
20130515 '            this_.set_window_title(this_.store.reader.arrayData.title);\n'
20130515 '            //~ this_.containing_window.setTitle(this_.store.reader.arrayData.title);\n'
20130515 '        if (!this.is_searching) { // disabled 20121025: quick_search_field may not lose focus\n'
20130515 '          this.is_searching = false;\n'
20130515 '          if (this_.selModel.getSelectedCell){\n'
20130515 '              if (this_.getStore().getCount()) // there may be no data\n'
20130515 '                  this_.selModel.select(0,0); \n'
20130515 '          } else {\n'
20130515 '              this_.selModel.selectFirstRow();\n'
20130515 '              this_.getView().focusEl.focus();\n'
20130515 '          }\n'
20130515 '        } \n'
20130515 '        //~ else console.log("is_searching -> no focussing");\n'
20130515 '        //~ var t = this.getTopToolbar();\n'
20130515 '        //~ var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '        //~ this.quick_search_field.focus(); // 20121024\n'
20130515 '      }, this\n'
20130515 '    );\n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar, this.cmenu = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ this.cmenu = new Ext.menu.Menu({items: config.bbar});\n'
20130515 '    delete this.ls_bbar_actions\n'
20130515 '    if (actions) {\n'
20130515 '        this.cmenu = actions.cmenu;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (!this.hide_top_toolbar) {  \n'
20130515 '      var tbar = [ \n'
20130515 '        this.quick_search_field = new Ext.form.TextField({ \n'
20130515 '          //~ fieldLabel: "Search"\n'
20130515 '          listeners: { \n'
20130515 '            scope:this_\n'
20130515 '            //~ ,change:this_.search_change\n'
20130515 '            \n'
20130515 '            ,render: Lino.quicktip_renderer("Quick Search","Enter a text to use as quick search filter")\n'
20130515 '            \n'
20130515 '            //~ ,keypress: this.search_keypress \n'
20130515 '            ,blur: function() { this.is_searching = false}\n'
20130515 '          }\n'
20130515 '          ,validator:function(value) { return this_.search_validate(value) }\n'
20130515 '          //~ ,tooltip: "Enter a quick search text, then press TAB"\n'
20130515 '          //~ value: text\n'
20130515 '          //~ scope:this, \n'
20130515 '          //~ ,enableKeyEvents: true\n'
20130515 '          //~ listeners: { keypress: this.search_keypress }, \n'
20130515 '          //~ id: "seachString" \n'
20130515 '      })];\n'
20130515 '      tbar = this.add_params_panel(tbar);\n'
20130515 '      tbar = tbar.concat([\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[csv]", \n'
20130515 '          tooltip: "Export this table to a .csv file", \n'
20130515 "          iconCls: 'x-tbar-csv',\n"
20130515 '          handler: function() { \n'
20130515 '            //~ 20130116 var p = Ext.apply({},this.get_base_params());\n'
20130515 "            //~ 20130116 p.fmt = 'csv';\n"
20130515 '            //~ url += "?" + Ext.urlEncode(p);\n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "csv";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            \n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        //~ { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          //~ handler: function() { \n'
20130515 '            //~ var p = this.get_current_grid_config();\n'
20130515 '            //~ Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PRINTER";\n'
20130515 '            //~ this.add_param_values(p);\n'
20130515 '            //~ window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          //~ } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          tooltip: "Show this table in plain html", \n'
20130515 "          iconCls: 'x-tbar-html',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ since 20121226 p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PLAIN";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            //~ since 20121226 window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '            window.open(\'/plain\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[pdf]", \n'
20130515 '          tooltip: "Show this table as a pdf document", \n'
20130515 "          iconCls: 'x-tbar-pdf',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "pdf";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } }\n'
20130515 '      ]);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      var menu = [];\n'
20130515 '      var set_gc = function(index) {\n'
20130515 '        return function() {\n'
20130515 "          //~ console.log('set_gc() 20100812');\n"
20130515 '          this.getColumnModel().setConfig(\n'
20130515 '              this.apply_grid_config(index,this.ls_grid_configs,this.ls_columns));\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      for (var i = 0; i < this.ls_grid_configs.length;i++) {\n'
20130515 '        var gc = this.ls_grid_configs[i];\n'
20130515 '        menu.push({text:gc.label,handler:set_gc(i),scope:this})\n'
20130515 '      }\n'
20130515 '      if(menu.length > 1) {\n'
20130515 '        tbar = tbar.concat([\n'
20130515 '          { text:"View",\n'
20130515 '            menu: menu,\n'
20130515 '            tooltip:"Select another view of this report"\n'
20130515 '          }\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      if (actions) {\n'
20130515 '        tbar = tbar.concat(actions.bbar);\n'
20130515 '          //~ this.bbar = actions.bbar;\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      this.tbar = new Ext.PagingToolbar({ \n'
20130515 '        store: this.store, \n'
20130515 '        prependButtons: true, \n'
20130515 '        //~ pageSize: this.page_length, \n'
20130515 '        pageSize: 1, \n'
20130515 '        displayInfo: true, \n'
20130515 '        beforePageText: "Page",\n'
20130515 '        afterPageText: "of {0}",\n'
20130515 '        displayMsg: "Displaying {0} - {1} of {2}",\n'
20130515 '        firstText: "Premi\xc3\xa8re page",\n'
20130515 '        lastText: "Derni\xc3\xa8re page",\n'
20130515 '        prevText: "Page pr\xc3\xa9c\xc3\xa9dente",\n'
20130515 '        nextText: "Page suivante",\n'
20130515 '        items: tbar\n'
20130515 '      });\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ var ps = this.calculatePageSize();\n'
20130515 '          //~ if (ps && ps != this.getTopToolbar().pageSize) {\n'
20130515 "              //~ // console.log('20120203 resize : pageSize',this.getTopToolbar().pageSize,'->',ps);\n"
20130515 '              //~ // this.getTopToolbar().pageSize =  ps;\n'
20130515 '              //~ cmp.refresh();\n'
20130515 '              //~ // this.getTopToolbar().doRefresh();\n'
20130515 '          //~ }\n'
20130515 '        //~ }, this);\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ cmp.getTopToolbar().pageSize = this.calculatePageSize(aw,ah,rw,rh) || 10;\n'
20130515 '          //~ cmp.refresh();\n'
20130515 '        //~ }, this, {delay:500});\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ delete this.page_length\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      \n'
20130515 '    if (this.ls_quick_edit) {\n'
20130515 '      this.selModel = new Ext.grid.CellSelectionModel()\n'
20130515 '      this.get_selected = function() {\n'
20130515 '        //~ console.log(this.getSelectionModel().selection);\n'
20130515 '        if (this.selModel.selection)\n'
20130515 '            return [ this.selModel.selection.record ];\n'
20130515 '        return [this.store.getAt(0)];\n'
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        if (this.getSelectionModel().selection) \n'
20130515 '          return this.selModel.selection.record;\n'
20130515 '        return this.store.getAt(0);\n'
20130515 '      };\n'
20130515 '    } else { \n'
20130515 '      this.selModel = new Ext.grid.RowSelectionModel() \n'
20130515 '      this.get_selected = function() {\n'
20130515 '        var sels = this.selModel.getSelections();\n'
20130515 '        if (sels.length == 0) sels = [this.store.getAt(0)];\n'
20130515 '        return sels\n'
20130515 '        //~ var sels = this.getSelectionModel().getSelections();\n'
20130515 "        //~ return Ext.pluck(sels,'id');\n"
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        var rec = this.selModel.getSelected();\n'
20130515 '        if (rec == undefined) rec = this.store.getAt(0);\n'
20130515 '        return rec\n'
20130515 '      };\n'
20130515 '    };\n'
20130515 '    delete this.ls_quick_edit;\n'
20130515 '    \n'
20130515 '    this.columns  = this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns);\n'
20130515 '    \n'
20130515 '    //~ var grid = this;\n'
20130515 '    //~ this.colModel = new Ext.grid.ColumnModel({\n'
20130515 '      //~ columns: this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns),\n'
20130515 '      //~ isCellEditable: function(col, row) {\n'
20130515 '        //~ var record = grid.store.getAt(row);\n'
20130515 "        //~ console.log('20120514',col,record); // dataIndex\n"
20130515 '        //~ var dataIndex = grid.colModel.getDataIndex(col);\n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("$_("This field is disabled")");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        //~ return Ext.grid.ColumnModel.prototype.isCellEditable.call(this, col, row);\n'
20130515 '      //~ }\n'
20130515 '    //~ });    \n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) \n'
20130515 "        //~ this.on('afterlayout', this.refresh, this);\n"
20130515 "        //~ this.on('afterrender', this.refresh,this);\n"
20130515 '    //~ else\n'
20130515 "        //~ this.on('show', this.refresh,this);\n"
20130515 "    //~ this.on('afterlayout', function() {\n"
20130515 '      //~ if (this.id == "ext-comp-1157") \n'
20130515 '        //~ console.log("20120213 afterlayout",this); \n'
20130515 '      //~ // this.refresh();\n'
20130515 '      //~ },this);\n'
20130515 "    //~ this.on('afterrender', this.refresh);\n"
20130515 "    //~ this.on('resize', this.refresh,this,{delay:500});\n"
20130515 '    //~ this.on(\'resize\', function(){console.log("20120213 resize",arguments)},this);\n'
20130515 "    this.on('resize', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments)\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('viewready', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments);\n'
20130515 '      this.view_is_ready = true;\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('afteredit', this.on_afteredit); // 20120814\n"
20130515 "    //~ this.on('afteredit', this.new_on_afteredit);\n"
20130515 "    this.on('beforeedit', this.on_beforeedit);\n"
20130515 "    this.on('beforeedit',function(e) { this.before_row_edit(e.record)},this);\n"
20130515 "    this.on('cellcontextmenu', Lino.cell_context_menu, this);\n"
20130515 "    //~ this.on('contextmenu', Lino.grid_context_menu, this);\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ if (this.id == "ext-comp-1157") captureEvents(this);    \n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ onResize : function(){\n'
20130515 '      //~ console.log("20120206 GridPanel.onResize",arguments);\n'
20130515 '      //~ Lino.GridPanel.superclass.onResize.apply(this, arguments);\n'
20130515 '      //~ this.refresh();\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '    var st = { base_params : this.get_base_params()};\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '        st.current_page = this.getTopToolbar().current;\n'
20130515 '    }\n'
20130515 '    st.param_values = this.status_param_values;\n'
20130515 '    //~ console.log("20120213 GridPanel.get_status",st);\n'
20130515 '    return st;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.GridPanel.set_status() \n'
20130515 '  */\n'
20130515 '  set_status : function(status){\n'
20130515 '    //~ console.log("20120918 GridPanel.set_status",status);\n'
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) { \n'
20130515 '      this.set_base_params(status.base_params);\n'
20130515 '    }\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '      //~ console.log("20120213 GridPanel.getTopToolbar().changePage",\n'
20130515 '          //~ status.current_page || 1);\n'
20130515 '      this.getTopToolbar().changePage(status.current_page || 1);\n'
20130515 '    }\n'
20130515 "    //~ this.fireEvent('resize');\n"
20130515 '    //~ this.refresh.defer(100,this); \n'
20130515 '    //~ this.onResize.defer(100,this); \n'
20130515 '    //~ this.refresh(); \n'
20130515 '    //~ this.doLayout(); \n'
20130515 '    //~ this.onResize(); \n'
20130515 '    //~ this.store.load();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '    this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ Lino.notify('20120204 Lino.GridPanel.refresh');\n"
20130515 "    //~ Lino.notify('Lino.GridPanel.refresh '+this.store.proxy.url);\n"
20130515 "    //~ var bp = { fmt:'json' }\n"
20130515 '    if (this.containing_panel) {\n'
20130515 '        //~ Ext.apply(p,this.master_panel.get_master_params());\n'
20130515 '        //~ Ext.apply(options.params,this.containing_panel.get_master_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (! this.view_is_ready) return;\n'
20130515 '    \n'
20130515 '    var options = {};\n'
20130515 '    if (after) {\n'
20130515 '        options.callback = function(r,options,success) {if(success) after()}\n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    //~ if (!this.rendered) {\n'
20130515 '        //~ console.log("20120206 GridPanel.refresh() must wait until rendered",options);\n'
20130515 "        //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    this.store.load(options);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* pageSize depends on grid height (Trying to remove scrollbar)\n'
20130515 '  Thanks to \n'
20130515 '  - Christophe Badoit on http://www.sencha.com/forum/showthread.php?82647\n'
20130515 '  - http://www.sencha.com/forum/archive/index.php/t-37231.html\n'
20130515 '  */\n'
20130515 '  calculatePageSize : function(second_attempt) {\n'
20130515 '    //~ if (!this.rendered) { \n'
20130515 '    if (!this.view_is_ready) { \n'
20130515 "      //~ console.log('Cannot calculatePageSize() : not rendered');\n"
20130515 '      return false; }\n'
20130515 '    //~ if (!this.isVisible()) { \n'
20130515 "      //~ console.log('calculatePageSize : not visible');\n"
20130515 '      //~ return false; }\n'
20130515 '      \n'
20130515 "    //~ console.log('getFrameHeight() is',this.getFrameHeight());\n"
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('mainBody.getHeight() is',this.getView().mainBody.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() is',this.getInnerHeight());\n"
20130515 "    //~ console.log('getHeight() is',this.getHeight());\n"
20130515 "    //~ console.log('el.getHeight() is',this.getEl().getHeight());\n"
20130515 "    //~ console.log('getGridEl().getHeight() is',this.getGridEl().getHeight());\n"
20130515 "    //~ console.log('getOuterSize().height is',this.getOuterSize().height);\n"
20130515 "    //~ console.log('getBox().height is',this.getBox().height);\n"
20130515 "    //~ console.log('getResizeEl.getHeight() is',this.getResizeEl().getHeight());\n"
20130515 "    //~ console.log('getLayoutTarget().getHeight() is',this.getLayoutTarget().getHeight());\n"
20130515 '      \n'
20130515 '    var rowHeight = this.getFrameHeight();\n'
20130515 '    //~ var rowHeight = 52; // experimental value\n'
20130515 '    var row = this.view.getRow(0);\n'
20130515 '    if (row) {\n'
20130515 "      //~ console.log('20120213 yes');\n"
20130515 '      rowHeight = Ext.get(row).getHeight();\n'
20130515 '    }\n'
20130515 "    //~ console.log('rowHeight is ',rowHeight,this,caller);\n"
20130515 '    //~ this.getView().syncScroll();\n'
20130515 '    //~ this.getView().initTemplates();\n'
20130515 '    var height = this.getView().scroller.getHeight();\n'
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() - getFrameHeight() is',\n"
20130515 "      //~ this.getInnerHeight(), '-',\n"
20130515 "      //~ this.getFrameHeight(), '=',\n"
20130515 '      //~ this.getInnerHeight() - this.getFrameHeight());\n'
20130515 '    //~ var height = this.getView().mainBody.getHeight();\n'
20130515 '    //~ var height = this.getView().mainWrap.getHeight();\n'
20130515 '    //~ var height = this.getView().resizeMarker.getHeight();\n'
20130515 '    //~ this.syncSize();\n'
20130515 '    //~ var height = this.getInnerHeight() - this.getFrameHeight();\n'
20130515 '    //~ var height = this.getHeight() - this.getFrameHeight();\n'
20130515 '    height -= Ext.getScrollBarWidth(); // leave room for a possible horizontal scrollbar... \n'
20130515 '    //~ height -= this.getView().scrollOffset;\n'
20130515 '    var ps = Math.floor(height / rowHeight);\n'
20130515 "    //~ console.log('20120203 calculatePageSize():',height,'/',rowHeight,'->',ps);\n"
20130515 '    ps -= 1; // leave room for a possible phantom row\n'
20130515 '    //~ return (ps > 1 ? ps : false);\n'
20130515 '    if (ps > 1) return ps;\n'
20130515 "    //~ console.log('calculatePageSize() found less than 1 row:',height,'/',rowHeight,'->',ps);\n"
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    return 5; // preview_limit\n'
20130515 '    //~ if (second_attempt) {\n'
20130515 "        //~ console.log('calculatePageSize() abandons after second attempt:',\n"
20130515 "          //~ height,'/',rowHeight,'->',ps);\n"
20130515 '      //~ return 5;\n'
20130515 '    //~ }\n'
20130515 '    //~ return this.calculatePageSize.defer(500,this,[true]);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  onCellDblClick : function(grid, row, col){\n'
20130515 '      //~ console.log("20120307 onCellDblClick",this,grid, row, col);\n'
20130515 '      if (this.ls_detail_handler) {\n'
20130515 "          //~ Lino.notify('show detail');\n"
20130515 '          Lino.show_detail(this);\n'
20130515 '          return false;\n'
20130515 '      }else{\n'
20130515 "        //~ console.log('startEditing');\n"
20130515 '        this.startEditing(row,col);\n'
20130515 '      }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_base_params : function() {\n'
20130515 '    //~ return this.containing_window.config.base_params;\n'
20130515 '    //~ console.log(20120717,this.store.baseParams);\n'
20130515 '    var p = Ext.apply({},this.store.baseParams);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    //~ console.log("20120717 GRidPanel.get_base_params() returns",p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.store.baseParams;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 "    //~ console.log('GridPanel.set_base_params',p)\n"
20130515 '    for (k in p) this.store.setBaseParam(k,p[k]);\n'
20130515 '    //~ this.store.baseParams = p;\n'
20130515 '    if (p.query) \n'
20130515 '        this.quick_search_field.setValue(p.query);\n'
20130515 '    //~ if (p.param_values) \n'
20130515 '        //~ this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.store.baseParams = {};\n'
20130515 '      Lino.insert_subst_user(this.store.baseParams);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.store.setBaseParam(k,v);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ get_permalink_params : function() {\n'
20130515 '    //~ var p = {};\n'
20130515 '    //~ return p;\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '    \n'
20130515 '  //~ search_keypress : function(){\n'
20130515 '    //~ console.log("2012124 search_keypress",arguments);\n'
20130515 '  //~ },\n'
20130515 '  search_validate : function(value) {\n'
20130515 '    if (value == this.quick_search_text) return true;\n'
20130515 '    this.is_searching = true;\n'
20130515 "    //~ console.log('search_validate',value)\n"
20130515 '    this.quick_search_text = value;\n'
20130515 "    this.set_base_param('query',value); \n"
20130515 '    //~ this.getTopToolbar().changePage(1);\n'
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '    return true;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  apply_grid_config : function(index,grid_configs,rpt_columns) {\n'
20130515 '    //~ var rpt_columns = this.ls_columns;\n'
20130515 '    var gc = grid_configs[index];    \n'
20130515 "    //~ console.log('apply_grid_config() 20100812',name,gc);\n"
20130515 '    this.gc_name = index;\n'
20130515 '    if (gc == undefined) {\n'
20130515 '      return rpt_columns;\n'
20130515 '      //~ config.columns = config.ls_columns;\n'
20130515 '      //~ return;\n'
20130515 '    } \n'
20130515 '    //~ delete config.ls_filters\n'
20130515 '    \n'
20130515 '    //~ console.log(20100805,config.ls_columns);\n'
20130515 '    var columns = Array(gc.columns.length);\n'
20130515 '    for (var j = 0; j < rpt_columns.length;j++) {\n'
20130515 '      var col = rpt_columns[j];\n'
20130515 '      for (var i = 0; i < gc.columns.length; i++) {\n'
20130515 '        if (col.dataIndex == gc.ci[i]) {\n'
20130515 '          col.width = gc.cw[i];\n'
20130515 '          col.hidden = gc.ch[i];\n'
20130515 '          columns[i] = col;\n'
20130515 '          break;\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ var columns = Array(rpt_columns.length);\n'
20130515 '    //~ for (var i = 0; i < rpt_columns.length; i++) {\n'
20130515 '      //~ columns[i] = rpt_columns[gc.columns[i]];\n'
20130515 '      //~ columns[i].width = gc.widths[i];\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    //~ if (gc.hidden_cols) {\n'
20130515 '      //~ for (var i = 0; i < gc.hidden_cols.length; i++) {\n'
20130515 '        //~ var hc = gc.hidden_cols[i];\n'
20130515 '        //~ for (var j = 0; j < columns.length;j++) {\n'
20130515 '          //~ var col = columns[j];\n'
20130515 '          //~ if (col.dataIndex == hc) {\n'
20130515 '            //~ col.hidden = true;\n'
20130515 '            //~ break\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '    if (gc.filters) {\n'
20130515 "      //~ console.log(20100811,'config.ls_filters',config.ls_filters);\n"
20130515 "      //~ console.log(20100811,'config.ls_grid_config.filters',config.ls_grid_config.filters);\n"
20130515 '      for (var i = 0; i < gc.filters.length; i++) {\n'
20130515 '        var fv = gc.filters[i];\n'
20130515 '        for (var j = 0; j < columns.length;j++) {\n'
20130515 '          var col = columns[j];\n'
20130515 '          if (col.dataIndex == fv.field) {\n'
20130515 "            //~ console.log(20100811, f,' == ',fv);\n"
20130515 "            if (fv.type == 'string') {\n"
20130515 '              col.filter.value = fv.value;\n'
20130515 '              //~ if (fv.comparison !== undefined) f.comparison = fv.comparison;\n'
20130515 '            } else {\n'
20130515 '              //~ console.log(20100811, fv);\n'
20130515 '              col.filter.value = {};\n'
20130515 '              col.filter.value[fv.comparison] = fv.value;\n'
20130515 '            }\n'
20130515 '            break;\n'
20130515 '          }\n'
20130515 '        };\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    return columns;\n'
20130515 '    //~ config.columns = cols;\n'
20130515 '    //~ delete config.ls_columns\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_current_grid_config : function () {\n'
20130515 '    var cm = this.getColumnModel();\n'
20130515 '    var widths = Array(cm.config.length);\n'
20130515 '    var hiddens = Array(cm.config.length);\n'
20130515 '    //~ var hiddens = Array(cm.config.length);\n'
20130515 '    var columns = Array(cm.config.length);\n'
20130515 '    //~ var columns = Array(cm.config.length);\n'
20130515 '    //~ var hidden_cols = [];\n'
20130515 '    //~ var filters = this.filters.getFilterValues();\n'
20130515 '    var p = this.filters.buildQuery(this.filters.getFilterData())\n'
20130515 '    for (var i = 0; i < cm.config.length; i++) {\n'
20130515 '      var col = cm.config[i];\n'
20130515 '      columns[i] = col.dataIndex;\n'
20130515 '      //~ hiddens[i] = col.hidden;\n'
20130515 '      widths[i] = col.width;\n'
20130515 '      hiddens[i] = col.hidden;\n'
20130515 '      //~ if (col.hidden) hidden_cols.push(col.dataIndex);\n'
20130515 '    }\n'
20130515 "    //~ p['hidden_cols'] = hidden_cols;\n"
20130515 '    p.cw = widths;\n'
20130515 '    p.ch = hiddens;\n'
20130515 '    p.ci = columns;\n'
20130515 "    //~ p['widths'] = widths;\n"
20130515 "    //~ p['hiddens'] = hiddens;\n"
20130515 "    //~ p['columns'] = columns;\n"
20130515 "    p['name'] = this.gc_name;\n"
20130515 '    //~ var gc = this.ls_grid_configs[this.gc_name];\n'
20130515 '    //~ if (gc !== undefined) \n'
20130515 "        //~ p['label'] = gc.label\n"
20130515 "    //~ console.log('20100810 save_grid_config',p);\n"
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_manage_grid_configs : function() {\n'
20130515 '    var data = [];\n'
20130515 '    for (k in this.ls_grid_configs) {\n'
20130515 '      var v = this.ls_grid_configs[k];\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i)\n'
20130515 '    }\n'
20130515 '    if (this.ls_grid_configs[this.gc_name] == undefined) {\n'
20130515 '      var v = this.get_current_grid_config();\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i);\n'
20130515 '    }\n'
20130515 '    //~ console.log(20100811, data);\n'
20130515 '    var main = new Ext.grid.GridPanel({\n'
20130515 '      store: new Ext.data.ArrayStore({\n'
20130515 '        idIndex:0,\n'
20130515 "        fields:['name','columns','hidden_cols','filters'],\n"
20130515 '        autoDestroy:true,\n'
20130515 '        data: data}),\n'
20130515 '      //~ autoHeight:true,\n'
20130515 '      selModel: new Ext.grid.RowSelectionModel(),\n'
20130515 '      listeners: { \n'
20130515 '        rowdblclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row doubleclicked',grid, rowIndex,e);\n"
20130515 '        },\n'
20130515 '        rowclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row clicked',grid, rowIndex,e);\n"
20130515 '        }\n'
20130515 '      },\n'
20130515 '      columns: [ \n'
20130515 "        {dataIndex:'name',header:'Name'}, \n"
20130515 "        {dataIndex:'columns',header:'columns'}, \n"
20130515 "        {dataIndex:'hidden_cols',header:'hidden columns'}, \n"
20130515 "        {dataIndex:'filters',header:'filters'} \n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 "    var win = new Ext.Window({title:'GridConfigs Manager',layout:'fit',items:main,height:200});\n"
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_edit_grid_config : function(name) {\n'
20130515 '    gc = this.ls_grid_configs[name];\n'
20130515 '    var win = new Ext.Window({\n'
20130515 "      title:'Edit Grid Config',layout:'vbox', \n"
20130515 "      //~ layoutConfig:'stretch'\n"
20130515 '      items:[\n'
20130515 "        {xtype:'text', value: gc.name},\n"
20130515 "        {xtype:'text', value: gc.columns},\n"
20130515 "        {xtype:'text', value: gc.hidden_cols},\n"
20130515 "        {xtype:'text', value: gc.filters}\n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  save_grid_config : function () {\n'
20130515 "    //~ console.log('TODO: save_grid_config',this);\n"
20130515 "    //~ p.column_widths = Ext.pluck(this.colModel.columns,'width');\n"
20130515 '    var a = { \n'
20130515 '      params:this.get_current_grid_config(), \n'
20130515 "      method:'PUT',\n"
20130515 "      url:'/grid_config' + this.ls_url,\n"
20130515 '      success: Lino.action_handler(this),\n'
20130515 '      scope: this,\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    //~ Lino.do_action(this,a);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_beforeedit : function(e) {\n'
20130515 "    //~ console.log('20130128 GridPanel.on_beforeedit()',e,e.record.data.disable_editing);\n"
20130515 '    if(this.disable_editing | e.record.data.disable_editing) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This record is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    if(e.record.data.disabled_fields && e.record.data.disabled_fields[e.field]) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This field is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    //~ if (e.record.data.disabled_fields) {\n'
20130515 '      //~ for (i in e.record.data.disabled_fields) {\n'
20130515 '        //~ if(e.record.data.disabled_fields[i] == e.field) {\n'
20130515 '          //~ e.cancel = true;\n'
20130515 '          //~ Lino.notify(String.format(\'Field "{0}" is disabled for this record\',e.field));\n'
20130515 '          //~ return\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  save_grid_data : function() {\n'
20130515 '      //~ console.log("20120814 save_grid_data");\n'
20130515 '      this.getStore().commitChanges();\n'
20130515 '  },\n'
20130515 '  new_on_afteredit : function(e) {\n'
20130515 '      //~ this.getStore().commitChanges();\n'
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '      console.log("20120814 new_on_afteredit",e);\n'
20130515 '  },\n'
20130515 '  on_afteredit : function(e) {\n'
20130515 '    /*\n'
20130515 '    e.grid - The grid that fired the event\n'
20130515 '    e.record - The record being edited\n'
20130515 '    e.field - The field name being edited\n'
20130515 '    e.value - The value being set\n'
20130515 '    e.originalValue - The original value for the field, before the edit.\n'
20130515 '    e.row - The grid row index\n'
20130515 '    e.column - The grid column index\n'
20130515 '    */\n'
20130515 '    var p = {};\n'
20130515 "    //~ console.log('20101130 modified: ',e.record.modified);\n"
20130515 "    //~ console.log('20101130 value: ',e.value);\n"
20130515 '    //~ var p = e.record.getChanges();\n'
20130515 "    //~ console.log('20101130 getChanges: ',e.record.getChanges());\n"
20130515 '    //~ this.before_row_edit(e.record);\n'
20130515 '    for(k in e.record.getChanges()) {\n'
20130515 '        var v = e.record.get(k);\n'
20130515 '    //~ for(k in e.record.modified) {\n'
20130515 "        //~ console.log('20101130',k,'=',v);\n"
20130515 '        //~ var cm = e.grid.getColumnModel();\n'
20130515 '        //~ var di = cm.getDataIndex(k);\n'
20130515 '        var f = e.record.fields.get(k);\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 '        //~ var v = e.record.get(di);\n'
20130515 "        if (f.type.type == 'date') {\n"
20130515 '            p[k] = Ext.util.Format.date(v, f.dateFormat);\n'
20130515 '        }else{\n'
20130515 '            p[k] = v;\n'
20130515 "            var v = e.record.get(k+'Hidden');\n"
20130515 '            if (v !== undefined) {\n'
20130515 "              p[k+'Hidden'] = v;\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        //~ var i = cm.findColumnIndex(k);\n'
20130515 '        //~ var r = cm.getRenderer(i);\n'
20130515 '        //~ var editor = cm.getCellEditor(i,e.row);\n'
20130515 '        //~ var col = e.grid.getColumnModel().getColumnById(k);\n'
20130515 "        //~ console.log('20101130 r = ',r(v));\n"
20130515 '        //~ var f = e.record.fields[k];\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 "        //~ console.log('20101130 editor = ',editor);\n"
20130515 '        //~ p[k] = f.getValue();\n'
20130515 '        //~ p[k] = r(v);\n'
20130515 '    }\n'
20130515 "    //~ console.log('20101130 p:',p);\n"
20130515 '    //~ var cm = e.grid.getColumnModel();\n'
20130515 '    //~ var di = cm.getDataIndex(e.column);\n'
20130515 '    //~ var f = e.record.fields.get(di);\n'
20130515 "    //~ console.log('20101130 f = ',f);\n"
20130515 "    //~ if (f.type.type == 'date') e.record.set(di,Ext.util.Format.date(e.value, f.dateFormat));\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var p = e.record.data;\n'
20130515 '    \n'
20130515 '    // var p = {};\n'
20130515 "    //~ p['grid_afteredit_colname'] = e.field;\n"
20130515 '    //~ p[e.field] = e.value;\n'
20130515 "    //~ console.log('20100723 GridPanel.on_afteredit()',e);\n"
20130515 '    // add value used by ForeignKeyStoreField CHOICES_HIDDEN_SUFFIX\n'
20130515 '    // not sure whether this is still needed:\n'
20130515 "    p[e.field+'Hidden'] = e.value;\n"
20130515 '    //~ p.su = Lino.subst_user;\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    // this one is needed so that this field can serve as choice context:\n'
20130515 "    e.record.data[e.field+'Hidden'] = e.value;\n"
20130515 '    // p[pk] = e.record.data[pk];\n'
20130515 '    // console.log("grid_afteredit:",e.field,\'=\',e.value);\n'
20130515 '    Ext.apply(p,this.get_base_params()); // needed for POST, ignored for PUT\n'
20130515 '    //~ Ext.apply(p,this.containing_window.config.base_params);\n'
20130515 "    //~ 20121109 p['$ext_requests.URL_PARAM_ACTION_NAME'] = 'grid';\n"
20130515 '    var self = this;\n'
20130515 '    var req = {\n'
20130515 '        params:p,\n'
20130515 "        waitMsg: 'Saving your data...',\n"
20130515 '        success: Lino.action_handler( this, function(result) {\n'
20130515 '          //~ if (result.data_record) {\n'
20130515 '          if (result.refresh_all) {\n'
20130515 '              var cw = self.get_containing_window();\n'
20130515 '              if (cw) {\n'
20130515 '                  cw.main_item.refresh();\n'
20130515 '              }\n'
20130515 '              else console.log("20120123 cannot refresh_all",self);\n'
20130515 '          } else if (result.rows) {\n'
20130515 '              //~ self.getStore().loadData(result,true);\n'
20130515 '              var r = self.getStore().reader.readRecords(result);\n'
20130515 '              if (e.record.phantom) {\n'
20130515 '                  //~ console.log("20120816 afteredit.success POST",r);\n'
20130515 '                  self.getStore().insert(e.row,r.records);\n'
20130515 '              }else{\n'
20130515 '                  //~ console.log("20120816 afteredit.success PUT",r);\n'
20130515 '                  self.getStore().doUpdate(r.records[0]);\n'
20130515 '              }\n'
20130515 '              self.getStore().rejectChanges(); /* \n'
20130515 '              get rid of the red triangles without saving the record again\n'
20130515 '              */\n'
20130515 '              //~ self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '          } else {\n'
20130515 '              self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '              self.getStore().reload();        // reload our datastore.\n'
20130515 '          }\n'
20130515 '          }),\n'
20130515 '        scope: this,\n'
20130515 '        failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    if (e.record.phantom) {\n'
20130515 "      req.params.an = 'post'; // SubmitInsert.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'POST',\n"
20130515 "        url: '/api' + this.ls_url\n"
20130515 '      });\n'
20130515 '    } else {\n'
20130515 "      req.params.an = 'put'; // SubmitDetail.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'PUT',\n"
20130515 "        url: '/api' + this.ls_url + '/' + e.record.id\n"
20130515 '      });\n'
20130515 '    }\n'
20130515 "    //~ console.log('20110406 on_afteredit',req);\n"
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(req);\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  afterRender : function() {\n'
20130515 '    Lino.GridPanel.superclass.afterRender.call(this);\n'
20130515 '    // this.getView().mainBody.focus();\n'
20130515 '    // console.log(20100114,this.getView().getRows());\n'
20130515 '    // if (this.getView().getRows().length > 0) {\n'
20130515 '    //  this.getView().focusRow(1);\n'
20130515 '    // }\n'
20130515 '    //~ this.my_load_mask = new Ext.LoadMask(this.getEl(), {\n'
20130515 '        //~ msg:\'$_("Please wait...")\',\n'
20130515 '        //~ store:this.store});\n'
20130515 '      \n'
20130515 '    var tbar = this.getTopToolbar();\n'
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 "    // tbar.on('change',function() {this.getSelectionModel().selectFirstRow();this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 '    this.nav = new Ext.KeyNav(this.getEl(),{\n'
20130515 '      pageUp: function() {tbar.movePrevious(); },\n'
20130515 '      pageDown: function() {tbar.moveNext(); },\n'
20130515 '      home: function() {tbar.moveFirst(); },\n'
20130515 '      end: function() {tbar.moveLast(); },\n'
20130515 '      scope: this\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  after_delete : function() {\n'
20130515 "    //~ console.log('Lino.GridPanel.after_delete');\n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  add_row_listener : function(fn,scope) {\n'
20130515 "    this.getSelectionModel().addListener('rowselect',fn,scope);\n"
20130515 '  },\n'
20130515 '  postEditValue : function(value, originalValue, r, field){\n'
20130515 '    value = Lino.GridPanel.superclass.postEditValue.call(this,value,originalValue,r,field);\n'
20130515 "    //~ console.log('GridPanel.postEdit()',value, originalValue, r, field);\n"
20130515 '    return value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_start_value : function(v) {\n'
20130515 '      this.start_value = v;\n'
20130515 '  },\n'
20130515 '  preEditValue : function(r, field){\n'
20130515 '      if (this.start_value) {\n'
20130515 '        var v = this.start_value;\n'
20130515 '        delete this.start_value;\n'
20130515 '        this.activeEditor.selectOnFocus = false;\n'
20130515 '        return v;\n'
20130515 '      }\n'
20130515 '      var value = r.data[field];\n'
20130515 '      return this.autoEncode && Ext.isString(value) ? Ext.util.Format.htmlDecode(value) : value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_master_changed : function() {\n'
20130515 '    //~ if (! this.enabled) return;\n'
20130515 '    //~ cmp = this;\n'
20130515 "    //~ console.log('Lino.GridPanel.on_master_changed()',this.title);\n"
20130515 '    if (! this.rendered) return; // 20120213\n'
20130515 '    var todo = function() {\n'
20130515 '      if (this.disabled) return;\n'
20130515 '      //~ if (this.disabled) return;\n'
20130515 '      //~ if (this.enabled) {\n'
20130515 '          //~ var src = caller.config.url_data + "/" + record.id + ".jpg"\n'
20130515 '          //~ console.log(20111125, this.containing_window);\n'
20130515 '          //~ for (k in p) this.getStore().setBaseParam(k,p[k]);\n'
20130515 "          //~ console.log('Lino.GridPanel.on_master_changed()',this.title,p);\n"
20130515 '          this.refresh();\n'
20130515 '          //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '          //~ this.getStore().load(); \n'
20130515 '      //~ }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '  \n'
20130515 '\n'
20130515 '//~ Lino.MainPanelMixin = {\n'
20130515 '  //~ tbar_items : function() {\n'
20130515 '      //~ return ;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.override(Lino.GridPanel,Lino.MainPanelMixin);\n'
20130515 '//~ Ext.override(Lino.FormPanel,Lino.MainPanelMixin);\n'
20130515 '\n'
20130515 '//~ Lino.grid_context_menu = function(e) {\n'
20130515 "  //~ console.log('contextmenu',arguments);\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.cell_context_menu = function(grid,row,col,e) {\n'
20130515 "  //~ console.log('20120531 cellcontextmenu',grid,row,col,e,grid.store.reader.arrayData.rows[row]);\n"
20130515 '  e.stopEvent();\n'
20130515 '  //~ grid.getView().focusCell(row,col);\n'
20130515 '  grid.getSelectionModel().select(row,col);\n'
20130515 '  //~ console.log(grid.store.getAt(row));\n'
20130515 '  //~ grid.getView().focusRow(row);\n'
20130515 '  //~ return;\n'
20130515 '  if(!grid.cmenu.el){grid.cmenu.render(); }\n'
20130515 '  //~ if(e.record.data.disabled_fields) {\n'
20130515 '  \n'
20130515 '  var da = grid.store.reader.arrayData.rows[row][grid.disabled_actions_index];\n'
20130515 '  if (da) {\n'
20130515 '      this.cmenu.cascade(function(item){ \n'
20130515 '        //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '        if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  \n'
20130515 '  var xy = e.getXY();\n'
20130515 '  xy[1] -= grid.cmenu.el.getHeight();\n'
20130515 '  grid.cmenu.showAt(xy);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.load_main_menu = function() {\n'
20130515 '  //~ Ext.Ajax.request({\n'
20130515 "    //~ waitMsg: 'Loading main menu...',\n"
20130515 "    //~ method: 'GET',\n"
20130515 "    //~ url: '/menu',\n"
20130515 '    //~ success: Lino.on_load_menu,\n'
20130515 '    //~ failure: Lino.ajax_error_handler\n'
20130515 '  //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.SlavePlugin = function(caller) {\n'
20130515 '  //~ this.caller = caller;\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.chooser_handler = function(combo,name) {\n'
20130515 '  return function(cmp,newValue,oldValue) {\n'
20130515 "    //~ console.log('Lino.chooser_handler()',cmp,oldValue,newValue);\n"
20130515 '    combo.setContextValue(name,newValue);\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ComboBox = Ext.extend(Ext.form.ComboBox,{\n'
20130515 '  forceSelection: true,\n'
20130515 "  triggerAction: 'all',\n"
20130515 '  minListWidth:230,\n'
20130515 '  autoSelect: false,\n'
20130515 '  selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  submitValue: true,\n'
20130515 "  displayField: 'text', // 'text', \n"
20130515 "  valueField: 'value', // 'value',\n"
20130515 '  \n'
20130515 '  //~ initComponent : Ext.form.ComboBox.prototype.initComponent.createSequence(function() {\n'
20130515 '  initComponent : function(){\n'
20130515 '      this.contextParams = {};\n'
20130515 '      //~ Ext.form.ComboBox.initComponent(this);\n'
20130515 '      Lino.ComboBox.superclass.initComponent.call(this);\n'
20130515 '  },\n'
20130515 '  setValue : function(v,record_data){\n'
20130515 '      /*\n'
20130515 '      Based on feature request developed in http://extjs.net/forum/showthread.php?t=75751\n'
20130515 '      */\n'
20130515 '      /* `record_data` is used to get the text corresponding to this value */\n'
20130515 "      //~ if(this.name == 'city') \n"
20130515 "      //~ console.log('20120203', this.name,'.setValue(', v ,') this=', this,'record_data=',record_data);\n"
20130515 '      var text = v;\n'
20130515 '      if(this.valueField){\n'
20130515 "        if(v == null || v == '') { \n"
20130515 "            //~ if (this.name == 'birth_country') \n"
20130515 "                //~ console.log(this.name,'.setValue',v,'no lookup needed, value is empty');\n"
20130515 '            //~ v = undefined;\n'
20130515 "            v = '';\n"
20130515 "            //~ text = '';\n"
20130515 '        } else if (Ext.isDefined(record_data)) {\n'
20130515 '          text = record_data[this.name];\n'
20130515 "          //~ if (this.name == 'birth_country') \n"
20130515 "            //~ console.log(this.name,'.setValue',v,'got text ',text,' from record ',record);\n"
20130515 '        } else {\n'
20130515 "          // if(this.mode == 'remote' && !Ext.isDefined(this.store.totalLength)){\n"
20130515 "          if(this.mode == 'remote' && ( this.lastQuery === null || (!Ext.isDefined(this.store.totalLength)))){\n"
20130515 "              //~ if (this.name == 'birth_country') console.log(this.name,'.setValue',v,'store not yet loaded');\n"
20130515 "              this.store.on('load', this.setValue.createDelegate(this, arguments), null, {single: true});\n"
20130515 '              if(this.store.lastOptions === null || this.lastQuery === null){\n'
20130515 '                  var params;\n'
20130515 '                  if(this.valueParam){\n'
20130515 '                      params = {};\n'
20130515 '                      params[this.valueParam] = v;\n'
20130515 '                  }else{\n'
20130515 '                      var q = this.allQuery;\n'
20130515 '                      this.lastQuery = q;\n'
20130515 '                      this.store.setBaseParam(this.queryParam, q);\n'
20130515 '                      params = this.getParams(q);\n'
20130515 '                  }\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : call load() with params ',params);\n"
20130515 '                  this.store.load({params: params});\n'
20130515 '              //~ }else{\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : but store is loading',this.store.lastOptions);\n"
20130515 '              }\n'
20130515 '              return;\n'
20130515 '          //~ }else{\n'
20130515 "              //~ if (this.name == 'birth_country') \n"
20130515 '                //~ console.log(this.name,\'.setValue\',v,\' : store is loaded, lastQuery is "\',this.lastQuery,\'"\');\n'
20130515 '          }\n'
20130515 '          var r = this.findRecord(this.valueField, v);\n'
20130515 '          if(r){\n'
20130515 '              text = r.data[this.displayField];\n'
20130515 '          }else if(this.valueNotFoundText !== undefined){\n'
20130515 '              text = this.valueNotFoundText;\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      this.lastSelectionText = text;\n'
20130515 '      //~ this.lastSelectionText = v;\n'
20130515 '      if(this.hiddenField){\n'
20130515 '          //~ this.hiddenField.originalValue = v;\n'
20130515 '          this.hiddenField.value = v;\n'
20130515 '      }\n'
20130515 '      Ext.form.ComboBox.superclass.setValue.call(this, text);\n'
20130515 '      this.value = v; // needed for grid.afteredit\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  getParams : function(q){\n'
20130515 '    // p = Ext.form.ComboBox.superclass.getParams.call(this, q);\n'
20130515 '    // causes "Ext.form.ComboBox.superclass.getParams is undefined"\n'
20130515 '    var p = {};\n'
20130515 '    //p[this.queryParam] = q;\n'
20130515 '    if(this.pageSize){\n'
20130515 '        //~ p.start = 0;\n'
20130515 '        //~ p.limit = this.pageSize;\n'
20130515 "        p['start'] = 0;\n"
20130515 "        p['limit'] = this.pageSize;\n"
20130515 '    }\n'
20130515 '    // now my code:\n'
20130515 '    if(this.contextParams) Ext.apply(p,this.contextParams);\n'
20130515 '    //~ if(this.contextParams && this.contextValues) {\n'
20130515 '      //~ for(i = 0; i <= this.contextParams.length; i++)\n'
20130515 '        //~ p[this.contextParams[i]] = this.contextValues[i];\n'
20130515 '    //~ }\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  setContextValue : function(name,value) {\n'
20130515 "    //~ console.log('setContextValue',this,this.name,':',name,'=',value);\n"
20130515 '    //~ if (this.contextValues === undefined) {\n'
20130515 '        //~ this.contextValues = Array(); // this.contextParams.length);\n'
20130515 '    //~ }\n'
20130515 '    if (this.contextParams[name] != value) {\n'
20130515 "      //~ console.log('setContextValue 1',this.contextParams);\n"
20130515 '      this.contextParams[name] = value;\n'
20130515 '      this.lastQuery = null;\n'
20130515 "      //~ console.log('setContextValue 2',this.contextParams);\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ChoicesFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'local'\n"
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  forceSelection: true,\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.SimpleRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value' ], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ComplexRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.ComplexRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value','text'], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.RemoteComboFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'remote',\n"
20130515 '  //~ forceSelection:false,\n'
20130515 '  minChars: 2, // default 4 is too much\n'
20130515 '  queryDelay: 300, // default 500 is maybe slow\n'
20130515 "  queryParam: 'query', \n"
20130515 '  //~ typeAhead: true,\n'
20130515 '  //~ selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  resizable: true\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Thanks to Animal for posting the basic idea:\n'
20130515 'http://www.sencha.com/forum/showthread.php?15842-2.0-SOLVED-Combobox-twintrigger-clear&p=76130&viewfull=1#post76130\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Lino.TwinCombo = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "    trigger2Class : 'x-form-search-trigger',\n"
20130515 "    //~ trigger2Class : 'x-tbar-detail',\n"
20130515 '    initComponent : function() {\n'
20130515 '        //~ Lino.TwinCombo.superclass.initComponent.call(this);\n'
20130515 '        Lino.ComboBox.prototype.initComponent.call(this);\n'
20130515 '        Ext.form.TwinTriggerField.prototype.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    onTrigger2Click : function() {\n'
20130515 "        //~ console.log('onTrigger2Click',this,arguments);\n"
20130515 '    }\n'
20130515 '  });\n'
20130515 '//~ Lino.TwinCombo.prototype.initComponent = Ext.form.TwinTriggerField.prototype.initComponent;\n'
20130515 'Lino.TwinCombo.prototype.getTrigger = Ext.form.TwinTriggerField.prototype.getTrigger;\n'
20130515 'Lino.TwinCombo.prototype.getOuterSize = Ext.form.TwinTriggerField.prototype.getOuterSize;\n'
20130515 'Lino.TwinCombo.prototype.initTrigger = Ext.form.TwinTriggerField.prototype.initTrigger;\n'
20130515 'Lino.TwinCombo.prototype.onTrigger1Click = Ext.form.ComboBox.prototype.onTriggerClick;\n'
20130515 '//~ Lino.TwinCombo.prototype.onTrigger2Click = function() {\n'
20130515 "    //~ console.log('onTrigger2Click',arguments);\n"
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboFieldElement = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "  displayField: 'value', \n"
20130515 '  valueField: null,\n'
20130515 '  forceSelection: false\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Window = Ext.extend(Ext.Window,{\n'
20130515 '  //~ layout: "fit", \n'
20130515 "  closeAction : 'hide',\n"
20130515 "  renderTo: 'main_area', \n"
20130515 '  constrain: true,\n'
20130515 '  maximized: true,\n'
20130515 '  draggable: false,\n'
20130515 '  width: 700,\n'
20130515 '  height: 500,\n'
20130515 '  maximizable: false,\n'
20130515 '  constructor : function (config) {\n'
20130515 '    if (config.main_item.params_panel) {\n'
20130515 "        config.layout = 'border';\n"
20130515 "        config.main_item.region = 'center';\n"
20130515 "        config.main_item.params_panel.region = 'north';\n"
20130515 '        config.main_item.params_panel.hidden = config.main_item.params_panel_hidden;\n'
20130515 '        config.items = [config.main_item.params_panel, config.main_item];\n'
20130515 '    } else {\n'
20130515 "        config.layout = 'fit';\n"
20130515 '        config.items = config.main_item;\n'
20130515 '    }\n'
20130515 '    this.main_item = config.main_item; \n'
20130515 '    \n'
20130515 '    delete config.main_item;\n'
20130515 '    //~ delete config.params_item;\n'
20130515 '    \n'
20130515 '    //~ this.main_item = config.items.get(0);\n'
20130515 '    this.main_item.containing_window = this;\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 1');\n"
20130515 '    //~ if (Lino.current_window) { // all windows except the top are closable\n'
20130515 '    if (this.main_item.hide_window_title) { \n'
20130515 '      config.closable = false;\n'
20130515 '      config.frame = false;\n'
20130515 '      config.shadow = false;\n'
20130515 '      //~ config.border = true;\n'
20130515 '      //~ config.title = undefined;\n'
20130515 '      //~ config.tools = null;\n'
20130515 '      delete config.title;\n'
20130515 '      delete config.tools;\n'
20130515 '    } else {\n'
20130515 '      config.title = this.main_item.empty_title;\n'
20130515 '      config.closable = true;\n'
20130515 '      config.tools = [ \n'
20130515 '        { qtip: \'permalink\', handler: Lino.permalink_handler(this), id: "pin" }\n'
20130515 '      ];\n'
20130515 "      if (this.main_item.content_type && this.main_item.action_name != 'insert') {\n"
20130515 '        config.tools = [ {\n'
20130515 '          handler: Lino.help_text_editor,\n'
20130515 '          qtip: "Edit help texts for fields on this model.",\n'
20130515 '          scope: this.main_item,\n'
20130515 '          id: "gear"\n'
20130515 '        }].concat(config.tools);\n'
20130515 '      }\n'
20130515 '        \n'
20130515 '    //~ { qtip: \'\', handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: this.config.qtip, handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: \'Call doLayout() on main Container.\', handler: Lino.refresh_handler(this), id: "refresh" },\n'
20130515 '    //~ if (this.main_item.params_panel) {\n'
20130515 '        //~ config.tools = config.tools.concat([ \n'
20130515 '          //~ { qtip: \'Show/hide parameter panel\', handler: this.toggle_params_panel, id: "gear", scope:this } \n'
20130515 '        //~ ]);\n'
20130515 '    //~ }\n'
20130515 '    //~ if (config.closable !== false) {\n'
20130515 '      // if undefined, will take default behaviour\n'
20130515 '      //~ config.tools = config.tools.concat([ \n'
20130515 '        //~ { qtip: \'close\', handler: this.hide, id: "close", scope:this } \n'
20130515 '      //~ ]);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    this.main_item.config_containing_window(config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 2');\n"
20130515 '    Lino.Window.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 3');\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.main_item.init_containing_window(this);\n'
20130515 '    Lino.Window.superclass.initComponent.call(this);\n'
20130515 '  \n'
20130515 '  },\n'
20130515 '  hide : function() { \n'
20130515 '      this.main_item.do_when_clean(false,function() { \n'
20130515 '        Lino.close_window(); });\n'
20130515 '  },\n'
20130515 '  hide_really : function() { \n'
20130515 '    Lino.Window.superclass.hide.call(this);\n'
20130515 '  },\n'
20130515 '  onRender : function(ct, position){\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 1');\n"
20130515 '    Lino.Window.superclass.onRender.call(this, ct, position);\n'
20130515 "    var main_area = Ext.getCmp('main_area')\n"
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 2');\n"
20130515 '  \n'
20130515 "    this.on('show', function(win) {\n"
20130515 "        //~ console.log('20120110 Lino.Window.on show 1');\n"
20130515 "        main_area.on('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    this.on('hide', function(win) {\n"
20130515 "        main_area.un('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 3');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.unused_ParamWindow = Ext.extend(Lino.Window,{\n'
20130515 '  //~ layout: "border", \n'
20130515 '  constructor : function (config) {\n'
20130515 '    Lino.ParamWindow.superclass.constructor.call(this,config);\n'
20130515 '    this.main_item = config.items; // `items` must be a single component\n'
20130515 "    config.layout = 'border';\n"
20130515 "    this.main_item.region = 'center';\n"
20130515 "    config.params.region = 'north';\n"
20130515 '    config.items = [config.params, config.items];\n'
20130515 '    //~ delete config.params;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '(function(){\n'
20130515 "    var ns = Ext.ns('Ext.ux.plugins');\n"
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @class Ext.ux.plugins.DefaultButton\n'
20130515 '     * @extends Object\n'
20130515 '     *\n'
20130515 '     * Plugin for Button that will click() the button if the user presses ENTER while\n'
20130515 "     * a component in the button's form has focus.\n"
20130515 '     *\n'
20130515 '     * @author Stephen Friedrich\n'
20130515 '     * @date 09-DEC-2009\n'
20130515 '     * @version 0.1\n'
20130515 '     *\n'
20130515 '     */\n'
20130515 '    ns.DefaultButton =  Ext.extend(Object, {\n'
20130515 '        init: function(button) {\n'
20130515 "            button.on('afterRender', setupKeyListener, button);\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '\n'
20130515 '    function setupKeyListener() {\n'
20130515 "        var formPanel = this.findParentByType('form');\n"
20130515 '        new Ext.KeyMap(formPanel.el, {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            shift: false,\n'
20130515 '            alt: false,\n'
20130515 '            fn: function(keyCode, e){\n'
20130515 "                if(e.target.type === 'textarea' && !e.ctrlKey) {\n"
20130515 '                    return true;\n'
20130515 '                }\n'
20130515 '\n'
20130515 "                this.el.select('button').item(0).dom.click();\n"
20130515 '                return false;\n'
20130515 '            },\n'
20130515 '            scope: this\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '\n'
20130515 "    Ext.ComponentMgr.registerPlugin('defaultButton', ns.DefaultButton);\n"
20130515 '\n'
20130515 '})(); \n'
20130515 '\n'
20130515 'Ext.override(Ext.form.BasicForm,{\n'
20130515 '    my_loadRecord : function(values){\n'
20130515 '    //~ loadRecord : function(record){\n'
20130515 "        /* Same as ExtJS's loadRecord() (setValues()), except that we \n"
20130515 '        forward also the record to field.setValue() so that Lino.Combobox \n'
20130515 '        can use it. \n'
20130515 '        */\n'
20130515 "        //~ console.log('20120918 my_loadRecord',values)\n"
20130515 '        if(Ext.isArray(values)){ \n'
20130515 '            for(var i = 0, len = values.length; i < len; i++){\n'
20130515 '                var v = values[i];\n'
20130515 '                var f = this.findField(v.id);\n'
20130515 '                if(f){\n'
20130515 '                    f.setValue(v.value,values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        f.originalValue = f.getValue();\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }else{ \n'
20130515 '            var field, id;\n'
20130515 '            for(id in values){\n'
20130515 '                if(!Ext.isFunction(values[id]) && (field = this.findField(id))){\n'
20130515 '                    field.setValue(values[id],values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        field.originalValue = field.getValue();\n'
20130515 '                        //~ if (field.hiddenField) {\n'
20130515 '                          //~ field.hiddenField.originalValue = field.hiddenField.value;\n'
20130515 '                        //~ }\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'function initializeFooBarDropZone(cmp) {\n'
20130515 "    //~ console.log('initializeFooBarDropZone',cmp);\n"
20130515 '    cmp.dropTarget = new Ext.dd.DropTarget(cmp.bwrap, {\n'
20130515 "      //~ ddGroup     : 'gridDDGroup',\n"
20130515 '      notifyEnter : function(ddSource, e, data) {\n'
20130515 "        console.log('notifyEnter',ddSource,e,data);\n"
20130515 '        //Add some flare to invite drop.\n'
20130515 '        cmp.body.stopFx();\n'
20130515 '        cmp.body.highlight();\n'
20130515 '      },\n'
20130515 '      notifyDrop  : function(ddSource, e, data){\n'
20130515 "        console.log('notifyDrop',ddSource,e,data);\n"
20130515 '        // Reference the record (single selection) for readability\n'
20130515 '        //~ var selectedRecord = ddSource.dragData.selections[0];\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Load the record into the form\n'
20130515 '        //~ formPanel.getForm().my_loadRecord(selectedRecord);\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Delete record from the grid.  not really required.\n'
20130515 '        //~ ddSource.grid.store.remove(selectedRecord);\n'
20130515 '\n'
20130515 '        return(true);\n'
20130515 '      }\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_mti_child = function(fieldname,detail_handler) {\n'
20130515 "  //~ console.log('show_mti_child',this);\n"
20130515 '  //~ console.log(\'show_mti_child\',panel.find("main_area"));\n'
20130515 '  rec = Lino.current_window.main_item.get_current_record();\n'
20130515 '  //~ rec = panel.get_current_record();\n'
20130515 '  if (rec) {\n'
20130515 "    //~ console.log('show_mti_child',Lino.current_window,rec);\n"
20130515 '    if (rec.phantom) {\n'
20130515 "      Lino.notify('Not allowed on phantom record.');\n"
20130515 '    }else if (rec.data[fieldname]) {\n'
20130515 "      //~ console.log('show_mti_child',rec.id);\n"
20130515 '      //~ detail_handler(Lino.current_window.main_item,{},{record_id:rec.id});\n'
20130515 '      detail_handler.run(null,{record_id:rec.id});\n'
20130515 "      //~ window.open(urlroot + '/' + rec.id);\n"
20130515 "      //~ document.location = urlroot + '/' + rec.id;\n"
20130515 "      //~ window.open(urlroot + '/' + rec.id,'_blank');\n"
20130515 '    } else {\n'
20130515 '      Lino.alert("Cannot show MTI child if checkbox is off.");\n'
20130515 '    }\n'
20130515 '  } else {\n'
20130515 "    Lino.notify('No current record.');\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelCalendars\n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelCalendars.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID',       mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'babel_name', type: 'string'},\n"
20130515 "    Description:  {name:'Desc',     mapping: 'description', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color',    mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden',   mapping: 'is_hidden', type: 'boolean'},    \n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();  \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelEvents \n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelEvents.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID',        mapping: 'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID',     mapping: 'calendarHidden', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle',  mapping: 'summary'},\n"
20130515 "    StartDate:   {name: 'StartDt',   mapping: 'start_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s" },\n'
20130515 "    EndDate:     {name: 'EndDt',     mapping: 'end_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s"},\n'
20130515 "    RRule:       {name: 'RecurRule', mapping: 'rsetHidden'},\n"
20130515 "    Location:    {name: 'Location',  mapping: 'placeHidden'},\n"
20130515 "    Notes:       {name: 'Desc',      mapping: 'description'},\n"
20130515 "    Url:         {name: 'LinkUrl',   mapping: 'url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay',    mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder',  mapping: 'reminder'}\n"
20130515 '    \n'
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.on_eventclick = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventclick",arguments);\n'
20130515 '  //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '  Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_editdetails = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_editdetails",arguments);\n'
20130515 '  if (rec.data.ID)\n'
20130515 '      //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '      Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.format_time = function(dt) {\n'
20130515 "    return dt.getHours() + ':' + dt.getMinutes();\n"
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventdelete = function() {\n'
20130515 '  //~ console.log("Lino.on_eventdelete",arguments);\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.on_eventadd  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventadd ",arguments);\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventresize  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventresize ",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventupdate  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventupdate",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.eventStore = new Ext.ensible.cal.EventStore({ \n'
20130515 '//~ Lino.eventStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.eventStore = new Ext.data.JsonStore({ \n'
20130515 '  listeners: { exception: Lino.on_store_exception }\n'
20130515 "  ,url: '/restful/cal/PanelEvents'\n"
20130515 '  ,restful : true\n'
20130515 '  ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "      url: '/restful/cal/PanelEvents', \n"
20130515 '      disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '      //~ disableCaching:true,\n'
20130515 '  })\n'
20130515 '  ,fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '  ,totalProperty: "count"\n'
20130515 '  ,root: "rows"\n'
20130515 '  ,idProperty: Ext.ensible.cal.EventMappings.EventId.mapping\n'
20130515 '  ,writer : new Ext.data.JsonWriter({\n'
20130515 '    writeAllFields: false\n'
20130515 '  })\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '      if (!options) options = {};\n'
20130515 '      if (!options.params) options.params = {};\n'
20130515 '      //~ options.params.$ext_requests.URL_PARAM_TEAM_VIEW = Lino.calendar_app.team_view_button.pressed;\n'
20130515 '      \n'
20130515 '      var view = this.cal_panel.getActiveView();\n'
20130515 '      var bounds = view.getViewBounds();\n'
20130515 "      //~ var p = {sd:'05.02.2012',ed:'11.02.2012'};\n"
20130515 '      //~ var p = {};\n'
20130515 '      options.params[view.dateParamStart] = bounds.start.format(view.dateParamFormat);\n'
20130515 '      options.params[view.dateParamEnd] = bounds.end.format(view.dateParamFormat);\n'
20130515 '      Lino.insert_subst_user(options.params);\n'
20130515 '      //~ Ext.apply(options.params,p)\n'
20130515 "      //~ console.log('20120710 eventStore.load()',this.baseParams,options);\n"
20130515 '    \n'
20130515 '    return Ext.data.JsonStore.prototype.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.calendarStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.calendarStore = new Ext.data.JsonStore({ \n'
20130515 '      listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,restful : true\n'
20130515 '      ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "          url: '/restful/cal/PanelCalendars?fmt=json', \n"
20130515 '          disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '          //~ restful : true\n'
20130515 '          //~ method: "GET"\n'
20130515 '      })\n'
20130515 '      //~ ,autoLoad: true\n'
20130515 '      //~ ,remoteSort: true\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      ,fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '      ,idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '      //~ ,idIndex: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '    });\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarCfg = {\n'
20130515 "    dateParamFormat: 'd.m.Y',\n"
20130515 "    dateParamStart:'sd',\n"
20130515 "    dateParamEnd:'ed'\n"
20130515 '};\n'
20130515 '//~ 20120704 Lino.CalendarPanel = Ext.extend(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 '//~ Lino.CalendarPanel = Ext.extend(Lino.CalendarPanel,{\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 '  ,activeItem: 1 // 0: day, 1: week\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  //~ ,disableCaching:true\n'
20130515 '  ,eventStore: Lino.eventStore\n'
20130515 '  ,calendarStore: Lino.calendarStore\n'
20130515 '  ,listeners: { \n'
20130515 '    editdetails: Lino.on_editdetails\n'
20130515 '    ,eventclick: Lino.on_eventclick\n'
20130515 '    //~ ,eventadd: Lino.on_eventadd\n'
20130515 '    //~ ,eventdelete: Lino.on_eventdelete\n'
20130515 '    //~ ,eventresize: Lino.on_eventresize\n'
20130515 '    ,afterrender : function(config) {\n'
20130515 '      //~ console.log("20120704 afterrender");\n'
20130515 '      Lino.calendarStore.load();\n'
20130515 '      //~ console.log("20120704 afterrender calls eventStore.load()",p);\n'
20130515 '      Lino.eventStore.cal_panel = this;\n'
20130515 '      //~ Lino.eventStore.load({params:p});\n'
20130515 '      Lino.eventStore.load();\n'
20130515 '      //~ Lino.CalendarPanel.superclass.constructor.call(this, config);\n'
20130515 '      //~ console.log(20120118, config,this);\n'
20130515 '    }\n'
20130515 '    }\n'
20130515 '  ,enableEditDetails: false\n'
20130515 '  //~ ,monthViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,weekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiDayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiWeekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,dayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,initComponent : function() {\n'
20130515 "    //~ // this.on('eventadd',Lino.on_eventadd);\n"
20130515 '    //~ Lino.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Ext.Panel,Lino.MainPanel);\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Lino.CalendarAppPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  ,set_status : function(status) { this.refresh();}\n'
20130515 '  ,refresh : function() {Lino.eventStore.reload();}\n'
20130515 "  ,layout: 'fit'\n"
20130515 '  ,is_loading : function() { \n'
20130515 '      var loading = Lino.calendarStore.getCount() == 0 | Lino.eventStore.getCount() == 0\n'
20130515 '      //~ console.log("CalendarPanel loading:",loading);\n'
20130515 '      return loading; \n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() {\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '  }\n'
20130515 '  ,clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  }\n'
20130515 '  ,set_base_param : function(k,v) {\n'
20130515 '      if (!this.base_params) this.base_params = {};\n'
20130515 '      this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.calendar_app = function() { return {\n'
20130515 '  get_main_panel : function() {\n'
20130515 '      return new Lino.CalendarAppPanel({ items : \n'
20130515 '        //~ [{\n'
20130515 "          //~ id: 'app-header',\n"
20130515 "          //~ region: 'north',\n"
20130515 '          //~ height: 35,\n'
20130515 '          //~ border: false,\n'
20130515 "          // contentEl: 'app-header-content'\n"
20130515 '        //~ },\n'
20130515 '      {\n'
20130515 "          id: 'app-center',\n"
20130515 "          title: '...', // will be updated to the current view's date range\n"
20130515 "          region: 'center',\n"
20130515 "          layout: 'border',\n"
20130515 '          listeners: {\n'
20130515 "              'afterrender': function(){\n"
20130515 "                  Ext.getCmp('app-center').header.addClass('app-center-header');\n"
20130515 '              }\n'
20130515 '          },\n'
20130515 '          items: [{\n'
20130515 "              id:'app-west',\n"
20130515 "              region: 'west',\n"
20130515 '              width: 176,\n'
20130515 '              border: false,\n'
20130515 '              items: [{\n'
20130515 "                  xtype: 'datepicker',\n"
20130515 "                  id: 'app-nav-picker',\n"
20130515 "                  cls: 'ext-cal-nav-picker',\n"
20130515 '                  listeners: {\n'
20130515 "                      'select': {\n"
20130515 '                          fn: function(dp, dt){\n'
20130515 '                              Lino.calendarPanel.setStartDate(dt);\n'
20130515 '                          },\n'
20130515 '                          scope: this\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '              //~ },{ \n'
20130515 "                //~ layout:'fit',\n"
20130515 '                //~ items: [\n'
20130515 '                  //~ new Ext.form.Checkbox({\n'
20130515 '                    //~ boxLabel:"$_(\'Team view\')",\n'
20130515 '                    //~ hideLabel:true\n'
20130515 '                    //~ listeners: { click: }\n'
20130515 '                  //~ })\n'
20130515 '                //~ ]\n'
20130515 '              },{ \n'
20130515 "                layout:'form',\n"
20130515 '                items: [\n'
20130515 '                  this.team_view_button = new Ext.Button({\n'
20130515 '                    text:"Team view",\n'
20130515 '                    enableToggle:true,\n'
20130515 '                    pressed:false,\n'
20130515 '                    toggleHandler: function(btn,state) { \n'
20130515 "                      //~ console.log('20120716 teamView.toggle()');\n"
20130515 "                      Lino.eventStore.setBaseParam('tv',state);\n"
20130515 '                      Lino.eventStore.load();\n'
20130515 '                      //~ Lino.eventStore.load({params:{$ext_requests.URL_PARAM_TEAM_VIEW:state}});\n'
20130515 '                      //~ console.log("team view",state);\n'
20130515 '                    }\n'
20130515 '                  })\n'
20130515 '                ]\n'
20130515 '              },{\n'
20130515 "                  xtype: 'extensible.calendarlist',\n"
20130515 '                  store: Lino.calendarStore,\n'
20130515 '                  border: false,\n'
20130515 '                  width: 175\n'
20130515 '              }]\n'
20130515 '          },{\n'
20130515 "              xtype: 'extensible.calendarpanel',\n"
20130515 '              eventStore: Lino.eventStore,\n'
20130515 '              calendarStore: Lino.calendarStore,\n'
20130515 '              border: false,\n'
20130515 "              id:'app-calendar',\n"
20130515 "              region: 'center',\n"
20130515 '              //~ activeItem: 3, // month view\n'
20130515 '              \n'
20130515 '              // Any generic view options that should be applied to all sub views:\n'
20130515 '              viewConfig: {\n'
20130515 '                  // Lino.CalendarCfg\n'
20130515 "                  dateParamFormat: 'd.m.Y',\n"
20130515 "                  dateParamStart:'sd',\n"
20130515 "                  dateParamEnd:'ed',\n"
20130515 '                \n'
20130515 '                  //enableFx: false,\n'
20130515 '                  //ddIncrement: 10, //only applies to DayView and subclasses, but convenient to put it here\n'
20130515 '                  viewStartHour: 8,\n'
20130515 '                  viewEndHour: 18\n'
20130515 '                  //minEventDisplayMinutes: 15\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // View options specific to a certain view (if the same options exist in viewConfig\n'
20130515 '              // they will be overridden by the view-specific config):\n'
20130515 '              monthViewCfg: {\n'
20130515 '                  showHeader: true,\n'
20130515 '                  showWeekLinks: true,\n'
20130515 '                  showWeekNumbers: true,\n'
20130515 "                  eventBodyMarkup: ['{Title}',\n"
20130515 '                    //~ \'<tpl if="url">\',\n'
20130515 '                        //~ \'<a href="{url}">XX</a>\',\n'
20130515 "                    //~ '</tpl>',\n"
20130515 '                    \'<tpl if="_isReminder">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="_isRecurring">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanLeft">\',\n'
20130515 '                        \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanRight">\',\n'
20130515 '                        \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "                    '</tpl>'\n"
20130515 "                ].join('')\n"
20130515 '              },\n'
20130515 '              \n'
20130515 '              multiWeekViewCfg: {\n'
20130515 '                  //weekCount: 3\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // Some optional CalendarPanel configs to experiment with:\n'
20130515 '              //readOnly: true,\n'
20130515 '              //showDayView: false,\n'
20130515 '              //showMultiDayView: true,\n'
20130515 '              //showWeekView: false,\n'
20130515 '              //showMultiWeekView: false,\n'
20130515 '              //showMonthView: false,\n'
20130515 '              //showNavBar: false,\n'
20130515 '              //showTodayText: false,\n'
20130515 '              //showTime: false,\n'
20130515 '              //editModal: true,\n'
20130515 '              //enableEditDetails: false,\n'
20130515 "              //title: 'My Calendar', // the header of the calendar, could be a subtitle for the app\n"
20130515 '              \n'
20130515 '              // Once this component inits it will set a reference to itself as an application\n'
20130515 '              // member property for easy reference in other functions within App.\n'
20130515 '              initComponent: function() {\n'
20130515 '                  Lino.calendarPanel = this;\n'
20130515 '                  this.constructor.prototype.initComponent.apply(this, arguments);\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              listeners: {\n'
20130515 "                  //~ 'eventclick': {\n"
20130515 '                      //~ fn: function(vw, rec, el){\n'
20130515 '                          //~ this.clearMsg();\n'
20130515 '                      //~ },\n'
20130515 '                      //~ scope: this\n'
20130515 '                  //~ },\n'
20130515 "                  'eventover': function(vw, rec, el){\n"
20130515 "                      //console.log('Entered evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventout': function(vw, rec, el){\n"
20130515 "                      //console.log('Leaving evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]+', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventadd': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was added');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventupdate': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          //this.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventcancel': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          // edit canceled\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'viewchange': {\n"
20130515 '                      fn: function(p, vw, dateInfo){\n'
20130515 '                          if(this.editWin){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          };\n'
20130515 '                          if(dateInfo !== null){\n'
20130515 '                              // will be null when switching to the event edit form so ignore\n'
20130515 "                              Ext.getCmp('app-nav-picker').setValue(dateInfo.activeDate);\n"
20130515 '                              this.updateTitle(dateInfo.viewStart, dateInfo.viewEnd);\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'dayclick': {\n"
20130515 '                      fn: function(vw, dt, ad, el){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'rangeselect': {\n"
20130515 '                      fn: function(vw, dates, onComplete){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventmove': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          var time = rec.data[Ext.ensible.cal.EventMappings.IsAllDay.name] ? '' : ' \\\\a\\\\t g:i a';\n"
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was moved to '+\n"
20130515 "                              rec.data[Ext.ensible.cal.EventMappings.StartDate.name].format('F jS'+time));\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventresize': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(win, rec){\n'
20130515 '                          Lino.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'initdrag': {\n"
20130515 '                      fn: function(vw){\n'
20130515 '                          if(this.editWin && this.editWin.isVisible()){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  }\n'
20130515 '              }\n'
20130515 '          }]\n'
20130515 '        }\n'
20130515 '        //~ ]\n'
20130515 '        \n'
20130515 '      });\n'
20130515 '      \n'
20130515 '  }\n'
20130515 '  ,updateTitle: function(startDt, endDt){\n'
20130515 "      var p = Ext.getCmp('app-center');\n"
20130515 '      \n'
20130515 '      if(startDt.clearTime().getTime() == endDt.clearTime().getTime()){\n'
20130515 "          p.setTitle(startDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '      else if(startDt.getFullYear() == endDt.getFullYear()){\n'
20130515 '          if(startDt.getMonth() == endDt.getMonth()){\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('j, Y'));\n"
20130515 '          }\n'
20130515 '          else{\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '          }\n'
20130515 '      }\n'
20130515 '      else{\n'
20130515 "          p.setTitle(startDt.format('F j, Y') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '  }\n'
20130515 '  // This is an application-specific way to communicate CalendarPanel event messages back to the user.\n'
20130515 '  // This could be replaced with a function to do "toast" style messages, growl messages, etc. This will\n'
20130515 "  // vary based on application requirements, which is why it's not baked into the CalendarPanel.\n"
20130515 '  ,showMsg: function(msg){\n'
20130515 '      Lino.notify(msg);\n'
20130515 "      //~ Ext.fly('app-msg').update(msg).removeClass('x-hidden');\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,clearMsg: function(){\n'
20130515 "      Lino.notify('');\n"
20130515 "      //~ Ext.fly('app-msg').update('').addClass('x-hidden');\n"
20130515 '  }\n'
20130515 '}\n'
20130515 '}();\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'captureEvents utility by Aaron Conran\n'
20130515 '<http://www.sencha.com/learn/grid-faq/>\n'
20130515 '\n'
20130515 'Ext.onReady(function(){\n'
20130515 '    var grid = new Ext.grid.GridPanel({\n'
20130515 '        ... \n'
20130515 '    });\n'
20130515 '    captureEvents(grid);\n'
20130515 '});\n'
20130515 '*/\n'
20130515 'function captureEvents(observable) {\n'
20130515 '    Ext.util.Observable.capture(\n'
20130515 '        observable,\n'
20130515 '        function(eventName) {\n'
20130515 '            console.info(eventName);\n'
20130515 '        },\n'
20130515 '        this\n'
20130515 '    );\t\t\n'
20130515 '}\n'
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.main_menu = [ { "menu": { "items": [ { "text": "Personnes", "handler": function() {Lino.contacts.Persons.grid.run(null)} }, { "text": " \\u25b6 Clients", "handler": function() {Lino.pcsw.Clients.grid.run(null)} }, { "text": "Organisations", "handler": function() {Lino.contacts.Companies.grid.run(null)} }, { "text": "M\\u00e9nages", "handler": function() {Lino.households.Households.grid.run(null)} }, "-", { "text": "Partenaires (tous)", "handler": function() {Lino.contacts.Partners.grid.run(null)} } ] }, "text": "Contacts" }, { "menu": { "items": [ { "text": "Mon courrier sortant", "handler": function() {Lino.outbox.MyOutbox.grid.run(null)} }, { "menu": { "items": [ { "text": "Mes Envois postaux", "handler": function() {Lino.postings.MyPostings.grid.run(null)} }, { "text": "Envois postaux \\u00e0 imprimer", "handler": function() {Lino.postings.PostingsReady.grid.run(null)} }, { "text": "Envois postaux imprim\\u00e9s", "handler": function() {Lino.postings.PostingsPrinted.grid.run(null)} }, { "text": "Envois postaux envoy\\u00e9s", "handler": function() {Lino.postings.PostingsSent.grid.run(null)} } ] }, "text": "Envois postaux" }, { "text": "Mes notes", "handler": function() {Lino.notes.MyNotes.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Calendrier", "iconCls": "x-tbar-calendar", "handler": function() {Lino.cal.CalendarPanel.grid.run(null)} }, { "text": "Events", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my calendar events.") }, "handler": function() {Lino.cal.MyEvents.grid.run(null)} }, "-", { "text": "Mes T\\u00e2ches", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my tasks.") }, "handler": function() {Lino.cal.MyTasks.grid.run(null)} }, { "text": "To-do list", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of my tasks marked \'to do\'.") }, "handler": function() {Lino.cal.MyTasksToDo.grid.run(null)} }, "-", { "text": "Mes pr\\u00e9sences", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows all my presences in calendar events, independently of their state.") }, "handler": function() {Lino.cal.MyPresences.grid.run(null)} }, { "text": "Mes invitations re\\u00e7ues", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows received invitations which I must accept or reject.") }, "handler": function() {Lino.cal.MyPendingInvitations.grid.run(null)} } ] }, "text": "Calendrier" }, { "menu": { "items": [ { "text": "Clients", "listeners": { "render": Lino.quicktip_renderer("Foo","Wie Kontakte \\u25b8 Klienten, aber mit DSBE-spezifischen Kolonnen und Filterparametern.") }, "handler": function() {Lino.pcsw.IntegClients.grid.run(null)} }, { "text": "PIISs", "handler": function() {Lino.isip.MyContracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.MyContracts.grid.run(null)} }, { "text": "Employants", "handler": function() {Lino.jobs.JobProviders.grid.run(null)} }, { "text": "Emplois", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    Eine Stelle ist ein Arbeitsplatz bei einem Stellenabieter. \\n    ") }, "handler": function() {Lino.jobs.Jobs.grid.run(null)} }, { "text": "Offres d\'emploi", "handler": function() {Lino.jobs.Offers.grid.run(null)} }, { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.NewJobsOverview.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Int\\u00e9gration" }, { "menu": { "items": [ { "text": "Organisateurs de cours", "handler": function() {Lino.courses.CourseProviders.grid.run(null)} }, { "text": "Offres de cours", "handler": function() {Lino.courses.CourseOffers.grid.run(null)} }, { "text": "Demandes de cours ouvertes", "handler": function() {Lino.courses.PendingCourseRequests.grid.run(null)} } ] }, "text": "Cours" }, { "menu": { "items": [ { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.JobsOverview.show.run(null,{ "record_id": -99998 })} }, { "text": "Agents et leurs clients", "handler": function() {Lino.pcsw.UsersWithClients.grid.run(null)} } ] }, "text": "Listings" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "Mes Text Field Templates", "handler": function() {Lino.ui.MyTextFieldTemplates.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Pays", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    A country is a geographic entity considered a \\"nation\\".\\n    ") }, "handler": function() {Lino.countries.Countries.grid.run(null)} }, { "text": "Langues", "handler": function() {Lino.countries.Languages.grid.run(null)} } ] }, "text": "Contacts" } ] }, "text": "Configuration" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "PIISs", "handler": function() {Lino.isip.Contracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.Contracts.grid.run(null)} } ] }, "text": "Int\\u00e9gration" } ] }, "text": "Explorateur" }, { "menu": { "items": [ { "text": "About", "listeners": { "render": Lino.quicktip_renderer("Foo","Show information about this site.") }, "handler": function() {Lino.about.About.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Site" }, { "text": "D\\u00e9part", "handler": function() {Lino.close_all_windows()} } ];\n'
20130515 "Ext.namespace('Lino.ui.SiteConfigs')\n"
20130515 "Ext.namespace('Lino.ui.ContentTypes')\n"
20130515 "Ext.namespace('Lino.ui.HelpTexts')\n"
20130515 "Ext.namespace('Lino.ui.TextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.Users')\n"
20130515 "Ext.namespace('Lino.users.MySettings')\n"
20130515 "Ext.namespace('Lino.users.UsersOverview')\n"
20130515 "Ext.namespace('Lino.users.Teams')\n"
20130515 "Ext.namespace('Lino.users.Memberships')\n"
20130515 "Ext.namespace('Lino.users.Authorities')\n"
20130515 "Ext.namespace('Lino.changes.Changes')\n"
20130515 "Ext.namespace('Lino.countries.Languages')\n"
20130515 "Ext.namespace('Lino.countries.Countries')\n"
20130515 "Ext.namespace('Lino.countries.Cities')\n"
20130515 "Ext.namespace('Lino.properties.PropGroups')\n"
20130515 "Ext.namespace('Lino.properties.PropTypes')\n"
20130515 "Ext.namespace('Lino.properties.Properties')\n"
20130515 "Ext.namespace('Lino.properties.PropChoices')\n"
20130515 "Ext.namespace('Lino.contacts.CompanyTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Partners')\n"
20130515 "Ext.namespace('Lino.contacts.Companies')\n"
20130515 "Ext.namespace('Lino.contacts.RoleTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Roles')\n"
20130515 "Ext.namespace('Lino.postings.Postings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByState')\n"
20130515 "Ext.namespace('Lino.postings.PostingsReady')\n"
20130515 "Ext.namespace('Lino.postings.PostingsPrinted')\n"
20130515 "Ext.namespace('Lino.postings.PostingsSent')\n"
20130515 "Ext.namespace('Lino.outbox.Recipients')\n"
20130515 "Ext.namespace('Lino.outbox.Mails')\n"
20130515 "Ext.namespace('Lino.outbox.Attachments')\n"
20130515 "Ext.namespace('Lino.cal.Calendars')\n"
20130515 "Ext.namespace('Lino.cal.Subscriptions')\n"
20130515 "Ext.namespace('Lino.cal.Places')\n"
20130515 "Ext.namespace('Lino.cal.Priorities')\n"
20130515 "Ext.namespace('Lino.cal.Events')\n"
20130515 "Ext.namespace('Lino.cal.MyEvents')\n"
20130515 "Ext.namespace('Lino.cal.MyUnclearEvents')\n"
20130515 "Ext.namespace('Lino.cal.EventsAssignedToMe')\n"
20130515 "Ext.namespace('Lino.cal.MyEventsToday')\n"
20130515 "Ext.namespace('Lino.cal.Tasks')\n"
20130515 "Ext.namespace('Lino.cal.GuestRoles')\n"
20130515 "Ext.namespace('Lino.cal.Guests')\n"
20130515 "Ext.namespace('Lino.cal.PanelCalendars')\n"
20130515 "Ext.namespace('Lino.cal.PanelEvents')\n"
20130515 "Ext.namespace('Lino.uploads.UploadTypes')\n"
20130515 "Ext.namespace('Lino.uploads.Uploads')\n"
20130515 "Ext.namespace('Lino.households.Types')\n"
20130515 "Ext.namespace('Lino.households.Households')\n"
20130515 "Ext.namespace('Lino.households.Roles')\n"
20130515 "Ext.namespace('Lino.households.Members')\n"
20130515 "Ext.namespace('Lino.accounts.Charts')\n"
20130515 "Ext.namespace('Lino.accounts.Groups')\n"
20130515 "Ext.namespace('Lino.accounts.Accounts')\n"
20130515 "Ext.namespace('Lino.notes.NoteTypes')\n"
20130515 "Ext.namespace('Lino.notes.EventTypes')\n"
20130515 "Ext.namespace('Lino.notes.Notes')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledges')\n"
20130515 "Ext.namespace('Lino.cv.PersonProperties')\n"
20130515 "Ext.namespace('Lino.contacts.Persons')\n"
20130515 "Ext.namespace('Lino.pcsw.Clients')\n"
20130515 "Ext.namespace('Lino.pcsw.DebtsClients')\n"
20130515 "Ext.namespace('Lino.pcsw.IntegClients')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsTest')\n"
20130515 "Ext.namespace('Lino.pcsw.PersonGroups')\n"
20130515 "Ext.namespace('Lino.pcsw.Activities')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Exclusions')\n"
20130515 "Ext.namespace('Lino.pcsw.AidTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.OverlappingContracts')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContactTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContacts')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Coachings')\n"
20130515 "Ext.namespace('Lino.isip.ContractTypes')\n"
20130515 "Ext.namespace('Lino.isip.ExamPolicies')\n"
20130515 "Ext.namespace('Lino.isip.ContractEndings')\n"
20130515 "Ext.namespace('Lino.isip.Contracts')\n"
20130515 "Ext.namespace('Lino.isip.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Schedules')\n"
20130515 "Ext.namespace('Lino.jobs.Regimes')\n"
20130515 "Ext.namespace('Lino.jobs.JobProviders')\n"
20130515 "Ext.namespace('Lino.jobs.ContractTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Sectors')\n"
20130515 "Ext.namespace('Lino.jobs.Functions')\n"
20130515 "Ext.namespace('Lino.jobs.Contracts')\n"
20130515 "Ext.namespace('Lino.jobs.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Offers')\n"
20130515 "Ext.namespace('Lino.jobs.StudyTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Studies')\n"
20130515 "Ext.namespace('Lino.jobs.Experiences')\n"
20130515 "Ext.namespace('Lino.jobs.Candidatures')\n"
20130515 "Ext.namespace('Lino.jobs.Jobs')\n"
20130515 "Ext.namespace('Lino.jobs.JobTypes')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsSearch')\n"
20130515 "Ext.namespace('Lino.courses.CourseProviders')\n"
20130515 "Ext.namespace('Lino.courses.CourseContents')\n"
20130515 "Ext.namespace('Lino.courses.Courses')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffers')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequests')\n"
20130515 "Ext.namespace('Lino.courses.PendingCourseRequests')\n"
20130515 "Ext.namespace('Lino.newcomers.Brokers')\n"
20130515 "Ext.namespace('Lino.newcomers.Faculties')\n"
20130515 "Ext.namespace('Lino.newcomers.Competences')\n"
20130515 "Ext.namespace('Lino.newcomers.NewClients')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoaches')\n"
20130515 "Ext.namespace('Lino.debts.Budgets')\n"
20130515 "Ext.namespace('Lino.debts.Actors')\n"
20130515 "Ext.namespace('Lino.debts.Entries')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByType')\n"
20130515 "Ext.namespace('Lino.cbss.Sectors')\n"
20130515 "Ext.namespace('Lino.cbss.Purposes')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.sessions.SessionTable')\n"
20130515 "Ext.namespace('Lino.ui.MyTextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.MembershipsByUser')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesGiven')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesTaken')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCity')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCountry')\n"
20130515 "Ext.namespace('Lino.properties.PropsByGroup')\n"
20130515 "Ext.namespace('Lino.properties.PropsByType')\n"
20130515 "Ext.namespace('Lino.properties.ChoicesByType')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCity')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCountry')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByCompany')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByPerson')\n"
20130515 "Ext.namespace('Lino.postings.MyPostings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByPartner')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientsByMail')\n"
20130515 "Ext.namespace('Lino.outbox.MyOutbox')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByUser')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.SentByPartner')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByMail')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByUser')\n"
20130515 "Ext.namespace('Lino.cal.EventsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.EventsByPlace')\n"
20130515 "Ext.namespace('Lino.cal.EventsByProject')\n"
20130515 "Ext.namespace('Lino.cal.TasksByUser')\n"
20130515 "Ext.namespace('Lino.cal.MyTasks')\n"
20130515 "Ext.namespace('Lino.cal.MyTasksToDo')\n"
20130515 "Ext.namespace('Lino.cal.TasksByProject')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByEvent')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByRole')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByPartner')\n"
20130515 "Ext.namespace('Lino.cal.MyPresences')\n"
20130515 "Ext.namespace('Lino.cal.MyPendingInvitations')\n"
20130515 "Ext.namespace('Lino.uploads.MyUploads')\n"
20130515 "Ext.namespace('Lino.households.HouseholdsByType')\n"
20130515 "Ext.namespace('Lino.households.MembersByHousehold')\n"
20130515 "Ext.namespace('Lino.households.MembersByPerson')\n"
20130515 "Ext.namespace('Lino.households.MembersByRole')\n"
20130515 "Ext.namespace('Lino.accounts.GroupsByChart')\n"
20130515 "Ext.namespace('Lino.accounts.AccountsByGroup')\n"
20130515 "Ext.namespace('Lino.notes.MyNotes')\n"
20130515 "Ext.namespace('Lino.notes.NotesByType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByEventType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByProject')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledgesByPerson')\n"
20130515 "Ext.namespace('Lino.cv.KnowledgesByLanguage')\n"
20130515 "Ext.namespace('Lino.cv.PropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.PersonPropsByProp')\n"
20130515 "Ext.namespace('Lino.cv.ConfiguredPropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SoftSkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.ObstaclesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsByNationality')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionsByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ContactsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByUser')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByCompany')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.FunctionsBySector')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByJob')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByRegime')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsBySchedule')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCountry')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCity')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesBySector')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByJob')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByType')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverviewByType')\n"
20130515 "Ext.namespace('Lino.courses.CoursesByOffer')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByProvider')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByContent')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByContent')\n"
20130515 "Ext.namespace('Lino.courses.RequestsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.ParticipantsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.CandidatesByCourse')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByUser')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.MyCompetences')\n"
20130515 "Ext.namespace('Lino.newcomers.ClientsByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoachesByClient')\n"
20130515 "Ext.namespace('Lino.debts.MyBudgets')\n"
20130515 "Ext.namespace('Lino.debts.BudgetsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.IncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.LiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.AssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DistByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.MyIdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyRetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.uploads.UploadsByController')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByController')\n"
20130515 "Ext.namespace('Lino.cal.TasksByController')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByController')\n"
20130515 "Ext.namespace('Lino.changes.ChangesByMaster')\n"
20130515 "Ext.namespace('Lino.ui.HelpTextsByModel')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByController')\n"
20130515 "Ext.namespace('Lino.cal.EventsByController')\n"
20130515 "Ext.namespace('Lino.about.Models')\n"
20130515 "Ext.namespace('Lino.about.FieldsByModel')\n"
20130515 "Ext.namespace('Lino.about.Inspector')\n"
20130515 "Ext.namespace('Lino.about.SourceFiles')\n"
20130515 "Ext.namespace('Lino.pcsw.UsersWithClients')\n"
20130515 "Ext.namespace('Lino.debts.PrintEntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintIncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintLiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintAssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.SummaryTable')\n"
20130515 "Ext.namespace('Lino.debts.ResultByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DebtsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.BailiffDebtsByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonResult')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsResult')\n"
20130515 "Ext.namespace('Lino.ui.Home')\n"
20130515 "Ext.namespace('Lino.about.About')\n"
20130515 "Ext.namespace('Lino.cal.CalendarPanel')\n"
20130515 "Ext.namespace('Lino.lino.Home')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverview')\n"
20130515 "Ext.namespace('Lino.jobs.NewJobsOverview')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestStates')\n"
20130515 "Ext.namespace('Lino.postings.PostingStates')\n"
20130515 "Ext.namespace('Lino.cal.DurationUnits')\n"
20130515 "Ext.namespace('Lino.cal.TaskStates')\n"
20130515 "Ext.namespace('Lino.cal.Weekdays')\n"
20130515 "Ext.namespace('Lino.lino.UserLevels')\n"
20130515 "Ext.namespace('Lino.lino.UserProfiles')\n"
20130515 "Ext.namespace('Lino.cal.EventStates')\n"
20130515 "Ext.namespace('Lino.accounts.AccountTypes')\n"
20130515 "Ext.namespace('Lino.cv.CefLevel')\n"
20130515 "Ext.namespace('Lino.properties.HowWell')\n"
20130515 "Ext.namespace('Lino.jobs.CandidatureStates')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientType')\n"
20130515 "Ext.namespace('Lino.countries.CityTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.BeIdCardTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.CivilState')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientStates')\n"
20130515 "Ext.namespace('Lino.cal.GuestStates')\n"
20130515 "Ext.namespace('Lino.properties.DoYouLike')\n"
20130515 "Ext.namespace('Lino.cbss.RequestLanguages')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAction')\n"
20130515 "Ext.namespace('Lino.pcsw.RefusalReasons')\n"
20130515 "Ext.namespace('Lino.lino.UserGroups')\n"
20130515 "Ext.namespace('Lino.cbss.RequestStates')\n"
20130515 "Ext.namespace('Lino.lino.ChangeTypes')\n"
20130515 "Ext.namespace('Lino.cal.AccessClasses')\n"
20130515 "Ext.namespace('Lino.cbss.QueryRegister')\n"
20130515 "Ext.namespace('Lino.lino.Genders')\n"
20130515 "Ext.namespace('Lino.pcsw.ResidenceType')\n"
20130515 '\n'
20130515 '// ChoiceLists: \n'
20130515 'Lino.courses.CourseRequestStates = [ [ "10", "Open" ], [ "20", "Registered" ], [ "30", "R\\u00e9ussi" ], [ "40", "Bien r\\u00e9ussi" ], [ "50", "echec" ], [ "60", "Abandonn\\u00e9" ], [ "70", "Inactif" ] ];\n'
20130515 'Lino.postings.PostingStates = [ [ "10", "Ouvert" ], [ "20", "Pr\\u00e8t \\u00e0 imprimer" ], [ "30", "Imprim\\u00e9" ], [ "40", "Ex\\u00e9cut\\u00e9" ], [ "50", "Retour" ] ];\n'
20130515 'Lino.cal.DurationUnits = [ [ "s", "secondes" ], [ "m", "minutes" ], [ "h", "heures" ], [ "D", "jours" ], [ "W", "semaines" ], [ "M", "mois" ], [ "Y", "ann\\u00e9es" ] ];\n'
20130515 'Lino.cal.TaskStates = [ [ "10", "\\u00e0 faire" ], [ "20", "Started" ], [ "30", "accomplie" ], [ "50", "Annul\\u00e9" ] ];\n'
20130515 'Lino.cal.Weekdays = [ [ "1", "Lundi" ], [ "2", "Mardi" ], [ "3", "Mercredit" ], [ "4", "Jeudi" ], [ "5", "Vendredi" ], [ "6", "Samedi" ], [ "7", "Dimanche" ] ];\n'
20130515 'Lino.lino.UserLevels = [ [ "10", "Guest" ], [ "20", "Secr\\u00e9taire" ], [ "30", "Utilisateur" ], [ "40", "Manager" ], [ "50", "Administrateur" ], [ "90", "Expert" ] ];\n'
20130515 'Lino.lino.UserProfiles = [ [ "000", "000 (Anonyme)" ], [ "100", "100 (Agent d\'insertion)" ], [ "110", "110 (Agent d\'insertion (chef de service))" ], [ "200", "200 (Consultat nouveaux clients)" ], [ "300", "300 (Consultate m\\u00e9diateur dettes)" ], [ "500", "500 (BCSS seulement)" ], [ "900", "900 (Administrateur)" ] ];\n'
20130515 'Lino.cal.EventStates = [ [ "10", "Propos\\u00e9" ], [ "20", "Draft" ], [ "30", "Communiqu\\u00e9" ], [ "40", "Planif\\u00e9" ], [ "50", "a eu lieu" ], [ "60", "D\\u00e9plac\\u00e9" ], [ "70", "Annul\\u00e9" ], [ "80", "Absent" ] ];\n'
20130515 'Lino.accounts.AccountTypes = [ [ "A", "Actifs" ], [ "L", "Obligations" ], [ "I", "Revenus" ], [ "E", "D\\u00e9penses" ], [ "C", "Capital" ], [ "B", "Bank accounts" ] ];\n'
20130515 'Lino.cv.CefLevel = [ [ "A1", "A1 (basic language skills)" ], [ "A2", "A2 (basic language skills)" ], [ "A2+", "A2+ (basic language skills)" ], [ "B1", "B1 (independent use of language)" ], [ "B2", "B2 (independent use of language)" ], [ "B2+", "B2+ (independent use of language)" ], [ "C1", "C1 (proficient use of language)" ], [ "C2", "C2 (proficient use of language)" ], [ "C2+", "C2+ (proficient use of language)" ] ];\n'
20130515 'Lino.properties.HowWell = [ [ "0", "not at all" ], [ "1", "a bit" ], [ "2", "moderate" ], [ "3", "quite well" ], [ "4", "very well" ] ];\n'
20130515 'Lino.jobs.CandidatureStates = [ [ "10", "Active" ], [ "20", "p\\u00e9riode d\'essai" ], [ "25", "Probation failed" ], [ "27", "Travaille" ], [ "30", "Inactive" ] ];\n'
20130515 'Lino.outbox.RecipientType = [ [ "to", "to" ], [ "cc", "cc" ], [ "bcc", "bcc" ] ];\n'
20130515 'Lino.countries.CityTypes = [ [ "10", "Member State" ], [ "11", "Division" ], [ "12", "Region" ], [ "13", "Community" ], [ "14", "Territory" ], [ "20", "County" ], [ "21", "Province" ], [ "22", "Shire" ], [ "23", "Subregion" ], [ "24", "Department" ], [ "25", "Arrondissement" ], [ "26", "Prefecture" ], [ "27", "District" ], [ "28", "Secteur" ], [ "50", "Ville" ], [ "51", "Town" ], [ "52", "Municipality" ], [ "54", "Parish" ], [ "55", "Township" ], [ "56", "Quarter" ], [ "61", "Borough" ], [ "62", "Small borough" ], [ "70", "Village" ] ];\n'
20130515 'Lino.pcsw.BeIdCardTypes = [ [ "1", "Registre national" ], [ "6", "Kids card (< 12 year)" ], [ "11", "Foreigner card A" ], [ "12", "Foreigner card B" ], [ "13", "Foreigner card C" ], [ "14", "Foreigner card D" ], [ "15", "Foreigner card E" ], [ "16", "Foreigner card E+" ], [ "17", "Foreigner card F" ], [ "18", "Foreigner card F+" ] ];\n'
20130515 'Lino.pcsw.CivilState = [ [ "10", "c\\u00e9libataire" ], [ "13", "C\\u00e9libateire cohabitant" ], [ "18", "C\\u00e9libataire avec enfant" ], [ "20", "mari\\u00e9" ], [ "21", "Mari\\u00e9 (habitant seul)" ], [ "22", "Mari\\u00e9 (vivant avec autre partenaire)" ], [ "30", "veuf/veuve" ], [ "33", "Veuf cohabitant" ], [ "40", "divorc\\u00e9" ], [ "50", "s\\u00e9par\\u00e9" ] ];\n'
20130515 'Lino.pcsw.ClientStates = [ [ "10", "Nouveau" ], [ "20", "Refus\\u00e9" ], [ "30", "Accompagn\\u00e9" ], [ "50", "Ancien" ] ];\n'
20130515 'Lino.cal.GuestStates = [ [ "10", "Invit\\u00e9" ], [ "20", "Accept\\u00e9" ], [ "30", "Rejet\\u00e9" ], [ "40", "Pr\\u00e9sent" ], [ "50", "Absent" ] ];\n'
20130515 'Lino.properties.DoYouLike = [ [ "0", "certainly not" ], [ "1", "rather not" ], [ "2", "normally" ], [ "3", "quite much" ], [ "4", "very much" ] ];\n'
20130515 'Lino.cbss.RequestLanguages = [ [ "nl", "Dutch" ], [ "fr", "French" ], [ "de", "German" ] ];\n'
20130515 'Lino.cbss.ManageAction = [ [ "1", "Int\\u00e9grer" ], [ "2", "Annuler int\\u00e9gration" ], [ "3", "Listing" ] ];\n'
20130515 'Lino.pcsw.RefusalReasons = [ [ "10", "Information request (No coaching needed)" ], [ "20", "CPAS n\'est pas comp\\u00e9tent" ], [ "30", "Client n\'est plus revenu" ] ];\n'
20130515 'Lino.lino.UserGroups = [ [ "office", "office (Office)" ], [ "accounting", "accounting (Comptabilit\\u00e9)" ], [ "integ", "integ (Int\\u00e9gration)" ], [ "newcomers", "newcomers (Nouvelles demandes)" ], [ "debts", "debts (M\\u00e9diation de dettes)" ], [ "cbss", "cbss (BCSS)" ] ];\n'
20130515 'Lino.cbss.RequestStates = [ [ "10", "Ex\\u00e9cut\\u00e9" ], [ "20", "echec" ], [ "25", "Valid\\u00e9" ], [ "30", "OK" ], [ "40", "Avertissements" ], [ "50", "Erreurs" ] ];\n'
20130515 'Lino.lino.ChangeTypes = [ [ "C", "Cr\\u00e9er" ], [ "U", "Update" ], [ "D", "Supprimer" ], [ "R", "Remove child" ], [ "A", "Add child" ], [ "M", "Merge" ] ];\n'
20130515 'Lino.cal.AccessClasses = [ [ "10", "Priv\\u00e9" ], [ "20", "Montrer \\"occup\\u00e9\\"" ], [ "30", "Public" ] ];\n'
20130515 'Lino.cbss.QueryRegister = [ [ "1", "Primaire" ], [ "2", "Secondaire" ], [ "3", "Tous" ] ];\n'
20130515 'Lino.lino.Genders = [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ];\n'
20130515 'Lino.pcsw.ResidenceType = [ [ "1", "Registre national" ], [ "2", "Registre des \\u00e9trangers" ], [ "3", "Registre d\'attente " ] ];\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1534 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1535 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1536 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1537 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1538 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1539 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1534, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1535, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1536, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1537, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1538, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1539, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1534, type1535, show_past1536, show_active1537, show_coming1538, today1539 ];\n'
20130515 '    Lino.jobs.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client_state1776 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1777 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1778 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1779 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1780 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var also_obsolete1781 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1782 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1776, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1777, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1778, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1779, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1780, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var aged_from1789 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1790 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1791 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var nationality1792 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1793 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1789, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1790, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1791, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1792, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var language1798 = new Lino.TwinCombo({ "fieldLabel": "Connaissance de langue", "name": "language", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Languages.detail)}, "emptyText": "Choisir Langue...", "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/language", "method": "GET" }) }) });\n'
20130515 '    var wanted_property1799 = new Lino.TwinCombo({ "fieldLabel": "Comp\\u00e9tence requise", "name": "wanted_property", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.properties.Properties.detail)}, "emptyText": "Choisir Propri\\u00e9t\\u00e9...", "selectOnFocus": true, "hiddenName": "wanted_propertyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/wanted_property", "method": "GET" }) }) });\n'
20130515 '    var group1800 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/group", "method": "GET" }) }) });\n'
20130515 '    var only_active1801 = new Ext.form.Checkbox({ "boxLabel": "Clients actifs seulement", "listeners": { "render": Lino.quicktip_renderer("Clients actifs seulement","Show only clients in \'active\' integration phases") }, "hideLabel": true, "checked": false, "name": "only_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_3_panel1802 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1798, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": wanted_property1799, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1800, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_active1801, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1782, main_2_panel1793, main_3_panel1802 ];\n'
20130515 '    this.fields = [ client_state1776, coached_by1777, and_coached_by1778, coached_on1779, only_primary1780, also_obsolete1781, aged_from1789, aged_to1790, gender1791, nationality1792, language1798, wanted_property1799, group1800, only_active1801 ];\n'
20130515 '    Lino.pcsw.IntegClients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2454 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2455 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var job_type2456 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    this.items = [ { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2454, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2455, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2456, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2454, date2455, job_type2456 ];\n'
20130515 '    Lino.jobs.JobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from1753 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1754 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1755 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1756 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1757 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1753, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1754, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1755, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1756, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state1762 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1763 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1764 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1765 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1766 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality1767 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1768 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1762, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1763, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1764, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1765, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1766, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1767, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1757, main_2_panel1768 ];\n'
20130515 '    this.fields = [ aged_from1753, aged_to1754, gender1755, also_obsolete1756, client_state1762, coached_by1763, and_coached_by1764, coached_on1765, only_primary1766, nationality1767 ];\n'
20130515 '    Lino.pcsw.Clients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1427 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1428 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1429 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1430 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1431 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1432 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1427, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1428, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1429, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1430, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1431, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1432, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1427, type1428, show_past1429, show_active1430, show_coming1431, today1432 ];\n'
20130515 '    Lino.isip.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var dates_from836 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Date du","Nur Termine ab diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date du</span>", "anchor": "-20", "name": "dates_from" });\n'
20130515 '    var dates_to837 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("au ","Nur Termine bis zu diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">au </span>", "anchor": "-20", "name": "dates_to" });\n'
20130515 '    var user838 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Responsible user</span>", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Responsible user","Nur Termine dieses Benutzers.") }, "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to839 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Attribu\\u00e9 \\u00e0</span>", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Attribu\\u00e9 \\u00e0","Nur Termine, die diesem Benutzer zugewiesen sind.") }, "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var state840 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "state", "hiddenName": "stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Termine in diesem Bearbeitungszustand.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.EventStates });\n'
20130515 '    var unclear841 = new Ext.form.Checkbox({ "boxLabel": "Mes rendez-vous \\u00e0 clarifier", "hideLabel": true, "checked": false, "name": "unclear", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel842 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 252, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_from836, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_to837, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user838, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to839, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state840, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unclear841, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel842 ];\n'
20130515 '    this.fields = [ dates_from836, dates_to837, user838, assigned_to839, state840, unclear841 ];\n'
20130515 '    Lino.cal.MyEvents.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 126,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var job_type2463 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/NewJobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    var today2464 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2463, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today2464, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ job_type2463, today2464 ];\n'
20130515 '    Lino.jobs.NewJobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from2128 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to2129 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender2130 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete2131 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel2132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from2128, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to2129, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2130, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete2131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state2137 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by2138 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by2139 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on2140 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary2141 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality2142 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2143 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state2137, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by2138, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by2139, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on2140, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary2141, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality2142, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var request_state2150 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "name": "request_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "hiddenName": "request_stateHidden" });\n'
20130515 '    var course_content2151 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "name": "course_content", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "course_contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_content", "method": "GET" }) }) });\n'
20130515 '    var course_provider2152 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "name": "course_provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "course_providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_provider", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel2153 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": request_state2150, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_content2151, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_provider2152, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel2132, main_2_panel2143, main_3_panel2153 ];\n'
20130515 '    this.fields = [ aged_from2128, aged_to2129, gender2130, also_obsolete2131, client_state2137, coached_by2138, and_coached_by2139, coached_on2140, only_primary2141, nationality2142, request_state2150, course_content2151, course_provider2152 ];\n'
20130515 '    Lino.courses.PendingCourseRequests.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2420 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverviewByType/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2421 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2420, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2421, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2420, date2421 ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var gender1098 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1099 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1100 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 47, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1098, "labelAlign": "top" }, { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1099, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1100 ];\n'
20130515 '    this.fields = [ gender1098, also_obsolete1099 ];\n'
20130515 '    Lino.contacts.Persons.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 90,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Refuser",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var reason13 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "reason", "allowBlank": false, "hiddenName": "reasonHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "name": "reason" });\n'
20130515 '    var remark14 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    this.items = [ { "items": reason13, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": remark14, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ];\n'
20130515 '    this.fields = [ reason13, remark14 ];\n'
20130515 '    Lino.pcsw.Clients.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 387,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Rejeter",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var notify_subject6 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "notify_subject" });\n'
20130515 '    var notify_body7 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "notify_body" });\n'
20130515 '    var notify_silent8 = new Ext.form.Checkbox({ "boxLabel": "Don\'t send email notification", "hideLabel": true, "checked": false, "name": "notify_silent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    this.items = [ { "items": notify_subject6, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": notify_body7, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, { "items": notify_silent8, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ notify_subject6, notify_body7, notify_silent8 ];\n'
20130515 '    Lino.cal.GuestsByEvent.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to18 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/pcsw/Clients/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var pcsw_Coaching19 = new Ext.form.Checkbox({ "boxLabel": "Accompagnements", "hideLabel": true, "checked": false, "name": "pcsw_Coaching", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var cv_LanguageKnowledge20 = new Ext.form.Checkbox({ "boxLabel": "Connaissances de langue", "hideLabel": true, "checked": false, "name": "cv_LanguageKnowledge", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_1_panel21 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": pcsw_Coaching19, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cv_LanguageKnowledge20, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var properties_PersonProperty24 = new Ext.form.Checkbox({ "boxLabel": "Propri\\u00e9t\\u00e9s", "hideLabel": true, "checked": false, "name": "properties_PersonProperty", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_panel25 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Auch verg\\u00e4ngliche verkn\\u00fcpfte Objekte \\u00fcberweisen", "items": [ keep_volatiles_1_panel21, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": properties_PersonProperty24, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var reason27 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to18, "anchor": "-20", "labelAlign": "top" }, keep_volatiles_panel25, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason27, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to18, pcsw_Coaching19, cv_LanguageKnowledge20, properties_PersonProperty24, reason27 ];\n'
20130515 '    Lino.pcsw.Clients.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to1 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/contacts/Companies/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var reason2 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to1, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason2, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to1, reason2 ];\n'
20130515 '    Lino.contacts.Companies.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var start_date818 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time819 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel820 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date818, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date823 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time824 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel825 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date823, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time824, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var main_2_panel828 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ start_panel820, end_panel825 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var calendar829 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var project830 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel831 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar829, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project830, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel834 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary817, "anchor": "-20", "labelAlign": "top" }, main_2_panel828, main_3_panel831 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel834;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1608 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var job1609 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var main_panel1610 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1608, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1609, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1610;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1609.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1440 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1441 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1442 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1443 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1444 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var general_1_panel1445 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1440, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1441, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1442, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1443, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1444, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type1451 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1452 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1453 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1454 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel1455 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1451, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1452, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1453, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1454, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1460 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var applies_until1461 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1462 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var general_3_panel1463 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1460, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1461, "labelAlign": "top" }, { "flex": 55, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1462, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1467 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1468 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1469 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1470 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var general_4_panel1471 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1467, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1468, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1469, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1470, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid1476 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 47 });\n'
20130515 '    var cal_EventsByController_grid1483 = new Lino.cal.EventsByController.GridPanel({ "flex": 52, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ], "master_panel": this });\n'
20130515 '    var general_5_panel1484 = new Ext.Panel({ "flex": 55, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ cal_TasksByController_grid1476, cal_EventsByController_grid1483 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1485 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1445, general_2_panel1455, general_3_panel1463, general_4_panel1471, general_5_panel1484 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var stages1486 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "stages", "title": "stages" });\n'
20130515 '    var goals1487 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "goals", "title": "buts" });\n'
20130515 '    var isip_1_panel1488 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ stages1486, goals1487 ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_asd1489 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_asd", "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1490 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_dsbe", "title": "devois ISP" });\n'
20130515 '    var isip_2_panel1491 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_asd1489, duties_dsbe1490 ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_company1492 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_company", "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1493 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_person", "title": "Devoirs personne" });\n'
20130515 '    var isip_3_panel1494 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_company1492, duties_person1493 ], "region": "south", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var isip_panel1495 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "PIIS", "hideCheckBoxLabels": true, "items": [ isip_1_panel1488, isip_2_panel1491, isip_3_panel1494 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1496 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1485, isip_panel1495 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1496;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1453.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      cal_TasksByController_grid1476.on_master_changed();\n'
20130515 '      cal_EventsByController_grid1483.on_master_changed();\n'
20130515 '      stages1486.refresh();\n'
20130515 '      goals1487.refresh();\n'
20130515 '      duties_asd1489.refresh();\n'
20130515 '      duties_dsbe1490.refresh();\n'
20130515 '      duties_company1492.refresh();\n'
20130515 '      duties_person1493.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1452.on('change',Lino.chooser_handler(contact_person1453,'company'));\n"
20130515 '      Lino.isip.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1452.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1497 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var type1498 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1499 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1500 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1498, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1499, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1503 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1497, "anchor": "-20", "labelAlign": "top" }, main_2_panel1500 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1499.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name2378 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2379 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2380 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2381 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2379, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2380, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2384 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2378, "anchor": "-20", "labelAlign": "top" }, main_2_panel2381 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2384;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var subject673 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project674 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var date675 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date","\\n        The official date to be printed on the document.\\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date</span>", "name": "date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel676 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject673, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project674, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date675, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var user680 = new Lino.TwinCombo({ "fieldLabel": "exp\\u00e9diteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/user", "method": "GET" }) }) });\n'
20130515 '    var sent681 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "sent", "anchor": "-20", "value": "<br>", "name": "sent" });\n'
20130515 '    var id682 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var owner_disp683 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_2_panel684 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user680, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent681, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id682, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp683, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var RecipientsByMail_grid695 = new Lino.outbox.RecipientsByMail.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.RecipientsByMail.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var AttachmentsByMail_htmlbox696 = new Lino.HtmlBoxPanel({ "flex": 22, "layout": "fit", "name": "AttachmentsByMail", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Pi\\u00e8ces jointes", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.outbox.AttachmentsByMail.grid) ] });\n'
20130515 '    var UploadsByController_htmlbox697 = new Lino.HtmlBoxPanel({ "flex": 22, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel698 = new Ext.Panel({ "flex": 29, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ RecipientsByMail_grid695, AttachmentsByMail_htmlbox696, UploadsByController_htmlbox697 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var body699 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 58, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel700 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel676, main_2_panel684, main_3_panel698, body699 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel700;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      RecipientsByMail_grid695.on_master_changed();\n'
20130515 '      AttachmentsByMail_htmlbox696.refresh();\n'
20130515 '      UploadsByController_htmlbox697.refresh();\n'
20130515 '      body699.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date636 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var event_type637 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type638 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var left_1_panel639 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date636, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type637, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type638, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var subject643 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project644 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company645 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var left_3_panel646 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project644, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company645, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var id649 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var user650 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/user", "method": "GET" }) }) });\n'
20130515 '    var language651 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var build_time652 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var left_4_panel653 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id649, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user650, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language651, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time652, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var body658 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 55, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var left_panel659 = new Ext.Panel({ "flex": 66, "layout": "vbox", "items": [ left_1_panel639, { "items": subject643, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, left_3_panel646, left_4_panel653, body658 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox661 = new Lino.HtmlBoxPanel({ "flex": 16, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var outbox_MailsByController_grid707 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var postings_PostingsByController_grid718 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var cal_TasksByController_grid724 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var right_panel725 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ UploadsByController_htmlbox661, outbox_MailsByController_grid707, postings_PostingsByController_grid718, cal_TasksByController_grid724 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel726 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ left_panel659, right_panel725 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel727 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel726 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel727;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body658.refresh();\n'
20130515 '      UploadsByController_htmlbox661.refresh();\n'
20130515 '      outbox_MailsByController_grid707.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid718.on_master_changed();\n'
20130515 '      cal_TasksByController_grid724.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var preview_htmlbox2461 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "preview", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2462 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ preview_htmlbox2461 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2462;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      preview_htmlbox2461.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.NewJobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name550 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id551 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language552 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel553 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix549, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name550, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id551, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language552, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity559 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }) });\n'
20130515 '    var type560 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel561 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id558, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity559, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type560, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account1565 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete567 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel568 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1565, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2566, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete567, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel572 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel553, intro_box_2_panel561, intro_box_3_panel568 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country573 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }) });\n'
20130515 '    var region574 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel575 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country573, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region574, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city578 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code579 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel580 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city578, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code579, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix583 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street584 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no585 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box586 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel587 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix583, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street584, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no585, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box586, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2592 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel593 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel575, box3_2_panel580, box3_3_panel587, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2592, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email595 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url596 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone597 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm598 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel599 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email595, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url596, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone597, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm598, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel604 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel593, box4_panel599 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks605 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var is_courseprovider606 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un organisateur de cours (<a href=\\"javascript:Lino.show_mti_child(\'is_courseprovider\',Lino.courses.CourseProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_courseprovider" });\n'
20130515 '    var is_jobprovider607 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est Employant (<a href=\\"javascript:Lino.show_mti_child(\'is_jobprovider\',Lino.jobs.JobProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_jobprovider" });\n'
20130515 '    var client_contact_type608 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de contact client", "name": "client_contact_type", "pageSize": 20, "emptyText": "Choisir Type de contact client...", "selectOnFocus": true, "hiddenName": "client_contact_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }) });\n'
20130515 '    var box5_2_panel609 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 261, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_courseprovider606, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_jobprovider607, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_contact_type608, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var box5_panel613 = new Ext.Panel({ "flex": 57, "layout": "vbox", "items": [ { "items": remarks605, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 }, box5_2_panel609 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByCompany_grid619 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel620 = new Ext.Panel({ "flex": 46, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box5_panel613, contacts_RolesByCompany_grid619 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel621 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel572, address_box_panel604, bottom_box_panel620 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid741 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var main_panel742 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel621, pcsw_NotesByCompany_grid741 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel742;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region574.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid619.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid741.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country573.on('change',Lino.chooser_handler(region574,'country'));\n"
20130515 "      country573.on('change',Lino.chooser_handler(city578,'country'));\n"
20130515 "      region574.on('change',Lino.chooser_handler(city578,'region'));\n"
20130515 '      Lino.contacts.Companies.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name504 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language505 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email506 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel507 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language505, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email506, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel510 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name504, "anchor": "-20", "labelAlign": "top" }, main_2_panel507 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel510;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var title1085 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var first_name1086 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1087 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1085, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1086, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1087, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1092 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1093 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_2_panel1094 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1092, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1093, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1097 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel1088, main_2_panel1094 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1097;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2212 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2213 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var main_1_panel2214 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2212, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2213, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2217 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2218 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2220 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2217, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2218, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2219, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2224 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2225 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2226 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2227 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2224, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2225, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2226, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2231 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2220, p2_2_panel2227 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2232 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel2214, p2_panel2231 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2232;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2212.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.lino.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2445 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var welcome_htmlbox2446 = new Lino.HtmlBoxPanel({ "flex": 10, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var UsersWithClients_htmlbox2447 = new Lino.HtmlBoxPanel({ "flex": 28, "layout": "fit", "name": "UsersWithClients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Agents et leurs clients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.pcsw.UsersWithClients.grid) ] });\n'
20130515 '    var coming_reminders_htmlbox2448 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "coming_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels \\u00e0 venir", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var missed_reminders_htmlbox2449 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "missed_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels rat\\u00e9s", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_4_panel2450 = new Ext.Panel({ "flex": 57, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ coming_reminders_htmlbox2448, missed_reminders_htmlbox2449 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2451 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2445, welcome_htmlbox2446, UsersWithClients_htmlbox2447, main_4_panel2450 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2451;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2445.refresh();\n'
20130515 '      welcome_htmlbox2446.refresh();\n'
20130515 '      UsersWithClients_htmlbox2447.refresh();\n'
20130515 '      coming_reminders_htmlbox2448.refresh();\n'
20130515 '      missed_reminders_htmlbox2449.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.lino.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var start_date107 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var due_date108 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Due date", "anchor": "-20", "name": "due_date" });\n'
20130515 '    var id109 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var workflow_buttons_disp110 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var main_1_panel111 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date107, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": due_date108, "labelAlign": "top" }, { "flex": 9, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id109, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp110, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var summary116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user117 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project118 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel119 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user117, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project118, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var calendar122 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/calendar", "method": "GET" }) }) });\n'
20130515 '    var owner_disp123 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var created124 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified125 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var main_4_panel126 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar122, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp123, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created124, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified125, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description131 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var main_panel132 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ main_1_panel111, { "items": summary116, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, main_3_panel119, main_4_panel126, description131 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel132;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description131.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2318 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2319 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2320 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2321 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2322 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2323 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2324 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2325 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2318, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2319, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2320, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2321, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2322, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2323, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2324, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2333 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2334 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var history2335 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var parameters_panel2336 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2333, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2334, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2335, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 99, "border": false, "labelAlign": "top" });\n'
20130515 '    var cbss_RetrieveTIGroupsResult_grid2345 = new Lino.cbss.RetrieveTIGroupsResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.RetrieveTIGroupsResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var request_panel2346 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2325, parameters_panel2336, cbss_RetrieveTIGroupsResult_grid2345 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2347 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2348 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2349 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2350 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2347, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2348, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2349, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2354 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2346, technical_panel2350 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2354;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cbss_RetrieveTIGroupsResult_grid2345.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 72,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix1808 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name1809 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id1810 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1811 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel1812 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix1808, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1809, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1810, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1811, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id1817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity1818 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type1819 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel1820 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id1817, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1818, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11824 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21825 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1826 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel1827 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11824, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21825, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1826, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel1831 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel1812, intro_box_2_panel1820, intro_box_3_panel1827 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country1832 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region1833 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel1834 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1832, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1833, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city1837 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1838 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel1839 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1837, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1838, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1842 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1843 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1844 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1845 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel1846 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1842, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1843, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1844, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1845, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21851 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel1852 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel1834, box3_2_panel1839, box3_3_panel1846, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21851, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email1854 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1855 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1856 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1857 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel1858 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1854, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1855, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1856, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1857, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel1863 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel1852, box4_panel1858 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1864 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid1865 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel1866 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1864, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid1865 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1868 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel1831, address_box_panel1863, bottom_box_panel1866 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid1869 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var JobsByProvider_grid1943 = new Lino.jobs.JobsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.jobs.JobsByProvider.grid) ], "master_panel": this });\n'
20130515 '    var ContractsByProvider_grid1972 = new Lino.jobs.ContractsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByProvider.grid) ] });\n'
20130515 '    var jobs_panel1973 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Emplois", "hideCheckBoxLabels": true, "items": [ JobsByProvider_grid1943, ContractsByProvider_grid1972 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1974 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1868, pcsw_NotesByCompany_grid1869, jobs_panel1973 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1974;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1833.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid1865.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid1869.on_master_changed();\n'
20130515 '      JobsByProvider_grid1943.on_master_changed();\n'
20130515 '      ContractsByProvider_grid1972.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1832.on('change',Lino.chooser_handler(region1833,'country'));\n"
20130515 "      country1832.on('change',Lino.chooser_handler(city1837,'country'));\n"
20130515 "      region1833.on('change',Lino.chooser_handler(city1837,'region'));\n"
20130515 '      Lino.jobs.JobProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var project701 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var subject702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var body703 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 71, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel704 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "items": project701, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": subject702, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, body703 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel704;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body703.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var first_name1740 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1741 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1742 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1740, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1741, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id1745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var gender1746 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1747 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_3_panel1748 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1746, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1747, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1751 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ main_1_panel1742, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1745, "anchor": "-20", "labelAlign": "top" }, main_3_panel1748 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1751;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name1104 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name1105 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var title1106 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var box1_1_panel1107 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1104, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1105, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1106, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1111 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/country", "method": "GET" }) }) });\n'
20130515 '    var city1112 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1113 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_2_panel1114 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1111, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1112, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1113, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1118 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1119 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1120 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1121 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_3_panel1122 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1118, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1119, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1120, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1121, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21127 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box1_panel1128 = new Ext.form.FieldSet({ "flex": 61, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ box1_1_panel1107, box1_2_panel1114, box1_3_panel1122, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21127, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1130 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1131 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box2_1_panel1132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1130, "labelAlign": "top" }, { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var phone1136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var fax1137 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var box2_3_panel1138 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1136, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1137, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 90, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gsm1141 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box2_panel1142 = new Ext.form.FieldSet({ "flex": 38, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ box2_1_panel1132, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1135, "anchor": "-20", "labelAlign": "top" }, box2_3_panel1138, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1141, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 63, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1145 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1128, box2_panel1142 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1146 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var birth_date1147 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var age_disp1148 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "\\u00e2ge", "name": "age", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state1149 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Etat civil", "name": "civil_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.CivilState, "hiddenName": "civil_stateHidden" });\n'
20130515 '    var noble_condition1150 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Titre de noblesse","The eventual noble condition of this person. Imported from TIM.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Titre de noblesse</span>", "name": "noble_condition", "maxLength": 50, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_1_panel1151 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1146, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date1147, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": age_disp1148, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": civil_state1149, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": noble_condition1150, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_country1157 = new Lino.TwinCombo({ "fieldLabel": "Pays de naissance", "name": "birth_country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "birth_countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/birth_country", "method": "GET" }) }) });\n'
20130515 '    var birth_place1158 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Lieu de naissance", "anchor": "-20", "name": "birth_place" });\n'
20130515 '    var nationality1159 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var national_id1160 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var box3_2_panel1161 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_country1157, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_place1158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1159, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1160, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel1166 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Naissance", "items": [ box3_1_panel1151, box3_2_panel1161 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var card_number1167 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20, "fieldLabel": "n\\u00b0", "anchor": "-20", "name": "card_number" });\n'
20130515 '    var card_valid_from1168 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "valide de", "anchor": "-20", "name": "card_valid_from" });\n'
20130515 '    var card_valid_until1169 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "card_valid_until" });\n'
20130515 '    var card_issuer1170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50, "fieldLabel": "\\u00e9mise par", "anchor": "-20", "name": "card_issuer" });\n'
20130515 '    var card_type1171 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de carte eID", "name": "card_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.BeIdCardTypes, "hiddenName": "card_typeHidden" });\n'
20130515 '    var eid_panel_1_panel1172 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Carte eID", "bodyBorder": true, "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_number1167, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_from1168, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_until1169, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_issuer1170, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_type1171, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created1178 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1179 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box4_3_panel1180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1178, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box4_panel1183 = new Ext.Panel({ "flex": 82, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box3_panel1166, eid_panel_1_panel1172, box4_3_panel1180 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var image_htmlbox1184 = new Lino.HtmlBoxPanel({ "flex": 17, "layout": "fit", "name": "image", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var general_2_panel1185 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ box4_panel1183, image_htmlbox1184 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 0, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var general_panel1186 = new Ext.Panel({ "autoHeight": true, "layout": "form", "title": "Personne", "items": [ general_1_panel1145, general_2_panel1185 ], "frame": true, "bodyBorder": false, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "labelAlign": "top" });\n'
20130515 '    var in_belgium_since1187 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("en Belgique depuis","Since when this person in Belgium lives.\\n<b>Important:</b> help_text can be formatted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">en Belgique depuis</span>", "anchor": "-20", "name": "in_belgium_since" });\n'
20130515 '    var residence_type1188 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de s\\u00e9jour", "name": "residence_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ResidenceType, "hiddenName": "residence_typeHidden" });\n'
20130515 '    var gesdos_id1189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "N\\u00b0 GesDos", "anchor": "-20", "name": "gesdos_id" });\n'
20130515 '    var status_1_panel1190 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": in_belgium_since1187, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_type1188, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gesdos_id1189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11194 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var status_2_panel1196 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11194, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21195, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var job_agents1199 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Agences de travail", "anchor": "-20", "name": "job_agents" });\n'
20130515 '    var group1200 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/group", "method": "GET" }) }) });\n'
20130515 '    var status_3_panel1201 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_agents1199, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1200, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var status_panel1204 = new Ext.Panel({ "flex": 68, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ status_1_panel1190, status_2_panel1196, status_3_panel1201 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var aid_type1205 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'aide sociale", "name": "aid_type", "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale...", "selectOnFocus": true, "hiddenName": "aid_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }) });\n'
20130515 '    var income_ag1206 = new Ext.form.Checkbox({ "boxLabel": "allocation de ch\\u00f4mage", "hideLabel": true, "checked": false, "name": "income_ag", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_wg1207 = new Ext.form.Checkbox({ "boxLabel": "waiting pay", "hideLabel": true, "checked": false, "name": "income_wg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_2_panel1208 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_ag1206, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_wg1207, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_kg1211 = new Ext.form.Checkbox({ "boxLabel": "indemnisation maladie", "hideLabel": true, "checked": false, "name": "income_kg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_rente1212 = new Ext.form.Checkbox({ "boxLabel": "persone de retraite", "hideLabel": true, "checked": false, "name": "income_rente", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_3_panel1213 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_kg1211, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_rente1212, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_misc1216 = new Ext.form.Checkbox({ "boxLabel": "autres revenus", "hideLabel": true, "checked": false, "name": "income_misc", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_panel1217 = new Ext.Panel({ "flex": 31, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": aid_type1205, "anchor": "-20", "labelAlign": "top" }, income_2_panel1208, income_3_panel1213, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_misc1216, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 180, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_1_panel1220 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ status_panel1204, income_panel1217 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_seeking1221 = new Ext.form.Checkbox({ "boxLabel": "cherche du travail", "hideLabel": true, "checked": false, "name": "is_seeking", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var unemployed_since1222 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Cherche du travail depuis", "anchor": "-20", "name": "unemployed_since" });\n'
20130515 '    var work_permit_suspended_until1223 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "suspendu jusque", "anchor": "-20", "name": "work_permit_suspended_until" });\n'
20130515 '    var suche_1_panel1224 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_seeking1221, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unemployed_since1222, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_suspended_until1223, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var unavailable_until1228 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Indidponible jusque", "anchor": "-20", "name": "unavailable_until" });\n'
20130515 '    var unavailable_why1229 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "raison", "anchor": "-20", "name": "unavailable_why" });\n'
20130515 '    var suche_2_panel1230 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_until1228, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_why1229, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ExclusionsByPerson_grid1238 = new Lino.pcsw.ExclusionsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ExclusionsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var suche_panel1239 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Recherche de travail", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ suche_1_panel1224, suche_2_panel1230, pcsw_ExclusionsByPerson_grid1238 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var needs_residence_permit1240 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de s\\u00e9jour", "hideLabel": true, "checked": false, "name": "needs_residence_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var needs_work_permit1241 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de travail", "hideLabel": true, "checked": false, "name": "needs_work_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var papers_1_panel1242 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 288, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_residence_permit1240, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_work_permit1241, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var residence_permit_disp1245 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de s\\u00e9jour", "name": "residence_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var work_permit_disp1246 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de travail", "name": "work_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var driving_licence_disp1247 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "permis de conduire", "name": "driving_licence", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var papers_2_panel1248 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_permit_disp1245, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_disp1246, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": driving_licence_disp1247, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox1252 = new Lino.HtmlBoxPanel({ "flex": 42, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var papers_panel1253 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Papiers", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ papers_1_panel1242, papers_2_panel1248, UploadsByController_htmlbox1252 ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_2_panel1254 = new Ext.Panel({ "flex": 63, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ suche_panel1239, papers_panel1253 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_panel1255 = new Ext.Panel({ "layout": "vbox", "title": "Statut", "items": [ status_tab_1_panel1220, status_tab_2_panel1254 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var workflow_buttons_disp1256 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker1257 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Interm\\u00e9diaire ", "name": "broker", "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ...", "selectOnFocus": true, "hiddenName": "brokerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/broker", "method": "GET" }) }) });\n'
20130515 '    var faculty1258 = new Lino.TwinCombo({ "fieldLabel": "Sp\\u00e9cificit\\u00e9", "name": "faculty", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.newcomers.Faculties.detail)}, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9...", "selectOnFocus": true, "hiddenName": "facultyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/faculty", "method": "GET" }) }) });\n'
20130515 '    var newcomers_left_panel1259 = new Ext.Panel({ "flex": 33, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp1256, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": broker1257, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": faculty1258, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var coaching_1_panel1278 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ newcomers_left_panel1259 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ContactsByClient_grid1286 = new Lino.pcsw.ContactsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ContactsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var pcsw_CoachingsByClient_grid1294 = new Lino.pcsw.CoachingsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var coaching_2_panel1295 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ pcsw_ContactsByClient_grid1286, pcsw_CoachingsByClient_grid1294 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var coaching_panel1296 = new Ext.Panel({ "layout": "vbox", "title": "Accompagnement", "items": [ coaching_1_panel1278, coaching_2_panel1295 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_StudiesByPerson_grid1309 = new Lino.jobs.StudiesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "master_panel": this, "listeners": { "render": Lino.quicktip_renderer("\\u00c9tudes & formations","List of studies for a given person.") }, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByPerson.grid) ] });\n'
20130515 '    var jobs_ExperiencesByPerson_grid1319 = new Lino.jobs.ExperiencesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var education_panel1320 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Formation", "hideCheckBoxLabels": true, "items": [ jobs_StudiesByPerson_grid1309, jobs_ExperiencesByPerson_grid1319 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_LanguageKnowledgesByPerson_grid1327 = new Lino.cv.LanguageKnowledgesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.cv.LanguageKnowledgesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var courses_CourseRequestsByPerson_grid1363 = new Lino.courses.CourseRequestsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseRequestsByPerson.grid) ], "master_panel": this });\n'
20130515 '    var languages_panel1364 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Langues", "hideCheckBoxLabels": true, "items": [ cv_LanguageKnowledgesByPerson_grid1327, courses_CourseRequestsByPerson_grid1363 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_SkillsByPerson_grid1371 = new Lino.cv.SkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var cv_SoftSkillsByPerson_grid1378 = new Lino.cv.SoftSkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SoftSkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var skills1379 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Autres talents", "anchor": "-20 -10", "growMax": 2000, "name": "skills" });\n'
20130515 '    var competences_1_panel1380 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_SkillsByPerson_grid1371, cv_SoftSkillsByPerson_grid1378, { "items": skills1379, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 28 } ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 135, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var cv_ObstaclesByPerson_grid1388 = new Lino.cv.ObstaclesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.ObstaclesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var obstacles1389 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Obstacles", "anchor": "-20 -10", "growMax": 2000, "name": "obstacles" });\n'
20130515 '    var competences_2_panel1390 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_ObstaclesByPerson_grid1388, { "items": obstacles1389, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 44 } ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 90, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var competences_panel1392 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Comp\\u00e9tences", "hideCheckBoxLabels": true, "items": [ competences_1_panel1380, competences_2_panel1390 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_CandidaturesByPerson_grid1401 = new Lino.jobs.CandidaturesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Demandes d\'emploi", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var isip_ContractsByPerson_grid1505 = new Lino.isip.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.isip.ContractsByPerson.grid) ] });\n'
20130515 '    var jobs_ContractsByPerson_grid1613 = new Lino.jobs.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByPerson.grid) ] });\n'
20130515 '    var contracts_panel1614 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Contrats", "hideCheckBoxLabels": true, "items": [ isip_ContractsByPerson_grid1505, jobs_ContractsByPerson_grid1613 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByPerson_grid1629 = new Lino.pcsw.NotesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Historique", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var cal_EventsByProject_grid1655 = new Lino.cal.EventsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByProject.grid) ] });\n'
20130515 '    var cal_TasksByProject_grid1678 = new Lino.cal.TasksByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByProject.grid) ], "master_panel": this });\n'
20130515 '    var calendar_panel1679 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_EventsByProject_grid1655, cal_TasksByProject_grid1678 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByProject_grid1691 = new Lino.outbox.MailsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByProject.grid) ], "master_panel": this });\n'
20130515 '    var postings_PostingsByProject_grid1702 = new Lino.postings.PostingsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByProject.grid) ], "master_panel": this });\n'
20130515 '    var outbox_panel1703 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Correspondence", "hideCheckBoxLabels": true, "items": [ outbox_MailsByProject_grid1691, postings_PostingsByProject_grid1702 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var activity1704 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/activity", "method": "GET" }) }) });\n'
20130515 '    var client_state1705 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "client_stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates, "name": "client_state" });\n'
20130515 '    var refusal_reason1706 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "refusal reason", "name": "refusal_reason", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "hiddenName": "refusal_reasonHidden" });\n'
20130515 '    var misc_1_panel1707 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1704, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1705, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refusal_reason1706, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_cpas1711 = new Ext.form.Checkbox({ "boxLabel": "client CPAS", "hideLabel": true, "checked": false, "name": "is_cpas", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_senior1712 = new Ext.form.Checkbox({ "boxLabel": "retrait\\u00e9", "hideLabel": true, "checked": false, "name": "is_senior", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_obsolete1713 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var misc_2_panel1714 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_cpas1711, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_senior1712, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1713, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1718 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var remarks21719 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque (Bureau Social)", "anchor": "-20 -10", "growMax": 2000, "name": "remarks2" });\n'
20130515 '    var misc_3_panel1720 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 225, "hideCheckBoxLabels": true, "items": [ { "items": remarks1718, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 }, { "items": remarks21719, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 } ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByPerson_grid1723 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var households_MembersByPerson_grid1724 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var misc_4_panel1725 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_RolesByPerson_grid1723, households_MembersByPerson_grid1724 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var misc_panel1726 = new Ext.Panel({ "layout": "vbox", "title": "Divers", "items": [ misc_1_panel1707, misc_2_panel1714, misc_3_panel1720, misc_4_panel1725 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cbss_identify_person_disp1727 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates IdentifyPerson", "name": "cbss_identify_person", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_manage_access_disp1728 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates ManageAccess", "name": "cbss_manage_access", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_retrieve_ti_groups_disp1729 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates Tx25", "name": "cbss_retrieve_ti_groups", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_1_panel1730 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_identify_person_disp1727, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_manage_access_disp1728, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_retrieve_ti_groups_disp1729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cbss_summary_htmlbox1734 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "cbss_summary", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Sommaire BCSS", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var cbss_panel1735 = new Ext.Panel({ "layout": "vbox", "title": "BCSS", "items": [ cbss_1_panel1730, cbss_summary_htmlbox1734 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 126, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1739 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1186, status_tab_panel1255, coaching_panel1296, education_panel1320, languages_panel1364, competences_panel1392, jobs_CandidaturesByPerson_grid1401, contracts_panel1614, pcsw_NotesByPerson_grid1629, calendar_panel1679, outbox_panel1703, misc_panel1726, cbss_panel1735 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1112.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1112.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      image_htmlbox1184.refresh();\n'
20130515 '      pcsw_ExclusionsByPerson_grid1238.on_master_changed();\n'
20130515 '      UploadsByController_htmlbox1252.refresh();\n'
20130515 '      pcsw_ContactsByClient_grid1286.on_master_changed();\n'
20130515 '      pcsw_CoachingsByClient_grid1294.on_master_changed();\n'
20130515 '      jobs_StudiesByPerson_grid1309.on_master_changed();\n'
20130515 '      jobs_ExperiencesByPerson_grid1319.on_master_changed();\n'
20130515 '      cv_LanguageKnowledgesByPerson_grid1327.on_master_changed();\n'
20130515 '      courses_CourseRequestsByPerson_grid1363.on_master_changed();\n'
20130515 '      cv_SkillsByPerson_grid1371.on_master_changed();\n'
20130515 '      cv_SoftSkillsByPerson_grid1378.on_master_changed();\n'
20130515 '      cv_ObstaclesByPerson_grid1388.on_master_changed();\n'
20130515 '      jobs_CandidaturesByPerson_grid1401.on_master_changed();\n'
20130515 '      isip_ContractsByPerson_grid1505.on_master_changed();\n'
20130515 '      jobs_ContractsByPerson_grid1613.on_master_changed();\n'
20130515 '      pcsw_NotesByPerson_grid1629.on_master_changed();\n'
20130515 '      cal_EventsByProject_grid1655.on_master_changed();\n'
20130515 '      cal_TasksByProject_grid1678.on_master_changed();\n'
20130515 '      outbox_MailsByProject_grid1691.on_master_changed();\n'
20130515 '      postings_PostingsByProject_grid1702.on_master_changed();\n'
20130515 '      contacts_RolesByPerson_grid1723.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1724.on_master_changed();\n'
20130515 '      cbss_summary_htmlbox1734.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1111.on('change',Lino.chooser_handler(city1112,'country'));\n"
20130515 '      Lino.pcsw.Clients.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var event_type728 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type729 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel730 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type728, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var subject733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project734 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company735 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel736 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project734, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company735, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel739 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 72, "autoScroll": false, "items": [ main_1_panel730, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject733, "anchor": "-20", "labelAlign": "top" }, main_3_panel736 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2355 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2357 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var main_2_panel2358 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 70, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2356, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2357, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var history2361 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_panel2362 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2355, "anchor": "-20", "labelAlign": "top" }, main_2_panel2358, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2361, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 69,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1881 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var provider1882 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }) });\n'
20130515 '    var contract_type1883 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }) });\n'
20130515 '    var type1884 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }) });\n'
20130515 '    var id1885 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel1886 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1881, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1882, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type1883, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1884, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1885, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var sector1892 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }) });\n'
20130515 '    var function1893 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }) });\n'
20130515 '    var capacity1894 = new Ext.form.NumberField({ "fieldLabel": "Capacit\\u00e9", "name": "capacity", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var hourly_rate1895 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var main_2_panel1896 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1892, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1893, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": capacity1894, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1895, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1901 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var CandidaturesByJob_grid1910 = new Lino.jobs.CandidaturesByJob.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByJob.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var main_3_panel1911 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1901, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 33 }, CandidaturesByJob_grid1910 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var ContractsByJob_grid1941 = new Lino.jobs.ContractsByJob.GridPanel({ "flex": 41, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByJob.grid) ], "master_panel": this });\n'
20130515 '    var main_panel1942 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1886, main_2_panel1896, main_3_panel1911, ContractsByJob_grid1941 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1942;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1893.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      CandidaturesByJob_grid1910.on_master_changed();\n'
20130515 '      ContractsByJob_grid1941.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1892.on('change',Lino.chooser_handler(function1893,'sector'));\n"
20130515 '      Lino.jobs.Jobs.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Jobs.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name297 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var country298 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }) });\n'
20130515 '    var region299 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }) });\n'
20130515 '    var city300 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code301 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel302 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country298, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region299, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city300, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code301, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr1307 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix308 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street309 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no310 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box311 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel312 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix308, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street309, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no310, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box311, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2317 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel318 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name297, "anchor": "-20", "labelAlign": "top" }, address_box_2_panel302, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr1307, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel312, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2317, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id322 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language323 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel324 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id322, "labelAlign": "top" }, { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language323, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email327 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url328 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone329 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm330 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax331 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel332 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm330, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax331, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel335 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel324, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email327, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url328, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone329, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel332 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel339 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel318, contact_box_panel335 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks340 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var activity341 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1342 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2343 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete344 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_2_panel345 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity341, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1342, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2343, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete344, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_person350 = new Ext.form.Checkbox({ "boxLabel": "est une Personne (<a href=\\"javascript:Lino.show_mti_child(\'is_person\',Lino.contacts.Persons.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Personne","Si ce partenaire est \\u00e9galement une personne.") }, "hideLabel": true, "name": "is_person", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_company351 = new Ext.form.Checkbox({ "boxLabel": "est une Organisation (<a href=\\"javascript:Lino.show_mti_child(\'is_company\',Lino.contacts.Companies.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Organisation","Si ce partenaire est \\u00e9galement une organisation.") }, "hideLabel": true, "name": "is_company", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_household352 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un m\\u00e9nage (<a href=\\"javascript:Lino.show_mti_child(\'is_household\',Lino.households.Households.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_household" });\n'
20130515 '    var created353 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified354 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_3_panel355 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_person350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_company351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_household352, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created353, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified354, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel361 = new Ext.Panel({ "flex": 58, "layout": "vbox", "items": [ { "items": remarks340, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, bottom_box_2_panel345, bottom_box_3_panel355 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_panel363 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel339, bottom_box_panel361 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var changes_ChangesByMaster_grid388 = new Lino.changes.ChangesByMaster.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Changes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.changes.ChangesByMaster.grid) ], "master_panel": this });\n'
20130515 '    var main_panel503 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel363, changes_ChangesByMaster_grid388 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region299.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      changes_ChangesByMaster_grid388.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country298.on('change',Lino.chooser_handler(region299,'country'));\n"
20130515 "      country298.on('change',Lino.chooser_handler(city300,'country'));\n"
20130515 "      region299.on('change',Lino.chooser_handler(city300,'region'));\n"
20130515 '      Lino.contacts.Partners.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 76,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2099 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var start_date2100 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var offer2101 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/Courses/offer", "method": "GET" }) }), "name": "offer" });\n'
20130515 '    var title2102 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Name", "anchor": "-20", "name": "title" });\n'
20130515 '    var main_1_panel2103 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2099, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2100, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer2101, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2102, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark2108 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Remarque", "anchor": "-20", "name": "remark" });\n'
20130515 '    var courses_ParticipantsByCourse_grid2114 = new Lino.courses.ParticipantsByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.ParticipantsByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var courses_CandidatesByCourse_grid2121 = new Lino.courses.CandidatesByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.CandidatesByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var main_panel2122 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel2103, { "items": remark2108, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, courses_ParticipantsByCourse_grid2114, courses_CandidatesByCourse_grid2121 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2122;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      courses_ParticipantsByCourse_grid2114.on_master_changed();\n'
20130515 '      courses_CandidatesByCourse_grid2121.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CoursesByOffer.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var body_htmlbox2452 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "body", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2453 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ body_htmlbox2452 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2453;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body_htmlbox2452.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user135 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project136 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel137 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user135, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project136, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel140 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary134, "anchor": "-20", "labelAlign": "top" }, main_2_panel137 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel140;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var isocode204 = new Ext.form.TextField({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">ISO code</span>", "name": "isocode", "boxMinWidth": Lino.chars2width(4), "listeners": { "render": Lino.quicktip_renderer("ISO code","        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.") }, "maxLength": 4, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name205 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr206 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl207 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var short_code208 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Short code","A short abbreviation for regional usage. Obsolete.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Short code</span>", "name": "short_code", "maxLength": 4, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var inscode209 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this country used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20" });\n'
20130515 '    var main_1_panel210 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": isocode204, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name205, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr206, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl207, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": short_code208, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode209, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var countries_CitiesByCountry_grid533 = new Lino.countries.CitiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 48 });\n'
20130515 '    var jobs_StudiesByCountry_grid546 = new Lino.jobs.StudiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 51 });\n'
20130515 '    var main_2_panel547 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ countries_CitiesByCountry_grid533, jobs_StudiesByCountry_grid546 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel548 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel210, main_2_panel547 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel548;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      countries_CitiesByCountry_grid533.on_master_changed();\n'
20130515 '      jobs_StudiesByCountry_grid546.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Countries.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name226 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr227 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl228 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var country229 = new Lino.TwinCombo({ "fieldLabel": "Pays", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/country", "method": "GET" }) }), "name": "country" });\n'
20130515 '    var inscode230 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this place used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 5, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "anchor": "-20" });\n'
20130515 '    var main_1_panel231 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name226, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr227, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl228, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country229, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode230, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var parent237 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Part of</span>", "name": "parent", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "listeners": { "render": Lino.quicktip_renderer("Part of","The superordinate geographic place of which this place is a part.") }, "selectOnFocus": true, "hiddenName": "parentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/parent", "method": "GET" }) }) });\n'
20130515 '    var type238 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Place Type", "name": "type", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/type", "method": "GET" }) }), "hiddenName": "typeHidden" });\n'
20130515 '    var id239 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel240 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": parent237, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type238, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id239, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var CitiesByCity_grid528 = new Lino.countries.CitiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var contacts_PartnersByCity_grid529 = new Lino.contacts.PartnersByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.PartnersByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var jobs_StudiesByCity_grid530 = new Lino.jobs.StudiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel531 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_PartnersByCity_grid529, jobs_StudiesByCity_grid530 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel532 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel231, main_2_panel240, CitiesByCity_grid528, main_4_panel531 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel532;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type238.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '      CitiesByCity_grid528.on_master_changed();\n'
20130515 '      contacts_PartnersByCity_grid529.on_master_changed();\n'
20130515 '      jobs_StudiesByCity_grid530.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country229.on('change',Lino.chooser_handler(type238,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.countries.CitiesByCity.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.About.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var main_panel2444 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ { "html": "<div class=\\"htmlText\\"><span>This is <a href=\\"http://welfare.lino-framework.org\\" target=\\"_blank\\">Lino Welfare</a> 1.1.4 using <a href=\\"http://site.lino-framework.org\\" target=\\"_blank\\">djangosite</a> 0.1.4, <a href=\\"http://www.python.org/\\" target=\\"_blank\\">Python</a> 2.7.3, <a href=\\"http://www.djangoproject.com\\" target=\\"_blank\\">Django</a> 1.5.1, <a href=\\"http://babel.edgewall.org/\\" target=\\"_blank\\">Babel</a> 1.0dev-r661, <a href=\\"http://www.lino-framework.org\\" target=\\"_blank\\">Lino</a> 1.6.7, <a href=\\"http://jinja.pocoo.org/\\" target=\\"_blank\\">Jinja</a> 2.6, <a href=\\"http://sphinx-doc.org/\\" target=\\"_blank\\">Sphinx</a> 1.2b1, <a href=\\"http://labix.org/python-dateutil\\" target=\\"_blank\\">python-dateutil</a> 2.1, <a href=\\"http://pypi.python.org/pypi/odfpy\\" target=\\"_blank\\">OdfPy</a> ODFPY/0.9.6, <a href=\\"http://docutils.sourceforge.net/\\" target=\\"_blank\\">docutils</a> 0.10, <a href=\\"https://fedorahosted.org/suds/\\" target=\\"_blank\\">suds</a> 0.4, <a href=\\"http://pyyaml.org/\\" target=\\"_blank\\">PyYaml</a> 3.10, <a href=\\"http://appyframework.org/pod.html\\" target=\\"_blank\\">Appy</a> 0.8.3 (2013/02/22 15:29)</span><p>Server uptime : <b>mercredi 15 mai 2013 at 11:45:06.556847</b></p><p>Source timestamps:</p><ul><li>djangosite : <b>mercredi 15 mai 2013 at 11:02:05.242649</b></li><li>lino : <b>mercredi 15 mai 2013 at 10:57:20.598657</b></li><li>lino_welfare : <b>mercredi 15 mai 2013 at 09:04:22.174857</b></li><li>atelier : <b>mardi 14 mai 2013 at 21:14:51.339674</b></li><li>django : <b>mercredi 8 mai 2013 at 10:18:59.384324</b></li><li>north : <b>dimanche 5 mai 2013 at 22:52:00.438131</b></li></ul></div>", "xtype": "label" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2444;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.about.About.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id185 = new Ext.form.TextField({ "fieldLabel": "id", "name": "id", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20", "allowBlank": false });\n'
20130515 '    var iso2186 = new Ext.form.TextField({ "fieldLabel": "iso2", "name": "iso2", "maxLength": 2, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "anchor": "-20" });\n'
20130515 '    var name187 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr188 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel190 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id185, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": iso2186, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name187, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr188, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cv_KnowledgesByLanguage_grid202 = new Lino.cv.KnowledgesByLanguage.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.KnowledgesByLanguage.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var main_panel203 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel190, cv_KnowledgesByLanguage_grid202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel203;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cv_KnowledgesByLanguage_grid202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Languages.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 77,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix2017 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name2018 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id2019 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language2020 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel2021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix2017, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2018, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2019, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id2026 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity2027 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type2028 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel2029 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id2026, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity2027, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2028, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account12033 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account22034 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete2035 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel2036 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account12033, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account22034, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete2035, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel2040 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel2021, intro_box_2_panel2029, intro_box_3_panel2036 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country2041 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region2042 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel2043 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country2041, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region2042, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city2046 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code2047 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel2048 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city2046, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code2047, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix2051 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street2052 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no2053 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box2054 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel2055 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix2051, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street2052, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no2053, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box2054, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr22060 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel2061 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel2043, box3_2_panel2048, box3_3_panel2055, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr22060, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email2063 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url2064 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone2065 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm2066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel2067 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email2063, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url2064, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone2065, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm2066, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel2072 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel2061, box4_panel2067 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks2073 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid2074 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel2075 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks2073, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid2074 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel2077 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel2040, address_box_panel2072, bottom_box_panel2075 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid2078 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var CourseOffersByProvider_grid2126 = new Lino.courses.CourseOffersByProvider.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Offres de cours", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseOffersByProvider.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2127 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel2077, pcsw_NotesByCompany_grid2078, CourseOffersByProvider_grid2126 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2127;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region2042.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid2074.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid2078.on_master_changed();\n'
20130515 '      CourseOffersByProvider_grid2126.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2041.on('change',Lino.chooser_handler(region2042,'country'));\n"
20130515 "      country2041.on('change',Lino.chooser_handler(city2046,'country'));\n"
20130515 "      region2042.on('change',Lino.chooser_handler(city2046,'region'));\n"
20130515 '      Lino.courses.CourseProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username38 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id39 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var profile40 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var box1_1_panel41 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username38, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id39, "labelAlign": "top" }, { "flex": 63, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile40, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name45 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name46 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var partner47 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel48 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name45, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name46, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner47, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email52 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var language53 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_3_panel54 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email52, "labelAlign": "top" }, { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language53, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created57 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified58 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box1_4_panel59 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created57, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified58, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box1_panel62 = new Ext.Panel({ "flex": 66, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box1_1_panel41, box1_2_panel48, box1_3_panel54, box1_4_panel59 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel66 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel62 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks67 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var AuthoritiesGiven_grid70 = new Lino.users.AuthoritiesGiven.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.users.AuthoritiesGiven.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var general_2_panel71 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks67, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, AuthoritiesGiven_grid70 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel73 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel66, general_2_panel71 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var calendar74 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Calendrier par d\\u00e9faut</span>", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "listeners": { "render": Lino.quicktip_renderer("Calendrier par d\\u00e9faut","Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.") }, "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/calendar", "method": "GET" }) }) });\n'
20130515 '    var access_class75 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s par d\\u00e9faut</span>", "allowBlank": false, "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s par d\\u00e9faut","The default access class for your calendar events and tasks.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses, "name": "access_class" });\n'
20130515 '    var cal_left_1_panel76 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar74, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class75, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_SubscriptionsByUser_grid83 = new Lino.cal.SubscriptionsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.SubscriptionsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var cal_left_panel84 = new Ext.Panel({ "flex": 33, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ cal_left_1_panel76, cal_SubscriptionsByUser_grid83 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByUser_grid142 = new Lino.cal.TasksByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var cal_1_panel143 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_left_panel84, cal_TasksByUser_grid142 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var newcomer_quota144 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Quota nouvelles demandes","Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Quota nouvelles demandes</span>", "name": "newcomer_quota", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var coaching_type145 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Service</span>", "name": "coaching_type", "pageSize": 20, "emptyText": "Choisir Service...", "listeners": { "render": Lino.quicktip_renderer("Service","The default CoachingType used when creating Coachings.") }, "selectOnFocus": true, "hiddenName": "coaching_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/coaching_type", "method": "GET" }) }) });\n'
20130515 '    var coaching_supervisor146 = new Ext.form.Checkbox({ "boxLabel": "Notify me when a coach has been assigned", "listeners": { "render": Lino.quicktip_renderer("Notify me when a coach has been assigned","Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.") }, "hideLabel": true, "checked": false, "name": "coaching_supervisor", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var newcomers_CompetencesByUser_grid152 = new Lino.newcomers.CompetencesByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.newcomers.CompetencesByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var coaching_a_panel153 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ { "items": newcomer_quota144, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_type145, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_supervisor146, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, newcomers_CompetencesByUser_grid152 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 369, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_CoachingsByUser_grid164 = new Lino.pcsw.CoachingsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var coaching_1_panel165 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Accompagnement", "hideCheckBoxLabels": true, "items": [ coaching_a_panel153, pcsw_CoachingsByUser_grid164 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel166 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel73, cal_1_panel143, coaching_1_panel165 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel166;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      AuthoritiesGiven_grid70.on_master_changed();\n'
20130515 '      cal_SubscriptionsByUser_grid83.on_master_changed();\n'
20130515 '      cal_TasksByUser_grid142.on_master_changed();\n'
20130515 '      newcomers_CompetencesByUser_grid152.on_master_changed();\n'
20130515 '      pcsw_CoachingsByUser_grid164.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2440 = new Lino.HtmlBoxPanel({ "flex": 1, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "north", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var welcome_htmlbox2441 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "center", "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var main_panel2442 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2440, welcome_htmlbox2441 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2442;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2440.refresh();\n'
20130515 '      welcome_htmlbox2441.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 10,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var time372 = new Ext.form.DisplayField({ "fieldLabel": "time", "name": "time", "selectOnFocus": true, "anchor": "-20", "value": "<br>", "allowBlank": false });\n'
20130515 '    var user373 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/Changes/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var type374 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Change Type", "allowBlank": false, "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.ChangeTypes, "name": "type" });\n'
20130515 '    var master_disp375 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Signal\\u00e9tique", "anchor": "-20", "name": "master" });\n'
20130515 '    var object_disp376 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Object", "anchor": "-20", "name": "object" });\n'
20130515 '    var id377 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel378 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": time372, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user373, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type374, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": master_disp375, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": object_disp376, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id377, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var diff385 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Changes", "anchor": "-20 -10", "growMax": 2000, "name": "diff" });\n'
20130515 '    var main_panel386 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ main_1_panel378, { "items": diff385, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel386;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.changes.ChangesByMaster.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 79,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2084 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var title2085 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "title", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var content2086 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var provider2087 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "name": "provider" });\n'
20130515 '    var main_1_panel2088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2084, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2085, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content2086, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider2087, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 198, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2093 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "center", "title": "Description", "name": "description" });\n'
20130515 '    var CoursesByOffer_grid2124 = new Lino.courses.CoursesByOffer.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "south", "tools": [ Lino.show_in_own_window_button(Lino.courses.CoursesByOffer.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2125 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel2088, description2093, CoursesByOffer_grid2124 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2125;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2093.refresh();\n'
20130515 '      CoursesByOffer_grid2124.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseOffers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name998 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name999 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var gender1000 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var title1001 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var name_box_panel1002 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name998, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name999, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1000, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1001, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1007 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }) });\n'
20130515 '    var region1008 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }) });\n'
20130515 '    var city1009 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1010 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel1011 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1007, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1008, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1009, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1010, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr11016 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix1017 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1018 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1019 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1020 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel1021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1017, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1018, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1019, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21026 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel1027 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ name_box_panel1002, address_box_2_panel1011, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr11016, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel1021, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21026, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1030 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1031 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel1032 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1030, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1031, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1035 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1036 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1037 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1038 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax1039 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel1040 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1038, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1039, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel1043 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel1032, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1035, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1036, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1037, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel1040 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1047 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel1027, contact_box_panel1043 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var activity1048 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account11049 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21050 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1051 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_1_panel1052 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1048, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11049, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21050, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1051, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_client1057 = new Ext.form.Checkbox({ "boxLabel": "est un client (<a href=\\"javascript:Lino.show_mti_child(\'is_client\',Lino.pcsw.Clients.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est un client","Whether this Person is a Client.") }, "hideLabel": true, "name": "is_client", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var created1058 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1059 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_2_panel1060 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_client1057, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1058, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1059, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1064 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByPerson_grid1069 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var households_MembersByPerson_grid1076 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 36 });\n'
20130515 '    var bottom_box_3_panel1077 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1064, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 36 }, contacts_RolesByPerson_grid1069, households_MembersByPerson_grid1076 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel1079 = new Ext.Panel({ "flex": 58, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ bottom_box_1_panel1052, bottom_box_2_panel1060, bottom_box_3_panel1077 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var general_panel1080 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1047, bottom_box_panel1079 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1084 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1080 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1084;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1008.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByPerson_grid1069.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1076.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1007.on('change',Lino.chooser_handler(region1008,'country'));\n"
20130515 "      country1007.on('change',Lino.chooser_handler(city1009,'country'));\n"
20130515 "      region1008.on('change',Lino.chooser_handler(city1009,'region'));\n"
20130515 '      Lino.contacts.Persons.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name743 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language744 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel746 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language744, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email745, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type749 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var id750 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_3_panel751 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type749, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id750, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel754 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name743, "anchor": "-20", "labelAlign": "top" }, main_2_panel746, main_3_panel751 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel754;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username167 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var email168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_1_panel169 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username167, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email168, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name172 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var main_2_panel174 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name172, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name173, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var partner177 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var language178 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var profile179 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var main_4_panel180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language178, "labelAlign": "top" }, { "flex": 69, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel183 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ main_1_panel169, main_2_panel174, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner177, "anchor": "-20", "labelAlign": "top" }, main_4_panel180 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel183;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2407 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2408 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2409 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2407, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2408, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type2412 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var valid_until2413 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2414 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2412, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2413, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var description2417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var main_panel2418 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ main_1_panel2409, main_2_panel2414, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2417, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2418;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1547 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1548 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1549 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1550 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1551 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_1_panel1552 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1547, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1548, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1549, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1550, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1551, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var job1558 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var type1559 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1560 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1561 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1562 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel1563 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1558, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1559, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1560, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1561, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1562, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1569 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var duration1570 = new Lino.SimpleRemoteComboFieldElement({ "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "fieldLabel": "dur\\u00e9e (jours)", "name": "duration", "selectOnFocus": true, "anchor": "-20", "value": null });\n'
20130515 '    var applies_until1571 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1572 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var box1_3_panel1573 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1569, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": duration1570, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1571, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1572, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var regime1578 = new Lino.TwinCombo({ "fieldLabel": "R\\u00e9gime de travail", "name": "regime", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Regimes.detail)}, "emptyText": "Choisir R\\u00e9gime de travail...", "selectOnFocus": true, "hiddenName": "regimeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }) });\n'
20130515 '    var schedule1579 = new Lino.TwinCombo({ "fieldLabel": "Horaire", "name": "schedule", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Schedules.detail)}, "emptyText": "Choisir Horaire...", "selectOnFocus": true, "hiddenName": "scheduleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }) });\n'
20130515 '    var hourly_rate1580 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var refund_rate1581 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "tarif de remboursement", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }), "name": "refund_rate" });\n'
20130515 '    var box1_4_panel1582 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 207, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": regime1578, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": schedule1579, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1580, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refund_rate1581, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var reference_person1587 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "persone de r\\u00e9f\\u00e9rence", "anchor": "-20", "name": "reference_person" });\n'
20130515 '    var build_time1588 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var box1_5_panel1589 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": reference_person1587, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time1588, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1592 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1593 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1594 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1595 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var box1_6_panel1596 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1592, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1593, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1594, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1595, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var responsibilities1601 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "responsibilities", "title": "responsabilit\\u00e9s" });\n'
20130515 '    var box1_panel1602 = new Ext.Panel({ "flex": 70, "layout": "vbox", "items": [ box1_1_panel1552, box1_2_panel1563, box1_3_panel1573, box1_4_panel1582, box1_5_panel1589, box1_6_panel1596, responsibilities1601 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 0, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cal_EventsByController_grid1603 = new Lino.cal.EventsByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ] });\n'
20130515 '    var cal_TasksByController_grid1604 = new Lino.cal.TasksByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "master_panel": this });\n'
20130515 '    var right_panel1605 = new Lino.VBorderPanel({ "flex": 30, "border": false, "hideCheckBoxLabels": true, "items": [ cal_EventsByController_grid1603, cal_TasksByController_grid1604 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel1606 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1602, right_panel1605 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel1607 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel1606 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1607;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1561.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1601.refresh();\n'
20130515 '      cal_EventsByController_grid1603.on_master_changed();\n'
20130515 '      cal_TasksByController_grid1604.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1560.on('change',Lino.chooser_handler(contact_person1561,'company'));\n"
20130515 '      Lino.jobs.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1558.on("change",function(){this.save()},this);\n'
20130515 '    company1560.on("change",function(){this.save()},this);\n'
20130515 '    contact_person1561.on("change",function(){this.save()},this);\n'
20130515 '    contact_role1562.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name920 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl922 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel923 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name920, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr921, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl922, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type927 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var invite_team_members928 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color929 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var main_2_panel930 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type927, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members928, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color929, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 72, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel934 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel923, main_2_panel930 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel934;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2233 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2234 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2235 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2236 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2237 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2238 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2239 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2240 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2233, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2234, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2235, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2236, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2237, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2238, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2239, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var action2248 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2249 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2250 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2251 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2248, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2249, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2250, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2255 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2256 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2257 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2255, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2256, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2260 = new Ext.form.FieldSet({ "flex": 37, "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2251, p1_2_panel2257 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2261 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2262 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2263 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2264 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2261, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2262, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2263, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2268 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2269 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2270 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2271 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2268, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2269, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2270, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2275 = new Ext.form.FieldSet({ "flex": 62, "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2264, proof_2_panel2271 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2276 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2260, proof_panel2275 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var result_htmlbox2277 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "result", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "R\\u015bultat", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var request_panel2278 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2240, parameters_panel2276, result_htmlbox2277 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2286 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2278 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2286;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2255.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      result_htmlbox2277.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2234.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2158 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2159 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2160 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2161 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2162 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2163 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2164 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2165 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2159, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2160, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2161, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2162, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2163, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2164, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var p1_panel2175 = new Ext.form.FieldSet({ "flex": 25, "layout": "vbox", "title": "avec NISS", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ { "items": national_id2173, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "flex": 50, "html": "<br/>", "xtype": "label" } ], "hideCheckBoxLabels": true, "labelWidth": 45, "border": false, "labelAlign": "top" });\n'
20130515 '    var first_name2177 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2178 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2179 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2177, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2178, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2184 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2185 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2186 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2187 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2184, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2185, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2186, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2191 = new Ext.form.FieldSet({ "flex": 75, "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2180, p2_2_panel2187 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2192 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2175, p2_panel2191 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var IdentifyPersonResult_grid2202 = new Lino.cbss.IdentifyPersonResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.IdentifyPersonResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var request_panel2203 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2165, parameters_panel2192, IdentifyPersonResult_grid2202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2204 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2205 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2206 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2207 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2204, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2205, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2206, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2211 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2203, technical_panel2207 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2211;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      IdentifyPersonResult_grid2202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2159.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2386 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2387 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2388 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2386, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2387, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type2391 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var description2392 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var valid_until2393 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2394 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2391, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2392, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2393, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var modified2398 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var created2399 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var owner_disp2400 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_3_panel2401 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified2398, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created2399, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp2400, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid2405 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2406 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2388, main_2_panel2394, main_3_panel2401, cal_TasksByController_grid2405 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2406;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cal_TasksByController_grid2405.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var app_disp2425 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "app_label", "name": "app", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp2426 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "name", "name": "name", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp2427 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "docstring", "name": "docstring", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows2428 = new Ext.form.NumberField({ "disabled": true, "fieldLabel": "Rows", "anchor": "-20", "name": "rows" });\n'
20130515 '    var main_1_panel2429 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": app_disp2425, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_disp2426, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": docstring_disp2427, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": rows2428, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var about_FieldsByModel_grid2438 = new Lino.about.FieldsByModel.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.about.FieldsByModel.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2439 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2429, about_FieldsByModel_grid2438 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2439;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      about_FieldsByModel_grid2438.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.about.Models.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 66,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Name", "anchor": "-20", "name": "name" });\n'
20130515 '    var provider1976 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }) });\n'
20130515 '    var sector1977 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }) });\n'
20130515 '    var function1978 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel1979 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1975, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1976, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1977, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1978, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var selection_from1984 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de s\\u00e9lection", "anchor": "-20", "name": "selection_from" });\n'
20130515 '    var selection_until1985 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin de s\\u00e9lection", "anchor": "-20", "name": "selection_until" });\n'
20130515 '    var start_date1986 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_2_panel1987 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_from1984, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_until1985, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date1986, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1991 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var ExperiencesByOffer_grid2003 = new Lino.jobs.ExperiencesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var CandidaturesByOffer_grid2013 = new Lino.jobs.CandidaturesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel2014 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ ExperiencesByOffer_grid2003, CandidaturesByOffer_grid2013 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2015 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel1979, main_2_panel1987, { "items": remark1991, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 41 }, main_4_panel2014 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2015;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1978.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      ExperiencesByOffer_grid2003.on_master_changed();\n'
20130515 '      CandidaturesByOffer_grid2013.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1977.on('change',Lino.chooser_handler(function1978,'sector'));\n"
20130515 '      Lino.jobs.Offers.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Offers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 75,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date_submitted1338 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date d\\u00e9ntr\\u00e9e","When this request has been submitted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date d\\u00e9ntr\\u00e9e</span>", "name": "date_submitted", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var person1339 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Client</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "listeners": { "render": Lino.quicktip_renderer("Client","Le client qui d\\u00e9sire suivre un cours.") }, "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var content1340 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Contenu</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "listeners": { "render": Lino.quicktip_renderer("Contenu","Der gew\\u00fcnschte Kursinhalt.)") }, "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var offer1341 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "name": "offer", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/offer", "method": "GET" }) }) });\n'
20130515 '    var urgent1342 = new Ext.form.Checkbox({ "boxLabel": "cause professionnelle", "listeners": { "render": Lino.quicktip_renderer("cause professionnelle","Check this if the request is needed for job search.") }, "hideLabel": true, "checked": false, "name": "urgent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1343 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_submitted1338, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person1339, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content1340, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer1341, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": urgent1342, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var course1349 = new Lino.TwinCombo({ "fieldLabel": "Cours trouv\\u00e9", "name": "course", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.Courses.detail)}, "emptyText": "Choisir Cours...", "selectOnFocus": true, "hiddenName": "courseHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/course", "method": "GET" }) }) });\n'
20130515 '    var state1350 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "name": "state" });\n'
20130515 '    var date_ended1351 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var id1352 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel1353 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course1349, "labelAlign": "top" }, { "flex": 26, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state1350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1352, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1358 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var UploadsByController_htmlbox1359 = new Lino.HtmlBoxPanel({ "flex": 33, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel1360 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1358, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, UploadsByController_htmlbox1359 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1362 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1343, main_2_panel1353, main_3_panel1360 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1341.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '      UploadsByController_htmlbox1359.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1340.on('change',Lino.chooser_handler(offer1341,'content'));\n"
20130515 '      Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    offer1341.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2365 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var name2366 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2367 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2368 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2369 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2365, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2366, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2367, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2368, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 108, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2374 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "description" });\n'
20130515 '    var text2375 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "south", "title": "Texte mod\\u00e8le", "name": "text" });\n'
20130515 '    var main_panel2376 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ main_1_panel2369, { "flex": 5, "layout": "form", "xtype": "panel", "items": description2374, "region": "center", "labelAlign": "top", "split": true }, text2375 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2376;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text2375.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2287 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var action2288 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2289 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2290 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2291 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2288, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2289, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2290, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2295 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2296 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2297 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2295, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2296, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2300 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2291, p1_2_panel2297 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id2301 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2302 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2303 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2304 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2301, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2302, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2303, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2309 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2310 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2311 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2308, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2309, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2310, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2315 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2304, proof_2_panel2311 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2316 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2287, "anchor": "-20", "labelAlign": "top" }, p1_panel2300, proof_panel2315 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2316;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2295.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2287.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type850 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var name851 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr852 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl853 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var id854 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel855 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type850, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name851, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr852, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl853, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id854, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var url_template861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL template", "anchor": "-20", "name": "url_template" });\n'
20130515 '    var username862 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Username", "anchor": "-20", "name": "username" });\n'
20130515 '    var password863 = new Ext.form.TextField({ "fieldLabel": "Password", "name": "password", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "inputType": "password" });\n'
20130515 '    var main_2_panel864 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": url_template861, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username862, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": password863, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var readonly868 = new Ext.form.Checkbox({ "boxLabel": "read-only", "hideLabel": true, "checked": false, "name": "readonly", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var invite_team_members869 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color870 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var start_date871 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_3_panel872 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": readonly868, "labelAlign": "top" }, { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members869, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color870, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date871, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var build_method877 = new Lino.ChoicesFieldElement({ "fieldLabel": "M\\u00e9thode de construction", "name": "build_method", "selectOnFocus": true, "anchor": "-20", "store": [ [ "appyodt", "AppyOdtBuildMethod" ], [ "appypdf", "AppyPdfBuildMethod" ], [ "appyrtf", "AppyRtfBuildMethod" ], [ "latex", "LatexBuildMethod" ], [ "pisa", "PisaBuildMethod" ], [ "rtf", "RtfBuildMethod" ] ], "hiddenName": "build_methodHidden" });\n'
20130515 '    var template878 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "Mod\\u00e8le", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/template", "method": "GET" }) }), "name": "template" });\n'
20130515 '    var email_template879 = new Lino.SimpleRemoteComboFieldElement({ "listeners": { "render": Lino.quicktip_renderer("Email template","The name of the file to be used as template \\nwhen creating an email from a mailable of this type.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Email template</span>", "name": "email_template", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/email_template", "method": "GET" }) }) });\n'
20130515 '    var attach_to_email880 = new Ext.form.Checkbox({ "boxLabel": "Attach to email", "listeners": { "render": Lino.quicktip_renderer("Attach to email","Whether the printable file should be attached to the email\\nwhen creating an email from a mailable of this type.\\n") }, "hideLabel": true, "checked": false, "name": "attach_to_email", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_4_panel881 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_method877, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": template878, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email_template879, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": attach_to_email880, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var main_panel919 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel855, main_2_panel864, main_3_panel872, main_4_panel881 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel919;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      template878.setContextValue('build_method',record ? record.data['build_methodHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      build_method877.on('change',Lino.chooser_handler(template878,'build_method'));\n"
20130515 '      Lino.cal.PanelCalendars.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 41,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type935 = new Lino.TwinCombo({ "fieldLabel": "Type de m\\u00e9nage", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.households.Types.detail)}, "emptyText": "Choisir Type de m\\u00e9nage...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }) });\n'
20130515 '    var name936 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language937 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var id938 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var intro_box_1_panel939 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type935, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name936, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language937, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id938, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var country944 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }) });\n'
20130515 '    var region945 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel946 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country944, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region945, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city949 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code950 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel951 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city949, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code950, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix954 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street955 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no956 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box957 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel958 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix954, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street955, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no956, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box957, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2963 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var activity964 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1965 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2966 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var box3_5_panel967 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity964, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1965, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2966, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel971 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel946, box3_2_panel951, box3_3_panel958, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2963, "anchor": "-20", "labelAlign": "top" }, box3_5_panel967 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email973 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url974 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm976 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel977 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email973, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url974, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone975, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm976, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel982 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel971, box4_panel977 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks983 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var households_MembersByHousehold_grid990 = new Lino.households.MembersByHousehold.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByHousehold.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var bottom_box_panel991 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks983, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 49 }, households_MembersByHousehold_grid990 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel993 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_1_panel939, address_box_panel982, bottom_box_panel991 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel997 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel993 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel997;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region945.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      households_MembersByHousehold_grid990.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country944.on('change',Lino.chooser_handler(region945,'country'));\n"
20130515 "      country944.on('change',Lino.chooser_handler(city949,'country'));\n"
20130515 "      region945.on('change',Lino.chooser_handler(city949,'region'));\n"
20130515 '      Lino.households.Households.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.households.Households.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var calendar756 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var summary757 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var project758 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var general_1_panel759 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar756, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary757, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project758, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var start_date763 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time764 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel765 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date763, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time764, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date768 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time769 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel770 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date768, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time769, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var user773 = new Lino.TwinCombo({ "fieldLabel": "Responsible user", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to774 = new Lino.TwinCombo({ "fieldLabel": "Attribu\\u00e9 \\u00e0", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel775 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ start_panel765, end_panel770, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user773, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to774, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var place778 = new Lino.TwinCombo({ "fieldLabel": "Place", "name": "place", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Places.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "placeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/place", "method": "GET" }) }) });\n'
20130515 '    var priority779 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Priorit\\u00e9", "name": "priority", "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9...", "selectOnFocus": true, "hiddenName": "priorityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/priority", "method": "GET" }) }) });\n'
20130515 '    var access_class780 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s</span>", "name": "access_class", "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s","Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses });\n'
20130515 '    var transparent781 = new Ext.form.Checkbox({ "boxLabel": "non bloquant", "listeners": { "render": Lino.quicktip_renderer("non bloquant","Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.") }, "hideLabel": true, "checked": false, "name": "transparent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var general_3_panel782 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": place778, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": priority779, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class780, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": transparent781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var owner_disp787 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var workflow_buttons_disp788 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var general_4_panel789 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp787, "labelAlign": "top" }, { "flex": 75, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp788, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description792 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 33, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var GuestsByEvent_grid802 = new Lino.cal.GuestsByEvent.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.GuestsByEvent.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var general_5_panel803 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ description792, GuestsByEvent_grid802 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel804 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel759, general_2_panel775, general_3_panel782, general_4_panel789, general_5_panel803 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var id805 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var created806 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified807 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var more_1_panel808 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id805, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created806, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified807, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByController_grid812 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var postings_PostingsByController_grid813 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var more_2_panel814 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ outbox_MailsByController_grid812, postings_PostingsByController_grid813 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var more_panel815 = new Ext.Panel({ "layout": "vbox", "title": "Plus", "items": [ more_1_panel808, more_2_panel814 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel816 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel804, more_panel815 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel816;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description792.refresh();\n'
20130515 '      GuestsByEvent_grid802.on_master_changed();\n'
20130515 '      outbox_MailsByController_grid812.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid813.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(70), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.cal.GuestStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.MySettings\n'
20130515 'Lino.users.MySettings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/MySettings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  title : "Utilisateurs",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "username" }, { "name": "profile" }, \'profileHidden\', { "name": "first_name" }, { "name": "last_name" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "password" }, { "name": "email" }, { "name": "remarks" }, { "name": "language" }, \'languageHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "access_class" }, \'access_classHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "coaching_type" }, \'coaching_typeHidden\', { "type": "boolean", "name": "coaching_supervisor" }, { "type": "int", "name": "newcomer_quota" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 7,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 24,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var username2468 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 30 });\n'
20130515 '    var profile2469 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.UserProfiles });\n'
20130515 '    var first_name2470 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var last_name2471 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var id2472 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2473 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2474 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var password2475 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 128 });\n'
20130515 '    var email2476 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var remarks2477 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var language2478 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ] });\n'
20130515 '    var partner2479 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var access_class2480 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.AccessClasses });\n'
20130515 '    var calendar2481 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var coaching_type2482 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/coaching_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var coaching_supervisor2483 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var newcomer_quota2484 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Username", "editable": true, "tooltip": "\\n        Required. Must be unique. \\n        ", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "username", "editor": username2468 }, { "colIndex": 1, "sortable": true, "header": "User Profile", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(47), "dataIndex": "profile", "editor": profile2469 }, { "colIndex": 2, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2470 }, { "colIndex": 3, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2471 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2472, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Password", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "password", "hidden": true, "editor": password2475 }, { "colIndex": 8, "sortable": true, "header": "adresse e-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2476 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remarks2477, "dataIndex": "remarks" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2478 }, { "colIndex": 11, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2479, "dataIndex": "partner" }, { "colIndex": 12, "sortable": true, "header": "Classe d\'acc\\u00e8s par d\\u00e9faut", "editable": true, "tooltip": "The default access class for your calendar events and tasks.", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class2480 }, { "colIndex": 13, "sortable": true, "header": "Calendrier par d\\u00e9faut", "editable": true, "tooltip": "Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2481 }, { "colIndex": 14, "sortable": true, "header": "Service", "editable": true, "tooltip": "The default CoachingType used when creating Coachings.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "coaching_type", "editor": coaching_type2482 }, { "colIndex": 15, "sortable": false, "xtype": "checkcolumn", "header": "Notify me when a coach has been assigned", "editable": true, "tooltip": "Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "coaching_supervisor" }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n", "filter": { "type": "numeric" }, "header": "Quota nouvelles demandes", "dataIndex": "newcomer_quota", "width": Lino.chars2width(6), "editor": newcomer_quota2484 }) ];\n'
20130515 '    Lino.users.MySettings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Languages\n'
20130515 'Lino.countries.Languages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Languages",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Langues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "id" }, { "name": "iso2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 12,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2486 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2487 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2488 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2489 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "allowBlank": false, "maxLength": 3 });\n'
20130515 '    var iso22490 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "maxLength": 2 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2486 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2487 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2488 }, { "colIndex": 3, "sortable": true, "header": "id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "id", "editor": id2489 }, { "colIndex": 4, "sortable": true, "header": "iso2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso2", "editor": iso22490 } ];\n'
20130515 '    Lino.countries.Languages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insertPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Langues",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Languages.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detailPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Langues",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Languages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Countries\n'
20130515 'Lino.countries.Countries.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Countries",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pays",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "isocode" }, { "name": "short_code" }, { "name": "iso3" }, { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 11,\n'
20130515 '  ls_id_property : "isocode",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2492 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2493 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2494 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var isocode2495 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "allowBlank": false, "maxLength": 4 });\n'
20130515 '    var short_code2496 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var iso32497 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    var inscode2498 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2492 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2493 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2494 }, { "colIndex": 3, "sortable": true, "header": "ISO code", "editable": true, "tooltip": "        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "isocode", "editor": isocode2495 }, { "colIndex": 4, "sortable": true, "header": "Short code", "editable": true, "tooltip": "A short abbreviation for regional usage. Obsolete.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "short_code", "editor": short_code2496 }, { "colIndex": 5, "sortable": true, "header": "ISO-3 code", "editable": true, "tooltip": "The three-letter code for this country as defined by ISO 3166-1.", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso3", "editor": iso32497 }, { "colIndex": 6, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this country used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "inscode", "editor": inscode2498 } ];\n'
20130515 '    Lino.countries.Countries.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insertPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Pays",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Countries.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detailPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Pays",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Countries.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.PropChoices\n'
20130515 'Lino.properties.PropChoices.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/PropChoices",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "type" }, \'typeHidden\', { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2500 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var type2501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/properties/PropChoices/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type de propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value2502 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text2503 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr2504 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl2505 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2500, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Type de propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2501 }, { "colIndex": 2, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value2502 }, { "colIndex": 3, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text2503 }, { "colIndex": 4, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr2504 }, { "colIndex": 5, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl2505 } ];\n'
20130515 '    Lino.properties.PropChoices.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.PropChoices.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.PropChoices.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Partners\n'
20130515 'Lino.contacts.Partners.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Partners",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 29,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2507 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2508 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2509 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2510 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2511 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2512 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2514 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12515 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2517 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2518 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2519 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22520 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2521 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2522 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2523 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2524 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2525 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2526 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2527 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2528 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12529 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var id2531 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2512.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2512.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2513.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2511.on('change',Lino.chooser_handler(city2512,'country'));\n"
20130515 "      region2513.on('change',Lino.chooser_handler(city2512,'region'));\n"
20130515 "      country2511.on('change',Lino.chooser_handler(region2513,'country'));\n"
20130515 '      Lino.contacts.Partners.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2507 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2508 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2511, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2512 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2513 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2514 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12515 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2516 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2517 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2518 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2519 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22520 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2521 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2522 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2523 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2524 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2525 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2526, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2528 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12529 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22530 }, new Lino.NullNumberColumn({ "colIndex": 24, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2531, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Partners.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Partners.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Partners.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Companies\n'
20130515 'Lino.contacts.Companies.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Companies",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 20,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2533 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2534 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2535 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2536 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2538 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2539 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2540 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12541 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2542 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2544 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2545 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22546 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2547 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2548 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2550 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2551 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2552 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2553 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12555 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22556 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2557 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2560 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2561 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2538.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2538.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2539.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2537.on('change',Lino.chooser_handler(city2538,'country'));\n"
20130515 "      region2539.on('change',Lino.chooser_handler(city2538,'region'));\n"
20130515 "      country2537.on('change',Lino.chooser_handler(region2539,'country'));\n"
20130515 '      Lino.contacts.Companies.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2533 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2534 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2537, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2538 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2539 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2540 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12541 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2542 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2543 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2544 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2545 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22546 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2547 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2548 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2549 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2550 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2551 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2552, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2554 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12555 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22556 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2557 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2558 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2559 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2560 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2561, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Companies.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisations",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detailPanel = Ext.extend(Lino.contacts.Companies.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisations",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Companies.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByState\n'
20130515 'Lino.postings.PostingsByState.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByState",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2563 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2564 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2565 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2566 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2567 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2568 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2569 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2571 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2572 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2569.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2568.on('change',Lino.chooser_handler(owner_id2569,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByState.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2563, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2564 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2565, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2567, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2568 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2569 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2570, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2571 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByState.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByState.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByState.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByState.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByState",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsReady\n'
20130515 'Lino.postings.PostingsReady.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsReady",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux \\u00e0 imprimer",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2574 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2575 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2576 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2577 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2578 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2582 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2583 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2580.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2579.on('change',Lino.chooser_handler(owner_id2580,'owner_type'));\n"
20130515 '      Lino.postings.PostingsReady.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2574, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2575 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2576, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2578, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2579 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2580 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2581, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2582 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsReady.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsReady.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsReady.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsReady.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsReady",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsPrinted\n'
20130515 'Lino.postings.PostingsPrinted.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsPrinted",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux imprim\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2585 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2588 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2589 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2590 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2592 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2593 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2594 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2591.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2590.on('change',Lino.chooser_handler(owner_id2591,'owner_type'));\n"
20130515 '      Lino.postings.PostingsPrinted.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2585, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2586 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2587, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2589, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2590 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2591 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2592, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2593 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsPrinted.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsPrinted.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsPrinted.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsPrinted.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsPrinted",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsSent\n'
20130515 'Lino.postings.PostingsSent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsSent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux envoy\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2596 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2597 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2599 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2600 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2603 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2604 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2605 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2602.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2601.on('change',Lino.chooser_handler(owner_id2602,'owner_type'));\n"
20130515 '      Lino.postings.PostingsSent.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2596, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2597 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2598, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2600, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2601 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2602 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2603, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2604 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsSent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsSent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsSent.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsSent.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsSent",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEvents\n'
20130515 'Lino.cal.MyEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "calendar" }, \'calendarHidden\', { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2607 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2608 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var calendar2609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var project2610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2611 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2612 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2613 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2616 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2617 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2618 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2619 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2620 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2621 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class2623 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2624 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2625 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2626 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2629 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2631 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2614.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2621.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2613.on('change',Lino.chooser_handler(owner_id2614,'owner_type'));\n"
20130515 '      Lino.cal.MyEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2607, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2608 }, { "colIndex": 2, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2609 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2610, "dataIndex": "project" }, { "colIndex": 4, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2611 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2612, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2613 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2614 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2615 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2619 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2620 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2621, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2622 }, { "colIndex": 16, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2623 }, new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2624 }), new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 19, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 20, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2627 }, { "colIndex": 21, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2628 }, { "colIndex": 22, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2629 }, { "colIndex": 23, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2630 }, { "width": Lino.chars2width(11), "colIndex": 24, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyUnclearEvents\n'
20130515 'Lino.cal.MyUnclearEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyUnclearEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2633 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2634 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2635 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2636 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2637 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2638 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2641 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2642 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2643 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2644 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2645 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2646 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2647 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2648 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2650 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2651 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2652 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2653 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2656 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2658 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2640.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2647.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2639.on('change',Lino.chooser_handler(owner_id2640,'owner_type'));\n"
20130515 '      Lino.cal.MyUnclearEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2633, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2634 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2635, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2636 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2638, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2639 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2640 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2641 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2645 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2646 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2647, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2648 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2649 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2650 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2651 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2654 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2655 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2656 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2657 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyUnclearEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyUnclearEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsAssignedToMe\n'
20130515 'Lino.cal.EventsAssignedToMe.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsAssignedToMe",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2661 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2663 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2669 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2670 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2671 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2674 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2675 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2676 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2677 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2678 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2679 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2680 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2681 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2683 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2684 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2685 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2674.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2666.on('change',Lino.chooser_handler(owner_id2667,'owner_type'));\n"
20130515 '      Lino.cal.EventsAssignedToMe.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2660, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2661 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2662, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2663 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2666 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2667 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2668 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2672 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2673 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2674, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2675 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2676 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2677 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2678 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2681 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2682 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2683 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2684 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsAssignedToMe.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEventsToday\n'
20130515 'Lino.cal.MyEventsToday.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEventsToday",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous aujourd\'hui",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "build_time" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_time2687 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary2688 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2689 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2690 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2692 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2694 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project2696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var build_time2697 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_date2698 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date2699 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2700 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2701 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2703 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2704 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2705 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2706 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2707 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2708 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2712 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2692.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2701.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2691.on('change',Lino.chooser_handler(owner_id2692,'owner_type'));\n"
20130515 '      Lino.cal.MyEventsToday.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(9), "colIndex": 0, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2687 }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2688 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2690, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2691 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2692 }, { "colIndex": 6, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2693 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2696, "dataIndex": "project" }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2698, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2699 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2700 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2701, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2702 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2703 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2704 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2705 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2708 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2709 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2710 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2711 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEventsToday.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous aujourd\'hui",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous aujourd\'hui",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEventsToday.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelCalendars\n'
20130515 'Lino.cal.PanelCalendars.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelCalendars",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Calendriers",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "babel_name" }, { "name": "description" }, { "type": "int", "name": "color" }, { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 35,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2714 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var babel_name_disp2715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var description2716 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var color2717 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var is_hidden_disp2718 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2716.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2714, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "babel_name", "header": "babel_name", "editable": false }, { "colIndex": 2, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2716, "dataIndex": "description" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Couleur", "dataIndex": "color", "width": Lino.chars2width(6), "editor": color2717 }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "is_hidden", "header": "Invisible", "editable": false } ];\n'
20130515 '    Lino.cal.PanelCalendars.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insertPanel = Ext.extend(Lino.cal.PanelCalendars.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Calendriers",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detailPanel = Ext.extend(Lino.cal.PanelCalendars.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Calendriers",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelCalendars.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelEvents\n'
20130515 'Lino.cal.PanelEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "start_dt" }, { "name": "end_dt" }, { "name": "summary" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "place" }, \'placeHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "url" }, { "type": "boolean", "name": "all_day" }, { "name": "reminder" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2720 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var start_dt2721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_dt2722 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var summary2723 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var description2724 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var user2725 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var place2726 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var calendar2727 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var url_disp2728 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var all_day2729 = new Ext.form.Checkbox({ "disabled": true });\n'
20130515 '    var reminder_disp2730 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2724.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2720, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": false, "dataIndex": "start_dt", "header": "D\\u00e9but", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": false, "dataIndex": "end_dt", "header": "Fin", "editable": false }, { "width": Lino.chars2width(5), "colIndex": 3, "sortable": false, "dataIndex": "summary", "header": "R\\u00e9sum\\u00e9", "editable": false }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2724, "dataIndex": "description" }, { "colIndex": 5, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2725 }, { "colIndex": 6, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2726 }, { "colIndex": 7, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2727 }, { "width": Lino.chars2width(31), "colIndex": 8, "sortable": false, "dataIndex": "url", "header": "Link URL", "editable": false }, { "header": "journ\\u00e9e enti\\u00e8re", "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "width": Lino.chars2width(11), "editable": false, "dataIndex": "all_day" }, { "width": Lino.chars2width(31), "colIndex": 10, "sortable": false, "dataIndex": "reminder", "header": "Rappel", "editable": false } ];\n'
20130515 '    Lino.cal.PanelEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.PanelEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.Households\n'
20130515 'Lino.households.Households.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/Households",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 32,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2732 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2734 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2735 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2736 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2737 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2738 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2739 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12740 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2741 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2743 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2744 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2746 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2747 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2749 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2750 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2751 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2752 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12754 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2756 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2757 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de m\\u00e9nage..." });\n'
20130515 '    var id2758 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2737.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2737.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2738.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2736.on('change',Lino.chooser_handler(city2737,'country'));\n"
20130515 "      region2738.on('change',Lino.chooser_handler(city2737,'region'));\n"
20130515 "      country2736.on('change',Lino.chooser_handler(region2738,'country'));\n"
20130515 '      Lino.households.Households.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2732 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2733 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2736, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2737 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2738 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2739 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12740 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2741 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2742 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2743 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2744 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22745 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2746 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2747 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2748 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2749 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2750 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2751, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2753 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12754 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22755 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2756 }, { "colIndex": 25, "sortable": true, "header": "Type de m\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2757 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2758, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.Households.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.Households.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.Households.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Persons\n'
20130515 'Lino.contacts.Persons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Persons",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "address_column" }, { "name": "email" }, { "name": "phone" }, { "name": "gsm" }, { "type": "int", "name": "id" }, { "name": "language" }, \'languageHidden\', { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "url" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 39,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2760 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_column_disp2761 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2762 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2763 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2764 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2765 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var language2766 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var created2767 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2768 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2769 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2770 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2771 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2772 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2773 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12774 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2776 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2777 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2778 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22779 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var url2780 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2781 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2782 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2783 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12785 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22786 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2787 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2788 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2789 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2790 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2791 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2770.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2770.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2771.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2769.on('change',Lino.chooser_handler(city2770,'country'));\n"
20130515 "      region2771.on('change',Lino.chooser_handler(city2770,'region'));\n"
20130515 "      country2769.on('change',Lino.chooser_handler(region2771,'country'));\n"
20130515 '      Lino.contacts.Persons.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "colIndex": 2, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2762 }, { "colIndex": 3, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2763 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2764 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2765, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2766 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2769, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2770 }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2771 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2772 }, { "colIndex": 13, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2773 }, { "colIndex": 14, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12774 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2775 }, { "colIndex": 16, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2776 }, { "colIndex": 17, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2777 }, { "colIndex": 18, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2778 }, { "colIndex": 19, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22779 }, { "colIndex": 20, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2780 }, { "colIndex": 21, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2781 }, { "colIndex": 22, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2782, "dataIndex": "remarks" }, { "colIndex": 23, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 24, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2784 }, { "colIndex": 25, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12785 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22786 }, { "colIndex": 27, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2787 }, { "colIndex": 28, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2788 }, { "colIndex": 29, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2789 }, { "colIndex": 30, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2790 }, { "colIndex": 31, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2791 } ];\n'
20130515 '    Lino.contacts.Persons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insertPanel = Ext.extend(Lino.contacts.Persons.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Personnes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Persons.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detailPanel = Ext.extend(Lino.contacts.Persons.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Personnes",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Persons.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Persons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.contacts.Persons.ParamsPanel({});\n'
20130515 '  return new Lino.contacts.Persons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.Clients\n'
20130515 'Lino.pcsw.Clients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/Clients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "client_state" }, \'client_stateHidden\', { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2793 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var client_state2794 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var national_id2795 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2797 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2798 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2800 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2801 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12802 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2804 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state2794 }, { "colIndex": 2, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2795 }, { "colIndex": 3, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2796 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 5, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 6, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2799 }, { "colIndex": 7, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2800 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2801, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 9, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12802 }, { "colIndex": 10, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2803 }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2804 } ];\n'
20130515 '    Lino.pcsw.Clients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.Clients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.Clients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.Clients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.IntegClients\n'
20130515 'Lino.pcsw.IntegClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/IntegClients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2806 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var applies_from2807 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var applies_until2808 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var national_id2809 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2810 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2811 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2812 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2814 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2815 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2817 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2818 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat d\\u00e9bute", "dataIndex": "applies_from", "width": Lino.chars2width(9) }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat se termine", "dataIndex": "applies_until", "width": Lino.chars2width(9) }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2809 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2810 }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 6, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 7, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2813 }, { "colIndex": 8, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2814 }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2815, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12816 }, { "colIndex": 11, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2817 }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2818 } ];\n'
20130515 '    Lino.pcsw.IntegClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.IntegClients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/IntegClients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.IntegClients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.IntegClients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.IntegClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.IntegClients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.IntegClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.OverlappingContracts\n'
20130515 'Lino.pcsw.OverlappingContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/OverlappingContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contrats chevauchants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2820 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2821 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2822 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2823 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2825 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2826 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2827 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12828 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2829 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2830 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2831 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2832 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22833 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2834 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email2835 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url2836 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2839 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2840 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2841 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2842 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12843 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22844 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2845 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2846 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2847 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2848 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2849 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2824.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2824.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2825.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2823.on('change',Lino.chooser_handler(city2824,'country'));\n"
20130515 "      region2825.on('change',Lino.chooser_handler(city2824,'region'));\n"
20130515 "      country2823.on('change',Lino.chooser_handler(region2825,'country'));\n"
20130515 '      Lino.pcsw.OverlappingContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2820, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 3, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2823, "dataIndex": "country" }, { "colIndex": 4, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2824 }, { "colIndex": 5, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2825 }, { "colIndex": 6, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2826 }, { "colIndex": 7, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2827 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12828 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2829 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2830 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2831 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2832 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22833 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2834 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2835 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2836 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2837 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2838 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2839 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2840, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2842 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12843 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22844 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2845 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2846 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2847 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2848 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2849 } ];\n'
20130515 '    Lino.pcsw.OverlappingContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.OverlappingContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.OverlappingContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.Contracts\n'
20130515 'Lino.isip.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2851 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2852 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2853 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2854 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2855 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2856 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2857 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2858 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2859 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2860 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12861 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22862 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2863 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2864 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2865 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2866 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2867 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2868 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2869 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2870 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2871 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2872 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2873 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2874 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2875 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2859.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2870.refresh();\n'
20130515 '      goals2871.refresh();\n'
20130515 '      duties_asd2872.refresh();\n'
20130515 '      duties_dsbe2873.refresh();\n'
20130515 '      duties_company2874.refresh();\n'
20130515 '      duties_person2875.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2858.on('change',Lino.chooser_handler(contact_person2859,'company'));\n"
20130515 '      Lino.isip.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2851, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2852, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2853, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2854, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2855 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2856 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2858, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2859, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2860 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12861, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22862, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2863 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2864 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2865 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2866 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2867 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2868 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2869 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2870, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2871, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2872, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2873, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2874, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2875, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.MyContracts\n'
20130515 'Lino.isip.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2877 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2878 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2879 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2880 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2883 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2884 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2885 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2886 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12887 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22888 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2889 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2890 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2891 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2893 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2895 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2896 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2897 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2898 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2899 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2900 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2901 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2885.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2896.refresh();\n'
20130515 '      goals2897.refresh();\n'
20130515 '      duties_asd2898.refresh();\n'
20130515 '      duties_dsbe2899.refresh();\n'
20130515 '      duties_company2900.refresh();\n'
20130515 '      duties_person2901.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2884.on('change',Lino.chooser_handler(contact_person2885,'company'));\n"
20130515 '      Lino.isip.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2877, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2878, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2879, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2880, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2881 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2882 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2884, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2885, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2886 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12887, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22888, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2889 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2890 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2891 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2892 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2893 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2894 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2895 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2896, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2897, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2898, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2899, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2900, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2901, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobProviders\n'
20130515 'Lino.jobs.JobProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Employants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 72,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2903 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2904 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2906 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2907 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2908 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2909 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2910 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12911 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2912 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2913 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2914 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2915 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22916 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2917 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2918 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2919 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2920 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2922 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2923 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12925 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22926 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2927 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2928 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2931 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2908.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2908.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2909.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2907.on('change',Lino.chooser_handler(city2908,'country'));\n"
20130515 "      region2909.on('change',Lino.chooser_handler(city2908,'region'));\n"
20130515 "      country2907.on('change',Lino.chooser_handler(region2909,'country'));\n"
20130515 '      Lino.jobs.JobProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2903 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2904 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2907, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2908 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2909 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2910 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12911 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2912 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2913 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2914 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2915 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22916 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2917 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2918 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2919 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2920 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2921 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2922, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2924 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12925 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22926 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2927 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2928 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2929 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2930 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2931, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Employants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detailPanel = Ext.extend(Lino.jobs.JobProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Employants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Contracts\n'
20130515 'Lino.jobs.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2933 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job2934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from2935 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2936 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user2937 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2938 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time2939 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2940 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2941 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2942 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12943 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client2945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language2946 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2948 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2950 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2951 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2952 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration2953 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2956 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2957 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2958 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2959 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2960 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2941.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2959.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2940.on('change',Lino.chooser_handler(contact_person2941,'company'));\n"
20130515 '      Lino.jobs.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2933, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2934, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2935, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2936, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2937 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2938 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2940, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2941, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2942 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12943, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22944, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2945, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2946 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2947 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2948 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2949 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2950 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2951 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2952 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2953 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2954 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2955 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2956 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2957 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2958 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2959, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2960, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.MyContracts\n'
20130515 'Lino.jobs.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from2962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2963 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var id2965 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user2966 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var build_time2967 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2968 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2969 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2970 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12971 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22972 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2973 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until2974 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided2975 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2976 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2977 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2978 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2979 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2980 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type2981 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var duration2982 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2983 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2985 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2986 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2987 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2988 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2989 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2969.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2988.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2968.on('change',Lino.chooser_handler(contact_person2969,'company'));\n"
20130515 '      Lino.jobs.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2962, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2963, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2964, "dataIndex": "job" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2965, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2966 }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2968, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2969, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2970 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12971, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22972, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2973 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2974, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2975 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2976 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2977 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2978 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2979 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2980 }, { "colIndex": 19, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2981 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2982 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2983 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2984 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2985 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2986 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2987 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2988, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2989, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Offers\n'
20130515 'Lino.jobs.Offers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Offers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres d\'emploi",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "type": "date", "name": "selection_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "selection_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 66,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2991 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2992 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var name2994 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var provider2995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var selection_from2996 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var selection_until2997 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_date2998 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark2999 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2993.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2992.on('change',Lino.chooser_handler(function2993,'sector'));\n"
20130515 '      Lino.jobs.Offers.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2991, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2992 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2993 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2994 }, { "colIndex": 4, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider2995, "dataIndex": "provider" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de s\\u00e9lection", "editor": selection_from2996, "width": Lino.chars2width(9), "dataIndex": "selection_from" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin de s\\u00e9lection", "editor": selection_until2997, "width": Lino.chars2width(9), "dataIndex": "selection_until" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2998, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2999, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Offers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insertPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres d\'emploi",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Offers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detailPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres d\'emploi",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Offers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Jobs\n'
20130515 'Lino.jobs.Jobs.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Jobs",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3001 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3002 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3003 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3004 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type3005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type3006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3007 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3008 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3009 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3010 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3004.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3003.on('change',Lino.chooser_handler(function3004,'sector'));\n"
20130515 '      Lino.jobs.Jobs.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3001 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3002, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3003 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3004 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3005 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3006 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3007 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3008 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3009, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3010, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.Jobs.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Jobs.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Jobs.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsSearch\n'
20130515 'Lino.jobs.ContractsSearch.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsSearch",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Recherche contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "client" }, \'clientHidden\', { "name": "client__city" }, \'client__cityHidden\', { "name": "client__national_id" }, { "name": "client__gender" }, \'client__genderHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 49,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3012 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3013 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3014 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var job3015 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var client3016 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var client__city3017 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var client__national_id3018 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var client__gender3019 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(1), "maxLength": 1 });\n'
20130515 '    var user3020 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3021 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3022 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3023 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3024 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3025 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13026 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23027 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3028 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3029 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3030 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3031 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3032 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3033 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3034 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3035 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3036 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3037 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3038 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3039 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3040 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3041 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3042 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3024.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3041.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3023.on('change',Lino.chooser_handler(contact_person3024,'company'));\n"
20130515 '      Lino.jobs.ContractsSearch.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3012, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3013, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3014, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3015, "dataIndex": "job" }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3016, "dataIndex": "client" }, { "filter": { "type": "string" }, "width": Lino.chars2width(21), "colIndex": 5, "sortable": true, "dataIndex": "client__city", "header": "Place", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "client__national_id", "header": "NISS", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(5), "colIndex": 7, "sortable": true, "dataIndex": "client__gender", "header": "Sexe", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3020 }, { "colIndex": 9, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3021 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3023, "dataIndex": "company" }, { "colIndex": 12, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3024, "dataIndex": "contact_person" }, { "colIndex": 13, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3025 }, { "colIndex": 14, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13026, "dataIndex": "signer1" }, { "colIndex": 15, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23027, "dataIndex": "signer2" }, { "colIndex": 16, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3028 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3029 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3030 }, { "colIndex": 19, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3031 }, { "colIndex": 20, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3032 }, { "colIndex": 21, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3033 }, { "colIndex": 22, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3034 }, { "colIndex": 23, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3035 }, { "colIndex": 24, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3036 }, { "colIndex": 25, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3037 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3038 }), { "colIndex": 27, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3039 }, { "colIndex": 28, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3040 }, { "colIndex": 29, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3041, "dataIndex": "responsibilities" }, { "colIndex": 30, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3042, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsSearch.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Recherche contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Recherche contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsSearch.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsSearch.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseProviders\n'
20130515 'Lino.courses.CourseProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisateurs de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 77,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3044 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3045 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3046 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3047 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3048 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3049 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3050 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3051 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13052 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3053 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3054 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3055 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3056 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23057 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3058 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3059 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3060 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3061 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3062 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3063 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3064 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23067 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3068 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id3069 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type3070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type3071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id3072 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3049.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3049.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3050.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3048.on('change',Lino.chooser_handler(city3049,'country'));\n"
20130515 "      region3050.on('change',Lino.chooser_handler(city3049,'region'));\n"
20130515 "      country3048.on('change',Lino.chooser_handler(region3050,'country'));\n"
20130515 '      Lino.courses.CourseProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3044 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3045 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3048, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3049 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3050 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3051 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13052 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3053 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3054 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3055 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3056 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23057 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3058 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3059 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3060 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3061 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3062 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3063, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3065 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13066 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23067 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3068 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id3069 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3070 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type3071 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3072, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisateurs de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detailPanel = Ext.extend(Lino.courses.CourseProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisateurs de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffers\n'
20130515 'Lino.courses.CourseOffers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3075 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content3076 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var provider3077 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3078 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3078.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3074, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3075 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3076 }, { "colIndex": 3, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3077, "dataIndex": "provider" }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3078, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.PendingCourseRequests\n'
20130515 'Lino.courses.PendingCourseRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/PendingCourseRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demandes de cours ouvertes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "person" }, \'personHidden\', { "type": "int", "name": "age" }, { "name": "address" }, { "name": "person__gsm" }, { "name": "person__phone" }, { "name": "person__coaches" }, { "name": "content" }, \'contentHidden\', { "type": "boolean", "name": "urgent" }, { "name": "remark" }, { "type": "int", "name": "a16" }, { "type": "int", "name": "a25" }, { "type": "int", "name": "a31" }, { "type": "int", "name": "a41" }, { "type": "int", "name": "a51" }, { "type": "int", "name": "a61" }, { "type": "int", "name": "ax" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 20,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 22,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted3080 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp3081 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person3082 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var age3083 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var address_disp3084 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person__gsm3085 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__phone3086 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__coaches_disp3087 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content3088 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var urgent3089 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var remark3090 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var a163091 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a253092 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a313093 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a413094 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a513095 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a613096 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var ax3097 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3080 }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3082, "dataIndex": "person" }, new Lino.NullNumberColumn({ "header": "\\u00e2ge", "colIndex": 3, "sortable": false, "dataIndex": "age", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "person__gsm", "header": "GSM", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "person__phone", "header": "T\\u00e9l\\u00e9phone", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 7, "sortable": false, "dataIndex": "person__coaches", "header": "Accompagnants", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3088 }, { "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 10, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3090, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "header": "16-24", "colIndex": 11, "sortable": false, "dataIndex": "a16", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "25-30", "colIndex": 12, "sortable": false, "dataIndex": "a25", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "31-40", "colIndex": 13, "sortable": false, "dataIndex": "a31", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "41-50", "colIndex": 14, "sortable": false, "dataIndex": "a41", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "51-60", "colIndex": 15, "sortable": false, "dataIndex": "a51", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": ">61", "colIndex": 16, "sortable": false, "dataIndex": "a61", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "age inconnu", "colIndex": 17, "sortable": false, "dataIndex": "ax", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.courses.PendingCourseRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demandes de cours ouvertes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demandes de cours ouvertes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.courses.PendingCourseRequests.ParamsPanel({});\n'
20130515 '  return new Lino.courses.PendingCourseRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonRequests\n'
20130515 'Lino.cbss.IdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 25,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3099 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3100 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3101 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3102 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3103 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3104 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3105 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3106 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3107 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3108 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3109 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3110 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3111 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3112 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3113 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3114 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3115 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3117 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3118 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3099, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3100 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3101, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3110 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3111 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3112 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3113 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3114 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3115 }, { "colIndex": 17, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3116 }, { "colIndex": 18, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3117 }, new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3118 }) ];\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequests\n'
20130515 'Lino.cbss.ManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3120 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3121 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3122 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3123 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3124 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3125 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3126 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3127 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3128 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3129 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3130 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3131 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3132 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3133 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3137 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3138 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3139 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3140 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3141 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3142 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3138.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3137.on('change',Lino.chooser_handler(purpose3138,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3120, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3121 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3122, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3131 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3132 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3133 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3134 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3135 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3136 }, { "colIndex": 17, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 18, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3138 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3139, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 20, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3140, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 21, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3141 }, { "colIndex": 22, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3142 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3144 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3145 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3146 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3147 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3148 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3149 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3150 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3151 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3152 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3153 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3144, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3145 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3146, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3147 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3148 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class sessions.SessionTable\n'
20130515 'Lino.sessions.SessionTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/sessions/SessionTable",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "sessions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "session_key" }, { "name": "session_data" }, { "name": "expire_date" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 4,\n'
20130515 '  ls_id_property : "session_key",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var session_key3155 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 40 });\n'
20130515 '    var session_data3156 = new Ext.form.TextArea({ "selectOnFocus": true, "allowBlank": false, "growMax": 2000 });\n'
20130515 '    var expire_date3157 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "cl\\u00e9 de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "session_key", "editor": session_key3155 }, { "colIndex": 1, "sortable": false, "header": "donn\\u00e9es de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": session_data3156, "dataIndex": "session_data" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "expire_date", "header": "date d\'expiration", "editable": true, "editor": expire_date3157 } ];\n'
20130515 '    Lino.sessions.SessionTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.sessions.SessionTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.sessions.SessionTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class ui.MyTextFieldTemplates\n'
20130515 'Lino.ui.MyTextFieldTemplates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/ui/MyTextFieldTemplates",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Text Field Templates",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "name" }, { "name": "description" }, { "name": "team" }, \'teamHidden\', { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 1,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3159 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var name3160 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var description3161 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var team3162 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/MyTextFieldTemplates/team", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Team..." });\n'
20130515 '    var text3163 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Texte mod\\u00e8le" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text3163.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3159, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3160 }, { "colIndex": 2, "sortable": false, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3161, "dataIndex": "description" }, { "colIndex": 3, "sortable": true, "header": "Team", "editable": true, "tooltip": "If not empty, then this template is reserved to members of this team.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "team", "editor": team3162 }, { "colIndex": 4, "sortable": false, "header": "text", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": text3163, "dataIndex": "text" } ];\n'
20130515 '    Lino.ui.MyTextFieldTemplates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insertPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Text Field Templates",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detailPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Text Field Templates",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.ui.MyTextFieldTemplates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesGiven\n'
20130515 'Lino.users.AuthoritiesGiven.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesGiven",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations accord\\u00e9es",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "authorized" }, \'authorizedHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var authorized68 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesGiven/authorized", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      authorized68.setContextValue('mk',bp['mk']);\n"
20130515 "      authorized68.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Utilisateur", "editable": true, "tooltip": "The user who gets authority to act in your name.", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "authorized", "editor": authorized68 } ];\n'
20130515 '    Lino.users.AuthoritiesGiven.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesGiven.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesGiven.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesTaken\n'
20130515 'Lino.users.AuthoritiesTaken.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesTaken",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3165 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesTaken/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3165 } ];\n'
20130515 '    Lino.users.AuthoritiesTaken.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesTaken.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesTaken.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCity\n'
20130515 'Lino.countries.CitiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Subdivisions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name244 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr245 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl246 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code248 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id249 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/country", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var inscode251 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type247.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country250.on('change',Lino.chooser_handler(type247,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name244 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr245 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl246 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type247 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code248 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id249, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country250, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode251 } ];\n'
20130515 '    Lino.countries.CitiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Subdivisions",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Subdivisions",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCountry\n'
20130515 'Lino.countries.CitiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Places",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "parent" }, \'parentHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name217 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr218 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type220 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code221 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id222 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var parent223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/parent", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var inscode224 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      type220.setContextValue('mk',bp['mk']);\n"
20130515 "      type220.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name217 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr218 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl219 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type220 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code221 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id222, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Part of", "editable": true, "tooltip": "The superordinate geographic place of which this place is a part.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "parent", "editor": parent223 }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode224 } ];\n'
20130515 '    Lino.countries.CitiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Places",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Places",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.ChoicesByType\n'
20130515 'Lino.properties.ChoicesByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/ChoicesByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3167 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text3168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr3169 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl3170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3171 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value3167 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text3168 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr3169 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl3170 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3171, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.properties.ChoicesByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.ChoicesByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.ChoicesByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCity\n'
20130515 'Lino.contacts.PartnersByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var street272 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no273 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box274 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr2275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name276 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id278 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created279 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified280 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var region282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code283 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr1284 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix285 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email286 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url287 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone288 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax290 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks291 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete292 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity293 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account1294 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account2295 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region282.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country281.on('change',Lino.chooser_handler(region282,'country'));\n"
20130515 '      Lino.contacts.PartnersByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street272 }, { "colIndex": 1, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no273 }, { "colIndex": 2, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box274 }, { "colIndex": 3, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr2275 }, { "colIndex": 4, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name276 }, { "colIndex": 5, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language277 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id278, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country281, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region282 }, { "colIndex": 11, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code283 }, { "colIndex": 12, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr1284 }, { "colIndex": 13, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix285 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email286 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url287 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone288 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm289 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax290 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks291, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity293 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account1294 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account2295 } ];\n'
20130515 '    Lino.contacts.PartnersByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCountry\n'
20130515 'Lino.contacts.PartnersByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3173 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3174 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3175 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3176 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language3177 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3178 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3179 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3180 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3181 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3182 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13183 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3184 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_box3185 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23186 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3187 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3188 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3190 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3191 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3192 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3193 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3194 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23196 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city3173.setContextValue('mk',bp['mk']);\n"
20130515 "      city3173.setContextValue('mt',bp['mt']);\n"
20130515 "      city3173.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      var bp = this.get_base_params();\n'
20130515 "      region3181.setContextValue('mk',bp['mk']);\n"
20130515 "      region3181.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      region3181.on('change',Lino.chooser_handler(city3173,'region'));\n"
20130515 '      Lino.contacts.PartnersByCountry.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3173 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3174 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3175 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3176 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3177 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3178, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3181 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3182 }, { "colIndex": 10, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13183 }, { "colIndex": 11, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3184 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3185 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23186 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3187 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3188 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3189 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3190 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3191 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3192, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3194 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13195 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23196 } ];\n'
20130515 '    Lino.contacts.PartnersByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByCompany\n'
20130515 'Lino.contacts.RolesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes de contact",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var type616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id617 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person615, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type616 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id617, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByPerson\n'
20130515 'Lino.contacts.RolesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contact pour",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, \'companyHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/company", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var type1066 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id1067 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1065, "dataIndex": "company" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1066 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1067, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.MyPostings\n'
20130515 'Lino.postings.MyPostings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/MyPostings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3198 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner3199 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state3200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3201 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3202 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3203 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3204 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3205 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var owner_disp3206 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3204.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3203.on('change',Lino.chooser_handler(owner_id3204,'owner_type'));\n"
20130515 '      Lino.postings.MyPostings.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3198, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3199, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3200 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3202, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3203 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3204 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3205, "dataIndex": "project" }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.MyPostings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.MyPostings.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.MyPostings.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.MyPostings.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/MyPostings",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByPartner\n'
20130515 'Lino.postings.PostingsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3208 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3209 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var state3210 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3211 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3212 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3213 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3214 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user3215 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project3216 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3214.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3213.on('change',Lino.chooser_handler(owner_id3214,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByPartner.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3208, "width": Lino.chars2width(9), "dataIndex": "date" }, { "width": Lino.chars2width(11), "colIndex": 1, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3210 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3212, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3213 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3214 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3215 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3216, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByPartner.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByPartner",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByProject\n'
20130515 'Lino.postings.PostingsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1692 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner1693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state1694 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp1695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1696 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user1699 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1700 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1698.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1697.on('change',Lino.chooser_handler(owner_id1698,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date1692, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner1693, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state1694 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1696, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1697 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1698 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1699 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByProject.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByProject",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientsByMail\n'
20130515 'Lino.outbox.RecipientsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/RecipientsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Recipients",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "address" }, { "name": "name" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 28,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner689 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/RecipientsByMail/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var address690 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var name691 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var type692 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.outbox.RecipientType });\n'
20130515 '    var id693 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner689, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "Addresse", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "address", "editor": address690 }, { "colIndex": 2, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "name", "editor": name691 }, { "colIndex": 3, "sortable": true, "header": "Recipient Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type692 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id693, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.outbox.RecipientsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MyOutbox\n'
20130515 'Lino.outbox.MyOutbox.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MyOutbox",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Mon courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3218 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox3219 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject3220 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3221 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3222 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3224 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date3225 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3226 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var body3227 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3219.refresh();\n'
20130515 "      owner_id3223.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body3227.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3222.on('change',Lino.chooser_handler(owner_id3223,'owner_type'));\n"
20130515 '      Lino.outbox.MyOutbox.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3220 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3221, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3222 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3223 }, { "colIndex": 6, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3224, "dataIndex": "project" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date3225 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3227, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MyOutbox.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mon courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mon courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MyOutbox.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByUser\n'
20130515 'Lino.outbox.MailsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "recipients" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3229 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3230 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox3231 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3231.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3230 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByProject\n'
20130515 'Lino.outbox.MailsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "subject" }, { "name": "recipients" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "body" }, { "name": "sent" }, { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1680 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var subject1681 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox1682 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var user1683 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id1684 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1685 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var body1687 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var sent1688 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var owner_disp1689 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox1682.refresh();\n'
20130515 "      owner_id1686.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body1687.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1685.on('change',Lino.chooser_handler(owner_id1686,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date1680 }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1681 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 3, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1683 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1684, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1685 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1686 }, { "colIndex": 7, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1687, "dataIndex": "body" }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.SentByPartner\n'
20130515 'Lino.outbox.SentByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/SentByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3233 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3234 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/SentByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3234 }, { "colIndex": 2, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3235 } ];\n'
20130515 '    Lino.outbox.SentByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.SentByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.AttachmentsByMail\n'
20130515 'Lino.outbox.AttachmentsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/AttachmentsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pi\\u00e8ces jointes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 29,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3237 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3238 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3239 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_id", "method": "GET" }) }) });\n'
20130515 '    var owner_disp3240 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3239.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3238.on('change',Lino.chooser_handler(owner_id3239,'owner_type'));\n"
20130515 '      Lino.outbox.AttachmentsByMail.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3237, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3238 }, { "colIndex": 2, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3239 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.AttachmentsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.AttachmentsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.AttachmentsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.SubscriptionsByUser\n'
20130515 'Lino.cal.SubscriptionsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/SubscriptionsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Abonnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "calendar" }, \'calendarHidden\', { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 37,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id79 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var calendar80 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/SubscriptionsByUser/calendar", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var is_hidden81 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id79, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Calendrier", "editable": true, "tooltip": "The calendar you want to subscribe to.\\nYou can subscribe to *non-private* calendars of *other* users.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar80 }, { "colIndex": 2, "sortable": false, "xtype": "checkcolumn", "header": "cach\\u00e9", "editable": true, "tooltip": "Activer cette case pour ne pas afficher ce calendrier en ouvrant le panneau.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_hidden" } ];\n'
20130515 '    Lino.cal.SubscriptionsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.SubscriptionsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.SubscriptionsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByProject\n'
20130515 'Lino.cal.EventsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "calendar" }, \'calendarHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1630 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1631 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var user1632 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1633 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1634 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var id1635 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1636 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1638 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1639 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time1640 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date1641 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time1642 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1643 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1644 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class1645 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1646 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1647 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent1648 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place1649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority1650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state1651 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to1652 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1653 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1637.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1643.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1636.on('change',Lino.chooser_handler(owner_id1637,'owner_type'));\n"
20130515 '      Lino.cal.EventsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1630, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1631 }, { "colIndex": 2, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1632 }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1633 }, { "colIndex": 4, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1634 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1635, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type1636 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id1637 }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date1641 }, { "colIndex": 12, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time1642 }, { "colIndex": 13, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description1643, "dataIndex": "description" }, { "colIndex": 14, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid1644 }, { "colIndex": 15, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class1645 }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence1646 }), new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 18, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 19, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place1649 }, { "colIndex": 20, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority1650 }, { "colIndex": 21, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state1651 }, { "colIndex": 22, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to1652 }, { "width": Lino.chars2width(11), "colIndex": 23, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByUser\n'
20130515 'Lino.cal.TasksByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date85 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary86 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp87 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id88 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type89 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id90 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created91 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified92 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project93 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time94 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description95 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid96 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar97 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class98 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence99 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type100 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date101 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time102 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent103 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state104 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp105 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id90.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description95.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type89.on('change',Lino.chooser_handler(owner_id90,'owner_type'));\n"
20130515 '      Lino.cal.TasksByUser.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date85, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary86 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id88, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type89 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id90 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project93, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time94 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description95, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid96 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar97 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class98 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence99 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date101, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time102 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent103 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state104 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasks\n'
20130515 'Lino.cal.MyTasks.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasks",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3242 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3243 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3244 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3245 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3246 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3248 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3249 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3251 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3252 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3253 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3254 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3255 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3256 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3257 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3258 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3259 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3260 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3261 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3262 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3247.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3252.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3246.on('change',Lino.chooser_handler(owner_id3247,'owner_type'));\n"
20130515 '      Lino.cal.MyTasks.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3242, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3243 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3245, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3246 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3247 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3250, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3251 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3252, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3253 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3254 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3255 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3256 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3258, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3259 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3260 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3261 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasks.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasks.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasksToDo\n'
20130515 'Lino.cal.MyTasksToDo.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasksToDo",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "To-do list",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3264 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3265 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3266 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3267 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3268 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3269 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3270 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3271 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3272 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3273 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3274 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3276 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3278 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3279 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3280 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3281 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3282 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3283 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3284 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3269.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3274.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3268.on('change',Lino.chooser_handler(owner_id3269,'owner_type'));\n"
20130515 '      Lino.cal.MyTasksToDo.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3264, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3265 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3267, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3268 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3269 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3272, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3273 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3274, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3275 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3276 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3277 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3278 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3280, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3281 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3282 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3283 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasksToDo.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau To-do list",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail To-do list",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByProject\n'
20130515 'Lino.cal.TasksByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1656 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1658 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1659 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1660 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1661 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1663 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_time1665 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1666 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1667 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class1669 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1670 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1671 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date1672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time1673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent1674 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state1675 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp1676 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1662.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1666.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1661.on('change',Lino.chooser_handler(owner_id1662,'owner_type'));\n"
20130515 '      Lino.cal.TasksByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1656, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1657 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1658 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1660, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1661 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1662 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1665 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description1666, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid1667 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1668 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class1669 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence1670 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date1672, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time1673 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent1674 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state1675 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByEvent\n'
20130515 'Lino.cal.GuestsByEvent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByEvent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner793 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role794 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp795 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event797 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id798 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time799 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner793, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role794 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark796 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event797 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id798, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state800 } ];\n'
20130515 '    Lino.cal.GuestsByEvent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByRole\n'
20130515 'Lino.cal.GuestsByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner3286 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role3287 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3288 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event3290 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id3291 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3292 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3293 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3286, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3287 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3289 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3290 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3291, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3293 } ];\n'
20130515 '    Lino.cal.GuestsByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByRole.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByPartner\n'
20130515 'Lino.cal.GuestsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "event" }, \'eventHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event3295 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var role3296 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3297 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3299 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3300 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3301 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3295 }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3296 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3298 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3299, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3301 } ];\n'
20130515 '    Lino.cal.GuestsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByPartner.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPresences\n'
20130515 'Lino.cal.MyPresences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPresences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes pr\\u00e9sences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3303 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3304 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3305 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3306 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3307 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3309 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3310 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3311 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3312 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3306 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3308 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3309, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3311 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3312 } ];\n'
20130515 '    Lino.cal.MyPresences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPresences.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPresences.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPendingInvitations\n'
20130515 'Lino.cal.MyPendingInvitations.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPendingInvitations",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes invitations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3314 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3315 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3316 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3317 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3318 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3319 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3320 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3321 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3322 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3317 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3319 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3320, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3322 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3323 } ];\n'
20130515 '    Lino.cal.MyPendingInvitations.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPendingInvitations.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPendingInvitations.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.MyUploads\n'
20130515 'Lino.uploads.MyUploads.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/MyUploads",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "owner" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "name": "type" }, \'typeHidden\', { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3325 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var description3326 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3327 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp3328 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var id3329 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3332 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3333 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3334 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var type3335 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var valid_until3336 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3331.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3330.on('change',Lino.chooser_handler(owner_id3331,'owner_type'));\n"
20130515 '      Lino.uploads.MyUploads.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3325 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3326 }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3327 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3329, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3330 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3331 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3335 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3336, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.MyUploads.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.MyUploads.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.MyUploads.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.HouseholdsByType\n'
20130515 'Lino.households.HouseholdsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/HouseholdsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 30,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 32,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3338 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3339 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3342 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3343 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3344 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3345 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13346 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3347 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3348 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3349 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3350 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23351 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3352 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3353 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3354 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3355 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3357 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3358 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3359 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13360 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23361 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3362 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3363 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3343.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3343.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3344.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3342.on('change',Lino.chooser_handler(city3343,'country'));\n"
20130515 "      region3344.on('change',Lino.chooser_handler(city3343,'region'));\n"
20130515 "      country3342.on('change',Lino.chooser_handler(region3344,'country'));\n"
20130515 '      Lino.households.HouseholdsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3338 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3339 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3342, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3343 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3344 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3345 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13346 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3347 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3348 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3349 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3350 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23351 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3352 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3353 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3354 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3355 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3356 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3357, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3359 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13360 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23361 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3362 }, new Lino.NullNumberColumn({ "colIndex": 25, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3363, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.HouseholdsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.HouseholdsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByHousehold\n'
20130515 'Lino.households.MembersByHousehold.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByHousehold",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var role985 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date986 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date987 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id988 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person984, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role985 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date986, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date987, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id988, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByHousehold.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByHousehold.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByHousehold.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByPerson\n'
20130515 'Lino.households.MembersByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membre de ",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "household" }, \'householdHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var household1070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var role1071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date1072 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1073 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id1074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household1070, "dataIndex": "household" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role1071 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date1072, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date1073, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1074, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByRole\n'
20130515 'Lino.households.MembersByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "household" }, \'householdHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person3365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var household3366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var start_date3367 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date3368 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id3369 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person3365, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household3366, "dataIndex": "household" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date3367, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date3368, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3369, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountsByGroup\n'
20130515 'Lino.accounts.AccountsByGroup.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/accounts/AccountsByGroup",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comptes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "ref" }, { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "default_amount" }, { "name": "periods" }, { "type": "boolean", "name": "required_for_household" }, { "type": "boolean", "name": "required_for_person" }, { "name": "group" }, \'groupHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 43,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var ref3371 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    var name3372 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr3373 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl3374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var default_amount3375 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var periods3376 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": true, "value": 1, "allowDecimals": false });\n'
20130515 '    var required_for_household3377 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var required_for_person3378 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3379 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/accounts/AccountsByGroup/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de comptes..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "ref", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "ref", "editor": ref3371 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3372 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr3373 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl3374 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "header": "Default amount", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "default_amount", "editor": default_amount3375 }), new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0/i", "editable": true, "tooltip": "For how many months the entered amount counts. \\nFor example 1 means a monthly amount, 12 a yearly amount.", "filter": { "type": "numeric" }, "header": "P\\u00e9riodes", "dataIndex": "periods", "width": Lino.chars2width(6), "editor": periods3376 }), { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour m\\u00e9nages", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_household" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour personnes", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_person" }, { "colIndex": 8, "sortable": true, "header": "Groupe de comptes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3379 } ];\n'
20130515 '    Lino.accounts.AccountsByGroup.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountsByGroup.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountsByGroup.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.accounts.AccountsByGroup.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.accounts.AccountsByGroup.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.MyNotes\n'
20130515 'Lino.notes.MyNotes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/MyNotes",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "project" }, \'projectHidden\', { "name": "body" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3381 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var project3385 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var body3386 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var id3387 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3388 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3389 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3390 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3391 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3392 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3393 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3386.refresh();\n'
20130515 "      owner_id3389.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3388.on('change',Lino.chooser_handler(owner_id3389,'owner_type'));\n"
20130515 '      Lino.notes.MyNotes.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3381, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3382 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3383 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3384 }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3385, "dataIndex": "project" }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3386, "dataIndex": "body" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3387, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3388 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3389 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3391 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3392, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.MyNotes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.MyNotes.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.MyNotes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.NotesByProject\n'
20130515 'Lino.notes.NotesByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/NotesByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3395 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3398 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body3399 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user3400 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3401 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3402 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3403 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3404 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3405 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3406 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3407 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3399.refresh();\n'
20130515 "      owner_id3403.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3402.on('change',Lino.chooser_handler(owner_id3403,'owner_type'));\n"
20130515 '      Lino.notes.NotesByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3395, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3396 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3397 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3398 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3399, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3400 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3401, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3402 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3403 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3405 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3406, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.NotesByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.NotesByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.NotesByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.LanguageKnowledgesByPerson\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/LanguageKnowledgesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var language1321 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/LanguageKnowledgesByPerson/language", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var native1322 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken1323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written1324 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level1325 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1321, "dataIndex": "language" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken1323 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written1324 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level1325 } ];\n'
20130515 '    Lino.cv.LanguageKnowledgesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.LanguageKnowledgesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.KnowledgesByLanguage\n'
20130515 'Lino.cv.KnowledgesByLanguage.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/KnowledgesByLanguage",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person196 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/KnowledgesByLanguage/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var native197 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken198 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written199 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person196, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken198 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written199 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level200 } ];\n'
20130515 '    Lino.cv.KnowledgesByLanguage.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.KnowledgesByLanguage.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.KnowledgesByLanguage.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.PropsByPerson\n'
20130515 'Lino.cv.PropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/PropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3411 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3412 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3413 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3409.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3410.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3413.on('change',Lino.chooser_handler(property3409,'group'));\n"
20130515 "      property3409.on('change',Lino.chooser_handler(value3410,'property'));\n"
20130515 '      Lino.cv.PropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3409 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3410 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3411 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3412, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3413 } ];\n'
20130515 '    Lino.cv.PropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.PropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.PropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ConfiguredPropsByPerson\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ConfiguredPropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3415 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3418 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3419 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3415.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3416.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3419.on('change',Lino.chooser_handler(property3415,'group'));\n"
20130515 "      property3415.on('change',Lino.chooser_handler(value3416,'property'));\n"
20130515 '      Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3415 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3416 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3417 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3418, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3419 } ];\n'
20130515 '    Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ConfiguredPropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SkillsByPerson\n'
20130515 'Lino.cv.SkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1367 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1368 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1365.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1366.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1369.on('change',Lino.chooser_handler(property1365,'group'));\n"
20130515 "      property1365.on('change',Lino.chooser_handler(value1366,'property'));\n"
20130515 '      Lino.cv.SkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1365 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1366 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1367 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1368, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1369 } ];\n'
20130515 '    Lino.cv.SkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SoftSkillsByPerson\n'
20130515 'Lino.cv.SoftSkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SoftSkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences sociales",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1372 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1373 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1375 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1376 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1372.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1373.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1376.on('change',Lino.chooser_handler(property1372,'group'));\n"
20130515 "      property1372.on('change',Lino.chooser_handler(value1373,'property'));\n"
20130515 '      Lino.cv.SoftSkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1372 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1373 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1374 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1375, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1376 } ];\n'
20130515 '    Lino.cv.SoftSkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SoftSkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SoftSkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ObstaclesByPerson\n'
20130515 'Lino.cv.ObstaclesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ObstaclesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Obstacles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1385 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1386 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1382.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1383.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1386.on('change',Lino.chooser_handler(property1382,'group'));\n"
20130515 "      property1382.on('change',Lino.chooser_handler(value1383,'property'));\n"
20130515 '      Lino.cv.ObstaclesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1382 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1383 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1384 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1385, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1386 } ];\n'
20130515 '    Lino.cv.ObstaclesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ObstaclesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ObstaclesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ClientsByNationality\n'
20130515 'Lino.pcsw.ClientsByNationality.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ClientsByNationality",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "country" }, \'countryHidden\', { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "broker" }, \'brokerHidden\', { "name": "faculty" }, \'facultyHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3421 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3422 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3423 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3424 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23425 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name3426 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var country3427 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var language3428 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3429 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3430 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3431 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3432 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3433 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13434 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3435 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3436 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3437 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3438 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3439 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3440 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3441 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3442 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3443 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13444 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23445 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3446 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3447 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3448 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3449 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3450 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23451 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3452 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3453 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3454 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3455 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3456 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3457 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3458 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3459 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3460 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3461 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var card_number3462 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3463 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3464 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3465 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3466 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3467 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3468 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3469 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3470 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3471 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3472 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3473 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3474 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3475 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3476 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3477 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3478 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3479 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3480 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3481 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3482 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3483 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3484 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3485 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3486 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3487 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3488 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    var broker3489 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var faculty3490 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/faculty", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3421.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3421.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3432.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3427.on('change',Lino.chooser_handler(city3421,'country'));\n"
20130515 "      region3432.on('change',Lino.chooser_handler(city3421,'region'));\n"
20130515 "      country3427.on('change',Lino.chooser_handler(region3432,'country'));\n"
20130515 '      Lino.pcsw.ClientsByNationality.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3421 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3422 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3423 }, { "colIndex": 3, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3424 }, { "colIndex": 4, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23425 }, { "colIndex": 5, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3426 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3427, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3428 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3429, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3432 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3433 }, { "colIndex": 13, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13434 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3435 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3436 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3437 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3438 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3439 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3440 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3441, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3443 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13444 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23445 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3446 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3447 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3448 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3449 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3450 }, { "colIndex": 30, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23451, "dataIndex": "remarks2" }, { "colIndex": 31, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3452 }, { "colIndex": 32, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 33, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 34, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3455 }, { "colIndex": 35, "sortable": true, "header": "Lieu de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3456 }, { "colIndex": 36, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3457, "dataIndex": "birth_country" }, { "colIndex": 37, "sortable": true, "header": "Etat civil'
20130515 '", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3458 }, { "colIndex": 38, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3459 }, { "colIndex": 39, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3460, "dataIndex": "health_insurance" }, { "colIndex": 40, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3461, "dataIndex": "pharmacy" }, { "colIndex": 41, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3462 }, { "colIndex": 42, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3463, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 43, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3464, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 44, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3465 }, { "colIndex": 45, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3466 }, { "colIndex": 46, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3467 }, { "colIndex": 47, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3468 }, { "colIndex": 48, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3469, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 49, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3470, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 50, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 51, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3473, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 53, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3474 }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 56, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 57, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 60, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3481, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 61, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3482 }, { "colIndex": 62, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3483, "dataIndex": "obstacles" }, { "colIndex": 63, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3484, "dataIndex": "skills" }, { "colIndex": 64, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3485 }, { "colIndex": 65, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3486 }, { "colIndex": 66, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3487 }, { "colIndex": 67, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3488 }, { "colIndex": 68, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3489 }, { "colIndex": 69, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3490 } ];\n'
20130515 '    Lino.pcsw.ClientsByNationality.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.ClientsByNationality.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ExclusionsByPerson\n'
20130515 'Lino.pcsw.ExclusionsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ExclusionsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "exclusions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "excluded_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "excluded_until", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 46,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var excluded_from1233 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var excluded_until1234 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type1235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ExclusionsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Exclusion Type..." });\n'
20130515 '    var remark1236 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "de", "editor": excluded_from1233, "width": Lino.chars2width(9), "dataIndex": "excluded_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": excluded_until1234, "width": Lino.chars2width(9), "dataIndex": "excluded_until" }, { "colIndex": 2, "sortable": true, "header": "Raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1235 }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1236 } ];\n'
20130515 '    Lino.pcsw.ExclusionsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ExclusionsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ExclusionsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ContactsByClient\n'
20130515 'Lino.pcsw.ContactsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ContactsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Contacts",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 54,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1279 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var company1280 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1283 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1284 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      company1280.setContextValue('type',record ? record.data['typeHidden'] : undefined);\n"
20130515 "      contact_person1281.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      type1279.on('change',Lino.chooser_handler(company1280,'type'));\n"
20130515 "      company1280.on('change',Lino.chooser_handler(contact_person1281,'company'));\n"
20130515 '      Lino.pcsw.ContactsByClient.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1279 }, { "colIndex": 1, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1280, "dataIndex": "company" }, { "colIndex": 2, "sortable": true, "header": "Personne de contact", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1281, "dataIndex": "contact_person" }, { "colIndex": 3, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1282 }, { "colIndex": 4, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1283, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1284, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.ContactsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ContactsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ContactsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByClient\n'
20130515 'Lino.pcsw.CoachingsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "type": "boolean", "name": "primary" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1287 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1288 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1289 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var primary1290 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var type1291 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var id1292 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date1287, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date1288, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Accompagnant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "user", "editor": user1289 }, { "colIndex": 3, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, { "colIndex": 4, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "type", "editor": type1291 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1292, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByUser\n'
20130515 'Lino.pcsw.CoachingsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "type" }, \'typeHidden\', { "type": "boolean", "name": "primary" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date157 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date158 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client159 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type160 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var primary161 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var id162 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date157, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date158, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client159, "dataIndex": "client" }, { "colIndex": 3, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type160 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id162, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByPerson\n'
20130515 'Lino.pcsw.NotesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "name": "company" }, \'companyHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1615 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type1616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type1617 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject1618 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body1619 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user1620 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var company1621 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var id1622 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time1625 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language1626 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp1627 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body1619.refresh();\n'
20130515 "      owner_id1624.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1623.on('change',Lino.chooser_handler(owner_id1624,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date1615, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type1616 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1617 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1618 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1619, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1620 }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1621, "dataIndex": "company" }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1622, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1623 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1624 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1626 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByCompany\n'
20130515 'Lino.pcsw.NotesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "project" }, \'projectHidden\', { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date622 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var project623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var event_type624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type625 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject626 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body627 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id629 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time632 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language633 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp634 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body627.refresh();\n'
20130515 "      owner_id631.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type630.on('change',Lino.chooser_handler(owner_id631,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByCompany.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date622, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project623, "dataIndex": "project" }, { "colIndex": 2, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type624 }, { "colIndex": 3, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type625 }, { "colIndex": 4, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject626 }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body627, "dataIndex": "body" }, { "colIndex": 6, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user628 }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id629, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type630 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id631 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language633 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPerson\n'
20130515 'Lino.isip.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from1402 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1403 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1404 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1405 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var id1406 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1407 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1408 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11411 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21412 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1413 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1414 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1415 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1417 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1418 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1419 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages1420 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals1421 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd1422 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1423 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company1424 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1425 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1409.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages1420.refresh();\n'
20130515 '      goals1421.refresh();\n'
20130515 '      duties_asd1422.refresh();\n'
20130515 '      duties_dsbe1423.refresh();\n'
20130515 '      duties_company1424.refresh();\n'
20130515 '      duties_person1425.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1408.on('change',Lino.chooser_handler(contact_person1409,'company'));\n"
20130515 '      Lino.isip.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1402, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1403, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1404 }, { "colIndex": 3, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1405 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1406, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1408, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1409, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1410 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11411, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21412, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1413 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1414 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1415 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1416 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1417 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1418 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1419 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages1420, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals1421, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd1422, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe1423, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company1424, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person1425, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPolicy\n'
20130515 'Lino.isip.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3492 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3493 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3494 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3495 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3496 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3497 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time3498 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3499 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3500 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13502 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23503 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3504 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3505 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3506 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3507 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3508 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3509 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3510 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3511 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3512 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3513 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3514 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3515 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3500.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3510.refresh();\n'
20130515 '      goals3511.refresh();\n'
20130515 '      duties_asd3512.refresh();\n'
20130515 '      duties_dsbe3513.refresh();\n'
20130515 '      duties_company3514.refresh();\n'
20130515 '      duties_person3515.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3499.on('change',Lino.chooser_handler(contact_person3500,'company'));\n"
20130515 '      Lino.isip.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3492, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3493, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3494, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3495, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3496 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3497 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3499, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3500, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3501 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13502, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23503, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3504 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3505 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3506 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3507 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3508 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3509 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3510, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3511, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3512, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3513, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3514, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3515, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByType\n'
20130515 'Lino.isip.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from3517 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3518 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3519 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3520 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3521 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3524 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13525 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3527 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until3528 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided3529 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3530 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3531 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3532 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3533 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3534 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3535 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3536 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3537 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3538 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3539 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3540 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3523.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3535.refresh();\n'
20130515 '      goals3536.refresh();\n'
20130515 '      duties_asd3537.refresh();\n'
20130515 '      duties_dsbe3538.refresh();\n'
20130515 '      duties_company3539.refresh();\n'
20130515 '      duties_person3540.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3522.on('change',Lino.chooser_handler(contact_person3523,'company'));\n"
20130515 '      Lino.isip.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3517, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3518, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3519 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3520, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3522, "dataIndex": "company" }, { "colIndex": 6, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3523, "dataIndex": "contact_person" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3524 }, { "colIndex": 8, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13525, "dataIndex": "signer1" }, { "colIndex": 9, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23526, "dataIndex": "signer2" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3527 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3528, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3529 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3530 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3531 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3532 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3533 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3534 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3535, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3536, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3537, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3538, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3539, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3540, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPerson\n'
20130515 'Lino.jobs.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job1506 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1507 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1508 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1509 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1510 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1511 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1512 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11516 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21517 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1518 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1519 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1520 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1521 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1524 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1525 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1527 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1528 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1529 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1531 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1532 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1514.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1531.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1513.on('change',Lino.chooser_handler(contact_person1514,'company'));\n"
20130515 '      Lino.jobs.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1506, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1507, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1508, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1509 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1510 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1511, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1513, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": contact_person1514, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "hidden": true, "editor": contact_role1515 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11516, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21517, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "hidden": true, "editor": language1518 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1519 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1520 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1521 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1522 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1523 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1524 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "hidden": true, "editor": duration1525 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "hidden": true, "editor": regime1526 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "hidden": true, "editor": schedule1527 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "hidden": true, "editor": hourly_rate1528 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1529 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "hidden": true, "editor": reference_person1530 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": responsibilities1531, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remark1532, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByProvider\n'
20130515 'Lino.jobs.ContractsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job1945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1946 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1948 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1950 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1951 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var contact_person1952 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1953 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1956 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1957 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1958 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1959 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1960 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1961 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1963 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1965 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1966 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1967 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1968 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1969 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1970 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      contact_person1952.setContextValue('mk',bp['mk']);\n"
20130515 "      contact_person1952.setContextValue('mt',bp['mt']);\n"
20130515 '      responsibilities1969.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1944, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1945, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1946, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1947, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1948 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1949 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1950, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1952, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1953 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11954, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21955, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1956 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1957 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1958 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1959 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1960 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1961 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1962 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1963 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1964 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1965 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1966 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1967 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1968 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1969, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1970, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPolicy\n'
20130515 'Lino.jobs.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3542 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3543 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3544 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3545 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3546 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3547 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3548 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3549 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3550 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3551 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13552 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23553 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3555 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3556 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3557 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3558 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3560 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3561 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3562 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3563 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3564 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3565 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3567 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3568 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3550.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3567.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3549.on('change',Lino.chooser_handler(contact_person3550,'company'));\n"
20130515 '      Lino.jobs.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3542, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3543, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3544, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3545, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3546 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3547 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3549, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3550, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3551 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13552, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23553, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3554, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3555 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3556 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3557 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3558 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3559 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3560 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3561 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3562 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3563 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3564 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3565 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3566 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3567, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3568, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByJob\n'
20130515 'Lino.jobs.ContractsByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1913 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var applies_from1914 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1915 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1916 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1917 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1918 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1919 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1920 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1921 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1922 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11923 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1925 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1926 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1927 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1928 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1931 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1932 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1933 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1935 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1936 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1937 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1938 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1939 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1921.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1938.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1920.on('change',Lino.chooser_handler(contact_person1921,'company'));\n"
20130515 '      Lino.jobs.ContractsByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1913, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1914, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1915, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1916 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1917 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1918, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1920, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1921, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1922 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11923, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21924, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1925 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1926 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1927 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1928 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1929 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1930 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1931 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1932 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1933 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1934 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1935 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1936 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1937 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1938, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1939, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByRegime\n'
20130515 'Lino.jobs.ContractsByRegime.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByRegime",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3571 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3572 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3573 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3574 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3575 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3576 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3577 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3578 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3582 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3583 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3584 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3585 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3588 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3589 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3590 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var schedule3591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3592 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3593 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3594 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3595 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3596 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3578.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3595.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3577.on('change',Lino.chooser_handler(contact_person3578,'company'));\n"
20130515 '      Lino.jobs.ContractsByRegime.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3570, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3571, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3572, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3573 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3574 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3575, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3577, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3578, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3579 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13580, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23581, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3582, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3583 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3584 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3585 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3586 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3587 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3588 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3589 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3590 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3591 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3592 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3593 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3594 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3595, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3596, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByRegime.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByRegime.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByRegime.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsBySchedule\n'
20130515 'Lino.jobs.ContractsBySchedule.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsBySchedule",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3599 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3600 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3603 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3604 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3605 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3606 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3607 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13608 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3611 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3612 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3613 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3617 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3618 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3619 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var hourly_rate3620 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3621 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3623 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3624 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3606.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3623.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3605.on('change',Lino.chooser_handler(contact_person3606,'company'));\n"
20130515 '      Lino.jobs.ContractsBySchedule.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3598, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3599, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3600, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3601 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3602 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3603, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3605, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3606, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3607 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13608, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23609, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3610, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3611 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3612 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3613 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3614 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3615 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3616 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3617 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3618 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3619 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3620 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3621 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3622 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3623, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3624, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsBySchedule.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsBySchedule.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCountry\n'
20130515 'Lino.jobs.StudiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "city" }, \'cityHidden\', { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id534 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var city535 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var person536 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content538 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started539 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped540 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success541 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language542 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks544 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city535.setContextValue('mk',bp['mk']);\n"
20130515 "      city535.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id534, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city535 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person536, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type537 }, { "colIndex": 4, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content538 }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started539, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped540, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 8, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language542, "dataIndex": "language" }, { "colIndex": 9, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school543 }, { "colIndex": 10, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks544, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.StudiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCity\n'
20130515 'Lino.jobs.StudiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "school" }, { "name": "type" }, \'typeHidden\', { "name": "person" }, \'personHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var school513 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var person515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var content516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started517 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped518 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success519 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language520 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var remarks521 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id522 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school513 }, { "colIndex": 1, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type514 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person515, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content516 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started517, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped518, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language520, "dataIndex": "language" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks521, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id522, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country523, "dataIndex": "country" } ];\n'
20130515 '    Lino.jobs.StudiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByPerson\n'
20130515 'Lino.jobs.StudiesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1297 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content1298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started1299 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1300 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var country1301 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city1302 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var success1303 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language1304 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school1305 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks1306 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1307 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1302.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1301.on('change',Lino.chooser_handler(city1302,'country'));\n"
20130515 '      Lino.jobs.StudiesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1297 }, { "colIndex": 1, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content1298 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1299, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1300, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1301, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city1302 }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1304, "dataIndex": "language" }, { "colIndex": 8, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school1305 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1306, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 10, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1307, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.StudiesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByFunction\n'
20130515 'Lino.jobs.ExperiencesByFunction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByFunction",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3626 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector3627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var person3628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company3629 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title3630 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country3631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started3632 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped3633 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks3634 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3626, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3627 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3628, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company3629 }, { "colIndex": 4, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3630 }, { "colIndex": 5, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3631, "dataIndex": "country" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started3632, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped3633, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3634, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByFunction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByFunction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByFunction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByPerson\n'
20130515 'Lino.jobs.ExperiencesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "country" }, \'countryHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1310 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var started1311 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1312 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var title1313 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector1314 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1315 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var country1316 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var remarks1317 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1315.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1314.on('change',Lino.chooser_handler(function1315,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1310 }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1311, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1312, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 3, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1313 }, { "colIndex": 4, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1314 }, { "colIndex": 5, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1315 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1316, "dataIndex": "country" }, { "colIndex": 7, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1317, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByPerson\n'
20130515 'Lino.jobs.CandidaturesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1393 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var job1394 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var state1395 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1398 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1399 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1397.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1396.on('change',Lino.chooser_handler(function1397,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1393 }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1394, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1395 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1396 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1397 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1398, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1399, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByJob\n'
20130515 'Lino.jobs.CandidaturesByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "person" }, \'personHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1902 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var person1903 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state1904 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1905 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1906 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1907 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1908 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1906.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1905.on('change',Lino.chooser_handler(function1906,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1902 }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1903, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1904 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1905 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1906 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1907, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1908, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByOffer\n'
20130515 'Lino.jobs.CandidaturesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2004 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person2007 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2008 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var date_submitted2009 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var remark2010 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var state2011 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2006.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2005.on('change',Lino.chooser_handler(function2006,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2004, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2005 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2006 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2007, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2008, "dataIndex": "job" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2009 }, { "colIndex": 6, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2010, "dataIndex": "remark" }, { "colIndex": 7, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state2011 } ];\n'
20130515 '    Lino.jobs.CandidaturesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByOffer\n'
20130515 'Lino.jobs.ExperiencesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id1992 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector1993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1994 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person1995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company1996 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title1997 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country1998 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started1999 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped2000 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks2001 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1994.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1993.on('change',Lino.chooser_handler(function1994,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1992, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1993 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1994 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1995, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1996 }, { "colIndex": 5, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1997 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1998, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1999, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped2000, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2001, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByProvider\n'
20130515 'Lino.jobs.JobsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name1870 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider1871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector1872 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1873 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type1874 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type1875 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate1876 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity1877 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark1878 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1879 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1873.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1872.on('change',Lino.chooser_handler(function1873,'sector'));\n"
20130515 '      Lino.jobs.JobsByProvider.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name1870 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider1871, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1872 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1873 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1874 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type1875 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1876 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity1877 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1878, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1879, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByType\n'
20130515 'Lino.jobs.JobsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3636 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3638 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var contract_type3640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3641 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3642 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3643 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3644 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3639.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3638.on('change',Lino.chooser_handler(function3639,'sector'));\n"
20130515 '      Lino.jobs.JobsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3636 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3637, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3638 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3639 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3640 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3641 }), new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3642 }), { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3643, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3644, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByType\n'
20130515 'Lino.jobs.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3646 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3647 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3648 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3649 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3651 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3652 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3653 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13656 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3658 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3659 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3661 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3663 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3664 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3665 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3666 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3669 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3670 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3671 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3672 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3673 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3654.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3672.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3653.on('change',Lino.chooser_handler(contact_person3654,'company'));\n"
20130515 '      Lino.jobs.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3646, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3647, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3648, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3649, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3650 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3651 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3653, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3654, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3655 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13656, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23657, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3658, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3659 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3660 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3661 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3662 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3663 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3664 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3665 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3666 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3667 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3668 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3669 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3670 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3671 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3672, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3673, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsOverviewByType\n'
20130515 'Lino.jobs.JobsOverviewByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsOverviewByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Situation contrats Art 60-7",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  disable_editing : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job_desc" }, { "name": "working" }, { "name": "probation" }, { "name": "candidates" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job_desc_disp3675 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var working_disp3676 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var probation_disp3677 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var candidates_disp3678 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "job_desc", "header": "Emploi", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "working", "header": "Travaille", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "probation", "header": "p\\u00e9riode d\'essai", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "candidates", "header": "Candidats", "editable": false } ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Situation contrats Art 60-7",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/jobs/JobsOverviewByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.JobsOverviewByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsOverviewByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverviewByType.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CoursesByOffer\n'
20130515 'Lino.courses.CoursesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CoursesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  title : "Cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 76,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2094 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var title2095 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remark2096 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2097 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2094, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2095 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark2096 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2097, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CoursesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insertPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detailPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CoursesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByProvider\n'
20130515 'Lino.courses.CourseOffersByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2079 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title2080 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content2081 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByProvider/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var description2082 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2082.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2079, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2080 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2081 }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2082, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByContent\n'
20130515 'Lino.courses.CourseOffersByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3680 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3681 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var provider3682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByContent/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3683 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3683.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3680, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3681 }, { "colIndex": 2, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3682, "dataIndex": "provider" }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3683, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByPerson\n'
20130515 'Lino.courses.CourseRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "content" }, \'contentHidden\', { "name": "offer" }, \'offerHidden\', { "name": "course" }, \'courseHidden\', { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1328 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var content1329 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var offer1330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var course1331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var urgent1332 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state1333 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var date_ended1334 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark1335 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1336 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1330.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1329.on('change',Lino.chooser_handler(offer1330,'content'));\n"
20130515 '      Lino.courses.CourseRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(11), "editor": date_submitted1328 }, { "colIndex": 1, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "content", "editor": content1329 }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer1330, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course1331 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state1333 }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended1334, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.text_renderer, "editor": remark1335, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1336, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByContent\n'
20130515 'Lino.courses.CourseRequestsByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "course" }, \'courseHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3685 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3687 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var date_submitted3688 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3689 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3690 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var course3691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var remark3692 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3693 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      offer3687.setContextValue('mk',bp['mk']);\n"
20130515 "      offer3687.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3685, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3686, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3687, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3688 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3690 }, { "colIndex": 6, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course3691 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3692, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3693, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.CourseRequestsByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.RequestsByCourse\n'
20130515 'Lino.courses.RequestsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/RequestsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "name": "content" }, \'contentHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3695 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var content3698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var date_submitted3699 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3700 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3701 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var remark3702 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3703 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer3697.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content3698.on('change',Lino.chooser_handler(offer3697,'content'));\n"
20130515 '      Lino.courses.RequestsByCourse.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3695, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3696, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3697, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3698 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3699 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3701 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3702, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3703, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.RequestsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.ParticipantsByCourse\n'
20130515 'Lino.courses.ParticipantsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/ParticipantsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2109 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/ParticipantsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2110 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended2111 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var workflow_buttons_disp2112 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2109, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2110, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended2111, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false } ];\n'
20130515 '    Lino.courses.ParticipantsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Participants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Participants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CandidatesByCourse\n'
20130515 'Lino.courses.CandidatesByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CandidatesByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "content" }, \'contentHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2115 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2116 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_submitted2117 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp2118 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content2119 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2115, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2116, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2117 }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 4, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2119 } ];\n'
20130515 '    Lino.courses.CandidatesByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Candidats",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Candidats",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.CompetencesByUser\n'
20130515 'Lino.newcomers.CompetencesByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/CompetencesByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno147 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty148 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/CompetencesByUser/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight149 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id150 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno147 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty148 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight149 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id150, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.CompetencesByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.CompetencesByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.CompetencesByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.CompetencesByUser.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.CompetencesByUser.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.MyCompetences\n'
20130515 'Lino.newcomers.MyCompetences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/MyCompetences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Mes Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno3705 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty3706 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/MyCompetences/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight3707 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id3708 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno3705 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3706 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight3707 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3708, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.MyCompetences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.MyCompetences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.MyCompetences.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.MyCompetences.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.MyCompetences.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.ClientsByFaculty\n'
20130515 'Lino.newcomers.ClientsByFaculty.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/ClientsByFaculty",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "broker" }, \'brokerHidden\', { "name": "address_column" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "nationality" }, \'nationalityHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 92,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp3710 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker3711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var address_column_disp3712 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3713 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3714 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3717 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3718 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3719 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3720 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr13721 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3722 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3723 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3724 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3725 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23726 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3727 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email3728 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3729 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3730 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3731 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3732 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3733 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3734 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3735 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13736 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23737 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3738 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3739 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3740 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3741 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23743 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3744 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3745 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3746 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3747 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3749 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3750 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3751 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3752 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var nationality3754 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/nationality", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var card_number3755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3756 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3757 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3758 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3759 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3760 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3761 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3762 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3763 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3764 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3765 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3766 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3767 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3768 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3769 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3770 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3771 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3772 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3773 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3774 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3776 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3777 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3778 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3779 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3780 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3781 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3717.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3717.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3718.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3716.on('change',Lino.chooser_handler(city3717,'country'));\n"
20130515 "      region3718.on('change',Lino.chooser_handler(city3717,'region'));\n"
20130515 "      country3716.on('change',Lino.chooser_handler(region3718,'country'));\n"
20130515 '      Lino.newcomers.ClientsByFaculty.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3711 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3713, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3716, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3717 }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3718 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3719 }, { "colIndex": 10, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3720 }, { "colIndex": 11, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13721 }, { "colIndex": 12, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3722 }, { "colIndex": 13, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3723 }, { "colIndex": 14, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3724 }, { "colIndex": 15, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3725 }, { "colIndex": 16, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23726 }, { "colIndex": 17, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3727 }, { "colIndex": 18, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3728 }, { "colIndex": 19, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3729 }, { "colIndex": 20, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3730 }, { "colIndex": 21, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3731 }, { "colIndex": 22, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3732 }, { "colIndex": 23, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3733, "dataIndex": "remarks" }, { "colIndex": 24, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 25, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3735 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13736 }, { "colIndex": 27, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23737 }, { "colIndex": 28, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3738 }, { "colIndex": 29, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3739 }, { "colIndex": 30, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3740 }, { "colIndex": 31, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3741 }, { "colIndex": 32, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3742 }, { "colIndex": 33, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23743, "dataIndex": "remarks2" }, { "colIndex": 34, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3744 }, { "colIndex": 35, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 36, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 37, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3747 }, { "colIndex": 38, "sortable": true, "header": "Lieu de naissance", "editable": true,'
20130515 ' "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3748 }, { "colIndex": 39, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3749, "dataIndex": "birth_country" }, { "colIndex": 40, "sortable": true, "header": "Etat civil", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3750 }, { "colIndex": 41, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3751 }, { "colIndex": 42, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3752, "dataIndex": "health_insurance" }, { "colIndex": 43, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3753, "dataIndex": "pharmacy" }, { "colIndex": 44, "sortable": true, "header": "Nationalit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'nationalityHidden\',\'Lino.countries.Countries.detail\'), "editor": nationality3754, "dataIndex": "nationality" }, { "colIndex": 45, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3755 }, { "colIndex": 46, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3756, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 47, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3757, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 48, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3758 }, { "colIndex": 49, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3759 }, { "colIndex": 50, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3760 }, { "colIndex": 51, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3761 }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3762, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 53, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3763, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 56, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3766, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 57, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3767 }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 60, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 61, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 62, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 63, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 64, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3774, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 65, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3775 }, { "colIndex": 66, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3776, "dataIndex": "obstacles" }, { "colIndex": 67, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3777, "dataIndex": "skills" }, { "colIndex": 68, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3778 }, { "colIndex": 69, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3779 }, { "colIndex": 70, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3780 }, { "colIndex": 71, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3781 } ];\n'
20130515 '    Lino.newcomers.ClientsByFaculty.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyIdentifyPersonRequests\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3783 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyIdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3785 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3786 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3787 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3788 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3789 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3790 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3791 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3792 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3793 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3794 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3795 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3797 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3798 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3801 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3783, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3784, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3793 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3794 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3795 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3796 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3797 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3798 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3799 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3800 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3801 }) ];\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyRequestsByPerson\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "type": "int", "name": "id" }, { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3804 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3805 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var id3806 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var environment3807 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3808 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3809 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3810 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3811 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3812 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3814 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3815 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3818 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3819 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3820 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3821 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3803 }, { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 2, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3806, "width": Lino.chars2width(6), "dataIndex": "id" }), { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3813 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3814 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3815 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3816 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3817 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3818 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3819 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3820 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3821 }) ];\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequestsByPerson\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3823 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3825 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3826 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3827 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3828 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3829 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3830 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3831 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3832 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3833 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3834 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3835 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3836 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3839 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3840 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3841 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3842 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3843 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3844 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3840.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3839.on('change',Lino.chooser_handler(purpose3840,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3823, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3824 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3833 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3834 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3835 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3836 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3837 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3838 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3840 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3841, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3842, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3843 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3844 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyManageAccessRequests\n'
20130515 'Lino.cbss.MyManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3846 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3847 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3848 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3849 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3850 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3851 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3852 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3853 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3854 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3855 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3856 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3857 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3858 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3859 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3860 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3862 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3863 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3864 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3865 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3866 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3867 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3863.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3862.on('change',Lino.chooser_handler(purpose3863,'sector'));\n"
20130515 '      Lino.cbss.MyManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3846, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3847, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3856 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3857 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3858 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3859 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3860 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3861 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3863 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3864, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3865, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3866 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3867 } ];\n'
20130515 '    Lino.cbss.MyManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequestsByPerson\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3869 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3870 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3872 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3873 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3874 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3875 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3876 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3877 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3878 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3869, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3870 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3871, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3872 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3873 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyRetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3880 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3883 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3884 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3885 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3886 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3887 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3888 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3889 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3880, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3881 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3882, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3883 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3884 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.UploadsByController\n'
20130515 'Lino.uploads.UploadsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/UploadsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "type" }, \'typeHidden\', { "name": "description" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3891 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var type3892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var description3893 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3895 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3896 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3897 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3898 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3899 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3900 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var valid_until3901 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3897.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3896.on('change',Lino.chooser_handler(owner_id3897,'owner_type'));\n"
20130515 '      Lino.uploads.UploadsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3891 }, { "colIndex": 1, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3892 }, { "colIndex": 2, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3893 }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3894 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3895, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3896 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3897 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3901, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.UploadsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.UploadsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByController\n'
20130515 'Lino.postings.PostingsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date708 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp711 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id712 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type713 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id714 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user715 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id714.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type713.on('change',Lino.chooser_handler(owner_id714,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date708, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner709, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state710 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id712, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type713 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id714 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user715 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project716, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByController.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByController",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByController\n'
20130515 'Lino.cal.TasksByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date719 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary720 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id722 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date719, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary720 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id722, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.TasksByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByController\n'
20130515 'Lino.outbox.MailsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Outgoing Mails",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent662 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox663 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject664 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project669 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date670 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var body671 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox663.refresh();\n'
20130515 "      owner_id667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body671.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type666.on('change',Lino.chooser_handler(owner_id667,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject664 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type666 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id667 }, { "colIndex": 6, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user668 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project669, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date670 }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body671, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MailsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Outgoing Mails",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Outgoing Mails",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class changes.ChangesByMaster\n'
20130515 'Lino.changes.ChangesByMaster.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/changes/ChangesByMaster",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Changes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "time" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "object" }, { "name": "diff" }, { "name": "object_type" }, \'object_typeHidden\', { "name": "object_id" }, \'object_idHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 10,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var time364 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    var user365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type366 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.lino.ChangeTypes });\n'
20130515 '    var object_disp367 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var diff368 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var object_type369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var object_id370 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_id", "method": "GET" }) }) });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      object_id370.setContextValue('object_type',record ? record.data['object_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      object_type369.on('change',Lino.chooser_handler(object_id370,'object_type'));\n"
20130515 '      Lino.changes.ChangesByMaster.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "time", "header": "time", "editable": true, "editor": time364 }, { "colIndex": 1, "sortable": true, "header": "Utilisateur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user365 }, { "colIndex": 2, "sortable": true, "header": "Change Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "type", "editor": type366 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "object", "header": "Object", "editable": false }, { "colIndex": 4, "sortable": false, "header": "Changes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": diff368, "dataIndex": "diff" }, { "colIndex": 5, "sortable": true, "header": "Object type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "object_type", "editor": object_type369 }, { "colIndex": 6, "sortable": true, "header": "object id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "object_id", "editor": object_id370 } ];\n'
20130515 '    Lino.changes.ChangesByMaster.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insertPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Changes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detailPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Changes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.changes.ChangesByMaster.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByController\n'
20130515 'Lino.cal.EventsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1477 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1478 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary1479 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1480 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1481 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1477, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1478 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1479 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1481, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.EventsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.Models\n'
20130515 'Lino.about.Models.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/Models",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Models",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "app" }, { "name": "name" }, { "name": "docstring" }, { "name": "rows" }, { "name": "detail_action" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var app_disp3903 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp3904 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp3905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows3906 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var detail_action_disp3907 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "app", "header": "app_label", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "docstring", "header": "docstring", "editable": false }, new Lino.NullNumberColumn({ "header": "Rows", "colIndex": 3, "sortable": false, "dataIndex": "rows", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "detail_action", "header": "detail_action", "editable": false } ];\n'
20130515 '    Lino.about.Models.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.detailPanel = Ext.extend(Lino.about.Models.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Models",\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/about/Models",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    Lino.about.Models.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.Models.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.about.Models.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.FieldsByModel\n'
20130515 'Lino.about.FieldsByModel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/FieldsByModel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Fields",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "verbose_name" }, { "name": "help_text_column" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_disp2434 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var verbose_name_disp2435 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var help_text_column_disp2436 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "verbose_name", "header": "verbose name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "help_text_column", "header": "help text", "editable": false } ];\n'
20130515 '    Lino.about.FieldsByModel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.FieldsByModel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.FieldsByModel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.SourceFiles\n'
20130515 'Lino.about.SourceFiles.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/SourceFiles",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Source files",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "module_name" }, { "type": "int", "name": "code_lines" }, { "type": "int", "name": "doc_lines" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var module_name3909 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var code_lines3910 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var doc_lines3911 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(5), "colIndex": 0, "sortable": false, "dataIndex": "module_name", "header": "module name", "editable": false }, new Lino.NullNumberColumn({ "header": "Code", "colIndex": 1, "sortable": false, "dataIndex": "code_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "doc", "colIndex": 2, "sortable": false, "dataIndex": "doc_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.about.SourceFiles.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.SourceFiles.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.SourceFiles.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.UsersWithClients\n'
20130515 'Lino.pcsw.UsersWithClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/UsersWithClients",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Agents et leurs clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "G1" }, { "name": "G2" }, { "name": "G4" }, { "name": "G4bis" }, { "name": "G9" }, { "name": "primary_clients" }, { "name": "active_clients" }, { "name": "row_total" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3913 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var G13914 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G23915 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G43916 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G4bis3917 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G93918 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var primary_clients3919 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var active_clients3920 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var row_total3921 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "user", "header": "Accompagnant", "editable": false }, new Lino.NullNumberColumn({ "header": "Bilan", "colIndex": 1, "sortable": false, "dataIndex": "G1", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Formation", "colIndex": 2, "sortable": false, "dataIndex": "G2", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Recherche", "colIndex": 3, "sortable": false, "dataIndex": "G4", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Travail", "colIndex": 4, "sortable": false, "dataIndex": "G4bis", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Standby", "colIndex": 5, "sortable": false, "dataIndex": "G9", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Dossiers complets", "colIndex": 6, "sortable": false, "dataIndex": "primary_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Clients actifs", "colIndex": 7, "sortable": false, "dataIndex": "active_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Total", "colIndex": 8, "sortable": false, "dataIndex": "row_total", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.pcsw.UsersWithClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.UsersWithClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.UsersWithClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class debts.SummaryTable\n'
20130515 'Lino.debts.SummaryTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/debts/SummaryTable",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "SummaryTable",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "desc" }, { "name": "amount" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 3,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var desc_disp3923 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var amount3924 = new Ext.form.NumberField({ "disabled": true, "decimalPrecision": 2, "decimalSeparator": "," });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "desc", "header": "Description", "editable": false }, new Lino.NullNumberColumn({ "width": Lino.chars2width(13), "colIndex": 1, "sortable": false, "dataIndex": "amount", "header": "Montant", "editable": false }) ];\n'
20130515 '    Lino.debts.SummaryTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.debts.SummaryTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.debts.SummaryTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonResult\n'
20130515 'Lino.cbss.IdentifyPersonResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/IdentifyPersonResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "national_id" }, { "name": "last_name" }, { "name": "first_name" }, { "name": "address" }, { "name": "birth_date" }, { "name": "birth_location" }, { "name": "civil_state" }, { "name": "gender" }, \'genderHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 10,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var national_id_disp2193 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var last_name_disp2194 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var first_name_disp2195 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_disp2196 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_date_disp2197 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_location_disp2198 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state_disp2199 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var gender2200 = new Lino.ChoicesFieldElement({ "disabled": true, "store": [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ] });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "national_id", "header": "NISS", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 1, "sortable": false, "dataIndex": "last_name", "header": "Nom de famille", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 2, "sortable": false, "dataIndex": "first_name", "header": "Pr\\u00e9nom", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 4, "sortable": false, "dataIndex": "birth_date", "header": "date de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "birth_location", "header": "Lieu de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 6, "sortable": false, "dataIndex": "civil_state", "header": "Etat civil", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 7, "sortable": false, "dataIndex": "gender", "header": "Sexe", "editable": false } ];\n'
20130515 '    Lino.cbss.IdentifyPersonResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsResult\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "group" }, { "name": "type" }, { "type": "date", "name": "since", "dateFormat": "d.m.Y" }, { "name": "info" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var group_disp2340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var type_disp2341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var since2342 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var info_disp2343 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(19), "colIndex": 0, "sortable": false, "dataIndex": "group", "header": "Groupe", "editable": false }, { "width": Lino.chars2width(6), "colIndex": 1, "sortable": false, "dataIndex": "type", "header": "TI", "editable": false }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Depuis", "dataIndex": "since", "width": Lino.chars2width(15) }, { "width": Lino.chars2width(51), "colIndex": 3, "sortable": false, "dataIndex": "info", "header": "Information", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.CalendarPanel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  return Lino.calendar_app.get_main_panel();\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestStates\n'
20130515 'Lino.courses.CourseRequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/courses/CourseRequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3926 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3927 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3928 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.courses.CourseRequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestStates.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingStates\n'
20130515 'Lino.postings.PostingStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/postings/PostingStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3930 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3931 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3932 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.postings.PostingStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.DurationUnits\n'
20130515 'Lino.cal.DurationUnits.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/DurationUnits",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DurationUnits",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3934 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3935 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3936 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.DurationUnits.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.DurationUnits.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.DurationUnits.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.Weekdays\n'
20130515 'Lino.cal.Weekdays.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/Weekdays",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Weekdays",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3938 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3939 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3940 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.Weekdays.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.Weekdays.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.Weekdays.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountTypes\n'
20130515 'Lino.accounts.AccountTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/accounts/AccountTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccountTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3942 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3943 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3944 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.accounts.AccountTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.CefLevel\n'
20130515 'Lino.cv.CefLevel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cv/CefLevel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CEF levels",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3946 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3947 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3948 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cv.CefLevel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.CefLevel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.CefLevel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.HowWell\n'
20130515 'Lino.properties.HowWell.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/HowWell",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "HowWell",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3950 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3951 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3952 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.HowWell.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.HowWell.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.HowWell.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidatureStates\n'
20130515 'Lino.jobs.CandidatureStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/jobs/CandidatureStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Candidature states",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3954 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3955 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3956 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.jobs.CandidatureStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidatureStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidatureStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientType\n'
20130515 'Lino.outbox.RecipientType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/outbox/RecipientType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RecipientType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3958 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3959 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3960 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.outbox.RecipientType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CityTypes\n'
20130515 'Lino.countries.CityTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/countries/CityTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CityTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3962 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3963 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3964 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.countries.CityTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CityTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CityTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.DoYouLike\n'
20130515 'Lino.properties.DoYouLike.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/DoYouLike",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DoYouLike",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3966 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3967 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3968 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.DoYouLike.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.DoYouLike.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.DoYouLike.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestLanguages\n'
20130515 'Lino.cbss.RequestLanguages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestLanguages",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RequestLanguages",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3970 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3971 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3972 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestLanguages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestLanguages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestLanguages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAction\n'
20130515 'Lino.cbss.ManageAction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/ManageAction",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ManageAction",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3974 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3975 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3976 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.ManageAction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.RefusalReasons\n'
20130515 'Lino.pcsw.RefusalReasons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/RefusalReasons",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RefusalReasons",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3978 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3979 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3980 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.RefusalReasons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.RefusalReasons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.RefusalReasons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestStates\n'
20130515 'Lino.cbss.RequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3982 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3983 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3984 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.ChangeTypes\n'
20130515 'Lino.lino.ChangeTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/ChangeTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Change Types",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3986 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3987 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3988 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.ChangeTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.ChangeTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.ChangeTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.AccessClasses\n'
20130515 'Lino.cal.AccessClasses.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/AccessClasses",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccessClasses",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3990 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3991 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3992 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.AccessClasses.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.AccessClasses.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.AccessClasses.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.QueryRegister\n'
20130515 'Lino.cbss.QueryRegister.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/QueryRegister",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "QueryRegister",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3994 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3995 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3996 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.QueryRegister.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.QueryRegister.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.QueryRegister.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.Genders\n'
20130515 'Lino.lino.Genders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/Genders",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Genders",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3998 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3999 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4000 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.Genders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Genders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.Genders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ResidenceType\n'
20130515 'Lino.pcsw.ResidenceType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/ResidenceType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ResidenceType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value4002 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name4003 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4004 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.ResidenceType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ResidenceType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ResidenceType.GridPanel(p);\n'
20130515 '});\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:24 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 359788\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible\n'
20130515 ' * Extensible core utilities and functions.\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 '(function(){\n'
20130515 '    \n'
20130515 "    Ext.ns('Ext.ensible.ux', 'Ext.ensible.sample', 'Ext.ensible.plugins', 'Ext.ensible.cal');\n"
20130515 '    \n'
20130515 '    Ext.apply(Ext.ensible, {\n'
20130515 '        /**\n'
20130515 '         * The version of the framework\n'
20130515 '         * @type String\n'
20130515 '         */\n'
20130515 "        version : '1.0.1',\n"
20130515 '        /**\n'
20130515 '         * The version of the framework, broken out into its numeric parts. This returns an\n'
20130515 '         * object that contains the following integer properties: major, minor and patch.\n'
20130515 '         * @type Object\n'
20130515 '         */\n'
20130515 '        versionDetails : {\n'
20130515 '            major: 1,\n'
20130515 '            minor: 0,\n'
20130515 '            patch: 1\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        hasBorderRadius : !(Ext.isIE || Ext.isOpera),\n'
20130515 '        \n'
20130515 '        log : function(s){\n'
20130515 '            //console.log(s);\n'
20130515 '        },\n'
20130515 '    \n'
20130515 '       /**\n'
20130515 '        * @class Ext.ensible.cal.Date\n'
20130515 '        * @extends Object\n'
20130515 '        * <p>Contains utility date functions used by the calendar components.</p>\n'
20130515 '        * @singleton\n'
20130515 '        */\n'
20130515 '\t    Date : {\n'
20130515 '            /**\n'
20130515 '             * Determines whether times used throughout all Extensible components should be displayed as\n'
20130515 '             * 12 hour times with am/pm (default) or 24 hour / military format. Note that some locale files\n'
20130515 '             * may override this value by default.\n'
20130515 '             * @type Boolean\n'
20130515 '             * @property use24HourTime\n'
20130515 '             */\n'
20130515 '            use24HourTime : false,\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns the time duration between two dates in the specified units. For finding the number\n'
20130515 '             * of calendar days (ignoring time) between two dates use {@link Ext.ensible.Date.diffDays diffDays} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 "             * @param {String} unit (optional) The time unit to return. Valid values are 'ms' (milliseconds, the default), 's' (seconds),\n"
20130515 "             * 'm' (minutes) or 'h' (hours).\n"
20130515 '             * @return {Number} The time difference between the dates in the units specified by the unit param\n'
20130515 '             */\n'
20130515 '            diff : function(start, end, unit){\n'
20130515 '                var denom = 1,\n'
20130515 '                    diff = end.getTime() - start.getTime();\n'
20130515 '                \n'
20130515 "                if(unit == 's'){ \n"
20130515 '                    denom = 1000;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'm'){\n"
20130515 '                    denom = 1000*60;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'h'){\n"
20130515 '                    denom = 1000*60*60;\n'
20130515 '                }\n'
20130515 '                return Math.round(diff/denom);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Calculates the number of calendar days between two dates, ignoring time values. \n'
20130515 '             * A time span that starts at 11pm (23:00) on Monday and ends at 1am (01:00) on Wednesday is \n'
20130515 '             * only 26 total hours, but it spans 3 calendar days, so this function would return 3. For the\n'
20130515 '             * exact time difference, use {@link Ext.ensible.Date.diff diff} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 '             * @return {Number} The number of calendar days difference between the dates\n'
20130515 '             */\n'
20130515 '            diffDays : function(start, end){\n'
20130515 '                var day = 1000*60*60*24,\n'
20130515 '                    diff = end.clearTime(true).getTime() - start.clearTime(true).getTime();\n'
20130515 '                \n'
20130515 '                return Math.ceil(diff/day);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 "             * Copies the time value from one date object into another without altering the target's \n"
20130515 '             * date value. This function returns a new Date instance without modifying either original value.\n'
20130515 '             * @param {Date} fromDt The original date from which to copy the time\n'
20130515 '             * @param {Date} toDt The target date to copy the time to\n'
20130515 '             * @return {Date} The new date/time value\n'
20130515 '             */\n'
20130515 '            copyTime : function(fromDt, toDt){\n'
20130515 '                var dt = toDt.clone();\n'
20130515 '                dt.setHours(\n'
20130515 '                    fromDt.getHours(),\n'
20130515 '                    fromDt.getMinutes(),\n'
20130515 '                    fromDt.getSeconds(),\n'
20130515 '                    fromDt.getMilliseconds());\n'
20130515 '                \n'
20130515 '                return dt;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Compares two dates and returns a value indicating how they relate to each other.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Boolean} precise (optional) If true, the milliseconds component is included in the comparison,\n'
20130515 '             * else it is ignored (the default).\n'
20130515 '             * @return {Number} The number of milliseconds difference between the two dates. If the dates are equal\n'
20130515 '             * this will be 0.  If the first date is earlier the return value will be positive, and if the second date\n'
20130515 '             * is earlier the value will be negative.\n'
20130515 '             */\n'
20130515 '            compare : function(dt1, dt2, precise){\n'
20130515 '                var d1 = dt1, d2 = dt2;\n'
20130515 '                if(precise !== true){\n'
20130515 '                    d1 = dt1.clone();\n'
20130515 '                    d1.setMilliseconds(0);\n'
20130515 '                    d2 = dt2.clone();\n'
20130515 '                    d2.setMilliseconds(0);\n'
20130515 '                }\n'
20130515 '                return d2.getTime() - d1.getTime();\n'
20130515 '            },\n'
20130515 '\n'
20130515 '\t        // private helper fn\n'
20130515 '\t        maxOrMin : function(max){\n'
20130515 '\t            var dt = (max ? 0 : Number.MAX_VALUE), i = 0, args = arguments[1], ln = args.length;\n'
20130515 '\t            for(; i < ln; i++){\n'
20130515 "\t                dt = Math[max ? 'max' : 'min'](dt, args[i].getTime());\n"
20130515 '\t            }\n'
20130515 '\t            return new Date(dt);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the maximum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the latest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmax : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [true, arguments]);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the minimum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the earliest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmin : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [false, arguments]);\n'
20130515 '\t        },\n'
20130515 '            \n'
20130515 '            isInRange : function(dt, rangeStart, rangeEnd) {\n'
20130515 '                return  (dt >= rangeStart && dt <= rangeEnd);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if two date ranges overlap (either one starts or ends within the other, or one completely\n'
20130515 '             * overlaps the start and end of the other), else false if they do not.\n'
20130515 '             * @param {Date} start1 The start date of range 1\n'
20130515 '             * @param {Date} end1   The end date of range 1\n'
20130515 '             * @param {Date} start2 The start date of range 2\n'
20130515 '             * @param {Date} end2   The end date of range 2\n'
20130515 '             * @return {Booelan} True if the ranges overlap, else false\n'
20130515 '             */\n'
20130515 '            rangesOverlap : function(start1, end1, start2, end2){\n'
20130515 '                var startsInRange = (start1 >= start2 && start1 <= end2),\n'
20130515 '                    endsInRange = (end1 >= start2 && end1 <= end2),\n'
20130515 '                    spansRange = (start1 <= start2 && end1 >= end2);\n'
20130515 '                \n'
20130515 '                return (startsInRange || endsInRange || spansRange);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date is a Saturday or Sunday, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a weekend day, else false \n'
20130515 '             */\n'
20130515 '            isWeekend : function(dt){\n'
20130515 '                return dt.getDay() % 6 === 0;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date falls on a Monday through Fridey, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a week day, else false \n'
20130515 '             */\n'
20130515 '            isWeekday : function(dt){\n'
20130515 '                return dt.getDay() % 6 !== 0;\n'
20130515 '            }\n'
20130515 '\t    }\n'
20130515 '    });\n'
20130515 '})();\n'
20130515 '//TODO: remove this once we are synced to trunk again\n'
20130515 'Ext.override(Ext.XTemplate, {\n'
20130515 '    applySubTemplate : function(id, values, parent, xindex, xcount){\n'
20130515 '        var me = this,\n'
20130515 '            len,\n'
20130515 '            t = me.tpls[id],\n'
20130515 '            vs,\n'
20130515 '            buf = [];\n'
20130515 '        if ((t.test && !t.test.call(me, values, parent, xindex, xcount)) ||\n'
20130515 '            (t.exec && t.exec.call(me, values, parent, xindex, xcount))) {\n'
20130515 "            return '';\n"
20130515 '        }\n'
20130515 '        vs = t.target ? t.target.call(me, values, parent) : values;\n'
20130515 '        len = vs.length;\n'
20130515 '        parent = t.target ? values : parent;\n'
20130515 '        if(t.target && Ext.isArray(vs)){\n'
20130515 '            Ext.each(vs, function(v, i) {\n'
20130515 '                buf[buf.length] = t.compiled.call(me, v, parent, i+1, len);\n'
20130515 '            });\n'
20130515 "            return buf.join('');\n"
20130515 '        }\n'
20130515 '        return t.compiled.call(me, vs, parent, xindex, xcount);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This fix is in Ext 3.2 */\n'
20130515 'Ext.override(Ext.form.DateField, {\n'
20130515 '\t\n'
20130515 '\taltFormats : "m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j",\n'
20130515 '\t\n'
20130515 '    safeParse : function(value, format) {\n'
20130515 "        if (/[gGhH]/.test(format.replace(/(\\\\.)/g, ''))) {\n"
20130515 '            // if parse format contains hour information, no DST adjustment is necessary\n'
20130515 '            return Date.parseDate(value, format);\n'
20130515 '        } else {\n'
20130515 '            // set time to 12 noon, then clear the time\n'
20130515 "            var parsedDate = Date.parseDate(value + ' ' + this.initTime, format + ' ' + this.initTimeFormat);\n"
20130515 '            if (parsedDate) return parsedDate.clearTime();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This override applies to the current 3.3.x line to fix duplicate remote actions */\n'
20130515 'Ext.override(Ext.data.Store, {\n'
20130515 '    add : function(records) {\n'
20130515 '        var i, record, index;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        if (records.length < 1) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        index = this.data.length;\n'
20130515 '        this.data.addAll(records);\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    insert : function(index, records) {\n'
20130515 '        var i, record;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            this.data.insert(index + i, record);\n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // Interestingly, this method has no changes, but is included here because without it a very strange\n'
20130515 '    // race condition occurs. This method is used as a callback internally for the add event which\n'
20130515 '    // is fired from the add method (overridden above). As long as both methods are here everything is OK\n'
20130515 '    // but with createRecords removed and defaulted to the original class you end up with duplicate copies\n'
20130515 "    // of added records in the store's modified collection (since both methods add to it). Not sure exactly\n"
20130515 '    // how that happens, but including this fixes it.\n'
20130515 '    createRecords : function(store, records, index) {\n'
20130515 '        var modified = this.modified,\n'
20130515 '            length   = records.length,\n'
20130515 '            record, i;\n'
20130515 '        \n'
20130515 '        for (i = 0; i < length; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            if (record.phantom && record.isValid()) {\n'
20130515 '                record.markDirty();  // <-- Mark new records dirty (Ed: why?)\n'
20130515 '                \n'
20130515 '                //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '                if (modified.indexOf(record) == -1) {\n'
20130515 '                    modified.push(record);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if (this.autoSave === true) {\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '// Have to add in full API support so that EventMemoryProxy can do its thing.\n'
20130515 "// Won't hurt normal read-only MemoryProxy read actions.\n"
20130515 'Ext.data.MemoryProxy = function(data){\n'
20130515 '    var api = {};\n'
20130515 '    api[Ext.data.Api.actions.read] = true;\n'
20130515 '    api[Ext.data.Api.actions.create] = true;\n'
20130515 '    api[Ext.data.Api.actions.update] = true;\n'
20130515 '    api[Ext.data.Api.actions.destroy] = true;\n'
20130515 '    Ext.data.MemoryProxy.superclass.constructor.call(this, {\n'
20130515 '        api: api\n'
20130515 '    });\n'
20130515 '    this.data = data;\n'
20130515 '};\n'
20130515 'Ext.extend(Ext.data.MemoryProxy, Ext.data.DataProxy, {\n'
20130515 '    doRequest : function(action, rs, params, reader, callback, scope, arg) {\n'
20130515 '        callback.call(scope, null, arg, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "// This heinous override is required to fix IE9's removal of createContextualFragment.\n"
20130515 "// Unfortunately since DomHelper is a singleton there's not much of a way around it.\n"
20130515 'Ext.apply(Ext.DomHelper,\n'
20130515 'function(){\n'
20130515 '    var tempTableEl = null,\n'
20130515 '        emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,\n'
20130515 '        tableRe = /^table|tbody|tr|td$/i,\n'
20130515 '        confRe = /tag|children|cn|html$/i,\n'
20130515 '        tableElRe = /td|tr|tbody/i,\n'
20130515 '        cssRe = /([a-z0-9-]+)\\s*:\\s*([^;\\s]+(?:\\s*[^;\\s]+)*);?/gi,\n'
20130515 '        endRe = /end/i,\n'
20130515 '        pub,\n'
20130515 '        // kill repeat to save bytes\n'
20130515 "        afterbegin = 'afterbegin',\n"
20130515 "        afterend = 'afterend',\n"
20130515 "        beforebegin = 'beforebegin',\n"
20130515 "        beforeend = 'beforeend',\n"
20130515 "        ts = '<table>',\n"
20130515 "        te = '</table>',\n"
20130515 "        tbs = ts+'<tbody>',\n"
20130515 "        tbe = '</tbody>'+te,\n"
20130515 "        trs = tbs + '<tr>',\n"
20130515 "        tre = '</tr>'+tbe;\n"
20130515 '\n'
20130515 '    // private\n'
20130515 '    function doInsert(el, o, returnElement, pos, sibling, append){\n'
20130515 '        var newNode = pub.insertHtml(pos, Ext.getDom(el), createHtml(o));\n'
20130515 '        return returnElement ? Ext.get(newNode, true) : newNode;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // build as innerHTML where available\n'
20130515 '    function createHtml(o){\n'
20130515 "        var b = '',\n"
20130515 '            attr,\n'
20130515 '            val,\n'
20130515 '            key,\n'
20130515 '            cn;\n'
20130515 '\n'
20130515 '        if(typeof o == "string"){\n'
20130515 '            b = o;\n'
20130515 '        } else if (Ext.isArray(o)) {\n'
20130515 '            for (var i=0; i < o.length; i++) {\n'
20130515 '                if(o[i]) {\n'
20130515 '                    b += createHtml(o[i]);\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '        } else {\n'
20130515 "            b += '<' + (o.tag = o.tag || 'div');\n"
20130515 '            for (attr in o) {\n'
20130515 '                val = o[attr];\n'
20130515 '                if(!confRe.test(attr)){\n'
20130515 '                    if (typeof val == "object") {\n'
20130515 '                        b += \' \' + attr + \'="\';\n'
20130515 '                        for (key in val) {\n'
20130515 "                            b += key + ':' + val[key] + ';';\n"
20130515 '                        };\n'
20130515 '                        b += \'"\';\n'
20130515 '                    }else{\n'
20130515 '                        b += \' \' + ({cls : \'class\', htmlFor : \'for\'}[attr] || attr) + \'="\' + val + \'"\';\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '            // Now either just close the tag or try to add children and close the tag.\n'
20130515 '            if (emptyTags.test(o.tag)) {\n'
20130515 "                b += '/>';\n"
20130515 '            } else {\n'
20130515 "                b += '>';\n"
20130515 '                if ((cn = o.children || o.cn)) {\n'
20130515 '                    b += createHtml(cn);\n'
20130515 '                } else if(o.html){\n'
20130515 '                    b += o.html;\n'
20130515 '                }\n'
20130515 "                b += '</' + o.tag + '>';\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return b;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    function ieTable(depth, s, h, e){\n'
20130515 "        tempTableEl.innerHTML = [s, h, e].join('');\n"
20130515 '        var i = -1,\n'
20130515 '            el = tempTableEl,\n'
20130515 '            ns;\n'
20130515 '        while(++i < depth){\n'
20130515 '            el = el.firstChild;\n'
20130515 '        }\n'
20130515 '//      If the result is multiple siblings, then encapsulate them into one fragment.\n'
20130515 '        if(ns = el.nextSibling){\n'
20130515 '            var df = document.createDocumentFragment();\n'
20130515 '            while(el){\n'
20130515 '                ns = el.nextSibling;\n'
20130515 '                df.appendChild(el);\n'
20130515 '                el = ns;\n'
20130515 '            }\n'
20130515 '            el = df;\n'
20130515 '        }\n'
20130515 '        return el;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @ignore\n'
20130515 "     * Nasty code for IE's broken table implementation\n"
20130515 '     */\n'
20130515 '    function insertIntoTable(tag, where, el, html) {\n'
20130515 '        var node,\n'
20130515 '            before;\n'
20130515 '\n'
20130515 "        tempTableEl = tempTableEl || document.createElement('div');\n"
20130515 '\n'
20130515 "        if(tag == 'td' && (where == afterbegin || where == beforeend) ||\n"
20130515 '           !tableElRe.test(tag) && (where == beforebegin || where == afterend)) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        before = where == beforebegin ? el :\n'
20130515 '                 where == afterend ? el.nextSibling :\n'
20130515 '                 where == afterbegin ? el.firstChild : null;\n'
20130515 '\n'
20130515 '        if (where == beforebegin || where == afterend) {\n'
20130515 '            el = el.parentNode;\n'
20130515 '        }\n'
20130515 '\n'
20130515 "        if (tag == 'td' || (tag == 'tr' && (where == beforeend || where == afterbegin))) {\n"
20130515 '            node = ieTable(4, trs, html, tre);\n'
20130515 "        } else if ((tag == 'tbody' && (where == beforeend || where == afterbegin)) ||\n"
20130515 "                   (tag == 'tr' && (where == beforebegin || where == afterend))) {\n"
20130515 '            node = ieTable(3, tbs, html, tbe);\n'
20130515 '        } else {\n'
20130515 '            node = ieTable(2, ts, html, te);\n'
20130515 '        }\n'
20130515 '        el.insertBefore(node, before);\n'
20130515 '        return node;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '    pub = {\n'
20130515 '        /**\n'
20130515 '         * Returns the markup for the passed Element(s) config.\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @return {String}\n'
20130515 '         */\n'
20130515 '        markup : function(o){\n'
20130515 '            return createHtml(o);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Applies a style specification to an element.\n'
20130515 '         * @param {String/HTMLElement} el The element to apply styles to\n'
20130515 "         * @param {String/Object/Function} styles A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or\n"
20130515 '         * a function which returns such a specification.\n'
20130515 '         */\n'
20130515 '        applyStyles : function(el, styles){\n'
20130515 '            if (styles) {\n'
20130515 '                var matches;\n'
20130515 '\n'
20130515 '                el = Ext.fly(el);\n'
20130515 '                if (typeof styles == "function") {\n'
20130515 '                    styles = styles.call();\n'
20130515 '                }\n'
20130515 '                if (typeof styles == "string") {\n'
20130515 '                    /**\n'
20130515 "                     * Since we're using the g flag on the regex, we need to set the lastIndex.\n"
20130515 '                     * This automatically happens on some implementations, but not others, see:\n'
20130515 '                     * http://stackoverflow.com/questions/2645273/javascript-regular-expression-literal-persists-between-function-calls\n'
20130515 '                     * http://blog.stevenlevithan.com/archives/fixing-javascript-regexp\n'
20130515 '                     */\n'
20130515 '                    cssRe.lastIndex = 0;\n'
20130515 '                    while ((matches = cssRe.exec(styles))) {\n'
20130515 '                        el.setStyle(matches[1], matches[2]);\n'
20130515 '                    }\n'
20130515 '                } else if (typeof styles == "object") {\n'
20130515 '                    el.setStyle(styles);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Inserts an HTML fragment into the DOM.\n'
20130515 '         * @param {String} where Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd.\n'
20130515 '         * @param {HTMLElement} el The context element\n'
20130515 '         * @param {String} html The HTML fragment\n'
20130515 '         * @return {HTMLElement} The new node\n'
20130515 '         */\n'
20130515 '        insertHtml : function(where, el, html){\n'
20130515 '            var hash = {},\n'
20130515 '                hashVal,\n'
20130515 '                setStart,\n'
20130515 '                range,\n'
20130515 '                frag,\n'
20130515 '                rangeEl,\n'
20130515 '                rs,\n'
20130515 '                temp;\n'
20130515 '\n'
20130515 '            where = where.toLowerCase();\n'
20130515 '            // add these here because they are used in both branches of the condition.\n'
20130515 "            hash[beforebegin] = ['BeforeBegin', 'previousSibling'];\n"
20130515 "            hash[afterend] = ['AfterEnd', 'nextSibling'];\n"
20130515 '\n'
20130515 '            if (el.insertAdjacentHTML) {\n'
20130515 '                if(tableRe.test(el.tagName) && (rs = insertIntoTable(el.tagName.toLowerCase(), where, el, html))){\n'
20130515 '                    return rs;\n'
20130515 '                }\n'
20130515 '                // add these two to the hash.\n'
20130515 "                hash[afterbegin] = ['AfterBegin', 'firstChild'];\n"
20130515 "                hash[beforeend] = ['BeforeEnd', 'lastChild'];\n"
20130515 '                if ((hashVal = hash[where])) {\n'
20130515 '                    el.insertAdjacentHTML(hashVal[0], html);\n'
20130515 '                    return el[hashVal[1]];\n'
20130515 '                }\n'
20130515 '            } else {\n'
20130515 '                range = el.ownerDocument.createRange();\n'
20130515 "                setStart = 'setStart' + (endRe.test(where) ? 'After' : 'Before');\n"
20130515 '                if (hash[where]) {\n'
20130515 '                    range[setStart](el);\n'
20130515 '                    if (range.createContextualFragment) {\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                    } else {\n'
20130515 '                        frag = document.createDocumentFragment(), \n'
20130515 "                        temp = document.createElement('div');\n"
20130515 '                        frag.appendChild(temp);\n'
20130515 '                        temp.outerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    el.parentNode.insertBefore(frag, where == beforebegin ? el : el.nextSibling);\n'
20130515 "                    return el[(where == beforebegin ? 'previous' : 'next') + 'Sibling'];\n"
20130515 '                } else {\n'
20130515 "                    rangeEl = (where == afterbegin ? 'first' : 'last') + 'Child';\n"
20130515 '                    if (el.firstChild) {\n'
20130515 '                        range[setStart](el[rangeEl]);\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                        if(where == afterbegin){\n'
20130515 '                            el.insertBefore(frag, el.firstChild);\n'
20130515 '                        }else{\n'
20130515 '                            el.appendChild(frag);\n'
20130515 '                        }\n'
20130515 '                    } else {\n'
20130515 '                        el.innerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    return el[rangeEl];\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '            throw \'Illegal insertion point -> "\' + where + \'"\';\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them before el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertBefore : function(el, o, returnElement){\n'
20130515 '            return doInsert(el, o, returnElement, beforebegin);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them after el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertAfter : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterend, 'nextSibling');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them as the first child of el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertFirst : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterbegin, 'firstChild');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and appends them to el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        append : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, beforeend, '', true);\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and overwrites the contents of el with them.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        overwrite : function(el, o, returnElement){\n'
20130515 '            el = Ext.getDom(el);\n'
20130515 '            el.innerHTML = createHtml(o);\n'
20130515 '            return returnElement ? Ext.get(el.firstChild) : el.firstChild;\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        createHtml : createHtml\n'
20130515 '    };\n'
20130515 '    return pub;\n'
20130515 '}());\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the all-day event container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. Internally the majority of the layout logic is deferred to an instance of\n'
20130515 ' * {@link Ext.ensible.cal.BoxLayoutTemplate}.</p> \n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayBodyTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    this.allDayTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\n'
20130515 '    this.allDayTpl.compile();\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayHeaderTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<div class="ext-cal-hd-ct">\',\n'
20130515 '            \'<table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0">\',\n'
20130515 "                '<tbody>',\n"
20130515 "                    '<tr>',\n"
20130515 '                        \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                        \'<td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner">{allDayTpl}</div></td>\',\n'
20130515 '                        \'<td class="ext-cal-gutter-rt"></td>\',\n'
20130515 "                    '</tr>',\n"
20130515 "                '</tbody>',\n"
20130515 "            '</table>',\n"
20130515 "        '</div>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayHeaderTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        return Ext.ensible.cal.DayHeaderTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            allDayTpl: this.allDayTpl.apply(o)\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate.prototype.apply = Ext.ensible.cal.DayHeaderTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the scrolling body container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayHeaderTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayBodyTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:{dayHeight}px;">\',\n'
20130515 "            '<tbody>',\n"
20130515 '                \'<tr height="1">\',\n'
20130515 '                    \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                    \'<td colspan="{dayCount}">\',\n'
20130515 '                        \'<div class="ext-cal-bg-rows">\',\n'
20130515 '                            \'<div class="ext-cal-bg-rows-inner">\',\n'
20130515 '                                \'<tpl for="times">\',\n'
20130515 '                                    \'<div class="ext-cal-bg-row ext-row-{[xindex]}" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                        \'<div class="ext-cal-bg-row-div {parent.hourSeparatorCls}" style="height:{parent.hourSeparatorHeight}px;"></div>\',\n'
20130515 "                                    '</div>',\n"
20130515 "                                '</tpl>',\n"
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</td>',\n"
20130515 "                '</tr>',\n"
20130515 "                '<tr>',\n"
20130515 '                    \'<td class="ext-cal-day-times">\',\n'
20130515 '                        \'<tpl for="times">\',\n'
20130515 '                            \'<div class="ext-cal-bg-row" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                \'<div class="ext-cal-day-time-inner"  style="height:{parent.hourHeight-1}px;">{.}</div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</tpl>',\n"
20130515 "                    '</td>',\n"
20130515 '                    \'<tpl for="days">\',\n'
20130515 '                        \'<td class="ext-cal-day-col">\',\n'
20130515 '                            \'<div class="ext-cal-day-col-inner">\',\n'
20130515 '                                \'<div id="{[this.id]}-day-col-{.:date("Ymd")}" class="ext-cal-day-col-gutter" style="height:{parent.dayHeight}px;"></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</td>',\n"
20130515 "                    '</tpl>',\n"
20130515 "                '</tr>',\n"
20130515 "            '</tbody>',\n"
20130515 "        '</table>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayBodyTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        this.today = new Date().clearTime();\n'
20130515 '        this.dayCount = this.dayCount || 1;\n'
20130515 '        \n'
20130515 '        var i = 0, days = [],\n'
20130515 '            dt = o.viewStart.clone();\n'
20130515 '            \n'
20130515 '        for(; i<this.dayCount; i++){\n'
20130515 '            days[i] = dt.add(Date.DAY, i);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        var times = [],\n'
20130515 '            start = this.viewStartHour,\n'
20130515 '            end = this.viewEndHour,\n'
20130515 '            mins = this.hourIncrement,\n'
20130515 '            dayHeight = this.hourHeight * (end - start)\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i' : 'ga';\n"
20130515 '        \n'
20130515 "        // use a fixed DST-safe date so times don't get skipped on DST boundaries\n"
20130515 "        dt = new Date('1/1/2010').clearTime().add(Date.HOUR, start);\n"
20130515 '        \n'
20130515 '        for(i=start; i<end; i++){\n'
20130515 '            times.push(dt.format(fmt));\n'
20130515 '            dt = dt.add(Date.MINUTE, mins);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.DayBodyTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            days: days,\n'
20130515 '            dayCount: days.length,\n'
20130515 '            times: times,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            hourSeparatorCls: this.showHourSeparator ? '' : 'no-sep', // the class suppresses the default separator\n"
20130515 '            dayHeight: dayHeight,\n'
20130515 '            hourSeparatorHeight: (this.hourHeight / 2) - 1\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayBodyTemplate.prototype.apply = Ext.ensible.cal.DayBodyTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.BoxLayoutTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render calendar views based on small day boxes within a non-scrolling container (currently\n'
20130515 ' * the {@link Ext.ensible.cal.MonthView MonthView} and the all-day headers for {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div id="{weekLinkId}" class="ext-cal-week-link">{weekNum}</div>\' : \'\';\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.BoxLayoutTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<tpl for="weeks">\',\n'
20130515 '            \'<div id="{[this.id]}-wk-{[xindex-1]}" class="ext-cal-wk-ct" style="top:{[this.getRowTop(xindex, xcount)]}%; height:{[this.getRowHeight(xcount)]}%;">\',\n'
20130515 '                weekLinkTpl,\n'
20130515 '                \'<table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                 \'<td id="{[this.id]}-day-{date:date("Ymd")}" class="{cellCls}">&#160;</td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 '                \'<table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                \'<td id="{[this.id]}-ev-day-{date:date("Ymd")}" class="{titleCls}"><div>{title}</div></td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 "            '</div>',\n"
20130515 "        '</tpl>', {\n"
20130515 '            getRowTop: function(i, ln){\n'
20130515 '                return ((i-1)*(100/ln));\n'
20130515 '            },\n'
20130515 '            getRowHeight: function(ln){\n'
20130515 '                return 100/ln;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.BoxLayoutTemplate, Ext.XTemplate, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} firstWeekDateFormat\n'
20130515 '     * The date format used for the day boxes in the first week of the view only (subsequent weeks\n'
20130515 "     * use the {@link #otherWeeksDateFormat} config). Defaults to 'D j'. Note that if the day names header is displayed\n"
20130515 '     * above the first row (e.g., {@link Ext.ensible.cal.MonthView#showHeader MonthView.showHeader} = true)\n'
20130515 '     * then this value is ignored and {@link #otherWeeksDateFormat} will be used instead.\n'
20130515 '     */\n'
20130515 "    firstWeekDateFormat: 'D j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} otherWeeksDateFormat\n'
20130515 '     * The date format used for the date in day boxes (other than the first week, which is controlled by\n'
20130515 "     * {@link #firstWeekDateFormat}). Defaults to 'j'.\n"
20130515 '     */\n'
20130515 "    otherWeeksDateFormat: 'j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} singleDayDateFormat\n'
20130515 "     * The date format used for the date in the header when in single-day view (defaults to 'l, F j, Y').\n"
20130515 '     */\n'
20130515 "    singleDayDateFormat: 'l, F j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayFirstDayFormat\n'
20130515 "     * The date format used for the date in the header when more than one day are visible (defaults to 'M j, Y').\n"
20130515 '     */\n'
20130515 "    multiDayFirstDayFormat: 'M j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayMonthStartFormat\n'
20130515 "     * The date format to use for the first day in a month when more than one day are visible (defaults to 'M j').\n"
20130515 '     * Note that if this day falls on the first day within the view, {@link #multiDayFirstDayFormat} takes precedence.\n'
20130515 '     */\n'
20130515 "    multiDayMonthStartFormat: 'M j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        \n'
20130515 '        Ext.apply(this, o);\n'
20130515 '        \n'
20130515 "        var w = 0, title = '', first = true, isToday = false, showMonth = false, \n"
20130515 '            prevMonth = false, nextMonth = false, isWeekend = false,\n'
20130515 '            weekendCls = o.weekendCls,\n'
20130515 '            prevMonthCls = o.prevMonthCls,\n'
20130515 '            nextMonthCls = o.nextMonthCls,\n'
20130515 '            todayCls = o.todayCls,\n'
20130515 '            weeks = [[]],\n'
20130515 '            today = new Date().clearTime(),\n'
20130515 '            dt = this.viewStart.clone(),\n'
20130515 '            thisMonth = this.startDate.getMonth();\n'
20130515 '        \n'
20130515 '        for(; w < this.weekCount || this.weekCount == -1; w++){\n'
20130515 '            if(dt > this.viewEnd){\n'
20130515 '                break;\n'
20130515 '            }\n'
20130515 '            weeks[w] = [];\n'
20130515 '            \n'
20130515 '            for(var d = 0; d < this.dayCount; d++){\n'
20130515 '                isToday = dt.getTime() === today.getTime();\n'
20130515 '                showMonth = first || (dt.getDate() == 1);\n'
20130515 '                prevMonth = (dt.getMonth() < thisMonth) && this.weekCount == -1;\n'
20130515 '                nextMonth = (dt.getMonth() > thisMonth) && this.weekCount == -1;\n'
20130515 '                isWeekend = dt.getDay() % 6 === 0;\n'
20130515 '                \n'
20130515 '                if(dt.getDay() == 1){\n'
20130515 "                    // The ISO week format 'W' is relative to a Monday week start. If we\n"
20130515 '                    // make this check on Sunday the week number will be off.\n'
20130515 "                    weeks[w].weekNum = this.showWeekNumbers ? dt.format('W') : '&#160;';\n"
20130515 "                    weeks[w].weekLinkId = 'ext-cal-week-'+dt.format('Ymd');\n"
20130515 '                }\n'
20130515 '                \n'
20130515 '                if(showMonth){\n'
20130515 '                    if(isToday){\n'
20130515 '                        title = this.getTodayText();\n'
20130515 '                    }\n'
20130515 '                    else{\n'
20130515 '                        title = dt.format(this.dayCount == 1 ? this.singleDayDateFormat : \n'
20130515 '                                (first ? this.multiDayFirstDayFormat : this.multiDayMonthStartFormat));\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    var dayFmt = (w == 0 && this.showHeader !== true) ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '                    title = isToday ? this.getTodayText() : dt.format(dayFmt);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                weeks[w].push({\n'
20130515 '                    title: title,\n'
20130515 '                    date: dt.clone(),\n'
20130515 "                    titleCls: 'ext-cal-dtitle ' + (isToday ? ' ext-cal-dtitle-today' : '') + \n"
20130515 "                        (w==0 ? ' ext-cal-dtitle-first' : '') +\n"
20130515 "                        (prevMonth ? ' ext-cal-dtitle-prev' : '') + \n"
20130515 "                        (nextMonth ? ' ext-cal-dtitle-next' : ''),\n"
20130515 "                    cellCls: 'ext-cal-day ' + (isToday ? ' '+todayCls : '') + \n"
20130515 "                        (d==0 ? ' ext-cal-day-first' : '') +\n"
20130515 "                        (prevMonth ? ' '+prevMonthCls : '') +\n"
20130515 "                        (nextMonth ? ' '+nextMonthCls : '') +\n"
20130515 "                        (isWeekend && weekendCls ? ' '+weekendCls : '')\n"
20130515 '                });\n'
20130515 '                dt = dt.add(Date.DAY, 1);\n'
20130515 '                first = false;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.BoxLayoutTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            weeks: weeks\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTodayText : function(){\n'
20130515 "        var timeFmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            todayText = this.showTodayText !== false ? this.todayText : '',\n"
20130515 '            timeText = this.showTime !== false ? \' <span id="\'+this.id+\'-clock" class="ext-cal-dtitle-time">\' + \n'
20130515 "                    new Date().format(timeFmt) + '</span>' : '',\n"
20130515 "            separator = todayText.length > 0 || timeText.length > 0 ? ' &#8212; ' : ''; // &#8212; == &mdash;\n"
20130515 '        \n'
20130515 '        if(this.dayCount == 1){\n'
20130515 '            return new Date().format(this.singleDayDateFormat) + separator + todayText + timeText;\n'
20130515 '        }\n'
20130515 '        fmt = this.weekCount == 1 ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '        return todayText.length > 0 ? todayText + timeText : new Date().format(fmt) + timeText;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate.prototype.apply = Ext.ensible.cal.BoxLayoutTemplate.prototype.applyTemplate;\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthViewTemplate\r\n'
20130515 ' * @extends Ext.XTemplate\r\n'
20130515 ' * <p>This is the template used to render the {@link Ext.ensible.cal.MonthView MonthView}. Internally this class defers to an\r\n'
20130515 ' * instance of {@link Ext.calerndar.BoxLayoutTemplate} to handle the inner layout rendering and adds containing elements around\r\n'
20130515 ' * that to form the month view.</p> \r\n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \r\n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate = function(config){\r\n'
20130515 '    \r\n'
20130515 '    Ext.apply(this, config);\r\n'
20130515 '    \r\n'
20130515 '    this.weekTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\r\n'
20130515 '    this.weekTpl.compile();\r\n'
20130515 '    \r\n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div class="ext-cal-week-link-hd">&#160;</div>\' : \'\';\r\n'
20130515 '    \r\n'
20130515 '    Ext.ensible.cal.MonthViewTemplate.superclass.constructor.call(this,\r\n'
20130515 '\t    \'<div class="ext-cal-inner-ct {extraClasses}">\',\r\n'
20130515 '            \'<div class="ext-cal-hd-ct ext-cal-month-hd">\',\r\n'
20130515 '                weekLinkTpl,\r\n'
20130515 '\t\t        \'<table class="ext-cal-hd-days-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t            '<tbody>',\r\n"
20130515 "                        '<tr>',\r\n"
20130515 '                            \'<tpl for="days">\',\r\n'
20130515 '\t\t                        \'<th class="ext-cal-hd-day{[xindex==1 ? " ext-cal-day-first" : ""]}" title="{title}">{name}</th>\',\r\n'
20130515 "\t\t                    '</tpl>',\r\n"
20130515 "                        '</tr>',\r\n"
20130515 "\t\t            '</tbody>',\r\n"
20130515 "\t\t        '</table>',\r\n"
20130515 "            '</div>',\r\n"
20130515 '\t        \'<div class="ext-cal-body-ct">{weeks}</div>\',\r\n'
20130515 "        '</div>'\r\n"
20130515 '    );\r\n'
20130515 '};\r\n'
20130515 '\r\n'
20130515 'Ext.extend(Ext.ensible.cal.MonthViewTemplate, Ext.XTemplate, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderFormat\r\n'
20130515 "     * The date format to use for day headers, if used (defaults to 'D', e.g. 'Mon' for Monday)\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderFormat: 'D',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderTitleFormat\r\n'
20130515 "     * The date format to use for the day header's HTML title attribute displayed on mouseover \r\n"
20130515 "     * (defaults to 'l, F j, Y', e.g. 'Monday, December 27, 2010')\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderTitleFormat: 'l, F j, Y',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    applyTemplate : function(o){\r\n'
20130515 '        var days = [],\r\n'
20130515 '            weeks = this.weekTpl.apply(o),\r\n'
20130515 '            dt = o.viewStart;\r\n'
20130515 '        \r\n'
20130515 '        for(var i = 0; i < 7; i++){\r\n'
20130515 '            var d = dt.add(Date.DAY, i);\r\n'
20130515 '            days.push({\r\n'
20130515 '                name: d.format(this.dayHeaderFormat),\r\n'
20130515 '                title: d.format(this.dayHeaderTitleFormat)\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        var extraClasses = this.showHeader === true ? '' : 'ext-cal-noheader';\r\n"
20130515 '        if(this.showWeekLinks){\r\n'
20130515 "            extraClasses += ' ext-cal-week-links';\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return Ext.ensible.cal.MonthViewTemplate.superclass.applyTemplate.call(this, {\r\n'
20130515 '            days: days,\r\n'
20130515 '            weeks: weeks,\r\n'
20130515 '            extraClasses: extraClasses\r\n'
20130515 '        });\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate.prototype.apply = Ext.ensible.cal.MonthViewTemplate.prototype.applyTemplate;\r\n'
20130515 '/* @private\n'
20130515 ' * @class Ext.dd.ScrollManager\n'
20130515 ' * <p>Provides automatic scrolling of overflow regions in the page during drag operations.</p>\n'
20130515 ' * <p>The ScrollManager configs will be used as the defaults for any scroll container registered with it,\n'
20130515 ' * but you can also override most of the configs per scroll container by adding a \n'
20130515 ' * <tt>ddScrollConfig</tt> object to the target element that contains these properties: {@link #hthresh},\n'
20130515 ' * {@link #vthresh}, {@link #increment} and {@link #frequency}.  Example usage:\n'
20130515 ' * <pre><code>\n'
20130515 "var el = Ext.get('scroll-ct');\n"
20130515 'el.ddScrollConfig = {\n'
20130515 '    vthresh: 50,\n'
20130515 '    hthresh: -1,\n'
20130515 '    frequency: 100,\n'
20130515 '    increment: 200\n'
20130515 '};\n'
20130515 'Ext.dd.ScrollManager.register(el);\n'
20130515 '</code></pre>\n'
20130515 ' * <b>Note: This class uses "Point Mode" and is untested in "Intersect Mode".</b>\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 'Ext.dd.ScrollManager = function(){\n'
20130515 '    var ddm = Ext.dd.DragDropMgr;\n'
20130515 '    var els = {};\n'
20130515 '    var dragEl = null;\n'
20130515 '    var proc = {};\n'
20130515 '    \n'
20130515 '    var onStop = function(e){\n'
20130515 '        dragEl = null;\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var triggerRefresh = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '             ddm.refreshCache(ddm.dragCurrent.groups);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var doScroll = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '            var dds = Ext.dd.ScrollManager;\n'
20130515 '            var inc = proc.el.ddScrollConfig ?\n'
20130515 '                      proc.el.ddScrollConfig.increment : dds.increment;\n'
20130515 '            if(!dds.animate){\n'
20130515 '                if(proc.el.scroll(proc.dir, inc)){\n'
20130515 '                    triggerRefresh();\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                proc.el.scroll(proc.dir, inc, true, dds.animDuration, triggerRefresh);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var clearProc = function(){\n'
20130515 '        if(proc.id){\n'
20130515 '            clearInterval(proc.id);\n'
20130515 '        }\n'
20130515 '        proc.id = 0;\n'
20130515 '        proc.el = null;\n'
20130515 '        proc.dir = "";\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var startProc = function(el, dir){\n'
20130515 '        clearProc();\n'
20130515 '        proc.el = el;\n'
20130515 '        proc.dir = dir;\n'
20130515 '        var freq = (el.ddScrollConfig && el.ddScrollConfig.frequency) ? \n'
20130515 '                el.ddScrollConfig.frequency : Ext.dd.ScrollManager.frequency,\n'
20130515 '            group = el.ddScrollConfig ? el.ddScrollConfig.ddGroup : undefined;\n'
20130515 '        \n'
20130515 '        if(group === undefined || ddm.dragCurrent.ddGroup == group){\n'
20130515 '            proc.id = setInterval(doScroll, freq);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var onFire = function(e, isDrop){\n'
20130515 '        if(isDrop || !ddm.dragCurrent){ return; }\n'
20130515 '        var dds = Ext.dd.ScrollManager;\n'
20130515 '        if(!dragEl || dragEl != ddm.dragCurrent){\n'
20130515 '            dragEl = ddm.dragCurrent;\n'
20130515 '            // refresh regions on drag start\n'
20130515 '            dds.refreshCache();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var xy = Ext.lib.Event.getXY(e);\n'
20130515 '        var pt = new Ext.lib.Point(xy[0], xy[1]);\n'
20130515 '        for(var id in els){\n'
20130515 '            var el = els[id], r = el._region;\n'
20130515 '            var c = el.ddScrollConfig ? el.ddScrollConfig : dds;\n'
20130515 '            if(r && r.contains(pt) && el.isScrollable()){\n'
20130515 '                if(r.bottom - pt.y <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "down");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(r.right - pt.x <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "left");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.y - r.top <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "up");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.x - r.left <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "right");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    ddm.fireEvents = ddm.fireEvents.createSequence(onFire, ddm);\n'
20130515 '    ddm.stopDrag = ddm.stopDrag.createSequence(onStop, ddm);\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        /**\n'
20130515 '         * Registers new overflow element(s) to auto scroll\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be scrolled or an array of either\n'
20130515 '         */\n'
20130515 '        register : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.register(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                els[el.id] = el;\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Unregisters overflow element(s) so they are no longer scrolled\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be removed or an array of either\n'
20130515 '         */\n'
20130515 '        unregister : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.unregister(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                delete els[el.id];\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the top or bottom edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        vthresh : 25,\n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the right or left edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        hthresh : 25,\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * The number of pixels to scroll in each scroll increment (defaults to 50)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        increment : 100,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The frequency of scrolls in milliseconds (defaults to 500)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        frequency : 500,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * True to animate the scroll (defaults to true)\n'
20130515 '         * @type Boolean\n'
20130515 '         */\n'
20130515 '        animate: true,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The animation duration in seconds - \n'
20130515 '         * MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        animDuration: .4,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Manually trigger a cache refresh.\n'
20130515 '         */\n'
20130515 '        refreshCache : function(){\n'
20130515 '            for(var id in els){\n'
20130515 "                if(typeof els[id] == 'object'){ // for people extending the object prototype\n"
20130515 '                    els[id]._region = els[id].getRegion();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();/**\n'
20130515 ' * @class Ext.ensible.cal.StatusProxy\n'
20130515 ' * A specialized drag proxy that supports a drop status icon, {@link Ext.Layer} styles and auto-repair. It also\n'
20130515 " * contains a calendar-specific drag status message containing details about the dragged event's target drop date range.  \n"
20130515 ' * This is the default drag proxy used by all calendar views.\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.StatusProxy = function(config){\n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    this.id = this.id || Ext.id();\n'
20130515 '    this.el = new Ext.Layer({\n'
20130515 '        dh: {\n'
20130515 "            id: this.id, cls: 'ext-dd-drag-proxy x-dd-drag-proxy '+this.dropNotAllowed, cn: [\n"
20130515 "                {cls: 'x-dd-drop-icon'},\n"
20130515 "                {cls: 'ext-dd-ghost-ct', cn:[\n"
20130515 "                    {cls: 'x-dd-drag-ghost'},\n"
20130515 "                    {cls: 'ext-dd-msg'}\n"
20130515 '                ]}\n'
20130515 '            ]\n'
20130515 '        }, \n'
20130515 '        shadow: !config || config.shadow !== false\n'
20130515 '    });\n'
20130515 '    this.ghost = Ext.get(this.el.dom.childNodes[1].childNodes[0]);\n'
20130515 '    this.message = Ext.get(this.el.dom.childNodes[1].childNodes[1]);\n'
20130515 '    this.dropStatus = this.dropNotAllowed;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.StatusProxy, Ext.dd.StatusProxy, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} moveEventCls\n'
20130515 "     * The CSS class to apply to the status element when an event is being dragged (defaults to 'ext-cal-dd-move').\n"
20130515 '     */\n'
20130515 "    moveEventCls : 'ext-cal-dd-move',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} addEventCls\n'
20130515 "     * The CSS class to apply to the status element when drop is not allowed (defaults to 'ext-cal-dd-add').\n"
20130515 '     */\n'
20130515 "    addEventCls : 'ext-cal-dd-add',\n"
20130515 '\n'
20130515 '    // inherit docs\n'
20130515 '    update : function(html){\n'
20130515 "        if(typeof html == 'string'){\n"
20130515 '            this.ghost.update(html);\n'
20130515 '        }else{\n'
20130515 "            this.ghost.update('');\n"
20130515 "            html.style.margin = '0';\n"
20130515 '            this.ghost.dom.appendChild(html);\n'
20130515 '        }\n'
20130515 '        var el = this.ghost.dom.firstChild;\n'
20130515 '        if(el){\n'
20130515 "            Ext.fly(el).setStyle('float', 'none').setHeight('auto');\n"
20130515 "            Ext.getDom(el).id += '-ddproxy';\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /* @private\n'
20130515 '     * Update the calendar-specific drag status message without altering the ghost element.\n'
20130515 '     * @param {String} msg The new status message\n'
20130515 '     */\n'
20130515 '    updateMsg : function(msg){\n'
20130515 '        this.message.update(msg);\n'
20130515 '    }\n'
20130515 '});/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DragZone = Ext.extend(Ext.dd.DragZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 '    \n'
20130515 '    constructor : function(el, config){\n'
20130515 '        if(!Ext.ensible.cal._statusProxyInstance){\n'
20130515 '            Ext.ensible.cal._statusProxyInstance = new Ext.ensible.cal.StatusProxy();\n'
20130515 '        }\n'
20130515 '        this.proxy = Ext.ensible.cal._statusProxyInstance;\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.constructor.call(this, el, config);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        // Check whether we are dragging on an event first\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                start: t.date,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onInitDrag : function(x, y){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            var ghost = this.dragData.ddel.cloneNode(true),\n'
20130515 "                child = Ext.fly(ghost).child('dl');\n"
20130515 '            \n'
20130515 "            Ext.fly(ghost).setWidth('auto');\n"
20130515 '            \n'
20130515 '            if(child){\n'
20130515 '                // for IE/Opera\n'
20130515 "                child.setHeight('auto');\n"
20130515 '            }\n'
20130515 '            this.proxy.update(ghost);\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        else if(this.dragData.start){\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        this.view.onInitDrag();\n'
20130515 '        return true;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterRepair : function(){\n'
20130515 '        if(Ext.enableFx && this.dragData.ddel){\n'
20130515 "            Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor || 'c3daf9');\n"
20130515 '        }\n'
20130515 '        this.dragging = false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getRepairXY : function(e){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            return Ext.Element.fly(this.dragData.ddel).getXY();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterInvalidDrop : function(e, id){\n'
20130515 "        Ext.select('.ext-dd-shim').hide();\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    destroy : function(){\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.destroy.call(this);\n'
20130515 '        delete Ext.ensible.cal._statusProxyInstance;\n'
20130515 '    }    \n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DropZone = Ext.extend(Ext.dd.DropZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    shims : [],\n'
20130515 '    \n'
20130515 '    getTargetFromEvent : function(e){\n'
20130515 '        var dragOffset = this.dragOffset || 0,\n'
20130515 '            y = e.getPageY() - dragOffset,\n'
20130515 '            d = this.view.getDayAt(e.getPageX(), y);\n'
20130515 '        \n'
20130515 '        return d.el ? d : null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var D = Ext.ensible.Date,\n'
20130515 "            start = data.type == 'eventdrag' ? n.date : D.min(data.start, n.date),\n"
20130515 "            end = data.type == 'eventdrag' ? n.date.add(Date.DAY, D.diffDays(data.eventStart, data.eventEnd)) : \n"
20130515 '                D.max(data.start, n.date);\n'
20130515 '        \n'
20130515 '        if(!this.dragStartDate || !this.dragEndDate || (D.diffDays(start, this.dragStartDate) != 0) || (D.diffDays(end, this.dragEndDate) != 0)){\n'
20130515 '            this.dragStartDate = start;\n'
20130515 '            this.dragEndDate = end.clearTime().add(Date.DAY, 1).add(Date.MINUTE, -30);\n'
20130515 '            this.shim(start, end);\n'
20130515 '            \n'
20130515 '            var range = start.format(this.dateFormat);\n'
20130515 '                \n'
20130515 '            if(D.diffDays(start, end) > 0){\n'
20130515 '                end = end.format(this.dateFormat);\n'
20130515 '                range = String.format(this.dateRangeFormat, range, end);\n'
20130515 '            }\n'
20130515 "            var msg = String.format(data.type == 'eventdrag' ? this.moveText : this.createText, range);\n"
20130515 '            data.proxy.updateMsg(msg);\n'
20130515 '        }\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(start, end){\n'
20130515 '        this.currWeek = -1;\n'
20130515 '        var dt = start.clone(),\n'
20130515 '            i = 0, shim, box,\n'
20130515 '            cnt = Ext.ensible.Date.diffDays(dt, end)+1\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        while(i++ < cnt){\n'
20130515 '            var dayEl = this.view.getDayEl(dt);\n'
20130515 '            \n'
20130515 '            // if the date is not in the current view ignore it (this\n'
20130515 '            // can happen when an event is dragged to the end of the\n'
20130515 '            // month so that it ends outside the view)\n'
20130515 '            if(dayEl){\n'
20130515 '                var wk = this.view.getWeekIndex(dt),\n'
20130515 '                    shim = this.shims[wk];\n'
20130515 '            \n'
20130515 '                if(!shim){\n'
20130515 '                    shim = this.createShim();\n'
20130515 '                    this.shims[wk] = shim;\n'
20130515 '                }\n'
20130515 '                if(wk != this.currWeek){\n'
20130515 '                    shim.boxInfo = dayEl.getBox();\n'
20130515 '                    this.currWeek = wk;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box = dayEl.getBox();\n'
20130515 '                    shim.boxInfo.right = box.right;\n'
20130515 '                    shim.boxInfo.width = box.right - shim.boxInfo.x;\n'
20130515 '                }\n'
20130515 '                shim.isActive = true;\n'
20130515 '            }\n'
20130515 '            dt = dt.add(Date.DAY, 1);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                if(shim.isActive){\n'
20130515 '                    shim.show();\n'
20130515 '                    shim.setBox(shim.boxInfo);\n'
20130515 '                }\n'
20130515 '                else if(shim.isVisible()){\n'
20130515 '                    shim.hide();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    createShim : function(){\n'
20130515 '        var owner = this.view.ownerCalendarPanel ? this.view.ownerCalendarPanel : this.view;\n'
20130515 '        if(!this.shimCt){\n'
20130515 "            this.shimCt = Ext.get('ext-dd-shim-ct-'+owner.id);\n"
20130515 '            if(!this.shimCt){\n'
20130515 "                this.shimCt = document.createElement('div');\n"
20130515 "                this.shimCt.id = 'ext-dd-shim-ct-'+owner.id;\n"
20130515 '                owner.getEl().parent().appendChild(this.shimCt);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 "        var el = document.createElement('div');\n"
20130515 "        el.className = 'ext-dd-shim';\n"
20130515 '        this.shimCt.appendChild(el);\n'
20130515 '        \n'
20130515 '        return new Ext.Layer({\n'
20130515 '            shadow:false, \n'
20130515 '            useDisplay:true, \n'
20130515 '            constrain:false\n'
20130515 '        }, el);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    clearShims : function(){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerOver : function(dd, e, data){\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onCalendarDragComplete : function(){\n'
20130515 '        delete this.dragStartDate;\n'
20130515 '        delete this.dragEndDate;\n'
20130515 '        this.clearShims();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel),\n'
20130515 '                    dt = Ext.ensible.Date.copyTime(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], n.date);\n'
20130515 '                    \n'
20130515 '                this.view.onEventDrop(rec, dt);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerDrop : function(dd, e, data){\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDragZone = Ext.extend(Ext.ensible.cal.DragZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    resizeSelector : '.ext-evt-rsz',\n"
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        var t = e.getTarget(this.resizeSelector, 2, true);\n'
20130515 '        if(t){\n'
20130515 '            var p = t.parent(this.eventSelector), \n'
20130515 '                rec = this.view.getEventRecordFromEl(p);\n'
20130515 '            \n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventresize',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: p.dom,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging/resizing an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                dayInfo: t,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDropZone = Ext.extend(Ext.ensible.cal.DropZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var dt, text = this.createText,\n'
20130515 "            timeFormat = Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia';\n"
20130515 '            \n'
20130515 "        if(data.type == 'caldrag'){\n"
20130515 '            if(!this.dragStartMarker){\n'
20130515 '                // Since the container can scroll, this gets a little tricky.\n'
20130515 '                // There is no el in the DOM that we can measure by default since\n'
20130515 '                // the box is simply calculated from the original drag start (as opposed\n'
20130515 '                // to dragging or resizing the event where the orig event box is present).\n'
20130515 '                // To work around this we add a placeholder el into the DOM and give it\n'
20130515 "                // the original starting time's box so that we can grab its updated\n"
20130515 '                // box measurements as the underlying container scrolls up or down.\n'
20130515 '                // This placeholder is removed in onNodeDrop.\n'
20130515 '                this.dragStartMarker = n.el.parent().createChild({\n'
20130515 "                    style: 'position:absolute;'\n"
20130515 '                });\n'
20130515 '                // use the original dayInfo values from the drag start\n'
20130515 '                this.dragStartMarker.setBox(data.dayInfo.timeBox);\n'
20130515 '                this.dragCreateDt = data.dayInfo.date;\n'
20130515 '            }\n'
20130515 '            var endDt, box = this.dragStartMarker.getBox();\n'
20130515 '            box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '            \n'
20130515 '            if(e.xy[1] < box.y){\n'
20130515 '                box.height += n.timeBox.height;\n'
20130515 '                box.y = box.y - box.height + n.timeBox.height;\n'
20130515 '                endDt = this.dragCreateDt.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            this.shim(this.dragCreateDt, box);\n'
20130515 '            \n'
20130515 '            var curr = Ext.ensible.Date.copyTime(n.date, this.dragCreateDt);\n'
20130515 '            this.dragStartDate = Ext.ensible.Date.min(this.dragCreateDt, curr);\n'
20130515 '            this.dragEndDate = endDt || Ext.ensible.Date.max(this.dragCreateDt, curr);\n'
20130515 '                \n'
20130515 '            dt = String.format(this.dateRangeFormat, this.dragStartDate.format(timeFormat), this.dragEndDate.format(timeFormat));\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            var evtEl = Ext.get(data.ddel),\n'
20130515 '                dayCol = evtEl.parent().parent(),\n'
20130515 '                box = evtEl.getBox();\n'
20130515 '            \n'
20130515 '            box.width = dayCol.getWidth();\n'
20130515 '            \n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                if(this.dragOffset === undefined){\n'
20130515 '                    // on fast drags there is a lag between the original drag start xy position and\n'
20130515 "                    // that first detected within the drop zone's getTargetFromEvent method (which is \n"
20130515 '                    // where n.timeBox comes from). to avoid a bad offset we calculate the\n'
20130515 '                    // timeBox based on the initial drag xy, not the current target xy.\n'
20130515 '                    var initialTimeBox = this.view.getDayAt(data.xy[0], data.xy[1]).timeBox;\n'
20130515 '                    this.dragOffset = initialTimeBox.y - box.y;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box.y = n.timeBox.y;\n'
20130515 '                }\n'
20130515 "                dt = n.date.format(this.dateFormat + ' ' + timeFormat);\n"
20130515 '                box.x = n.el.getLeft();\n'
20130515 '                \n'
20130515 '                this.shim(n.date, box);\n'
20130515 '                text = this.moveText;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                if(!this.resizeDt){\n'
20130515 '                    this.resizeDt = n.date;\n'
20130515 '                }\n'
20130515 '                box.x = dayCol.getLeft();\n'
20130515 '                box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '                if(e.xy[1] < box.y){\n'
20130515 '                    box.y -= box.height;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '                }\n'
20130515 '                this.shim(this.resizeDt, box);\n'
20130515 '                \n'
20130515 '                var curr = Ext.ensible.Date.copyTime(n.date, this.resizeDt),\n'
20130515 '                    start = Ext.ensible.Date.min(data.eventStart, curr),\n'
20130515 '                    end = Ext.ensible.Date.max(data.eventStart, curr);\n'
20130515 '                    \n'
20130515 '                data.resizeDates = {\n'
20130515 '                    StartDate: start,\n'
20130515 '                    EndDate: end\n'
20130515 '                }\n'
20130515 '                dt = String.format(this.dateRangeFormat, start.format(timeFormat), end.format(timeFormat));\n'
20130515 '                text = this.resizeText;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        data.proxy.updateMsg(String.format(text, dt));\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(dt, box){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var shim = this.shims[0];\n'
20130515 '        if(!shim){\n'
20130515 '            shim = this.createShim();\n'
20130515 '            this.shims[0] = shim;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        shim.isActive = true;\n'
20130515 '        shim.show();\n'
20130515 '        shim.setBox(box);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventDrop(rec, n.date);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.dragOffset;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventResize(rec, data.resizeDates);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.resizeDt;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                Ext.destroy(this.dragStartMarker);\n'
20130515 '                delete this.dragStartMarker;\n'
20130515 '                delete this.dragCreateDt;\n'
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.EventStore = Ext.extend(Ext.data.Store, {\n'
20130515 '    constructor: function(config){\n'
20130515 '        // By default autoLoad will cause the store to load itself during the\n'
20130515 '        // constructor, before the owning calendar view has a chance to set up\n'
20130515 '        // the initial date params to use during loading.  We replace autoLoad\n'
20130515 '        // with a deferLoad property that the view can check for and use to set\n'
20130515 '        // up default params as needed, then call the load itself. \n'
20130515 '        this.deferLoad = config.autoLoad;\n'
20130515 '        config.autoLoad = false;\n'
20130515 '        \n'
20130515 '        //this._dateCache = [];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.constructor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    load : function(o){\n'
20130515 "        Ext.ensible.log('store load');\n"
20130515 '        \n'
20130515 '        // if params are passed delete the one-time defaults\n'
20130515 '        if(o.params){\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        // this.initialParams will only be set if the store is being loaded manually\n'
20130515 '        // for the first time (autoLoad = false) so the owning calendar view set\n'
20130515 '        // the initial start and end date params to use. Every load after that will\n'
20130515 '        // have these params set automatically during normal UI navigation.\n'
20130515 '        if(this.initialParams){\n'
20130515 '            o = Ext.isObject(o) ? o : {};\n'
20130515 '            o.params = o.params || {};\n'
20130515 '            Ext.apply(o.params, this.initialParams);\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.load.call(this, o);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '//    execute : function(action, rs, options, /* private */ batch) {\n'
20130515 "//        if(action=='read'){\n"
20130515 '//            var i = 0, \n'
20130515 '//                dc = this._dateCache, \n'
20130515 '//                len = dc.length,\n'
20130515 '//                range,\n'
20130515 '//                p = options.params,\n'
20130515 '//                start = p.start,\n'
20130515 '//                end = p.end;\n'
20130515 '//                \n'
20130515 '//            //options.add = true;\n'
20130515 '//            for(i; i<len; i++){\n'
20130515 '//                range = dc[i];\n'
20130515 '//                \n'
20130515 '//            }\n'
20130515 '//        }\n'
20130515 '//        Ext.ensible.cal.EventStore.superclass.execute.apply(this, arguments);\n'
20130515 '//    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventstore', Ext.ensible.cal.EventStore);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * <p>A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.EventRecord EventRecord}s so that they can be easily overridden.</p>\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Event record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the EventMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings;\n'
20130515 "M.Title.mapping = 'evt_title';\n"
20130515 "M.Title.name = 'EventTitle';\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default EventMappings:\n'
20130515 'Ext.ensible.cal.EventMappings.Timestamp = {\n'
20130515 "    name: 'Timestamp',\n"
20130515 "    mapping: 'timestamp',\n"
20130515 "    type: 'date'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire EventMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard EventRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'EventId') should <b>NOT</b> be changed for the default EventMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID', mapping:'evt_id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID', mapping: 'cal_id', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle', mapping: 'evt_title'},\n"
20130515 "    StartDate:   {name: 'StartDt', mapping: 'start_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDt', mapping: 'end_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'},\n"
20130515 "    Location:    {name: 'Location', mapping: 'location'},\n"
20130515 "    Notes:       {name: 'Desc', mapping: 'full_desc'},\n"
20130515 "    Url:         {name: 'LinkUrl', mapping: 'link_url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay', mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'reminder'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard EventRecord:\n'
20130515 "    CreatedBy:   {name: 'CreatedBy', mapping: 'created_by'},\n"
20130515 "    IsPrivate:   {name: 'Private', mapping:'private', type:'boolean'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>EventId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.EventMappings.EventId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'EventId', mapping:'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalendarId', mapping: 'cid', type: 'int'},\n"
20130515 "    Title:       {name: 'Title', mapping: 'title', type: 'string'},\n"
20130515 "    StartDate:   {name: 'StartDate', mapping: 'start', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDate', mapping: 'end', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'}, // not currently used\n"
20130515 "    Location:    {name: 'Location', mapping: 'loc', type: 'string'},\n"
20130515 "    Notes:       {name: 'Notes', mapping: 'notes', type: 'string'},\n"
20130515 "    Url:         {name: 'Url', mapping: 'url', type: 'string'},\n"
20130515 "    IsAllDay:    {name: 'IsAllDay', mapping: 'ad', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'rem', type: 'string'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.CalendarRecord CalendarRecord}s so that they can be easily overridden.\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Calendar record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the CalendarMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 "M.Title.mapping = 'cal_title';\n"
20130515 "M.Title.name = 'CalTitle';\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default CalendarMappings:\n'
20130515 'Ext.ensible.cal.CalendarMappings.Owner = {\n'
20130515 "    name: 'Owner',\n"
20130515 "    mapping: 'owner',\n"
20130515 "    type: 'string'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire CalendarMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard CalendarRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'CalendarId') should <b>NOT</b> be changed for the default CalendarMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Desc', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden', mapping: 'hidden', type: 'boolean'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard CalendarRecord:\n'
20130515 "    Owner:        {name: 'Owner', mapping: 'owner'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>CalendarId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'CalendarId', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'Title', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Description', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'ColorId', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'IsHidden', mapping: 'hidden', type: 'boolean'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.EventRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar event data used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s underlying store. It can be overridden as \n"
20130515 ' * necessary to customize the fields supported by events, although the existing field definition names \n'
20130515 ' * should not be altered. If your model fields are named differently you should update the <b>mapping</b>\n'
20130515 ' * configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new event record instance are <tt>StartDate</tt> and\n'
20130515 ' * <tt>EndDate</tt>.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.EventRecord({\n'
20130515 "    StartDate: '2101-01-12 12:00:00',\n"
20130515 "    EndDate: '2101-01-12 13:30:00',\n"
20130515 "    Title: 'My cool event',\n"
20130515 "    Notes: 'Some notes'\n"
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.EventMappings EventMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the field names match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings,\n'
20130515 '    rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '\n'
20130515 "rec.data[M.StartDate.name] = '2101-01-12 12:00:00';\n"
20130515 "rec.data[M.EndDate.name] = '2101-01-12 13:30:00';\n"
20130515 "rec.data[M.Title.name] = 'My cool event';\n"
20130515 "rec.data[M.Notes.name] = 'Some notes';\n"
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.EventMappings EventMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.EventMappings} for complete details and \n'
20130515 ' * examples of reconfiguring an EventRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated EventRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.EventMappings,\n'
20130515 '        proto = C.EventRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.EventRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar items used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s calendar store. If your model fields \n"
20130515 ' * are named differently you should update the <b>mapping</b> configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new calendar record instance are CalendarId and\n'
20130515 ' * Title.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord({\n'
20130515 '    CalendarId: 5,\n'
20130515 "    Title: 'My Holidays',\n"
20130515 "    Description: 'My personal holiday schedule',\n"
20130515 '    ColorId: 3\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.CalendarMappings CalendarMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the fields match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 '\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord();\n'
20130515 'rec.data[M.CalendarId.name] = 5;\n'
20130515 "rec.data[M.Title.name] = 'My Holidays';\n"
20130515 "rec.data[M.Description.name] = 'My personal holiday schedule';\n"
20130515 'rec.data[M.ColorId.name] = 3;\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.CalendarMappings CalendarMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.CalendarMappings} for complete details and \n'
20130515 ' * examples of reconfiguring a CalendarRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated CalendarRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.CalendarMappings,\n'
20130515 '        proto = C.CalendarRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.CalendarRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();/* @private\n'
20130515 ' * This is an internal helper class for the calendar views and should not be overridden.\n'
20130515 ' * It is responsible for the base event rendering logic underlying all views based on a \n'
20130515 ' * box-oriented layout that supports day spanning (MonthView, MultiWeekView, DayHeaderView).\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekEventRenderer = function(){\n'
20130515 '    \n'
20130515 '    var getEventRow = function(id, week, index){\n'
20130515 "        var indexOffset = 1; //skip row with date #'s\n"
20130515 "        var evtRow, wkRow = Ext.get(id+'-wk-'+week);\n"
20130515 '        if(wkRow){\n'
20130515 "            var table = wkRow.child('.ext-cal-evt-tbl', true);\n"
20130515 '            evtRow = table.tBodies[0].childNodes[index+indexOffset];\n'
20130515 '            if(!evtRow){\n'
20130515 "                evtRow = Ext.DomHelper.append(table.tBodies[0], '<tr></tr>');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return Ext.get(evtRow);\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        render: function(o){\n'
20130515 '            var w = 0, grid = o.eventGrid, \n'
20130515 '                dt = o.viewStart.clone(),\n'
20130515 '                eventTpl = o.tpl,\n'
20130515 '                max = o.maxEventsPerDay != undefined ? o.maxEventsPerDay : 999,\n'
20130515 '                weekCount = o.weekCount < 1 ? 6 : o.weekCount,\n'
20130515 '                dayCount = o.weekCount == 1 ? o.dayCount : 7;\n'
20130515 '            \n'
20130515 '            for(; w < weekCount; w++){\n'
20130515 '                var row, d = 0, wk = grid[w];\n'
20130515 '                var startOfWeek = dt.clone();\n'
20130515 '                var endOfWeek = startOfWeek.add(Date.DAY, dayCount).add(Date.MILLI, -1);\n'
20130515 '                \n'
20130515 '                for(; d < dayCount; d++){\n'
20130515 '                    if(wk && wk[d]){\n'
20130515 '                        var ev = emptyCells = skipped = 0, \n'
20130515 '                            day = wk[d], ct = day.length, evt;\n'
20130515 '                        \n'
20130515 '                        for(; ev < ct; ev++){\n'
20130515 '                            if(!day[ev]){\n'
20130515 '                                emptyCells++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            if(emptyCells > 0 && ev-emptyCells < max){\n'
20130515 '                                row = getEventRow(o.id, w, ev-emptyCells);\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+ct+'-day-'+dt.format('Ymd')\n"
20130515 '                                }\n'
20130515 '                                if(emptyCells > 1 && max-ev > emptyCells){\n'
20130515 '                                    cellCfg.rowspan = Math.min(emptyCells, max-ev);\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                                emptyCells = 0;\n'
20130515 '                            }\n'
20130515 '                            \n'
20130515 '                            if(ev >= max){\n'
20130515 '                                skipped++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            evt = day[ev];\n'
20130515 '                            \n'
20130515 '                            if(!evt.isSpan || evt.isSpanStart){ //skip non-starting span cells\n'
20130515 '                                var item = evt.data || evt.event.data;\n'
20130515 '                                item._weekIndex = w;\n'
20130515 '                                item._renderAsAllDay = item[Ext.ensible.cal.EventMappings.IsAllDay.name] || evt.isSpanStart;\n'
20130515 '                                item.spanLeft = item[Ext.ensible.cal.EventMappings.StartDate.name].getTime() < startOfWeek.getTime();\n'
20130515 '                                item.spanRight = item[Ext.ensible.cal.EventMappings.EndDate.name].getTime() > endOfWeek.getTime();\n'
20130515 "                                item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \n"
20130515 "                                    'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\n"
20130515 '                                        \n'
20130515 '                                var row = getEventRow(o.id, w, ev),\n'
20130515 '                                    cellCfg = {\n'
20130515 "                                        tag: 'td',\n"
20130515 "                                        cls: 'ext-cal-ev',\n"
20130515 '                                        cn : eventTpl.apply(o.templateDataFn(item))\n'
20130515 '                                    },\n'
20130515 '                                    diff = Ext.ensible.Date.diffDays(dt, item[Ext.ensible.cal.EventMappings.EndDate.name]) + 1,\n'
20130515 '                                    cspan = Math.min(diff, dayCount-d);\n'
20130515 '                                    \n'
20130515 '                                if(cspan > 1){\n'
20130515 '                                    cellCfg.colspan = cspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                        if(ev > max){\n'
20130515 '                            row = getEventRow(o.id, w, max);\n'
20130515 '                            Ext.DomHelper.append(row, {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev-more',\n"
20130515 "                                id: 'ext-cal-ev-more-'+dt.format('Ymd'),\n"
20130515 '                                cn: {\n'
20130515 "                                    tag: 'a',\n"
20130515 '                                    html: String.format(o.getMoreText(skipped), skipped)\n'
20130515 '                                }\n'
20130515 '                            });\n'
20130515 '                        }\n'
20130515 '                        if(ct < o.evtMaxCount[w]){\n'
20130515 '                            row = getEventRow(o.id, w, ct);\n'
20130515 '                            if(row){\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    //html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+(ct+1)+'-day-'+dt.format('Ymd')\n"
20130515 '                                };\n'
20130515 '                                var rowspan = o.evtMaxCount[w] - ct;\n'
20130515 '                                if(rowspan > 1){\n'
20130515 '                                    cellCfg.rowspan = rowspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                    }else{\n'
20130515 '                        row = getEventRow(o.id, w, 0);\n'
20130515 '                        if(row){\n'
20130515 '                            var cellCfg = {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev',\n"
20130515 "                                html: '&#160;',\n"
20130515 "                                id: o.id+'-empty-day-'+dt.format('Ymd')\n"
20130515 '                            };\n'
20130515 '                            if(o.evtMaxCount[w] > 1){\n'
20130515 '                                cellCfg.rowspan = o.evtMaxCount[w];\n'
20130515 '                            }\n'
20130515 '                            Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                        }\n'
20130515 '                    }\n'
20130515 '                    dt = dt.add(Date.DAY, 1);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarCombo\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing from the list of available calendars to assign an event to. You must\n'
20130515 ' * pass a populated calendar store as the store config or the combo will not work.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 "fieldLabel: 'Calendar',\n"
20130515 "triggerAction: 'all',\n"
20130515 "mode: 'local',\n"
20130515 'forceSelection: true,\n'
20130515 'width: 200\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 "    fieldLabel: 'Calendar',\n"
20130515 "    triggerAction: 'all',\n"
20130515 "    mode: 'local',\n"
20130515 '    forceSelection: true,\n'
20130515 '    selectOnFocus: true,\n'
20130515 '    width: 200,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 "    defaultCls: 'x-cal-default',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        var C = Ext.ensible.cal,\n'
20130515 '            M = C.CalendarMappings;\n'
20130515 '        \n'
20130515 '        C.CalendarCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.valueField = M.CalendarId.name;\n'
20130515 '        this.displayField = M.Title.name;\n'
20130515 '        \n'
20130515 '        this.tpl = this.tpl ||\n'
20130515 '              \'<tpl for="."><div class="x-combo-list-item x-cal-{\' + M.ColorId.name +\n'
20130515 '              \'}"><div class="ext-cal-picker-icon">&#160;</div>{\' + this.displayField + \'}</div></tpl>\';\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.wrap = this.el.up('.x-form-field-wrap');\n"
20130515 "        this.wrap.addClass('ext-calendar-picker');\n"
20130515 '        \n'
20130515 '        this.icon = Ext.DomHelper.append(this.wrap, {\n'
20130515 "            tag: 'div', cls: 'ext-cal-picker-icon ext-cal-picker-mainicon'\n"
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    assertValue  : function(){\n'
20130515 '        var val = this.getRawValue(),\n'
20130515 '            rec = this.findRecord(this.displayField, val);\n'
20130515 '\n'
20130515 '        if(!rec && this.forceSelection){\n'
20130515 '            if(val.length > 0 && val != this.emptyText){\n'
20130515 '                // Override this method simply to fix the original logic that was here.\n'
20130515 '                // The orignal method simply reverts the displayed text but the store remains\n'
20130515 '                // filtered with the invalid query, meaning it contains no records. This causes\n'
20130515 '                // problems with redisplaying the field -- much better to clear the filter and\n'
20130515 '                // reset the original value so everything works as expected.\n'
20130515 '                this.store.clearFilter();\n'
20130515 '                this.setValue(this.value);\n'
20130515 '                this.applyEmptyText();\n'
20130515 '            }else{\n'
20130515 '                this.clearValue();\n'
20130515 '            }\n'
20130515 '        }else{\n'
20130515 '            if(rec){\n'
20130515 '                if (val == rec.get(this.displayField) && this.value == rec.get(this.valueField)){\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '                val = rec.get(this.valueField || this.displayField);\n'
20130515 '            }\n'
20130515 '            this.setValue(val);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getStyleClass: function(calendarId){\n'
20130515 "        if(calendarId && calendarId !== ''){\n"
20130515 '            var rec = this.store.getById(calendarId);\n'
20130515 "            return 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    setValue: function(value) {\n'
20130515 '        this.wrap.removeClass(this.getStyleClass(this.getValue()));\n'
20130515 '        value = value || this.store.getAt(0).data[Ext.ensible.cal.CalendarMappings.CalendarId.name];\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.setValue.call(this, value);\n'
20130515 '        this.wrap.addClass(this.getStyleClass(value));\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcombo', Ext.ensible.cal.CalendarCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 160,\n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'pattern',\n"
20130515 "    valueField: 'id',\n"
20130515 '    \n'
20130515 '    recurrenceText: {\n'
20130515 "        none: 'Does not repeat',\n"
20130515 "        daily: 'Daily',\n"
20130515 "        weekly: 'Weekly',\n"
20130515 "        monthly: 'Monthly',\n"
20130515 "        yearly: 'Yearly'\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 "        this.addEvents('recurrencechange');\n"
20130515 '        \n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 "            fields: ['id', 'pattern'],\n"
20130515 '            idIndex: 0,\n'
20130515 '            data: [\n'
20130515 "                ['NONE', this.recurrenceText.none],\n"
20130515 "                ['DAILY', this.recurrenceText.daily],\n"
20130515 "                ['WEEKLY', this.recurrenceText.weekly],\n"
20130515 "                ['MONTHLY', this.recurrenceText.monthly],\n"
20130515 "                ['YEARLY', this.recurrenceText.yearly]\n"
20130515 '            ]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initValue : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initValue.call(this);\n'
20130515 '        if(this.value != undefined){\n'
20130515 "            this.fireEvent('recurrencechange', this.value);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        var old = this.value;\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.setValue.call(this, v);\n'
20130515 '        if(old != v){\n'
20130515 "            this.fireEvent('recurrencechange', v);\n"
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencecombo', Ext.ensible.cal.RecurrenceCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' * Rrule info: http://www.kanzaki.com/docs/ical/rrule.html\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceField = Ext.extend(Ext.form.Field, {\n'
20130515 '    \n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 '    startDate: new Date().clearTime(),\n'
20130515 '    enableFx: true,\n'
20130515 '    \n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.initComponent.call(this);\n'
20130515 '        if(!this.height){\n'
20130515 '            this.autoHeight = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.frequencyCombo = new Ext.ensible.cal.RecurrenceCombo({\n'
20130515 "                id: this.id+'-frequency',\n"
20130515 '                listeners: {\n'
20130515 "                    'recurrencechange': {\n"
20130515 '                        fn: this.showOptions,\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            if(this.fieldLabel){\n'
20130515 '                this.frequencyCombo.fieldLabel = this.fieldLabel;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.innerCt = new Ext.Container({\n'
20130515 "                cls: 'extensible-recur-inner-ct',\n"
20130515 '                items: []\n'
20130515 '            });\n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'extensible-recur-ct',\n"
20130515 '                renderTo: ct,\n'
20130515 '                items: [this.frequencyCombo, this.innerCt]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.innerCt.ownerCt = this.fieldCt;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll(this.initSubComponents());\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '//    afterRender : function(){\n'
20130515 '//        Ext.ensible.cal.RecurrenceField.superclass.afterRender.call(this);\n'
20130515 '//        this.setStartDate(this.startDate);\n'
20130515 '//    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initValue : function(){\n'
20130515 '        this.setStartDate(this.startDate);\n'
20130515 '        \n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else if(this.frequency !== undefined){\n'
20130515 "            this.setValue('FREQ='+this.frequency);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('NONE');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showOptions : function(o){\n'
20130515 "        var layoutChanged = false, unit = 'day';\n"
20130515 '        \n'
20130515 "        if(o != 'NONE'){\n"
20130515 '            this.hideSubPanels();\n'
20130515 '        }\n'
20130515 '        this.frequency = o;\n'
20130515 '        \n'
20130515 '        switch(o){\n'
20130515 "            case 'DAILY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'WEEKLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.weekly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'week';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'MONTHLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.monthly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'month';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'YEARLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.yearly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'year';\n"
20130515 '                break;\n'
20130515 '            \n'
20130515 '            default:\n'
20130515 '                // case NONE\n'
20130515 '                this.hideInnerCt();\n'
20130515 '                return; \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(layoutChanged){\n'
20130515 '            this.innerCt.doLayout();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.showInnerCt();\n'
20130515 '        this.repeatEvery.updateLabel(unit);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showSubPanel : function(p){\n'
20130515 '        if (p.rendered) {\n'
20130515 '            p.show();\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(this.repeatEvery.rendered){\n'
20130515 '                // make sure weekly/monthly options show in the middle\n'
20130515 '                p = this.innerCt.insert(1, p);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                p = this.innerCt.add(p);\n'
20130515 '            }\n'
20130515 '            p.show();\n'
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showInnerCt: function(){\n'
20130515 '        if(!this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideIn('t', {\n"
20130515 '                    duration: .3\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.show();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideInnerCt: function(){\n'
20130515 '        if(this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideOut('t', {\n"
20130515 '                    duration: .3,\n'
20130515 "                    easing: 'easeIn',\n"
20130515 '                    callback: this.hideSubPanels,\n'
20130515 '                    scope: this\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.hide();\n'
20130515 '                this.hideSubPanels();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setStartDate : function(dt){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setStartDate(dt);\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getValue : function(){\n'
20130515 '        if(!this.rendered) {\n'
20130515 '            return this.value;\n'
20130515 '        }\n'
20130515 "        if(this.frequency=='NONE'){\n"
20130515 "            return '';\n"
20130515 '        }\n'
20130515 "        var value = 'FREQ='+this.frequency;\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            if(p.isVisible()){\n'
20130515 '                value += p.getValue();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        return value;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        this.value = v;\n'
20130515 '        \n'
20130515 "        if(v == null || v == '' || v == 'NONE'){\n"
20130515 "            this.frequencyCombo.setValue('NONE');\n"
20130515 "            this.showOptions('NONE');\n"
20130515 '            return this;\n'
20130515 '        }\n'
20130515 "        var parts = v.split(';');\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setValue(parts);\n'
20130515 '        });\n'
20130515 '        Ext.each(parts, function(p){\n'
20130515 "            if(p.indexOf('FREQ') > -1){\n"
20130515 "                var freq = p.split('=')[1];\n"
20130515 '                this.frequencyCombo.setValue(freq);\n'
20130515 '                this.showOptions(freq);\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideSubPanels : function(){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.hide();\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initSubComponents : function(){\n'
20130515 '        Ext.ensible.cal.recurrenceBase = Ext.extend(Ext.Container, {\n'
20130515 "            fieldLabel: ' ',\n"
20130515 "            labelSeparator: '',\n"
20130515 '            hideLabel: true,\n'
20130515 "            layout: 'table',\n"
20130515 "            anchor: '100%',\n"
20130515 '            startDate: this.startDate,\n'
20130515 '\n'
20130515 '            //TODO: This is not I18N-able:\n'
20130515 '            getSuffix : function(n){\n'
20130515 '                if(!Ext.isNumber(n)){\n'
20130515 "                    return '';\n"
20130515 '                }\n'
20130515 '                switch (n) {\n'
20130515 '                    case 1:\n'
20130515 '                    case 21:\n'
20130515 '                    case 31:\n'
20130515 '                        return "st";\n'
20130515 '                    case 2:\n'
20130515 '                    case 22:\n'
20130515 '                        return "nd";\n'
20130515 '                    case 3:\n'
20130515 '                    case 23:\n'
20130515 '                        return "rd";\n'
20130515 '                    default:\n'
20130515 '                        return "th";\n'
20130515 '                }\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            //shared by monthly and yearly components:\n'
20130515 '            initNthCombo: function(cbo){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    dt = this.startDate,\n'
20130515 '                    store = cbo.getStore(),\n'
20130515 '                    last = dt.getLastDateOfMonth().getDate(),\n'
20130515 '                    dayNum = dt.getDate(),\n'
20130515 "                    nthDate = dt.format('jS') + ' day',\n"
20130515 "                    isYearly = this.id.indexOf('-yearly') > -1,\n"
20130515 "                    yearlyText = ' in ' + dt.format('F'),\n"
20130515 '                    nthDayNum, nthDay, lastDay, lastDate, idx, data, s;\n'
20130515 '                    \n'
20130515 '                nthDayNum = Math.ceil(dayNum / 7);\n'
20130515 "                nthDay = nthDayNum + this.getSuffix(nthDayNum) + dt.format(' l');\n"
20130515 '                if(isYearly){\n'
20130515 '                    nthDate += yearlyText;\n'
20130515 '                    nthDay += yearlyText;\n'
20130515 '                }\n'
20130515 '                data = [[nthDate],[nthDay]];\n'
20130515 '                \n'
20130515 "                s = isYearly ? yearlyText : '';\n"
20130515 '                if(last-dayNum < 7){\n'
20130515 "                    data.push(['last '+dt.format('l')+s]);\n"
20130515 '                }\n'
20130515 '                if(last == dayNum){\n'
20130515 "                    data.push(['last day'+s]);\n"
20130515 '                }\n'
20130515 '                \n'
20130515 "                idx = store.find('field1', cbo.getValue());\n"
20130515 '                store.removeAll();\n'
20130515 '                cbo.clearValue();\n'
20130515 '                store.loadData(data);\n'
20130515 '                \n'
20130515 '                if(idx > data.length-1){\n'
20130515 '                    idx = data.length-1;\n'
20130515 '                }\n'
20130515 '                cbo.setValue(store.getAt(idx > -1 ? idx : 0).data.field1);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            setValue:Ext.emptyFn\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.repeatEvery = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-every',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'Repeat every'\n"
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-every-num',\n"
20130515 '                value: 1,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                enableKeyEvents: true,\n'
20130515 '                listeners: {\n'
20130515 "                    'keyup': {\n"
20130515 '                        fn: function(){\n'
20130515 '                            this.repeatEvery.updateLabel();\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-every-label'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.updateLabel();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = Ext.getCmp(this.id+'-num').getValue();\n"
20130515 "                return v > 1 ? ';INTERVAL='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('INTERVAL') > -1){\n"
20130515 "                        var interval = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(interval);\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            updateLabel: function(type){\n'
20130515 '                if(this.rendered){\n'
20130515 "                    var s = Ext.getCmp(this.id+'-num').getValue() == 1 ? '' : 's';\n"
20130515 "                    this.type = type ? type.toLowerCase() : this.type || 'day';\n"
20130515 "                    var lbl = Ext.getCmp(this.id+'-label');\n"
20130515 '                    if(lbl.rendered){\n'
20130515 "                        lbl.update(this.type + s + ' beginning ' + this.startDate.format('l, F j'));\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            afterRender: function(){\n'
20130515 '                Ext.ensible.cal.recurrenceBase.superclass.afterRender.call(this);\n'
20130515 '                this.updateLabel();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.weekly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-weekly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 2\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on:'\n"
20130515 '            },{\n'
20130515 "                xtype: 'checkboxgroup',\n"
20130515 "                id: this.id+'-weekly-days',\n"
20130515 '                items: [\n'
20130515 "                    {boxLabel: 'Sun', name: 'SU', id: this.id+'-weekly-SU'},\n"
20130515 "                    {boxLabel: 'Mon', name: 'MO', id: this.id+'-weekly-MO'},\n"
20130515 "                    {boxLabel: 'Tue', name: 'TU', id: this.id+'-weekly-TU'},\n"
20130515 "                    {boxLabel: 'Wed', name: 'WE', id: this.id+'-weekly-WE'},\n"
20130515 "                    {boxLabel: 'Thu', name: 'TH', id: this.id+'-weekly-TH'},\n"
20130515 "                    {boxLabel: 'Fri', name: 'FR', id: this.id+'-weekly-FR'},\n"
20130515 "                    {boxLabel: 'Sat', name: 'SA', id: this.id+'-weekly-SA'}\n"
20130515 '                ]\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.selectToday();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            selectToday: function(){\n'
20130515 '                this.clearValue();\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                Ext.getCmp(this.id + '-days').setValue(day, true);\n"
20130515 '            },\n'
20130515 '            clearValue: function(){\n'
20130515 "                Ext.getCmp(this.id + '-days').setValue([false, false, false, false, false, false, false]);\n"
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = '', sel = Ext.getCmp(this.id+'-days').getValue();\n"
20130515 '                Ext.each(sel, function(chk){\n'
20130515 '                    if(v.length > 0){\n'
20130515 "                        v += ',';\n"
20130515 '                    }\n'
20130515 '                    v += chk.name;\n'
20130515 '                });\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                return v.length > 0 && v != day ? ';BYDAY='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                this.clearValue();\n'
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('BYDAY') > -1){\n"
20130515 "                        var days = p.split('=')[1].split(','),\n"
20130515 '                            vals = {};\n'
20130515 '                            \n'
20130515 '                        Ext.each(days, function(d){\n'
20130515 '                            vals[d] = true;\n'
20130515 '                        }, this);\n'
20130515 '                        \n'
20130515 "                        Ext.getCmp(this.id+'-days').setValue(vals);\n"
20130515 '                        return set = true;\n'
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                \n'
20130515 '                if(!set){\n'
20130515 '                    this.selectToday();\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.monthly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-monthly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-monthly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 150,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'of each month'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase();\n"
20130515 '                \n'
20130515 '                if (idx > -1) {\n'
20130515 '                    switch(idx){\n'
20130515 "                        case 0:  return ';BYMONTHDAY='+dt.format('j');\n"
20130515 "                        case 1:  return ';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return ';BYDAY=-1'+day;\n"
20130515 "                        default: return ';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.yearly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-yearly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-yearly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 170,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'each year'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase(),\n"
20130515 "                    byMonth = ';BYMONTH='+dt.format('n');\n"
20130515 '                \n'
20130515 '                if(idx > -1){\n'
20130515 '                    switch(idx){\n'
20130515 '                        case 0:  return byMonth;\n'
20130515 "                        case 1:  return byMonth+';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return byMonth+';BYDAY=-1'+day;\n"
20130515 "                        default: return byMonth+';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.until = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-until',\n"
20130515 "            untilDateFormat: 'Ymd\\\\T000000\\\\Z',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 5\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'and continuing'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-until-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 85,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 "                value: 'forever',\n"
20130515 "                store: ['forever', 'for', 'until'],\n"
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(cbo, rec){\n'
20130515 "                            var dt = Ext.getCmp(this.id+'-until-date');\n"
20130515 "                            if(rec.data.field1 == 'until'){\n"
20130515 '                                dt.show();\n'
20130515 "                                if (dt.getValue() == '') {\n"
20130515 '                                    dt.setValue(this.startDate.add(Date.DAY, 5));\n'
20130515 '                                    dt.setMinValue(this.startDate.clone().add(Date.DAY, 1));\n'
20130515 '                                }\n'
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 '                                dt.hide();\n'
20130515 '                            }\n'
20130515 "                            if(rec.data.field1 == 'for'){\n"
20130515 "                                Ext.getCmp(this.id+'-until-num').show();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').show();\n"
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 "                                Ext.getCmp(this.id+'-until-num').hide();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').hide();\n"
20130515 '                            }\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'datefield',\n"
20130515 "                id: this.id+'-until-date',\n"
20130515 '                showToday: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-until-num',\n"
20130515 '                value: 5,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-until-endlabel',\n"
20130515 "                text: 'occurrences',\n"
20130515 '                hidden: true\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var dt = Ext.getCmp(this.id+'-date');\n"
20130515 '                if(dt.isVisible()){\n'
20130515 "                    return ';UNTIL='+dt.getValue().format(this.untilDateFormat);\n"
20130515 '                }\n'
20130515 "                var ct = Ext.getCmp(this.id+'-num');\n"
20130515 '                if(ct.isVisible()){\n'
20130515 "                    return ';COUNT='+ct.getValue();\n"
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('COUNT') > -1){\n"
20130515 "                        var count = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('for');\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(count).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').show();\n"
20130515 '                    }\n'
20130515 "                    else if(p.indexOf('UNTIL') > -1){\n"
20130515 "                        var dt = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('until');\n"
20130515 "                        Ext.getCmp(this.id+'-date').setValue(Date.parseDate(dt, this.untilDateFormat)).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').hide();\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        return [this.repeatEvery, this.weekly, this.monthly, this.yearly, this.until];\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencefield', Ext.ensible.cal.RecurrenceField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DateRangeField\n'
20130515 ' * @extends Ext.form.Field\n'
20130515 ' * <p>A combination field that includes start and end dates and times, as well as an optional all-day checkbox.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DateRangeField = Ext.extend(Ext.form.Field, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} toText\n'
20130515 "     * The text to display in between the date/time fields (defaults to 'to')\n"
20130515 '     */\n'
20130515 "    toText: 'to',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} allDayText\n'
20130515 "     * The text to display as the label for the all day checkbox (defaults to 'All day')\n"
20130515 '     */\n'
20130515 "    allDayText: 'All day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String/Boolean} singleLine\n'
20130515 '     * This value can be set explicitly to <code>true</code> or <code>false</code> to force the field to render on\n'
20130515 "     * one line or two lines respectively.  The default value is <code>'auto'</code> which means that the field will\n"
20130515 "     * calculate its container's width and compare it to {@link singleLineMinWidth} to determine whether to render \n"
20130515 '     * on one line or two automatically.  Note that this only applies at render time -- once the field is rendered\n'
20130515 '     * the layout cannot be changed.\n'
20130515 '     */\n'
20130515 "    singleLine: 'auto',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} singleLineMinWidth\n'
20130515 "     * If {@link singleLine} is set to 'auto' it will use this value to determine whether to render the field on one\n"
20130515 '     * line or two. This value is the approximate minimum width required to render the field on a single line, so if\n'
20130515 "     * the field's container is narrower than this value it will automatically be rendered on two lines.\n"
20130515 '     */\n'
20130515 '    singleLineMinWidth: 490,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} dateFormat\n'
20130515 "     * The date display format used by the date fields (defaults to 'n/j/Y') \n"
20130515 '     */\n'
20130515 "    dateFormat: 'n/j/Y',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.startDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-start-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.startTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-start-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.endTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-end-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            })\n'
20130515 '            this.endDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-end-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.allDay = new Ext.form.Checkbox({\n'
20130515 "                id: this.id+'-allday',\n"
20130515 '                hidden: this.showTimes === false || this.showAllDay === false,\n'
20130515 '                boxLabel: this.allDayText,\n'
20130515 '                handler: function(chk, checked){\n'
20130515 '                    this.startTime.setVisible(!checked);\n'
20130515 '                    this.endTime.setVisible(!checked);\n'
20130515 '                },\n'
20130515 '                scope: this\n'
20130515 '            });\n'
20130515 '            this.toLabel = new Ext.form.Label({\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-to-label',\n"
20130515 '                text: this.toText\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            var singleLine = this.singleLine;\n'
20130515 "            if(singleLine == 'auto'){\n"
20130515 "                var el, w = this.ownerCt.getWidth() - this.ownerCt.getEl().getPadding('lr');\n"
20130515 "                if(el = this.ownerCt.getEl().child('.x-panel-body')){\n"
20130515 "                    w -= el.getPadding('lr');\n"
20130515 '                }\n'
20130515 "                if(el = this.ownerCt.getEl().child('.x-form-item-label')){\n"
20130515 "                    w -= el.getWidth() - el.getPadding('lr');\n"
20130515 '                }\n'
20130515 '                singleLine = w <= this.singleLineMinWidth ? false : true;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'ext-dt-range',\n"
20130515 '                renderTo: ct,\n'
20130515 "                layout: 'table',\n"
20130515 '                layoutConfig: {\n'
20130515 '                    columns: singleLine ? 6 : 3\n'
20130515 '                },\n'
20130515 '                defaults: {\n'
20130515 '                    hideParent: true\n'
20130515 '                },\n'
20130515 '                items:[\n'
20130515 '                    this.startDate,\n'
20130515 '                    this.startTime,\n'
20130515 '                    this.toLabel,\n'
20130515 '                    singleLine ? this.endTime : this.endDate,\n'
20130515 '                    singleLine ? this.endDate : this.endTime,\n'
20130515 '                    this.allDay\n'
20130515 '                ]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll([this.startDate, this.endDate, this.toLabel, this.startTime, this.endTime, this.allDay]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.onRender.call(this, ct, position);\n'
20130515 '        \n'
20130515 '        if(!singleLine){\n'
20130515 "            this.el.child('tr').addClass('ext-dt-range-row1');\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onFieldChange: function(type, startend){\n'
20130515 '        this.checkDates(type, startend);\n'
20130515 "        this.fireEvent('change', this, this.getValue());\n"
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    checkDates: function(type, startend){\n'
20130515 "        var startField = Ext.getCmp(this.id+'-start-'+type),\n"
20130515 "            endField = Ext.getCmp(this.id+'-end-'+type),\n"
20130515 "            startValue = this.getDT('start'),\n"
20130515 "            endValue = this.getDT('end');\n"
20130515 '\n'
20130515 '        if(startValue > endValue){\n'
20130515 "            if(startend=='start'){\n"
20130515 '                endField.setValue(startValue);\n'
20130515 '            }else{\n'
20130515 '                startField.setValue(endValue);\n'
20130515 "                this.checkDates(type, 'start');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        if(type=='date'){\n"
20130515 "            this.checkDates('time', startend);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns an array containing the following values in order:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The start date/time</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The end date/time</div></li>\n'
20130515 '     * <li><b><code>Boolean</code></b> : <div class="sub-desc">True if the dates are all-day, false \n'
20130515 '     * if the time values should be used</div></li><ul></div>\n'
20130515 '     * @return {Array} The array of return values\n'
20130515 '     */\n'
20130515 '    getValue: function(){\n'
20130515 '        return [\n'
20130515 "            this.getDT('start'), \n"
20130515 "            this.getDT('end'),\n"
20130515 '            this.allDay.getValue()\n'
20130515 '        ];\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private getValue helper\n'
20130515 '    getDT: function(startend){\n'
20130515 "        var time = this[startend+'Time'].getValue(),\n"
20130515 "            dt = this[startend+'Date'].getValue();\n"
20130515 '            \n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format(this[startend+'Date'].format);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            return null;\n'
20130515 '        };\n'
20130515 "        if(time != ''){\n"
20130515 "            return Date.parseDate(dt+' '+time, this[startend+'Date'].format+' '+this[startend+'Time'].format);\n"
20130515 '        }\n'
20130515 "        return Date.parseDate(dt, this[startend+'Date'].format);\n"
20130515 '        \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the values to use in the date range.\n'
20130515 '     * @param {Array/Date/Object} v The value(s) to set into the field. Valid types are as follows:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>Array</code></b> : <div class="sub-desc">An array containing, in order, a start date, end date and all-day flag.\n'
20130515 '     * This array should exactly match the return type as specified by {@link #getValue}.</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">A single Date object, which will be used for both the start and\n'
20130515 '     * end dates in the range.  The all-day flag will be defaulted to false.</div></li>\n'
20130515 '     * <li><b><code>Object</code></b> : <div class="sub-desc">An object containing properties for StartDate, EndDate and IsAllDay\n'
20130515 '     * as defined in {@link Ext.ensible.cal.EventMappings}.</div></li><ul></div>\n'
20130515 '     */\n'
20130515 '    setValue: function(v){\n'
20130515 '        if(Ext.isArray(v)){\n'
20130515 "            this.setDT(v[0], 'start');\n"
20130515 "            this.setDT(v[1], 'end');\n"
20130515 '            this.allDay.setValue(!!v[2]);\n'
20130515 '        }\n'
20130515 '        else if(Ext.isDate(v)){\n'
20130515 "            this.setDT(v, 'start');\n"
20130515 "            this.setDT(v, 'end');\n"
20130515 '            this.allDay.setValue(false);\n'
20130515 '        }\n'
20130515 '        else if(v[Ext.ensible.cal.EventMappings.StartDate.name]){ //object\n'
20130515 "            this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'start');\n"
20130515 "            if(!this.setDT(v[Ext.ensible.cal.EventMappings.EndDate.name], 'end')){\n"
20130515 "                this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'end');\n"
20130515 '            }\n'
20130515 '            this.allDay.setValue(!!v[Ext.ensible.cal.EventMappings.IsAllDay.name]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private setValue helper\n'
20130515 '    setDT: function(dt, startend){\n'
20130515 '        if(dt && Ext.isDate(dt)){\n'
20130515 "            this[startend+'Date'].setValue(dt);\n"
20130515 "            this[startend+'Time'].setValue(dt.format(this[startend+'Time'].format));\n"
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    isDirty: function(){\n'
20130515 '        var dirty = false;\n'
20130515 '        if(this.rendered && !this.disabled) {\n'
20130515 '            this.items.each(function(item){\n'
20130515 '                if (item.isDirty()) {\n'
20130515 '                    dirty = true;\n'
20130515 '                    return false;\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDisable : function(){\n'
20130515 "        this.delegateFn('disable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEnable : function(){\n'
20130515 "        this.delegateFn('enable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    reset : function(){\n'
20130515 "        this.delegateFn('reset');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    delegateFn : function(fn){\n'
20130515 '        this.items.each(function(item){\n'
20130515 '            if (item[fn]) {\n'
20130515 '                item[fn]();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    beforeDestroy: function(){\n'
20130515 '        Ext.destroy(this.fieldCt);\n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.beforeDestroy.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @method getRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    getRawValue : Ext.emptyFn,\n'
20130515 '    /**\n'
20130515 '     * @method setRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    setRawValue : Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daterangefield', Ext.ensible.cal.DateRangeField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ReminderField\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing a reminder setting for an event.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 'width: 200,\n'
20130515 "fieldLabel: 'Reminder',\n"
20130515 "mode: 'local',\n"
20130515 "triggerAction: 'all',\n"
20130515 'forceSelection: true,\n'
20130515 "displayField: 'desc',\n"
20130515 "valueField: 'value',\n"
20130515 "noneText: 'None',\n"
20130515 "atStartTimeText: 'At start time',\n"
20130515 "reminderValueFormat: '{0} {1} before start'\n"
20130515 '</code></pre>\n'
20130515 ' * <p>To customize the descriptions in the dropdown list override the following methods: \n'
20130515 ' * {@link #getMinutesText}, {@link #getHoursText}, {@link #getDaysText} and {@link #getWeeksText}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ReminderField = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 200,\n'
20130515 "    fieldLabel: 'Reminder',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'desc',\n"
20130515 "    valueField: 'value',\n"
20130515 "    noneText: 'None',\n"
20130515 "    atStartTimeText: 'At start time',\n"
20130515 "    reminderValueFormat: '{0} {1} before start',\n"
20130515 '    \n'
20130515 '    // the following are all deprecated in favor of the corresponding get* template methods.\n'
20130515 '    // they are still here only for backwards-compatibility and will be removed in a future release.\n'
20130515 "    minutesText: 'minutes',\n"
20130515 "    hourText: 'hour',\n"
20130515 "    hoursText: 'hours',\n"
20130515 "    dayText: 'day',\n"
20130515 "    daysText: 'days',\n"
20130515 "    weekText: 'week',\n"
20130515 "    weeksText: 'weeks',\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the list of reminder values used as the contents of the combo list. This method is provided so that\n'
20130515 '     * the value list can be easily overridden as needed.\n'
20130515 '     * @return {Array} A 2-dimensional array of type [{String}, {String}] which contains the value and description\n'
20130515 '     * respectively of each item in the combo list. By default the value is the number of minutes for the selected \n'
20130515 "     * time value (e.g., value 120 == '2 hours') with empty string for no value, but these can be set to anything.\n"
20130515 '     */\n'
20130515 '    getValueList: function(){\n'
20130515 '        var me = this,\n'
20130515 '            fmt = me.reminderValueFormat,\n'
20130515 '            stringFormat = String.format;\n'
20130515 '            \n'
20130515 '        return [\n'
20130515 "            ['', me.noneText],\n"
20130515 "            ['0', me.atStartTimeText],\n"
20130515 "            ['5', stringFormat(fmt, '5', me.getMinutesText(5))],\n"
20130515 "            ['15', stringFormat(fmt, '15', me.getMinutesText(15))],\n"
20130515 "            ['30', stringFormat(fmt, '30', me.getMinutesText(30))],\n"
20130515 "            ['60', stringFormat(fmt, '1', me.getHoursText(1))],\n"
20130515 "            ['90', stringFormat(fmt, '1.5', me.getHoursText(1.5))],\n"
20130515 "            ['120', stringFormat(fmt, '2', me.getHoursText(2))],\n"
20130515 "            ['180', stringFormat(fmt, '3', me.getHoursText(3))],\n"
20130515 "            ['360', stringFormat(fmt, '6', me.getHoursText(6))],\n"
20130515 "            ['720', stringFormat(fmt, '12', me.getHoursText(12))],\n"
20130515 "            ['1440', stringFormat(fmt, '1', me.getDaysText(1))],\n"
20130515 "            ['2880', stringFormat(fmt, '2', me.getDaysText(2))],\n"
20130515 "            ['4320', stringFormat(fmt, '3', me.getDaysText(3))],\n"
20130515 "            ['5760', stringFormat(fmt, '4', me.getDaysText(4))],\n"
20130515 "            ['7200', stringFormat(fmt, '5', me.getDaysText(5))],\n"
20130515 "            ['10080', stringFormat(fmt, '1', me.getWeeksText(1))],\n"
20130515 "            ['20160', stringFormat(fmt, '2', me.getWeeksText(2))]\n"
20130515 '        ]\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of minutes\n'
20130515 "     * prior to the due time (defaults to 'minute' when the passed value === 1, else 'minutes').\n"
20130515 '     * @param {Number} numMinutes The number of minutes prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getMinutesText: function(numMinutes){\n'
20130515 '        return numMinutes === 1 ? this.minuteText : this.minutesText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of hours\n'
20130515 "     * prior to the due time (defaults to 'hour' when the passed value === 1, else 'hours').\n"
20130515 '     * @param {Number} numHours The number of hours prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getHoursText: function(numHours){\n'
20130515 '        return numHours === 1 ? this.hourText : this.hoursText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of days\n'
20130515 "     * prior to the due time (defaults to 'day' when the passed value === 1, else 'days').\n"
20130515 '     * @param {Number} numDays The number of days prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getDaysText: function(numDays){\n'
20130515 '        return numDays === 1 ? this.dayText : this.daysText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of weeks\n'
20130515 "     * prior to the due time (defaults to 'week' when the passed value === 1, else 'weeks').\n"
20130515 '     * @param {Number} numWeeks The number of weeks prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getWeeksText: function(numWeeks){\n'
20130515 '        return numWeeks === 1 ? this.weekText : this.weeksText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ReminderField.superclass.initComponent.call(this);\n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 '            fields: [this.valueField, this.displayField],\n'
20130515 '            idIndex: 0,\n'
20130515 '            data: this.getValueList()\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    initValue : function(){\n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.reminderfield', Ext.ensible.cal.ReminderField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ColorPalette\n'
20130515 ' * @extends Ext.ColorPalette\n'
20130515 ' * Simple color palette class for choosing colors specifically for calendars. This is a lightly modified version\n'
20130515 ' * of the default Ext ColorPalette that is based on calendar ids rather than hex color codes so that the colors\n'
20130515 ' * can be easily modified via CSS and automatically applied to calendars. The specific colors used by default are\n'
20130515 ' * also chosen to provide good color contrast when displayed in calendars.\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * Create a new ColorPalette\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype extensible.calendarcolorpalette\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ColorPalette = Ext.extend(Ext.ColorPalette, {\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    colorCount: 32,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Function} handler\n'
20130515 '     * Optional. A function that will handle the select event of this color palette.\n'
20130515 '     * The handler is passed the following parameters:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><code>palette</code> : ColorPalette<div class="sub-desc">The {@link #palette Ext.ensible.cal.ColorPalette} instance.</div></li>\n'
20130515 '     * <li><code>colorId</code> : String<div class="sub-desc">The id that identifies the selected color and relates it to a calendar.</div></li>\n'
20130515 '     * </ul></div>\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ColorPalette.superclass.initComponent.call(this);\n'
20130515 "        this.addClass('x-calendar-palette');\n"
20130515 '        this.tpl = new Ext.XTemplate(\'<tpl for="."><a class="x-unselectable x-cal-color" id="\' + this.id +\n'
20130515 '            \'-color-{.}" href="#" hidefocus="on"><em><span class="x-cal-{.}">&#160;</span></em></a></tpl>\');\n'
20130515 '            \n'
20130515 '        if(this.handler){\n'
20130515 "            this.on('select', this.handler, this.scope || this);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.colors = [];\n'
20130515 '        for(var i=1; i<=this.colorCount; i++){\n'
20130515 '            this.colors.push(i);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleClick : function(e, t){\n'
20130515 '        e.preventDefault();\n'
20130515 "        var el = e.getTarget('.x-cal-color', 3, true);\n"
20130515 '        if(el){\n'
20130515 "            var id = el.id.split('-color-')[1];\n"
20130515 '            this.select(id);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Selects the specified color in the palette (fires the {@link #select} event)\n'
20130515 '     * @param {Number} colorId The id that identifies the selected color and relates it to a calendar\n'
20130515 '     * @param {Boolean} suppressEvent (optional) True to stop the select event from firing. Defaults to <tt>false</tt>.\n'
20130515 '     */\n'
20130515 '    select : function(colorId, suppressEvent){\n'
20130515 '        if(colorId != this.value){\n'
20130515 '            if(this.value){\n'
20130515 "                Ext.fly(this.id+'-color-'+this.value).removeClass('x-color-palette-sel');\n"
20130515 '            }\n'
20130515 "            Ext.get(this.id+'-color-'+colorId).addClass('x-color-palette-sel');\n"
20130515 '            this.value = colorId;\n'
20130515 '            \n'
20130515 '            if(suppressEvent !== true){\n'
20130515 "                this.fireEvent('select', this, colorId);\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcolorpalette', Ext.ensible.cal.ColorPalette);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarListMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * <p>A menu containing a {@link Ext.ensible.cal.ColorPalette palette} for choosing calendar colors, \n'
20130515 ' * as well as other calendar-specific options.</p>\n'
20130515 ' * @xtype extensible.calendarlistmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarListMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} cls\n'
20130515 "     * An optional extra CSS class that will be added to this component's Element (defaults to 'x-calendar-list-menu'). \n"
20130515 '     * This can be useful for adding customized styles to the component or any of its children using standard CSS rules.\n'
20130515 '     */\n'
20130515 "    cls : 'x-calendar-list-menu',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} displayOnlyThisCalendarText\n'
20130515 "     * The text to display for the 'Display only this calendar' option in the menu.\n"
20130515 '     */\n'
20130515 "    displayOnlyThisCalendarText: 'Display only this calendar',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} calendarId\n'
20130515 '     * The id of the calendar to be associated with this menu. This calendarId will be passed\n'
20130515 '     * back with any events from this menu to identify the calendar to be acted upon. The calendar\n'
20130515 '     * id can also be changed at any time after creation by calling {@link setCalendar}.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @property palette\n'
20130515 '     * @type ColorPalette\n'
20130515 '     * The {@link Ext.ensible.cal.ColorPalette ColorPalette} instance for this CalendarListMenu\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 "            'showcalendar',\n"
20130515 "            'hidecalendar',\n"
20130515 "            'radiocalendar',\n"
20130515 "            'colorchange'\n"
20130515 '        );\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.displayOnlyThisCalendarText,\n'
20130515 "                iconCls: 'extensible-cal-icon-cal-show',\n"
20130515 '                handler: this.handleRadioCalendarClick.createDelegate(this)\n'
20130515 "            }, '-', {\n"
20130515 "                xtype: 'extensible.calendarcolorpalette',\n"
20130515 '                handler: this.handleColorSelect.createDelegate(this)\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.afterRender.call(this);\n'
20130515 "        this.palette = this.findByType('extensible.calendarcolorpalette')[0];\n"
20130515 '        \n'
20130515 '        if(this.colorId){\n'
20130515 '            this.palette.select(this.colorId, true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendarClick: function(e, t){\n'
20130515 "        this.fireEvent('radiocalendar', this, this.calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorSelect: function(cp, selColorId){\n'
20130515 "        this.fireEvent('colorchange', this, this.calendarId, selColorId, this.colorId);\n"
20130515 '        this.colorId = selColorId;\n'
20130515 '        this.menuHide();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the calendar id and color id to be associated with this menu. This should be called each time the\n'
20130515 '     * menu is shown relative to a new calendar.\n'
20130515 '     * @param {Number} calendarId The id of the calendar to be associated\n'
20130515 '     * @param {Number} colorId The id of the color to be pre-selected in the color palette\n'
20130515 '     * @return {Ext.ensible.cal.CalendarListMenu} this\n'
20130515 '     */\n'
20130515 '    setCalendar: function(id, cid){\n'
20130515 '        this.calendarId = id;\n'
20130515 '        this.colorId = cid;\n'
20130515 '        \n'
20130515 '        if(this.rendered){\n'
20130515 '            this.palette.select(cid, true);\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    menuHide : function(){\n'
20130515 '        if(this.hideOnClick){\n'
20130515 '            this.hide(true);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlistmenu', Ext.ensible.cal.CalendarListMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.EventContextMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * The context menu displayed for calendar events in any {@link Ext.ensible.cal.CalendarView CalendarView} subclass. \n'
20130515 ' * @xtype extensible.eventcontextmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventContextMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} editDetailsText\n'
20130515 "     * The text to display for the 'Edit Details' option in the menu.\n"
20130515 '     */\n'
20130515 "    editDetailsText: 'Edit Details',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} deleteText\n'
20130515 "     * The text to display for the 'Delete' option in the menu.\n"
20130515 '     */\n'
20130515 "    deleteText: 'Delete',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} moveToText\n'
20130515 "     * The text to display for the 'Move to...' option in the menu.\n"
20130515 '     */\n'
20130515 "    moveToText: 'Move to...',\n"
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the event details\n'
20130515 '             * (by default, in an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should \n'
20130515 '             * transfer the current event record to the appropriate instance of the detailed form by showing\n'
20130515 '             * the form and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'editdetails',\n"
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after the user selectes the option to delete an event. Note that this menu does not actually\n'
20130515 '             * delete the event from the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the deletion and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be deleted\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'eventdelete',\n"
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after the user selects a date in the calendar picker under the "move event" menu option. Note that this menu does not actually\n'
20130515 '             * update the event in the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the move action and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be moved\n'
20130515 '             * @param {Date} dt The new start date for the event (the existing event start time will be preserved)\n'
20130515 '             */\n'
20130515 "            'eventmove'\n"
20130515 '        );\n'
20130515 '        this.buildMenu();\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Overrideable method intended for customizing the menu items. This should only to be used for overriding \n'
20130515 '     * or called from a subclass and should not be called directly from application code.\n'
20130515 '     */\n'
20130515 '    buildMenu: function(){\n'
20130515 '        if(this.rendered){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.dateMenu = new Ext.menu.DateMenu({\n'
20130515 '            scope: this,\n'
20130515 '            handler: function(dp, dt){\n'
20130515 '                dt = Ext.ensible.Date.copyTime(this.rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt);\n'
20130515 "                this.fireEvent('eventmove', this, this.rec, dt);\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.editDetailsText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-edit',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('editdetails', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 '            },{\n'
20130515 '                text: this.deleteText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-del',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('eventdelete', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 "            },'-',{\n"
20130515 '                text: this.moveToText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-move',\n"
20130515 '                menu: this.dateMenu\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the specified event at the given XY position. \n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event\n'
20130515 '     * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '     * @param {Array} xy The X & Y [x, y] values for the position at which to show the menu (coordinates are page-based) \n'
20130515 '     */\n'
20130515 '    showForEvent: function(rec, el, xy){\n'
20130515 '        this.rec = rec;\n'
20130515 '        this.ctxEl = el;\n'
20130515 '        this.dateMenu.picker.setValue(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        this.showAt(xy);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onHide : function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.onHide.call(this);\n'
20130515 '        delete this.ctxEl;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventcontextmenu', Ext.ensible.cal.EventContextMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarList\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is a {@link Ext.Panel panel} subclass that renders a list of available calendars\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarList = Ext.extend(Ext.Panel, {\n'
20130515 "    title: 'Calendars',\n"
20130515 '    collapsible: true,\n'
20130515 '    autoHeight: true,\n'
20130515 "    layout: 'fit',\n"
20130515 "    menuSelector: 'em',\n"
20130515 "    width: 100, // this should be overridden by this container's layout\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} store\n'
20130515 '     * A {@link Ext.data.Store store} containing records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * This is a required config and is used to populate the calendar list.  The CalendarList widget will also listen for events from\n'
20130515 '     * the store and automatically refresh iteself in the event that the underlying calendar records in the store change.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 "        this.addClass('x-calendar-list');\n"
20130515 '        Ext.ensible.cal.CalendarList.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(ct, position){\n'
20130515 '        Ext.ensible.cal.CalendarList.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        if(this.store){\n'
20130515 '            this.setStore(this.store, true);\n'
20130515 '        }\n'
20130515 '        this.refresh();\n'
20130515 '        \n'
20130515 "        this.body.on('click', this.onClick, this);\n"
20130515 "        this.body.on('mouseover', this.onMouseOver, this, {delegate: 'li'});\n"
20130515 "        this.body.on('mouseout', this.onMouseOut, this, {delegate: 'li'});\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getListTemplate : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evr {colorCls} {hiddenCls}">{title}<em>&#160;</em></li>\',\n'
20130515 "                    '</tpl></ul>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evo {colorCls} {hiddenCls}">\',\n'
20130515 '                            \'<div class="ext-cal-evm">\',\n'
20130515 '                                \'<div class="ext-cal-evi">{title}<em>&#160;</em></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</li>',\n"
20130515 "                    '</tpl></ul>'\n"
20130515 '                );\n'
20130515 '            this.tpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.tpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the store used to display the available calendars. It should contain \n'
20130515 '     * records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        if(!initial && this.store){\n'
20130515 '            this.store.un("load", this.refresh, this);\n'
20130515 '            this.store.un("add", this.refresh, this);\n'
20130515 '            this.store.un("remove", this.refresh, this);\n'
20130515 '            this.store.un("update", this.onUpdate, this);\n'
20130515 '            this.store.un("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("load", this.refresh, this);\n'
20130515 '            store.on("add", this.refresh, this);\n'
20130515 '            store.on("remove", this.refresh, this);\n'
20130515 '            store.on("update", this.onUpdate, this);\n'
20130515 '            store.on("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onUpdate : function(ds, rec, operation){\n'
20130515 '        // ignore EDIT notifications, only refresh after a commit\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.refresh();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Refreshes the calendar list so that it displays based on the most current state of\n'
20130515 '     * the underlying calendar store. Usually this method does not need to be called directly\n'
20130515 "     * as the control is automatically bound to the store's events, but it is available in the\n"
20130515 '     * event that a manual refresh is ever needed.\n'
20130515 '     */\n'
20130515 '    refresh: function(){\n'
20130515 '        if(this.skipRefresh){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        var data = [], i = 0, o = null,\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            o = {\n'
20130515 "                cmpId: this.id + '__' + recs[i].data[CM.CalendarId.name],\n"
20130515 '                title: recs[i].data[CM.Title.name],\n'
20130515 '                colorCls: this.getColorCls(recs[i].data[CM.ColorId.name])\n'
20130515 '            };\n'
20130515 '            if(recs[i].data[CM.IsHidden.name] === true){\n'
20130515 "                o.hiddenCls = 'ext-cal-hidden';\n"
20130515 '            }\n'
20130515 '            data[data.length] = o;\n'
20130515 '        }\n'
20130515 '        this.getListTemplate().overwrite(this.body, data);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getColorCls: function(colorId){\n'
20130515 "        return 'x-cal-'+colorId+'-ad';\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    toggleCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id),\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            isHidden = rec.data[CM.IsHidden.name]; \n'
20130515 '        \n'
20130515 '        rec.set([CM.IsHidden.name], !isHidden);\n'
20130515 '        \n'
20130515 '        if(commit !== false){\n'
20130515 '            rec.commit();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    hideCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] !== true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    radioCalendar: function(id){\n'
20130515 '        var i = 0, recId,\n'
20130515 '            calendarId = Ext.ensible.cal.CalendarMappings.CalendarId.name,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            recId = recs[i].data[calendarId];\n'
20130515 '            // make a truthy check so that either numeric or string ids can match\n'
20130515 '            if(recId == id){\n'
20130515 '                this.showCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.hideCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // store.commitChanges() just loops over each modified record and calls rec.commit(),\n'
20130515 '        // which in turns fires an update event that would cause a full refresh for each record.\n'
20130515 '        // To avoid this we simply set a flag and make sure we only refresh once per commit set.\n'
20130515 '        this.skipRefresh = true;\n'
20130515 '        this.store.commitChanges();\n'
20130515 '        delete this.skipRefresh;\n'
20130515 '        this.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOver: function(e, t){\n'
20130515 "        Ext.fly(t).addClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOut: function(e, t){\n'
20130515 "        Ext.fly(t).removeClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarId: function(el){\n'
20130515 "        return el.id.split('__')[1];\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarItemEl: function(calendarId){\n'
20130515 "        return Ext.get(this.id+'__'+calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        var el;\n'
20130515 '        if(el = e.getTarget(this.menuSelector, 3, true)){\n'
20130515 '            this.showEventMenu(el, e.getXY());\n'
20130515 '        }\n'
20130515 "        else if(el = e.getTarget('li', 3, true)){\n"
20130515 '            this.toggleCalendar(this.getCalendarId(el));\n'
20130515 '        } \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorChange: function(menu, id, colorId, origColorId){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name] = colorId;\n'
20130515 '        rec.commit();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendar: function(menu, id){\n'
20130515 '        this.radioCalendar(id);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showEventMenu : function(el, xy){\n'
20130515 "        var id = this.getCalendarId(el.parent('li')),\n"
20130515 '            rec = this.store.getById(id),\n'
20130515 '            colorId = rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n'
20130515 '            \n'
20130515 '        if(!this.menu){\n'
20130515 '            this.menu = new Ext.ensible.cal.CalendarListMenu();\n'
20130515 "            this.menu.on('colorchange', this.handleColorChange, this);\n"
20130515 "            this.menu.on('radiocalendar', this.handleRadioCalendar, this);\n"
20130515 '        }\n'
20130515 '        this.menu.setCalendar(id, colorId);\n'
20130515 '        this.menu.showAt(xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlist', Ext.ensible.cal.CalendarList);/**\n"
20130515 ' * @class Ext.ensible.cal.EventEditForm\n'
20130515 ' * @extends Ext.form.FormPanel\n'
20130515 ' * <p>A custom form used for detailed editing of events.</p>\n'
20130515 ' * <p>This is pretty much a standard form that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. It is also configured to automatically bind records of type {@link Ext.ensible.cal.EventRecord}\n'
20130515 ' * to and from the form.</p>\n'
20130515 ' * <p>This form also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 'labelWidth: 65,\n'
20130515 'labelWidthRightCol: 65,\n'
20130515 'colWidthLeft: .6,\n'
20130515 'colWidthRight: .4,\n'
20130515 "title: 'Event Form',\n"
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "reminderLabelText: 'Reminder',\n"
20130515 "notesLabelText: 'Notes',\n"
20130515 "locationLabelText: 'Location',\n"
20130515 "webLinkLabelText: 'Web Link',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "repeatsLabelText: 'Repeats',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 'border: false,\n'
20130515 "buttonAlign: 'center',\n"
20130515 'autoHeight: true // to allow for the notes field to autogrow\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditForm = Ext.extend(Ext.form.FormPanel, {\n'
20130515 '    labelWidth: 65,\n'
20130515 '    labelWidthRightCol: 65,\n'
20130515 '    colWidthLeft: .6,\n'
20130515 '    colWidthRight: .4,\n'
20130515 "    title: 'Event Form',\n"
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    reminderLabelText: 'Reminder',\n"
20130515 "    notesLabelText: 'Notes',\n"
20130515 "    locationLabelText: 'Location',\n"
20130515 "    webLinkLabelText: 'Web Link',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    repeatsLabelText: 'Repeats',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 '    border: false,\n'
20130515 "    buttonAlign: 'center',\n"
20130515 '    autoHeight: true, // to allow for the notes field to autogrow\n'
20130515 '    \n'
20130515 '    /* // not currently supported\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false,\n'
20130515 '    \n'
20130515 '    // private properties:\n'
20130515 "    layout: 'column',\n"
20130515 "    cls: 'ext-evt-edit-form',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true\n'
20130515 '        });\n'
20130515 '                \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 "            anchor: '90%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 '            fieldLabel: this.datesLabelText,\n'
20130515 '            singleLine: false,\n'
20130515 "            anchor: '90%',\n"
20130515 '            listeners: {\n'
20130515 "                'change': this.onDateChange.createDelegate(this)\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        this.reminderField = new Ext.ensible.cal.ReminderField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Reminder.name,\n'
20130515 '            fieldLabel: this.reminderLabelText\n'
20130515 '        });\n'
20130515 '        this.notesField = new Ext.form.TextArea({\n'
20130515 '            fieldLabel: this.notesLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Notes.name,\n'
20130515 '            grow: true,\n'
20130515 '            growMax: 150,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.locationField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.locationLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Location.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.urlField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.webLinkLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Url.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        \n'
20130515 '        var leftFields = [this.titleField, this.dateRangeField, this.reminderField], \n'
20130515 '            rightFields = [this.notesField, this.locationField, this.urlField];\n'
20130515 '            \n'
20130515 '        if(this.enableRecurrence){\n'
20130515 '            this.recurrenceField = new Ext.ensible.cal.RecurrenceField({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.RRule.name,\n'
20130515 '                fieldLabel: this.repeatsLabelText,\n'
20130515 "                anchor: '100%'\n"
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.recurrenceField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                store: this.calendarStore,\n'
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name\n'
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.calendarField);\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.items = [{\n'
20130515 "            id: this.id+'-left-col',\n"
20130515 '            columnWidth: this.colWidthLeft,\n'
20130515 "            layout: 'form',\n"
20130515 '            border: false,\n'
20130515 '            items: leftFields\n'
20130515 '        },{\n'
20130515 "            id: this.id+'-right-col',\n"
20130515 '            columnWidth: this.colWidthRight,\n'
20130515 "            layout: 'form',\n"
20130515 '            labelWidth: this.labelWidthRightCol || this.labelWidth,\n'
20130515 '            border: false,\n'
20130515 '            items: rightFields\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        this.fbar = [{\n'
20130515 '            text:this.saveButtonText, scope: this, handler: this.onSave\n'
20130515 '        },{\n'
20130515 "            cls:'ext-del-btn', text:this.deleteButtonText, scope:this, handler:this.onDelete\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, scope: this, handler: this.onCancel\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditForm.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDateChange: function(dateRangeField, val){\n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(val[0]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    loadRecord: function(rec){\n'
20130515 '        this.form.reset().loadRecord.apply(this.form, arguments);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        \n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        }\n'
20130515 '        if(this.calendarStore){\n'
20130515 "            this.form.setValues({'calendar': rec.data[Ext.ensible.cal.EventMappings.CalendarId.name]});\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        //this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '        if(rec.phantom){\n'
20130515 '            //rec.markDirty();\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(false);\n"
20130515 '        }\n'
20130515 '        else {\n'
20130515 '            this.setTitle(this.titleTextEdit);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(true);\n"
20130515 '        }\n'
20130515 '        this.titleField.focus();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    updateRecord: function(){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '        \n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = this.form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        //delete rec.store; // make sure the record does not try to autosave\n'
20130515 '        rec.endEdit();\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '        this.cleanup(true);\n'
20130515 "        this.fireEvent('eventcancel', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '        \n'
20130515 '        if(this.form.isDirty()){\n'
20130515 '            this.form.reset();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        if(!this.updateRecord()){\n'
20130515 '            this.onCancel();\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        this.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "        this.fireEvent('eventdelete', this, this.activeRecord);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditform', Ext.ensible.cal.EventEditForm);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventEditWindow\n'
20130515 ' * @extends Ext.Window\n'
20130515 ' * <p>A custom window containing a basic edit form used for quick editing of events.</p>\n'
20130515 ' * <p>This window also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 'width: 600,\n'
20130515 'border: true,\n'
20130515 "closeAction: 'hide',\n"
20130515 'modal: false,\n'
20130515 'resizable: false,\n'
20130515 "buttonAlign: 'left',\n"
20130515 'labelWidth: 65,\n'
20130515 "detailsLinkText: 'Edit Details...',\n"
20130515 "savingMessage: 'Saving changes...',\n"
20130515 "deletingMessage: 'Deleting event...',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "bodyStyle: 'padding:5px 10px;',\n"
20130515 'enableEditDetails: true\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditWindow = Ext.extend(Ext.Window, {\n'
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 '    width: 600,\n'
20130515 '    border: true,\n'
20130515 "    closeAction: 'hide',\n"
20130515 '    modal: false,\n'
20130515 '    resizable: false,\n'
20130515 "    buttonAlign: 'left',\n"
20130515 '    labelWidth: 65,\n'
20130515 "    detailsLinkText: 'Edit Details...',\n"
20130515 "    savingMessage: 'Saving changes...',\n"
20130515 "    deletingMessage: 'Deleting event...',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "    bodyStyle: 'padding:5px 10px;',\n"
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.fbar = ['->',{\n"
20130515 '            text:this.saveButtonText, disabled:false, handler:this.onSave, scope:this\n'
20130515 '        },{\n'
20130515 "            id:this.id+'-delete-btn', text:this.deleteButtonText, disabled:false, handler:this.onDelete, scope:this, hideMode:'offsets'\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, disabled:false, handler:this.onCancel, scope:this\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        if(this.enableEditDetails !== false){\n'
20130515 '            this.fbar.unshift({\n'
20130515 '                xtype: \'tbtext\', text: \'<a href="#" class="\'+this.editDetailsLinkClass+\'">\'+this.detailsLinkText+\'</a>\'\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender : function(ct, position){\n'
20130515 "        this.deleteBtn = Ext.getCmp(this.id+'-delete-btn');\n"
20130515 '        \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 "            anchor: '95%',\n"
20130515 '            fieldLabel: this.datesLabelText\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var items = [this.titleField, this.dateRangeField];\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name,\n'
20130515 "                anchor: '100%',\n"
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                store: this.calendarStore\n'
20130515 '            });\n'
20130515 '            items.push(this.calendarField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.formPanel = new Ext.FormPanel({\n'
20130515 '            labelWidth: this.labelWidth,\n'
20130515 '            frame: false,\n'
20130515 '            bodyBorder: false,\n'
20130515 '            border: false,\n'
20130515 '            items: items\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.add(this.formPanel);\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.afterRender.call(this);\n'
20130515 '\t\t\n'
20130515 "\t\tthis.el.addClass('ext-cal-event-win');\n"
20130515 "        this.el.select('.'+this.editDetailsLinkClass).on('click', this.onEditDetailsClick, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetailsClick: function(e){\n'
20130515 '        e.stopEvent();\n'
20130515 '        this.updateRecord(true);\n'
20130515 "        this.fireEvent('editdetails', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\t\n'
20130515 '\t/**\n'
20130515 '     * Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden.\n'
20130515 '\t * @param {Ext.data.Record/Object} o Either a {@link Ext.data.Record} if showing the form\n'
20130515 '\t * for an existing event in edit mode, or a plain object containing a StartDate property (and \n'
20130515 '\t * optionally an EndDate property) for showing the form in add mode. \n'
20130515 '     * @param {String/Element} animateTarget (optional) The target element or id from which the window should\n'
20130515 '     * animate while opening (defaults to null with no animation)\n'
20130515 '     * @return {Ext.Window} this\n'
20130515 '     */\n'
20130515 '    show: function(o, animateTarget){\n'
20130515 '\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\tvar anim = (Ext.isIE8 && Ext.isStrict) ? null : animateTarget,\n'
20130515 '            M = Ext.ensible.cal.EventMappings;\n'
20130515 '\n'
20130515 '\t\tExt.ensible.cal.EventEditWindow.superclass.show.call(this, anim, function(){\n'
20130515 '            this.titleField.focus(false, 100);\n'
20130515 '        });\n'
20130515 "        this.deleteBtn[o.data && o.data[M.EventId.name] ? 'show' : 'hide']();\n"
20130515 '        \n'
20130515 '        var rec, f = this.formPanel.form;\n'
20130515 '\n'
20130515 '        if(o.data){\n'
20130515 '            rec = o;\n'
20130515 '\t\t\t//this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '\t\t\tif(rec.phantom){\n'
20130515 '\t\t\t\t// Enable adding the default record that was passed in\n'
20130515 "\t\t\t\t// if it's new even if the user makes no changes \n"
20130515 '\t\t\t\t//rec.markDirty();\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextAdd);\n'
20130515 '\t\t\t}\n'
20130515 '\t\t\telse{\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextEdit);\n'
20130515 '\t\t\t}\n'
20130515 '            \n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '\t\t\t//this.isAdd = true;\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 '\n'
20130515 '            var start = o[M.StartDate.name],\n'
20130515 "                end = o[M.EndDate.name] || start.add('h', 1);\n"
20130515 '                \n'
20130515 '            rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '            //rec.data[M.EventId.name] = this.newId++;\n'
20130515 '            rec.data[M.StartDate.name] = start;\n'
20130515 '            rec.data[M.EndDate.name] = end;\n'
20130515 '            rec.data[M.IsAllDay.name] = !!o[M.IsAllDay.name] || start.getDate() != end.clone().add(Date.MILLI, 1).getDate();\n'
20130515 '            \n'
20130515 '            f.reset();\n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField.setValue(rec.data[M.CalendarId.name]);\n'
20130515 '        }\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 "        this.el.setStyle('z-index', 12000);\n"
20130515 '        \n'
20130515 '\t\treturn this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    roundTime: function(dt, incr){\n'
20130515 '        incr = incr || 15;\n'
20130515 '        var m = parseInt(dt.getMinutes());\n'
20130515 "        return dt.add('mi', incr - (m % incr));\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '    \tthis.cleanup(true);\n'
20130515 "\t\tthis.fireEvent('eventcancel', this, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '\t\t\n'
20130515 '        if(hide===true){\n'
20130515 '\t\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\t\t//var anim = afterDelete || (Ext.isIE8 && Ext.isStrict) ? null : this.animateTarget;\n'
20130515 '            this.hide();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateRecord: function(keepEditing){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            form = this.formPanel.form,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '\n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        \n'
20130515 '        if(!keepEditing){\n'
20130515 '            rec.endEdit();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.formPanel.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\t\tif(!this.updateRecord()){\n'
20130515 '\t\t\tthis.onCancel();\n'
20130515 '\t\t\treturn;\n'
20130515 '\t\t}\n'
20130515 "\t\tthis.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "\t\tthis.fireEvent('eventdelete', this, this.activeRecord, this.animateTarget);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditwindow', Ext.ensible.cal.EventEditWindow);/**\r\n"
20130515 ' * @class Ext.ensible.cal.CalendarView\r\n'
20130515 ' * @extends Ext.BoxComponent\r\n'
20130515 ' * <p>This is an abstract class that serves as the base for other calendar views. This class is not\r\n'
20130515 ' * intended to be directly instantiated.</p>\r\n'
20130515 ' * <p>When extending this class to create a custom calendar view, you must provide an implementation\r\n'
20130515 ' * for the <code>renderItems</code> method, as there is no default implementation for rendering events\r\n'
20130515 ' * The rendering logic is totally dependent on how the UI structures its data, which\r\n'
20130515 ' * is determined by the underlying UI template (this base class does not have a template).</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.CalendarView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\r\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\r\n'
20130515 '     * config), and either can be used interchangeably.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\r\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\r\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\r\n'
20130515 '     * the default calendar (and color).\r\n'
20130515 '     */\r\n'
20130515 '    /*\r\n'
20130515 '     * @cfg {Boolean} enableRecurrence\r\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\r\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\r\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\r\n'
20130515 '     * if the server supports it.\r\n'
20130515 '     */\r\n'
20130515 '    //enableRecurrence: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} readOnly\r\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} startDay\r\n'
20130515 '     * The 0-based index for the day on which the calendar week begins (0=Sunday, which is the default)\r\n'
20130515 '     */\r\n'
20130515 '    startDay : 0,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} spansHavePriority\r\n'
20130515 '     * Allows switching between two different modes of rendering events that span multiple days. When true,\r\n'
20130515 '     * span events are always sorted first, possibly at the expense of start dates being out of order (e.g., \r\n'
20130515 '     * a span event that starts at 11am one day and spans into the next day would display before a non-spanning \r\n'
20130515 '     * event that starts at 10am, even though they would not be in date order). This can lead to more compact\r\n'
20130515 '     * layouts when there are many overlapping events. If false (the default), events will always sort by start date\r\n'
20130515 '     * first which can result in a less compact, but chronologically consistent layout.\r\n'
20130515 '     */\r\n'
20130515 '    spansHavePriority: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} trackMouseOver\r\n'
20130515 '     * Whether or not the view tracks and responds to the browser mouseover event on contained elements (defaults to\r\n'
20130515 "     * true). If you don't need mouseover event highlighting you can disable this.\r\n"
20130515 '     */\r\n'
20130515 '\ttrackMouseOver: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableFx\r\n'
20130515 '     * Determines whether or not visual effects for CRUD actions are enabled (defaults to true). If this is false\r\n'
20130515 '     * it will override any values for {@link #enableAddFx}, {@link #enableUpdateFx} or {@link enableRemoveFx} and\r\n'
20130515 '     * all animations will be disabled.\r\n'
20130515 '     */\r\n'
20130515 '\tenableFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableAddFx\r\n'
20130515 '     * True to enable a visual effect on adding a new event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doAddFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableAddFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableUpdateFx\r\n'
20130515 '     * True to enable a visual effect on updating an event, false to disable it (the default). Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doUpdateFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableUpdateFx: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableRemoveFx\r\n'
20130515 '     * True to enable a visual effect on removing an event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doRemoveFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableRemoveFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableDD\r\n'
20130515 '     * True to enable drag and drop in the calendar view (the default), false to disable it\r\n'
20130515 '     */\r\n'
20130515 '    enableDD: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableContextMenus\r\n'
20130515 '     * True to enable automatic right-click context menu handling in the calendar views (the default), false to disable\r\n'
20130515 '     * them. Different context menus are provided when clicking on events vs. the view background.\r\n'
20130515 '     */\r\n'
20130515 '    enableContextMenus: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} suppressBrowserContextMenu\r\n'
20130515 '     * When {@link #enableContextMenus} is true, the browser context menu will automatically be suppressed whenever a\r\n'
20130515 '     * custom context menu is displayed. When this option is true, right-clicks on elements that do not have a custom\r\n'
20130515 '     * context menu will also suppress the default browser context menu (no menu will be shown at all). When false,\r\n'
20130515 '     * the browser context menu will still show if the right-clicked element has no custom menu (this is the default).\r\n'
20130515 '     */\r\n'
20130515 '    suppressBrowserContextMenu: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} monitorResize\r\n'
20130515 "     * True to monitor the browser's resize event (the default), false to ignore it. If the calendar view is rendered\r\n"
20130515 "     * into a fixed-size container this can be set to false. However, if the view can change dimensions (e.g., it's in \r\n"
20130515 '     * fit layout in a viewport or some other resizable container) it is very important that this config is true so that\r\n'
20130515 '     * any resize event propagates properly to all subcomponents and layouts get recalculated properly.\r\n'
20130515 '     */\r\n'
20130515 '    monitorResize: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayText\r\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\r\n"
20130515 '     */\r\n'
20130515 "    todayText: 'Today',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddCreateEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \r\n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddCreateEventText: 'Create event for {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddMoveEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \r\n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddMoveEventText: 'Move event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddResizeEventText\r\n'
20130515 '     * The string displayed to the user in the drag proxy while dragging the resize handle of an event (defaults to \r\n'
20130515 "     * 'Update event to {0}' where {0} is the updated event start-end range supplied by the view). Note that \r\n"
20130515 '     * this text is only used in views\r\n'
20130515 '     * that allow resizing of events.\r\n'
20130515 '     */\r\n'
20130515 "    ddResizeEventText: 'Update event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} defaultEventTitleText\r\n'
20130515 "     * The default text to display as the title of an event that has a null or empty string title value (defaults to '(No title)')\r\n"
20130515 '     */\r\n'
20130515 "    defaultEventTitleText: '(No title)',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamStart\r\n'
20130515 "     * The param name representing the start date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'start').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamStart: 'start',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamEnd\r\n'
20130515 "     * The param name representing the end date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'end').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamEnd: 'end',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamFormat\r\n'
20130515 "     * The format to use for date parameters sent with requests to retrieve events for the calendar (defaults to 'Y-m-d', e.g. '2010-10-31')\r\n"
20130515 '     */\r\n'
20130515 "    dateParamFormat: 'Y-m-d',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} editModal\r\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\r\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\r\n'
20130515 '     * config will no longer apply. \r\n'
20130515 '     */\r\n'
20130515 '    editModal: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableEditDetails\r\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\r\n'
20130515 '     * link and disable detailed event editing. \r\n'
20130515 '     */\r\n'
20130515 '    enableEditDetails: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekendCls\r\n'
20130515 "     * A CSS class to apply to weekend days in the current view (defaults to 'ext-cal-day-we' which highlights weekend days in light blue). \r\n"
20130515 "     * To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    weekendCls: 'ext-cal-day-we',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} prevMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month previous to the current view's month (defaults to 'ext-cal-day-prev' which \r\n"
20130515 "     * highlights previous month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    prevMonthCls: 'ext-cal-day-prev',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} nextMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month after the current view's month (defaults to 'ext-cal-day-next' which \r\n"
20130515 "     * highlights next month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    nextMonthCls: 'ext-cal-day-next',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayCls\r\n'
20130515 "     * A CSS class to apply to the current date when it is visible in the current view (defaults to 'ext-cal-day-today' which \r\n"
20130515 "     * highlights today in yellow). To disable this styling set the value to null or ''.\r\n"
20130515 '     */\r\n'
20130515 "    todayCls: 'ext-cal-day-today',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 '    weekCount: 1,\r\n'
20130515 '    dayCount: 1,\r\n'
20130515 "    eventSelector : '.ext-cal-evt',\r\n"
20130515 "    eventOverClass: 'ext-evt-over',\r\n"
20130515 "\teventElIdDelimiter: '-evt-',\r\n"
20130515 "    dayElIdDelimiter: '-day-',\r\n"
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns a string of HTML template markup to be used as the body portion of the event template created\r\n'
20130515 "     * by {@link #getEventTemplate}. This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. This string can include any valid {@link Ext.Template} code, and\r\n'
20130515 '     * any data tokens accessible to the containing event template can be referenced in this string.\r\n'
20130515 '     * @return {String} The body template string\r\n'
20130515 '     */\r\n'
20130515 '    getEventBodyMarkup : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\r\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with events. Internally this method\r\n'
20130515 "     * by default generates different markup for browsers that support CSS border radius and those that don't.\r\n"
20130515 '     * This method can be overridden as needed to customize the markup generated.</p>\r\n'
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\r\n'
20130515 "     * from the surrounding container markup.  This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \r\n'
20130515 '     * overridden version also does the same.</p>\r\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\r\n'
20130515 '     */\r\n'
20130515 '    getEventTemplate : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * This is undefined by default, but can be implemented to allow custom CSS classes and template data to be\r\n'
20130515 '     * conditionally applied to events during rendering. This function will be called with the parameter list shown\r\n'
20130515 "     * below and is expected to return the CSS class name (or empty string '' for none) that will be added to the \r\n"
20130515 "     * event element's wrapping div. To apply multiple class names, simply return them space-delimited within the \r\n"
20130515 "     * string (e.g., 'my-class another-class'). Example usage, applied in a CalendarPanel config:\r\n"
20130515 '     * <pre><code>\r\n'
20130515 "// This example assumes a custom field of 'IsHoliday' has been added to EventRecord\r\n"
20130515 'viewConfig: {\r\n'
20130515 '    getEventClass: function(rec, allday, templateData, store){\r\n'
20130515 '        if(rec.data.IsHoliday){\r\n'
20130515 "            templateData.iconCls = 'holiday';\r\n"
20130515 "            return 'evt-holiday';\r\n"
20130515 '        }\r\n'
20130515 "        templateData.iconCls = 'plain';\r\n"
20130515 "        return '';\r\n"
20130515 '    },\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        // This is simplified, but shows the symtax for how you could add a\r\n'
20130515 '        // custom placeholder that maps back to the templateData property created\r\n'
20130515 '        // in getEventClass. Note that this is standard Ext template syntax.\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 '            this.eventBodyMarkup = \'&lt;span class="{iconCls}">&lt;/span> {Title}\';\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    }\r\n'
20130515 '}\r\n'
20130515 '</code></pre>\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} being rendered\r\n'
20130515 '     * @param {Boolean} isAllDay A flag indicating whether the event will be <em>rendered</em> as an all-day event. Note that this\r\n'
20130515 '     * will not necessarily correspond with the value of the <tt>EventRecord.IsAllDay</tt> field &mdash; events that span multiple\r\n'
20130515 '     * days will be rendered using the all-day event template regardless of the field value. If your logic for this function\r\n'
20130515 '     * needs to know whether or not the event will be rendered as an all-day event, this value should be used. \r\n'
20130515 '     * @param {Object} templateData A plain JavaScript object that is empty by default. You can add custom properties\r\n'
20130515 '     * to this object that will then be passed into the event template for the specific event being rendered. If you have \r\n'
20130515 '     * overridden the default event template and added custom data placeholders, you can use this object to pass the data\r\n'
20130515 '     * into the template that will replace those placeholders.\r\n'
20130515 '     * @param {Ext.data.Store} store The Event data store in use by the view\r\n'
20130515 '     * @method getEventClass\r\n'
20130515 "     * @return {String} A space-delimited CSS class string (or '')\r\n"
20130515 '     */\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        this.setStartDate(this.startDate || new Date());\r\n'
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '        \r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 "            this.addClass('ext-cal-readonly');\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventsrendered\r\n'
20130515 '             * Fires after events are finished rendering in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this \r\n'
20130515 '             */\r\n'
20130515 '            eventsrendered: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventclick\r\n'
20130515 '             * Fires after the user clicks on an event element. This is a cancelable event, so returning false from a \r\n'
20130515 '             * handler will cancel the click without displaying the event editor view. This could be useful for \r\n'
20130515 '             * validating the rules by which events should be editable by the user.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            eventclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventover\r\n'
20130515 '             * Fires anytime the mouse is over an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            eventover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventout\r\n'
20130515 '             * Fires anytime the mouse exits an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\r\n'
20130515 '             */\r\n'
20130515 '            eventout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforedatechange\r\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\r\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\r\n'
20130515 '             * view change and the setting of the start date.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\r\n'
20130515 '             */\r\n'
20130515 '            beforedatechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event datechange\r\n'
20130515 '             * Fires after the start date of the view has changed. If you need to cancel the date change you should handle the \r\n'
20130515 '             * {@link #beforedatechange} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\r\n'
20130515 '             */\r\n'
20130515 '            datechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event rangeselect\r\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event. This is a \r\n'
20130515 '             * cancelable event, so returning false from a handler will cancel the drag operation and clean up any drag shim elements\r\n'
20130515 '             * without displaying the event editor view. This could be useful for validating that a user can only create events within\r\n'
20130515 '             * a certain range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\r\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\r\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\r\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\r\n'
20130515 '             * function call (e.g., callback()).\r\n'
20130515 '             */\r\n'
20130515 '\t\t\trangeselect: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventmove\r\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the move operation. This could be useful for validating that a user can \r\n'
20130515 '             * only move events within a certain date range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\r\n'
20130515 '             * @param {Date} dt The new start date to be set (the end date will be automaticaly adjusted to match the event duration)\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventmove\r\n'
20130515 '             * Fires after an event element has been dragged by the user and dropped in a new position. If you need to cancel the \r\n'
20130515 '             * move operation you should handle the {@link #beforeeventmove} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\r\n'
20130515 '             * updated start and end dates\r\n'
20130515 '             */\r\n'
20130515 '\t\t\teventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event initdrag\r\n'
20130515 '             * Fires when a drag operation is initiated in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             */\r\n'
20130515 '            initdrag: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayover\r\n'
20130515 '             * Fires while the mouse is over a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is being moused over\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayout\r\n'
20130515 '             * Fires when the mouse exits a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is exited\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\r\n'
20130515 '             */\r\n'
20130515 '            dayout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event editdetails\r\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\r\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\r\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\r\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            editdetails: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventadd\r\n'
20130515 '             * Fires after a new event has been added to the underlying store\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\r\n'
20130515 '             */\r\n'
20130515 '            eventadd: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventupdate\r\n'
20130515 '             * Fires after an existing event has been updated\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\r\n'
20130515 '             */\r\n'
20130515 '            eventupdate: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventcancel\r\n'
20130515 '             * Fires after an event add/edit operation has been canceled by the user and no store update took place\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\r\n'
20130515 '             */\r\n'
20130515 '            eventcancel: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventdelete\r\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \r\n'
20130515 '             * will cancel the delete operation.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventdelete: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventdelete\r\n'
20130515 '             * Fires after an event has been deleted by the user. If you need to cancel the delete operation you should handle the \r\n'
20130515 '             * {@link #beforeeventdelete} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            eventdelete: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.afterRender.call(this);\r\n'
20130515 '\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        \r\n'
20130515 '        if(this.store){\r\n'
20130515 '            this.setStore(this.store, true);\r\n'
20130515 '            if(this.store.deferLoad){\r\n'
20130515 '                this.reloadStore(this.store.deferLoad);\r\n'
20130515 '                delete this.store.deferLoad;\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.store.initialParams = this.getStoreParams();\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        if(this.calendarStore){\r\n'
20130515 '            this.setCalendarStore(this.calendarStore, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'mouseover': this.onMouseOver,\r\n"
20130515 "            'mouseout': this.onMouseOut,\r\n"
20130515 "            'click': this.onClick,\r\n"
20130515 "\t\t\t'resize': this.onResize,\r\n"
20130515 '            scope: this\r\n'
20130515 '        });\r\n'
20130515 '        \r\n'
20130515 '        // currently the context menu only contains CRUD actions so do not show it if read-only\r\n'
20130515 '        if(this.enableContextMenus && this.readOnly !== true){\r\n'
20130515 "            this.el.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.el.unselectable();\r\n'
20130515 '        \r\n'
20130515 '        if(this.enableDD && this.readOnly !== true && this.initDD){\r\n'
20130515 '\t\t\tthis.initDD();\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        this.on('eventsrendered', this.forceSize);\r\n"
20130515 '        this.forceSize.defer(100, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing the start and end dates to be passed as params in all calls\r\n'
20130515 '     * to load the event store. The param names are customizable using {@link #dateParamStart}\r\n'
20130515 '     * and {@link #dateParamEnd} and the date format used in requests is defined by {@link #dateParamFormat}.\r\n'
20130515 '     * If you need to add additional parameters to be sent when loading the store see {@link #getStoreParams}.\r\n'
20130515 '     * @return {Object} An object containing the start and end dates\r\n'
20130515 '     */\r\n'
20130515 '    getStoreDateParams : function(){\r\n'
20130515 '        var o = {};\r\n'
20130515 '        o[this.dateParamStart] = this.viewStart.format(this.dateParamFormat);\r\n'
20130515 '        o[this.dateParamEnd] = this.viewEnd.format(this.dateParamFormat);\r\n'
20130515 '        return o;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing all key/value params to be passed when loading the event store.\r\n'
20130515 '     * By default the returned object will simply be the same object returned by {@link #getStoreDateParams},\r\n'
20130515 '     * but this method is intended to be overridden if you need to pass anything in addition to start and end dates.\r\n'
20130515 '     * See the inline code comments when overriding for details.\r\n'
20130515 '     * @return {Object} An object containing all params to be sent when loading the event store\r\n'
20130515 '     */\r\n'
20130515 '    getStoreParams : function(){\r\n'
20130515 '        // This is needed if you require the default start and end dates to be included\r\n'
20130515 '        var params = this.getStoreDateParams();\r\n'
20130515 '        \r\n'
20130515 '        // Here is where you can add additional custom params, e.g.:\r\n'
20130515 '        // params.now = new Date().format(this.dateParamFormat);\r\n'
20130515 "        // params.foo = 'bar';\r\n"
20130515 '        // params.number = 123;\r\n'
20130515 '        \r\n'
20130515 '        return params;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Reloads the view's underlying event store using the params returned from {@link #getStoreParams}.\r\n"
20130515 '     * Reloading the store is typically managed automatically by the view itself, but the method is\r\n'
20130515 '     * available in case a manual reload is ever needed.\r\n'
20130515 "     * @param {Object} options (optional) An object matching the format used by Store's {@link Ext.data.Store#load load} method\r\n"
20130515 '     */\r\n'
20130515 '    reloadStore : function(o){\r\n'
20130515 "        Ext.ensible.log('reloadStore');\r\n"
20130515 '        o = Ext.isObject(o) ? o : {};\r\n'
20130515 '        o.params = o.params || {};\r\n'
20130515 '        \r\n'
20130515 '        Ext.apply(o.params, this.getStoreParams());\r\n'
20130515 '        this.store.load(o);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        if(this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.child('.ext-cal-hd-ct'),\r\n"
20130515 "                bd = this.el.child('.ext-cal-body-ct');\r\n"
20130515 '                \r\n'
20130515 '            if(bd==null || hd==null) return;\r\n'
20130515 '                \r\n'
20130515 '            var headerHeight = hd.getHeight(),\r\n'
20130515 '                sz = this.el.parent().getSize();\r\n'
20130515 '                   \r\n'
20130515 '            bd.setHeight(sz.height-headerHeight);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Refresh the current view, optionally reloading the event store also. While this is normally\r\n'
20130515 '     * managed internally on any navigation and/or CRUD action, there are times when you might want\r\n'
20130515 "     * to refresh the view manually (e.g., if you'd like to reload using different {@link #getStoreParams params}).\r\n"
20130515 '     * @param {Boolean} reloadData True to reload the store data first, false to simply redraw the view using current \r\n'
20130515 '     * data (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    refresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (base), reload = '+reloadData);\r\n"
20130515 '        if(reloadData === true){\r\n'
20130515 '            this.reloadStore();\r\n'
20130515 '        }\r\n'
20130515 '        this.prepareData();\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        this.renderItems();\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getWeekCount : function(){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd);\r\n'
20130515 '        return Math.ceil(days / this.dayCount);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareData : function(){\r\n'
20130515 '        var lastInMonth = this.startDate.getLastDateOfMonth(),\r\n'
20130515 '            w = 0, row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            weeks = this.weekCount < 1 ? 6 : this.weekCount;\r\n'
20130515 '        \r\n'
20130515 '        this.eventGrid = [[]];\r\n'
20130515 '        this.allDayGrid = [[]];\r\n'
20130515 '        this.evtMaxCount = [];\r\n'
20130515 '        \r\n'
20130515 '        var evtsInView = this.store.queryBy(function(rec){\r\n'
20130515 '            return this.isEventVisible(rec.data);\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        for(; w < weeks; w++){\r\n'
20130515 '            this.evtMaxCount[w] = 0;\r\n'
20130515 '            if(this.weekCount == -1 && dt > lastInMonth){\r\n'
20130515 '                //current week is fully in next month so skip\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            this.eventGrid[w] = this.eventGrid[w] || [];\r\n'
20130515 '            this.allDayGrid[w] = this.allDayGrid[w] || [];\r\n'
20130515 '            \r\n'
20130515 '            for(d = 0; d < this.dayCount; d++){\r\n'
20130515 '                if(evtsInView.getCount() > 0){\r\n'
20130515 '                    var evts = evtsInView.filterBy(function(rec){\r\n'
20130515 '                        var startsOnDate = (dt.getTime() == rec.data[Ext.ensible.cal.EventMappings.StartDate.name].clearTime(true).getTime());\r\n'
20130515 '                        var spansFromPrevView = (w == 0 && d == 0 && (dt > rec.data[Ext.ensible.cal.EventMappings.StartDate.name]));\r\n'
20130515 '                        return startsOnDate || spansFromPrevView;\r\n'
20130515 '                    }, this);\r\n'
20130515 '                    \r\n'
20130515 '                    this.sortEventRecordsForDay(evts);\r\n'
20130515 '                    this.prepareEventGrid(evts, w, d);\r\n'
20130515 '                }\r\n'
20130515 '                dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.currentWeekCount = w;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGrid : function(evts, w, d){\r\n'
20130515 '        var row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            max = this.maxEventsPerDay ? this.maxEventsPerDay : 999;\r\n'
20130515 '        \r\n'
20130515 '        evts.each(function(evt){\r\n'
20130515 '            var M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '            \r\n'
20130515 '            if(Ext.ensible.Date.diffDays(evt.data[M.StartDate.name], evt.data[M.EndDate.name]) > 0){\r\n'
20130515 '                var daysInView = Ext.ensible.Date.diffDays(\r\n'
20130515 '                    Ext.ensible.Date.max(this.viewStart, evt.data[M.StartDate.name]),\r\n'
20130515 '                    Ext.ensible.Date.min(this.viewEnd, evt.data[M.EndDate.name])) + 1;\r\n'
20130515 '                    \r\n'
20130515 '                this.prepareEventGridSpans(evt, this.eventGrid, w, d, daysInView);\r\n'
20130515 '                this.prepareEventGridSpans(evt, this.allDayGrid, w, d, daysInView, true);\r\n'
20130515 '            }\r\n'
20130515 '            else{\r\n'
20130515 '                row = this.findEmptyRowIndex(w,d);\r\n'
20130515 '                this.eventGrid[w][d] = this.eventGrid[w][d] || [];\r\n'
20130515 '                this.eventGrid[w][d][row] = evt;\r\n'
20130515 '                \r\n'
20130515 '                if(evt.data[M.IsAllDay.name]){\r\n'
20130515 '                    row = this.findEmptyRowIndex(w,d, true);\r\n'
20130515 '                    this.allDayGrid[w][d] = this.allDayGrid[w][d] || [];\r\n'
20130515 '                    this.allDayGrid[w][d][row] = evt;\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            if(this.evtMaxCount[w] < this.eventGrid[w][d].length){\r\n'
20130515 '                this.evtMaxCount[w] = Math.min(max+1, this.eventGrid[w][d].length);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGridSpans : function(evt, grid, w, d, days, allday){\r\n'
20130515 '        // this event spans multiple days/weeks, so we have to preprocess\r\n'
20130515 '        // the events and store special span events as placeholders so that\r\n'
20130515 '        // the render routine can build the necessary TD spans correctly.\r\n'
20130515 '        var w1 = w, d1 = d, \r\n'
20130515 '            row = this.findEmptyRowIndex(w,d,allday),\r\n'
20130515 '            dt = this.viewStart.clone();\r\n'
20130515 '        \r\n'
20130515 '        var start = {\r\n'
20130515 '            event: evt,\r\n'
20130515 '            isSpan: true,\r\n'
20130515 '            isSpanStart: true,\r\n'
20130515 '            spanLeft: false,\r\n'
20130515 '            spanRight: (d == 6)\r\n'
20130515 '        };\r\n'
20130515 '        grid[w][d] = grid[w][d] || [];\r\n'
20130515 '        grid[w][d][row] = start;\r\n'
20130515 '        \r\n'
20130515 '        while(--days){\r\n'
20130515 '            dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            if(dt > this.viewEnd){\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            if(++d1>6){\r\n'
20130515 '                // reset counters to the next week\r\n'
20130515 '                d1 = 0; w1++;\r\n'
20130515 '                row = this.findEmptyRowIndex(w1,0);\r\n'
20130515 '            }\r\n'
20130515 '            grid[w1] = grid[w1] || [];\r\n'
20130515 '            grid[w1][d1] = grid[w1][d1] || [];\r\n'
20130515 '            \r\n'
20130515 '            grid[w1][d1][row] = {\r\n'
20130515 '                event: evt,\r\n'
20130515 '                isSpan: true,\r\n'
20130515 '                isSpanStart: (d1 == 0),\r\n'
20130515 '                spanLeft: (w1 > w) && (d1 % 7 == 0),\r\n'
20130515 '                spanRight: (d1 == 6) && (days > 1)\r\n'
20130515 '            };\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    findEmptyRowIndex : function(w, d, allday){\r\n'
20130515 '        var grid = allday ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            day = grid[w] ? grid[w][d] || [] : [],\r\n'
20130515 '            i = 0, ln = day.length;\r\n'
20130515 '            \r\n'
20130515 '        for(; i < ln; i++){\r\n'
20130515 '            if(day[i] == null){\r\n'
20130515 '                return i;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return ln;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderTemplate : function(){\r\n'
20130515 '        if(this.tpl){\r\n'
20130515 '            this.tpl.overwrite(this.el, this.getTemplateParams());\r\n'
20130515 '            this.lastRenderStart = this.viewStart.clone();\r\n'
20130515 '            this.lastRenderEnd = this.viewEnd.clone();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateParams : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            viewEnd: this.viewEnd,\r\n'
20130515 '            startDate: this.startDate,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            weekendCls: this.weekendCls,\r\n'
20130515 '            prevMonthCls: this.prevMonthCls,\r\n'
20130515 '            nextMonthCls: this.nextMonthCls,\r\n'
20130515 '            todayCls: this.todayCls\r\n'
20130515 '        };\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Disable store event monitoring within this view. Note that if you do this the view will no longer\r\n'
20130515 '     * refresh itself automatically when CRUD actions occur. To enable store events see {@link #enableStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tdisableStoreEvents : function(){\r\n'
20130515 '\t\tthis.monitorStoreEvents = false;\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable store event monitoring within this view if disabled by {@link #disbleStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tenableStoreEvents : function(refresh){\r\n'
20130515 '\t\tthis.monitorStoreEvents = true;\r\n'
20130515 '\t\tif(refresh === true){\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '\t\t}\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tthis.refresh(false);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 "        this.fireEvent('initdrag', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonEventDrop : function(rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonCalendarEndDrag : function(start, end, onComplete){\r\n'
20130515 "        // set this flag for other event handlers that might conflict while we're waiting\r\n"
20130515 '        this.dragPending = true;\r\n'
20130515 '        \r\n'
20130515 '        var dates = {},\r\n'
20130515 '            onComplete = this.onCalendarEndDragComplete.createDelegate(this, [onComplete]);\r\n'
20130515 '        \r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.StartDate.name] = start;\r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.EndDate.name] = end;\r\n'
20130515 '        \r\n'
20130515 "        if(this.fireEvent('rangeselect', this, dates, onComplete) !== false){\r\n"
20130515 '            this.showEventEditor(dates, null);\r\n'
20130515 "            this.editWin.on('hide', onComplete, this, {single:true});\r\n"
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 '            // client code canceled the selection so clean up immediately\r\n'
20130515 '            this.onCalendarEndDragComplete(onComplete);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onCalendarEndDragComplete : function(onComplete){\r\n'
20130515 '        // callback for the drop zone to clean up\r\n'
20130515 '        onComplete();\r\n'
20130515 '        // clear flag for other events to resume normally\r\n'
20130515 '        this.dragPending = false;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onUpdate : function(ds, rec, operation){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\r\n'
20130515 "            Ext.ensible.log('onUpdate');\r\n"
20130515 '            this.dismissEventEditor();\r\n'
20130515 '            \r\n'
20130515 '            var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '            // if the event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // any event instances were updated on the server\r\n'
20130515 "            this.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '            \r\n'
20130515 '\t\t\tif(this.enableFx && this.enableUpdateFx){\r\n'
20130515 '\t\t\t\tthis.doUpdateFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                    scope: this\r\n'
20130515 '                });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is updated. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was updated. The default \r\n'
20130515 '     * effect is {@link Ext.Element#highlight highlight}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableUpdateFx} is true (it is false by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the updated event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoUpdateFx : function(els, o){\r\n'
20130515 '\t\tthis.highlightEvent(els, null, o);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onAdd : function(ds, recs, index){\r\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs; \r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false || rec.phantom){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(rec._deleting){\r\n'
20130515 '            delete rec._deleting;\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onAdd');\r\n"
20130515 '        \r\n'
20130515 '\t\tvar rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '        \r\n'
20130515 '        this.dismissEventEditor();    \r\n'
20130515 '\t\tthis.tempEventId = rec.id;\r\n'
20130515 '        // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '        // new event instances were generated on the server\r\n'
20130515 "\t\tthis.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '\t\t\r\n'
20130515 '\t\tif(this.enableFx && this.enableAddFx){\r\n'
20130515 '\t\t\tthis.doAddFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                scope: this\r\n'
20130515 '            });\r\n'
20130515 '\t\t};\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is added. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was added. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeIn fadeIn}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableAddFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the added event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoAddFx : function(els, o){\r\n'
20130515 '\t\tels.fadeIn(Ext.apply(o, {duration:2}));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onRemove : function(ds, rec){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onRemove');\r\n"
20130515 '        this.dismissEventEditor();\r\n'
20130515 '        \r\n'
20130515 '        var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name],\r\n'
20130515 '            // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // new event instances were generated on the server\r\n'
20130515 "            isRecurring = rrule !== undefined && rrule !== '';\r\n"
20130515 '        \r\n'
20130515 '\t\tif(this.enableFx && this.enableRemoveFx){\r\n'
20130515 '\t\t\tthis.doRemoveFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '\t            remove: true,\r\n'
20130515 '\t            scope: this,\r\n'
20130515 '\t\t\t\tcallback: this.refresh.createDelegate(this, [isRecurring])\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]).remove();\r\n'
20130515 '            this.refresh(isRecurring);\r\n'
20130515 '\t\t}\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is removed. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was removed. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeOut fadeOut}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableRemoveFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the removed event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object contains the following properties:\r\n'
20130515 '     * <pre><code>\r\n'
20130515 '{\r\n'
20130515 '   remove: true, // required by fadeOut to actually remove the element(s)\r\n'
20130515 '   scope: this,  // required for the callback\r\n'
20130515 '   callback: fn  // required to refresh the view after the fx finish\r\n'
20130515 '} \r\n'
20130515 '     * </code></pre>\r\n'
20130515 '     * While you can modify this options object as needed if you change the effect used, please note that the\r\n'
20130515 '     * callback method (and scope) MUST still be passed in order for the view to refresh correctly after the removal.\r\n'
20130515 '     * Please see the inline code comments before overriding this method. \r\n'
20130515 '     */\r\n'
20130515 '\tdoRemoveFx : function(els, o){\r\n'
20130515 '        // Please make sure you keep this entire code block or removing events might not work correctly!\r\n'
20130515 '        // Removing is a little different because we have to wait for the fx to finish, then we have to actually\r\n'
20130515 '        // refresh the view AFTER the fx are run (this is different than add and update).\r\n'
20130515 '        if(els.getCount() == 0 && Ext.isFunction(o.callback)){\r\n'
20130515 '            // if there are no matching elements in the view make sure the callback still runs.\r\n'
20130515 '            // this can happen when an event accessed from the "more" popup is deleted.\r\n'
20130515 '            o.callback.call(o.scope || this);\r\n'
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 "            // If you'd like to customize the remove fx do so here. Just make sure you\r\n"
20130515 '            // DO NOT override the default callback property on the options object, and that\r\n'
20130515 '            // you still pass that object in whatever fx method you choose.\r\n'
20130515 '            els.fadeOut(o);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * Visually highlights an event using {@link Ext.Fx#highlight} config options.\r\n'
20130515 '\t * @param {Ext.CompositeElement} els The element(s) to highlight\r\n'
20130515 '\t * @param {Object} color (optional) The highlight color. Should be a 6 char hex \r\n'
20130515 "\t * color without the leading # (defaults to yellow: 'ffff9c')\r\n"
20130515 '\t * @param {Object} o (optional) Object literal with any of the {@link Ext.Fx} config \r\n'
20130515 '\t * options. See {@link Ext.Fx#highlight} for usage examples.\r\n'
20130515 '\t */\r\n'
20130515 '\thighlightEvent : function(els, color, o) {\r\n'
20130515 '\t\tif(this.enableFx){\r\n'
20130515 '\t\t\tvar c;\r\n'
20130515 '\t\t\t!(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tels.highlight(color, o) :\r\n'
20130515 '\t\t\t\t// Fun IE/Opera handling:\r\n'
20130515 '\t\t\t\tels.each(function(el){\r\n'
20130515 "\t\t\t\t\tel.highlight(color, Ext.applyIf({attr:'color'}, o));\r\n"
20130515 "\t\t\t\t\tif(c = el.child('.ext-cal-evm')) {\r\n"
20130515 '\t\t\t\t\t\tc.highlight(color, o);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}, this);\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 "\t * Retrieve an Event object's id from its corresponding node in the DOM.\r\n"
20130515 '\t * @param {String/Element/HTMLElement} el An {@link Ext.Element}, DOM node or id\r\n'
20130515 '\t */\r\n'
20130515 '//\tgetEventIdFromEl : function(el){\r\n'
20130515 '//\t\tel = Ext.get(el);\r\n'
20130515 '//\t\tvar id = el.id.split(this.eventElIdDelimiter)[1];\r\n'
20130515 "//        if(id.indexOf('-w_') > -1){\r\n"
20130515 '//            //This id has the index of the week it is rendered in as part of the suffix.\r\n'
20130515 '//            //This allows events that span across weeks to still have reproducibly-unique DOM ids.\r\n'
20130515 "//            id = id.split('-w_')[0];\r\n"
20130515 '//        }\r\n'
20130515 '//        return id;\r\n'
20130515 '//\t},\r\n'
20130515 '    getEventIdFromEl : function(el){\r\n'
20130515 '        el = Ext.get(el);\r\n'
20130515 "        var parts, id = '', cls, classes = el.dom.className.split(' ');\r\n"
20130515 '        \r\n'
20130515 '        Ext.each(classes, function(cls){\r\n'
20130515 '            parts = cls.split(this.eventElIdDelimiter);\r\n'
20130515 '            if(parts.length > 1){\r\n'
20130515 '                id = parts[1];\r\n'
20130515 '                return false;\r\n'
20130515 '            }\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        return id;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t// private\r\n'
20130515 '\tgetEventId : function(eventId){\r\n'
20130515 '\t\tif(eventId === undefined && this.tempEventId){\r\n'
20130515 '            // temp record id assigned during an add, will be overwritten later\r\n'
20130515 '\t\t\teventId = this.tempEventId;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn eventId;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @param {Boolean} forSelect\r\n'
20130515 '\t * @return {String} The selector class\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventSelectorCls : function(eventId, forSelect){\r\n'
20130515 "\t\tvar prefix = forSelect ? '.' : '';\r\n"
20130515 '\t\treturn prefix + this.id + this.eventElIdDelimiter + this.getEventId(eventId);\r\n'
20130515 '\t},\r\n'
20130515 '\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @return {Ext.CompositeElement} The matching CompositeElement of nodes\r\n'
20130515 '\t * that comprise the rendered event.  Any event that spans across a view \r\n'
20130515 '\t * boundary will contain more than one internal Element.\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventEls : function(eventId){\r\n'
20130515 '\t\tvar els = this.el.select(this.getEventSelectorCls(this.getEventId(eventId), true), false);\r\n'
20130515 '\t\treturn new Ext.CompositeElement(els);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\r\n"
20130515 '     * @return {Boolean} True or false\r\n'
20130515 '     */\r\n'
20130515 '    isToday : function(){\r\n'
20130515 '        var today = new Date().clearTime().getTime();\r\n'
20130515 '        return this.viewStart.getTime() <= today && this.viewEnd.getTime() >= today;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    onDataChanged : function(store){\r\n'
20130515 "        Ext.ensible.log('onDataChanged');\r\n"
20130515 '        this.refresh(false);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isEventVisible : function(evt){\r\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            data = evt.data ? evt.data : evt,\r\n'
20130515 '            calId = data[M.CalendarId.name],\r\n'
20130515 '            calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '            \r\n'
20130515 '        if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '            // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '            return false;\r\n'
20130515 '        }\r\n'
20130515 '            \r\n'
20130515 '        var start = this.viewStart.getTime(),\r\n'
20130515 '            end = this.viewEnd.getTime(),\r\n'
20130515 '            evStart = data[M.StartDate.name].getTime(),\r\n'
20130515 '            evEnd = data[M.EndDate.name].getTime();\r\n'
20130515 '            \r\n'
20130515 '        return Ext.ensible.Date.rangesOverlap(start, end, evStart, evEnd);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isOverlapping : function(evt1, evt2){\r\n'
20130515 '        var ev1 = evt1.data ? evt1.data : evt1,\r\n'
20130515 '            ev2 = evt2.data ? evt2.data : evt2,\r\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            start1 = ev1[M.StartDate.name].getTime(),\r\n'
20130515 '            end1 = ev1[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 '            start2 = ev2[M.StartDate.name].getTime(),\r\n'
20130515 '            end2 = ev2[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 "            startDiff = Ext.ensible.Date.diff(ev1[M.StartDate.name], ev2[M.StartDate.name], 'm');\r\n"
20130515 '            \r\n'
20130515 '            if(end1<start1){\r\n'
20130515 '                end1 = start1;\r\n'
20130515 '            }\r\n'
20130515 '            if(end2<start2){\r\n'
20130515 '                end2 = start2;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '//            var ev1startsInEv2 = (start1 >= start2 && start1 <= end2),\r\n'
20130515 '//            ev1EndsInEv2 = (end1 >= start2 && end1 <= end2),\r\n'
20130515 '//            ev1SpansEv2 = (start1 < start2 && end1 > end2),\r\n'
20130515 '            var evtsOverlap = Ext.ensible.Date.rangesOverlap(start1, end1, start2, end2),\r\n'
20130515 '                minimumMinutes = this.minEventDisplayMinutes || 0, // applies in day/week body view only for vertical overlap\r\n'
20130515 '                ev1MinHeightOverlapsEv2 = minimumMinutes > 0 && (startDiff > -minimumMinutes && startDiff < minimumMinutes);\r\n'
20130515 '        \r\n'
20130515 '        //return (ev1startsInEv2 || ev1EndsInEv2 || ev1SpansEv2 || ev1MinHeightOverlapsEv2);\r\n'
20130515 '        return (evtsOverlap || ev1MinHeightOverlapsEv2);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayEl : function(dt){\r\n'
20130515 '        return Ext.get(this.getDayId(dt));\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayId : function(dt){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 "            dt = dt.format('Ymd');\r\n"
20130515 '        }\r\n'
20130515 '        return this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \r\n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\r\n'
20130515 '     * to the user use {@link #getViewBounds}.\r\n'
20130515 '     * @return {Date} The start date\r\n'
20130515 '     */\r\n'
20130515 '    getStartDate : function(){\r\n'
20130515 '        return this.startDate;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \r\n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\r\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\r\n'
20130515 '     */\r\n'
20130515 '    setStartDate : function(start, /*private*/reload){\r\n'
20130515 "        Ext.ensible.log('setStartDate (base) '+start.format('Y-m-d'));\r\n"
20130515 "        if(this.fireEvent('beforedatechange', this, this.startDate, start, this.viewStart, this.viewEnd) !== false){\r\n"
20130515 '            this.startDate = start.clearTime();\r\n'
20130515 '            this.setViewBounds(start);\r\n'
20130515 '            if(this.rendered){\r\n'
20130515 '                this.refresh(reload);\r\n'
20130515 '            }\r\n'
20130515 "            this.fireEvent('datechange', this, this.startDate, this.viewStart, this.viewEnd);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    setViewBounds : function(startDate){\r\n'
20130515 '        var start = startDate || this.startDate,\r\n'
20130515 '            offset = start.getDay() - this.startDay;\r\n'
20130515 '        \r\n'
20130515 '        if(offset < 0){\r\n'
20130515 '            // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '            offset += 7;\r\n'
20130515 '        }\r\n'
20130515 '        switch(this.weekCount){\r\n'
20130515 '            case 0:\r\n'
20130515 '            case 1:\r\n'
20130515 '                this.viewStart = this.dayCount < 7 && !this.startDayIsStatic ? start : start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.dayCount || 7).add(Date.SECOND, -1);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            case -1: // auto by month\r\n'
20130515 '                start = start.getFirstDateOfMonth();\r\n'
20130515 '                offset = start.getDay() - this.startDay;\r\n'
20130515 '                if(offset < 0){\r\n'
20130515 '                    // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '                    offset += 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                \r\n'
20130515 '                // start from current month start, not view start:\r\n'
20130515 '                var end = start.add(Date.MONTH, 1).add(Date.SECOND, -1);\r\n'
20130515 '                // fill out to the end of the week:\r\n'
20130515 '                offset = this.startDay;\r\n'
20130515 '                if(offset > end.getDay()){\r\n'
20130515 '                    // if the offset is larger than the end day index then the last row will be empty so skip it\r\n'
20130515 '                    offset -= 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewEnd = end.add(Date.DAY, 6-end.getDay()+offset);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            default:\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.weekCount * 7).add(Date.SECOND, -1);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start and end boundary dates currently displayed in the view. The method\r\n'
20130515 '     * returns an object literal that contains the following properties:<ul>\r\n'
20130515 '     * <li><b>start</b> Date : <div class="sub-desc">The start date of the view</div></li>\r\n'
20130515 '     * <li><b>end</b> Date : <div class="sub-desc">The end date of the view</div></li></ul>\r\n'
20130515 '     * For example:<pre><code>\r\n'
20130515 'var bounds = view.getViewBounds();\r\n'
20130515 "alert('Start: '+bounds.start);\r\n"
20130515 "alert('End: '+bounds.end);\r\n"
20130515 '</code></pre>\r\n'
20130515 '     * @return {Object} An object literal containing the start and end values\r\n'
20130515 '     */\r\n'
20130515 '    getViewBounds : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            start: this.viewStart,\r\n'
20130515 '            end: this.viewEnd\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t/* private\r\n'
20130515 '\t * Sort events for a single day for display in the calendar.  This sorts allday\r\n'
20130515 '\t * events first, then non-allday events are sorted either based on event start\r\n'
20130515 '\t * priority or span priority based on the value of {@link #spansHavePriority} \r\n'
20130515 '\t * (defaults to event start priority).\r\n'
20130515 '\t * @param {MixedCollection} evts A {@link Ext.util.MixedCollection MixedCollection}  \r\n'
20130515 '\t * of {@link #Ext.ensible.cal.EventRecord EventRecord} objects\r\n'
20130515 '\t */\r\n'
20130515 '\tsortEventRecordsForDay: function(evts){\r\n'
20130515 '        if(evts.length < 2){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "\t\tevts.sort('ASC', function(evtA, evtB){\r\n"
20130515 '\t\t\tvar a = evtA.data, b = evtB.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Always sort all day events before anything else\r\n'
20130515 '\t\t\tif (a[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse if (b[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (this.spansHavePriority) {\r\n'
20130515 '\t\t\t\t// This logic always weights span events higher than non-span events \r\n'
20130515 '\t\t\t\t// (at the possible expense of start time order). This seems to \r\n'
20130515 '\t\t\t\t// be the approach used by Google calendar and can lead to a more\r\n'
20130515 '\t\t\t\t// visually appealing layout in complex cases, but event order is\r\n'
20130515 '\t\t\t\t// not guaranteed to be consistent.\r\n'
20130515 '\t\t\t\tvar diff = Ext.ensible.Date.diffDays;\r\n'
20130515 '\t\t\t\tif (diff(a[M.StartDate.name], a[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\tif (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\t\t// Both events are multi-day\r\n'
20130515 '\t\t\t\t\t\tif (a[M.StartDate.name].getTime() == b[M.StartDate.name].getTime()) {\r\n'
20130515 '\t\t\t\t\t\t\t// If both events start at the same time, sort the one\r\n'
20130515 '\t\t\t\t\t\t\t// that ends later (potentially longer span bar) first\r\n'
20130515 '\t\t\t\t\t\t\treturn b[M.EndDate.name].getTime() - a[M.EndDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse if (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\t// Doing this allows span and non-span events to intermingle but\r\n'
20130515 '\t\t\t\t// remain sorted sequentially by start time. This seems more proper\r\n'
20130515 '\t\t\t\t// but can make for a less visually-compact layout when there are\r\n'
20130515 '\t\t\t\t// many such events mixed together closely on the calendar.\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}.createDelegate(this));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to contain the passed date\r\n'
20130515 '     * @param {Date} dt The date to display\r\n'
20130515 '     */\r\n'
20130515 '    moveTo : function(dt, /*private*/reload){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 '            this.setStartDate(dt, reload);\r\n'
20130515 '            return this.startDate;\r\n'
20130515 '        }\r\n'
20130515 '        return dt;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the next consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveNext : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(this.viewEnd.add(Date.DAY, 1), reload);\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the previous consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    movePrev : function(/*private*/reload){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd)+1;\r\n'
20130515 '        return this.moveDays(-days, reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of months relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of months (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveMonths : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.MONTH, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of weeks relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of weeks (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveWeeks : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value*7), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveDays : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to show today\r\n'
20130515 "     * @return {Date} Today's date\r\n"
20130515 '     */\r\n'
20130515 '    moveToday : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(new Date(), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setStore : function(store, initial){\r\n'
20130515 '        var currStore = this.store;\r\n'
20130515 '        \r\n'
20130515 '        if(!initial && currStore){\r\n'
20130515 '            currStore.un("datachanged", this.onDataChanged, this);\r\n'
20130515 '            currStore.un("clear", this.refresh, this);\r\n'
20130515 '            currStore.un("write", this.onWrite, this);\r\n'
20130515 '            currStore.un("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.onDataChanged, this);\r\n'
20130515 '            store.on("clear", this.refresh, this);\r\n'
20130515 '            store.on("write", this.onWrite, this);\r\n'
20130515 '            store.on("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.store = store;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onException : function(proxy, type, action, o, res, arg){\r\n'
20130515 '        // form edits are explicitly canceled, but we may not know if a drag/drop operation\r\n'
20130515 '        // succeeded until after a server round trip. if the update failed we have to explicitly\r\n'
20130515 "        // reject the changes so that the record doesn't stick around in the store's modified list \r\n"
20130515 '        if(arg.reject){\r\n'
20130515 '            arg.reject();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the calendar store used by the calendar (contains records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}).\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setCalendarStore : function(store, initial){\r\n'
20130515 '        if(!initial && this.calendarStore){\r\n'
20130515 '            this.calendarStore.un("datachanged", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("add", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("remove", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.refresh, this);\r\n'
20130515 '            store.on("add", this.refresh, this);\r\n'
20130515 '            store.on("remove", this.refresh, this);\r\n'
20130515 '            store.on("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.calendarStore = store;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    getEventRecord : function(id){\r\n'
20130515 '        var idx = this.store.find(Ext.ensible.cal.EventMappings.EventId.name, id);\r\n'
20130515 '        return this.store.getAt(idx);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetEventRecordFromEl : function(el){\r\n'
20130515 '\t\treturn this.getEventRecord(this.getEventIdFromEl(el));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventEditor : function(){\r\n'
20130515 '        // only create one instance of the edit window, even if there are multiple CalendarPanels\r\n'
20130515 "        this.editWin = this.editWin || Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '         \r\n'
20130515 '        if(!this.editWin){\r\n'
20130515 '            this.editWin = new Ext.ensible.cal.EventEditWindow({\r\n'
20130515 "                id: 'ext-cal-editwin',\r\n"
20130515 '                calendarStore: this.calendarStore,\r\n'
20130515 '                modal: this.editModal,\r\n'
20130515 '                enableEditDetails: this.enableEditDetails,\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'eventadd': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventAdd(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventupdate': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventUpdate(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventdelete': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventDelete(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'editdetails': {\r\n"
20130515 '                        fn: function(win, rec, animTarget, view){\r\n'
20130515 '                            win.hide(animTarget);\r\n'
20130515 "                            win.currentView.fireEvent('editdetails', win.currentView, rec, animTarget);\r\n"
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventcancel': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            this.dismissEventEditor(animTarget);\r\n'
20130515 '                            win.currentView.onEventCancel();\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    }\r\n'
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        // allows the window to reference the current scope in its callbacks\r\n'
20130515 '        this.editWin.currentView = this;\r\n'
20130515 '        return this.editWin;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\r\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\r\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\r\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\r\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    showEventEditor : function(rec, animateTarget){\r\n'
20130515 '        this.getEventEditor().show(rec, animateTarget, this);\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\r\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \r\n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\r\n"
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    dismissEventEditor : function(dismissMethod, /*private*/ animTarget){\r\n'
20130515 '        if(this.newRecord && this.newRecord.phantom){\r\n'
20130515 '            this.store.remove(this.newRecord);\r\n'
20130515 '        }\r\n'
20130515 '        delete this.newRecord;\r\n'
20130515 '        \r\n'
20130515 "        // grab the manager's ref so that we dismiss it properly even if the active view has changed\r\n"
20130515 "        var editWin = Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '        if(editWin){\r\n'
20130515 "            editWin[dismissMethod ? dismissMethod : 'hide'](animTarget);\r\n"
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    save: function(){\r\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\r\n"
20130515 '        // method will have already internally caused a save to execute on\r\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\r\n'
20130515 "        // otherwise we'll create duplicate transactions.\r\n"
20130515 '        if(!this.store.autoSave){\r\n'
20130515 '            this.store.save();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\r\n'
20130515 '        switch(action){\r\n'
20130515 "            case 'create': \r\n"
20130515 '                this.onAdd(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'update':\r\n"
20130515 '                this.onUpdate(store, rec, Ext.data.Record.COMMIT);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'destroy':\r\n"
20130515 '                this.onRemove(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventAdd: function(form, rec){\r\n'
20130515 '        this.newRecord = rec;\r\n'
20130515 '        if(!rec.store){\r\n'
20130515 '            this.store.add(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 '        }\r\n'
20130515 "        this.fireEvent('eventadd', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventUpdate: function(form, rec){\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventDelete: function(form, rec){\r\n'
20130515 '        if(rec.store){\r\n'
20130515 '            this.store.remove(rec);\r\n'
20130515 '        }\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventCancel: function(form, rec){\r\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private -- called from subclasses\r\n'
20130515 '    onDayClick: function(dt, ad, el){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('dayclick', this, dt, ad, el) !== false){\r\n"
20130515 '            var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '                data = {};\r\n'
20130515 '                \r\n'
20130515 '            data[M.StartDate.name] = dt;\r\n'
20130515 '            data[M.IsAllDay.name] = ad;\r\n'
20130515 '                \r\n'
20130515 '            this.showEventEditor(data, el);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    showEventMenu : function(el, xy){\r\n'
20130515 '        if(!this.eventMenu){\r\n'
20130515 '            this.eventMenu = new Ext.ensible.cal.EventContextMenu({\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'editdetails': this.onEditDetails.createDelegate(this),\r\n"
20130515 "                    'eventdelete': this.onDeleteEvent.createDelegate(this),\r\n"
20130515 "                    'eventmove': this.onMoveEvent.createDelegate(this)\r\n"
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.eventMenu.showForEvent(this.getEventRecordFromEl(el), el, xy);\r\n'
20130515 '        this.menuActive = true;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEditDetails : function(menu, rec, el){\r\n'
20130515 "        this.fireEvent('editdetails', this, rec, el);\r\n"
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMoveEvent : function(menu, rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Move the event to a new start date, preserving the original event duration.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     * @param {Object} dt The new start date\r\n'
20130515 '     */\r\n'
20130515 '    moveEvent : function(rec, dt){\r\n'
20130515 '        if(Ext.ensible.Date.compare(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt) === 0){\r\n'
20130515 '            // no changes\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('beforeeventmove', this, rec, dt) !== false){\r\n"
20130515 '            var diff = dt.getTime() - rec.data[Ext.ensible.cal.EventMappings.StartDate.name].getTime();\r\n'
20130515 '            rec.beginEdit();\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.StartDate.name, dt);\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.EndDate.name, rec.data[Ext.ensible.cal.EventMappings.EndDate.name].add(Date.MILLI, diff));\r\n'
20130515 '            rec.endEdit();\r\n'
20130515 '            this.save();\r\n'
20130515 '            \r\n'
20130515 "            this.fireEvent('eventmove', this, rec);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDeleteEvent: function(menu, rec, el){\r\n'
20130515 '        rec._deleting = true;\r\n'
20130515 '        this.deleteEvent(rec, el);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Delete the specified event.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     */\r\n'
20130515 '    deleteEvent: function(rec, /* private */el){\r\n'
20130515 "        if(this.fireEvent('beforeeventdelete', this, rec, el) !== false){\r\n"
20130515 '            this.store.remove(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 "            this.fireEvent('eventdelete', this, rec, el);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onContextMenu : function(e, t){\r\n'
20130515 '        var el, match = false;\r\n'
20130515 '        \r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            this.dismissEventEditor().showEventMenu(el, e.getXY());\r\n'
20130515 '            match = true;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        if(match || this.suppressBrowserContextMenu === true){\r\n'
20130515 '            e.preventDefault();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /*\r\n'
20130515 '     * Shared click handling.  Each specific view also provides view-specific\r\n'
20130515 '     * click handling that calls this first.  This method returns true if it\r\n'
20130515 '     * can handle the click (and so the subclass should ignore it) else false.\r\n'
20130515 '     */\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dropZone){\r\n'
20130515 '            this.dropZone.clearShims();\r\n'
20130515 '        }\r\n'
20130515 '        if(this.menuActive === true){\r\n'
20130515 '            // ignore the first click if a context menu is active (let it close)\r\n'
20130515 '            this.menuActive = false;\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        var el = e.getTarget(this.eventSelector, 5);\r\n'
20130515 '        if(el){\r\n'
20130515 '            var id = this.getEventIdFromEl(el),\r\n'
20130515 '                rec = this.getEventRecord(id);\r\n'
20130515 '            \r\n'
20130515 "            if(this.fireEvent('eventclick', this, rec, el) !== false){\r\n"
20130515 '                this.showEventEditor(rec, el);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOver : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'over')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'over');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOut : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'out')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'out');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleEventMouseEvent : function(e, t, type){\r\n'
20130515 '        var el;\r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            var rel = Ext.get(e.getRelatedTarget());\r\n'
20130515 '            if(el == rel || el.contains(rel)){\r\n'
20130515 '                return true;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            var evtId = this.getEventIdFromEl(el);\r\n'
20130515 '            \r\n'
20130515 "            if(this.eventOverClass != ''){\r\n"
20130515 '                var els = this.getEventEls(evtId);\r\n'
20130515 "                els[type == 'over' ? 'addClass' : 'removeClass'](this.eventOverClass);\r\n"
20130515 '            }\r\n'
20130515 "            this.fireEvent('event'+type, this, this.getEventRecord(evtId), el);\r\n"
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        return false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDateFromId : function(id, delim){\r\n'
20130515 '        var parts = id.split(delim);\r\n'
20130515 '        return parts[parts.length-1];\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 "        if(t = e.getTarget('td', 3)){\r\n"
20130515 '            if(t.id && t.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var dt = this.getDateFromId(t.id, this.dayElIdDelimiter),\r\n'
20130515 '                    rel = Ext.get(e.getRelatedTarget()),\r\n'
20130515 '                    relTD, relDate;\r\n'
20130515 '                \r\n'
20130515 '                if(rel){\r\n'
20130515 "                    relTD = rel.is('td') ? rel : rel.up('td', 3);\r\n"
20130515 "                    relDate = relTD && relTD.id ? this.getDateFromId(relTD.id, this.dayElIdDelimiter) : '';\r\n"
20130515 '                }\r\n'
20130515 '                if(!rel || dt != relDate){\r\n'
20130515 '                    var el = this.getDayEl(dt);\r\n'
20130515 "                    if(el && this.dayOverClass != ''){\r\n"
20130515 "                        el[type == 'over' ? 'addClass' : 'removeClass'](this.dayOverClass);\r\n"
20130515 '                    }\r\n'
20130515 '                    this.fireEvent(\'day\'+type, this, Date.parseDate(dt, "Ymd"), el);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private, MUST be implemented by subclasses\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 "        throw 'This method must be implemented by a subclass';\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.el){\r\n'
20130515 "            this.el.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '        Ext.destroy(\r\n'
20130515 '            this.editWin, \r\n'
20130515 '            this.eventMenu,\r\n'
20130515 '            this.dragZone,\r\n'
20130515 '            this.dropZone\r\n'
20130515 '        );\r\n'
20130515 '    }\r\n'
20130515 '});/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthView\r\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\r\n'
20130515 ' * <p>Displays a calendar view by month. This class does not usually need ot be used directly as you can\r\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\r\n'
20130515 ' * the month view.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthView = Ext.extend(Ext.ensible.cal.CalendarView, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} moreText\r\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMoreText} instead.</p>\r\n'
20130515 '     * <p>The text to display in a day box when there are more events than can be displayed and a link is provided to\r\n'
20130515 "     * show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @deprecated\r\n'
20130515 '     */\r\n'
20130515 "    moreText: '+{0} more...',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} detailsTitleDateFormat\r\n'
20130515 '     * The date format for the title of the details panel that shows when there are hidden events and the "more" link \r\n'
20130515 "     * is clicked (defaults to 'F j').\r\n"
20130515 '     */\r\n'
20130515 "    detailsTitleDateFormat: 'F j',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTime\r\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTime: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTodayText\r\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTodayText: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showHeader\r\n'
20130515 "     * True to display a header beneath the navigation bar containing the week names above each week's column, false not to \r\n"
20130515 '     * show it and instead display the week names in the first row of days in the calendar (defaults to false).\r\n'
20130515 '     */\r\n'
20130515 '    showHeader: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekLinks\r\n'
20130515 '     * True to display an extra column before the first day in the calendar that links to the {@link Ext.ensible.cal.WeekView view}\r\n'
20130515 '     * for each individual week, false to not show it (defaults to false). If true, the week links can also contain the week \r\n'
20130515 '     * number depending on the value of {@link #showWeekNumbers}.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekLinks: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekNumbers\r\n'
20130515 '     * True to show the week number for each week in the calendar in the week link column, false to show nothing (defaults to false).\r\n'
20130515 '     * Note that if {@link #showWeekLinks} is false this config will have no affect even if true.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekNumbers: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekLinkOverClass\r\n'
20130515 '     * The CSS class name applied when the mouse moves over a week link element (only applies when {@link #showWeekLinks} is true,\r\n'
20130515 "     * defaults to 'ext-week-link-over').\r\n"
20130515 '     */\r\n'
20130515 "    weekLinkOverClass: 'ext-week-link-over',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 "    daySelector: '.ext-cal-day',\r\n"
20130515 "    moreSelector : '.ext-cal-ev-more',\r\n"
20130515 "    weekLinkSelector : '.ext-cal-week-link',\r\n"
20130515 '    weekCount: -1, // defaults to auto by month\r\n'
20130515 '    dayCount: 7,\r\n'
20130515 "\tmoreElIdDelimiter: '-more-',\r\n"
20130515 "    weekLinkIdDelimiter: 'ext-cal-week-',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.initComponent.call(this);\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayclick\r\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \r\n'
20130515 '             * for validating that a user can only create events on certain days.\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\r\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \r\n'
20130515 '             * MonthView always return true for this param.\r\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            dayclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event weekclick\r\n'
20130515 '             * Fires after the user clicks within a week link (when {@link #showWeekLinks is true)\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The start date of the week that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            weekclick: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayout: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tinitDD : function(){\r\n'
20130515 '\t\tvar cfg = {\r\n'
20130515 '\t\t\tview: this,\r\n'
20130515 '\t\t\tcreateText: this.ddCreateEventText,\r\n'
20130515 '\t\t\tmoveText: this.ddMoveEventText,\r\n'
20130515 "            ddGroup : this.ddGroup || this.id+'-MonthViewDD'\r\n"
20130515 '\t\t};\r\n'
20130515 '        \r\n'
20130515 '        this.dragZone = new Ext.ensible.cal.DragZone(this.el, cfg);\r\n'
20130515 '        this.dropZone = new Ext.ensible.cal.DropZone(this.el, cfg);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDestroy : function(){\r\n'
20130515 '        Ext.destroy(this.ddSelector);\r\n'
20130515 '\t\tExt.destroy(this.dragZone);\r\n'
20130515 '\t\tExt.destroy(this.dropZone);\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onDestroy.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '            this.tpl = new Ext.ensible.cal.MonthViewTemplate({\r\n'
20130515 '                id: this.id,\r\n'
20130515 '                showTodayText: this.showTodayText,\r\n'
20130515 '                todayText: this.todayText,\r\n'
20130515 '                showTime: this.showTime,\r\n'
20130515 '                showHeader: this.showHeader,\r\n'
20130515 '                showWeekLinks: this.showWeekLinks,\r\n'
20130515 '                showWeekNumbers: this.showWeekNumbers\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 "        this.addClass('ext-cal-monthview ext-cal-ct');\r\n"
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.afterRender.call(this);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tif(this.monitorResize){\r\n'
20130515 '\t\t\tthis.maxEventsPerDay = this.getMaxEventsPerDay();\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        // Compensate for the week link gutter width if visible\r\n'
20130515 '        if(this.showWeekLinks && this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.select('.ext-cal-hd-days-tbl'),\r\n"
20130515 "                bgTbl = this.el.select('.ext-cal-bg-tbl'),\r\n"
20130515 "                evTbl = this.el.select('.ext-cal-evt-tbl'),\r\n"
20130515 "                wkLinkW = this.el.child('.ext-cal-week-link').getWidth(),\r\n"
20130515 '                w = this.el.getWidth()-wkLinkW;\r\n'
20130515 '            \r\n'
20130515 '            hd.setWidth(w);\r\n'
20130515 '            bgTbl.setWidth(w);\r\n'
20130515 '            evTbl.setWidth(w);\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.forceSize.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    //private\r\n'
20130515 '    initClock : function(){\r\n'
20130515 "        if(Ext.fly(this.id+'-clock') !== null){\r\n"
20130515 '            this.prevClockDay = new Date().getDay();\r\n'
20130515 '            if(this.clockTask){\r\n'
20130515 '                Ext.TaskMgr.stop(this.clockTask);\r\n'
20130515 '            }\r\n'
20130515 '            this.clockTask = Ext.TaskMgr.start({\r\n'
20130515 '                run: function(){ \r\n'
20130515 "                    var el = Ext.fly(this.id+'-clock'),\r\n"
20130515 '                        t = new Date();\r\n'
20130515 '                        \r\n'
20130515 '                    if(t.getDay() == this.prevClockDay){\r\n'
20130515 '                        if(el){\r\n'
20130515 "                            el.update(t.format(Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia'));\r\n"
20130515 '                        }\r\n'
20130515 '                    }\r\n'
20130515 '                    else{\r\n'
20130515 '                        this.prevClockDay = t.getDay();\r\n'
20130515 '                        this.moveTo(t);\r\n'
20130515 '                    }\r\n'
20130515 '                },\r\n'
20130515 '                scope: this,\r\n'
20130515 '                interval: 1000\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * <p>Returns the text to display in a day box when there are more events than can be displayed and a link is \r\n'
20130515 "     * provided to show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @param {Integer} numEvents The number of events currently hidden from view\r\n'
20130515 '     * @return {String} The text to display for the "more" link \r\n'
20130515 '     */\r\n'
20130515 '    getMoreText: function(numEvents){\r\n'
20130515 '        return this.moreText;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\r\n"
20130515 '\t            \'<tpl if="_isReminder">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="_isRecurring">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanLeft">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spl">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanRight">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>'\r\n"
20130515 "\t        ].join('');\r\n"
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventTemplate : function(){\r\n'
20130515 '        if(!this.eventTpl){\r\n'
20130515 '\t        var tpl, body = this.getEventBodyMarkup();\r\n'
20130515 '            \r\n'
20130515 '\t        tpl = !(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tnew Ext.XTemplate(\r\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 '\t\t                body,\r\n'
20130515 "\t\t            '</div>'\r\n"
20130515 '\t\t        ) \r\n'
20130515 '\t\t\t\t: new Ext.XTemplate(\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evo">\',\r\n'
20130515 '\t\t                    \'<div class="ext-cal-evm">\',\r\n'
20130515 '\t\t                        \'<div class="ext-cal-evi">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            \'<tpl if="!_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            body,\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 "\t\t                        '</div>',\r\n"
20130515 "\t\t                    '</div>',\r\n"
20130515 "\t\t            '</tpl>',\r\n"
20130515 "\t\t                '</div>'\r\n"
20130515 '\t        \t);\r\n'
20130515 '            tpl.compile();\r\n'
20130515 '            this.eventTpl = tpl;\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventTpl;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\r\n'
20130515 '            data = {},\r\n'
20130515 "            recurring = evt[M.RRule.name] != '',\r\n"
20130515 "            colorCls = 'x-cal-default',\r\n"
20130515 '\t\t    title = evt[M.Title.name],\r\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ';\r\n"
20130515 '        \r\n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\r\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\r\n'
20130515 '            if(rec){\r\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '');\r\n"
20130515 '        extraClasses.push(colorCls);\r\n'
20130515 '        \r\n'
20130515 '        if(this.getEventClass){\r\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\r\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\r\n'
20130515 '            extraClasses.push(cls);\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "\t\tdata._extraCls = extraClasses.join(' ');\r\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\r\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\r\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\r\n"
20130515 '        \r\n'
20130515 '        return Ext.applyIf(data, evt);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\trefresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (MonthView)');\r\n"
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\tExt.ensible.cal.MonthView.superclass.refresh.call(this, reloadData);\r\n'
20130515 '        \r\n'
20130515 '        if(this.showTime !== false){\r\n'
20130515 '            this.initClock();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 '        Ext.ensible.cal.WeekEventRenderer.render({\r\n'
20130515 '            eventGrid: this.allDayOnly ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            tpl: this.getEventTemplate(),\r\n'
20130515 '            maxEventsPerDay: this.maxEventsPerDay,\r\n'
20130515 '            id: this.id,\r\n'
20130515 '            templateDataFn: this.getTemplateEventData.createDelegate(this),\r\n'
20130515 '            evtMaxCount: this.evtMaxCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            getMoreText: this.getMoreText.createDelegate(this)\r\n'
20130515 '        });\r\n'
20130515 "        this.fireEvent('eventsrendered', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayEl : function(dt){\r\n'
20130515 '\t\treturn Ext.get(this.getDayId(dt));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayId : function(dt){\r\n'
20130515 '\t\tif(Ext.isDate(dt)){\r\n'
20130515 "\t\t\tdt = dt.format('Ymd');\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\treturn this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetWeekIndex : function(dt){\r\n'
20130515 "\t\tvar el = this.getDayEl(dt).up('.ext-cal-wk-ct');\r\n"
20130515 "\t\treturn parseInt(el.id.split('-wk-')[1]);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDaySize : function(contentOnly){\r\n'
20130515 '        var box = this.el.getBox(),\r\n'
20130515 '            padding = this.getViewPadding(),\r\n'
20130515 '            w = (box.width - padding.width) / this.dayCount,\r\n'
20130515 '            h = (box.height - padding.height) / this.getWeekCount();\r\n'
20130515 '            \r\n'
20130515 '\t\tif(contentOnly){\r\n'
20130515 '            // measure last row instead of first in case text wraps in first row\r\n'
20130515 "\t\t\tvar hd = this.el.select('.ext-cal-dtitle').last().parent('tr');\r\n"
20130515 '\t\t\th = hd ? h-hd.getHeight(true) : h;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn {height: h, width: w};\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventHeight : function(){\r\n'
20130515 '        if(!this.eventHeight){\r\n'
20130515 "            var evt = this.el.select('.ext-cal-evt').first();\r\n"
20130515 '            if(evt){\r\n'
20130515 "                this.eventHeight = evt.parent('tr').getHeight();\r\n"
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                return 16; // no events rendered, so try setting this.eventHeight again later\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventHeight;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetMaxEventsPerDay : function(){\r\n'
20130515 '\t\tvar dayHeight = this.getDaySize(true).height,\r\n'
20130515 '\t\t\th = this.getEventHeight(),\r\n'
20130515 '            bottomPad = 5,\r\n'
20130515 '            max = Math.max(Math.floor((dayHeight-h-bottomPad) / h), 0);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\treturn max;\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getViewPadding: function(sides) {\r\n'
20130515 "        var sides = sides || 'tlbr',\r\n"
20130515 "            top = sides.indexOf('t') > -1,\r\n"
20130515 "            left = sides.indexOf('l') > -1,\r\n"
20130515 "            right = sides.indexOf('r') > -1,\r\n"
20130515 "            height = this.showHeader && top ? this.el.select('.ext-cal-hd-days-tbl').first().getHeight() : 0,\r\n"
20130515 '            width = 0;\r\n'
20130515 '        \r\n'
20130515 '        if (this.isHeaderView) {\r\n'
20130515 '            if (left) {\r\n'
20130515 "                width = this.el.select('.ext-cal-gutter').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '            if (right) {\r\n'
20130515 "                width += this.el.select('.ext-cal-gutter-rt').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else if (this.showWeekLinks && left) {\r\n'
20130515 "            width = this.el.select('.ext-cal-week-link').first().getWidth();\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return {\r\n'
20130515 '            height: height,\r\n'
20130515 '            width: width\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayAt : function(x, y){\r\n'
20130515 '\t\tvar box = this.el.getBox(),\r\n'
20130515 "            padding = this.getViewPadding('tl'), // top/left only since we only want the xy offsets\r\n"
20130515 '\t\t\tdaySize = this.getDaySize(),\r\n'
20130515 '\t\t\tdayL = Math.floor(((x - box.x - padding.width) / daySize.width)),\r\n'
20130515 '\t\t\tdayT = Math.floor(((y - box.y - padding.height) / daySize.height)),\r\n'
20130515 '\t\t\tdays = (dayT * 7) + dayL;\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tvar dt = this.viewStart.add(Date.DAY, days);\r\n'
20130515 '\t\treturn {\r\n'
20130515 '\t\t\tdate: dt,\r\n'
20130515 '\t\t\tel: this.getDayEl(dt)\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    moveNext : function(){\r\n'
20130515 '        return this.moveMonths(1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    movePrev : function(){\r\n'
20130515 '        return this.moveMonths(-1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onInitDrag.call(this);\r\n'
20130515 '\t\tExt.select(this.daySelector).removeClass(this.dayOverClass);\r\n'
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonMoreClick : function(dt){\r\n'
20130515 '\t\tif(!this.detailPanel){\r\n'
20130515 '\t        this.detailPanel = new Ext.Panel({\r\n'
20130515 "\t\t\t\tid: this.id+'-details-panel',\r\n"
20130515 '\t\t\t\ttitle: dt.format(this.detailsTitleDateFormat),\r\n'
20130515 "\t\t\t\tlayout: 'fit',\r\n"
20130515 '\t\t\t\tfloating: true,\r\n'
20130515 '\t\t\t\trenderTo: Ext.getBody(),\r\n'
20130515 '\t\t\t\ttools: [{\r\n'
20130515 "\t\t\t\t\tid: 'close',\r\n"
20130515 '\t\t\t\t\thandler: function(e, t, p){\r\n'
20130515 '\t\t\t\t\t\tp.hide();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}],\r\n'
20130515 '\t\t\t\titems: {\r\n'
20130515 "\t\t\t\t\txtype: 'extensible.monthdaydetailview',\r\n"
20130515 "\t\t\t\t\tid: this.id+'-details-view',\r\n"
20130515 '\t\t\t\t\tdate: dt,\r\n'
20130515 '\t\t\t\t\tview: this,\r\n'
20130515 '\t\t\t\t\tstore: this.store,\r\n'
20130515 '                    calendarStore: this.calendarStore,\r\n'
20130515 '\t\t\t\t\tlisteners: {\r\n'
20130515 "\t\t\t\t\t\t'eventsrendered': this.onDetailViewUpdated.createDelegate(this)\r\n"
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 "            this.detailPanel.body.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.detailPanel.setTitle(dt.format(this.detailsTitleDateFormat));\r\n'
20130515 '\t\t}\r\n'
20130515 "\t\tthis.detailPanel.getComponent(this.id+'-details-view').update(dt);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonDetailViewUpdated : function(view, dt, numEvents){\r\n'
20130515 '\t\tvar p = this.detailPanel,\r\n'
20130515 '\t\t\tframeH = p.getFrameHeight(),\r\n'
20130515 '            evtH = this.getEventHeight(),\r\n'
20130515 '\t\t\tbodyH = frameH + (numEvents * evtH) + 3,\r\n'
20130515 '\t\t\tdayEl = this.getDayEl(dt),\r\n'
20130515 '\t\t\tbox = dayEl.getBox();\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tp.setHeight(bodyH);\r\n'
20130515 '\t\tp.setWidth(Math.max(box.width, 220));\r\n'
20130515 '\t\tp.show();\r\n'
20130515 "\t\tp.getPositionEl().alignTo(dayEl, 't-t?');\r\n"
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onHide : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onHide.call(this);\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.moreSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.moreElIdDelimiter)[1];\r\n'
20130515 "            this.onMoreClick(Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.weekLinkSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.weekLinkIdDelimiter)[1];\r\n'
20130515 "            this.fireEvent('weekclick', this, Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(Ext.ensible.cal.MonthView.superclass.onClick.apply(this, arguments)){\r\n'
20130515 '            // The superclass handled the click already so exit\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(el = e.getTarget('td', 3)){\r\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\r\n'
20130515 '                    dt = parts[parts.length-1];\r\n'
20130515 '                    \r\n'
20130515 "                //this.fireEvent('dayclick', this, Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 '                return;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 '        var el = e.getTarget(this.weekLinkSelector, 3, true);\r\n'
20130515 '        if(el){\r\n'
20130515 "            el[type == 'over' ? 'addClass' : 'removeClass'](this.weekLinkOverClass);\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.handleDayMouseEvent.apply(this, arguments);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.detailsPanel){\r\n'
20130515 "            this.detailPanel.body.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthview', Ext.ensible.cal.MonthView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>This is the header area container within the day and week views where all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayBodyView DayBodyView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    // private configs\n'
20130515 '    weekCount: 1,\n'
20130515 '    dayCount: 1,\n'
20130515 '    allDayOnly: true,\n'
20130515 '    monitorResize: false,\n'
20130515 '    isHeaderView: true,\n'
20130515 '    \n'
20130515 "    // The event is declared in MonthView but we're just overriding the docs:\n"
20130515 '    /**\n'
20130515 '     * @event dayclick\n'
20130515 '     * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '     * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '     * for validating that a user can only create events on certain days.\n'
20130515 '     * @param {Ext.ensible.cal.DayHeaderView} this\n'
20130515 '     * @param {Date} dt The date/time that was clicked on\n'
20130515 '     * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '     * DayHeaderView always return true for this param.\n'
20130515 '     * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayHeaderTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 "        this.addClass('ext-cal-day-header');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.afterRender.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayHeaderView)');\n"
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.refresh.call(this, reloadData);\n'
20130515 '        this.recalcHeaderBox();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    recalcHeaderBox : function(){\n'
20130515 "        var tbl = this.el.child('.ext-cal-evt-tbl'),\n"
20130515 '            h = tbl.getHeight();\n'
20130515 '        \n'
20130515 '        this.el.setHeight(h+7);\n'
20130515 '        \n'
20130515 '        // These should be auto-height, but since that does not work reliably\n'
20130515 '        // across browser / doc type, we have to size them manually\n'
20130515 "        this.el.child('.ext-cal-hd-ad-inner').setHeight(h+5);\n"
20130515 "        this.el.child('.ext-cal-bg-tbl').setHeight(h+5);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.moveDays(this.dayCount);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    movePrev : function(){\n'
20130515 '        this.moveDays(-this.dayCount);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 "        if(el = e.getTarget('td', 3)){\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\n'
20130515 '                    dt = parts[parts.length-1];\n'
20130515 '                    \n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt, true)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.onClick.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayheaderview', Ext.ensible.cal.DayHeaderView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyView\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\n'
20130515 ' * <p>This is the scrolling container within the day and week views where non-all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayHeaderView DayHeaderView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyView = Ext.extend(Ext.ensible.cal.CalendarView, {\n'
20130515 '    //private\n'
20130515 "    dayColumnElIdDelimiter: '-day-col-',\n"
20130515 '    hourIncrement: 60,\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        if(this.readOnly === true){\n'
20130515 '            this.enableEventResize = false;\n'
20130515 '        }\n'
20130515 '        this.incrementsPerHour = this.hourIncrement / this.ddIncrement;\n'
20130515 '        this.minEventHeight = this.minEventDisplayMinutes / (this.hourIncrement / this.hourHeight);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The original {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * @param {Object} data An object containing the new start and end dates that will be set into the event record if the\n'
20130515 '             * event is not canceled. Format of the object is: {StartDate: [date], EndDate: [date]}\n'
20130515 '             */\n'
20130515 '            beforeeventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user has drag-dropped the resize handle of an event and the resize operation is complete. If you need \n'
20130515 '             * to cancel the resize operation you should handle the {@link #beforeeventresize} event and return false from your handler function.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            eventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '             * for validating that a user can only create events on certain days.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '             * DayBodyView always return false for this param.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            dayclick: true\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initDD : function(){\n'
20130515 '        var cfg = {\n'
20130515 '            view: this,\n'
20130515 '            createText: this.ddCreateEventText,\n'
20130515 '            moveText: this.ddMoveEventText,\n'
20130515 '            resizeText: this.ddResizeEventText,\n'
20130515 '            ddIncrement: this.ddIncrement,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '\n'
20130515 '        this.el.ddScrollConfig = {\n'
20130515 '            // scrolling is buggy in IE/Opera for some reason.  A larger vthresh\n'
20130515 '            // makes it at least functional if not perfect\n'
20130515 '            vthresh: Ext.isIE || Ext.isOpera ? 100 : 40,\n'
20130515 '            hthresh: -1,\n'
20130515 '            frequency: 50,\n'
20130515 '            increment: 100,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.dragZone = new Ext.ensible.cal.DayViewDragZone(this.el, Ext.apply({\n'
20130515 '            containerScroll: true\n'
20130515 '        }, cfg));\n'
20130515 '        \n'
20130515 '        this.dropZone = new Ext.ensible.cal.DayViewDropZone(this.el, cfg);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayBodyView)');\n"
20130515 '        var top = this.el.getScroll().top;\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.refresh.call(this, reloadData);\n'
20130515 '        \n'
20130515 '        // skip this if the initial render scroll position has not yet been set.\n'
20130515 '        // necessary since IE/Opera must be deferred, so the first refresh will\n'
20130515 '        // override the initial position by default and always set it to 0.\n'
20130515 '        if(this.scrollReady){\n'
20130515 '            this.scrollTo(top);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Scrolls the container to the specified vertical position. If the view is large enough that\n'
20130515 '     * there is no scroll overflow then this method will have no affect.\n'
20130515 '     * @param {Number} y The new vertical scroll position in pixels \n'
20130515 '     * @param {Boolean} defer (optional) <p>True to slightly defer the call, false to execute immediately.</p> \n'
20130515 '     * <p>This method will automatically defer itself for IE and Opera (even if you pass false) otherwise\n'
20130515 '     * the scroll position will not update in those browsers. You can optionally pass true, however, to\n'
20130515 '     * force the defer in all browsers, or use your own custom conditions to determine whether this is needed.</p>\n'
20130515 '     * <p>Note that this method should not generally need to be called directly as scroll position is managed internally.</p>\n'
20130515 '     */\n'
20130515 '    scrollTo : function(y, defer){\n'
20130515 '        defer = defer || (Ext.isIE || Ext.isOpera);\n'
20130515 '        if(defer){\n'
20130515 '            (function(){\n'
20130515 "                this.el.scrollTo('top', y);\n"
20130515 '                this.scrollReady = true;\n'
20130515 '            }).defer(10, this);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.el.scrollTo('top', y);\n"
20130515 '            this.scrollReady = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayBodyTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                dayCount: this.dayCount,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime,\n'
20130515 '                showHourSeparator: this.showHourSeparator,\n'
20130515 '                viewStartHour: this.viewStartHour,\n'
20130515 '                viewEndHour: this.viewEndHour,\n'
20130515 '                hourIncrement: this.hourIncrement,\n'
20130515 '                hourHeight: this.hourHeight\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 '        \n'
20130515 "        this.addClass('ext-cal-body-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        // default scroll position to scrollStartHour (7am by default) or min view hour if later\n'
20130515 '        var startHour = Math.max(this.scrollStartHour, this.viewStartHour),\n'
20130515 '            scrollStart = Math.max(0, startHour - this.viewStartHour);\n'
20130515 '            \n'
20130515 '        if(scrollStart > 0){\n'
20130515 '            this.scrollTo(scrollStart * this.hourHeight);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private -- called from DayViewDropZone\n'
20130515 '    onEventResize : function(rec, data){\n'
20130515 "        if(this.fireEvent('beforeeventresize', this, rec, data) !== false){\n"
20130515 '            var D = Ext.ensible.Date,\n'
20130515 '                start = Ext.ensible.cal.EventMappings.StartDate.name,\n'
20130515 '                end = Ext.ensible.cal.EventMappings.EndDate.name;\n'
20130515 '                \n'
20130515 '            if(D.compare(rec.data[start], data.StartDate) === 0 &&\n'
20130515 '                D.compare(rec.data[end], data.EndDate) === 0){\n'
20130515 '                // no changes\n'
20130515 '                return;\n'
20130515 '            } \n'
20130515 '            rec.set(start, data.StartDate);\n'
20130515 '            rec.set(end, data.EndDate);\n'
20130515 '            this.onEventUpdate(null, rec);\n'
20130515 '            \n'
20130515 "            this.fireEvent('eventresize', this, rec);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    getEventBodyMarkup : function(){\n'
20130515 '        if(!this.eventBodyMarkup){\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\n"
20130515 '                \'<tpl if="_isReminder">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                '</tpl>',\n"
20130515 '                \'<tpl if="_isRecurring">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                '</tpl>'\n"
20130515 '//                \'<tpl if="spanLeft">\',\n'
20130515 '//                    \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "//                '</tpl>',\n"
20130515 '//                \'<tpl if="spanRight">\',\n'
20130515 '//                    \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "//                '</tpl>'\n"
20130515 "            ].join('');\n"
20130515 '        }\n'
20130515 '        return this.eventBodyMarkup;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    getEventTemplate : function(){\n'
20130515 '        if(!this.eventTpl){\n'
20130515 '            this.eventTpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="{_extraCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        \'<div class="ext-evt-bd">\', this.getEventBodyMarkup(), \'</div>\',\n'
20130515 '                        this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                    '</div>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="ext-cal-evt {_extraCls}" style="left: {_left}%; width: {_width}%; top: {_top}px;">\',\n'
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 '                        \'<dl style="height: {_height}px;" class="ext-cal-evdm">\',\n'
20130515 '                            \'<dd class="ext-evt-bd">\',\n'
20130515 '                                this.getEventBodyMarkup(),\n'
20130515 "                            '</dd>',\n"
20130515 '                            this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                        '</dl>',\n"
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 "                    '</div>'\n"
20130515 '                );\n'
20130515 '            this.eventTpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.eventTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with <strong>all-day</strong> events. \n'
20130515 '     * Internally this method by default generates different markup for browsers that support CSS border radius \n'
20130515 "     * and those that don't. This method can be overridden as needed to customize the markup generated.</p>\n"
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\n'
20130515 "     * from the surrounding container markup.  This provdes the flexibility to customize what's in the body without\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \n'
20130515 '     * overridden version also does the same.</p>\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\n'
20130515 '     */\n'
20130515 '    getEventAllDayTemplate : function(){\n'
20130515 '        if(!this.eventAllDayTpl){\n'
20130515 '            var tpl, body = this.getEventBodyMarkup();\n'
20130515 '            \n'
20130515 '            tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        body,\n'
20130515 "                    '</div>'\n"
20130515 '                ) \n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div class="ext-cal-evt" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evo">\',\n'
20130515 '                        \'<div class="ext-cal-evm">\',\n'
20130515 '                            \'<div class="ext-cal-evi">\',\n'
20130515 '                                body,\n'
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</div></div>'\n"
20130515 '                );\n'
20130515 '            tpl.compile();\n'
20130515 '            this.eventAllDayTpl = tpl;\n'
20130515 '        }\n'
20130515 '        return this.eventAllDayTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventData : function(evt){\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\n'
20130515 '            data = {},\n'
20130515 "            colorCls = 'x-cal-default',\n"
20130515 '            title = evt[M.Title.name],\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            recurring = evt[M.RRule.name] != '';\n"
20130515 '        \n'
20130515 '        this.getTemplateEventBox(evt);\n'
20130515 '        \n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\n'
20130515 '            if(rec){\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '') + (Ext.isIE || Ext.isOpera ? '-x' : '');\n"
20130515 '        extraClasses.push(colorCls);\n'
20130515 '        \n'
20130515 '        if(this.getEventClass){\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\n'
20130515 '            extraClasses.push(cls);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        data._extraCls = extraClasses.join(' ');\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\n"
20130515 '        \n'
20130515 '        return Ext.applyIf(data, evt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getEventPositionOffsets: function(){\n'
20130515 '        return {\n'
20130515 '            top: 1,\n'
20130515 '            height: -2\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventBox : function(evt){\n'
20130515 '        var heightFactor = this.hourHeight / this.hourIncrement,\n'
20130515 '            start = evt[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '            end = evt[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '            startOffset = Math.max(start.getHours() - this.viewStartHour, 0),\n'
20130515 '            endOffset = Math.min(end.getHours() - this.viewStartHour, this.viewEndHour - this.viewStartHour),\n'
20130515 '            startMins = startOffset * this.hourIncrement,\n'
20130515 '            endMins = endOffset * this.hourIncrement,\n'
20130515 '            viewEndDt = end.clearTime(true).add(Date.HOUR, this.viewEndHour),\n'
20130515 '            evtOffsets = this.getEventPositionOffsets();\n'
20130515 '            \n'
20130515 '        if(start.getHours() >= this.viewStartHour){\n'
20130515 '            // only add the minutes if the start is visible, otherwise it offsets the event incorrectly\n'
20130515 '            startMins += start.getMinutes();\n'
20130515 '        }\n'
20130515 '        if(end <= viewEndDt){\n'
20130515 '            // only add the minutes if the end is visible, otherwise it offsets the event incorrectly\n'
20130515 '            endMins += end.getMinutes();\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        evt._left = 0;\n'
20130515 '        evt._width = 100;\n'
20130515 '        evt._top = startMins * heightFactor + evtOffsets.top;\n'
20130515 '        evt._height = Math.max(((endMins - startMins) * heightFactor), this.minEventHeight) + evtOffsets.height;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        var day = 0, evts = [];\n'
20130515 '        for(; day < this.dayCount; day++){\n'
20130515 '            var ev = emptyCells = skipped = 0, \n'
20130515 '                d = this.eventGrid[0][day],\n'
20130515 '                ct = d ? d.length : 0, \n'
20130515 '                evt;\n'
20130515 '            \n'
20130515 '            for(; ev < ct; ev++){\n'
20130515 '                evt = d[ev];\n'
20130515 '                if(!evt){\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                var item = evt.data || evt.event.data,\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\n'
20130515 '                    ad = item[M.IsAllDay.name] === true,\n'
20130515 '                    span = Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0,\n'
20130515 '                    renderAsAllDay = ad || span;\n'
20130515 '                         \n'
20130515 '                if(renderAsAllDay){\n'
20130515 '                    // this event is already rendered in the header view\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                Ext.apply(item, {\n'
20130515 "                    cls: 'ext-cal-ev',\n"
20130515 '                    _positioned: true\n'
20130515 '                });\n'
20130515 '                evts.push({\n'
20130515 '                    data: this.getTemplateEventData(item),\n'
20130515 '                    date: this.viewStart.add(Date.DAY, day)\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // overlapping event pre-processing loop\n'
20130515 '        var i = j = 0, overlapCols = [], l = evts.length, prevDt;\n'
20130515 '        for(; i<l; i++){\n'
20130515 '            var evt = evts[i].data, \n'
20130515 '                evt2 = null, \n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '            \n'
20130515 '            for(j=0; j<l; j++){\n'
20130515 '                if(i==j)continue;\n'
20130515 '                evt2 = evts[j].data;\n'
20130515 '                if(this.isOverlapping(evt, evt2)){\n'
20130515 '                    evt._overlap = evt._overlap == undefined ? 1 : evt._overlap+1;\n'
20130515 '                    if(i<j){\n'
20130515 '                        if(evt._overcol===undefined){\n'
20130515 '                            evt._overcol = 0;\n'
20130515 '                        }\n'
20130515 '                        evt2._overcol = evt._overcol+1;\n'
20130515 '                        overlapCols[dt] = overlapCols[dt] ? Math.max(overlapCols[dt], evt2._overcol) : evt2._overcol;\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // rendering loop\n'
20130515 '        for(i=0; i<l; i++){\n'
20130515 '            var evt = evts[i].data,\n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '                \n'
20130515 '            if(evt._overlap !== undefined){\n'
20130515 '                var colWidth = 100 / (overlapCols[dt]+1),\n'
20130515 '                    evtWidth = 100 - (colWidth * evt._overlap);\n'
20130515 '                    \n'
20130515 '                evt._width = colWidth;\n'
20130515 '                evt._left = colWidth * evt._overcol;\n'
20130515 '            }\n'
20130515 '            var markup = this.getEventTemplate().apply(evt),\n'
20130515 "                target = this.id+'-day-col-'+evts[i].date.format('Ymd');\n"
20130515 '                \n'
20130515 '            Ext.DomHelper.append(target, markup);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('eventsrendered', this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayEl : function(dt){\n'
20130515 '        return Ext.get(this.getDayId(dt));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayId : function(dt){\n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format('Ymd');\n"
20130515 '        }\n'
20130515 '        return this.id + this.dayColumnElIdDelimiter + dt;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDaySize : function(){\n'
20130515 "        var box = this.el.child('.ext-cal-day-col-inner').getBox();\n"
20130515 '        return {height: box.height, width: box.width};\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayAt : function(x, y){\n'
20130515 "        var sel = '.ext-cal-body-ct',\n"
20130515 "            xoffset = this.el.child('.ext-cal-day-times').getWidth(),\n"
20130515 '            viewBox = this.el.getBox(),\n'
20130515 '            daySize = this.getDaySize(false),\n'
20130515 '            relX = x - viewBox.x - xoffset,\n'
20130515 '            dayIndex = Math.floor(relX / daySize.width), // clicked col index\n'
20130515 '            scroll = this.el.getScroll(),\n'
20130515 "            row = this.el.child('.ext-cal-bg-row'), // first avail row, just to calc size\n"
20130515 '            rowH = row.getHeight() / this.incrementsPerHour,\n'
20130515 '            relY = y - viewBox.y - rowH + scroll.top,\n'
20130515 '            rowIndex = Math.max(0, Math.ceil(relY / rowH)),\n'
20130515 '            mins = rowIndex * (this.hourIncrement / this.incrementsPerHour),\n'
20130515 '            dt = this.viewStart.add(Date.DAY, dayIndex).add(Date.MINUTE, mins).add(Date.HOUR, this.viewStartHour),\n'
20130515 '            el = this.getDayEl(dt),\n'
20130515 '            timeX = x;\n'
20130515 '        \n'
20130515 '        if(el){\n'
20130515 '            timeX = el.getLeft();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return {\n'
20130515 '            date: dt,\n'
20130515 '            el: el,\n'
20130515 '            // this is the box for the specific time block in the day that was clicked on:\n'
20130515 '            timeBox: {\n'
20130515 '                x: timeX,\n'
20130515 '                y: (rowIndex * this.hourHeight / this.incrementsPerHour) + viewBox.y - scroll.top,\n'
20130515 '                width: daySize.width,\n'
20130515 '                height: rowH\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        if(this.dragPending || Ext.ensible.cal.DayBodyView.superclass.onClick.apply(this, arguments)){\n'
20130515 '            // The superclass handled the click already so exit\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        if(e.getTarget('.ext-cal-day-times', 3) !== null){\n"
20130515 '            // ignore clicks on the times-of-day gutter\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        var el = e.getTarget('td', 3);\n"
20130515 '        if(el){\n'
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var dt = this.getDateFromId(el.id, this.dayElIdDelimiter);\n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        var day = this.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(day && day.date){\n'
20130515 '            this.onDayClick(day.date, false, null);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daybodyview', Ext.ensible.cal.DayBodyView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayView\n'
20130515 ' * @extends Ext.Container\n'
20130515 ' * <p>Unlike other calendar views, is not actually a subclass of {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 ' * Instead it is a {@link Ext.Container Container} subclass that internally creates and manages the layouts of\n'
20130515 ' * a {@link Ext.ensible.cal.DayHeaderView DayHeaderView} and a {@link Ext.ensible.cal.DayBodyView DayBodyView}. As such\n'
20130515 ' * DayView accepts any config values that are valid for DayHeaderView and DayBodyView and passes those through\n'
20130515 ' * to the contained views. It also supports the interface required of any calendar view and in turn calls methods\n'
20130515 ' * on the contained views as necessary.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayView = Ext.extend(Ext.Container, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\n"
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddCreateEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddCreateEventText: Ext.ensible.cal.CalendarView.prototype.ddCreateEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddMoveEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddMoveEventText: Ext.ensible.cal.CalendarView.prototype.ddMoveEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 1). Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 1,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEventResize\n'
20130515 "     * True to allow events in the view's scrolling body area to be updated by a resize handle at the \n"
20130515 '     * bottom of the event, false to disallow it (defaults to true). If {@link #readOnly} is true event \n'
20130515 '     * resizing will be disabled automatically.\n'
20130515 '     */\n'
20130515 '    enableEventResize: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} ddIncrement\n'
20130515 '     * <p>The number of minutes between each step during various drag/drop operations in the view (defaults to 30).\n'
20130515 '     * This controls the number of times the dragged object will "snap" to the view during a drag operation, and does\n'
20130515 '     * not have to match with the time boundaries displayed in the view. E.g., the view could be displayed in 30 minute\n'
20130515 '     * increments (the default) but you could configure ddIncrement to 10, which would snap a dragged object to the\n'
20130515 '     * view at 10 minute increments.</p>\n'
20130515 '     * <p>This config currently applies while dragging to move an event, resizing an event by its handle or dragging \n'
20130515 '     * on the view to create a new event.</p>\n'
20130515 '     */\n'
20130515 '    ddIncrement: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} minEventDisplayMinutes\n'
20130515 '     * This is the minimum <b>display</b> height, in minutes, for events shown in the view (defaults to 30). This setting\n'
20130515 '     * ensures that events with short duration are still readable (e.g., by default any event where the start and end\n'
20130515 '     * times were the same would have 0 height). It also applies when calculating whether multiple events should be\n'
20130515 '     * displayed as overlapping. In datetime terms, an event that starts and ends at 9:00 and another event that starts\n'
20130515 '     * and ends at 9:05 do not overlap, but visually the second event would obscure the first in the view. This setting\n'
20130515 '     * provides a way to ensure that such events will still be calculated as overlapping and displayed correctly.\n'
20130515 '     */\n'
20130515 '    minEventDisplayMinutes: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showHourSeparator\n'
20130515 '     * True to display a dotted line that separates each hour block in the scrolling body area at the half-hour mark \n'
20130515 '     * (the default), false to hide it.\n'
20130515 '     */\n'
20130515 '    showHourSeparator: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewStartHour\n'
20130515 "     * The hour of the day at which to begin the scrolling body area's times (defaults to 0, which equals early 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be less than the value of {@link viewEndHour}.\n'
20130515 '     */\n'
20130515 '    viewStartHour: 0,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewEndHour\n'
20130515 "     * The hour of the day at which to end the scrolling body area's times (defaults to 24, which equals late 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be greater than the value of {@link viewStartHour}. \n'
20130515 '     */\n'
20130515 '    viewEndHour: 24,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} scrollStartHour\n'
20130515 '     * The default hour of the day at which to set the body scroll position on view load (defaults to 7, which equals 7am / 07:00).\n'
20130515 '     * Note that if the body is not sufficiently overflowed to allow this positioning this setting will have no effect.\n'
20130515 '     * This setting should be equal to or greater than {@link viewStartHour}.\n'
20130515 '     */\n'
20130515 '    scrollStartHour: 7,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} hourHeight\n'
20130515 '     * <p>The height, in pixels, of each hour block displayed in the scrolling body area of the view (defaults to 42).</p> \n'
20130515 '     * <br><p><b>Important note:</b> While this config can be set to any reasonable integer value, note that it is also used to \n'
20130515 '     * calculate the ratio used when assigning event heights. By default, an hour is 60 minutes and 42 pixels high, so the\n'
20130515 '     * pixel-to-minute ratio is 42 / 60, or 0.7. This same ratio is then used when rendering events. When rendering a \n'
20130515 '     * 30 minute event, the rendered height would be 30 minutes * 0.7 = 21 pixels (as expected).</p>\n'
20130515 '     * <p>This is important to understand when changing this value because some browsers may handle pixel rounding in\n'
20130515 '     * different ways which could lead to inconsistent visual results in some cases. If you have any problems with pixel\n'
20130515 '     * precision in how events are laid out, you might try to stick with hourHeight values that will generate discreet ratios.\n'
20130515 '     * This is easily done by simply multiplying 60 minutes by different discreet ratios (.6, .8, 1.1, etc.) to get the \n'
20130515 '     * corresponding hourHeight pixel values (36, 48, 66, etc.) that will map back to those ratios. By contrast, if you \n'
20130515 '     * chose an hourHeight of 50 for example, the resulting height ratio would be 50 / 60 = .833333... This will work just\n'
20130515 '     * fine, just be aware that browsers may sometimes round the resulting height values inconsistently.\n'
20130515 '     */\n'
20130515 '    hourHeight: 42,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        // day count is only supported between 1 and 7 days\n'
20130515 '        this.dayCount = this.dayCount > 7 ? 7 : (this.dayCount < 1 ? 1 : this.dayCount);\n'
20130515 '        \n'
20130515 '        var cfg = Ext.apply({}, this.initialConfig);\n'
20130515 '        cfg.showTime = this.showTime;\n'
20130515 '        cfg.showTodayText = this.showTodayText;\n'
20130515 '        cfg.todayText = this.todayText;\n'
20130515 '        cfg.dayCount = this.dayCount;\n'
20130515 '        cfg.weekCount = 1;\n'
20130515 '        cfg.readOnly = this.readOnly;\n'
20130515 '        cfg.ddIncrement = this.ddIncrement;\n'
20130515 '        cfg.minEventDisplayMinutes = this.minEventDisplayMinutes;\n'
20130515 '        \n'
20130515 '        var header = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.dayheaderview',\n"
20130515 "            id: this.id+'-hd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        var body = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.daybodyview',\n"
20130515 '            enableEventResize: this.enableEventResize,\n'
20130515 '            showHourSeparator: this.showHourSeparator,\n'
20130515 '            viewStartHour: this.viewStartHour,\n'
20130515 '            viewEndHour: this.viewEndHour,\n'
20130515 '            scrollStartHour: this.scrollStartHour,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            id: this.id+'-bd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        this.items = [header, body];\n'
20130515 "        this.addClass('ext-cal-dayview ext-cal-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayView.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        Ext.ensible.cal.DayView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.header = Ext.getCmp(this.id+'-hd');\n"
20130515 "        this.body = Ext.getCmp(this.id+'-bd');\n"
20130515 "        this.body.on('eventsrendered', this.forceSize, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(){\n'
20130515 "        Ext.ensible.log('refresh (DayView)');\n"
20130515 '        this.header.refresh();\n'
20130515 '        this.body.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: function(){\n'
20130515 "        // The defer call is mainly for good ol' IE, but it doesn't hurt in\n"
20130515 '        // general to make sure that the window resize is good and done first\n'
20130515 '        // so that we can properly calculate sizes.\n'
20130515 '        (function(){\n'
20130515 "            var ct = this.el.up('.x-panel-body'),\n"
20130515 "                hd = this.el.child('.ext-cal-day-header'),\n"
20130515 '                h = ct.getHeight() - hd.getHeight();\n'
20130515 '            \n'
20130515 "            this.el.child('.ext-cal-body-ct').setHeight(h-1);\n"
20130515 '        }).defer(10, this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onResize : function(){\n'
20130515 '        this.forceSize();\n'
20130515 '        this.refresh.defer(1, this); //IE needs the defer\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /*\n'
20130515 '     * We have to "relay" this Component method so that the hidden\n'
20130515 "     * state will be properly reflected when the views' active state changes\n"
20130515 '     */\n'
20130515 '    doHide: function(){\n'
20130515 '        this.header.doHide.apply(this, arguments);\n'
20130515 '        this.body.doHide.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getViewBounds : function(){\n'
20130515 '        return this.header.getViewBounds();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\n'
20130515 '     * to the user use {@link #getViewBounds}.\n'
20130515 '     * @return {Date} The start date\n'
20130515 '     */\n'
20130515 '    getStartDate : function(){\n'
20130515 '        return this.header.getStartDate();\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 '        this.header.setStartDate(dt, true);\n'
20130515 '        this.body.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        this.header.renderItems();\n'
20130515 '        this.body.renderItems();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\n"
20130515 '     * @return {Boolean} True or false\n'
20130515 '     */\n'
20130515 '    isToday : function(){\n'
20130515 '        return this.header.isToday();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to contain the passed date\n'
20130515 '     * @param {Date} dt The date to display\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveTo : function(dt){\n'
20130515 '        this.header.moveTo(dt);\n'
20130515 '        return this.body.moveTo(dt, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the next consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.header.moveNext();\n'
20130515 '        return this.body.moveNext(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the previous consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    movePrev : function(noRefresh){\n'
20130515 '        this.header.movePrev();\n'
20130515 '        return this.body.movePrev(true);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveDays : function(value){\n'
20130515 '        this.header.moveDays(value);\n'
20130515 '        return this.body.moveDays(value, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to show today\n'
20130515 "     * @return {Date} Today's date\n"
20130515 '     */\n'
20130515 '    moveToday : function(){\n'
20130515 '        this.header.moveToday();\n'
20130515 '        return this.body.moveToday(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\n'
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    showEventEditor : function(rec, animateTarget){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.showEventEditor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\n"
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    dismissEventEditor : function(dismissMethod){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.dismissEventEditor.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayview', Ext.ensible.cal.DayView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.MultiDayView\n'
20130515 ' * @extends Ext.ensible.cal.DayView\n'
20130515 ' * <p>Displays a calendar view by day, more than one day at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiDayView = Ext.extend(Ext.ensible.cal.DayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 3).  Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 3,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} startDayIsStatic\n'
20130515 '     * <p>By default, any configuration of a multi-day view that contains fewer than 7 days will have a rolling\n'
20130515 '     * start day. If you view the next or previous views, the dates will be adjusted as needed so that each\n'
20130515 '     * view is contiguous (e.g., if the last day in the current view is Wednesday and you go to the next view\n'
20130515 '     * it will always begin with Thursday, regardless of the value of {@link #startDay}.</p>\n'
20130515 '     * <p>If you set <tt>startDayIsStatic</tt> to <tt>true</tt>, then the view will <em>always</em> begin on\n'
20130515 '     * {@link #startDay}. For any {@link #dayCount} less than 7, days outside the startDay + dayCount range\n'
20130515 '     * will not be viewable. If a date that is not in the viewable range is set into the view it will \n'
20130515 '     * automatically advance to the first viewable date for the current range.  This could be useful for \n'
20130515 '     * creating custom views like a weekday-only or weekend-only view.</p>\n'
20130515 '     * <p>Some example {@link Ext.ensible.cal.CalendarPanel CalendarPanel} configs:</p>\n'
20130515 '     * <pre><code>\n'
20130515 '    // Weekdays only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 5,\n'
20130515 '        startDay: 1,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    // Weekends only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 2,\n'
20130515 '        startDay: 6,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '     * </code></pre>\n'
20130515 '     */\n'
20130515 '    startDayIsStatic: false,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? 7 : this.dayCount, reload);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? -7 : -this.dayCount, reload);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multidayview', Ext.ensible.cal.MultiDayView);/**\n"
20130515 ' * @class Ext.ensible.cal.WeekView\n'
20130515 ' * @extends Ext.ensible.cal.MultiDayView\n'
20130515 ' * <p>Displays a calendar view by week. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\n'
20130515 ' * the week view.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekView = Ext.extend(Ext.ensible.cal.MultiDayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 7)\n'
20130515 '     */\n'
20130515 '    dayCount: 7\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.weekview', Ext.ensible.cal.WeekView);/**\n"
20130515 ' * @class Ext.ensible.cal.MultiWeekView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>Displays a calendar view by week, more than one week at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiWeekView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} weekCount\n'
20130515 '     * The number of weeks to display in the view (defaults to 2)\n'
20130515 '     */\n'
20130515 '    weekCount: 2,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(){\n'
20130515 '        return this.moveWeeks(this.weekCount, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(){\n'
20130515 '        return this.moveWeeks(-this.weekCount, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multiweekview', Ext.ensible.cal.MultiWeekView);/*\r\n"
20130515 ' * This is the view used internally by the panel that displays overflow events in the\r\n'
20130515 ' * month view. Anytime a day cell cannot display all of its events, it automatically displays\r\n'
20130515 ' * a link at the bottom to view all events for that day. When clicked, a panel pops up that\r\n'
20130515 ' * uses this view to display the events for that day.\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthDayDetailView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            eventsrendered: true\r\n'
20130515 '\t\t});\r\n'
20130515 '\t\t\r\n'
20130515 '        if(!this.el){\r\n'
20130515 "            this.el = document.createElement('div');\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        this.tpl = this.getTemplate();\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.MonthDayDetailView.superclass.afterRender.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'click': this.view.onClick,\r\n"
20130515 "\t\t\t'mouseover': this.view.onMouseOver,\r\n"
20130515 "\t\t\t'mouseout': this.view.onMouseOut,\r\n"
20130515 '            scope: this.view\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    getTemplate : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '\t        this.tpl = new Ext.XTemplate(\r\n'
20130515 '                \'<div class="ext-cal-mdv x-unselectable">\',\r\n'
20130515 '\t                \'<table class="ext-cal-mvd-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t\t\t\t\t'<tbody>',\r\n"
20130515 '\t\t\t\t\t\t\t\'<tpl for=".">\',\r\n'
20130515 '\t\t                        \'<tr><td class="ext-cal-ev">{markup}</td></tr>\',\r\n'
20130515 "\t\t\t\t\t\t\t'</tpl>',\r\n"
20130515 "\t                    '</tbody>',\r\n"
20130515 "\t                '</table>',\r\n"
20130515 "                '</div>'\r\n"
20130515 '\t        );\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 '        return this.tpl;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tupdate : function(dt){\r\n'
20130515 '\t\tthis.date = dt;\r\n'
20130515 '\t\tthis.refresh();\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    refresh : function(){\r\n'
20130515 '\t\tif(!this.rendered){\r\n'
20130515 '\t\t\treturn;\r\n'
20130515 '\t\t}\r\n'
20130515 '        var eventTpl = this.view.getEventTemplate(),\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\ttemplateData = [];\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tevts = this.store.queryBy(function(rec){\r\n'
20130515 '\t\t\t\tvar thisDt = this.date.clearTime(true).getTime(),\r\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '\t\t\t\t\trecStart = rec.data[M.StartDate.name].clearTime(true).getTime(),\r\n'
20130515 '\t            \tstartsOnDate = (thisDt == recStart),\r\n'
20130515 '\t\t\t\t\tspansDate = false,\r\n'
20130515 '                    calId = rec.data[M.CalendarId.name],\r\n'
20130515 '                    calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '                    \r\n'
20130515 '                if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '                    // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '                    return false;\r\n'
20130515 '                }\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tif(!startsOnDate){\r\n'
20130515 '\t\t\t\t\tvar recEnd = rec.data[Ext.ensible.cal.EventMappings.EndDate.name].clearTime(true).getTime();\r\n'
20130515 '\t            \tspansDate = recStart < thisDt && recEnd >= thisDt;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t            return startsOnDate || spansDate;\r\n'
20130515 '\t        }, this);\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.CalendarView.prototype.sortEventRecordsForDay.call(this, evts);\r\n'
20130515 '        \r\n'
20130515 '\t\tevts.each(function(evt){\r\n'
20130515 '            var item = evt.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '                \r\n'
20130515 '\t\t\titem._renderAsAllDay = item[M.IsAllDay.name] || Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0;\r\n'
20130515 '            item.spanLeft = Ext.ensible.Date.diffDays(item[M.StartDate.name], this.date) > 0;\r\n'
20130515 '            item.spanRight = Ext.ensible.Date.diffDays(this.date, item[M.EndDate.name]) > 0;\r\n'
20130515 "            item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \r\n"
20130515 "                'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\r\n"
20130515 '\r\n'
20130515 '\t\t\ttemplateData.push({markup: eventTpl.apply(this.getTemplateEventData(item))});\r\n'
20130515 '\t\t}, this);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.tpl.overwrite(this.el, templateData);\r\n'
20130515 "\t\tthis.fireEvent('eventsrendered', this, this.date, evts.getCount());\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tgetTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar data = this.view.getTemplateEventData(evt);\r\n'
20130515 "\t\tdata._elId = 'dtl-'+data._elId;\r\n"
20130515 '\t\treturn data;\r\n'
20130515 '\t}\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthdaydetailview', Ext.ensible.cal.MonthDayDetailView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarPanel\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is the default container for calendar views. It supports day, week, multi-week and month views as well\n'
20130515 ' * as a built-in event edit form. The only requirement for displaying a calendar is passing in a valid\n'
20130515 ' * {@link #Ext.data.Store store} config containing records of type {@link Ext.ensible.cal.EventRecord EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarPanel = Ext.extend(Ext.Panel, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} activeItem\n'
20130515 '     * The 0-based index within the available views to set as the default active view (defaults to undefined). If not \n'
20130515 '     * specified the default view will be set as the last one added to the panel. You can retrieve a reference to the\n'
20130515 '     * active {@link Ext.ensible.cal.CalendarView view} at any time using the {@link #activeView} property.\n'
20130515 '     */\n'
20130515 '    /*\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false, // not currently implemented\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showDayView\n'
20130515 '     * True to include the day view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showDayView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiDayView\n'
20130515 '     * True to include the multi-day view (and toolbar button), false to hide them (defaults to false).\n'
20130515 '     */\n'
20130515 '    showMultiDayView: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showWeekView\n'
20130515 '     * True to include the week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiWeekView\n'
20130515 '     * True to include the multi-week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showMultiWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMonthView\n'
20130515 '     * True to include the month view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     * If all other views are hidden, the month view will show by default even if this config is false.\n'
20130515 '     */\n'
20130515 '    showMonthView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavBar\n'
20130515 '     * True to display the calendar navigation toolbar, false to hide it (defaults to true). Note that\n'
20130515 "     * if you hide the default navigation toolbar you'll have to provide an alternate means of navigating the calendar.\n"
20130515 '     */\n'
20130515 '    showNavBar: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * Text to use for the 'Today' nav bar button.\n"
20130515 '     */\n'
20130515 "    todayText: 'Today',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to show the value of {@link #todayText} instead of today's date in the calendar's current day box,\n"
20130515 '     * false to display the day number(defaults to true).\n'
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time next to the date in the calendar's current day box, false to not show it \n"
20130515 '     * (defaults to true).\n'
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or calendar views from providing CRUD capabilities, false to enable CRUD \n'
20130515 '     * (the default). This option is passed into all views managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    readOnly: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavToday\n'
20130515 '     * True to display the "Today" button in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavToday: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavJump\n'
20130515 '     * True to display the "Jump to:" label in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavJump: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavNextPrev\n'
20130515 "     * True to display the left/right arrow buttons in the calendar panel's navigation header, false to not\n"
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavNextPrev: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} jumpToText\n'
20130515 "     * Text to use for the 'Jump to:' navigation label.\n"
20130515 '     */\n'
20130515 "    jumpToText: 'Jump to:',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} goText\n'
20130515 "     * Text to use for the 'Go' navigation button.\n"
20130515 '     */\n'
20130515 "    goText: 'Go',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} dayText\n'
20130515 "     * Text to use for the 'Day' nav bar button.\n"
20130515 '     */\n'
20130515 "    dayText: 'Day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiDayText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiDayText: '{0} Days',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} weekText\n'
20130515 "     * Text to use for the 'Week' nav bar button.\n"
20130515 '     */\n'
20130515 "    weekText: 'Week',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiWeekText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiWeekText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiWeekText: '{0} Weeks',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} monthText\n'
20130515 "     * Text to use for the 'Month' nav bar button.\n"
20130515 '     */\n'
20130515 "    monthText: 'Month',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} editModal\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\n'
20130515 '     * config will no longer apply. \n'
20130515 '     */\n'
20130515 '    editModal: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEditDetails\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\n'
20130515 '     * link and disable detailed event editing. \n'
20130515 '     */\n'
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\n'
20130515 '     * config), and either can be used interchangeably.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\n'
20130515 '     * the default calendar (and color).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} viewConfig\n'
20130515 '     * A config object that will be applied to all {@link Ext.ensible.cal.CalendarView views} managed by this CalendarPanel. Any\n'
20130515 '     * options on this object that do not apply to any particular view will simply be ignored.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} dayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.DayView DayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiDayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiDayView MultiDayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} weekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.WeekView WeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiWeekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiWeekView MultiWeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} monthViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MonthView MonthView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} editViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.EventEditForm EventEditForm} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * A reference to the {@link Ext.ensible.cal.CalendarView view} that is currently active.\n'
20130515 '     * @type {Ext.ensible.cal.CalendarView}\n'
20130515 '     * @property activeView\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    layoutConfig: {\n'
20130515 '        layoutOnCardChange: true,\n'
20130515 '        deferredRender: true\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private property\n'
20130515 '    startDate: new Date(),\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.tbar = {\n'
20130515 "            cls: 'ext-cal-toolbar',\n"
20130515 '            border: true,\n'
20130515 '            items: []\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.viewCount = 0;\n'
20130515 '        \n'
20130515 '        var multiDayViewCount = (this.multiDayViewCfg && this.multiDayViewCfg.dayCount) || 3,\n'
20130515 '            multiWeekViewCount = (this.multiWeekViewCfg && this.multiWeekViewCfg.weekCount) || 2;\n'
20130515 '        \n'
20130515 '        if(this.showNavToday){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-today', text: this.todayText, handler: this.onTodayClick, scope: this\n"
20130515 '            });\n'
20130515 '        }\n'
20130515 '        if(this.showNavNextPrev){\n'
20130515 '            this.tbar.items.push([\n'
20130515 "                {id: this.id+'-tb-prev', handler: this.onPrevClick, scope: this, iconCls: 'x-tbar-page-prev'},\n"
20130515 "                {id: this.id+'-tb-next', handler: this.onNextClick, scope: this, iconCls: 'x-tbar-page-next'}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        if(this.showNavJump){\n'
20130515 '            this.tbar.items.push([\n'
20130515 '                this.jumpToText,\n'
20130515 "                {id: this.id+'-tb-jump-dt', xtype: 'datefield', showToday: false},\n"
20130515 "                {id: this.id+'-tb-jump', text: this.goText, handler: this.onJumpClick, scope: this}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.tbar.items.push('->');\n"
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-day', text: this.dayText, handler: this.onDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var text = String.format(this.getMultiDayText(multiDayViewCount), multiDayViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiday', text: text, handler: this.onMultiDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-week', text: this.weekText, handler: this.onWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var text = String.format(this.getMultiWeekText(multiWeekViewCount), multiWeekViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiweek', text: text, handler: this.onMultiWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView || this.viewCount == 0){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-month', text: this.monthText, handler: this.onMonthNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '            this.showMonthView = true;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var idx = this.viewCount-1;\n'
20130515 '        this.activeItem = this.activeItem === undefined ? idx : (this.activeItem > idx ? idx : this.activeItem);\n'
20130515 '        \n'
20130515 '        if(this.showNavBar === false){\n'
20130515 '            delete this.tbar;\n'
20130515 "            this.addClass('x-calendar-nonav');\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added to the underlying store\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventdelete\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \n'
20130515 '             * will cancel the delete operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            beforeeventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted by the user.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event viewchange\n'
20130515 '             * Fires after a different calendar view is activated (but not when the event edit form is activated)\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.CalendarView} view The view being activated (any valid {@link Ext.ensible.cal.CalendarView CalendarView} subclass)\n'
20130515 '             * @param {Object} info Extra information about the newly activated view. This is a plain object \n'
20130515 '             * with following properties:<div class="mdetail-params"><ul>\n'
20130515 '             * <li><b><code>activeDate</code></b> : <div class="sub-desc">The currently-selected date</div></li>\n'
20130515 '             * <li><b><code>viewStart</code></b> : <div class="sub-desc">The first date in the new view range</div></li>\n'
20130515 '             * <li><b><code>viewEnd</code></b> : <div class="sub-desc">The last date in the new view range</div></li>\n'
20130515 '             * </ul></div>\n'
20130515 '             */\n'
20130515 '            viewchange: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the selected event in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}). Handling code should hide the active\n'
20130515 '             * event editor and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this The CalendarPanel\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} view The currently active {@link Ext.ensible.cal.CalendarView CalendarView} subclass\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '            \n'
20130515 '            \n'
20130515 '            //\n'
20130515 '            // NOTE: CalendarPanel also relays the following events from contained views as if they originated from this:\n'
20130515 '            //\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * @event eventsrendered\n'
20130515 '             * Fires after events are finished rendering in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this \n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventclick\n'
20130515 '             * <p>Fires after the user clicks on an event element.</p>\n'
20130515 '             * <p><strong>NOTE:</strong> This version of <code>eventclick</code> differs from the same event fired directly by\n'
20130515 '             * {@link Ext.ensible.cal.CalendarView CalendarView} subclasses in that it provides a default implementation (showing\n'
20130515 '             * the default edit window) and is also cancelable (if a handler returns <code>false</code> the edit window will not be shown).\n'
20130515 '             * This event when fired from a view class is simply a notification that an event was clicked and has no default behavior.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event rangeselect\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\n'
20130515 '             * function call (e.g., callback()).\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventover\n'
20130515 '             * Fires anytime the mouse is over an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventout\n'
20130515 '             * Fires anytime the mouse exits an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforedatechange\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\n'
20130515 '             * view change and the setting of the start date.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within a day/week view container and not on an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event datechange\n'
20130515 '             * Fires after the start date of the view changes\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventmove\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the move operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after an event element is dragged by the user and dropped in a new position\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\n'
20130515 '             * updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event initdrag\n'
20130515 '             * Fires when a drag operation is initiated in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayover\n'
20130515 '             * Fires while the mouse is over a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is being moused over\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayout\n'
20130515 '             * Fires when the mouse exits a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is exited\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event and the resize operation is complete. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.layout = 'card'; // do not allow override\n"
20130515 "        this.addClass('x-cal-panel');\n"
20130515 '        \n'
20130515 '        if(this.eventStore){\n'
20130515 '            this.store = this.eventStore;\n'
20130515 '            delete this.eventStore;\n'
20130515 '        }\n'
20130515 '        this.setStore(this.store);\n'
20130515 '        \n'
20130515 '        var sharedViewCfg = {\n'
20130515 '            showToday: this.showToday,\n'
20130515 '            todayText: this.todayText,\n'
20130515 '            showTodayText: this.showTodayText,\n'
20130515 '            showTime: this.showTime,\n'
20130515 '            readOnly: this.readOnly,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            store: this.store,\n'
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            editModal: this.editModal,\n'
20130515 '            enableEditDetails: this.enableEditDetails,\n'
20130515 '            ownerCalendarPanel: this\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            var day = Ext.apply({\n'
20130515 "                xtype: 'extensible.dayview',\n"
20130515 '                title: this.dayText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            day = Ext.apply(Ext.apply(day, this.viewConfig), this.dayViewCfg);\n'
20130515 "            day.id = this.id+'-day';\n"
20130515 '            this.initEventRelay(day);\n'
20130515 '            this.add(day);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var mday = Ext.apply({\n'
20130515 "                xtype: 'extensible.multidayview',\n"
20130515 '                title: this.getMultiDayText(multiDayViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mday = Ext.apply(Ext.apply(mday, this.viewConfig), this.multiDayViewCfg);\n'
20130515 "            mday.id = this.id+'-multiday';\n"
20130515 '            this.initEventRelay(mday);\n'
20130515 '            this.add(mday);\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            var wk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.weekview',\n"
20130515 '                title: this.weekText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            wk = Ext.apply(Ext.apply(wk, this.viewConfig), this.weekViewCfg);\n'
20130515 "            wk.id = this.id+'-week';\n"
20130515 '            this.initEventRelay(wk);\n'
20130515 '            this.add(wk);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var mwk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.multiweekview',\n"
20130515 '                title: this.getMultiWeekText(multiWeekViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mwk = Ext.apply(Ext.apply(mwk, this.viewConfig), this.multiWeekViewCfg);\n'
20130515 "            mwk.id = this.id+'-multiweek';\n"
20130515 '            this.initEventRelay(mwk);\n'
20130515 '            this.add(mwk);\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView){\n'
20130515 '            var month = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.monthview',\n"
20130515 '                title: this.monthText,\n'
20130515 '                listeners: {\n'
20130515 "                    'weekclick': {\n"
20130515 '                        fn: function(vw, dt){\n'
20130515 '                            this.showWeek(dt);\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            month = Ext.apply(Ext.apply(month, this.viewConfig), this.monthViewCfg);\n'
20130515 "            month.id = this.id+'-month';\n"
20130515 '            this.initEventRelay(month);\n'
20130515 '            this.add(month);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        this.add(Ext.applyIf({\n'
20130515 "            xtype: 'extensible.eventeditform',\n"
20130515 "            id: this.id+'-edit',\n"
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            listeners: {\n'
20130515 "                'eventadd':    { scope: this, fn: this.onEventAdd },\n"
20130515 "                'eventupdate': { scope: this, fn: this.onEventUpdate },\n"
20130515 "                'eventdelete': { scope: this, fn: this.onEventDelete },\n"
20130515 "                'eventcancel': { scope: this, fn: this.onEventCancel }\n"
20130515 '            }\n'
20130515 '        }, this.editViewCfg));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initEventRelay: function(cfg){\n'
20130515 '        cfg.listeners = cfg.listeners || {};\n'
20130515 '        cfg.listeners.afterrender = {\n'
20130515 '            fn: function(c){\n'
20130515 '                // relay view events so that app code only has to handle them in one place.\n'
20130515 '                // these events require no special handling by the calendar panel \n'
20130515 "                this.relayEvents(c, ['eventsrendered','eventclick','dayclick','eventover','eventout','beforedatechange',\n"
20130515 "                    'datechange','rangeselect','beforeeventmove','eventmove','initdrag','dayover','dayout','beforeeventresize',\n"
20130515 "                    'eventresize','eventadd','eventupdate','beforeeventdelete','eventdelete','eventcancel']);\n"
20130515 '                \n'
20130515 "                c.on('editdetails', this.onEditDetails, this);\n"
20130515 '            },\n'
20130515 '            scope: this,\n'
20130515 '            single: true\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.afterRender.call(this);\n'
20130515 "        this.body.addClass('x-cal-body');\n"
20130515 '        this.activeView = this.getLayout().activeItem;\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onLayout: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.onLayout.call(this);\n'
20130515 '        if(!this.navInitComplete){\n'
20130515 '            this.updateNavState();\n'
20130515 '            this.navInitComplete = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).\n"
20130515 '     */\n'
20130515 '    getMultiDayText: function(numDays){\n'
20130515 '        return this.multiDayText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).\n"
20130515 '     */\n'
20130515 '    getMultiWeekText: function(numWeeks){\n'
20130515 '        return this.multiWeekText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        var currStore = this.store;\n'
20130515 '        \n'
20130515 '        if(!initial && currStore){\n'
20130515 '            currStore.un("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreAdd : function(ds, recs, index){\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs;\n'
20130515 '        if(rec.phantom){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreUpdate : function(ds, rec, operation){\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.hideEditForm();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onStoreRemove : function(ds, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\n'
20130515 '        switch(action){\n'
20130515 "            case 'create': \n"
20130515 '                this.onStoreAdd(store, rec);\n'
20130515 '                break;\n'
20130515 "            case 'update':\n"
20130515 '                this.onStoreUpdate(store, rec, Ext.data.Record.COMMIT);\n'
20130515 '                break;\n'
20130515 "            case 'destroy':\n"
20130515 '                this.onStoreRemove(store, rec);\n'
20130515 '                break;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetails: function(vw, rec, el){\n'
20130515 "        if(this.fireEvent('editdetails', this, vw, rec, el) !== false){\n"
20130515 '            this.showEditForm(rec);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    save: function(){\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\n"
20130515 '        // method will have already internally caused a save to execute on\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\n'
20130515 "        // otherwise we'll create duplicate transactions.\n"
20130515 '        if(!this.store.autoSave){\n'
20130515 '            this.store.save();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    onEventAdd: function(form, rec){\n'
20130515 '        if(!rec.store){\n'
20130515 '            this.store.add(rec);\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('eventadd', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventUpdate: function(form, rec){\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventDelete: function(form, rec){\n'
20130515 '        this.store.remove(rec);\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventCancel: function(form, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the built-in event edit form for the passed in event record.  This method automatically\n'
20130515 '     * hides the calendar views and navigation toolbar.  To return to the calendar, call {@link #hideEditForm}.\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} record The event record to edit\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    showEditForm: function(rec){\n'
20130515 '        this.preEditView = this.layout.activeItem.id;\n'
20130515 "        this.setActiveView(this.id+'-edit');\n"
20130515 '        this.layout.activeItem.loadRecord(rec);\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Hides the built-in event edit form and returns to the previous calendar view. If the edit form is\n'
20130515 '     * not currently visible this method has no effect.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    hideEditForm: function(){\n'
20130515 '        if(this.preEditView){\n'
20130515 '            this.setActiveView(this.preEditView);\n'
20130515 '            delete this.preEditView;\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    setActiveView: function(id){\n'
20130515 '        var l = this.layout,\n'
20130515 '            tb = this.getTopToolbar();\n'
20130515 '            \n'
20130515 '        l.setActiveItem(id);\n'
20130515 '        this.activeView = l.activeItem;\n'
20130515 '        \n'
20130515 "        if(id == this.id+'-edit'){\n"
20130515 '            if(tb){\n'
20130515 '                tb.hide();\n'
20130515 '            }\n'
20130515 '            this.doLayout();\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(id !== this.preEditView){\n'
20130515 '                l.activeItem.setStartDate(this.startDate, true);\n'
20130515 '            }\n'
20130515 '            if(tb){\n'
20130515 '               tb.show();\n'
20130515 '           }\n'
20130515 '           this.updateNavState();\n'
20130515 '        }\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    fireViewChange: function(){\n'
20130515 '        var info = null, \n'
20130515 '            view = this.layout.activeItem;\n'
20130515 '            \n'
20130515 '        if(view.getViewBounds){\n'
20130515 '            var vb = view.getViewBounds(),\n'
20130515 '            info = {\n'
20130515 '                activeDate: view.getStartDate(),\n'
20130515 '                viewStart: vb.start,\n'
20130515 '                viewEnd: vb.end\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if(view.dismissEventEditor){\n'
20130515 '            view.dismissEventEditor();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('viewchange', this, view, info);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateNavState: function(){\n'
20130515 '        if(this.showNavBar !== false){\n'
20130515 '            var item = this.layout.activeItem,\n'
20130515 "                suffix = item.id.split(this.id+'-')[1];\n"
20130515 '            \n'
20130515 '            if(this.showNavToday){\n'
20130515 "                Ext.getCmp(this.id+'-tb-today').setDisabled(item.isToday());\n"
20130515 '            }\n'
20130515 "            var btn = Ext.getCmp(this.id+'-tb-'+suffix);\n"
20130515 '            btn.toggle(true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date for the currently-active calendar view.\n'
20130515 '     * @param {Date} dt The new start date\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 "        Ext.ensible.log('setStartDate (CalendarPanel');\n"
20130515 '        this.startDate = dt;\n'
20130515 '        this.layout.activeItem.setStartDate(dt, true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    showWeek: function(dt){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '        this.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onTodayClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveToday(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onJumpClick: function(){\n'
20130515 "        var dt = Ext.getCmp(this.id+'-tb-jump-dt').getValue();\n"
20130515 "        if(dt !== ''){\n"
20130515 '            this.startDate = this.layout.activeItem.moveTo(dt, true);\n'
20130515 '            this.updateNavState();\n'
20130515 '            // TODO: check that view actually changed:\n'
20130515 '            this.fireViewChange();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onPrevClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.movePrev(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onNextClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveNext(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-day');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiday');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiweek');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMonthNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-month');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Return the calendar view that is currently active, which will be a subclass of\n'
20130515 '     * {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} The active view\n'
20130515 '     */\n'
20130515 '    getActiveView: function(){\n'
20130515 '        return this.layout.activeItem;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarpanel', Ext.ensible.cal.CalendarPanel);"
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:24 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 5613\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/*\n'
20130515 ' * French (France) locale\n'
20130515 ' * Contributors: devil1591, Alain Deseine, Yannick Torres\n'
20130515 ' */\n'
20130515 '\n'
20130515 'Ext.ensible.Date.use24HourTime = true;\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarView.prototype, {\n'
20130515 '        startDay: 1,\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        defaultEventTitleText: '(Pas de titre)',\n"
20130515 "        ddCreateEventText: 'Cr\xc3\xa9er \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddMoveEventText: 'D\xc3\xa9placer \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddResizeEventText: 'Mettre \xc3\xa0 jour l\\'\xc3\xa9v\xc3\xa9nement au {0}'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthView.prototype, {\n'
20130515 "        moreText: '+{0} autres ...',\n"
20130515 '        getMoreText: function(numEvents){\n'
20130515 "            return '+{0} autres ...';\n"
20130515 '        },\n'
20130515 "        detailsTitleDateFormat: 'd F'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarPanel) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarPanel.prototype, {\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        dayText: 'Jour',\n"
20130515 "        weekText: 'Semaine',\n"
20130515 "        monthText: 'Mois',\n"
20130515 "        jumpToText: 'Aller au :',\n"
20130515 "        goText: 'Ok',\n"
20130515 "        multiDayText: '{0} jours',\n"
20130515 "        multiWeekText: '{0} semaines',\n"
20130515 '        getMultiDayText: function(numDays){\n'
20130515 "            return '{0} jours';\n"
20130515 '        },\n'
20130515 '        getMultiWeekText: function(numWeeks){\n'
20130515 "            return '{0} semaines';\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditWindow) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditWindow.prototype, {\n'
20130515 '        width: 650,\n'
20130515 '        labelWidth: 65,\n'
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        savingMessage: 'Sauvegarde des changements...',\n"
20130515 "        deletingMessage: 'Suppression de l\\'\xc3\xa9v\xc3\xa8nement...',\n"
20130515 "        detailsLinkText: 'D\xc3\xa9tail de l\\'\xc3\xa9v\xc3\xa9nement...',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        calendarLabelText: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditForm) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditForm.prototype, {\n'
20130515 '        labelWidth: 55,\n'
20130515 '        labelWidthRightCol: 80,\n'
20130515 "        title: 'Formulaire \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        reminderLabelText: 'Rappel',\n"
20130515 "        notesLabelText: 'Notes',\n"
20130515 "        locationLabelText: 'Lieu',\n"
20130515 "        webLinkLabelText: 'Lien internet',\n"
20130515 "        calendarLabelText: 'Agenda',\n"
20130515 "        repeatsLabelText: 'R\xc3\xa9p\xc3\xa9ter'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        toText: 'au',\n"
20130515 "        allDayText: 'Toute la journ\xc3\xa9e'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarCombo.prototype, {\n'
20130515 "        fieldLabel: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarList) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarList.prototype, {\n'
20130515 "        title: 'Agendas'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarListMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarListMenu.prototype, {\n'
20130515 "        displayOnlyThisCalendarText: 'N\\'afficher que cet agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.RecurrenceCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.RecurrenceCombo.prototype, {\n'
20130515 "        fieldLabel: 'R\xc3\xa9ccurence',\n"
20130515 '        recurrenceText: {\n'
20130515 "            none: 'Ne pas r\xc3\xa9p\xc3\xa9ter',\n"
20130515 "            daily: 'Quotidien',\n"
20130515 "            weekly: 'Hebdomadaire',\n"
20130515 "            monthly: 'Mensuel',\n"
20130515 "            yearly: 'Annuel'\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.ReminderField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.ReminderField.prototype, {\n'
20130515 "        fieldLabel: 'Rappel',\n"
20130515 "        noneText: 'Aucun',\n"
20130515 "        atStartTimeText: 'au d\xc3\xa9but',\n"
20130515 '        getMinutesText: function(numMinutes){\n'
20130515 "            return numMinutes === 1 ? 'minute' : 'minutes';\n"
20130515 '        },\n'
20130515 '        getHoursText: function(numHours){\n'
20130515 "            return numHours === 1 ? 'heure' : 'heures';\n"
20130515 '        },\n'
20130515 '        getDaysText: function(numDays){\n'
20130515 "            return numDays === 1 ? 'jour' : 'jours';\n"
20130515 '        },\n'
20130515 '        getWeeksText: function(numWeeks){\n'
20130515 "            return numWeeks === 1 ? 'semaine' : 'semaines';\n"
20130515 '        },\n'
20130515 '        reminderValueFormat: \'{0} {1} avant le d\xc3\xa9but\' // e.g. "2 hours before start"\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        dateFormat: 'd/m/Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventContextMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventContextMenu.prototype, {\n'
20130515 "        editDetailsText: '\xc3\x89diter les d\xc3\xa9tails',\n"
20130515 "        deleteText: 'Effacer',\n"
20130515 "        moveToText: 'D\xc3\xa9placer au...'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat: 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DayViewDropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DayViewDropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat : 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.BoxLayoutTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.BoxLayoutTemplate.prototype, {\n'
20130515 "        firstWeekDateFormat: 'D d',\n"
20130515 "        otherWeeksDateFormat: 'd',\n"
20130515 "        singleDayDateFormat: 'l d F Y',\n"
20130515 "        multiDayFirstDayFormat: 'd M Y',\n"
20130515 "        multiDayMonthStartFormat: 'd M'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthViewTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthViewTemplate.prototype, {\n'
20130515 "        dayHeaderFormat: 'D',\n"
20130515 "        dayHeaderTitleFormat: 'l d F Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:24 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21304\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/** ************************************************************\r\n'
20130515 '\tExt.ux.TinyMCE v0.8.5\r\n'
20130515 '\tExtJS form field containing TinyMCE v3.\r\n'
20130515 '\t\r\n'
20130515 '\tAuthor: Andrew Mayorov et al.\r\n'
20130515 '\thttp://blogs.byte-force.com/xor\r\n'
20130515 '  \r\n'
20130515 '\tCopyright (c)2008-2010 BYTE-force\r\n'
20130515 '\twww.byte-force.com\r\n'
20130515 '\t\r\n'
20130515 '\tLicense: LGPLv2.1 or later\r\n'
20130515 '  \r\n'
20130515 '  Modifs by Luc Saffre:\r\n'
20130515 '  \r\n'
20130515 '  disable function sets ``this.disabled = true;`` \r\n'
20130515 '  (enable function the opposite)\r\n'
20130515 '  \r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '(function() {\r\n'
20130515 '\r\n'
20130515 '\tExt.namespace("Ext.ux");\r\n'
20130515 '\r\n'
20130515 '\tvar tmceInitialized = false;\r\n'
20130515 '\r\n'
20130515 '\t// Lazy references to classes. To be filled in the initTinyMCE method.\r\n'
20130515 '\tvar WindowManager;\r\n'
20130515 '\tvar ControlManager;\r\n'
20130515 '\r\n'
20130515 '\t// Create a new Windows Group for the dialogs\r\n'
20130515 '\t/*var windowGroup = new Ext.WindowGroup();\r\n'
20130515 '\twindowGroup.zseed = 12000;*/\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\t/** ----------------------------------------------------------\r\n'
20130515 '\tExt.ux.TinyMCE\r\n'
20130515 '\t*/\r\n'
20130515 '\tExt.ux.TinyMCE = Ext.extend( Ext.form.Field, {\r\n'
20130515 '\r\n'
20130515 '\t\t// TinyMCE Settings specified for this instance of the editor.\r\n'
20130515 '\t\ttinymceSettings: null,\r\n'
20130515 '\r\n'
20130515 '\t\t// Validation properties\r\n'
20130515 '\t\tallowBlank: true,\r\n'
20130515 '\t\tinvalidText: "The value in this field is invalid",\r\n'
20130515 '\t\tinvalidClass: "invalid-content-body",\r\n'
20130515 "\t\tminLengthText : 'The minimum length for this field is {0}',\r\n"
20130515 "\t\tmaxLengthText : 'The maximum length for this field is {0}',\r\n"
20130515 "\t\tblankText : 'This field is required',\r\n"
20130515 '\r\n'
20130515 '\t\t// HTML markup for this field\r\n'
20130515 "\t\thideMode: 'offsets',\r\n"
20130515 '\t\tdefaultAutoCreate: {\r\n'
20130515 '\t\t\ttag: "textarea",\r\n'
20130515 '\t\t\tstyle: "width:1px;height:1px;",\r\n'
20130515 '\t\t\tautocomplete: "off"\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tconstructor: function(cfg) {\r\n'
20130515 '\r\n'
20130515 '\t\t\tvar config = {\r\n'
20130515 '\t\t\t\ttinymceSettings: {\r\n'
20130515 '\t\t\t\t\taccessibility_focus: false\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.apply(config, cfg);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Add events\r\n'
20130515 '\t\t\tthis.addEvents({\r\n'
20130515 '\t\t\t\t"editorcreated": true\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.constructor.call(this, config);\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitComponent: function() {\r\n'
20130515 '\t\t\tthis.tinymceSettings = this.tinymceSettings || {};\r\n'
20130515 "      //~ console.log('initComponent',this.tinymceSettings);\r\n"
20130515 '\t\t\tExt.ux.TinyMCE.initTinyMCE({ language: this.tinymceSettings.language });\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitEvents: function() {\r\n'
20130515 '\t\t\tthis.originalValue = this.getValue();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonRender: function(ct, position) {\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Fix size if it was specified in config\r\n'
20130515 '\t\t\tif (Ext.type(this.width) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.width = this.width;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (Ext.type(this.height) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.height = this.height;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 "\t\t\t//this.el.dom.style.border = '0 none';\r\n"
20130515 "\t\t\tthis.el.dom.setAttribute('tabIndex', -1);\r\n"
20130515 "\t\t\tthis.el.addClass('x-hidden');\r\n"
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Wrap textarea into DIV\r\n'
20130515 '\t\t\tthis.textareaEl = this.el;\r\n'
20130515 '\t\t\tvar wrapElStyle = { overflow: "hidden" };\r\n'
20130515 '\t\t\tif( Ext.isIE ) { // fix IE 1px bogus margin\r\n'
20130515 '\t\t\t\twrapElStyle["margin-top"] = "-1px";\r\n'
20130515 '\t\t\t\twrapElStyle["margin-bottom"] = "-1px";\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tthis.wrapEl = this.el.wrap({ style: wrapElStyle });\r\n'
20130515 '\t\t\tthis.actionMode = "wrapEl"; // Set action element to the new wrapper\r\n'
20130515 '\t\t\tthis.positionEl = this.wrapEl;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar id = this.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Create TinyMCE editor.\r\n'
20130515 '\t\t\tthis.ed = new tinymce.Editor(id, this.tinymceSettings);\r\n'
20130515 '      \r\n'
20130515 '      // LS 20110602\r\n'
20130515 '      //~ this.ed.addShortcut(\'ctrl+c\', "Close editor window", ct.close,this);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Validate value onKeyPress\r\n'
20130515 '\t\t\tvar validateContentTask = new Ext.util.DelayedTask( this.validate, this );\r\n'
20130515 '\t\t\tthis.ed.onKeyPress.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvalidateContentTask.delay( 250 );\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 "\t\t\t// Set up editor events' handlers\r\n"
20130515 '\t\t\tthis.ed.onBeforeRenderUI.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\t// Replace control manager\r\n'
20130515 '\t\t\t\ted.controlManager = new ControlManager(this, ed);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.ed.onPostRender.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvar s = ed.settings;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Modify markup.\r\n'
20130515 '\t\t\t\tvar tbar = Ext.get(Ext.DomQuery.selectNode("#" + this.ed.id + "_tbl td.mceToolbar"));\r\n'
20130515 '\t\t\t\tif( tbar != null ) {\r\n'
20130515 '\t\t\t\t\t// If toolbar is present\r\n'
20130515 '\t\t\t\t\tvar tbars = tbar.select("> table.mceToolbar");\r\n'
20130515 '\t\t\t\t\tExt.DomHelper\r\n'
20130515 '\t\t\t\t\t\t.append( tbar,\r\n'
20130515 '\t\t\t\t\t\t\t{ tag: "div", id: this.ed.id + "_xtbar", style: { overflow: "hidden"} }\r\n'
20130515 '\t\t\t\t\t\t\t, true )\r\n'
20130515 '\t\t\t\t\t\t.appendChild(tbars);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\t// Change window manager\r\n'
20130515 '\t\t\t\ted.windowManager = new WindowManager({\r\n'
20130515 '\t\t\t\t\teditor: this.ed,\r\n'
20130515 '\t\t\t\t\tmanager: this.manager\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t\t// Patch css-style for validation body like ExtJS\r\n'
20130515 "\t\t\t\tExt.get(ed.getContentAreaContainer()).addClass('patch-content-body');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t// Event of focused body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("focus", this.onFocus, this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Event of blur body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("blur", this.onBlur, this,\r\n'
20130515 '\t\t\t\t\t\tthis.inEditor && Ext.isWindows && Ext.isGecko ? { buffer: 10} : null\r\n'
20130515 '\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Set event handler on editor init.\r\n'
20130515 '\t\t\t//this.ed.onInit.add(function() {\r\n'
20130515 '\t\t\t//} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Wire "change" event\r\n'
20130515 '\t\t\tthis.ed.onChange.add(function(ed, l) {\r\n'
20130515 '\t\t\t\tthis.fireEvent("change", ed, l);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Render the editor\r\n'
20130515 '\t\t\tthis.ed.render();\r\n'
20130515 '\t\t\ttinyMCE.add(this.ed);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Fix editor size when control will be visible\r\n'
20130515 '\t\t\t(function fixEditorSize() {\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t\t// If element is not visible yet, wait.\r\n'
20130515 '\t\t\t\tif( !this.isVisible() ) {\r\n'
20130515 '\t\t\t\t\targuments.callee.defer( 50, this );\r\n'
20130515 '\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tvar size = this.getSize();\r\n'
20130515 '\t\t\t\tthis.withEd( function() {\r\n'
20130515 '\t\t\t\t\tthis._setEditorSize( size.width, size.height );\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t\t// Indicate that editor is created\r\n'
20130515 '\t\t\t\t\tthis.fireEvent("editorcreated");\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t}).call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetResizeEl: function() {\r\n'
20130515 '\t\t\treturn this.wrapEl;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t* Returns the name attribute of the field if available\r\n'
20130515 '\t\t* @return {String} name The field name\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetName: function() {\r\n'
20130515 '\t\t\treturn this.rendered && this.textareaEl.dom.name\r\n'
20130515 "\t\t\t\t? this.textareaEl.dom.name : (this.name || '');\r\n"
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif (!this.rendered)\r\n'
20130515 '\t\t\t\tExt.ux.TinyMCE.superclass.initValue.call(this);\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\tif (this.value !== undefined) {\r\n'
20130515 '\t\t\t\t\tthis.setValue(this.value);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse {\r\n'
20130515 '\t\t\t\t\tvar v = this.textareaEl.value; \r\n'
20130515 '\t\t\t\t\tif ( v )\r\n'
20130515 '\t\t\t\t\t\tthis.setValue( v );\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tbeforeDestroy: function() {\r\n'
20130515 '\t\t\tif( this.ed ) tinyMCE.remove( this.ed );\r\n'
20130515 '\t\t\tif( this.wrapEl ) Ext.destroy( this.wrapEl );\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.beforeDestroy.call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetRawValue : function(){\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '\t\t\tif(v === this.emptyText){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '      //~ console.log(v);\r\n'
20130515 '\t\t\tif( v === this.emptyText || v === undefined ){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetRawValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setRawValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t\tthis.validate();\r\n'
20130515 '\t\t\t\t\t//this.ed.resizeToContent();\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tisDirty: function() {\r\n'
20130515 '\t\t\tif (this.disabled || !this.rendered) {\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn this.ed && this.ed.initialized && this.ed.isDirty();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsyncValue: function() {\r\n'
20130515 '\t\t\tif (this.rendered && this.ed.initialized)\r\n'
20130515 '\t\t\t\tthis.ed.save();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetEd: function() {\r\n'
20130515 '\t\t\treturn this.ed;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tdisable: function() {\r\n'
20130515 '      this.disabled = true;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = true;\r\n'
20130515 '        //~ this.ed.setupContentEditable(false);\r\n'
20130515 '        //~ this.ed.controlManager.setDisabled(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = true;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceContentBody')) {\r\n"
20130515 "          //~ console.log('Ext.ux.TinyMCE.disable() 3') \r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceContentBody');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceNonEditable');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.readonly = true;\r\n'
20130515 '\t\t\t\t\t//~ bodyEl.setAttribute("disabled", "disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tenable: function() {\r\n'
20130515 '      this.disabled = false;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = false;\r\n'
20130515 '        //~ this.ed.setupContentEditable(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = false;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceNonEditable')) {\r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceNonEditable');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceContentBody');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.removeAttribute("disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonResize: function(aw, ah) {\r\n'
20130515 '\t\t\tif( Ext.type( aw ) != "number" ){\r\n'
20130515 '\t\t\t\taw = this.getWidth();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif( Ext.type(ah) != "number" ){\r\n'
20130515 '\t\t\t\tah = this.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (aw == 0 || ah == 0)\r\n'
20130515 '\t\t\t\treturn;\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( this.rendered && this.isVisible() ) {\r\n'
20130515 '\t\t\t\tthis.withEd(function() { this._setEditorSize( aw, ah ); });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tSets control size to the given width and height\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\t_setEditorSize: function( width, height ) {\r\n'
20130515 '\t\t  //~ console.log("_setEditorSize",arguments);\r\n'
20130515 '\t\t\t// We currently support only advanced theme resize\r\n'
20130515 '\t\t\tif( !this.ed.theme.AdvancedTheme ) {\r\n'
20130515 '          //~ console.log("We currently support only advanced theme resize, but this.ed.theme is",this.ed.theme);\r\n'
20130515 '          return;\r\n'
20130515 '      }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\t// Minimal width and height for advanced theme\r\n'
20130515 '\t\t\tif( width < 100 ) width = 100;\r\n'
20130515 '\t\t\tif( height < 129 ) height = 129;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Set toolbar div width\r\n'
20130515 '\t\t\tvar edTable = Ext.get(this.ed.id + "_tbl"), \r\n'
20130515 '\t\t\t\tedIframe = Ext.get(this.ed.id + "_ifr"),\r\n'
20130515 '\t\t\t\tedToolbar = Ext.get(this.ed.id + "_xtbar");\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarWidth = width;\r\n'
20130515 '\t\t\tif( edTable ) \r\n'
20130515 '\t\t\t\ttoolbarWidth = width - edTable.getFrameWidth( "lr" );\t\t\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarHeight = 0;\r\n'
20130515 '\t\t\tif( edToolbar ) {\r\n'
20130515 '\t\t\t\ttoolbarHeight = edToolbar.getHeight();\r\n'
20130515 '\t\t\t\tvar toolbarTd = edToolbar.findParent( "td", 5, true );\r\n'
20130515 '\t\t\t\ttoolbarHeight += toolbarTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\tedToolbar.setWidth( toolbarWidth );\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar edStatusbarTd = edTable.child( ".mceStatusbar" );\r\n'
20130515 '\t\t\tvar statusbarHeight = 0;\r\n'
20130515 '\t\t\tif( edStatusbarTd ) {\r\n'
20130515 '\t\t\t\tstatusbarHeight += edStatusbarTd.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar iframeHeight = height - toolbarHeight - statusbarHeight;\r\n'
20130515 '\t\t\tvar iframeTd = edIframe.findParent( "td", 5, true );\r\n'
20130515 '\t\t\tif( iframeTd )\r\n'
20130515 '\t\t\t\tiframeHeight -= iframeTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t// Resize iframe and container\r\n'
20130515 '\t\t\tedTable.setSize( width, height );\r\n'
20130515 '\t\t\tedIframe.setSize( toolbarWidth, iframeHeight );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tfocus: function(selectText, delay) {\r\n'
20130515 '\t\t\tif (delay) {\r\n'
20130515 "\t\t\t\tthis.focus.defer(typeof delay == 'number' ? delay : 10, this, [selectText, false]);\r\n"
20130515 '\t\t\t\treturn;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\tthis.ed.focus();\r\n'
20130515 '\t\t\t\t/*if (selectText === true) {\r\n'
20130515 "\t\t\t\t// TODO: Select editor's content\r\n"
20130515 '\t\t\t\t}*/\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\treturn this;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tprocessValue : function( value ){\r\n'
20130515 '\t\t\treturn Ext.util.Format.stripTags( value );\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tvalidateValue: function( value ) {\r\n'
20130515 '\t\t\tif(Ext.isFunction(this.validator)){\r\n'
20130515 '\t\t\t\tvar msg = this.validator(value);\r\n'
20130515 '\t\t\t\tif(msg !== true){\r\n'
20130515 '\t\t\t\t\tthis.markInvalid(msg);\r\n'
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 "\t\t\tif(value.length < 1 || value === this.emptyText){ // if it's blank\r\n"
20130515 '\t\t\t\t if(this.allowBlank){\r\n'
20130515 '\t\t\t\t\t this.clearInvalid();\r\n'
20130515 '\t\t\t\t\t return true;\r\n'
20130515 '\t\t\t\t }else{\r\n'
20130515 '\t\t\t\t\t this.markInvalid(this.blankText);\r\n'
20130515 '\t\t\t\t\t return false;\r\n'
20130515 '\t\t\t\t }\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length < this.minLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.minLengthText, this.minLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length > this.maxLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.maxLengthText, this.maxLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\t\r\n'
20130515 '\t\t\tif(this.vtype){\r\n'
20130515 '\t\t\t\tvar vt = Ext.form.VTypes;\r\n'
20130515 '\t\t\t\tif(!vt[this.vtype](value, this)){\r\n'
20130515 "\t\t\t\t\tthis.markInvalid(this.vtypeText || vt[this.vtype +'Text']);\r\n"
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(this.regex && !this.regex.test(value)){\r\n'
20130515 '\t\t\t\tthis.markInvalid(this.regexText);\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn true;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\tIf ed (local editor instance) is already initilized, calls\r\n'
20130515 '\t\tspecified function directly. Otherwise - adds it to ed.onInit event.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\twithEd: function(func) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t// If editor is not created yet, reschedule this call.\r\n'
20130515 '\t\t\tif (!this.ed) this.on(\r\n'
20130515 '\t\t\t\t"editorcreated",\r\n'
20130515 '\t\t\t\tfunction() { this.withEd(func); },\r\n'
20130515 '\t\t\t\tthis);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created and initialized\r\n'
20130515 '\t\t\telse if (this.ed.initialized) func.call(this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created but not initialized yet.\r\n'
20130515 '\t\t\telse this.ed.onInit.add(function() { func.defer(10, this); } .createDelegate(this));\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\t// Add static members\r\n'
20130515 '\tExt.apply(Ext.ux.TinyMCE, {\r\n'
20130515 '\r\n'
20130515 '\t\t/**\r\n'
20130515 '\t\tStatic field with all the plugins that should be loaded by TinyMCE.\r\n'
20130515 '\t\tShould be set before first component would be created.\r\n'
20130515 '\t\t@static\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\ttinymcePlugins: "pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template",\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tInits TinyMCE and other necessary dependencies.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitTinyMCE: function(settings) {\r\n'
20130515 '\t\t\tif (!tmceInitialized) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Create lazy classes\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tWindowManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tWindowManager = Ext.extend( tinymce.WindowManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t\tConfig parameters:\r\n'
20130515 '\t\t\t\t\t\teditor - reference to TinyMCE intstance.\r\n'
20130515 '\t\t\t\t\t\tmangager - WindowGroup to use for the popup window. Could be empty.\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function( cfg ) {\r\n'
20130515 '\t\t\t\t\t\tWindowManager.superclass.constructor.call(this, cfg.editor);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Set window group\r\n'
20130515 '\t\t\t\t\t\tthis.manager = cfg.manager;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\talert: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.alert("", txt, function() {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this);\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconfirm: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.confirm("", txt, function(btn) {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this, btn == "yes");\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\topen: function(s, p) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts = s || {};\r\n'
20130515 '\t\t\t\t\t\tp = p || {};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tif (!s.type)\r\n'
20130515 "\t\t\t\t\t\t\tthis.bookmark = this.editor.selection.getBookmark('simple');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts.width = parseInt(s.width || 320);\r\n'
20130515 '\t\t\t\t\t\ts.height = parseInt(s.height || 240) + (tinymce.isIE ? 8 : 0);\r\n'
20130515 '\t\t\t\t\t\ts.min_width = parseInt(s.min_width || 150);\r\n'
20130515 '\t\t\t\t\t\ts.min_height = parseInt(s.min_height || 100);\r\n'
20130515 '\t\t\t\t\t\ts.max_width = parseInt(s.max_width || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.max_height = parseInt(s.max_height || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.movable = true;\r\n'
20130515 '\t\t\t\t\t\ts.resizable = true;\r\n'
20130515 '\t\t\t\t\t\tp.mce_width = s.width;\r\n'
20130515 '\t\t\t\t\t\tp.mce_height = s.height;\r\n'
20130515 '\t\t\t\t\t\tp.mce_inline = true;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tthis.features = s;\r\n'
20130515 '\t\t\t\t\t\tthis.params = p;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar win = new Ext.Window(\r\n'
20130515 '\t\t\t\t\t\t{\r\n'
20130515 '\t\t\t\t\t\t\ttitle: s.name,\r\n'
20130515 '\t\t\t\t\t\t\twidth: s.width,\r\n'
20130515 '\t\t\t\t\t\t\theight: s.height,\r\n'
20130515 '\t\t\t\t\t\t\tminWidth: s.min_width,\r\n'
20130515 '\t\t\t\t\t\t\tminHeight: s.min_height,\r\n'
20130515 '\t\t\t\t\t\t\tresizable: true,\r\n'
20130515 '\t\t\t\t\t\t\tmaximizable: s.maximizable,\r\n'
20130515 '\t\t\t\t\t\t\tminimizable: s.minimizable,\r\n'
20130515 '\t\t\t\t\t\t\tmodal: true,\r\n'
20130515 '\t\t\t\t\t\t\tstateful: false,\r\n'
20130515 '\t\t\t\t\t\t\tconstrain: true,\r\n'
20130515 '\t\t\t\t\t\t\tmanager: this.manager,\r\n'
20130515 '\t\t\t\t\t\t\tlayout: "fit",\r\n'
20130515 '\t\t\t\t\t\t\titems: [\r\n'
20130515 '\t\t\t\t\t\t\t\tnew Ext.BoxComponent({\r\n'
20130515 '\t\t\t\t\t\t\t\t\tautoEl: {\r\n'
20130515 "\t\t\t\t\t\t\t\t\t\ttag: 'iframe',\r\n"
20130515 '\t\t\t\t\t\t\t\t\t\tsrc: s.url || s.file\r\n'
20130515 '\t\t\t\t\t\t\t\t\t},\r\n'
20130515 "\t\t\t\t\t\t\t\t\tstyle : 'border-width: 0px;'\r\n"
20130515 '\t\t\t\t\t\t\t\t})\r\n'
20130515 '\t\t\t\t\t\t\t]\r\n'
20130515 '\t\t\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tp.mce_window_id = win.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\twin.show(null,\r\n'
20130515 '\t\t\t\t\t\t\tfunction() {\r\n'
20130515 '\t\t\t\t\t\t\t\tif (s.left && s.top)\r\n'
20130515 '\t\t\t\t\t\t\t\t\twin.setPagePosition(s.left, s.top);\r\n'
20130515 '\t\t\t\t\t\t\t\tvar pos = win.getPosition();\r\n'
20130515 '\t\t\t\t\t\t\t\ts.left = pos[0];\r\n'
20130515 '\t\t\t\t\t\t\t\ts.top = pos[1];\r\n'
20130515 '\t\t\t\t\t\t\t\tthis.onOpen.dispatch(this, s, p);\r\n'
20130515 '\t\t\t\t\t\t\t},\r\n'
20130515 '\t\t\t\t\t\t\tthis\r\n'
20130515 '\t\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn win;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tclose: function(win) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.close.call(this, win);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tthis.onClose.dispatch(this);\r\n'
20130515 '\t\t\t\t\t\t\tw.close();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tsetTitle: function(win, ti) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.setTitle.call(this, win, ti);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setTitle(ti);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tresizeBy: function(dw, dh, id) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tvar size = w.getSize();\r\n'
20130515 '\t\t\t\t\t\t\tw.setSize(size.width + dw, size.height + dh);\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tfocus: function(id) {\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setActive(true);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tControlManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tControlManager = Ext.extend( tinymce.ControlManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t// Reference to ExtJS control Ext.ux.TinyMCE.\r\n'
20130515 '\t\t\t\t\tcontrol: null,\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function(control, ed, s) {\r\n'
20130515 '\t\t\t\t\t\tthis.control = control;\r\n'
20130515 '\t\t\t\t\t\tControlManager.superclass.constructor.call(this, ed, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateDropMenu: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createDropMenu.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(\'menu_\' + this.id).setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateColorSplitButton: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createColorSplitButton.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(this.id + \'_menu\').setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Init TinyMCE\r\n'
20130515 '\t\t\t\tvar s = {\r\n'
20130515 '\t\t\t\t\tmode: "none",\r\n'
20130515 '\t\t\t\t\tplugins: Ext.ux.TinyMCE.tinymcePlugins,\r\n'
20130515 '\t\t\t\t\ttheme: "advanced"\r\n'
20130515 '\t\t\t\t};\r\n'
20130515 '\t\t\t\tExt.apply(s, settings);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\tif (!tinymce.dom.Event.domLoaded)\r\n'
20130515 '\t\t\t\t\ttinymce.dom.Event._pageInit();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\ttinyMCE.init(s);\r\n'
20130515 '\t\t\t\ttmceInitialized = true;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\tExt.ComponentMgr.registerType("tinymce", Ext.ux.TinyMCE);\r\n'
20130515 '\r\n'
20130515 '})();'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:24 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21047\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '// vim: ts=4:sw=4:nu:fdc=4:nospell\r\n'
20130515 '/*global Ext */\r\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ux.form.DateTime\r\n'
20130515 ' * @extends Ext.form.Field\r\n'
20130515 ' *\r\n'
20130515 ' * DateTime field, combination of DateField and TimeField\r\n'
20130515 ' *\r\n'
20130515 ' * @author      Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @copyright (c) 2008, Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @version   2.0\r\n'
20130515 ' * @revision  $Id: Ext.ux.form.DateTime.js 813 2010-01-29 23:32:36Z jozo $\r\n'
20130515 ' *\r\n'
20130515 ' * @license Ext.ux.form.DateTime is licensed under the terms of\r\n'
20130515 ' * the Open Source LGPL 3.0 license.  Commercial use is permitted to the extent\r\n'
20130515 ' * that the code/component(s) do NOT become part of another Open Source or Commercially\r\n'
20130515 ' * licensed development library or toolkit without explicit permission.\r\n'
20130515 ' * \r\n'
20130515 ' * <p>License details: <a href="http://www.gnu.org/licenses/lgpl.html"\r\n'
20130515 ' * target="_blank">http://www.gnu.org/licenses/lgpl.html</a></p>\r\n'
20130515 ' *\r\n'
20130515 ' * @forum      22661\r\n'
20130515 ' *\r\n'
20130515 ' * @donate\r\n'
20130515 ' * <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">\r\n'
20130515 ' * <input type="hidden" name="cmd" value="_s-xclick">\r\n'
20130515 ' * <input type="hidden" name="hosted_button_id" value="3430419">\r\n'
20130515 ' * <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" \r\n'
20130515 ' * border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">\r\n'
20130515 ' * <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">\r\n'
20130515 ' * </form>\r\n'
20130515 ' */\r\n'
20130515 '\r\n'
20130515 "Ext.ns('Ext.ux.form');\r\n"
20130515 '\r\n'
20130515 '/**\r\n'
20130515 ' * Creates new DateTime\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config A config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ux.form.DateTime = Ext.extend(Ext.form.Field, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} dateValidator A custom validation function to be called during date field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '     dateValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String/Object} defaultAutoCreate DomHelper element spec\r\n'
20130515 '     * Let superclass to create hidden field instead of textbox. Hidden will be submittend to server\r\n'
20130515 '     */\r\n'
20130515 "    ,defaultAutoCreate:{tag:'input', type:'hidden'}\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dtSeparator Date - Time separator. Used to split date and time (defaults to ' ' (space))\r\n"
20130515 '     */\r\n'
20130515 "    ,dtSeparator:' '\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} hiddenFormat Format of datetime used to store value in hidden field\r\n'
20130515 "     * and submitted to server (defaults to 'Y-m-d H:i:s' that is mysql format)\r\n"
20130515 '     */\r\n'
20130515 "    ,hiddenFormat:'Y-m-d H:i:s'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} otherToNow Set other field to now() if not explicly filled in (defaults to true)\r\n'
20130515 '     */\r\n'
20130515 '    ,otherToNow:true\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} emptyToNow Set field value to now on attempt to set empty value.\r\n'
20130515 '     * If it is true then setValue() sets value of field to current date and time (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timePosition Where the time field should be rendered. 'right' is suitable for forms\r\n"
20130515 "     * and 'below' is suitable if the field is used as the grid editor (defaults to 'right')\r\n"
20130515 '     */\r\n'
20130515 "    ,timePosition:'right' // valid values:'below', 'right'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} timeValidator A custom validation function to be called during time field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} timeWidth Width of time field in pixels (defaults to 100)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeWidth:100\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dateFormat Format of DateField. Can be localized. (defaults to 'm/y/d')\r\n"
20130515 '     */\r\n'
20130515 "    ,dateFormat:'m/d/y'\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timeFormat Format of TimeField. Can be localized. (defaults to 'g:i A')\r\n"
20130515 '     */\r\n'
20130515 "    ,timeFormat:'g:i A'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} dateConfig Config for DateField constructor.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} timeConfig Config for TimeField constructor.\r\n'
20130515 '     */\r\n'
20130515 '\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * creates DateField and TimeField and installs the necessary event handlers\r\n'
20130515 '     */\r\n'
20130515 '    ,initComponent:function() {\r\n'
20130515 '        // call parent initComponent\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.initComponent.call(this);\r\n'
20130515 '\r\n'
20130515 '        // create DateField\r\n'
20130515 '        var dateConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-date'\r\n"
20130515 '            ,format:this.dateFormat || Ext.form.DateField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.dateValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.dateConfig);\r\n'
20130515 '        this.df = new Ext.form.DateField(dateConfig);\r\n'
20130515 '        this.df.ownerCt = this;\r\n'
20130515 '        delete(this.dateFormat);\r\n'
20130515 '\r\n'
20130515 '        // create TimeField\r\n'
20130515 '        var timeConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-time'\r\n"
20130515 '            ,format:this.timeFormat || Ext.form.TimeField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.timeValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.timeConfig);\r\n'
20130515 '        this.tf = new Ext.form.TimeField(timeConfig);\r\n'
20130515 '        this.tf.ownerCt = this;\r\n'
20130515 '        delete(this.timeFormat);\r\n'
20130515 '\r\n'
20130515 '        // relay events\r\n'
20130515 "        this.relayEvents(this.df, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 "        this.relayEvents(this.tf, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 '\r\n'
20130515 "        this.on('specialkey', this.onSpecialKey, this);\r\n"
20130515 '\r\n'
20130515 '    } // eo function initComponent\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Renders underlying DateField and TimeField and provides a workaround for side error icon bug\r\n'
20130515 '     */\r\n'
20130515 '    ,onRender:function(ct, position) {\r\n'
20130515 "        // don't run more than once\r\n"
20130515 '        if(this.isRendered) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // render underlying hidden field\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '        // render DateField and TimeField\r\n'
20130515 '        // create bounding table\r\n'
20130515 '        var t;\r\n'
20130515 "        if('below' === this.timePosition || 'bellow' === this.timePosition) {\r\n"
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                 {tag:'tr',children:[{tag:'td', style:'padding-bottom:1px', cls:'ux-datetime-date'}]}\r\n"
20130515 "                ,{tag:'tr',children:[{tag:'td', cls:'ux-datetime-time'}]}\r\n"
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                {tag:'tr',children:[\r\n"
20130515 "                    {tag:'td',style:'padding-right:4px', cls:'ux-datetime-date'},{tag:'td', cls:'ux-datetime-time'}\r\n"
20130515 '                ]}\r\n'
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.tableEl = t;\r\n'
20130515 "        this.wrap = t.wrap({cls:'x-form-field-wrap'});\r\n"
20130515 '//        this.wrap = t.wrap();\r\n'
20130515 '        this.wrap.on("mousedown", this.onMouseDown, this, {delay:10});\r\n'
20130515 '\r\n'
20130515 '        // render DateField & TimeField\r\n'
20130515 "        this.df.render(t.child('td.ux-datetime-date'));\r\n"
20130515 "        this.tf.render(t.child('td.ux-datetime-time'));\r\n"
20130515 '\r\n'
20130515 '        // workaround for IE trigger misalignment bug\r\n'
20130515 '        // see http://extjs.com/forum/showthread.php?p=341075#post341075\r\n'
20130515 '//        if(Ext.isIE && Ext.isStrict) {\r\n'
20130515 "//            t.select('input').applyStyles({top:0});\r\n"
20130515 '//        }\r\n'
20130515 '\r\n'
20130515 "        this.df.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 "        this.tf.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 '\r\n'
20130515 '        // create icon for side invalid errorIcon\r\n'
20130515 "        if('side' === this.msgTarget) {\r\n"
20130515 "            var elp = this.el.findParent('.x-form-element', 10, true);\r\n"
20130515 '            if(elp) {\r\n'
20130515 "                this.errorIcon = elp.createChild({cls:'x-form-invalid-icon'});\r\n"
20130515 '            }\r\n'
20130515 '\r\n'
20130515 '            var o = {\r\n'
20130515 '                 errorIcon:this.errorIcon\r\n'
20130515 "                ,msgTarget:'side'\r\n"
20130515 '                ,alignErrorIcon:this.alignErrorIcon.createDelegate(this)\r\n'
20130515 '            };\r\n'
20130515 '            Ext.apply(this.df, o);\r\n'
20130515 '            Ext.apply(this.tf, o);\r\n'
20130515 '//            this.df.errorIcon = this.errorIcon;\r\n'
20130515 '//            this.tf.errorIcon = this.errorIcon;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // setup name for submit\r\n'
20130515 '        this.el.dom.name = this.hiddenName || this.name || this.id;\r\n'
20130515 '\r\n'
20130515 '        // prevent helper fields from being submitted\r\n'
20130515 '        this.df.el.dom.removeAttribute("name");\r\n'
20130515 '        this.tf.el.dom.removeAttribute("name");\r\n'
20130515 '\r\n'
20130515 "        // we're rendered flag\r\n"
20130515 '        this.isRendered = true;\r\n'
20130515 '\r\n'
20130515 '        // update hidden field\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '    } // eo function onRender\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,adjustSize:Ext.BoxComponent.prototype.adjustSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,alignErrorIcon:function() {\r\n'
20130515 "        this.errorIcon.alignTo(this.tableEl, 'tl-tr', [2, 0]);\r\n"
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private initializes internal dateValue\r\n'
20130515 '     */\r\n'
20130515 '    ,initDateValue:function() {\r\n'
20130515 '        this.dateValue = this.otherToNow ? new Date() : new Date(1970, 0, 1, 0, 0, 0);\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls clearInvalid on the DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,clearInvalid:function(){\r\n'
20130515 '        this.df.clearInvalid();\r\n'
20130515 '        this.tf.clearInvalid();\r\n'
20130515 '    } // eo function clearInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls markInvalid on both DateField and TimeField\r\n'
20130515 '     * @param {String} msg Invalid message to display\r\n'
20130515 '     */\r\n'
20130515 '    ,markInvalid:function(msg){\r\n'
20130515 '        this.df.markInvalid(msg);\r\n'
20130515 '        this.tf.markInvalid(msg);\r\n'
20130515 '    } // eo function markInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * called from Component::destroy. \r\n'
20130515 "     * Destroys all elements and removes all listeners we've created.\r\n"
20130515 '     */\r\n'
20130515 '    ,beforeDestroy:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '//            this.removeAllListeners();\r\n'
20130515 '            this.wrap.removeAllListeners();\r\n'
20130515 '            this.wrap.remove();\r\n'
20130515 '            this.tableEl.remove();\r\n'
20130515 '            this.df.destroy();\r\n'
20130515 '            this.tf.destroy();\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function beforeDestroy\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Disable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,disable:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '            this.df.disabled = this.disabled;\r\n'
20130515 '            this.df.onDisable();\r\n'
20130515 '            this.tf.onDisable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = true;\r\n'
20130515 '        this.df.disabled = true;\r\n'
20130515 '        this.tf.disabled = true;\r\n'
20130515 '        this.fireEvent("disable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function disable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,enable:function() {\r\n'
20130515 '        if(this.rendered){\r\n'
20130515 '            this.df.onEnable();\r\n'
20130515 '            this.tf.onEnable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = false;\r\n'
20130515 '        this.df.disabled = false;\r\n'
20130515 '        this.tf.disabled = false;\r\n'
20130515 '        this.fireEvent("enable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function enable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Focus date filed\r\n'
20130515 '     */\r\n'
20130515 '    ,focus:function() {\r\n'
20130515 '        this.df.focus();\r\n'
20130515 '    } // eo function focus\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getPositionEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getResizeEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Date/String} Returns value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,getValue:function() {\r\n'
20130515 '        // create new instance of date\r\n'
20130515 "        return this.dateValue ? new Date(this.dateValue) : '';\r\n"
20130515 '    } // eo function getValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * @private Calls isValid methods of underlying DateField and TimeField and returns the result\r\n'
20130515 '     */\r\n'
20130515 '    ,isValid:function() {\r\n'
20130515 '        return this.df.isValid() && this.tf.isValid();\r\n'
20130515 '    } // eo function isValid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns true if this component is visible\r\n'
20130515 '     * @return {boolean} \r\n'
20130515 '     */\r\n'
20130515 '    ,isVisible : function(){\r\n'
20130515 '        return this.df.rendered && this.df.getActionEl().isVisible();\r\n'
20130515 '    } // eo function isVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Handles blur event\r\n'
20130515 '     */\r\n'
20130515 '    ,onBlur:function(f) {\r\n'
20130515 '        // called by both DateField and TimeField blur events\r\n'
20130515 '\r\n'
20130515 '        // revert focus to previous field if clicked in between\r\n'
20130515 '        if(this.wrapClick) {\r\n'
20130515 '            f.focus();\r\n'
20130515 '            this.wrapClick = false;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // update underlying value\r\n'
20130515 '        if(f === this.df) {\r\n'
20130515 '            this.updateDate();\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.updateTime();\r\n'
20130515 '        }\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        this.validate();\r\n'
20130515 '\r\n'
20130515 '        // fire events later\r\n'
20130515 '        (function() {\r\n'
20130515 '            if(!this.df.hasFocus && !this.tf.hasFocus) {\r\n'
20130515 '                var v = this.getValue();\r\n'
20130515 '                if(String(v) !== String(this.startValue)) {\r\n'
20130515 '                    this.fireEvent("change", this, v, this.startValue);\r\n'
20130515 '                }\r\n'
20130515 '                this.hasFocus = false;\r\n'
20130515 "                this.fireEvent('blur', this);\r\n"
20130515 '            }\r\n'
20130515 '        }).defer(100, this);\r\n'
20130515 '\r\n'
20130515 '    } // eo function onBlur\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Handles focus event\r\n'
20130515 '     */\r\n'
20130515 '    ,onFocus:function() {\r\n'
20130515 '        if(!this.hasFocus){\r\n'
20130515 '            this.hasFocus = true;\r\n'
20130515 '            this.startValue = this.getValue();\r\n'
20130515 '            this.fireEvent("focus", this);\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Just to prevent blur event when clicked in the middle of fields\r\n'
20130515 '     */\r\n'
20130515 '    ,onMouseDown:function(e) {\r\n'
20130515 '        if(!this.disabled) {\r\n'
20130515 "            this.wrapClick = 'td' === e.target.nodeName.toLowerCase();\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Handles Tab and Shift-Tab events\r\n'
20130515 '     */\r\n'
20130515 '    ,onSpecialKey:function(t, e) {\r\n'
20130515 '        var key = e.getKey();\r\n'
20130515 '        if(key === e.TAB) {\r\n'
20130515 '            if(t === this.df && !e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.tf.focus();\r\n'
20130515 '            }\r\n'
20130515 '            if(t === this.tf && e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.df.focus();\r\n'
20130515 '            }\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '        // otherwise it misbehaves in editor grid\r\n'
20130515 '        if(key === e.ENTER) {\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '    } // eo function onSpecialKey\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Resets the current field value to the originally loaded value \r\n'
20130515 '     * and clears any validation messages. See Ext.form.BasicForm.trackResetOnLoad\r\n'
20130515 '     */\r\n'
20130515 '    ,reset:function() {\r\n'
20130515 '        this.df.setValue(this.originalValue);\r\n'
20130515 '        this.tf.setValue(this.originalValue);\r\n'
20130515 '    } // eo function reset\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Sets the value of DateField\r\n'
20130515 '     */\r\n'
20130515 '    ,setDate:function(date) {\r\n'
20130515 '        this.df.setValue(date);\r\n'
20130515 '    } // eo function setDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Sets the value of TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,setTime:function(date) {\r\n'
20130515 '        this.tf.setValue(date);\r\n'
20130515 '    } // eo function setTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Sets correct sizes of underlying DateField and TimeField\r\n'
20130515 '     * With workarounds for IE bugs\r\n'
20130515 '     */\r\n'
20130515 '    ,setSize:function(w, h) {\r\n'
20130515 '        if(!w) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if('below' === this.timePosition) {\r\n"
20130515 '            this.df.setSize(w, h);\r\n'
20130515 '            this.tf.setSize(w, h);\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w);\r\n"
20130515 "                this.tf.el.up('td').setWidth(w);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.df.setSize(w - this.timeWidth - 4, h);\r\n'
20130515 '            this.tf.setSize(this.timeWidth, h);\r\n'
20130515 '\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w - this.timeWidth - 4);\r\n"
20130515 "                this.tf.el.up('td').setWidth(this.timeWidth);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function setSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @param {Mixed} val Value to set\r\n'
20130515 '     * Sets the value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,setValue:function(val) {\r\n'
20130515 '        if(!val && true === this.emptyToNow) {\r\n'
20130515 '            this.setValue(new Date());\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        else if(!val) {\r\n'
20130515 "            this.setDate('');\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '            this.updateValue();\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if ('number' === typeof val) {\r\n"
20130515 '          val = new Date(val);\r\n'
20130515 '        }\r\n'
20130515 "        else if('string' === typeof val && this.hiddenFormat) {\r\n"
20130515 '            val = Date.parseDate(val, this.hiddenFormat);\r\n'
20130515 '        }\r\n'
20130515 '        val = val ? val : new Date(1970, 0 ,1, 0, 0, 0);\r\n'
20130515 '        var da;\r\n'
20130515 '        if(val instanceof Date) {\r\n'
20130515 '            this.setDate(val);\r\n'
20130515 '            this.setTime(val);\r\n'
20130515 '            this.dateValue = new Date(Ext.isIE ? val.getTime() : val);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            da = val.split(this.dtSeparator);\r\n'
20130515 '            this.setDate(da[0]);\r\n'
20130515 '            if(da[1]) {\r\n'
20130515 '                if(da[2]) {\r\n'
20130515 '                    // add am/pm part back to time\r\n'
20130515 '                    da[1] += da[2];\r\n'
20130515 '                }\r\n'
20130515 '                this.setTime(da[1]);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.updateValue();\r\n'
20130515 '    } // eo function setValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Hide or show this component by boolean\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,setVisible: function(visible){\r\n'
20130515 '        if(visible) {\r\n'
20130515 '            this.df.show();\r\n'
20130515 '            this.tf.show();\r\n'
20130515 '        }else{\r\n'
20130515 '            this.df.hide();\r\n'
20130515 '            this.tf.hide();\r\n'
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function setVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,show:function() {\r\n'
20130515 '        return this.setVisible(true);\r\n'
20130515 '    } // eo function show\r\n'
20130515 '    //}}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,hide:function() {\r\n'
20130515 '        return this.setVisible(false);\r\n'
20130515 '    } // eo function hide\r\n'
20130515 '    //}}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the date part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateDate:function() {\r\n'
20130515 '\r\n'
20130515 '        var d = this.df.getValue();\r\n'
20130515 '        if(d) {\r\n'
20130515 '            if(!(this.dateValue instanceof Date)) {\r\n'
20130515 '                this.initDateValue();\r\n'
20130515 '                if(!this.tf.getValue()) {\r\n'
20130515 '                    this.setTime(this.dateValue);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            this.dateValue.setMonth(0); // because of leap years\r\n'
20130515 '            this.dateValue.setFullYear(d.getFullYear());\r\n'
20130515 '            this.dateValue.setMonth(d.getMonth(), d.getDate());\r\n'
20130515 '//            this.dateValue.setDate(d.getDate());\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            this.dateValue = '';\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '        }\r\n'
20130515 '    } // eo function updateDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Updates the time part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateTime:function() {\r\n'
20130515 '        var t = this.tf.getValue();\r\n'
20130515 '        if(t && !(t instanceof Date)) {\r\n'
20130515 '            t = Date.parseDate(t, this.tf.format);\r\n'
20130515 '        }\r\n'
20130515 '        if(t && !this.df.getValue()) {\r\n'
20130515 '            this.initDateValue();\r\n'
20130515 '            this.setDate(this.dateValue);\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dateValue instanceof Date) {\r\n'
20130515 '            if(t) {\r\n'
20130515 '                this.dateValue.setHours(t.getHours());\r\n'
20130515 '                this.dateValue.setMinutes(t.getMinutes());\r\n'
20130515 '                this.dateValue.setSeconds(t.getSeconds());\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.dateValue.setHours(0);\r\n'
20130515 '                this.dateValue.setMinutes(0);\r\n'
20130515 '                this.dateValue.setSeconds(0);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function updateTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the underlying hidden field value\r\n'
20130515 '     */\r\n'
20130515 '    ,updateHidden:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 "            var value = this.dateValue instanceof Date ? this.dateValue.format(this.hiddenFormat) : '';\r\n"
20130515 '            this.el.dom.value = value;\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates all of Date, Time and Hidden\r\n'
20130515 '     */\r\n'
20130515 '    ,updateValue:function() {\r\n'
20130515 '\r\n'
20130515 '        this.updateDate();\r\n'
20130515 '        this.updateTime();\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        return;\r\n'
20130515 '    } // eo function updateValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * calls validate methods of DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,validate:function() {\r\n'
20130515 '        return this.df.validate() && this.tf.validate();\r\n'
20130515 '    } // eo function validate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns renderer suitable to render this field\r\n'
20130515 '     * @param {Object} Column model config\r\n'
20130515 '     */\r\n'
20130515 '    ,renderer: function(field) {\r\n'
20130515 '        var format = field.editor.dateFormat || Ext.ux.form.DateTime.prototype.dateFormat;\r\n'
20130515 "        format += ' ' + (field.editor.timeFormat || Ext.ux.form.DateTime.prototype.timeFormat);\r\n"
20130515 '        var renderer = function(val) {\r\n'
20130515 '          No Lino in response
Retry userdocs/gen/screenshots/fr/index.jpg (3 attempts left)
  var retval = Ext.util.Format.date(val, format);\r\n'
20130515 '            return retval;\r\n'
20130515 '        };\r\n'
20130515 '        return renderer;\r\n'
20130515 '    } // eo function renderer\r\n'
20130515 '    // }}}\r\n'
20130515 '\r\n'
20130515 '}); // eo extend\r\n'
20130515 '\r\n'
20130515 '// register xtype\r\n'
20130515 "Ext.reg('xdatetime', Ext.ux.form.DateTime);\r\n"
20130515 '\r\n'
20130515 '// eof'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:26 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 731\r\nContent-Type: image/png\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '\x89PNG\r\n'
20130515 '\x1a\n'
20130515 '\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xffa\x00\x00\x00\x04gAMA\x00\x00\xaf\xc87\x05\x8a\xe9\x00\x00\x00\x19tEXtSoftware\x00Adobe ImageReadyq\xc9e<\x00\x00\x02mIDAT8\xcb\x8d\x93\xdfKSa\x18\xc7\xcf]\xf8w8o\xc4\xff H\x98\xd9*\xad\x81\x82\xcc\x0ba\x87\xe5\x8d\x81x\xa1\xc1\x06\x1b\xd8*\x18\xbaA\xb0\xb1\xd4K\xa1\x85\x16A\xb4@\x86\xac\xdc\xd9\x0fu"\xba\xd5\x86XK\xab9\xcb\xe5<\x9b\xdby\xb7\xb3}{\xcf[3\x073:\xf0\xb98\xef\xf3}>\xe7y^8\x1c\x00\xae\xceU\xf3;\xfd\xad\xa9\x88O;\x1d\xa9Q\xa0\xb5GJ\xda\xe9\xd5R\xaf-X\xbb|Op\x9e\xcf\xd6ix\xb9\xf1H(\x1f\x89%\xfc,H\xc8\xe6\x7fs$JH\xa4E\x98_\xed\xc3\xf0x\xa7x\xe5\xee\xebK\x17\n'
20130515 'zm\xa1\xe2\xc9)\xc1\xc6\x17\x99RA\xe43\xc1\xca\xae\x04\xa9R\xc5FZ\xc6\x837\xfbP\x1b\xfdO/\x14\xf4\xd8B%E\xb0I\x05\x9b_e\xac\xed\x95!|$H\x1d\x16\xa0Lvx|\x8an\xcbJ\xa5\xa9`rr\xb2\xa5\xc7\x16$\xb9\x02A\x8c~-vP\xfd3E\x19\xbe\x0f\xa7\xf0\xc6\xf3\xc8\xd1\xd5\xae\xdd\x0f\x10\xbd^\xdf\xd2 \xa0\xcd\x06J\x9e^\x16\x8e\xa9 qP\xc3{*\xd8\xa6\xa2\xe8^\x85\xad\xb1\xbcS\xa4\xb52\xae[\x05\x0c\x0e\x0e\xe6\xfb\xfb\xfb\rL@\x1b\xbbggg\x11\x8dFq{*\x8c,\x15$35$(\xb1oUl\xd1U\xc2t\x8a\x00]%K\x057\x1f\x86\x11\x08\x040>>\x0e\x8dF\xd3\xad\x08\xb6\xe9\x83L&\x03\xb3\xd9\xfc_(YA\x10000\xb0\xab\x08\x88,\xcbPX__\x87(\x8a\xff$\x14\n'
20130515 '\xa1\x9e\x1f\x1b\x1b\xabq\x16\x8b\x05\x84\x10\xc6\xe2\xe2"R\xa9\x14\x135C\xa9\xcd\xcf\xcf\x9f\xe5y\x9e\x07g2\x99\x90H$\x18n\xb7\x1b\xc9d\x12~\xbf\xbf)J\xc6\xe1p\x9c\xe5;;;\xc1MLL\xc0\xe7\xf31\xecv;\xe2\xf18\x96\x96\x96\x9a\x12\x8b\xc5`\xb5Z\xcf\xf2\xed\xed\xed\xe0\xe8\x1e\xf0z\xbd\x0c\x97\xcb\x05z\'\x0c\xa3\xd1\x88\xd1\xd1Q6f__\x1f\xba\xba\xba\xa0V\xab\xd9Y=\xdf\xd6\xd6\x06ndd\xa4\xea\xf1x\xd8\x81\xd2\xb8\xf0\xfc%\x96\xdf\x06\x9b\xf2l\xe1\x05:::Xvnn\x0e\xad\xad\xad\xe0\x0c\x06\xc3\xcc\xd0\xd0\xd0\xb6N\xa7\x03\xef\n'
20130515 '\xa3X"8:!\xf8A9\xccIHgK\xd8\xfb^\xc0\xa7\x8c\x88\xa2T\x06\xef\x0cC\xa5R)\xcd[\x14S\xc3\xbf\xc0\xbb"\xd5\xe1\'k\x18v\xff\xe5\x0ec\x95\xa1\xd4xg\xa4z\xbe\xe7\x17\xbb\x12\x04\xc8\xac\xfe[\x8d\x00\x00\x00\x00IEND\xaeB`\x82'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:26 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "data": { "coming_reminders": "<div class=\\"htmlText\\" style=\\"margin:5px\\"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 \\u00e0 09:40 [Draft]&nbsp;: Souper (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 116 })\\">AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 \\u00e0 10:20 [Communiqu\\u00e9]&nbsp;: Petit-d\\u00e9jeuner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 117 })\\">BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 \\u00e0 11:10 [Planif\\u00e9]&nbsp;: Rencontre (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 118 })\\">COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 \\u00e0 11:10 [Propos\\u00e9]&nbsp;: Interview (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 124 })\\">DOBBELSTEIN Doroth\\u00e9e (124)</a>)</li><li>Event #75 \\u00e0 13:30 [Draft]&nbsp;: Diner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 125 })\\">ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 \\u00e0 08:30 [Communiqu\\u00e9]&nbsp;: Souper (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 126 })\\">EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 \\u00e0 09:40 [Planif\\u00e9]&nbsp;: Petit-d\\u00e9jeuner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 127 })\\">EVERS Eberhart (127)</a>)</li></ul></div>", "welcome": "<div class=\\"htmlText\\" style=\\"margin:5px\\"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href=\\"javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ &quot;param_values&quot;: { &quot;unclear&quot;: true, &quot;dates_from&quot;: &quot;15.05.2013&quot;, &quot;stateHidden&quot;: null, &quot;assigned_toHidden&quot;: null, &quot;userHidden&quot;: 6, &quot;state&quot;: null, &quot;user&quot;: &quot;Alicia Allmanns&quot;, &quot;assigned_to&quot;: null, &quot;dates_to&quot;: &quot;16.05.2013&quot; }, &quot;base_params&quot;: {  } })\\">2 rendez-vous &#224; clarifier qui s\'approchent.</a></li></ul></div>", "missed_reminders": "<div class=\\"htmlText\\" style=\\"margin:5px\\"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 \\u00e0 08:30 [Propos\\u00e9]&nbsp;: Diner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 112 })\\">SAFFRE Luc (112)</a>)</li></ul></div>", "quick_links": "<p>Quick Links: <a href=\\"javascript:Lino.pcsw.Clients.detail.run(\'ext-comp-1081\')\\" title=\\"Open a detail window on this record\\">D&#233;tail Clients</a> <a href=\\"javascript:Lino.cal.CalendarPanel.grid.run(\'ext-comp-1081\')\\">Calendrier</a> <a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(\'ext-comp-1081\')\\">Clients</a> <a href=\\"javascript:Lino.isip.MyContracts.grid.run(\'ext-comp-1081\')\\">PIISs</a> <a href=\\"javascript:Lino.jobs.MyContracts.grid.run(\'ext-comp-1081\')\\">Contrats de travail</a></p>", "UsersWithClients": "<table bgcolor=\\"#ffffff\\" cellspacing=\\"3px\\" width=\\"100%\\"><thead><tr><th align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"10\\"><a href=\\"/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D\\">Accompagnant</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D\\">Bilan</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D\\">Formation</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D\\">Recherche</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D\\">Travail</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D\\">Standby</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D\\">Dossiers complets</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D\\">Clients actifs</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D\\">Total</a></th></tr></thead><tbody><tr><td align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><b>Alicia Allmanns</b></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" /><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" /><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Recherche&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 3, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">2</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Travail&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 4, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">2</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Standby&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 5, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;cl'
20130515 'ient_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">1</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: true, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: true, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: null, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">7</a></td></tr><tr><td align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><b>Hubert Huppertz</b></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Bilan&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 1, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Formation&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 2, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Recherche&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 3, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Travail&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 4, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Standby&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 5, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;p'
20130515 'aram_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: true, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">10</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: true, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">13</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: null, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">23</a></td></tr><tr><td align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><b>M&#233;lanie M&#233;lard</b></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Bilan&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 1, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Formation&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 2, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Recherche&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 3, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Travail&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 4, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">2</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Standby&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 5, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden'
20130515 '&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: true, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byLino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.lino.Home.show.run(null,{ "record_id": -99998 })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen50" style="display: none; "></div><div id="ext-comp-1098" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-header x-unselectable" id="ext-gen46" style="-webkit-user-select: none; "><span class="x-window-header-text"></span></div><div class="x-window-bwrap" id="ext-gen47"><div class="x-window-body" id="ext-gen48" style="width: 1018px; height: 711px; "><div id="ext-comp-1081" class="x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen52"><form class="x-panel-body x-panel-body-noheader x-form" method="POST" id="ext-gen45" style="width: 1012px; height: 682px; "><div id="ext-comp-1093" class=" x-panel x-panel-noborder" style="width: 1012px; "><div class="x-panel-tl"><div class="x-panel-tr"><div class="x-panel-tc"></div></div></div><div class="x-panel-bwrap" id="ext-gen58"><div class="x-panel-ml"><div class="x-panel-mr"><div class="x-panel-mc" id="ext-gen61"><div class="x-panel-body x-panel-body-noborder x-box-layout-ct" id="ext-gen59" style="width: 996px; height: 669px; "><div class="x-box-inner" id="ext-gen63" style="width: 996px; height: 669px; "><div id="ext-comp-1083" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-panel-body-noheader" id="ext-gen65" style="overflow-x: hidden; width: 992px; height: 21px; "><div id="ext-comp-1082" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 21px; "><p>Quick Links: <a href="javascript:Lino.pcsw.Clients.detail.run('ext-comp-1081')" title="Open a detail window on this record">Détail Clients</a> <a href="javascript:Lino.cal.CalendarPanel.grid.run('ext-comp-1081')">Calendrier</a> <a href="javascript:Lino.pcsw.IntegClients.grid.run('ext-comp-1081')">Clients</a> <a href="javascript:Lino.isip.MyContracts.grid.run('ext-comp-1081')">PIISs</a> <a href="javascript:Lino.jobs.MyContracts.grid.run('ext-comp-1081')">Contrats de travail</a></p></div></div></div></div><div id="ext-comp-1085" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 21px; "><div class="x-panel-header x-unselectable" id="ext-gen67" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen70">Bienvenue</span></div><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body" id="ext-gen69" style="overflow-x: hidden; width: 992px; height: 43px; "><div id="ext-comp-1084" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 43px; "><div class="htmlText" style="margin:5px"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href='javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ "param_values": { "unclear": true, "dates_from": "15.05.2013", "stateHidden": null, "assigned_toHidden": null, "userHidden": 6, "state": null, "user": "Alicia Allmanns", "assigned_to": null, "dates_to": "16.05.2013" }, "base_params": {  } })'>2 rendez-vous à clarifier qui s'approchent.</a></li></ul></div></div></div></div></div><div id="ext-comp-1087" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 90px; "><div class="x-panel-header x-unselectable" id="ext-gen72" style="-webkit-user-select: none; "><div class="x-tool x-tool-up" id="ext-gen75">&nbsp;</div><span class="x-panel-header-text" id="ext-gen76">Agents et leurs clients</span></div><div class="x-panel-bwrap" id="ext-gen73"><div class="x-panel-body" id="ext-gen74" style="overflow-x: hidden; width: 992px; height: 165px; "><div id="ext-comp-1086" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 165px; "><table bgcolor="#ffffff" cellspacing="3px" width="100%"><thead><tr><th align="left" bgcolor="#eeeeee" valign="top" width="10"><a href="/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Accompagnant</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Bilan</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Formation</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Recherche</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Travail</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Standby</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Dossiers complets</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Clients actifs</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Total</a></th></tr></thead><tbody><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Alicia Allmanns</b></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>1</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>7</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Hubert Huppertz</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>10</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>23</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Mélanie Mélard</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>22</a></td></tr></tbody></table></div></div></div></div><div id="ext-comp-1092" class=" x-panel x-panel-noborder x-box-item" style="width: 996px; left: 0px; top: 281px; "><div class="x-panel-bwrap" id="ext-gen78"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-box-layout-ct" id="ext-gen79" style="width: 992px; height: 388px; "><div class="x-box-inner" id="ext-gen81" style="width: 992px; height: 388px; "><div id="ext-comp-1089" class="x-panel x-box-item" style="width: 496px; left: 0px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen82" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen85">Rappels à venir</span></div><div class="x-panel-bwrap" id="ext-gen83"><div class="x-panel-body" id="ext-gen84" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1088" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 à 09:40 [Draft]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 116 })'>AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 à 10:20 [Communiqué]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 117 })'>BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 à 11:10 [Planifé]&nbsp;: Rencontre (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 118 })'>COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 à 11:10 [Proposé]&nbsp;: Interview (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 124 })'>DOBBELSTEIN Dorothée (124)</a>)</li><li>Event #75 à 13:30 [Draft]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 125 })'>ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 à 08:30 [Communiqué]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 126 })'>EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 à 09:40 [Planifé]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 127 })'>EVERS Eberhart (127)</a>)</li></ul></div></div></div></div></div><div id="ext-comp-1091" class="x-panel x-box-item" style="width: 496px; left: 496px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen87" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen90">Rappels ratés</span></div><div class="x-panel-bwrap" id="ext-gen88"><div class="x-panel-body" id="ext-gen89" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1090" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 à 08:30 [Proposé]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 112 })'>SAFFRE Luc (112)</a>)</li></ul></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-panel-bl x-panel-nofooter" id="ext-gen60"><div class="x-panel-br"><div class="x-panel-bc"></div></div></div></div></div></form><div class="x-panel-bbar" id="ext-gen53" style="width: 1018px; "><div id="ext-comp-1097" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1012px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen56"><table id="ext-comp-1094" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen57" class=" x-btn-text x-tbar-print">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen49">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen92" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen93" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen94" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen95" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen96" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen97" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen98" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen99" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1098-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/fr/index.jpg (2 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.lino.Home.show.run(null,{ "record_id": -99998 })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen50" style="display: none; "></div><div id="ext-comp-1098" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-header x-unselectable" id="ext-gen46" style="-webkit-user-select: none; "><span class="x-window-header-text"></span></div><div class="x-window-bwrap" id="ext-gen47"><div class="x-window-body" id="ext-gen48" style="width: 1018px; height: 711px; "><div id="ext-comp-1081" class="x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen52"><form class="x-panel-body x-panel-body-noheader x-form" method="POST" id="ext-gen45" style="width: 1012px; height: 682px; "><div id="ext-comp-1093" class=" x-panel x-panel-noborder" style="width: 1012px; "><div class="x-panel-tl"><div class="x-panel-tr"><div class="x-panel-tc"></div></div></div><div class="x-panel-bwrap" id="ext-gen58"><div class="x-panel-ml"><div class="x-panel-mr"><div class="x-panel-mc" id="ext-gen61"><div class="x-panel-body x-panel-body-noborder x-box-layout-ct" id="ext-gen59" style="width: 996px; height: 669px; "><div class="x-box-inner" id="ext-gen63" style="width: 996px; height: 669px; "><div id="ext-comp-1083" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-panel-body-noheader" id="ext-gen65" style="overflow-x: hidden; width: 992px; height: 21px; "><div id="ext-comp-1082" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 21px; "><p>Quick Links: <a href="javascript:Lino.pcsw.Clients.detail.run('ext-comp-1081')" title="Open a detail window on this record">Détail Clients</a> <a href="javascript:Lino.cal.CalendarPanel.grid.run('ext-comp-1081')">Calendrier</a> <a href="javascript:Lino.pcsw.IntegClients.grid.run('ext-comp-1081')">Clients</a> <a href="javascript:Lino.isip.MyContracts.grid.run('ext-comp-1081')">PIISs</a> <a href="javascript:Lino.jobs.MyContracts.grid.run('ext-comp-1081')">Contrats de travail</a></p></div></div></div></div><div id="ext-comp-1085" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 21px; "><div class="x-panel-header x-unselectable" id="ext-gen67" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen70">Bienvenue</span></div><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body" id="ext-gen69" style="overflow-x: hidden; width: 992px; height: 43px; "><div id="ext-comp-1084" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 43px; "><div class="htmlText" style="margin:5px"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href='javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ "param_values": { "unclear": true, "dates_from": "15.05.2013", "stateHidden": null, "assigned_toHidden": null, "userHidden": 6, "state": null, "user": "Alicia Allmanns", "assigned_to": null, "dates_to": "16.05.2013" }, "base_params": {  } })'>2 rendez-vous à clarifier qui s'approchent.</a></li></ul></div></div></div></div></div><div id="ext-comp-1087" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 90px; "><div class="x-panel-header x-unselectable" id="ext-gen72" style="-webkit-user-select: none; "><div class="x-tool x-tool-up" id="ext-gen75">&nbsp;</div><span class="x-panel-header-text" id="ext-gen76">Agents et leurs clients</span></div><div class="x-panel-bwrap" id="ext-gen73"><div class="x-panel-body" id="ext-gen74" style="overflow-x: hidden; width: 992px; height: 165px; "><div id="ext-comp-1086" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 165px; "><table bgcolor="#ffffff" cellspacing="3px" width="100%"><thead><tr><th align="left" bgcolor="#eeeeee" valign="top" width="10"><a href="/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Accompagnant</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Bilan</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Formation</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Recherche</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Travail</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Standby</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Dossiers complets</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Clients actifs</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Total</a></th></tr></thead><tbody><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Alicia Allmanns</b></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>1</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>7</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Hubert Huppertz</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>10</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>23</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Mélanie Mélard</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>22</a></td></tr></tbody></table></div></div></div></div><div id="ext-comp-1092" class=" x-panel x-panel-noborder x-box-item" style="width: 996px; left: 0px; top: 281px; "><div class="x-panel-bwrap" id="ext-gen78"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-box-layout-ct" id="ext-gen79" style="width: 992px; height: 388px; "><div class="x-box-inner" id="ext-gen81" style="width: 992px; height: 388px; "><div id="ext-comp-1089" class="x-panel x-box-item" style="width: 496px; left: 0px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen82" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen85">Rappels à venir</span></div><div class="x-panel-bwrap" id="ext-gen83"><div class="x-panel-body" id="ext-gen84" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1088" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 à 09:40 [Draft]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 116 })'>AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 à 10:20 [Communiqué]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 117 })'>BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 à 11:10 [Planifé]&nbsp;: Rencontre (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 118 })'>COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 à 11:10 [Proposé]&nbsp;: Interview (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 124 })'>DOBBELSTEIN Dorothée (124)</a>)</li><li>Event #75 à 13:30 [Draft]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 125 })'>ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 à 08:30 [Communiqué]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 126 })'>EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 à 09:40 [Planifé]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 127 })'>EVERS Eberhart (127)</a>)</li></ul></div></div></div></div></div><div id="ext-comp-1091" class="x-panel x-box-item" style="width: 496px; left: 496px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen87" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen90">Rappels ratés</span></div><div class="x-panel-bwrap" id="ext-gen88"><div class="x-panel-body" id="ext-gen89" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1090" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 à 08:30 [Proposé]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 112 })'>SAFFRE Luc (112)</a>)</li></ul></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-panel-bl x-panel-nofooter" id="ext-gen60"><div class="x-panel-br"><div class="x-panel-bc"></div></div></div></div></div></form><div class="x-panel-bbar" id="ext-gen53" style="width: 1018px; "><div id="ext-comp-1097" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1012px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen56"><table id="ext-comp-1094" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen57" class=" x-btn-text x-tbar-print">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen49">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen92" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen93" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen94" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen95" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen96" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen97" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen98" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen99" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1098-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/fr/index.jpg (1 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.lino.Home.show.run(null,{ "record_id": -99998 })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen50" style="display: none; "></div><div id="ext-comp-1098" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-header x-unselectable" id="ext-gen46" style="-webkit-user-select: none; "><span class="x-window-header-text"></span></div><div class="x-window-bwrap" id="ext-gen47"><div class="x-window-body" id="ext-gen48" style="width: 1018px; height: 711px; "><div id="ext-comp-1081" class="x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen52"><form class="x-panel-body x-panel-body-noheader x-form" method="POST" id="ext-gen45" style="width: 1012px; height: 682px; "><div id="ext-comp-1093" class=" x-panel x-panel-noborder" style="width: 1012px; "><div class="x-panel-tl"><div class="x-panel-tr"><div class="x-panel-tc"></div></div></div><div class="x-panel-bwrap" id="ext-gen58"><div class="x-panel-ml"><div class="x-panel-mr"><div class="x-panel-mc" id="ext-gen61"><div class="x-panel-body x-panel-body-noborder x-box-layout-ct" id="ext-gen59" style="width: 996px; height: 669px; "><div class="x-box-inner" id="ext-gen63" style="width: 996px; height: 669px; "><div id="ext-comp-1083" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-panel-body-noheader" id="ext-gen65" style="overflow-x: hidden; width: 992px; height: 21px; "><div id="ext-comp-1082" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 21px; "><p>Quick Links: <a href="javascript:Lino.pcsw.Clients.detail.run('ext-comp-1081')" title="Open a detail window on this record">Détail Clients</a> <a href="javascript:Lino.cal.CalendarPanel.grid.run('ext-comp-1081')">Calendrier</a> <a href="javascript:Lino.pcsw.IntegClients.grid.run('ext-comp-1081')">Clients</a> <a href="javascript:Lino.isip.MyContracts.grid.run('ext-comp-1081')">PIISs</a> <a href="javascript:Lino.jobs.MyContracts.grid.run('ext-comp-1081')">Contrats de travail</a></p></div></div></div></div><div id="ext-comp-1085" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 21px; "><div class="x-panel-header x-unselectable" id="ext-gen67" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen70">Bienvenue</span></div><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body" id="ext-gen69" style="overflow-x: hidden; width: 992px; height: 43px; "><div id="ext-comp-1084" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 43px; "><div class="htmlText" style="margin:5px"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href='javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ "param_values": { "unclear": true, "dates_from": "15.05.2013", "stateHidden": null, "assigned_toHidden": null, "userHidden": 6, "state": null, "user": "Alicia Allmanns", "assigned_to": null, "dates_to": "16.05.2013" }, "base_params": {  } })'>2 rendez-vous à clarifier qui s'approchent.</a></li></ul></div></div></div></div></div><div id="ext-comp-1087" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 90px; "><div class="x-panel-header x-unselectable" id="ext-gen72" style="-webkit-user-select: none; "><div class="x-tool x-tool-up" id="ext-gen75">&nbsp;</div><span class="x-panel-header-text" id="ext-gen76">Agents et leurs clients</span></div><div class="x-panel-bwrap" id="ext-gen73"><div class="x-panel-body" id="ext-gen74" style="overflow-x: hidden; width: 992px; height: 165px; "><div id="ext-comp-1086" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 165px; "><table bgcolor="#ffffff" cellspacing="3px" width="100%"><thead><tr><th align="left" bgcolor="#eeeeee" valign="top" width="10"><a href="/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Accompagnant</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Bilan</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Formation</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Recherche</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Travail</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Standby</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Dossiers complets</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Clients actifs</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb22480c%3E%7D">Total</a></th></tr></thead><tbody><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Alicia Allmanns</b></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>1</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>7</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Hubert Huppertz</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>10</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>23</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Mélanie Mélard</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>22</a></td></tr></tbody></table></div></div></div></div><div id="ext-comp-1092" class=" x-panel x-panel-noborder x-box-item" style="width: 996px; left: 0px; top: 281px; "><div class="x-panel-bwrap" id="ext-gen78"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-box-layout-ct" id="ext-gen79" style="width: 992px; height: 388px; "><div class="x-box-inner" id="ext-gen81" style="width: 992px; height: 388px; "><div id="ext-comp-1089" class="x-panel x-box-item" style="width: 496px; left: 0px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen82" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen85">Rappels à venir</span></div><div class="x-panel-bwrap" id="ext-gen83"><div class="x-panel-body" id="ext-gen84" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1088" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 à 09:40 [Draft]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 116 })'>AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 à 10:20 [Communiqué]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 117 })'>BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 à 11:10 [Planifé]&nbsp;: Rencontre (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 118 })'>COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 à 11:10 [Proposé]&nbsp;: Interview (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 124 })'>DOBBELSTEIN Dorothée (124)</a>)</li><li>Event #75 à 13:30 [Draft]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 125 })'>ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 à 08:30 [Communiqué]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 126 })'>EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 à 09:40 [Planifé]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 127 })'>EVERS Eberhart (127)</a>)</li></ul></div></div></div></div></div><div id="ext-comp-1091" class="x-panel x-box-item" style="width: 496px; left: 496px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen87" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen90">Rappels ratés</span></div><div class="x-panel-bwrap" id="ext-gen88"><div class="x-panel-body" id="ext-gen89" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1090" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 à 08:30 [Proposé]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 112 })'>SAFFRE Luc (112)</a>)</li></ul></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-panel-bl x-panel-nofooter" id="ext-gen60"><div class="x-panel-br"><div class="x-panel-bc"></div></div></div></div></div></form><div class="x-panel-bbar" id="ext-gen53" style="width: 1018px; "><div id="ext-comp-1097" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1012px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen56"><table id="ext-comp-1094" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen57" class=" x-btn-text x-tbar-print">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen49">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen92" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen93" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen94" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen95" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen96" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen97" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen98" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen99" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1098-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Giving up userdocs/gen/screenshots/fr/index.jpg
Rendering to userdocs/gen/screenshots/fr/index.jpg false
Loading http://127.0.0.1:8000/api/cal/CalendarPanel?lng=fr to userdocs/gen/screenshots/fr/cal.CalendarPanel.jpg
Hidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">13</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: true, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">13</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: null, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">22</a></td></tr></tbody></table>", "disabled_fields": { "UsersWithClients": true }, "disabled_actions": {  } }, "id": -99998, "title": "D\\u00e9part" }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:29 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: text/html; charset=utf-8\r\nContent-Language: fr\r\n\r\n'
20130515 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html><head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<title id="title">Lino-Welfare</title>\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css" />\n<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css" />\n<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css" />\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>\n<script type="topened auth!
ext/javascript" src="/media/extensible/extensible-all-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>\n<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>\n<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>\n<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>\n<script language="javascript" type="text/javascript">\ntinymce.init({\n        theme : "advanced"\n        // , mode : "textareas"\n});\n</script>\n<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>\n<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>\n<script type="text/javascript">\nExt.onReady(function(){\nLino.set_subst_user();\nLino.user = { "name": "Alicia Allmanns", "id": 6 };\nLino.main_menu = Lino.main_menu.concat([\'->\',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);\n  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});\n  Lino.viewport.render("body");\nLino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })\n}); // end of onReady()\n</script></head><body>\n<div id="body"></div>\n</body></html>'
20130515 authenticate alicia,1234
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:30 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\nSet-Cookie:  sessionid=e07fxz8yy1dun2ycjnyntdts1a1bln4m; expires=Wed, 29-May-2013 08:45:30 GMT; httponly; Max-Age=1209600; Path=/\r\n\r\n'
20130515 '{ "message": "Now logged in as u\'alicia\'", "success": true }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:30 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Tue, 19 Mar 2013 15:33:52 GMT\r\nContent-Length: 7750\r\nContent-Type: text/css\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\r\n'
20130515 ' Copyright 2009-2013 Luc Saffre\r\n'
20130515 ' This file is part of the Lino project.\r\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \r\n'
20130515 ' it under the terms of the GNU General Public License as published by\r\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\r\n'
20130515 ' (at your option) any later version.\r\n'
20130515 ' Lino is distributed in the hope that it will be useful, \r\n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \r\n'
20130515 ' GNU General Public License for more details.\r\n'
20130515 ' You should have received a copy of the GNU General Public License\r\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'http://stackoverflow.com/questions/2106104/word-wrap-grid-cells-in-ext-js \r\n'
20130515 'e.g. welfare.jobs.NewJobsOverview needs\r\n'
20130515 '*/\r\n'
20130515 '/* \r\n'
20130515 '.x-grid3-cell-inner {\r\n'
20130515 '  /* white-space: normal; changed from nowrap \r\n'
20130515 '  height:18px; \r\n'
20130515 '  overflow:hidden;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-grid3-hd-inner {\r\n'
20130515 '  white-space: normal; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*.lino-phantom-row table.x-grid3-row-table {\r\n'
20130515 '\tcolor: blue; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '.lino-phantom-row td {\r\n'
20130515 '\t/* font-style: italic; */\r\n'
20130515 '\tcolor:white;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-item-disabled, .x-tree-node-disabled, .x-date-disabled\r\n'
20130515 '*/\r\n'
20130515 '.x-item-disabled {\r\n'
20130515 '  color: blue; \r\n'
20130515 '  /*   opacity: 1;  \r\n'
20130515 '  font-weight: bold; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-item-disabled * {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '  /*font-weight: bold !important; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-noicon {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '.x-btn-pressed {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-text {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-menu-active {\r\n'
20130515 "\tcursor: 'wait';\r\n"
20130515 "\tcolor:'red';\r\n"
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* See blog/2011/0603\r\n'
20130515 '*/\r\n'
20130515 '.x-form-item-label{\r\n'
20130515 '    white-space: nowrap; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-form-field { padding: 10px; }\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-panel-body-noheader { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '.x-panel-body { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* TinyMCE specific rules */\r\n'
20130515 '/* \r\n'
20130515 'body.mceContentBody {\r\n'
20130515 '  color: red !important; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 'body.mceNonEditable {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 '\r\n'
20130515 'To display "normal" HTML inside an ExtJS component, \r\n'
20130515 'wrap it into a <div class="htmlText">.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.htmlText {\r\n'
20130515 '\tfont-family: arial,tahoma;\r\n'
20130515 '}\r\n'
20130515 '.htmlText h1 {\r\n'
20130515 '\tfont-size:16px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:12px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText h2 {\r\n'
20130515 '\tfont-size:13px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:10px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText td,th {\r\n'
20130515 '\tpadding:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText p {\r\n'
20130515 '\tmargin-top:0px;\r\n'
20130515 '\tmargin-bottom:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ol {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: decimal; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ul {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: square; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText strong {\r\n'
20130515 '\tfont-weight:bold;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText em {\r\n'
20130515 '\tfont-style: italic;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to http://de.selfhtml.org/css/formate/zentrale.htm\r\n'
20130515 '*/\r\n'
20130515 'table.htmlText tr td {\r\n'
20130515 '\tvertical-align: middle;\r\n'
20130515 '\ttext-align: center;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'The following are \r\n'
20130515 "Alexander Dawson's CSS tooltips\r\n"
20130515 'from <http://sixrevisions.com/css/css-only-tooltips/>,\r\n'
20130515 'adapted for usage in an ExtJS application.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-form-item-label .tooltip {\r\n'
20130515 '\tborder-bottom: 1px dotted #000000; color: #000000; outline: none;\r\n'
20130515 '\tcursor: help; \r\n'
20130515 '\ttext-decoration: none;\r\n'
20130515 '\tposition: relative;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip span {\r\n'
20130515 '\tmargin-left: -999em;\r\n'
20130515 '\tposition: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover span {\r\n'
20130515 '\tborder-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; \r\n'
20130515 '\tbox-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); \r\n'
20130515 '\t-moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);\r\n'
20130515 '\tfont-family: Calibri, Tahoma, Geneva, sans-serif;\r\n'
20130515 '\tposition: absolute; left: 1em; top: 2em; z-index: 99;\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '    white-space: normal; \r\n'
20130515 '\tmargin-left: 0; width: 250px;\r\n'
20130515 '\t\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover img {\r\n'
20130515 '\tborder: 0; margin: -10px 0 0 -55px;\r\n'
20130515 '\tfloat: left; position: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover em {\r\n'
20130515 '\tfont-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold;\r\n'
20130515 '\tdisplay: block; padding: 0.2em 0 0.6em 0;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .classic { padding: 0.8em 1em; }\r\n'
20130515 '.x-form-item-label .custom { padding: 0.5em 0.8em 0.8em 2em; }\r\n'
20130515 '.x-form-item-label * html a:hover { background: transparent; }\r\n'
20130515 '.x-form-item-label .classic {background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '.x-form-item-label .critical { background: #FFCCAA; border: 1px solid #FF3334;\t}\r\n'
20130515 '.x-form-item-label .help { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .info { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .warning { background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 ' 20120229 For css tooltips we need to override some CSS rules of ExtJS.\r\n'
20130515 ' set all overflows \r\n'
20130515 " to 'visible' for CSS tooltips.\r\n"
20130515 " I don't really understand it, and it doesn't yet work,\r\n"
20130515 " but it doesn't seem to  cause any problem.\r\n"
20130515 ' \r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: hidden;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-body .x-panel-body-noheader {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-bwrap {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-box-inner {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-fieldset .x-form-label-top .x-box-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-tip \r\n'
20130515 '  .x-tip-tl\r\n'
20130515 '    .x-tip-tr\r\n'
20130515 '      .x-tip-tc\r\n'
20130515 '        .x-tip-header\r\n'
20130515 '          .x-tip-header-text\r\n'
20130515 '  .x-tip-bwrap\r\n'
20130515 '    .x-tip-ml\r\n'
20130515 '      .x-tip-mr\r\n'
20130515 '        .x-tip-mc\r\n'
20130515 '          .x-tip-body\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: #FFFFAA; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-header-text { border: 0; }\r\n'
20130515 '\r\n'
20130515 '.x-tip div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-ml div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mr div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mc div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-body div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* border: 1px solid #FFAD33;  */\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '.x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/mjames/delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '/*\r\n'
20130515 '.x-item-disabled .x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/default/grid/delete-disabled.gif) !important;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-tbar-new{\r\n'
20130515 '\tbackground-image: url(images/mjames/add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 'ShowDetailAction\r\n'
20130515 '$a.icon_name\r\n'
20130515 '$a.icon_file\r\n'
20130515 '*/\r\n'
20130515 '.x-tbar-detail{\r\n'
20130515 '\tbackground-image: url(images/mjames/application_form.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-save{\r\n'
20130515 '\tbackground-image: url(images/mjames/disk.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-email_add{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-email_send{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_go.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-create-postings{\r\n'
20130515 '\tbackground-image: url(images/mjames/script_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-calendar{\r\n'
20130515 '\tbackground-image: url(images/mjames/calendar.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-print{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-clearcache{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer_delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-duplicate{\r\n'
20130515 '\tbackground-image: url(images/mjames/arrow_divide.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-pdf{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_white_acrobat.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-html{\r\n'
20130515 '\tbackground-image: url(images/mjames/html.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-csv{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_excel.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-vcard{\r\n'
20130515 '\tbackground-image: url(images/mjames/vcard.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-done{\r\n'
20130515 '\tbackground-image: url(images/mjames/accept.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-parameters{\r\n'
20130515 '\tbackground-image: url(images/mjames/database_gear.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to Animal in \r\n'
20130515 'http://www.sencha.com/forum/showthread.php?70195-NumberField-and-Right-Alignment\r\n'
20130515 '*/\r\n'
20130515 '.x-form-num-field {\r\n'
20130515 '    text-align: right;\r\n'
20130515 '}'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:30 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 359788\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible\n'
20130515 ' * Extensible core utilities and functions.\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 '(function(){\n'
20130515 '    \n'
20130515 "    Ext.ns('Ext.ensible.ux', 'Ext.ensible.sample', 'Ext.ensible.plugins', 'Ext.ensible.cal');\n"
20130515 '    \n'
20130515 '    Ext.apply(Ext.ensible, {\n'
20130515 '        /**\n'
20130515 '         * The version of the framework\n'
20130515 '         * @type String\n'
20130515 '         */\n'
20130515 "        version : '1.0.1',\n"
20130515 '        /**\n'
20130515 '         * The version of the framework, broken out into its numeric parts. This returns an\n'
20130515 '         * object that contains the following integer properties: major, minor and patch.\n'
20130515 '         * @type Object\n'
20130515 '         */\n'
20130515 '        versionDetails : {\n'
20130515 '            major: 1,\n'
20130515 '            minor: 0,\n'
20130515 '            patch: 1\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        hasBorderRadius : !(Ext.isIE || Ext.isOpera),\n'
20130515 '        \n'
20130515 '        log : function(s){\n'
20130515 '            //console.log(s);\n'
20130515 '        },\n'
20130515 '    \n'
20130515 '       /**\n'
20130515 '        * @class Ext.ensible.cal.Date\n'
20130515 '        * @extends Object\n'
20130515 '        * <p>Contains utility date functions used by the calendar components.</p>\n'
20130515 '        * @singleton\n'
20130515 '        */\n'
20130515 '\t    Date : {\n'
20130515 '            /**\n'
20130515 '             * Determines whether times used throughout all Extensible components should be displayed as\n'
20130515 '             * 12 hour times with am/pm (default) or 24 hour / military format. Note that some locale files\n'
20130515 '             * may override this value by default.\n'
20130515 '             * @type Boolean\n'
20130515 '             * @property use24HourTime\n'
20130515 '             */\n'
20130515 '            use24HourTime : false,\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns the time duration between two dates in the specified units. For finding the number\n'
20130515 '             * of calendar days (ignoring time) between two dates use {@link Ext.ensible.Date.diffDays diffDays} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 "             * @param {String} unit (optional) The time unit to return. Valid values are 'ms' (milliseconds, the default), 's' (seconds),\n"
20130515 "             * 'm' (minutes) or 'h' (hours).\n"
20130515 '             * @return {Number} The time difference between the dates in the units specified by the unit param\n'
20130515 '             */\n'
20130515 '            diff : function(start, end, unit){\n'
20130515 '                var denom = 1,\n'
20130515 '                    diff = end.getTime() - start.getTime();\n'
20130515 '                \n'
20130515 "                if(unit == 's'){ \n"
20130515 '                    denom = 1000;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'm'){\n"
20130515 '                    denom = 1000*60;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'h'){\n"
20130515 '                    denom = 1000*60*60;\n'
20130515 '                }\n'
20130515 '                return Math.round(diff/denom);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Calculates the number of calendar days between two dates, ignoring time values. \n'
20130515 '             * A time span that starts at 11pm (23:00) on Monday and ends at 1am (01:00) on Wednesday is \n'
20130515 '             * only 26 total hours, but it spans 3 calendar days, so this function would return 3. For the\n'
20130515 '             * exact time difference, use {@link Ext.ensible.Date.diff diff} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 '             * @return {Number} The number of calendar days difference between the dates\n'
20130515 '             */\n'
20130515 '            diffDays : function(start, end){\n'
20130515 '                var day = 1000*60*60*24,\n'
20130515 '                    diff = end.clearTime(true).getTime() - start.clearTime(true).getTime();\n'
20130515 '                \n'
20130515 '                return Math.ceil(diff/day);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 "             * Copies the time value from one date object into another without altering the target's \n"
20130515 '             * date value. This function returns a new Date instance without modifying either original value.\n'
20130515 '             * @param {Date} fromDt The original date from which to copy the time\n'
20130515 '             * @param {Date} toDt The target date to copy the time to\n'
20130515 '             * @return {Date} The new date/time value\n'
20130515 '             */\n'
20130515 '            copyTime : function(fromDt, toDt){\n'
20130515 '                var dt = toDt.clone();\n'
20130515 '                dt.setHours(\n'
20130515 '                    fromDt.getHours(),\n'
20130515 '                    fromDt.getMinutes(),\n'
20130515 '                    fromDt.getSeconds(),\n'
20130515 '                    fromDt.getMilliseconds());\n'
20130515 '                \n'
20130515 '                return dt;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Compares two dates and returns a value indicating how they relate to each other.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Boolean} precise (optional) If true, the milliseconds component is included in the comparison,\n'
20130515 '             * else it is ignored (the default).\n'
20130515 '             * @return {Number} The number of milliseconds difference between the two dates. If the dates are equal\n'
20130515 '             * this will be 0.  If the first date is earlier the return value will be positive, and if the second date\n'
20130515 '             * is earlier the value will be negative.\n'
20130515 '             */\n'
20130515 '            compare : function(dt1, dt2, precise){\n'
20130515 '                var d1 = dt1, d2 = dt2;\n'
20130515 '                if(precise !== true){\n'
20130515 '                    d1 = dt1.clone();\n'
20130515 '                    d1.setMilliseconds(0);\n'
20130515 '                    d2 = dt2.clone();\n'
20130515 '                    d2.setMilliseconds(0);\n'
20130515 '                }\n'
20130515 '                return d2.getTime() - d1.getTime();\n'
20130515 '            },\n'
20130515 '\n'
20130515 '\t        // private helper fn\n'
20130515 '\t        maxOrMin : function(max){\n'
20130515 '\t            var dt = (max ? 0 : Number.MAX_VALUE), i = 0, args = arguments[1], ln = args.length;\n'
20130515 '\t            for(; i < ln; i++){\n'
20130515 "\t                dt = Math[max ? 'max' : 'min'](dt, args[i].getTime());\n"
20130515 '\t            }\n'
20130515 '\t            return new Date(dt);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the maximum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the latest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmax : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [true, arguments]);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the minimum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the earliest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmin : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [false, arguments]);\n'
20130515 '\t        },\n'
20130515 '            \n'
20130515 '            isInRange : function(dt, rangeStart, rangeEnd) {\n'
20130515 '                return  (dt >= rangeStart && dt <= rangeEnd);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if two date ranges overlap (either one starts or ends within the other, or one completely\n'
20130515 '             * overlaps the start and end of the other), else false if they do not.\n'
20130515 '             * @param {Date} start1 The start date of range 1\n'
20130515 '             * @param {Date} end1   The end date of range 1\n'
20130515 '             * @param {Date} start2 The start date of range 2\n'
20130515 '             * @param {Date} end2   The end date of range 2\n'
20130515 '             * @return {Booelan} True if the ranges overlap, else false\n'
20130515 '             */\n'
20130515 '            rangesOverlap : function(start1, end1, start2, end2){\n'
20130515 '                var startsInRange = (start1 >= start2 && start1 <= end2),\n'
20130515 '                    endsInRange = (end1 >= start2 && end1 <= end2),\n'
20130515 '                    spansRange = (start1 <= start2 && end1 >= end2);\n'
20130515 '                \n'
20130515 '                return (startsInRange || endsInRange || spansRange);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date is a Saturday or Sunday, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a weekend day, else false \n'
20130515 '             */\n'
20130515 '            isWeekend : function(dt){\n'
20130515 '                return dt.getDay() % 6 === 0;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date falls on a Monday through Fridey, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a week day, else false \n'
20130515 '             */\n'
20130515 '            isWeekday : function(dt){\n'
20130515 '                return dt.getDay() % 6 !== 0;\n'
20130515 '            }\n'
20130515 '\t    }\n'
20130515 '    });\n'
20130515 '})();\n'
20130515 '//TODO: remove this once we are synced to trunk again\n'
20130515 'Ext.override(Ext.XTemplate, {\n'
20130515 '    applySubTemplate : function(id, values, parent, xindex, xcount){\n'
20130515 '        var me = this,\n'
20130515 '            len,\n'
20130515 '            t = me.tpls[id],\n'
20130515 '            vs,\n'
20130515 '            buf = [];\n'
20130515 '        if ((t.test && !t.test.call(me, values, parent, xindex, xcount)) ||\n'
20130515 '            (t.exec && t.exec.call(me, values, parent, xindex, xcount))) {\n'
20130515 "            return '';\n"
20130515 '        }\n'
20130515 '        vs = t.target ? t.target.call(me, values, parent) : values;\n'
20130515 '        len = vs.length;\n'
20130515 '        parent = t.target ? values : parent;\n'
20130515 '        if(t.target && Ext.isArray(vs)){\n'
20130515 '            Ext.each(vs, function(v, i) {\n'
20130515 '                buf[buf.length] = t.compiled.call(me, v, parent, i+1, len);\n'
20130515 '            });\n'
20130515 "            return buf.join('');\n"
20130515 '        }\n'
20130515 '        return t.compiled.call(me, vs, parent, xindex, xcount);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This fix is in Ext 3.2 */\n'
20130515 'Ext.override(Ext.form.DateField, {\n'
20130515 '\t\n'
20130515 '\taltFormats : "m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j",\n'
20130515 '\t\n'
20130515 '    safeParse : function(value, format) {\n'
20130515 "        if (/[gGhH]/.test(format.replace(/(\\\\.)/g, ''))) {\n"
20130515 '            // if parse format contains hour information, no DST adjustment is necessary\n'
20130515 '            return Date.parseDate(value, format);\n'
20130515 '        } else {\n'
20130515 '            // set time to 12 noon, then clear the time\n'
20130515 "            var parsedDate = Date.parseDate(value + ' ' + this.initTime, format + ' ' + this.initTimeFormat);\n"
20130515 '            if (parsedDate) return parsedDate.clearTime();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This override applies to the current 3.3.x line to fix duplicate remote actions */\n'
20130515 'Ext.override(Ext.data.Store, {\n'
20130515 '    add : function(records) {\n'
20130515 '        var i, record, index;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        if (records.length < 1) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        index = this.data.length;\n'
20130515 '        this.data.addAll(records);\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    insert : function(index, records) {\n'
20130515 '        var i, record;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            this.data.insert(index + i, record);\n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // Interestingly, this method has no changes, but is included here because without it a very strange\n'
20130515 '    // race condition occurs. This method is used as a callback internally for the add event which\n'
20130515 '    // is fired from the add method (overridden above). As long as both methods are here everything is OK\n'
20130515 '    // but with createRecords removed and defaulted to the original class you end up with duplicate copies\n'
20130515 "    // of added records in the store's modified collection (since both methods add to it). Not sure exactly\n"
20130515 '    // how that happens, but including this fixes it.\n'
20130515 '    createRecords : function(store, records, index) {\n'
20130515 '        var modified = this.modified,\n'
20130515 '            length   = records.length,\n'
20130515 '            record, i;\n'
20130515 '        \n'
20130515 '        for (i = 0; i < length; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            if (record.phantom && record.isValid()) {\n'
20130515 '                record.markDirty();  // <-- Mark new records dirty (Ed: why?)\n'
20130515 '                \n'
20130515 '                //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '                if (modified.indexOf(record) == -1) {\n'
20130515 '                    modified.push(record);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if (this.autoSave === true) {\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '// Have to add in full API support so that EventMemoryProxy can do its thing.\n'
20130515 "// Won't hurt normal read-only MemoryProxy read actions.\n"
20130515 'Ext.data.MemoryProxy = function(data){\n'
20130515 '    var api = {};\n'
20130515 '    api[Ext.data.Api.actions.read] = true;\n'
20130515 '    api[Ext.data.Api.actions.create] = true;\n'
20130515 '    api[Ext.data.Api.actions.update] = true;\n'
20130515 '    api[Ext.data.Api.actions.destroy] = true;\n'
20130515 '    Ext.data.MemoryProxy.superclass.constructor.call(this, {\n'
20130515 '        api: api\n'
20130515 '    });\n'
20130515 '    this.data = data;\n'
20130515 '};\n'
20130515 'Ext.extend(Ext.data.MemoryProxy, Ext.data.DataProxy, {\n'
20130515 '    doRequest : function(action, rs, params, reader, callback, scope, arg) {\n'
20130515 '        callback.call(scope, null, arg, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "// This heinous override is required to fix IE9's removal of createContextualFragment.\n"
20130515 "// Unfortunately since DomHelper is a singleton there's not much of a way around it.\n"
20130515 'Ext.apply(Ext.DomHelper,\n'
20130515 'function(){\n'
20130515 '    var tempTableEl = null,\n'
20130515 '        emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,\n'
20130515 '        tableRe = /^table|tbody|tr|td$/i,\n'
20130515 '        confRe = /tag|children|cn|html$/i,\n'
20130515 '        tableElRe = /td|tr|tbody/i,\n'
20130515 '        cssRe = /([a-z0-9-]+)\\s*:\\s*([^;\\s]+(?:\\s*[^;\\s]+)*);?/gi,\n'
20130515 '        endRe = /end/i,\n'
20130515 '        pub,\n'
20130515 '        // kill repeat to save bytes\n'
20130515 "        afterbegin = 'afterbegin',\n"
20130515 "        afterend = 'afterend',\n"
20130515 "        beforebegin = 'beforebegin',\n"
20130515 "        beforeend = 'beforeend',\n"
20130515 "        ts = '<table>',\n"
20130515 "        te = '</table>',\n"
20130515 "        tbs = ts+'<tbody>',\n"
20130515 "        tbe = '</tbody>'+te,\n"
20130515 "        trs = tbs + '<tr>',\n"
20130515 "        tre = '</tr>'+tbe;\n"
20130515 '\n'
20130515 '    // private\n'
20130515 '    function doInsert(el, o, returnElement, pos, sibling, append){\n'
20130515 '        var newNode = pub.insertHtml(pos, Ext.getDom(el), createHtml(o));\n'
20130515 '        return returnElement ? Ext.get(newNode, true) : newNode;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // build as innerHTML where available\n'
20130515 '    function createHtml(o){\n'
20130515 "        var b = '',\n"
20130515 '            attr,\n'
20130515 '            val,\n'
20130515 '            key,\n'
20130515 '            cn;\n'
20130515 '\n'
20130515 '        if(typeof o == "string"){\n'
20130515 '            b = o;\n'
20130515 '        } else if (Ext.isArray(o)) {\n'
20130515 '            for (var i=0; i < o.length; i++) {\n'
20130515 '                if(o[i]) {\n'
20130515 '                    b += createHtml(o[i]);\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '        } else {\n'
20130515 "            b += '<' + (o.tag = o.tag || 'div');\n"
20130515 '            for (attr in o) {\n'
20130515 '                val = o[attr];\n'
20130515 '                if(!confRe.test(attr)){\n'
20130515 '                    if (typeof val == "object") {\n'
20130515 '                        b += \' \' + attr + \'="\';\n'
20130515 '                        for (key in val) {\n'
20130515 "                            b += key + ':' + val[key] + ';';\n"
20130515 '                        };\n'
20130515 '                        b += \'"\';\n'
20130515 '                    }else{\n'
20130515 '                        b += \' \' + ({cls : \'class\', htmlFor : \'for\'}[attr] || attr) + \'="\' + val + \'"\';\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '            // Now either just close the tag or try to add children and close the tag.\n'
20130515 '            if (emptyTags.test(o.tag)) {\n'
20130515 "                b += '/>';\n"
20130515 '            } else {\n'
20130515 "                b += '>';\n"
20130515 '                if ((cn = o.children || o.cn)) {\n'
20130515 '                    b += createHtml(cn);\n'
20130515 '                } else if(o.html){\n'
20130515 '                    b += o.html;\n'
20130515 '                }\n'
20130515 "                b += '</' + o.tag + '>';\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return b;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    function ieTable(depth, s, h, e){\n'
20130515 "        tempTableEl.innerHTML = [s, h, e].join('');\n"
20130515 '        var i = -1,\n'
20130515 '            el = tempTableEl,\n'
20130515 '            ns;\n'
20130515 '        while(++i < depth){\n'
20130515 '            el = el.firstChild;\n'
20130515 '        }\n'
20130515 '//      If the result is multiple siblings, then encapsulate them into one fragment.\n'
20130515 '        if(ns = el.nextSibling){\n'
20130515 '            var df = document.createDocumentFragment();\n'
20130515 '            while(el){\n'
20130515 '                ns = el.nextSibling;\n'
20130515 '                df.appendChild(el);\n'
20130515 '                el = ns;\n'
20130515 '            }\n'
20130515 '            el = df;\n'
20130515 '        }\n'
20130515 '        return el;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @ignore\n'
20130515 "     * Nasty code for IE's broken table implementation\n"
20130515 '     */\n'
20130515 '    function insertIntoTable(tag, where, el, html) {\n'
20130515 '        var node,\n'
20130515 '            before;\n'
20130515 '\n'
20130515 "        tempTableEl = tempTableEl || document.createElement('div');\n"
20130515 '\n'
20130515 "        if(tag == 'td' && (where == afterbegin || where == beforeend) ||\n"
20130515 '           !tableElRe.test(tag) && (where == beforebegin || where == afterend)) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        before = where == beforebegin ? el :\n'
20130515 '                 where == afterend ? el.nextSibling :\n'
20130515 '                 where == afterbegin ? el.firstChild : null;\n'
20130515 '\n'
20130515 '        if (where == beforebegin || where == afterend) {\n'
20130515 '            el = el.parentNode;\n'
20130515 '        }\n'
20130515 '\n'
20130515 "        if (tag == 'td' || (tag == 'tr' && (where == beforeend || where == afterbegin))) {\n"
20130515 '            node = ieTable(4, trs, html, tre);\n'
20130515 "        } else if ((tag == 'tbody' && (where == beforeend || where == afterbegin)) ||\n"
20130515 "                   (tag == 'tr' && (where == beforebegin || where == afterend))) {\n"
20130515 '            node = ieTable(3, tbs, html, tbe);\n'
20130515 '        } else {\n'
20130515 '            node = ieTable(2, ts, html, te);\n'
20130515 '        }\n'
20130515 '        el.insertBefore(node, before);\n'
20130515 '        return node;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '    pub = {\n'
20130515 '        /**\n'
20130515 '         * Returns the markup for the passed Element(s) config.\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @return {String}\n'
20130515 '         */\n'
20130515 '        markup : function(o){\n'
20130515 '            return createHtml(o);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Applies a style specification to an element.\n'
20130515 '         * @param {String/HTMLElement} el The element to apply styles to\n'
20130515 "         * @param {String/Object/Function} styles A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or\n"
20130515 '         * a function which returns such a specification.\n'
20130515 '         */\n'
20130515 '        applyStyles : function(el, styles){\n'
20130515 '            if (styles) {\n'
20130515 '                var matches;\n'
20130515 '\n'
20130515 '                el = Ext.fly(el);\n'
20130515 '                if (typeof styles == "function") {\n'
20130515 '                    styles = styles.call();\n'
20130515 '                }\n'
20130515 '                if (typeof styles == "string") {\n'
20130515 '                    /**\n'
20130515 "                     * Since we're using the g flag on the regex, we need to set the lastIndex.\n"
20130515 '                     * This automatically happens on some implementations, but not others, see:\n'
20130515 '                     * http://stackoverflow.com/questions/2645273/javascript-regular-expression-literal-persists-between-function-calls\n'
20130515 '                     * http://blog.stevenlevithan.com/archives/fixing-javascript-regexp\n'
20130515 '                     */\n'
20130515 '                    cssRe.lastIndex = 0;\n'
20130515 '                    while ((matches = cssRe.exec(styles))) {\n'
20130515 '                        el.setStyle(matches[1], matches[2]);\n'
20130515 '                    }\n'
20130515 '                } else if (typeof styles == "object") {\n'
20130515 '                    el.setStyle(styles);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Inserts an HTML fragment into the DOM.\n'
20130515 '         * @param {String} where Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd.\n'
20130515 '         * @param {HTMLElement} el The context element\n'
20130515 '         * @param {String} html The HTML fragment\n'
20130515 '         * @return {HTMLElement} The new node\n'
20130515 '         */\n'
20130515 '        insertHtml : function(where, el, html){\n'
20130515 '            var hash = {},\n'
20130515 '                hashVal,\n'
20130515 '                setStart,\n'
20130515 '                range,\n'
20130515 '                frag,\n'
20130515 '                rangeEl,\n'
20130515 '                rs,\n'
20130515 '                temp;\n'
20130515 '\n'
20130515 '            where = where.toLowerCase();\n'
20130515 '            // add these here because they are used in both branches of the condition.\n'
20130515 "            hash[beforebegin] = ['BeforeBegin', 'previousSibling'];\n"
20130515 "            hash[afterend] = ['AfterEnd', 'nextSibling'];\n"
20130515 '\n'
20130515 '            if (el.insertAdjacentHTML) {\n'
20130515 '                if(tableRe.test(el.tagName) && (rs = insertIntoTable(el.tagName.toLowerCase(), where, el, html))){\n'
20130515 '                    return rs;\n'
20130515 '                }\n'
20130515 '                // add these two to the hash.\n'
20130515 "                hash[afterbegin] = ['AfterBegin', 'firstChild'];\n"
20130515 "                hash[beforeend] = ['BeforeEnd', 'lastChild'];\n"
20130515 '                if ((hashVal = hash[where])) {\n'
20130515 '                    el.insertAdjacentHTML(hashVal[0], html);\n'
20130515 '                    return el[hashVal[1]];\n'
20130515 '                }\n'
20130515 '            } else {\n'
20130515 '                range = el.ownerDocument.createRange();\n'
20130515 "                setStart = 'setStart' + (endRe.test(where) ? 'After' : 'Before');\n"
20130515 '                if (hash[where]) {\n'
20130515 '                    range[setStart](el);\n'
20130515 '                    if (range.createContextualFragment) {\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                    } else {\n'
20130515 '                        frag = document.createDocumentFragment(), \n'
20130515 "                        temp = document.createElement('div');\n"
20130515 '                        frag.appendChild(temp);\n'
20130515 '                        temp.outerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    el.parentNode.insertBefore(frag, where == beforebegin ? el : el.nextSibling);\n'
20130515 "                    return el[(where == beforebegin ? 'previous' : 'next') + 'Sibling'];\n"
20130515 '                } else {\n'
20130515 "                    rangeEl = (where == afterbegin ? 'first' : 'last') + 'Child';\n"
20130515 '                    if (el.firstChild) {\n'
20130515 '                        range[setStart](el[rangeEl]);\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                        if(where == afterbegin){\n'
20130515 '                            el.insertBefore(frag, el.firstChild);\n'
20130515 '                        }else{\n'
20130515 '                            el.appendChild(frag);\n'
20130515 '                        }\n'
20130515 '                    } else {\n'
20130515 '                        el.innerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    return el[rangeEl];\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '            throw \'Illegal insertion point -> "\' + where + \'"\';\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them before el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertBefore : function(el, o, returnElement){\n'
20130515 '            return doInsert(el, o, returnElement, beforebegin);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them after el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertAfter : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterend, 'nextSibling');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them as the first child of el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertFirst : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterbegin, 'firstChild');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and appends them to el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        append : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, beforeend, '', true);\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and overwrites the contents of el with them.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        overwrite : function(el, o, returnElement){\n'
20130515 '            el = Ext.getDom(el);\n'
20130515 '            el.innerHTML = createHtml(o);\n'
20130515 '            return returnElement ? Ext.get(el.firstChild) : el.firstChild;\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        createHtml : createHtml\n'
20130515 '    };\n'
20130515 '    return pub;\n'
20130515 '}());\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the all-day event container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. Internally the majority of the layout logic is deferred to an instance of\n'
20130515 ' * {@link Ext.ensible.cal.BoxLayoutTemplate}.</p> \n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayBodyTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    this.allDayTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\n'
20130515 '    this.allDayTpl.compile();\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayHeaderTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<div class="ext-cal-hd-ct">\',\n'
20130515 '            \'<table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0">\',\n'
20130515 "                '<tbody>',\n"
20130515 "                    '<tr>',\n"
20130515 '                        \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                        \'<td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner">{allDayTpl}</div></td>\',\n'
20130515 '                        \'<td class="ext-cal-gutter-rt"></td>\',\n'
20130515 "                    '</tr>',\n"
20130515 "                '</tbody>',\n"
20130515 "            '</table>',\n"
20130515 "        '</div>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayHeaderTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        return Ext.ensible.cal.DayHeaderTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            allDayTpl: this.allDayTpl.apply(o)\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate.prototype.apply = Ext.ensible.cal.DayHeaderTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the scrolling body container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayHeaderTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayBodyTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:{dayHeight}px;">\',\n'
20130515 "            '<tbody>',\n"
20130515 '                \'<tr height="1">\',\n'
20130515 '                    \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                    \'<td colspan="{dayCount}">\',\n'
20130515 '                        \'<div class="ext-cal-bg-rows">\',\n'
20130515 '                            \'<div class="ext-cal-bg-rows-inner">\',\n'
20130515 '                                \'<tpl for="times">\',\n'
20130515 '                                    \'<div class="ext-cal-bg-row ext-row-{[xindex]}" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                        \'<div class="ext-cal-bg-row-div {parent.hourSeparatorCls}" style="height:{parent.hourSeparatorHeight}px;"></div>\',\n'
20130515 "                                    '</div>',\n"
20130515 "                                '</tpl>',\n"
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</td>',\n"
20130515 "                '</tr>',\n"
20130515 "                '<tr>',\n"
20130515 '                    \'<td class="ext-cal-day-times">\',\n'
20130515 '                        \'<tpl for="times">\',\n'
20130515 '                            \'<div class="ext-cal-bg-row" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                \'<div class="ext-cal-day-time-inner"  style="height:{parent.hourHeight-1}px;">{.}</div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</tpl>',\n"
20130515 "                    '</td>',\n"
20130515 '                    \'<tpl for="days">\',\n'
20130515 '                        \'<td class="ext-cal-day-col">\',\n'
20130515 '                            \'<div class="ext-cal-day-col-inner">\',\n'
20130515 '                                \'<div id="{[this.id]}-day-col-{.:date("Ymd")}" class="ext-cal-day-col-gutter" style="height:{parent.dayHeight}px;"></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</td>',\n"
20130515 "                    '</tpl>',\n"
20130515 "                '</tr>',\n"
20130515 "            '</tbody>',\n"
20130515 "        '</table>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayBodyTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        this.today = new Date().clearTime();\n'
20130515 '        this.dayCount = this.dayCount || 1;\n'
20130515 '        \n'
20130515 '        var i = 0, days = [],\n'
20130515 '            dt = o.viewStart.clone();\n'
20130515 '            \n'
20130515 '        for(; i<this.dayCount; i++){\n'
20130515 '            days[i] = dt.add(Date.DAY, i);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        var times = [],\n'
20130515 '            start = this.viewStartHour,\n'
20130515 '            end = this.viewEndHour,\n'
20130515 '            mins = this.hourIncrement,\n'
20130515 '            dayHeight = this.hourHeight * (end - start)\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i' : 'ga';\n"
20130515 '        \n'
20130515 "        // use a fixed DST-safe date so times don't get skipped on DST boundaries\n"
20130515 "        dt = new Date('1/1/2010').clearTime().add(Date.HOUR, start);\n"
20130515 '        \n'
20130515 '        for(i=start; i<end; i++){\n'
20130515 '            times.push(dt.format(fmt));\n'
20130515 '            dt = dt.add(Date.MINUTE, mins);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.DayBodyTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            days: days,\n'
20130515 '            dayCount: days.length,\n'
20130515 '            times: times,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            hourSeparatorCls: this.showHourSeparator ? '' : 'no-sep', // the class suppresses the default separator\n"
20130515 '            dayHeight: dayHeight,\n'
20130515 '            hourSeparatorHeight: (this.hourHeight / 2) - 1\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayBodyTemplate.prototype.apply = Ext.ensible.cal.DayBodyTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.BoxLayoutTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render calendar views based on small day boxes within a non-scrolling container (currently\n'
20130515 ' * the {@link Ext.ensible.cal.MonthView MonthView} and the all-day headers for {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div id="{weekLinkId}" class="ext-cal-week-link">{weekNum}</div>\' : \'\';\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.BoxLayoutTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<tpl for="weeks">\',\n'
20130515 '            \'<div id="{[this.id]}-wk-{[xindex-1]}" class="ext-cal-wk-ct" style="top:{[this.getRowTop(xindex, xcount)]}%; height:{[this.getRowHeight(xcount)]}%;">\',\n'
20130515 '                weekLinkTpl,\n'
20130515 '                \'<table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                 \'<td id="{[this.id]}-day-{date:date("Ymd")}" class="{cellCls}">&#160;</td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 '                \'<table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                \'<td id="{[this.id]}-ev-day-{date:date("Ymd")}" class="{titleCls}"><div>{title}</div></td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 "            '</div>',\n"
20130515 "        '</tpl>', {\n"
20130515 '            getRowTop: function(i, ln){\n'
20130515 '                return ((i-1)*(100/ln));\n'
20130515 '            },\n'
20130515 '            getRowHeight: function(ln){\n'
20130515 '                return 100/ln;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.BoxLayoutTemplate, Ext.XTemplate, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} firstWeekDateFormat\n'
20130515 '     * The date format used for the day boxes in the first week of the view only (subsequent weeks\n'
20130515 "     * use the {@link #otherWeeksDateFormat} config). Defaults to 'D j'. Note that if the day names header is displayed\n"
20130515 '     * above the first row (e.g., {@link Ext.ensible.cal.MonthView#showHeader MonthView.showHeader} = true)\n'
20130515 '     * then this value is ignored and {@link #otherWeeksDateFormat} will be used instead.\n'
20130515 '     */\n'
20130515 "    firstWeekDateFormat: 'D j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} otherWeeksDateFormat\n'
20130515 '     * The date format used for the date in day boxes (other than the first week, which is controlled by\n'
20130515 "     * {@link #firstWeekDateFormat}). Defaults to 'j'.\n"
20130515 '     */\n'
20130515 "    otherWeeksDateFormat: 'j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} singleDayDateFormat\n'
20130515 "     * The date format used for the date in the header when in single-day view (defaults to 'l, F j, Y').\n"
20130515 '     */\n'
20130515 "    singleDayDateFormat: 'l, F j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayFirstDayFormat\n'
20130515 "     * The date format used for the date in the header when more than one day are visible (defaults to 'M j, Y').\n"
20130515 '     */\n'
20130515 "    multiDayFirstDayFormat: 'M j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayMonthStartFormat\n'
20130515 "     * The date format to use for the first day in a month when more than one day are visible (defaults to 'M j').\n"
20130515 '     * Note that if this day falls on the first day within the view, {@link #multiDayFirstDayFormat} takes precedence.\n'
20130515 '     */\n'
20130515 "    multiDayMonthStartFormat: 'M j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        \n'
20130515 '        Ext.apply(this, o);\n'
20130515 '        \n'
20130515 "        var w = 0, title = '', first = true, isToday = false, showMonth = false, \n"
20130515 '            prevMonth = false, nextMonth = false, isWeekend = false,\n'
20130515 '            weekendCls = o.weekendCls,\n'
20130515 '            prevMonthCls = o.prevMonthCls,\n'
20130515 '            nextMonthCls = o.nextMonthCls,\n'
20130515 '            todayCls = o.todayCls,\n'
20130515 '            weeks = [[]],\n'
20130515 '            today = new Date().clearTime(),\n'
20130515 '            dt = this.viewStart.clone(),\n'
20130515 '            thisMonth = this.startDate.getMonth();\n'
20130515 '        \n'
20130515 '        for(; w < this.weekCount || this.weekCount == -1; w++){\n'
20130515 '            if(dt > this.viewEnd){\n'
20130515 '                break;\n'
20130515 '            }\n'
20130515 '            weeks[w] = [];\n'
20130515 '            \n'
20130515 '            for(var d = 0; d < this.dayCount; d++){\n'
20130515 '                isToday = dt.getTime() === today.getTime();\n'
20130515 '                showMonth = first || (dt.getDate() == 1);\n'
20130515 '                prevMonth = (dt.getMonth() < thisMonth) && this.weekCount == -1;\n'
20130515 '                nextMonth = (dt.getMonth() > thisMonth) && this.weekCount == -1;\n'
20130515 '                isWeekend = dt.getDay() % 6 === 0;\n'
20130515 '                \n'
20130515 '                if(dt.getDay() == 1){\n'
20130515 "                    // The ISO week format 'W' is relative to a Monday week start. If we\n"
20130515 '                    // make this check on Sunday the week number will be off.\n'
20130515 "                    weeks[w].weekNum = this.showWeekNumbers ? dt.format('W') : '&#160;';\n"
20130515 "                    weeks[w].weekLinkId = 'ext-cal-week-'+dt.format('Ymd');\n"
20130515 '                }\n'
20130515 '                \n'
20130515 '                if(showMonth){\n'
20130515 '                    if(isToday){\n'
20130515 '                        title = this.getTodayText();\n'
20130515 '                    }\n'
20130515 '                    else{\n'
20130515 '                        title = dt.format(this.dayCount == 1 ? this.singleDayDateFormat : \n'
20130515 '                                (first ? this.multiDayFirstDayFormat : this.multiDayMonthStartFormat));\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    var dayFmt = (w == 0 && this.showHeader !== true) ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '                    title = isToday ? this.getTodayText() : dt.format(dayFmt);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                weeks[w].push({\n'
20130515 '                    title: title,\n'
20130515 '                    date: dt.clone(),\n'
20130515 "                    titleCls: 'ext-cal-dtitle ' + (isToday ? ' ext-cal-dtitle-today' : '') + \n"
20130515 "                        (w==0 ? ' ext-cal-dtitle-first' : '') +\n"
20130515 "                        (prevMonth ? ' ext-cal-dtitle-prev' : '') + \n"
20130515 "                        (nextMonth ? ' ext-cal-dtitle-next' : ''),\n"
20130515 "                    cellCls: 'ext-cal-day ' + (isToday ? ' '+todayCls : '') + \n"
20130515 "                        (d==0 ? ' ext-cal-day-first' : '') +\n"
20130515 "                        (prevMonth ? ' '+prevMonthCls : '') +\n"
20130515 "                        (nextMonth ? ' '+nextMonthCls : '') +\n"
20130515 "                        (isWeekend && weekendCls ? ' '+weekendCls : '')\n"
20130515 '                });\n'
20130515 '                dt = dt.add(Date.DAY, 1);\n'
20130515 '                first = false;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.BoxLayoutTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            weeks: weeks\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTodayText : function(){\n'
20130515 "        var timeFmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            todayText = this.showTodayText !== false ? this.todayText : '',\n"
20130515 '            timeText = this.showTime !== false ? \' <span id="\'+this.id+\'-clock" class="ext-cal-dtitle-time">\' + \n'
20130515 "                    new Date().format(timeFmt) + '</span>' : '',\n"
20130515 "            separator = todayText.length > 0 || timeText.length > 0 ? ' &#8212; ' : ''; // &#8212; == &mdash;\n"
20130515 '        \n'
20130515 '        if(this.dayCount == 1){\n'
20130515 '            return new Date().format(this.singleDayDateFormat) + separator + todayText + timeText;\n'
20130515 '        }\n'
20130515 '        fmt = this.weekCount == 1 ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '        return todayText.length > 0 ? todayText + timeText : new Date().format(fmt) + timeText;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate.prototype.apply = Ext.ensible.cal.BoxLayoutTemplate.prototype.applyTemplate;\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthViewTemplate\r\n'
20130515 ' * @extends Ext.XTemplate\r\n'
20130515 ' * <p>This is the template used to render the {@link Ext.ensible.cal.MonthView MonthView}. Internally this class defers to an\r\n'
20130515 ' * instance of {@link Ext.calerndar.BoxLayoutTemplate} to handle the inner layout rendering and adds containing elements around\r\n'
20130515 ' * that to form the month view.</p> \r\n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \r\n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate = function(config){\r\n'
20130515 '    \r\n'
20130515 '    Ext.apply(this, config);\r\n'
20130515 '    \r\n'
20130515 '    this.weekTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\r\n'
20130515 '    this.weekTpl.compile();\r\n'
20130515 '    \r\n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div class="ext-cal-week-link-hd">&#160;</div>\' : \'\';\r\n'
20130515 '    \r\n'
20130515 '    Ext.ensible.cal.MonthViewTemplate.superclass.constructor.call(this,\r\n'
20130515 '\t    \'<div class="ext-cal-inner-ct {extraClasses}">\',\r\n'
20130515 '            \'<div class="ext-cal-hd-ct ext-cal-month-hd">\',\r\n'
20130515 '                weekLinkTpl,\r\n'
20130515 '\t\t        \'<table class="ext-cal-hd-days-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t            '<tbody>',\r\n"
20130515 "                        '<tr>',\r\n"
20130515 '                            \'<tpl for="days">\',\r\n'
20130515 '\t\t                        \'<th class="ext-cal-hd-day{[xindex==1 ? " ext-cal-day-first" : ""]}" title="{title}">{name}</th>\',\r\n'
20130515 "\t\t                    '</tpl>',\r\n"
20130515 "                        '</tr>',\r\n"
20130515 "\t\t            '</tbody>',\r\n"
20130515 "\t\t        '</table>',\r\n"
20130515 "            '</div>',\r\n"
20130515 '\t        \'<div class="ext-cal-body-ct">{weeks}</div>\',\r\n'
20130515 "        '</div>'\r\n"
20130515 '    );\r\n'
20130515 '};\r\n'
20130515 '\r\n'
20130515 'Ext.extend(Ext.ensible.cal.MonthViewTemplate, Ext.XTemplate, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderFormat\r\n'
20130515 "     * The date format to use for day headers, if used (defaults to 'D', e.g. 'Mon' for Monday)\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderFormat: 'D',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderTitleFormat\r\n'
20130515 "     * The date format to use for the day header's HTML title attribute displayed on mouseover \r\n"
20130515 "     * (defaults to 'l, F j, Y', e.g. 'Monday, December 27, 2010')\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderTitleFormat: 'l, F j, Y',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    applyTemplate : function(o){\r\n'
20130515 '        var days = [],\r\n'
20130515 '            weeks = this.weekTpl.apply(o),\r\n'
20130515 '            dt = o.viewStart;\r\n'
20130515 '        \r\n'
20130515 '        for(var i = 0; i < 7; i++){\r\n'
20130515 '            var d = dt.add(Date.DAY, i);\r\n'
20130515 '            days.push({\r\n'
20130515 '                name: d.format(this.dayHeaderFormat),\r\n'
20130515 '                title: d.format(this.dayHeaderTitleFormat)\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        var extraClasses = this.showHeader === true ? '' : 'ext-cal-noheader';\r\n"
20130515 '        if(this.showWeekLinks){\r\n'
20130515 "            extraClasses += ' ext-cal-week-links';\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return Ext.ensible.cal.MonthViewTemplate.superclass.applyTemplate.call(this, {\r\n'
20130515 '            days: days,\r\n'
20130515 '            weeks: weeks,\r\n'
20130515 '            extraClasses: extraClasses\r\n'
20130515 '        });\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate.prototype.apply = Ext.ensible.cal.MonthViewTemplate.prototype.applyTemplate;\r\n'
20130515 '/* @private\n'
20130515 ' * @class Ext.dd.ScrollManager\n'
20130515 ' * <p>Provides automatic scrolling of overflow regions in the page during drag operations.</p>\n'
20130515 ' * <p>The ScrollManager configs will be used as the defaults for any scroll container registered with it,\n'
20130515 ' * but you can also override most of the configs per scroll container by adding a \n'
20130515 ' * <tt>ddScrollConfig</tt> object to the target element that contains these properties: {@link #hthresh},\n'
20130515 ' * {@link #vthresh}, {@link #increment} and {@link #frequency}.  Example usage:\n'
20130515 ' * <pre><code>\n'
20130515 "var el = Ext.get('scroll-ct');\n"
20130515 'el.ddScrollConfig = {\n'
20130515 '    vthresh: 50,\n'
20130515 '    hthresh: -1,\n'
20130515 '    frequency: 100,\n'
20130515 '    increment: 200\n'
20130515 '};\n'
20130515 'Ext.dd.ScrollManager.register(el);\n'
20130515 '</code></pre>\n'
20130515 ' * <b>Note: This class uses "Point Mode" and is untested in "Intersect Mode".</b>\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 'Ext.dd.ScrollManager = function(){\n'
20130515 '    var ddm = Ext.dd.DragDropMgr;\n'
20130515 '    var els = {};\n'
20130515 '    var dragEl = null;\n'
20130515 '    var proc = {};\n'
20130515 '    \n'
20130515 '    var onStop = function(e){\n'
20130515 '        dragEl = null;\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var triggerRefresh = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '             ddm.refreshCache(ddm.dragCurrent.groups);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var doScroll = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '            var dds = Ext.dd.ScrollManager;\n'
20130515 '            var inc = proc.el.ddScrollConfig ?\n'
20130515 '                      proc.el.ddScrollConfig.increment : dds.increment;\n'
20130515 '            if(!dds.animate){\n'
20130515 '                if(proc.el.scroll(proc.dir, inc)){\n'
20130515 '                    triggerRefresh();\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                proc.el.scroll(proc.dir, inc, true, dds.animDuration, triggerRefresh);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var clearProc = function(){\n'
20130515 '        if(proc.id){\n'
20130515 '            clearInterval(proc.id);\n'
20130515 '        }\n'
20130515 '        proc.id = 0;\n'
20130515 '        proc.el = null;\n'
20130515 '        proc.dir = "";\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var startProc = function(el, dir){\n'
20130515 '        clearProc();\n'
20130515 '        proc.el = el;\n'
20130515 '        proc.dir = dir;\n'
20130515 '        var freq = (el.ddScrollConfig && el.ddScrollConfig.frequency) ? \n'
20130515 '                el.ddScrollConfig.frequency : Ext.dd.ScrollManager.frequency,\n'
20130515 '            group = el.ddScrollConfig ? el.ddScrollConfig.ddGroup : undefined;\n'
20130515 '        \n'
20130515 '        if(group === undefined || ddm.dragCurrent.ddGroup == group){\n'
20130515 '            proc.id = setInterval(doScroll, freq);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var onFire = function(e, isDrop){\n'
20130515 '        if(isDrop || !ddm.dragCurrent){ return; }\n'
20130515 '        var dds = Ext.dd.ScrollManager;\n'
20130515 '        if(!dragEl || dragEl != ddm.dragCurrent){\n'
20130515 '            dragEl = ddm.dragCurrent;\n'
20130515 '            // refresh regions on drag start\n'
20130515 '            dds.refreshCache();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var xy = Ext.lib.Event.getXY(e);\n'
20130515 '        var pt = new Ext.lib.Point(xy[0], xy[1]);\n'
20130515 '        for(var id in els){\n'
20130515 '            var el = els[id], r = el._region;\n'
20130515 '            var c = el.ddScrollConfig ? el.ddScrollConfig : dds;\n'
20130515 '            if(r && r.contains(pt) && el.isScrollable()){\n'
20130515 '                if(r.bottom - pt.y <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "down");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(r.right - pt.x <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "left");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.y - r.top <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "up");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.x - r.left <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "right");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    ddm.fireEvents = ddm.fireEvents.createSequence(onFire, ddm);\n'
20130515 '    ddm.stopDrag = ddm.stopDrag.createSequence(onStop, ddm);\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        /**\n'
20130515 '         * Registers new overflow element(s) to auto scroll\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be scrolled or an array of either\n'
20130515 '         */\n'
20130515 '        register : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.register(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                els[el.id] = el;\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Unregisters overflow element(s) so they are no longer scrolled\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be removed or an array of either\n'
20130515 '         */\n'
20130515 '        unregister : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.unregister(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                delete els[el.id];\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the top or bottom edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        vthresh : 25,\n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the right or left edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        hthresh : 25,\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * The number of pixels to scroll in each scroll increment (defaults to 50)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        increment : 100,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The frequency of scrolls in milliseconds (defaults to 500)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        frequency : 500,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * True to animate the scroll (defaults to true)\n'
20130515 '         * @type Boolean\n'
20130515 '         */\n'
20130515 '        animate: true,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The animation duration in seconds - \n'
20130515 '         * MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        animDuration: .4,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Manually trigger a cache refresh.\n'
20130515 '         */\n'
20130515 '        refreshCache : function(){\n'
20130515 '            for(var id in els){\n'
20130515 "                if(typeof els[id] == 'object'){ // for people extending the object prototype\n"
20130515 '                    els[id]._region = els[id].getRegion();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();/**\n'
20130515 ' * @class Ext.ensible.cal.StatusProxy\n'
20130515 ' * A specialized drag proxy that supports a drop status icon, {@link Ext.Layer} styles and auto-repair. It also\n'
20130515 " * contains a calendar-specific drag status message containing details about the dragged event's target drop date range.  \n"
20130515 ' * This is the default drag proxy used by all calendar views.\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.StatusProxy = function(config){\n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    this.id = this.id || Ext.id();\n'
20130515 '    this.el = new Ext.Layer({\n'
20130515 '        dh: {\n'
20130515 "            id: this.id, cls: 'ext-dd-drag-proxy x-dd-drag-proxy '+this.dropNotAllowed, cn: [\n"
20130515 "                {cls: 'x-dd-drop-icon'},\n"
20130515 "                {cls: 'ext-dd-ghost-ct', cn:[\n"
20130515 "                    {cls: 'x-dd-drag-ghost'},\n"
20130515 "                    {cls: 'ext-dd-msg'}\n"
20130515 '                ]}\n'
20130515 '            ]\n'
20130515 '        }, \n'
20130515 '        shadow: !config || config.shadow !== false\n'
20130515 '    });\n'
20130515 '    this.ghost = Ext.get(this.el.dom.childNodes[1].childNodes[0]);\n'
20130515 '    this.message = Ext.get(this.el.dom.childNodes[1].childNodes[1]);\n'
20130515 '    this.dropStatus = this.dropNotAllowed;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.StatusProxy, Ext.dd.StatusProxy, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} moveEventCls\n'
20130515 "     * The CSS class to apply to the status element when an event is being dragged (defaults to 'ext-cal-dd-move').\n"
20130515 '     */\n'
20130515 "    moveEventCls : 'ext-cal-dd-move',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} addEventCls\n'
20130515 "     * The CSS class to apply to the status element when drop is not allowed (defaults to 'ext-cal-dd-add').\n"
20130515 '     */\n'
20130515 "    addEventCls : 'ext-cal-dd-add',\n"
20130515 '\n'
20130515 '    // inherit docs\n'
20130515 '    update : function(html){\n'
20130515 "        if(typeof html == 'string'){\n"
20130515 '            this.ghost.update(html);\n'
20130515 '        }else{\n'
20130515 "            this.ghost.update('');\n"
20130515 "            html.style.margin = '0';\n"
20130515 '            this.ghost.dom.appendChild(html);\n'
20130515 '        }\n'
20130515 '        var el = this.ghost.dom.firstChild;\n'
20130515 '        if(el){\n'
20130515 "            Ext.fly(el).setStyle('float', 'none').setHeight('auto');\n"
20130515 "            Ext.getDom(el).id += '-ddproxy';\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /* @private\n'
20130515 '     * Update the calendar-specific drag status message without altering the ghost element.\n'
20130515 '     * @param {String} msg The new status message\n'
20130515 '     */\n'
20130515 '    updateMsg : function(msg){\n'
20130515 '        this.message.update(msg);\n'
20130515 '    }\n'
20130515 '});/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DragZone = Ext.extend(Ext.dd.DragZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 '    \n'
20130515 '    constructor : function(el, config){\n'
20130515 '        if(!Ext.ensible.cal._statusProxyInstance){\n'
20130515 '            Ext.ensible.cal._statusProxyInstance = new Ext.ensible.cal.StatusProxy();\n'
20130515 '        }\n'
20130515 '        this.proxy = Ext.ensible.cal._statusProxyInstance;\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.constructor.call(this, el, config);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        // Check whether we are dragging on an event first\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                start: t.date,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onInitDrag : function(x, y){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            var ghost = this.dragData.ddel.cloneNode(true),\n'
20130515 "                child = Ext.fly(ghost).child('dl');\n"
20130515 '            \n'
20130515 "            Ext.fly(ghost).setWidth('auto');\n"
20130515 '            \n'
20130515 '            if(child){\n'
20130515 '                // for IE/Opera\n'
20130515 "                child.setHeight('auto');\n"
20130515 '            }\n'
20130515 '            this.proxy.update(ghost);\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        else if(this.dragData.start){\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        this.view.onInitDrag();\n'
20130515 '        return true;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterRepair : function(){\n'
20130515 '        if(Ext.enableFx && this.dragData.ddel){\n'
20130515 "            Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor || 'c3daf9');\n"
20130515 '        }\n'
20130515 '        this.dragging = false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getRepairXY : function(e){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            return Ext.Element.fly(this.dragData.ddel).getXY();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterInvalidDrop : function(e, id){\n'
20130515 "        Ext.select('.ext-dd-shim').hide();\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    destroy : function(){\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.destroy.call(this);\n'
20130515 '        delete Ext.ensible.cal._statusProxyInstance;\n'
20130515 '    }    \n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DropZone = Ext.extend(Ext.dd.DropZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    shims : [],\n'
20130515 '    \n'
20130515 '    getTargetFromEvent : function(e){\n'
20130515 '        var dragOffset = this.dragOffset || 0,\n'
20130515 '            y = e.getPageY() - dragOffset,\n'
20130515 '            d = this.view.getDayAt(e.getPageX(), y);\n'
20130515 '        \n'
20130515 '        return d.el ? d : null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var D = Ext.ensible.Date,\n'
20130515 "            start = data.type == 'eventdrag' ? n.date : D.min(data.start, n.date),\n"
20130515 "            end = data.type == 'eventdrag' ? n.date.add(Date.DAY, D.diffDays(data.eventStart, data.eventEnd)) : \n"
20130515 '                D.max(data.start, n.date);\n'
20130515 '        \n'
20130515 '        if(!this.dragStartDate || !this.dragEndDate || (D.diffDays(start, this.dragStartDate) != 0) || (D.diffDays(end, this.dragEndDate) != 0)){\n'
20130515 '            this.dragStartDate = start;\n'
20130515 '            this.dragEndDate = end.clearTime().add(Date.DAY, 1).add(Date.MINUTE, -30);\n'
20130515 '            this.shim(start, end);\n'
20130515 '            \n'
20130515 '            var range = start.format(this.dateFormat);\n'
20130515 '                \n'
20130515 '            if(D.diffDays(start, end) > 0){\n'
20130515 '                end = end.format(this.dateFormat);\n'
20130515 '                range = String.format(this.dateRangeFormat, range, end);\n'
20130515 '            }\n'
20130515 "            var msg = String.format(data.type == 'eventdrag' ? this.moveText : this.createText, range);\n"
20130515 '            data.proxy.updateMsg(msg);\n'
20130515 '        }\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(start, end){\n'
20130515 '        this.currWeek = -1;\n'
20130515 '        var dt = start.clone(),\n'
20130515 '            i = 0, shim, box,\n'
20130515 '            cnt = Ext.ensible.Date.diffDays(dt, end)+1\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        while(i++ < cnt){\n'
20130515 '            var dayEl = this.view.getDayEl(dt);\n'
20130515 '            \n'
20130515 '            // if the date is not in the current view ignore it (this\n'
20130515 '            // can happen when an event is dragged to the end of the\n'
20130515 '            // month so that it ends outside the view)\n'
20130515 '            if(dayEl){\n'
20130515 '                var wk = this.view.getWeekIndex(dt),\n'
20130515 '                    shim = this.shims[wk];\n'
20130515 '            \n'
20130515 '                if(!shim){\n'
20130515 '                    shim = this.createShim();\n'
20130515 '                    this.shims[wk] = shim;\n'
20130515 '                }\n'
20130515 '                if(wk != this.currWeek){\n'
20130515 '                    shim.boxInfo = dayEl.getBox();\n'
20130515 '                    this.currWeek = wk;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box = dayEl.getBox();\n'
20130515 '                    shim.boxInfo.right = box.right;\n'
20130515 '                    shim.boxInfo.width = box.right - shim.boxInfo.x;\n'
20130515 '                }\n'
20130515 '                shim.isActive = true;\n'
20130515 '            }\n'
20130515 '            dt = dt.add(Date.DAY, 1);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                if(shim.isActive){\n'
20130515 '                    shim.show();\n'
20130515 '                    shim.setBox(shim.boxInfo);\n'
20130515 '                }\n'
20130515 '                else if(shim.isVisible()){\n'
20130515 '                    shim.hide();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    createShim : function(){\n'
20130515 '        var owner = this.view.ownerCalendarPanel ? this.view.ownerCalendarPanel : this.view;\n'
20130515 '        if(!this.shimCt){\n'
20130515 "            this.shimCt = Ext.get('ext-dd-shim-ct-'+owner.id);\n"
20130515 '            if(!this.shimCt){\n'
20130515 "                this.shimCt = document.createElement('div');\n"
20130515 "                this.shimCt.id = 'ext-dd-shim-ct-'+owner.id;\n"
20130515 '                owner.getEl().parent().appendChild(this.shimCt);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 "        var el = document.createElement('div');\n"
20130515 "        el.className = 'ext-dd-shim';\n"
20130515 '        this.shimCt.appendChild(el);\n'
20130515 '        \n'
20130515 '        return new Ext.Layer({\n'
20130515 '            shadow:false, \n'
20130515 '            useDisplay:true, \n'
20130515 '            constrain:false\n'
20130515 '        }, el);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    clearShims : function(){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerOver : function(dd, e, data){\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onCalendarDragComplete : function(){\n'
20130515 '        delete this.dragStartDate;\n'
20130515 '        delete this.dragEndDate;\n'
20130515 '        this.clearShims();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel),\n'
20130515 '                    dt = Ext.ensible.Date.copyTime(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], n.date);\n'
20130515 '                    \n'
20130515 '                this.view.onEventDrop(rec, dt);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerDrop : function(dd, e, data){\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDragZone = Ext.extend(Ext.ensible.cal.DragZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    resizeSelector : '.ext-evt-rsz',\n"
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        var t = e.getTarget(this.resizeSelector, 2, true);\n'
20130515 '        if(t){\n'
20130515 '            var p = t.parent(this.eventSelector), \n'
20130515 '                rec = this.view.getEventRecordFromEl(p);\n'
20130515 '            \n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventresize',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: p.dom,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging/resizing an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                dayInfo: t,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDropZone = Ext.extend(Ext.ensible.cal.DropZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var dt, text = this.createText,\n'
20130515 "            timeFormat = Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia';\n"
20130515 '            \n'
20130515 "        if(data.type == 'caldrag'){\n"
20130515 '            if(!this.dragStartMarker){\n'
20130515 '                // Since the container can scroll, this gets a little tricky.\n'
20130515 '                // There is no el in the DOM that we can measure by default since\n'
20130515 '                // the box is simply calculated from the original drag start (as opposed\n'
20130515 '                // to dragging or resizing the event where the orig event box is present).\n'
20130515 '                // To work around this we add a placeholder el into the DOM and give it\n'
20130515 "                // the original starting time's box so that we can grab its updated\n"
20130515 '                // box measurements as the underlying container scrolls up or down.\n'
20130515 '                // This placeholder is removed in onNodeDrop.\n'
20130515 '                this.dragStartMarker = n.el.parent().createChild({\n'
20130515 "                    style: 'position:absolute;'\n"
20130515 '                });\n'
20130515 '                // use the original dayInfo values from the drag start\n'
20130515 '                this.dragStartMarker.setBox(data.dayInfo.timeBox);\n'
20130515 '                this.dragCreateDt = data.dayInfo.date;\n'
20130515 '            }\n'
20130515 '            var endDt, box = this.dragStartMarker.getBox();\n'
20130515 '            box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '            \n'
20130515 '            if(e.xy[1] < box.y){\n'
20130515 '                box.height += n.timeBox.height;\n'
20130515 '                box.y = box.y - box.height + n.timeBox.height;\n'
20130515 '                endDt = this.dragCreateDt.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            this.shim(this.dragCreateDt, box);\n'
20130515 '            \n'
20130515 '            var curr = Ext.ensible.Date.copyTime(n.date, this.dragCreateDt);\n'
20130515 '            this.dragStartDate = Ext.ensible.Date.min(this.dragCreateDt, curr);\n'
20130515 '            this.dragEndDate = endDt || Ext.ensible.Date.max(this.dragCreateDt, curr);\n'
20130515 '                \n'
20130515 '            dt = String.format(this.dateRangeFormat, this.dragStartDate.format(timeFormat), this.dragEndDate.format(timeFormat));\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            var evtEl = Ext.get(data.ddel),\n'
20130515 '                dayCol = evtEl.parent().parent(),\n'
20130515 '                box = evtEl.getBox();\n'
20130515 '            \n'
20130515 '            box.width = dayCol.getWidth();\n'
20130515 '            \n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                if(this.dragOffset === undefined){\n'
20130515 '                    // on fast drags there is a lag between the original drag start xy position and\n'
20130515 "                    // that first detected within the drop zone's getTargetFromEvent method (which is \n"
20130515 '                    // where n.timeBox comes from). to avoid a bad offset we calculate the\n'
20130515 '                    // timeBox based on the initial drag xy, not the current target xy.\n'
20130515 '                    var initialTimeBox = this.view.getDayAt(data.xy[0], data.xy[1]).timeBox;\n'
20130515 '                    this.dragOffset = initialTimeBox.y - box.y;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box.y = n.timeBox.y;\n'
20130515 '                }\n'
20130515 "                dt = n.date.format(this.dateFormat + ' ' + timeFormat);\n"
20130515 '                box.x = n.el.getLeft();\n'
20130515 '                \n'
20130515 '                this.shim(n.date, box);\n'
20130515 '                text = this.moveText;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                if(!this.resizeDt){\n'
20130515 '                    this.resizeDt = n.date;\n'
20130515 '                }\n'
20130515 '                box.x = dayCol.getLeft();\n'
20130515 '                box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '                if(e.xy[1] < box.y){\n'
20130515 '                    box.y -= box.height;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '                }\n'
20130515 '                this.shim(this.resizeDt, box);\n'
20130515 '                \n'
20130515 '                var curr = Ext.ensible.Date.copyTime(n.date, this.resizeDt),\n'
20130515 '                    start = Ext.ensible.Date.min(data.eventStart, curr),\n'
20130515 '                    end = Ext.ensible.Date.max(data.eventStart, curr);\n'
20130515 '                    \n'
20130515 '                data.resizeDates = {\n'
20130515 '                    StartDate: start,\n'
20130515 '                    EndDate: end\n'
20130515 '                }\n'
20130515 '                dt = String.format(this.dateRangeFormat, start.format(timeFormat), end.format(timeFormat));\n'
20130515 '                text = this.resizeText;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        data.proxy.updateMsg(String.format(text, dt));\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(dt, box){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var shim = this.shims[0];\n'
20130515 '        if(!shim){\n'
20130515 '            shim = this.createShim();\n'
20130515 '            this.shims[0] = shim;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        shim.isActive = true;\n'
20130515 '        shim.show();\n'
20130515 '        shim.setBox(box);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventDrop(rec, n.date);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.dragOffset;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventResize(rec, data.resizeDates);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.resizeDt;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                Ext.destroy(this.dragStartMarker);\n'
20130515 '                delete this.dragStartMarker;\n'
20130515 '                delete this.dragCreateDt;\n'
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.EventStore = Ext.extend(Ext.data.Store, {\n'
20130515 '    constructor: function(config){\n'
20130515 '        // By default autoLoad will cause the store to load itself during the\n'
20130515 '        // constructor, before the owning calendar view has a chance to set up\n'
20130515 '        // the initial date params to use during loading.  We replace autoLoad\n'
20130515 '        // with a deferLoad property that the view can check for and use to set\n'
20130515 '        // up default params as needed, then call the load itself. \n'
20130515 '        this.deferLoad = config.autoLoad;\n'
20130515 '        config.autoLoad = false;\n'
20130515 '        \n'
20130515 '        //this._dateCache = [];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.constructor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    load : function(o){\n'
20130515 "        Ext.ensible.log('store load');\n"
20130515 '        \n'
20130515 '        // if params are passed delete the one-time defaults\n'
20130515 '        if(o.params){\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        // this.initialParams will only be set if the store is being loaded manually\n'
20130515 '        // for the first time (autoLoad = false) so the owning calendar view set\n'
20130515 '        // the initial start and end date params to use. Every load after that will\n'
20130515 '        // have these params set automatically during normal UI navigation.\n'
20130515 '        if(this.initialParams){\n'
20130515 '            o = Ext.isObject(o) ? o : {};\n'
20130515 '            o.params = o.params || {};\n'
20130515 '            Ext.apply(o.params, this.initialParams);\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.load.call(this, o);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '//    execute : function(action, rs, options, /* private */ batch) {\n'
20130515 "//        if(action=='read'){\n"
20130515 '//            var i = 0, \n'
20130515 '//                dc = this._dateCache, \n'
20130515 '//                len = dc.length,\n'
20130515 '//                range,\n'
20130515 '//                p = options.params,\n'
20130515 '//                start = p.start,\n'
20130515 '//                end = p.end;\n'
20130515 '//                \n'
20130515 '//            //options.add = true;\n'
20130515 '//            for(i; i<len; i++){\n'
20130515 '//                range = dc[i];\n'
20130515 '//                \n'
20130515 '//            }\n'
20130515 '//        }\n'
20130515 '//        Ext.ensible.cal.EventStore.superclass.execute.apply(this, arguments);\n'
20130515 '//    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventstore', Ext.ensible.cal.EventStore);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * <p>A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.EventRecord EventRecord}s so that they can be easily overridden.</p>\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Event record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the EventMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings;\n'
20130515 "M.Title.mapping = 'evt_title';\n"
20130515 "M.Title.name = 'EventTitle';\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default EventMappings:\n'
20130515 'Ext.ensible.cal.EventMappings.Timestamp = {\n'
20130515 "    name: 'Timestamp',\n"
20130515 "    mapping: 'timestamp',\n"
20130515 "    type: 'date'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire EventMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard EventRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'EventId') should <b>NOT</b> be changed for the default EventMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID', mapping:'evt_id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID', mapping: 'cal_id', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle', mapping: 'evt_title'},\n"
20130515 "    StartDate:   {name: 'StartDt', mapping: 'start_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDt', mapping: 'end_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'},\n"
20130515 "    Location:    {name: 'Location', mapping: 'location'},\n"
20130515 "    Notes:       {name: 'Desc', mapping: 'full_desc'},\n"
20130515 "    Url:         {name: 'LinkUrl', mapping: 'link_url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay', mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'reminder'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard EventRecord:\n'
20130515 "    CreatedBy:   {name: 'CreatedBy', mapping: 'created_by'},\n"
20130515 "    IsPrivate:   {name: 'Private', mapping:'private', type:'boolean'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>EventId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.EventMappings.EventId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'EventId', mapping:'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalendarId', mapping: 'cid', type: 'int'},\n"
20130515 "    Title:       {name: 'Title', mapping: 'title', type: 'string'},\n"
20130515 "    StartDate:   {name: 'StartDate', mapping: 'start', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDate', mapping: 'end', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'}, // not currently used\n"
20130515 "    Location:    {name: 'Location', mapping: 'loc', type: 'string'},\n"
20130515 "    Notes:       {name: 'Notes', mapping: 'notes', type: 'string'},\n"
20130515 "    Url:         {name: 'Url', mapping: 'url', type: 'string'},\n"
20130515 "    IsAllDay:    {name: 'IsAllDay', mapping: 'ad', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'rem', type: 'string'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.CalendarRecord CalendarRecord}s so that they can be easily overridden.\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Calendar record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the CalendarMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 "M.Title.mapping = 'cal_title';\n"
20130515 "M.Title.name = 'CalTitle';\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default CalendarMappings:\n'
20130515 'Ext.ensible.cal.CalendarMappings.Owner = {\n'
20130515 "    name: 'Owner',\n"
20130515 "    mapping: 'owner',\n"
20130515 "    type: 'string'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire CalendarMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard CalendarRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'CalendarId') should <b>NOT</b> be changed for the default CalendarMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Desc', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden', mapping: 'hidden', type: 'boolean'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard CalendarRecord:\n'
20130515 "    Owner:        {name: 'Owner', mapping: 'owner'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>CalendarId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'CalendarId', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'Title', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Description', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'ColorId', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'IsHidden', mapping: 'hidden', type: 'boolean'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.EventRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar event data used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s underlying store. It can be overridden as \n"
20130515 ' * necessary to customize the fields supported by events, although the existing field definition names \n'
20130515 ' * should not be altered. If your model fields are named differently you should update the <b>mapping</b>\n'
20130515 ' * configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new event record instance are <tt>StartDate</tt> and\n'
20130515 ' * <tt>EndDate</tt>.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.EventRecord({\n'
20130515 "    StartDate: '2101-01-12 12:00:00',\n"
20130515 "    EndDate: '2101-01-12 13:30:00',\n"
20130515 "    Title: 'My cool event',\n"
20130515 "    Notes: 'Some notes'\n"
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.EventMappings EventMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the field names match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings,\n'
20130515 '    rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '\n'
20130515 "rec.data[M.StartDate.name] = '2101-01-12 12:00:00';\n"
20130515 "rec.data[M.EndDate.name] = '2101-01-12 13:30:00';\n"
20130515 "rec.data[M.Title.name] = 'My cool event';\n"
20130515 "rec.data[M.Notes.name] = 'Some notes';\n"
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.EventMappings EventMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.EventMappings} for complete details and \n'
20130515 ' * examples of reconfiguring an EventRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated EventRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.EventMappings,\n'
20130515 '        proto = C.EventRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.EventRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar items used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s calendar store. If your model fields \n"
20130515 ' * are named differently you should update the <b>mapping</b> configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new calendar record instance are CalendarId and\n'
20130515 ' * Title.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord({\n'
20130515 '    CalendarId: 5,\n'
20130515 "    Title: 'My Holidays',\n"
20130515 "    Description: 'My personal holiday schedule',\n"
20130515 '    ColorId: 3\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.CalendarMappings CalendarMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the fields match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 '\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord();\n'
20130515 'rec.data[M.CalendarId.name] = 5;\n'
20130515 "rec.data[M.Title.name] = 'My Holidays';\n"
20130515 "rec.data[M.Description.name] = 'My personal holiday schedule';\n"
20130515 'rec.data[M.ColorId.name] = 3;\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.CalendarMappings CalendarMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.CalendarMappings} for complete details and \n'
20130515 ' * examples of reconfiguring a CalendarRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated CalendarRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.CalendarMappings,\n'
20130515 '        proto = C.CalendarRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.CalendarRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();/* @private\n'
20130515 ' * This is an internal helper class for the calendar views and should not be overridden.\n'
20130515 ' * It is responsible for the base event rendering logic underlying all views based on a \n'
20130515 ' * box-oriented layout that supports day spanning (MonthView, MultiWeekView, DayHeaderView).\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekEventRenderer = function(){\n'
20130515 '    \n'
20130515 '    var getEventRow = function(id, week, index){\n'
20130515 "        var indexOffset = 1; //skip row with date #'s\n"
20130515 "        var evtRow, wkRow = Ext.get(id+'-wk-'+week);\n"
20130515 '        if(wkRow){\n'
20130515 "            var table = wkRow.child('.ext-cal-evt-tbl', true);\n"
20130515 '            evtRow = table.tBodies[0].childNodes[index+indexOffset];\n'
20130515 '            if(!evtRow){\n'
20130515 "                evtRow = Ext.DomHelper.append(table.tBodies[0], '<tr></tr>');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return Ext.get(evtRow);\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        render: function(o){\n'
20130515 '            var w = 0, grid = o.eventGrid, \n'
20130515 '                dt = o.viewStart.clone(),\n'
20130515 '                eventTpl = o.tpl,\n'
20130515 '                max = o.maxEventsPerDay != undefined ? o.maxEventsPerDay : 999,\n'
20130515 '                weekCount = o.weekCount < 1 ? 6 : o.weekCount,\n'
20130515 '                dayCount = o.weekCount == 1 ? o.dayCount : 7;\n'
20130515 '            \n'
20130515 '            for(; w < weekCount; w++){\n'
20130515 '                var row, d = 0, wk = grid[w];\n'
20130515 '                var startOfWeek = dt.clone();\n'
20130515 '                var endOfWeek = startOfWeek.add(Date.DAY, dayCount).add(Date.MILLI, -1);\n'
20130515 '                \n'
20130515 '                for(; d < dayCount; d++){\n'
20130515 '                    if(wk && wk[d]){\n'
20130515 '                        var ev = emptyCells = skipped = 0, \n'
20130515 '                            day = wk[d], ct = day.length, evt;\n'
20130515 '                        \n'
20130515 '                        for(; ev < ct; ev++){\n'
20130515 '                            if(!day[ev]){\n'
20130515 '                                emptyCells++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            if(emptyCells > 0 && ev-emptyCells < max){\n'
20130515 '                                row = getEventRow(o.id, w, ev-emptyCells);\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+ct+'-day-'+dt.format('Ymd')\n"
20130515 '                                }\n'
20130515 '                                if(emptyCells > 1 && max-ev > emptyCells){\n'
20130515 '                                    cellCfg.rowspan = Math.min(emptyCells, max-ev);\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                                emptyCells = 0;\n'
20130515 '                            }\n'
20130515 '                            \n'
20130515 '                            if(ev >= max){\n'
20130515 '                                skipped++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            evt = day[ev];\n'
20130515 '                            \n'
20130515 '                            if(!evt.isSpan || evt.isSpanStart){ //skip non-starting span cells\n'
20130515 '                                var item = evt.data || evt.event.data;\n'
20130515 '                                item._weekIndex = w;\n'
20130515 '                                item._renderAsAllDay = item[Ext.ensible.cal.EventMappings.IsAllDay.name] || evt.isSpanStart;\n'
20130515 '                                item.spanLeft = item[Ext.ensible.cal.EventMappings.StartDate.name].getTime() < startOfWeek.getTime();\n'
20130515 '                                item.spanRight = item[Ext.ensible.cal.EventMappings.EndDate.name].getTime() > endOfWeek.getTime();\n'
20130515 "                                item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \n"
20130515 "                                    'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\n"
20130515 '                                        \n'
20130515 '                                var row = getEventRow(o.id, w, ev),\n'
20130515 '                                    cellCfg = {\n'
20130515 "                                        tag: 'td',\n"
20130515 "                                        cls: 'ext-cal-ev',\n"
20130515 '                                        cn : eventTpl.apply(o.templateDataFn(item))\n'
20130515 '                                    },\n'
20130515 '                                    diff = Ext.ensible.Date.diffDays(dt, item[Ext.ensible.cal.EventMappings.EndDate.name]) + 1,\n'
20130515 '                                    cspan = Math.min(diff, dayCount-d);\n'
20130515 '                                    \n'
20130515 '                                if(cspan > 1){\n'
20130515 '                                    cellCfg.colspan = cspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                        if(ev > max){\n'
20130515 '                            row = getEventRow(o.id, w, max);\n'
20130515 '                            Ext.DomHelper.append(row, {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev-more',\n"
20130515 "                                id: 'ext-cal-ev-more-'+dt.format('Ymd'),\n"
20130515 '                                cn: {\n'
20130515 "                                    tag: 'a',\n"
20130515 '                                    html: String.format(o.getMoreText(skipped), skipped)\n'
20130515 '                                }\n'
20130515 '                            });\n'
20130515 '                        }\n'
20130515 '                        if(ct < o.evtMaxCount[w]){\n'
20130515 '                            row = getEventRow(o.id, w, ct);\n'
20130515 '                            if(row){\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    //html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+(ct+1)+'-day-'+dt.format('Ymd')\n"
20130515 '                                };\n'
20130515 '                                var rowspan = o.evtMaxCount[w] - ct;\n'
20130515 '                                if(rowspan > 1){\n'
20130515 '                                    cellCfg.rowspan = rowspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                    }else{\n'
20130515 '                        row = getEventRow(o.id, w, 0);\n'
20130515 '                        if(row){\n'
20130515 '                            var cellCfg = {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev',\n"
20130515 "                                html: '&#160;',\n"
20130515 "                                id: o.id+'-empty-day-'+dt.format('Ymd')\n"
20130515 '                            };\n'
20130515 '                            if(o.evtMaxCount[w] > 1){\n'
20130515 '                                cellCfg.rowspan = o.evtMaxCount[w];\n'
20130515 '                            }\n'
20130515 '                            Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                        }\n'
20130515 '                    }\n'
20130515 '                    dt = dt.add(Date.DAY, 1);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarCombo\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing from the list of available calendars to assign an event to. You must\n'
20130515 ' * pass a populated calendar store as the store config or the combo will not work.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 "fieldLabel: 'Calendar',\n"
20130515 "triggerAction: 'all',\n"
20130515 "mode: 'local',\n"
20130515 'forceSelection: true,\n'
20130515 'width: 200\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 "    fieldLabel: 'Calendar',\n"
20130515 "    triggerAction: 'all',\n"
20130515 "    mode: 'local',\n"
20130515 '    forceSelection: true,\n'
20130515 '    selectOnFocus: true,\n'
20130515 '    width: 200,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 "    defaultCls: 'x-cal-default',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        var C = Ext.ensible.cal,\n'
20130515 '            M = C.CalendarMappings;\n'
20130515 '        \n'
20130515 '        C.CalendarCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.valueField = M.CalendarId.name;\n'
20130515 '        this.displayField = M.Title.name;\n'
20130515 '        \n'
20130515 '        this.tpl = this.tpl ||\n'
20130515 '              \'<tpl for="."><div class="x-combo-list-item x-cal-{\' + M.ColorId.name +\n'
20130515 '              \'}"><div class="ext-cal-picker-icon">&#160;</div>{\' + this.displayField + \'}</div></tpl>\';\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.wrap = this.el.up('.x-form-field-wrap');\n"
20130515 "        this.wrap.addClass('ext-calendar-picker');\n"
20130515 '        \n'
20130515 '        this.icon = Ext.DomHelper.append(this.wrap, {\n'
20130515 "            tag: 'div', cls: 'ext-cal-picker-icon ext-cal-picker-mainicon'\n"
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    assertValue  : function(){\n'
20130515 '        var val = this.getRawValue(),\n'
20130515 '            rec = this.findRecord(this.displayField, val);\n'
20130515 '\n'
20130515 '        if(!rec && this.forceSelection){\n'
20130515 '            if(val.length > 0 && val != this.emptyText){\n'
20130515 '                // Override this method simply to fix the original logic that was here.\n'
20130515 '                // The orignal method simply reverts the displayed text but the store remains\n'
20130515 '                // filtered with the invalid query, meaning it contains no records. This causes\n'
20130515 '                // problems with redisplaying the field -- much better to clear the filter and\n'
20130515 '                // reset the original value so everything works as expected.\n'
20130515 '                this.store.clearFilter();\n'
20130515 '                this.setValue(this.value);\n'
20130515 '                this.applyEmptyText();\n'
20130515 '            }else{\n'
20130515 '                this.clearValue();\n'
20130515 '            }\n'
20130515 '        }else{\n'
20130515 '            if(rec){\n'
20130515 '                if (val == rec.get(this.displayField) && this.value == rec.get(this.valueField)){\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '                val = rec.get(this.valueField || this.displayField);\n'
20130515 '            }\n'
20130515 '            this.setValue(val);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getStyleClass: function(calendarId){\n'
20130515 "        if(calendarId && calendarId !== ''){\n"
20130515 '            var rec = this.store.getById(calendarId);\n'
20130515 "            return 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    setValue: function(value) {\n'
20130515 '        this.wrap.removeClass(this.getStyleClass(this.getValue()));\n'
20130515 '        value = value || this.store.getAt(0).data[Ext.ensible.cal.CalendarMappings.CalendarId.name];\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.setValue.call(this, value);\n'
20130515 '        this.wrap.addClass(this.getStyleClass(value));\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcombo', Ext.ensible.cal.CalendarCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 160,\n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'pattern',\n"
20130515 "    valueField: 'id',\n"
20130515 '    \n'
20130515 '    recurrenceText: {\n'
20130515 "        none: 'Does not repeat',\n"
20130515 "        daily: 'Daily',\n"
20130515 "        weekly: 'Weekly',\n"
20130515 "        monthly: 'Monthly',\n"
20130515 "        yearly: 'Yearly'\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 "        this.addEvents('recurrencechange');\n"
20130515 '        \n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 "            fields: ['id', 'pattern'],\n"
20130515 '            idIndex: 0,\n'
20130515 '            data: [\n'
20130515 "                ['NONE', this.recurrenceText.none],\n"
20130515 "                ['DAILY', this.recurrenceText.daily],\n"
20130515 "                ['WEEKLY', this.recurrenceText.weekly],\n"
20130515 "                ['MONTHLY', this.recurrenceText.monthly],\n"
20130515 "                ['YEARLY', this.recurrenceText.yearly]\n"
20130515 '            ]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initValue : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initValue.call(this);\n'
20130515 '        if(this.value != undefined){\n'
20130515 "            this.fireEvent('recurrencechange', this.value);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        var old = this.value;\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.setValue.call(this, v);\n'
20130515 '        if(old != v){\n'
20130515 "            this.fireEvent('recurrencechange', v);\n"
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencecombo', Ext.ensible.cal.RecurrenceCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' * Rrule info: http://www.kanzaki.com/docs/ical/rrule.html\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceField = Ext.extend(Ext.form.Field, {\n'
20130515 '    \n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 '    startDate: new Date().clearTime(),\n'
20130515 '    enableFx: true,\n'
20130515 '    \n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.initComponent.call(this);\n'
20130515 '        if(!this.height){\n'
20130515 '            this.autoHeight = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.frequencyCombo = new Ext.ensible.cal.RecurrenceCombo({\n'
20130515 "                id: this.id+'-frequency',\n"
20130515 '                listeners: {\n'
20130515 "                    'recurrencechange': {\n"
20130515 '                        fn: this.showOptions,\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            if(this.fieldLabel){\n'
20130515 '                this.frequencyCombo.fieldLabel = this.fieldLabel;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.innerCt = new Ext.Container({\n'
20130515 "                cls: 'extensible-recur-inner-ct',\n"
20130515 '                items: []\n'
20130515 '            });\n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'extensible-recur-ct',\n"
20130515 '                renderTo: ct,\n'
20130515 '                items: [this.frequencyCombo, this.innerCt]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.innerCt.ownerCt = this.fieldCt;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll(this.initSubComponents());\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '//    afterRender : function(){\n'
20130515 '//        Ext.ensible.cal.RecurrenceField.superclass.afterRender.call(this);\n'
20130515 '//        this.setStartDate(this.startDate);\n'
20130515 '//    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initValue : function(){\n'
20130515 '        this.setStartDate(this.startDate);\n'
20130515 '        \n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else if(this.frequency !== undefined){\n'
20130515 "            this.setValue('FREQ='+this.frequency);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('NONE');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showOptions : function(o){\n'
20130515 "        var layoutChanged = false, unit = 'day';\n"
20130515 '        \n'
20130515 "        if(o != 'NONE'){\n"
20130515 '            this.hideSubPanels();\n'
20130515 '        }\n'
20130515 '        this.frequency = o;\n'
20130515 '        \n'
20130515 '        switch(o){\n'
20130515 "            case 'DAILY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'WEEKLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.weekly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'week';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'MONTHLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.monthly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'month';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'YEARLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.yearly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'year';\n"
20130515 '                break;\n'
20130515 '            \n'
20130515 '            default:\n'
20130515 '                // case NONE\n'
20130515 '                this.hideInnerCt();\n'
20130515 '                return; \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(layoutChanged){\n'
20130515 '            this.innerCt.doLayout();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.showInnerCt();\n'
20130515 '        this.repeatEvery.updateLabel(unit);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showSubPanel : function(p){\n'
20130515 '        if (p.rendered) {\n'
20130515 '            p.show();\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(this.repeatEvery.rendered){\n'
20130515 '                // make sure weekly/monthly options show in the middle\n'
20130515 '                p = this.innerCt.insert(1, p);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                p = this.innerCt.add(p);\n'
20130515 '            }\n'
20130515 '            p.show();\n'
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showInnerCt: function(){\n'
20130515 '        if(!this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideIn('t', {\n"
20130515 '                    duration: .3\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.show();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideInnerCt: function(){\n'
20130515 '        if(this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideOut('t', {\n"
20130515 '                    duration: .3,\n'
20130515 "                    easing: 'easeIn',\n"
20130515 '                    callback: this.hideSubPanels,\n'
20130515 '                    scope: this\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.hide();\n'
20130515 '                this.hideSubPanels();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setStartDate : function(dt){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setStartDate(dt);\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getValue : function(){\n'
20130515 '        if(!this.rendered) {\n'
20130515 '            return this.value;\n'
20130515 '        }\n'
20130515 "        if(this.frequency=='NONE'){\n"
20130515 "            return '';\n"
20130515 '        }\n'
20130515 "        var value = 'FREQ='+this.frequency;\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            if(p.isVisible()){\n'
20130515 '                value += p.getValue();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        return value;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        this.value = v;\n'
20130515 '        \n'
20130515 "        if(v == null || v == '' || v == 'NONE'){\n"
20130515 "            this.frequencyCombo.setValue('NONE');\n"
20130515 "            this.showOptions('NONE');\n"
20130515 '            return this;\n'
20130515 '        }\n'
20130515 "        var parts = v.split(';');\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setValue(parts);\n'
20130515 '        });\n'
20130515 '        Ext.each(parts, function(p){\n'
20130515 "            if(p.indexOf('FREQ') > -1){\n"
20130515 "                var freq = p.split('=')[1];\n"
20130515 '                this.frequencyCombo.setValue(freq);\n'
20130515 '                this.showOptions(freq);\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideSubPanels : function(){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.hide();\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initSubComponents : function(){\n'
20130515 '        Ext.ensible.cal.recurrenceBase = Ext.extend(Ext.Container, {\n'
20130515 "            fieldLabel: ' ',\n"
20130515 "            labelSeparator: '',\n"
20130515 '            hideLabel: true,\n'
20130515 "            layout: 'table',\n"
20130515 "            anchor: '100%',\n"
20130515 '            startDate: this.startDate,\n'
20130515 '\n'
20130515 '            //TODO: This is not I18N-able:\n'
20130515 '            getSuffix : function(n){\n'
20130515 '                if(!Ext.isNumber(n)){\n'
20130515 "                    return '';\n"
20130515 '                }\n'
20130515 '                switch (n) {\n'
20130515 '                    case 1:\n'
20130515 '                    case 21:\n'
20130515 '                    case 31:\n'
20130515 '                        return "st";\n'
20130515 '                    case 2:\n'
20130515 '                    case 22:\n'
20130515 '                        return "nd";\n'
20130515 '                    case 3:\n'
20130515 '                    case 23:\n'
20130515 '                        return "rd";\n'
20130515 '                    default:\n'
20130515 '                        return "th";\n'
20130515 '                }\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            //shared by monthly and yearly components:\n'
20130515 '            initNthCombo: function(cbo){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    dt = this.startDate,\n'
20130515 '                    store = cbo.getStore(),\n'
20130515 '                    last = dt.getLastDateOfMonth().getDate(),\n'
20130515 '                    dayNum = dt.getDate(),\n'
20130515 "                    nthDate = dt.format('jS') + ' day',\n"
20130515 "                    isYearly = this.id.indexOf('-yearly') > -1,\n"
20130515 "                    yearlyText = ' in ' + dt.format('F'),\n"
20130515 '                    nthDayNum, nthDay, lastDay, lastDate, idx, data, s;\n'
20130515 '                    \n'
20130515 '                nthDayNum = Math.ceil(dayNum / 7);\n'
20130515 "                nthDay = nthDayNum + this.getSuffix(nthDayNum) + dt.format(' l');\n"
20130515 '                if(isYearly){\n'
20130515 '                    nthDate += yearlyText;\n'
20130515 '                    nthDay += yearlyText;\n'
20130515 '                }\n'
20130515 '                data = [[nthDate],[nthDay]];\n'
20130515 '                \n'
20130515 "                s = isYearly ? yearlyText : '';\n"
20130515 '                if(last-dayNum < 7){\n'
20130515 "                    data.push(['last '+dt.format('l')+s]);\n"
20130515 '                }\n'
20130515 '                if(last == dayNum){\n'
20130515 "                    data.push(['last day'+s]);\n"
20130515 '                }\n'
20130515 '                \n'
20130515 "                idx = store.find('field1', cbo.getValue());\n"
20130515 '                store.removeAll();\n'
20130515 '                cbo.clearValue();\n'
20130515 '                store.loadData(data);\n'
20130515 '                \n'
20130515 '                if(idx > data.length-1){\n'
20130515 '                    idx = data.length-1;\n'
20130515 '                }\n'
20130515 '                cbo.setValue(store.getAt(idx > -1 ? idx : 0).data.field1);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            setValue:Ext.emptyFn\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.repeatEvery = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-every',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'Repeat every'\n"
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-every-num',\n"
20130515 '                value: 1,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                enableKeyEvents: true,\n'
20130515 '                listeners: {\n'
20130515 "                    'keyup': {\n"
20130515 '                        fn: function(){\n'
20130515 '                            this.repeatEvery.updateLabel();\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-every-label'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.updateLabel();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = Ext.getCmp(this.id+'-num').getValue();\n"
20130515 "                return v > 1 ? ';INTERVAL='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('INTERVAL') > -1){\n"
20130515 "                        var interval = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(interval);\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            updateLabel: function(type){\n'
20130515 '                if(this.rendered){\n'
20130515 "                    var s = Ext.getCmp(this.id+'-num').getValue() == 1 ? '' : 's';\n"
20130515 "                    this.type = type ? type.toLowerCase() : this.type || 'day';\n"
20130515 "                    var lbl = Ext.getCmp(this.id+'-label');\n"
20130515 '                    if(lbl.rendered){\n'
20130515 "                        lbl.update(this.type + s + ' beginning ' + this.startDate.format('l, F j'));\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            afterRender: function(){\n'
20130515 '                Ext.ensible.cal.recurrenceBase.superclass.afterRender.call(this);\n'
20130515 '                this.updateLabel();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.weekly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-weekly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 2\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on:'\n"
20130515 '            },{\n'
20130515 "                xtype: 'checkboxgroup',\n"
20130515 "                id: this.id+'-weekly-days',\n"
20130515 '                items: [\n'
20130515 "                    {boxLabel: 'Sun', name: 'SU', id: this.id+'-weekly-SU'},\n"
20130515 "                    {boxLabel: 'Mon', name: 'MO', id: this.id+'-weekly-MO'},\n"
20130515 "                    {boxLabel: 'Tue', name: 'TU', id: this.id+'-weekly-TU'},\n"
20130515 "                    {boxLabel: 'Wed', name: 'WE', id: this.id+'-weekly-WE'},\n"
20130515 "                    {boxLabel: 'Thu', name: 'TH', id: this.id+'-weekly-TH'},\n"
20130515 "                    {boxLabel: 'Fri', name: 'FR', id: this.id+'-weekly-FR'},\n"
20130515 "                    {boxLabel: 'Sat', name: 'SA', id: this.id+'-weekly-SA'}\n"
20130515 '                ]\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.selectToday();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            selectToday: function(){\n'
20130515 '                this.clearValue();\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                Ext.getCmp(this.id + '-days').setValue(day, true);\n"
20130515 '            },\n'
20130515 '            clearValue: function(){\n'
20130515 "                Ext.getCmp(this.id + '-days').setValue([false, false, false, false, false, false, false]);\n"
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = '', sel = Ext.getCmp(this.id+'-days').getValue();\n"
20130515 '                Ext.each(sel, function(chk){\n'
20130515 '                    if(v.length > 0){\n'
20130515 "                        v += ',';\n"
20130515 '                    }\n'
20130515 '                    v += chk.name;\n'
20130515 '                });\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                return v.length > 0 && v != day ? ';BYDAY='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                this.clearValue();\n'
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('BYDAY') > -1){\n"
20130515 "                        var days = p.split('=')[1].split(','),\n"
20130515 '                            vals = {};\n'
20130515 '                            \n'
20130515 '                        Ext.each(days, function(d){\n'
20130515 '                            vals[d] = true;\n'
20130515 '                        }, this);\n'
20130515 '                        \n'
20130515 "                        Ext.getCmp(this.id+'-days').setValue(vals);\n"
20130515 '                        return set = true;\n'
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                \n'
20130515 '                if(!set){\n'
20130515 '                    this.selectToday();\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.monthly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-monthly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-monthly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 150,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'of each month'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase();\n"
20130515 '                \n'
20130515 '                if (idx > -1) {\n'
20130515 '                    switch(idx){\n'
20130515 "                        case 0:  return ';BYMONTHDAY='+dt.format('j');\n"
20130515 "                        case 1:  return ';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return ';BYDAY=-1'+day;\n"
20130515 "                        default: return ';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.yearly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-yearly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-yearly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 170,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'each year'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase(),\n"
20130515 "                    byMonth = ';BYMONTH='+dt.format('n');\n"
20130515 '                \n'
20130515 '                if(idx > -1){\n'
20130515 '                    switch(idx){\n'
20130515 '                        case 0:  return byMonth;\n'
20130515 "                        case 1:  return byMonth+';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return byMonth+';BYDAY=-1'+day;\n"
20130515 "                        default: return byMonth+';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.until = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-until',\n"
20130515 "            untilDateFormat: 'Ymd\\\\T000000\\\\Z',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 5\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'and continuing'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-until-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 85,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 "                value: 'forever',\n"
20130515 "                store: ['forever', 'for', 'until'],\n"
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(cbo, rec){\n'
20130515 "                            var dt = Ext.getCmp(this.id+'-until-date');\n"
20130515 "                            if(rec.data.field1 == 'until'){\n"
20130515 '                                dt.show();\n'
20130515 "                                if (dt.getValue() == '') {\n"
20130515 '                                    dt.setValue(this.startDate.add(Date.DAY, 5));\n'
20130515 '                                    dt.setMinValue(this.startDate.clone().add(Date.DAY, 1));\n'
20130515 '                                }\n'
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 '                                dt.hide();\n'
20130515 '                            }\n'
20130515 "                            if(rec.data.field1 == 'for'){\n"
20130515 "                                Ext.getCmp(this.id+'-until-num').show();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').show();\n"
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 "                                Ext.getCmp(this.id+'-until-num').hide();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').hide();\n"
20130515 '                            }\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'datefield',\n"
20130515 "                id: this.id+'-until-date',\n"
20130515 '                showToday: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-until-num',\n"
20130515 '                value: 5,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-until-endlabel',\n"
20130515 "                text: 'occurrences',\n"
20130515 '                hidden: true\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var dt = Ext.getCmp(this.id+'-date');\n"
20130515 '                if(dt.isVisible()){\n'
20130515 "                    return ';UNTIL='+dt.getValue().format(this.untilDateFormat);\n"
20130515 '                }\n'
20130515 "                var ct = Ext.getCmp(this.id+'-num');\n"
20130515 '                if(ct.isVisible()){\n'
20130515 "                    return ';COUNT='+ct.getValue();\n"
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('COUNT') > -1){\n"
20130515 "                        var count = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('for');\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(count).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').show();\n"
20130515 '                    }\n'
20130515 "                    else if(p.indexOf('UNTIL') > -1){\n"
20130515 "                        var dt = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('until');\n"
20130515 "                        Ext.getCmp(this.id+'-date').setValue(Date.parseDate(dt, this.untilDateFormat)).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').hide();\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        return [this.repeatEvery, this.weekly, this.monthly, this.yearly, this.until];\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencefield', Ext.ensible.cal.RecurrenceField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DateRangeField\n'
20130515 ' * @extends Ext.form.Field\n'
20130515 ' * <p>A combination field that includes start and end dates and times, as well as an optional all-day checkbox.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DateRangeField = Ext.extend(Ext.form.Field, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} toText\n'
20130515 "     * The text to display in between the date/time fields (defaults to 'to')\n"
20130515 '     */\n'
20130515 "    toText: 'to',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} allDayText\n'
20130515 "     * The text to display as the label for the all day checkbox (defaults to 'All day')\n"
20130515 '     */\n'
20130515 "    allDayText: 'All day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String/Boolean} singleLine\n'
20130515 '     * This value can be set explicitly to <code>true</code> or <code>false</code> to force the field to render on\n'
20130515 "     * one line or two lines respectively.  The default value is <code>'auto'</code> which means that the field will\n"
20130515 "     * calculate its container's width and compare it to {@link singleLineMinWidth} to determine whether to render \n"
20130515 '     * on one line or two automatically.  Note that this only applies at render time -- once the field is rendered\n'
20130515 '     * the layout cannot be changed.\n'
20130515 '     */\n'
20130515 "    singleLine: 'auto',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} singleLineMinWidth\n'
20130515 "     * If {@link singleLine} is set to 'auto' it will use this value to determine whether to render the field on one\n"
20130515 '     * line or two. This value is the approximate minimum width required to render the field on a single line, so if\n'
20130515 "     * the field's container is narrower than this value it will automatically be rendered on two lines.\n"
20130515 '     */\n'
20130515 '    singleLineMinWidth: 490,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} dateFormat\n'
20130515 "     * The date display format used by the date fields (defaults to 'n/j/Y') \n"
20130515 '     */\n'
20130515 "    dateFormat: 'n/j/Y',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.startDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-start-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.startTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-start-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.endTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-end-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            })\n'
20130515 '            this.endDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-end-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.allDay = new Ext.form.Checkbox({\n'
20130515 "                id: this.id+'-allday',\n"
20130515 '                hidden: this.showTimes === false || this.showAllDay === false,\n'
20130515 '                boxLabel: this.allDayText,\n'
20130515 '                handler: function(chk, checked){\n'
20130515 '                    this.startTime.setVisible(!checked);\n'
20130515 '                    this.endTime.setVisible(!checked);\n'
20130515 '                },\n'
20130515 '                scope: this\n'
20130515 '            });\n'
20130515 '            this.toLabel = new Ext.form.Label({\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-to-label',\n"
20130515 '                text: this.toText\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            var singleLine = this.singleLine;\n'
20130515 "            if(singleLine == 'auto'){\n"
20130515 "                var el, w = this.ownerCt.getWidth() - this.ownerCt.getEl().getPadding('lr');\n"
20130515 "                if(el = this.ownerCt.getEl().child('.x-panel-body')){\n"
20130515 "                    w -= el.getPadding('lr');\n"
20130515 '                }\n'
20130515 "                if(el = this.ownerCt.getEl().child('.x-form-item-label')){\n"
20130515 "                    w -= el.getWidth() - el.getPadding('lr');\n"
20130515 '                }\n'
20130515 '                singleLine = w <= this.singleLineMinWidth ? false : true;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'ext-dt-range',\n"
20130515 '                renderTo: ct,\n'
20130515 "                layout: 'table',\n"
20130515 '                layoutConfig: {\n'
20130515 '                    columns: singleLine ? 6 : 3\n'
20130515 '                },\n'
20130515 '                defaults: {\n'
20130515 '                    hideParent: true\n'
20130515 '                },\n'
20130515 '                items:[\n'
20130515 '                    this.startDate,\n'
20130515 '                    this.startTime,\n'
20130515 '                    this.toLabel,\n'
20130515 '                    singleLine ? this.endTime : this.endDate,\n'
20130515 '                    singleLine ? this.endDate : this.endTime,\n'
20130515 '                    this.allDay\n'
20130515 '                ]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll([this.startDate, this.endDate, this.toLabel, this.startTime, this.endTime, this.allDay]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.onRender.call(this, ct, position);\n'
20130515 '        \n'
20130515 '        if(!singleLine){\n'
20130515 "            this.el.child('tr').addClass('ext-dt-range-row1');\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onFieldChange: function(type, startend){\n'
20130515 '        this.checkDates(type, startend);\n'
20130515 "        this.fireEvent('change', this, this.getValue());\n"
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    checkDates: function(type, startend){\n'
20130515 "        var startField = Ext.getCmp(this.id+'-start-'+type),\n"
20130515 "            endField = Ext.getCmp(this.id+'-end-'+type),\n"
20130515 "            startValue = this.getDT('start'),\n"
20130515 "            endValue = this.getDT('end');\n"
20130515 '\n'
20130515 '        if(startValue > endValue){\n'
20130515 "            if(startend=='start'){\n"
20130515 '                endField.setValue(startValue);\n'
20130515 '            }else{\n'
20130515 '                startField.setValue(endValue);\n'
20130515 "                this.checkDates(type, 'start');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        if(type=='date'){\n"
20130515 "            this.checkDates('time', startend);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns an array containing the following values in order:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The start date/time</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The end date/time</div></li>\n'
20130515 '     * <li><b><code>Boolean</code></b> : <div class="sub-desc">True if the dates are all-day, false \n'
20130515 '     * if the time values should be used</div></li><ul></div>\n'
20130515 '     * @return {Array} The array of return values\n'
20130515 '     */\n'
20130515 '    getValue: function(){\n'
20130515 '        return [\n'
20130515 "            this.getDT('start'), \n"
20130515 "            this.getDT('end'),\n"
20130515 '            this.allDay.getValue()\n'
20130515 '        ];\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private getValue helper\n'
20130515 '    getDT: function(startend){\n'
20130515 "        var time = this[startend+'Time'].getValue(),\n"
20130515 "            dt = this[startend+'Date'].getValue();\n"
20130515 '            \n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format(this[startend+'Date'].format);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            return null;\n'
20130515 '        };\n'
20130515 "        if(time != ''){\n"
20130515 "            return Date.parseDate(dt+' '+time, this[startend+'Date'].format+' '+this[startend+'Time'].format);\n"
20130515 '        }\n'
20130515 "        return Date.parseDate(dt, this[startend+'Date'].format);\n"
20130515 '        \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the values to use in the date range.\n'
20130515 '     * @param {Array/Date/Object} v The value(s) to set into the field. Valid types are as follows:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>Array</code></b> : <div class="sub-desc">An array containing, in order, a start date, end date and all-day flag.\n'
20130515 '     * This array should exactly match the return type as specified by {@link #getValue}.</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">A single Date object, which will be used for both the start and\n'
20130515 '     * end dates in the range.  The all-day flag will be defaulted to false.</div></li>\n'
20130515 '     * <li><b><code>Object</code></b> : <div class="sub-desc">An object containing properties for StartDate, EndDate and IsAllDay\n'
20130515 '     * as defined in {@link Ext.ensible.cal.EventMappings}.</div></li><ul></div>\n'
20130515 '     */\n'
20130515 '    setValue: function(v){\n'
20130515 '        if(Ext.isArray(v)){\n'
20130515 "            this.setDT(v[0], 'start');\n"
20130515 "            this.setDT(v[1], 'end');\n"
20130515 '            this.allDay.setValue(!!v[2]);\n'
20130515 '        }\n'
20130515 '        else if(Ext.isDate(v)){\n'
20130515 "            this.setDT(v, 'start');\n"
20130515 "            this.setDT(v, 'end');\n"
20130515 '            this.allDay.setValue(false);\n'
20130515 '        }\n'
20130515 '        else if(v[Ext.ensible.cal.EventMappings.StartDate.name]){ //object\n'
20130515 "            this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'start');\n"
20130515 "            if(!this.setDT(v[Ext.ensible.cal.EventMappings.EndDate.name], 'end')){\n"
20130515 "                this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'end');\n"
20130515 '            }\n'
20130515 '            this.allDay.setValue(!!v[Ext.ensible.cal.EventMappings.IsAllDay.name]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private setValue helper\n'
20130515 '    setDT: function(dt, startend){\n'
20130515 '        if(dt && Ext.isDate(dt)){\n'
20130515 "            this[startend+'Date'].setValue(dt);\n"
20130515 "            this[startend+'Time'].setValue(dt.format(this[startend+'Time'].format));\n"
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    isDirty: function(){\n'
20130515 '        var dirty = false;\n'
20130515 '        if(this.rendered && !this.disabled) {\n'
20130515 '            this.items.each(function(item){\n'
20130515 '                if (item.isDirty()) {\n'
20130515 '                    dirty = true;\n'
20130515 '                    return false;\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDisable : function(){\n'
20130515 "        this.delegateFn('disable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEnable : function(){\n'
20130515 "        this.delegateFn('enable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    reset : function(){\n'
20130515 "        this.delegateFn('reset');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    delegateFn : function(fn){\n'
20130515 '        this.items.each(function(item){\n'
20130515 '            if (item[fn]) {\n'
20130515 '                item[fn]();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    beforeDestroy: function(){\n'
20130515 '        Ext.destroy(this.fieldCt);\n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.beforeDestroy.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @method getRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    getRawValue : Ext.emptyFn,\n'
20130515 '    /**\n'
20130515 '     * @method setRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    setRawValue : Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daterangefield', Ext.ensible.cal.DateRangeField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ReminderField\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing a reminder setting for an event.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 'width: 200,\n'
20130515 "fieldLabel: 'Reminder',\n"
20130515 "mode: 'local',\n"
20130515 "triggerAction: 'all',\n"
20130515 'forceSelection: true,\n'
20130515 "displayField: 'desc',\n"
20130515 "valueField: 'value',\n"
20130515 "noneText: 'None',\n"
20130515 "atStartTimeText: 'At start time',\n"
20130515 "reminderValueFormat: '{0} {1} before start'\n"
20130515 '</code></pre>\n'
20130515 ' * <p>To customize the descriptions in the dropdown list override the following methods: \n'
20130515 ' * {@link #getMinutesText}, {@link #getHoursText}, {@link #getDaysText} and {@link #getWeeksText}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ReminderField = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 200,\n'
20130515 "    fieldLabel: 'Reminder',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'desc',\n"
20130515 "    valueField: 'value',\n"
20130515 "    noneText: 'None',\n"
20130515 "    atStartTimeText: 'At start time',\n"
20130515 "    reminderValueFormat: '{0} {1} before start',\n"
20130515 '    \n'
20130515 '    // the following are all deprecated in favor of the corresponding get* template methods.\n'
20130515 '    // they are still here only for backwards-compatibility and will be removed in a future release.\n'
20130515 "    minutesText: 'minutes',\n"
20130515 "    hourText: 'hour',\n"
20130515 "    hoursText: 'hours',\n"
20130515 "    dayText: 'day',\n"
20130515 "    daysText: 'days',\n"
20130515 "    weekText: 'week',\n"
20130515 "    weeksText: 'weeks',\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the list of reminder values used as the contents of the combo list. This method is provided so that\n'
20130515 '     * the value list can be easily overridden as needed.\n'
20130515 '     * @return {Array} A 2-dimensional array of type [{String}, {String}] which contains the value and description\n'
20130515 '     * respectively of each item in the combo list. By default the value is the number of minutes for the selected \n'
20130515 "     * time value (e.g., value 120 == '2 hours') with empty string for no value, but these can be set to anything.\n"
20130515 '     */\n'
20130515 '    getValueList: function(){\n'
20130515 '        var me = this,\n'
20130515 '            fmt = me.reminderValueFormat,\n'
20130515 '            stringFormat = String.format;\n'
20130515 '            \n'
20130515 '        return [\n'
20130515 "            ['', me.noneText],\n"
20130515 "            ['0', me.atStartTimeText],\n"
20130515 "            ['5', stringFormat(fmt, '5', me.getMinutesText(5))],\n"
20130515 "            ['15', stringFormat(fmt, '15', me.getMinutesText(15))],\n"
20130515 "            ['30', stringFormat(fmt, '30', me.getMinutesText(30))],\n"
20130515 "            ['60', stringFormat(fmt, '1', me.getHoursText(1))],\n"
20130515 "            ['90', stringFormat(fmt, '1.5', me.getHoursText(1.5))],\n"
20130515 "            ['120', stringFormat(fmt, '2', me.getHoursText(2))],\n"
20130515 "            ['180', stringFormat(fmt, '3', me.getHoursText(3))],\n"
20130515 "            ['360', stringFormat(fmt, '6', me.getHoursText(6))],\n"
20130515 "            ['720', stringFormat(fmt, '12', me.getHoursText(12))],\n"
20130515 "            ['1440', stringFormat(fmt, '1', me.getDaysText(1))],\n"
20130515 "            ['2880', stringFormat(fmt, '2', me.getDaysText(2))],\n"
20130515 "            ['4320', stringFormat(fmt, '3', me.getDaysText(3))],\n"
20130515 "            ['5760', stringFormat(fmt, '4', me.getDaysText(4))],\n"
20130515 "            ['7200', stringFormat(fmt, '5', me.getDaysText(5))],\n"
20130515 "            ['10080', stringFormat(fmt, '1', me.getWeeksText(1))],\n"
20130515 "            ['20160', stringFormat(fmt, '2', me.getWeeksText(2))]\n"
20130515 '        ]\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of minutes\n'
20130515 "     * prior to the due time (defaults to 'minute' when the passed value === 1, else 'minutes').\n"
20130515 '     * @param {Number} numMinutes The number of minutes prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getMinutesText: function(numMinutes){\n'
20130515 '        return numMinutes === 1 ? this.minuteText : this.minutesText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of hours\n'
20130515 "     * prior to the due time (defaults to 'hour' when the passed value === 1, else 'hours').\n"
20130515 '     * @param {Number} numHours The number of hours prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getHoursText: function(numHours){\n'
20130515 '        return numHours === 1 ? this.hourText : this.hoursText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of days\n'
20130515 "     * prior to the due time (defaults to 'day' when the passed value === 1, else 'days').\n"
20130515 '     * @param {Number} numDays The number of days prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getDaysText: function(numDays){\n'
20130515 '        return numDays === 1 ? this.dayText : this.daysText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of weeks\n'
20130515 "     * prior to the due time (defaults to 'week' when the passed value === 1, else 'weeks').\n"
20130515 '     * @param {Number} numWeeks The number of weeks prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getWeeksText: function(numWeeks){\n'
20130515 '        return numWeeks === 1 ? this.weekText : this.weeksText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ReminderField.superclass.initComponent.call(this);\n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 '            fields: [this.valueField, this.displayField],\n'
20130515 '            idIndex: 0,\n'
20130515 '            data: this.getValueList()\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    initValue : function(){\n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.reminderfield', Ext.ensible.cal.ReminderField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ColorPalette\n'
20130515 ' * @extends Ext.ColorPalette\n'
20130515 ' * Simple color palette class for choosing colors specifically for calendars. This is a lightly modified version\n'
20130515 ' * of the default Ext ColorPalette that is based on calendar ids rather than hex color codes so that the colors\n'
20130515 ' * can be easily modified via CSS and automatically applied to calendars. The specific colors used by default are\n'
20130515 ' * also chosen to provide good color contrast when displayed in calendars.\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * Create a new ColorPalette\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype extensible.calendarcolorpalette\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ColorPalette = Ext.extend(Ext.ColorPalette, {\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    colorCount: 32,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Function} handler\n'
20130515 '     * Optional. A function that will handle the select event of this color palette.\n'
20130515 '     * The handler is passed the following parameters:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><code>palette</code> : ColorPalette<div class="sub-desc">The {@link #palette Ext.ensible.cal.ColorPalette} instance.</div></li>\n'
20130515 '     * <li><code>colorId</code> : String<div class="sub-desc">The id that identifies the selected color and relates it to a calendar.</div></li>\n'
20130515 '     * </ul></div>\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ColorPalette.superclass.initComponent.call(this);\n'
20130515 "        this.addClass('x-calendar-palette');\n"
20130515 '        this.tpl = new Ext.XTemplate(\'<tpl for="."><a class="x-unselectable x-cal-color" id="\' + this.id +\n'
20130515 '            \'-color-{.}" href="#" hidefocus="on"><em><span class="x-cal-{.}">&#160;</span></em></a></tpl>\');\n'
20130515 '            \n'
20130515 '        if(this.handler){\n'
20130515 "            this.on('select', this.handler, this.scope || this);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.colors = [];\n'
20130515 '        for(var i=1; i<=this.colorCount; i++){\n'
20130515 '            this.colors.push(i);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleClick : function(e, t){\n'
20130515 '        e.preventDefault();\n'
20130515 "        var el = e.getTarget('.x-cal-color', 3, true);\n"
20130515 '        if(el){\n'
20130515 "            var id = el.id.split('-color-')[1];\n"
20130515 '            this.select(id);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Selects the specified color in the palette (fires the {@link #select} event)\n'
20130515 '     * @param {Number} colorId The id that identifies the selected color and relates it to a calendar\n'
20130515 '     * @param {Boolean} suppressEvent (optional) True to stop the select event from firing. Defaults to <tt>false</tt>.\n'
20130515 '     */\n'
20130515 '    select : function(colorId, suppressEvent){\n'
20130515 '        if(colorId != this.value){\n'
20130515 '            if(this.value){\n'
20130515 "                Ext.fly(this.id+'-color-'+this.value).removeClass('x-color-palette-sel');\n"
20130515 '            }\n'
20130515 "            Ext.get(this.id+'-color-'+colorId).addClass('x-color-palette-sel');\n"
20130515 '            this.value = colorId;\n'
20130515 '            \n'
20130515 '            if(suppressEvent !== true){\n'
20130515 "                this.fireEvent('select', this, colorId);\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcolorpalette', Ext.ensible.cal.ColorPalette);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarListMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * <p>A menu containing a {@link Ext.ensible.cal.ColorPalette palette} for choosing calendar colors, \n'
20130515 ' * as well as other calendar-specific options.</p>\n'
20130515 ' * @xtype extensible.calendarlistmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarListMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} cls\n'
20130515 "     * An optional extra CSS class that will be added to this component's Element (defaults to 'x-calendar-list-menu'). \n"
20130515 '     * This can be useful for adding customized styles to the component or any of its children using standard CSS rules.\n'
20130515 '     */\n'
20130515 "    cls : 'x-calendar-list-menu',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} displayOnlyThisCalendarText\n'
20130515 "     * The text to display for the 'Display only this calendar' option in the menu.\n"
20130515 '     */\n'
20130515 "    displayOnlyThisCalendarText: 'Display only this calendar',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} calendarId\n'
20130515 '     * The id of the calendar to be associated with this menu. This calendarId will be passed\n'
20130515 '     * back with any events from this menu to identify the calendar to be acted upon. The calendar\n'
20130515 '     * id can also be changed at any time after creation by calling {@link setCalendar}.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @property palette\n'
20130515 '     * @type ColorPalette\n'
20130515 '     * The {@link Ext.ensible.cal.ColorPalette ColorPalette} instance for this CalendarListMenu\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 "            'showcalendar',\n"
20130515 "            'hidecalendar',\n"
20130515 "            'radiocalendar',\n"
20130515 "            'colorchange'\n"
20130515 '        );\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.displayOnlyThisCalendarText,\n'
20130515 "                iconCls: 'extensible-cal-icon-cal-show',\n"
20130515 '                handler: this.handleRadioCalendarClick.createDelegate(this)\n'
20130515 "            }, '-', {\n"
20130515 "                xtype: 'extensible.calendarcolorpalette',\n"
20130515 '                handler: this.handleColorSelect.createDelegate(this)\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.afterRender.call(this);\n'
20130515 "        this.palette = this.findByType('extensible.calendarcolorpalette')[0];\n"
20130515 '        \n'
20130515 '        if(this.colorId){\n'
20130515 '            this.palette.select(this.colorId, true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendarClick: function(e, t){\n'
20130515 "        this.fireEvent('radiocalendar', this, this.calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorSelect: function(cp, selColorId){\n'
20130515 "        this.fireEvent('colorchange', this, this.calendarId, selColorId, this.colorId);\n"
20130515 '        this.colorId = selColorId;\n'
20130515 '        this.menuHide();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the calendar id and color id to be associated with this menu. This should be called each time the\n'
20130515 '     * menu is shown relative to a new calendar.\n'
20130515 '     * @param {Number} calendarId The id of the calendar to be associated\n'
20130515 '     * @param {Number} colorId The id of the color to be pre-selected in the color palette\n'
20130515 '     * @return {Ext.ensible.cal.CalendarListMenu} this\n'
20130515 '     */\n'
20130515 '    setCalendar: function(id, cid){\n'
20130515 '        this.calendarId = id;\n'
20130515 '        this.colorId = cid;\n'
20130515 '        \n'
20130515 '        if(this.rendered){\n'
20130515 '            this.palette.select(cid, true);\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    menuHide : function(){\n'
20130515 '        if(this.hideOnClick){\n'
20130515 '            this.hide(true);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlistmenu', Ext.ensible.cal.CalendarListMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.EventContextMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * The context menu displayed for calendar events in any {@link Ext.ensible.cal.CalendarView CalendarView} subclass. \n'
20130515 ' * @xtype extensible.eventcontextmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventContextMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} editDetailsText\n'
20130515 "     * The text to display for the 'Edit Details' option in the menu.\n"
20130515 '     */\n'
20130515 "    editDetailsText: 'Edit Details',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} deleteText\n'
20130515 "     * The text to display for the 'Delete' option in the menu.\n"
20130515 '     */\n'
20130515 "    deleteText: 'Delete',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} moveToText\n'
20130515 "     * The text to display for the 'Move to...' option in the menu.\n"
20130515 '     */\n'
20130515 "    moveToText: 'Move to...',\n"
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the event details\n'
20130515 '             * (by default, in an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should \n'
20130515 '             * transfer the current event record to the appropriate instance of the detailed form by showing\n'
20130515 '             * the form and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'editdetails',\n"
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after the user selectes the option to delete an event. Note that this menu does not actually\n'
20130515 '             * delete the event from the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the deletion and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be deleted\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'eventdelete',\n"
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after the user selects a date in the calendar picker under the "move event" menu option. Note that this menu does not actually\n'
20130515 '             * update the event in the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the move action and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be moved\n'
20130515 '             * @param {Date} dt The new start date for the event (the existing event start time will be preserved)\n'
20130515 '             */\n'
20130515 "            'eventmove'\n"
20130515 '        );\n'
20130515 '        this.buildMenu();\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Overrideable method intended for customizing the menu items. This should only to be used for overriding \n'
20130515 '     * or called from a subclass and should not be called directly from application code.\n'
20130515 '     */\n'
20130515 '    buildMenu: function(){\n'
20130515 '        if(this.rendered){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.dateMenu = new Ext.menu.DateMenu({\n'
20130515 '            scope: this,\n'
20130515 '            handler: function(dp, dt){\n'
20130515 '                dt = Ext.ensible.Date.copyTime(this.rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt);\n'
20130515 "                this.fireEvent('eventmove', this, this.rec, dt);\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.editDetailsText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-edit',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('editdetails', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 '            },{\n'
20130515 '                text: this.deleteText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-del',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('eventdelete', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 "            },'-',{\n"
20130515 '                text: this.moveToText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-move',\n"
20130515 '                menu: this.dateMenu\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the specified event at the given XY position. \n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event\n'
20130515 '     * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '     * @param {Array} xy The X & Y [x, y] values for the position at which to show the menu (coordinates are page-based) \n'
20130515 '     */\n'
20130515 '    showForEvent: function(rec, el, xy){\n'
20130515 '        this.rec = rec;\n'
20130515 '        this.ctxEl = el;\n'
20130515 '        this.dateMenu.picker.setValue(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        this.showAt(xy);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onHide : function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.onHide.call(this);\n'
20130515 '        delete this.ctxEl;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventcontextmenu', Ext.ensible.cal.EventContextMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarList\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is a {@link Ext.Panel panel} subclass that renders a list of available calendars\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarList = Ext.extend(Ext.Panel, {\n'
20130515 "    title: 'Calendars',\n"
20130515 '    collapsible: true,\n'
20130515 '    autoHeight: true,\n'
20130515 "    layout: 'fit',\n"
20130515 "    menuSelector: 'em',\n"
20130515 "    width: 100, // this should be overridden by this container's layout\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} store\n'
20130515 '     * A {@link Ext.data.Store store} containing records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * This is a required config and is used to populate the calendar list.  The CalendarList widget will also listen for events from\n'
20130515 '     * the store and automatically refresh iteself in the event that the underlying calendar records in the store change.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 "        this.addClass('x-calendar-list');\n"
20130515 '        Ext.ensible.cal.CalendarList.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(ct, position){\n'
20130515 '        Ext.ensible.cal.CalendarList.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        if(this.store){\n'
20130515 '            this.setStore(this.store, true);\n'
20130515 '        }\n'
20130515 '        this.refresh();\n'
20130515 '        \n'
20130515 "        this.body.on('click', this.onClick, this);\n"
20130515 "        this.body.on('mouseover', this.onMouseOver, this, {delegate: 'li'});\n"
20130515 "        this.body.on('mouseout', this.onMouseOut, this, {delegate: 'li'});\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getListTemplate : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evr {colorCls} {hiddenCls}">{title}<em>&#160;</em></li>\',\n'
20130515 "                    '</tpl></ul>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evo {colorCls} {hiddenCls}">\',\n'
20130515 '                            \'<div class="ext-cal-evm">\',\n'
20130515 '                                \'<div class="ext-cal-evi">{title}<em>&#160;</em></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</li>',\n"
20130515 "                    '</tpl></ul>'\n"
20130515 '                );\n'
20130515 '            this.tpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.tpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the store used to display the available calendars. It should contain \n'
20130515 '     * records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        if(!initial && this.store){\n'
20130515 '            this.store.un("load", this.refresh, this);\n'
20130515 '            this.store.un("add", this.refresh, this);\n'
20130515 '            this.store.un("remove", this.refresh, this);\n'
20130515 '            this.store.un("update", this.onUpdate, this);\n'
20130515 '            this.store.un("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("load", this.refresh, this);\n'
20130515 '            store.on("add", this.refresh, this);\n'
20130515 '            store.on("remove", this.refresh, this);\n'
20130515 '            store.on("update", this.onUpdate, this);\n'
20130515 '            store.on("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onUpdate : function(ds, rec, operation){\n'
20130515 '        // ignore EDIT notifications, only refresh after a commit\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.refresh();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Refreshes the calendar list so that it displays based on the most current state of\n'
20130515 '     * the underlying calendar store. Usually this method does not need to be called directly\n'
20130515 "     * as the control is automatically bound to the store's events, but it is available in the\n"
20130515 '     * event that a manual refresh is ever needed.\n'
20130515 '     */\n'
20130515 '    refresh: function(){\n'
20130515 '        if(this.skipRefresh){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        var data = [], i = 0, o = null,\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            o = {\n'
20130515 "                cmpId: this.id + '__' + recs[i].data[CM.CalendarId.name],\n"
20130515 '                title: recs[i].data[CM.Title.name],\n'
20130515 '                colorCls: this.getColorCls(recs[i].data[CM.ColorId.name])\n'
20130515 '            };\n'
20130515 '            if(recs[i].data[CM.IsHidden.name] === true){\n'
20130515 "                o.hiddenCls = 'ext-cal-hidden';\n"
20130515 '            }\n'
20130515 '            data[data.length] = o;\n'
20130515 '        }\n'
20130515 '        this.getListTemplate().overwrite(this.body, data);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getColorCls: function(colorId){\n'
20130515 "        return 'x-cal-'+colorId+'-ad';\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    toggleCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id),\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            isHidden = rec.data[CM.IsHidden.name]; \n'
20130515 '        \n'
20130515 '        rec.set([CM.IsHidden.name], !isHidden);\n'
20130515 '        \n'
20130515 '        if(commit !== false){\n'
20130515 '            rec.commit();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    hideCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] !== true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    radioCalendar: function(id){\n'
20130515 '        var i = 0, recId,\n'
20130515 '            calendarId = Ext.ensible.cal.CalendarMappings.CalendarId.name,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            recId = recs[i].data[calendarId];\n'
20130515 '            // make a truthy check so that either numeric or string ids can match\n'
20130515 '            if(recId == id){\n'
20130515 '                this.showCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.hideCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // store.commitChanges() just loops over each modified record and calls rec.commit(),\n'
20130515 '        // which in turns fires an update event that would cause a full refresh for each record.\n'
20130515 '        // To avoid this we simply set a flag and make sure we only refresh once per commit set.\n'
20130515 '        this.skipRefresh = true;\n'
20130515 '        this.store.commitChanges();\n'
20130515 '        delete this.skipRefresh;\n'
20130515 '        this.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOver: function(e, t){\n'
20130515 "        Ext.fly(t).addClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOut: function(e, t){\n'
20130515 "        Ext.fly(t).removeClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarId: function(el){\n'
20130515 "        return el.id.split('__')[1];\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarItemEl: function(calendarId){\n'
20130515 "        return Ext.get(this.id+'__'+calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        var el;\n'
20130515 '        if(el = e.getTarget(this.menuSelector, 3, true)){\n'
20130515 '            this.showEventMenu(el, e.getXY());\n'
20130515 '        }\n'
20130515 "        else if(el = e.getTarget('li', 3, true)){\n"
20130515 '            this.toggleCalendar(this.getCalendarId(el));\n'
20130515 '        } \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorChange: function(menu, id, colorId, origColorId){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name] = colorId;\n'
20130515 '        rec.commit();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendar: function(menu, id){\n'
20130515 '        this.radioCalendar(id);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showEventMenu : function(el, xy){\n'
20130515 "        var id = this.getCalendarId(el.parent('li')),\n"
20130515 '            rec = this.store.getById(id),\n'
20130515 '            colorId = rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n'
20130515 '            \n'
20130515 '        if(!this.menu){\n'
20130515 '            this.menu = new Ext.ensible.cal.CalendarListMenu();\n'
20130515 "            this.menu.on('colorchange', this.handleColorChange, this);\n"
20130515 "            this.menu.on('radiocalendar', this.handleRadioCalendar, this);\n"
20130515 '        }\n'
20130515 '        this.menu.setCalendar(id, colorId);\n'
20130515 '        this.menu.showAt(xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlist', Ext.ensible.cal.CalendarList);/**\n"
20130515 ' * @class Ext.ensible.cal.EventEditForm\n'
20130515 ' * @extends Ext.form.FormPanel\n'
20130515 ' * <p>A custom form used for detailed editing of events.</p>\n'
20130515 ' * <p>This is pretty much a standard form that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. It is also configured to automatically bind records of type {@link Ext.ensible.cal.EventRecord}\n'
20130515 ' * to and from the form.</p>\n'
20130515 ' * <p>This form also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 'labelWidth: 65,\n'
20130515 'labelWidthRightCol: 65,\n'
20130515 'colWidthLeft: .6,\n'
20130515 'colWidthRight: .4,\n'
20130515 "title: 'Event Form',\n"
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "reminderLabelText: 'Reminder',\n"
20130515 "notesLabelText: 'Notes',\n"
20130515 "locationLabelText: 'Location',\n"
20130515 "webLinkLabelText: 'Web Link',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "repeatsLabelText: 'Repeats',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 'border: false,\n'
20130515 "buttonAlign: 'center',\n"
20130515 'autoHeight: true // to allow for the notes field to autogrow\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditForm = Ext.extend(Ext.form.FormPanel, {\n'
20130515 '    labelWidth: 65,\n'
20130515 '    labelWidthRightCol: 65,\n'
20130515 '    colWidthLeft: .6,\n'
20130515 '    colWidthRight: .4,\n'
20130515 "    title: 'Event Form',\n"
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    reminderLabelText: 'Reminder',\n"
20130515 "    notesLabelText: 'Notes',\n"
20130515 "    locationLabelText: 'Location',\n"
20130515 "    webLinkLabelText: 'Web Link',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    repeatsLabelText: 'Repeats',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 '    border: false,\n'
20130515 "    buttonAlign: 'center',\n"
20130515 '    autoHeight: true, // to allow for the notes field to autogrow\n'
20130515 '    \n'
20130515 '    /* // not currently supported\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false,\n'
20130515 '    \n'
20130515 '    // private properties:\n'
20130515 "    layout: 'column',\n"
20130515 "    cls: 'ext-evt-edit-form',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true\n'
20130515 '        });\n'
20130515 '                \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 "            anchor: '90%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 '            fieldLabel: this.datesLabelText,\n'
20130515 '            singleLine: false,\n'
20130515 "            anchor: '90%',\n"
20130515 '            listeners: {\n'
20130515 "                'change': this.onDateChange.createDelegate(this)\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        this.reminderField = new Ext.ensible.cal.ReminderField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Reminder.name,\n'
20130515 '            fieldLabel: this.reminderLabelText\n'
20130515 '        });\n'
20130515 '        this.notesField = new Ext.form.TextArea({\n'
20130515 '            fieldLabel: this.notesLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Notes.name,\n'
20130515 '            grow: true,\n'
20130515 '            growMax: 150,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.locationField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.locationLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Location.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.urlField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.webLinkLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Url.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        \n'
20130515 '        var leftFields = [this.titleField, this.dateRangeField, this.reminderField], \n'
20130515 '            rightFields = [this.notesField, this.locationField, this.urlField];\n'
20130515 '            \n'
20130515 '        if(this.enableRecurrence){\n'
20130515 '            this.recurrenceField = new Ext.ensible.cal.RecurrenceField({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.RRule.name,\n'
20130515 '                fieldLabel: this.repeatsLabelText,\n'
20130515 "                anchor: '100%'\n"
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.recurrenceField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                store: this.calendarStore,\n'
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name\n'
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.calendarField);\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.items = [{\n'
20130515 "            id: this.id+'-left-col',\n"
20130515 '            columnWidth: this.colWidthLeft,\n'
20130515 "            layout: 'form',\n"
20130515 '            border: false,\n'
20130515 '            items: leftFields\n'
20130515 '        },{\n'
20130515 "            id: this.id+'-right-col',\n"
20130515 '            columnWidth: this.colWidthRight,\n'
20130515 "            layout: 'form',\n"
20130515 '            labelWidth: this.labelWidthRightCol || this.labelWidth,\n'
20130515 '            border: false,\n'
20130515 '            items: rightFields\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        this.fbar = [{\n'
20130515 '            text:this.saveButtonText, scope: this, handler: this.onSave\n'
20130515 '        },{\n'
20130515 "            cls:'ext-del-btn', text:this.deleteButtonText, scope:this, handler:this.onDelete\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, scope: this, handler: this.onCancel\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditForm.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDateChange: function(dateRangeField, val){\n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(val[0]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    loadRecord: function(rec){\n'
20130515 '        this.form.reset().loadRecord.apply(this.form, arguments);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        \n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        }\n'
20130515 '        if(this.calendarStore){\n'
20130515 "            this.form.setValues({'calendar': rec.data[Ext.ensible.cal.EventMappings.CalendarId.name]});\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        //this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '        if(rec.phantom){\n'
20130515 '            //rec.markDirty();\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(false);\n"
20130515 '        }\n'
20130515 '        else {\n'
20130515 '            this.setTitle(this.titleTextEdit);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(true);\n"
20130515 '        }\n'
20130515 '        this.titleField.focus();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    updateRecord: function(){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '        \n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = this.form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        //delete rec.store; // make sure the record does not try to autosave\n'
20130515 '        rec.endEdit();\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '        this.cleanup(true);\n'
20130515 "        this.fireEvent('eventcancel', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '        \n'
20130515 '        if(this.form.isDirty()){\n'
20130515 '            this.form.reset();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        if(!this.updateRecord()){\n'
20130515 '            this.onCancel();\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        this.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "        this.fireEvent('eventdelete', this, this.activeRecord);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditform', Ext.ensible.cal.EventEditForm);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventEditWindow\n'
20130515 ' * @extends Ext.Window\n'
20130515 ' * <p>A custom window containing a basic edit form used for quick editing of events.</p>\n'
20130515 ' * <p>This window also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 'width: 600,\n'
20130515 'border: true,\n'
20130515 "closeAction: 'hide',\n"
20130515 'modal: false,\n'
20130515 'resizable: false,\n'
20130515 "buttonAlign: 'left',\n"
20130515 'labelWidth: 65,\n'
20130515 "detailsLinkText: 'Edit Details...',\n"
20130515 "savingMessage: 'Saving changes...',\n"
20130515 "deletingMessage: 'Deleting event...',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "bodyStyle: 'padding:5px 10px;',\n"
20130515 'enableEditDetails: true\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditWindow = Ext.extend(Ext.Window, {\n'
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 '    width: 600,\n'
20130515 '    border: true,\n'
20130515 "    closeAction: 'hide',\n"
20130515 '    modal: false,\n'
20130515 '    resizable: false,\n'
20130515 "    buttonAlign: 'left',\n"
20130515 '    labelWidth: 65,\n'
20130515 "    detailsLinkText: 'Edit Details...',\n"
20130515 "    savingMessage: 'Saving changes...',\n"
20130515 "    deletingMessage: 'Deleting event...',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "    bodyStyle: 'padding:5px 10px;',\n"
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.fbar = ['->',{\n"
20130515 '            text:this.saveButtonText, disabled:false, handler:this.onSave, scope:this\n'
20130515 '        },{\n'
20130515 "            id:this.id+'-delete-btn', text:this.deleteButtonText, disabled:false, handler:this.onDelete, scope:this, hideMode:'offsets'\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, disabled:false, handler:this.onCancel, scope:this\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        if(this.enableEditDetails !== false){\n'
20130515 '            this.fbar.unshift({\n'
20130515 '                xtype: \'tbtext\', text: \'<a href="#" class="\'+this.editDetailsLinkClass+\'">\'+this.detailsLinkText+\'</a>\'\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender : function(ct, position){\n'
20130515 "        this.deleteBtn = Ext.getCmp(this.id+'-delete-btn');\n"
20130515 '        \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 "            anchor: '95%',\n"
20130515 '            fieldLabel: this.datesLabelText\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var items = [this.titleField, this.dateRangeField];\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name,\n'
20130515 "                anchor: '100%',\n"
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                store: this.calendarStore\n'
20130515 '            });\n'
20130515 '            items.push(this.calendarField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.formPanel = new Ext.FormPanel({\n'
20130515 '            labelWidth: this.labelWidth,\n'
20130515 '            frame: false,\n'
20130515 '            bodyBorder: false,\n'
20130515 '            border: false,\n'
20130515 '            items: items\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.add(this.formPanel);\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.afterRender.call(this);\n'
20130515 '\t\t\n'
20130515 "\t\tthis.el.addClass('ext-cal-event-win');\n"
20130515 "        this.el.select('.'+this.editDetailsLinkClass).on('click', this.onEditDetailsClick, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetailsClick: function(e){\n'
20130515 '        e.stopEvent();\n'
20130515 '        this.updateRecord(true);\n'
20130515 "        this.fireEvent('editdetails', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\t\n'
20130515 '\t/**\n'
20130515 '     * Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden.\n'
20130515 '\t * @param {Ext.data.Record/Object} o Either a {@link Ext.data.Record} if showing the form\n'
20130515 '\t * for an existing event in edit mode, or a plain object containing a StartDate property (and \n'
20130515 '\t * optionally an EndDate property) for showing the form in add mode. \n'
20130515 '     * @param {String/Element} animateTarget (optional) The target element or id from which the window should\n'
20130515 '     * animate while opening (defaults to null with no animation)\n'
20130515 '     * @return {Ext.Window} this\n'
20130515 '     */\n'
20130515 '    show: function(o, animateTarget){\n'
20130515 '\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\tvar anim = (Ext.isIE8 && Ext.isStrict) ? null : animateTarget,\n'
20130515 '            M = Ext.ensible.cal.EventMappings;\n'
20130515 '\n'
20130515 '\t\tExt.ensible.cal.EventEditWindow.superclass.show.call(this, anim, function(){\n'
20130515 '            this.titleField.focus(false, 100);\n'
20130515 '        });\n'
20130515 "        this.deleteBtn[o.data && o.data[M.EventId.name] ? 'show' : 'hide']();\n"
20130515 '        \n'
20130515 '        var rec, f = this.formPanel.form;\n'
20130515 '\n'
20130515 '        if(o.data){\n'
20130515 '            rec = o;\n'
20130515 '\t\t\t//this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '\t\t\tif(rec.phantom){\n'
20130515 '\t\t\t\t// Enable adding the default record that was passed in\n'
20130515 "\t\t\t\t// if it's new even if the user makes no changes \n"
20130515 '\t\t\t\t//rec.markDirty();\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextAdd);\n'
20130515 '\t\t\t}\n'
20130515 '\t\t\telse{\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextEdit);\n'
20130515 '\t\t\t}\n'
20130515 '            \n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '\t\t\t//this.isAdd = true;\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 '\n'
20130515 '            var start = o[M.StartDate.name],\n'
20130515 "                end = o[M.EndDate.name] || start.add('h', 1);\n"
20130515 '                \n'
20130515 '            rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '            //rec.data[M.EventId.name] = this.newId++;\n'
20130515 '            rec.data[M.StartDate.name] = start;\n'
20130515 '            rec.data[M.EndDate.name] = end;\n'
20130515 '            rec.data[M.IsAllDay.name] = !!o[M.IsAllDay.name] || start.getDate() != end.clone().add(Date.MILLI, 1).getDate();\n'
20130515 '            \n'
20130515 '            f.reset();\n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField.setValue(rec.data[M.CalendarId.name]);\n'
20130515 '        }\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 "        this.el.setStyle('z-index', 12000);\n"
20130515 '        \n'
20130515 '\t\treturn this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    roundTime: function(dt, incr){\n'
20130515 '        incr = incr || 15;\n'
20130515 '        var m = parseInt(dt.getMinutes());\n'
20130515 "        return dt.add('mi', incr - (m % incr));\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '    \tthis.cleanup(true);\n'
20130515 "\t\tthis.fireEvent('eventcancel', this, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '\t\t\n'
20130515 '        if(hide===true){\n'
20130515 '\t\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\t\t//var anim = afterDelete || (Ext.isIE8 && Ext.isStrict) ? null : this.animateTarget;\n'
20130515 '            this.hide();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateRecord: function(keepEditing){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            form = this.formPanel.form,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '\n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        \n'
20130515 '        if(!keepEditing){\n'
20130515 '            rec.endEdit();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.formPanel.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\t\tif(!this.updateRecord()){\n'
20130515 '\t\t\tthis.onCancel();\n'
20130515 '\t\t\treturn;\n'
20130515 '\t\t}\n'
20130515 "\t\tthis.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "\t\tthis.fireEvent('eventdelete', this, this.activeRecord, this.animateTarget);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditwindow', Ext.ensible.cal.EventEditWindow);/**\r\n"
20130515 ' * @class Ext.ensible.cal.CalendarView\r\n'
20130515 ' * @extends Ext.BoxComponent\r\n'
20130515 ' * <p>This is an abstract class that serves as the base for other calendar views. This class is not\r\n'
20130515 ' * intended to be directly instantiated.</p>\r\n'
20130515 ' * <p>When extending this class to create a custom calendar view, you must provide an implementation\r\n'
20130515 ' * for the <code>renderItems</code> method, as there is no default implementation for rendering events\r\n'
20130515 ' * The rendering logic is totally dependent on how the UI structures its data, which\r\n'
20130515 ' * is determined by the underlying UI template (this base class does not have a template).</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.CalendarView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\r\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\r\n'
20130515 '     * config), and either can be used interchangeably.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\r\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\r\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\r\n'
20130515 '     * the default calendar (and color).\r\n'
20130515 '     */\r\n'
20130515 '    /*\r\n'
20130515 '     * @cfg {Boolean} enableRecurrence\r\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\r\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\r\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\r\n'
20130515 '     * if the server supports it.\r\n'
20130515 '     */\r\n'
20130515 '    //enableRecurrence: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} readOnly\r\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} startDay\r\n'
20130515 '     * The 0-based index for the day on which the calendar week begins (0=Sunday, which is the default)\r\n'
20130515 '     */\r\n'
20130515 '    startDay : 0,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} spansHavePriority\r\n'
20130515 '     * Allows switching between two different modes of rendering events that span multiple days. When true,\r\n'
20130515 '     * span events are always sorted first, possibly at the expense of start dates being out of order (e.g., \r\n'
20130515 '     * a span event that starts at 11am one day and spans into the next day would display before a non-spanning \r\n'
20130515 '     * event that starts at 10am, even though they would not be in date order). This can lead to more compact\r\n'
20130515 '     * layouts when there are many overlapping events. If false (the default), events will always sort by start date\r\n'
20130515 '     * first which can result in a less compact, but chronologically consistent layout.\r\n'
20130515 '     */\r\n'
20130515 '    spansHavePriority: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} trackMouseOver\r\n'
20130515 '     * Whether or not the view tracks and responds to the browser mouseover event on contained elements (defaults to\r\n'
20130515 "     * true). If you don't need mouseover event highlighting you can disable this.\r\n"
20130515 '     */\r\n'
20130515 '\ttrackMouseOver: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableFx\r\n'
20130515 '     * Determines whether or not visual effects for CRUD actions are enabled (defaults to true). If this is false\r\n'
20130515 '     * it will override any values for {@link #enableAddFx}, {@link #enableUpdateFx} or {@link enableRemoveFx} and\r\n'
20130515 '     * all animations will be disabled.\r\n'
20130515 '     */\r\n'
20130515 '\tenableFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableAddFx\r\n'
20130515 '     * True to enable a visual effect on adding a new event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doAddFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableAddFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableUpdateFx\r\n'
20130515 '     * True to enable a visual effect on updating an event, false to disable it (the default). Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doUpdateFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableUpdateFx: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableRemoveFx\r\n'
20130515 '     * True to enable a visual effect on removing an event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doRemoveFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableRemoveFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableDD\r\n'
20130515 '     * True to enable drag and drop in the calendar view (the default), false to disable it\r\n'
20130515 '     */\r\n'
20130515 '    enableDD: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableContextMenus\r\n'
20130515 '     * True to enable automatic right-click context menu handling in the calendar views (the default), false to disable\r\n'
20130515 '     * them. Different context menus are provided when clicking on events vs. the view background.\r\n'
20130515 '     */\r\n'
20130515 '    enableContextMenus: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} suppressBrowserContextMenu\r\n'
20130515 '     * When {@link #enableContextMenus} is true, the browser context menu will automatically be suppressed whenever a\r\n'
20130515 '     * custom context menu is displayed. When this option is true, right-clicks on elements that do not have a custom\r\n'
20130515 '     * context menu will also suppress the default browser context menu (no menu will be shown at all). When false,\r\n'
20130515 '     * the browser context menu will still show if the right-clicked element has no custom menu (this is the default).\r\n'
20130515 '     */\r\n'
20130515 '    suppressBrowserContextMenu: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} monitorResize\r\n'
20130515 "     * True to monitor the browser's resize event (the default), false to ignore it. If the calendar view is rendered\r\n"
20130515 "     * into a fixed-size container this can be set to false. However, if the view can change dimensions (e.g., it's in \r\n"
20130515 '     * fit layout in a viewport or some other resizable container) it is very important that this config is true so that\r\n'
20130515 '     * any resize event propagates properly to all subcomponents and layouts get recalculated properly.\r\n'
20130515 '     */\r\n'
20130515 '    monitorResize: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayText\r\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\r\n"
20130515 '     */\r\n'
20130515 "    todayText: 'Today',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddCreateEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \r\n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddCreateEventText: 'Create event for {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddMoveEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \r\n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddMoveEventText: 'Move event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddResizeEventText\r\n'
20130515 '     * The string displayed to the user in the drag proxy while dragging the resize handle of an event (defaults to \r\n'
20130515 "     * 'Update event to {0}' where {0} is the updated event start-end range supplied by the view). Note that \r\n"
20130515 '     * this text is only used in views\r\n'
20130515 '     * that allow resizing of events.\r\n'
20130515 '     */\r\n'
20130515 "    ddResizeEventText: 'Update event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} defaultEventTitleText\r\n'
20130515 "     * The default text to display as the title of an event that has a null or empty string title value (defaults to '(No title)')\r\n"
20130515 '     */\r\n'
20130515 "    defaultEventTitleText: '(No title)',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamStart\r\n'
20130515 "     * The param name representing the start date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'start').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamStart: 'start',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamEnd\r\n'
20130515 "     * The param name representing the end date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'end').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamEnd: 'end',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamFormat\r\n'
20130515 "     * The format to use for date parameters sent with requests to retrieve events for the calendar (defaults to 'Y-m-d', e.g. '2010-10-31')\r\n"
20130515 '     */\r\n'
20130515 "    dateParamFormat: 'Y-m-d',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} editModal\r\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\r\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\r\n'
20130515 '     * config will no longer apply. \r\n'
20130515 '     */\r\n'
20130515 '    editModal: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableEditDetails\r\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\r\n'
20130515 '     * link and disable detailed event editing. \r\n'
20130515 '     */\r\n'
20130515 '    enableEditDetails: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekendCls\r\n'
20130515 "     * A CSS class to apply to weekend days in the current view (defaults to 'ext-cal-day-we' which highlights weekend days in light blue). \r\n"
20130515 "     * To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    weekendCls: 'ext-cal-day-we',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} prevMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month previous to the current view's month (defaults to 'ext-cal-day-prev' which \r\n"
20130515 "     * highlights previous month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    prevMonthCls: 'ext-cal-day-prev',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} nextMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month after the current view's month (defaults to 'ext-cal-day-next' which \r\n"
20130515 "     * highlights next month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    nextMonthCls: 'ext-cal-day-next',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayCls\r\n'
20130515 "     * A CSS class to apply to the current date when it is visible in the current view (defaults to 'ext-cal-day-today' which \r\n"
20130515 "     * highlights today in yellow). To disable this styling set the value to null or ''.\r\n"
20130515 '     */\r\n'
20130515 "    todayCls: 'ext-cal-day-today',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 '    weekCount: 1,\r\n'
20130515 '    dayCount: 1,\r\n'
20130515 "    eventSelector : '.ext-cal-evt',\r\n"
20130515 "    eventOverClass: 'ext-evt-over',\r\n"
20130515 "\teventElIdDelimiter: '-evt-',\r\n"
20130515 "    dayElIdDelimiter: '-day-',\r\n"
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns a string of HTML template markup to be used as the body portion of the event template created\r\n'
20130515 "     * by {@link #getEventTemplate}. This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. This string can include any valid {@link Ext.Template} code, and\r\n'
20130515 '     * any data tokens accessible to the containing event template can be referenced in this string.\r\n'
20130515 '     * @return {String} The body template string\r\n'
20130515 '     */\r\n'
20130515 '    getEventBodyMarkup : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\r\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with events. Internally this method\r\n'
20130515 "     * by default generates different markup for browsers that support CSS border radius and those that don't.\r\n"
20130515 '     * This method can be overridden as needed to customize the markup generated.</p>\r\n'
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\r\n'
20130515 "     * from the surrounding container markup.  This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \r\n'
20130515 '     * overridden version also does the same.</p>\r\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\r\n'
20130515 '     */\r\n'
20130515 '    getEventTemplate : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * This is undefined by default, but can be implemented to allow custom CSS classes and template data to be\r\n'
20130515 '     * conditionally applied to events during rendering. This function will be called with the parameter list shown\r\n'
20130515 "     * below and is expected to return the CSS class name (or empty string '' for none) that will be added to the \r\n"
20130515 "     * event element's wrapping div. To apply multiple class names, simply return them space-delimited within the \r\n"
20130515 "     * string (e.g., 'my-class another-class'). Example usage, applied in a CalendarPanel config:\r\n"
20130515 '     * <pre><code>\r\n'
20130515 "// This example assumes a custom field of 'IsHoliday' has been added to EventRecord\r\n"
20130515 'viewConfig: {\r\n'
20130515 '    getEventClass: function(rec, allday, templateData, store){\r\n'
20130515 '        if(rec.data.IsHoliday){\r\n'
20130515 "            templateData.iconCls = 'holiday';\r\n"
20130515 "            return 'evt-holiday';\r\n"
20130515 '        }\r\n'
20130515 "        templateData.iconCls = 'plain';\r\n"
20130515 "        return '';\r\n"
20130515 '    },\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        // This is simplified, but shows the symtax for how you could add a\r\n'
20130515 '        // custom placeholder that maps back to the templateData property created\r\n'
20130515 '        // in getEventClass. Note that this is standard Ext template syntax.\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 '            this.eventBodyMarkup = \'&lt;span class="{iconCls}">&lt;/span> {Title}\';\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    }\r\n'
20130515 '}\r\n'
20130515 '</code></pre>\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} being rendered\r\n'
20130515 '     * @param {Boolean} isAllDay A flag indicating whether the event will be <em>rendered</em> as an all-day event. Note that this\r\n'
20130515 '     * will not necessarily correspond with the value of the <tt>EventRecord.IsAllDay</tt> field &mdash; events that span multiple\r\n'
20130515 '     * days will be rendered using the all-day event template regardless of the field value. If your logic for this function\r\n'
20130515 '     * needs to know whether or not the event will be rendered as an all-day event, this value should be used. \r\n'
20130515 '     * @param {Object} templateData A plain JavaScript object that is empty by default. You can add custom properties\r\n'
20130515 '     * to this object that will then be passed into the event template for the specific event being rendered. If you have \r\n'
20130515 '     * overridden the default event template and added custom data placeholders, you can use this object to pass the data\r\n'
20130515 '     * into the template that will replace those placeholders.\r\n'
20130515 '     * @param {Ext.data.Store} store The Event data store in use by the view\r\n'
20130515 '     * @method getEventClass\r\n'
20130515 "     * @return {String} A space-delimited CSS class string (or '')\r\n"
20130515 '     */\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        this.setStartDate(this.startDate || new Date());\r\n'
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '        \r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 "            this.addClass('ext-cal-readonly');\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventsrendered\r\n'
20130515 '             * Fires after events are finished rendering in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this \r\n'
20130515 '             */\r\n'
20130515 '            eventsrendered: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventclick\r\n'
20130515 '             * Fires after the user clicks on an event element. This is a cancelable event, so returning false from a \r\n'
20130515 '             * handler will cancel the click without displaying the event editor view. This could be useful for \r\n'
20130515 '             * validating the rules by which events should be editable by the user.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            eventclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventover\r\n'
20130515 '             * Fires anytime the mouse is over an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            eventover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventout\r\n'
20130515 '             * Fires anytime the mouse exits an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\r\n'
20130515 '             */\r\n'
20130515 '            eventout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforedatechange\r\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\r\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\r\n'
20130515 '             * view change and the setting of the start date.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\r\n'
20130515 '             */\r\n'
20130515 '            beforedatechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event datechange\r\n'
20130515 '             * Fires after the start date of the view has changed. If you need to cancel the date change you should handle the \r\n'
20130515 '             * {@link #beforedatechange} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\r\n'
20130515 '             */\r\n'
20130515 '            datechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event rangeselect\r\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event. This is a \r\n'
20130515 '             * cancelable event, so returning false from a handler will cancel the drag operation and clean up any drag shim elements\r\n'
20130515 '             * without displaying the event editor view. This could be useful for validating that a user can only create events within\r\n'
20130515 '             * a certain range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\r\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\r\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\r\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\r\n'
20130515 '             * function call (e.g., callback()).\r\n'
20130515 '             */\r\n'
20130515 '\t\t\trangeselect: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventmove\r\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the move operation. This could be useful for validating that a user can \r\n'
20130515 '             * only move events within a certain date range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\r\n'
20130515 '             * @param {Date} dt The new start date to be set (the end date will be automaticaly adjusted to match the event duration)\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventmove\r\n'
20130515 '             * Fires after an event element has been dragged by the user and dropped in a new position. If you need to cancel the \r\n'
20130515 '             * move operation you should handle the {@link #beforeeventmove} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\r\n'
20130515 '             * updated start and end dates\r\n'
20130515 '             */\r\n'
20130515 '\t\t\teventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event initdrag\r\n'
20130515 '             * Fires when a drag operation is initiated in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             */\r\n'
20130515 '            initdrag: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayover\r\n'
20130515 '             * Fires while the mouse is over a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is being moused over\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayout\r\n'
20130515 '             * Fires when the mouse exits a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is exited\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\r\n'
20130515 '             */\r\n'
20130515 '            dayout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event editdetails\r\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\r\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\r\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\r\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            editdetails: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventadd\r\n'
20130515 '             * Fires after a new event has been added to the underlying store\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\r\n'
20130515 '             */\r\n'
20130515 '            eventadd: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventupdate\r\n'
20130515 '             * Fires after an existing event has been updated\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\r\n'
20130515 '             */\r\n'
20130515 '            eventupdate: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventcancel\r\n'
20130515 '             * Fires after an event add/edit operation has been canceled by the user and no store update took place\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\r\n'
20130515 '             */\r\n'
20130515 '            eventcancel: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventdelete\r\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \r\n'
20130515 '             * will cancel the delete operation.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventdelete: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventdelete\r\n'
20130515 '             * Fires after an event has been deleted by the user. If you need to cancel the delete operation you should handle the \r\n'
20130515 '             * {@link #beforeeventdelete} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            eventdelete: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.afterRender.call(this);\r\n'
20130515 '\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        \r\n'
20130515 '        if(this.store){\r\n'
20130515 '            this.setStore(this.store, true);\r\n'
20130515 '            if(this.store.deferLoad){\r\n'
20130515 '                this.reloadStore(this.store.deferLoad);\r\n'
20130515 '                delete this.store.deferLoad;\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.store.initialParams = this.getStoreParams();\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        if(this.calendarStore){\r\n'
20130515 '            this.setCalendarStore(this.calendarStore, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'mouseover': this.onMouseOver,\r\n"
20130515 "            'mouseout': this.onMouseOut,\r\n"
20130515 "            'click': this.onClick,\r\n"
20130515 "\t\t\t'resize': this.onResize,\r\n"
20130515 '            scope: this\r\n'
20130515 '        });\r\n'
20130515 '        \r\n'
20130515 '        // currently the context menu only contains CRUD actions so do not show it if read-only\r\n'
20130515 '        if(this.enableContextMenus && this.readOnly !== true){\r\n'
20130515 "            this.el.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.el.unselectable();\r\n'
20130515 '        \r\n'
20130515 '        if(this.enableDD && this.readOnly !== true && this.initDD){\r\n'
20130515 '\t\t\tthis.initDD();\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        this.on('eventsrendered', this.forceSize);\r\n"
20130515 '        this.forceSize.defer(100, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing the start and end dates to be passed as params in all calls\r\n'
20130515 '     * to load the event store. The param names are customizable using {@link #dateParamStart}\r\n'
20130515 '     * and {@link #dateParamEnd} and the date format used in requests is defined by {@link #dateParamFormat}.\r\n'
20130515 '     * If you need to add additional parameters to be sent when loading the store see {@link #getStoreParams}.\r\n'
20130515 '     * @return {Object} An object containing the start and end dates\r\n'
20130515 '     */\r\n'
20130515 '    getStoreDateParams : function(){\r\n'
20130515 '        var o = {};\r\n'
20130515 '        o[this.dateParamStart] = this.viewStart.format(this.dateParamFormat);\r\n'
20130515 '        o[this.dateParamEnd] = this.viewEnd.format(this.dateParamFormat);\r\n'
20130515 '        return o;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing all key/value params to be passed when loading the event store.\r\n'
20130515 '     * By default the returned object will simply be the same object returned by {@link #getStoreDateParams},\r\n'
20130515 '     * but this method is intended to be overridden if you need to pass anything in addition to start and end dates.\r\n'
20130515 '     * See the inline code comments when overriding for details.\r\n'
20130515 '     * @return {Object} An object containing all params to be sent when loading the event store\r\n'
20130515 '     */\r\n'
20130515 '    getStoreParams : function(){\r\n'
20130515 '        // This is needed if you require the default start and end dates to be included\r\n'
20130515 '        var params = this.getStoreDateParams();\r\n'
20130515 '        \r\n'
20130515 '        // Here is where you can add additional custom params, e.g.:\r\n'
20130515 '        // params.now = new Date().format(this.dateParamFormat);\r\n'
20130515 "        // params.foo = 'bar';\r\n"
20130515 '        // params.number = 123;\r\n'
20130515 '        \r\n'
20130515 '        return params;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Reloads the view's underlying event store using the params returned from {@link #getStoreParams}.\r\n"
20130515 '     * Reloading the store is typically managed automatically by the view itself, but the method is\r\n'
20130515 '     * available in case a manual reload is ever needed.\r\n'
20130515 "     * @param {Object} options (optional) An object matching the format used by Store's {@link Ext.data.Store#load load} method\r\n"
20130515 '     */\r\n'
20130515 '    reloadStore : function(o){\r\n'
20130515 "        Ext.ensible.log('reloadStore');\r\n"
20130515 '        o = Ext.isObject(o) ? o : {};\r\n'
20130515 '        o.params = o.params || {};\r\n'
20130515 '        \r\n'
20130515 '        Ext.apply(o.params, this.getStoreParams());\r\n'
20130515 '        this.store.load(o);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        if(this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.child('.ext-cal-hd-ct'),\r\n"
20130515 "                bd = this.el.child('.ext-cal-body-ct');\r\n"
20130515 '                \r\n'
20130515 '            if(bd==null || hd==null) return;\r\n'
20130515 '                \r\n'
20130515 '            var headerHeight = hd.getHeight(),\r\n'
20130515 '                sz = this.el.parent().getSize();\r\n'
20130515 '                   \r\n'
20130515 '            bd.setHeight(sz.height-headerHeight);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Refresh the current view, optionally reloading the event store also. While this is normally\r\n'
20130515 '     * managed internally on any navigation and/or CRUD action, there are times when you might want\r\n'
20130515 "     * to refresh the view manually (e.g., if you'd like to reload using different {@link #getStoreParams params}).\r\n"
20130515 '     * @param {Boolean} reloadData True to reload the store data first, false to simply redraw the view using current \r\n'
20130515 '     * data (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    refresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (base), reload = '+reloadData);\r\n"
20130515 '        if(reloadData === true){\r\n'
20130515 '            this.reloadStore();\r\n'
20130515 '        }\r\n'
20130515 '        this.prepareData();\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        this.renderItems();\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getWeekCount : function(){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd);\r\n'
20130515 '        return Math.ceil(days / this.dayCount);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareData : function(){\r\n'
20130515 '        var lastInMonth = this.startDate.getLastDateOfMonth(),\r\n'
20130515 '            w = 0, row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            weeks = this.weekCount < 1 ? 6 : this.weekCount;\r\n'
20130515 '        \r\n'
20130515 '        this.eventGrid = [[]];\r\n'
20130515 '        this.allDayGrid = [[]];\r\n'
20130515 '        this.evtMaxCount = [];\r\n'
20130515 '        \r\n'
20130515 '        var evtsInView = this.store.queryBy(function(rec){\r\n'
20130515 '            return this.isEventVisible(rec.data);\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        for(; w < weeks; w++){\r\n'
20130515 '            this.evtMaxCount[w] = 0;\r\n'
20130515 '            if(this.weekCount == -1 && dt > lastInMonth){\r\n'
20130515 '                //current week is fully in next month so skip\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            this.eventGrid[w] = this.eventGrid[w] || [];\r\n'
20130515 '            this.allDayGrid[w] = this.allDayGrid[w] || [];\r\n'
20130515 '            \r\n'
20130515 '            for(d = 0; d < this.dayCount; d++){\r\n'
20130515 '                if(evtsInView.getCount() > 0){\r\n'
20130515 '                    var evts = evtsInView.filterBy(function(rec){\r\n'
20130515 '                        var startsOnDate = (dt.getTime() == rec.data[Ext.ensible.cal.EventMappings.StartDate.name].clearTime(true).getTime());\r\n'
20130515 '                        var spansFromPrevView = (w == 0 && d == 0 && (dt > rec.data[Ext.ensible.cal.EventMappings.StartDate.name]));\r\n'
20130515 '                        return startsOnDate || spansFromPrevView;\r\n'
20130515 '                    }, this);\r\n'
20130515 '                    \r\n'
20130515 '                    this.sortEventRecordsForDay(evts);\r\n'
20130515 '                    this.prepareEventGrid(evts, w, d);\r\n'
20130515 '                }\r\n'
20130515 '                dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.currentWeekCount = w;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGrid : function(evts, w, d){\r\n'
20130515 '        var row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            max = this.maxEventsPerDay ? this.maxEventsPerDay : 999;\r\n'
20130515 '        \r\n'
20130515 '        evts.each(function(evt){\r\n'
20130515 '            var M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '            \r\n'
20130515 '            if(Ext.ensible.Date.diffDays(evt.data[M.StartDate.name], evt.data[M.EndDate.name]) > 0){\r\n'
20130515 '                var daysInView = Ext.ensible.Date.diffDays(\r\n'
20130515 '                    Ext.ensible.Date.max(this.viewStart, evt.data[M.StartDate.name]),\r\n'
20130515 '                    Ext.ensible.Date.min(this.viewEnd, evt.data[M.EndDate.name])) + 1;\r\n'
20130515 '                    \r\n'
20130515 '                this.prepareEventGridSpans(evt, this.eventGrid, w, d, daysInView);\r\n'
20130515 '                this.prepareEventGridSpans(evt, this.allDayGrid, w, d, daysInView, true);\r\n'
20130515 '            }\r\n'
20130515 '            else{\r\n'
20130515 '                row = this.findEmptyRowIndex(w,d);\r\n'
20130515 '                this.eventGrid[w][d] = this.eventGrid[w][d] || [];\r\n'
20130515 '                this.eventGrid[w][d][row] = evt;\r\n'
20130515 '                \r\n'
20130515 '                if(evt.data[M.IsAllDay.name]){\r\n'
20130515 '                    row = this.findEmptyRowIndex(w,d, true);\r\n'
20130515 '                    this.allDayGrid[w][d] = this.allDayGrid[w][d] || [];\r\n'
20130515 '                    this.allDayGrid[w][d][row] = evt;\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            if(this.evtMaxCount[w] < this.eventGrid[w][d].length){\r\n'
20130515 '                this.evtMaxCount[w] = Math.min(max+1, this.eventGrid[w][d].length);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGridSpans : function(evt, grid, w, d, days, allday){\r\n'
20130515 '        // this event spans multiple days/weeks, so we have to preprocess\r\n'
20130515 '        // the events and store special span events as placeholders so that\r\n'
20130515 '        // the render routine can build the necessary TD spans correctly.\r\n'
20130515 '        var w1 = w, d1 = d, \r\n'
20130515 '            row = this.findEmptyRowIndex(w,d,allday),\r\n'
20130515 '            dt = this.viewStart.clone();\r\n'
20130515 '        \r\n'
20130515 '        var start = {\r\n'
20130515 '            event: evt,\r\n'
20130515 '            isSpan: true,\r\n'
20130515 '            isSpanStart: true,\r\n'
20130515 '            spanLeft: false,\r\n'
20130515 '            spanRight: (d == 6)\r\n'
20130515 '        };\r\n'
20130515 '        grid[w][d] = grid[w][d] || [];\r\n'
20130515 '        grid[w][d][row] = start;\r\n'
20130515 '        \r\n'
20130515 '        while(--days){\r\n'
20130515 '            dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            if(dt > this.viewEnd){\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            if(++d1>6){\r\n'
20130515 '                // reset counters to the next week\r\n'
20130515 '                d1 = 0; w1++;\r\n'
20130515 '                row = this.findEmptyRowIndex(w1,0);\r\n'
20130515 '            }\r\n'
20130515 '            grid[w1] = grid[w1] || [];\r\n'
20130515 '            grid[w1][d1] = grid[w1][d1] || [];\r\n'
20130515 '            \r\n'
20130515 '            grid[w1][d1][row] = {\r\n'
20130515 '                event: evt,\r\n'
20130515 '                isSpan: true,\r\n'
20130515 '                isSpanStart: (d1 == 0),\r\n'
20130515 '                spanLeft: (w1 > w) && (d1 % 7 == 0),\r\n'
20130515 '                spanRight: (d1 == 6) && (days > 1)\r\n'
20130515 '            };\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    findEmptyRowIndex : function(w, d, allday){\r\n'
20130515 '        var grid = allday ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            day = grid[w] ? grid[w][d] || [] : [],\r\n'
20130515 '            i = 0, ln = day.length;\r\n'
20130515 '            \r\n'
20130515 '        for(; i < ln; i++){\r\n'
20130515 '            if(day[i] == null){\r\n'
20130515 '                return i;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return ln;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderTemplate : function(){\r\n'
20130515 '        if(this.tpl){\r\n'
20130515 '            this.tpl.overwrite(this.el, this.getTemplateParams());\r\n'
20130515 '            this.lastRenderStart = this.viewStart.clone();\r\n'
20130515 '            this.lastRenderEnd = this.viewEnd.clone();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateParams : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            viewEnd: this.viewEnd,\r\n'
20130515 '            startDate: this.startDate,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            weekendCls: this.weekendCls,\r\n'
20130515 '            prevMonthCls: this.prevMonthCls,\r\n'
20130515 '            nextMonthCls: this.nextMonthCls,\r\n'
20130515 '            todayCls: this.todayCls\r\n'
20130515 '        };\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Disable store event monitoring within this view. Note that if you do this the view will no longer\r\n'
20130515 '     * refresh itself automatically when CRUD actions occur. To enable store events see {@link #enableStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tdisableStoreEvents : function(){\r\n'
20130515 '\t\tthis.monitorStoreEvents = false;\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable store event monitoring within this view if disabled by {@link #disbleStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tenableStoreEvents : function(refresh){\r\n'
20130515 '\t\tthis.monitorStoreEvents = true;\r\n'
20130515 '\t\tif(refresh === true){\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '\t\t}\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tthis.refresh(false);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 "        this.fireEvent('initdrag', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonEventDrop : function(rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonCalendarEndDrag : function(start, end, onComplete){\r\n'
20130515 "        // set this flag for other event handlers that might conflict while we're waiting\r\n"
20130515 '        this.dragPending = true;\r\n'
20130515 '        \r\n'
20130515 '        var dates = {},\r\n'
20130515 '            onComplete = this.onCalendarEndDragComplete.createDelegate(this, [onComplete]);\r\n'
20130515 '        \r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.StartDate.name] = start;\r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.EndDate.name] = end;\r\n'
20130515 '        \r\n'
20130515 "        if(this.fireEvent('rangeselect', this, dates, onComplete) !== false){\r\n"
20130515 '            this.showEventEditor(dates, null);\r\n'
20130515 "            this.editWin.on('hide', onComplete, this, {single:true});\r\n"
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 '            // client code canceled the selection so clean up immediately\r\n'
20130515 '            this.onCalendarEndDragComplete(onComplete);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onCalendarEndDragComplete : function(onComplete){\r\n'
20130515 '        // callback for the drop zone to clean up\r\n'
20130515 '        onComplete();\r\n'
20130515 '        // clear flag for other events to resume normally\r\n'
20130515 '        this.dragPending = false;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onUpdate : function(ds, rec, operation){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\r\n'
20130515 "            Ext.ensible.log('onUpdate');\r\n"
20130515 '            this.dismissEventEditor();\r\n'
20130515 '            \r\n'
20130515 '            var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '            // if the event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // any event instances were updated on the server\r\n'
20130515 "            this.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '            \r\n'
20130515 '\t\t\tif(this.enableFx && this.enableUpdateFx){\r\n'
20130515 '\t\t\t\tthis.doUpdateFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                    scope: this\r\n'
20130515 '                });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is updated. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was updated. The default \r\n'
20130515 '     * effect is {@link Ext.Element#highlight highlight}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableUpdateFx} is true (it is false by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the updated event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoUpdateFx : function(els, o){\r\n'
20130515 '\t\tthis.highlightEvent(els, null, o);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onAdd : function(ds, recs, index){\r\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs; \r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false || rec.phantom){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(rec._deleting){\r\n'
20130515 '            delete rec._deleting;\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onAdd');\r\n"
20130515 '        \r\n'
20130515 '\t\tvar rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '        \r\n'
20130515 '        this.dismissEventEditor();    \r\n'
20130515 '\t\tthis.tempEventId = rec.id;\r\n'
20130515 '        // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '        // new event instances were generated on the server\r\n'
20130515 "\t\tthis.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '\t\t\r\n'
20130515 '\t\tif(this.enableFx && this.enableAddFx){\r\n'
20130515 '\t\t\tthis.doAddFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                scope: this\r\n'
20130515 '            });\r\n'
20130515 '\t\t};\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is added. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was added. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeIn fadeIn}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableAddFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the added event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoAddFx : function(els, o){\r\n'
20130515 '\t\tels.fadeIn(Ext.apply(o, {duration:2}));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onRemove : function(ds, rec){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onRemove');\r\n"
20130515 '        this.dismissEventEditor();\r\n'
20130515 '        \r\n'
20130515 '        var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name],\r\n'
20130515 '            // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // new event instances were generated on the server\r\n'
20130515 "            isRecurring = rrule !== undefined && rrule !== '';\r\n"
20130515 '        \r\n'
20130515 '\t\tif(this.enableFx && this.enableRemoveFx){\r\n'
20130515 '\t\t\tthis.doRemoveFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '\t            remove: true,\r\n'
20130515 '\t            scope: this,\r\n'
20130515 '\t\t\t\tcallback: this.refresh.createDelegate(this, [isRecurring])\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]).remove();\r\n'
20130515 '            this.refresh(isRecurring);\r\n'
20130515 '\t\t}\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is removed. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was removed. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeOut fadeOut}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableRemoveFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the removed event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object contains the following properties:\r\n'
20130515 '     * <pre><code>\r\n'
20130515 '{\r\n'
20130515 '   remove: true, // required by fadeOut to actually remove the element(s)\r\n'
20130515 '   scope: this,  // required for the callback\r\n'
20130515 '   callback: fn  // required to refresh the view after the fx finish\r\n'
20130515 '} \r\n'
20130515 '     * </code></pre>\r\n'
20130515 '     * While you can modify this options object as needed if you change the effect used, please note that the\r\n'
20130515 '     * callback method (and scope) MUST still be passed in order for the view to refresh correctly after the removal.\r\n'
20130515 '     * Please see the inline code comments before overriding this method. \r\n'
20130515 '     */\r\n'
20130515 '\tdoRemoveFx : function(els, o){\r\n'
20130515 '        // Please make sure you keep this entire code block or removing events might not work correctly!\r\n'
20130515 '        // Removing is a little different because we have to wait for the fx to finish, then we have to actually\r\n'
20130515 '        // refresh the view AFTER the fx are run (this is different than add and update).\r\n'
20130515 '        if(els.getCount() == 0 && Ext.isFunction(o.callback)){\r\n'
20130515 '            // if there are no matching elements in the view make sure the callback still runs.\r\n'
20130515 '            // this can happen when an event accessed from the "more" popup is deleted.\r\n'
20130515 '            o.callback.call(o.scope || this);\r\n'
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 "            // If you'd like to customize the remove fx do so here. Just make sure you\r\n"
20130515 '            // DO NOT override the default callback property on the options object, and that\r\n'
20130515 '            // you still pass that object in whatever fx method you choose.\r\n'
20130515 '            els.fadeOut(o);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * Visually highlights an event using {@link Ext.Fx#highlight} config options.\r\n'
20130515 '\t * @param {Ext.CompositeElement} els The element(s) to highlight\r\n'
20130515 '\t * @param {Object} color (optional) The highlight color. Should be a 6 char hex \r\n'
20130515 "\t * color without the leading # (defaults to yellow: 'ffff9c')\r\n"
20130515 '\t * @param {Object} o (optional) Object literal with any of the {@link Ext.Fx} config \r\n'
20130515 '\t * options. See {@link Ext.Fx#highlight} for usage examples.\r\n'
20130515 '\t */\r\n'
20130515 '\thighlightEvent : function(els, color, o) {\r\n'
20130515 '\t\tif(this.enableFx){\r\n'
20130515 '\t\t\tvar c;\r\n'
20130515 '\t\t\t!(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tels.highlight(color, o) :\r\n'
20130515 '\t\t\t\t// Fun IE/Opera handling:\r\n'
20130515 '\t\t\t\tels.each(function(el){\r\n'
20130515 "\t\t\t\t\tel.highlight(color, Ext.applyIf({attr:'color'}, o));\r\n"
20130515 "\t\t\t\t\tif(c = el.child('.ext-cal-evm')) {\r\n"
20130515 '\t\t\t\t\t\tc.highlight(color, o);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}, this);\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 "\t * Retrieve an Event object's id from its corresponding node in the DOM.\r\n"
20130515 '\t * @param {String/Element/HTMLElement} el An {@link Ext.Element}, DOM node or id\r\n'
20130515 '\t */\r\n'
20130515 '//\tgetEventIdFromEl : function(el){\r\n'
20130515 '//\t\tel = Ext.get(el);\r\n'
20130515 '//\t\tvar id = el.id.split(this.eventElIdDelimiter)[1];\r\n'
20130515 "//        if(id.indexOf('-w_') > -1){\r\n"
20130515 '//            //This id has the index of the week it is rendered in as part of the suffix.\r\n'
20130515 '//            //This allows events that span across weeks to still have reproducibly-unique DOM ids.\r\n'
20130515 "//            id = id.split('-w_')[0];\r\n"
20130515 '//        }\r\n'
20130515 '//        return id;\r\n'
20130515 '//\t},\r\n'
20130515 '    getEventIdFromEl : function(el){\r\n'
20130515 '        el = Ext.get(el);\r\n'
20130515 "        var parts, id = '', cls, classes = el.dom.className.split(' ');\r\n"
20130515 '        \r\n'
20130515 '        Ext.each(classes, function(cls){\r\n'
20130515 '            parts = cls.split(this.eventElIdDelimiter);\r\n'
20130515 '            if(parts.length > 1){\r\n'
20130515 '                id = parts[1];\r\n'
20130515 '                return false;\r\n'
20130515 '            }\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        return id;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t// private\r\n'
20130515 '\tgetEventId : function(eventId){\r\n'
20130515 '\t\tif(eventId === undefined && this.tempEventId){\r\n'
20130515 '            // temp record id assigned during an add, will be overwritten later\r\n'
20130515 '\t\t\teventId = this.tempEventId;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn eventId;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @param {Boolean} forSelect\r\n'
20130515 '\t * @return {String} The selector class\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventSelectorCls : function(eventId, forSelect){\r\n'
20130515 "\t\tvar prefix = forSelect ? '.' : '';\r\n"
20130515 '\t\treturn prefix + this.id + this.eventElIdDelimiter + this.getEventId(eventId);\r\n'
20130515 '\t},\r\n'
20130515 '\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @return {Ext.CompositeElement} The matching CompositeElement of nodes\r\n'
20130515 '\t * that comprise the rendered event.  Any event that spans across a view \r\n'
20130515 '\t * boundary will contain more than one internal Element.\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventEls : function(eventId){\r\n'
20130515 '\t\tvar els = this.el.select(this.getEventSelectorCls(this.getEventId(eventId), true), false);\r\n'
20130515 '\t\treturn new Ext.CompositeElement(els);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\r\n"
20130515 '     * @return {Boolean} True or false\r\n'
20130515 '     */\r\n'
20130515 '    isToday : function(){\r\n'
20130515 '        var today = new Date().clearTime().getTime();\r\n'
20130515 '        return this.viewStart.getTime() <= today && this.viewEnd.getTime() >= today;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    onDataChanged : function(store){\r\n'
20130515 "        Ext.ensible.log('onDataChanged');\r\n"
20130515 '        this.refresh(false);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isEventVisible : function(evt){\r\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            data = evt.data ? evt.data : evt,\r\n'
20130515 '            calId = data[M.CalendarId.name],\r\n'
20130515 '            calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '            \r\n'
20130515 '        if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '            // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '            return false;\r\n'
20130515 '        }\r\n'
20130515 '            \r\n'
20130515 '        var start = this.viewStart.getTime(),\r\n'
20130515 '            end = this.viewEnd.getTime(),\r\n'
20130515 '            evStart = data[M.StartDate.name].getTime(),\r\n'
20130515 '            evEnd = data[M.EndDate.name].getTime();\r\n'
20130515 '            \r\n'
20130515 '        return Ext.ensible.Date.rangesOverlap(start, end, evStart, evEnd);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isOverlapping : function(evt1, evt2){\r\n'
20130515 '        var ev1 = evt1.data ? evt1.data : evt1,\r\n'
20130515 '            ev2 = evt2.data ? evt2.data : evt2,\r\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            start1 = ev1[M.StartDate.name].getTime(),\r\n'
20130515 '            end1 = ev1[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 '            start2 = ev2[M.StartDate.name].getTime(),\r\n'
20130515 '            end2 = ev2[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 "            startDiff = Ext.ensible.Date.diff(ev1[M.StartDate.name], ev2[M.StartDate.name], 'm');\r\n"
20130515 '            \r\n'
20130515 '            if(end1<start1){\r\n'
20130515 '                end1 = start1;\r\n'
20130515 '            }\r\n'
20130515 '            if(end2<start2){\r\n'
20130515 '                end2 = start2;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '//            var ev1startsInEv2 = (start1 >= start2 && start1 <= end2),\r\n'
20130515 '//            ev1EndsInEv2 = (end1 >= start2 && end1 <= end2),\r\n'
20130515 '//            ev1SpansEv2 = (start1 < start2 && end1 > end2),\r\n'
20130515 '            var evtsOverlap = Ext.ensible.Date.rangesOverlap(start1, end1, start2, end2),\r\n'
20130515 '                minimumMinutes = this.minEventDisplayMinutes || 0, // applies in day/week body view only for vertical overlap\r\n'
20130515 '                ev1MinHeightOverlapsEv2 = minimumMinutes > 0 && (startDiff > -minimumMinutes && startDiff < minimumMinutes);\r\n'
20130515 '        \r\n'
20130515 '        //return (ev1startsInEv2 || ev1EndsInEv2 || ev1SpansEv2 || ev1MinHeightOverlapsEv2);\r\n'
20130515 '        return (evtsOverlap || ev1MinHeightOverlapsEv2);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayEl : function(dt){\r\n'
20130515 '        return Ext.get(this.getDayId(dt));\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayId : function(dt){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 "            dt = dt.format('Ymd');\r\n"
20130515 '        }\r\n'
20130515 '        return this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \r\n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\r\n'
20130515 '     * to the user use {@link #getViewBounds}.\r\n'
20130515 '     * @return {Date} The start date\r\n'
20130515 '     */\r\n'
20130515 '    getStartDate : function(){\r\n'
20130515 '        return this.startDate;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \r\n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\r\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\r\n'
20130515 '     */\r\n'
20130515 '    setStartDate : function(start, /*private*/reload){\r\n'
20130515 "        Ext.ensible.log('setStartDate (base) '+start.format('Y-m-d'));\r\n"
20130515 "        if(this.fireEvent('beforedatechange', this, this.startDate, start, this.viewStart, this.viewEnd) !== false){\r\n"
20130515 '            this.startDate = start.clearTime();\r\n'
20130515 '            this.setViewBounds(start);\r\n'
20130515 '            if(this.rendered){\r\n'
20130515 '                this.refresh(reload);\r\n'
20130515 '            }\r\n'
20130515 "            this.fireEvent('datechange', this, this.startDate, this.viewStart, this.viewEnd);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    setViewBounds : function(startDate){\r\n'
20130515 '        var start = startDate || this.startDate,\r\n'
20130515 '            offset = start.getDay() - this.startDay;\r\n'
20130515 '        \r\n'
20130515 '        if(offset < 0){\r\n'
20130515 '            // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '            offset += 7;\r\n'
20130515 '        }\r\n'
20130515 '        switch(this.weekCount){\r\n'
20130515 '            case 0:\r\n'
20130515 '            case 1:\r\n'
20130515 '                this.viewStart = this.dayCount < 7 && !this.startDayIsStatic ? start : start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.dayCount || 7).add(Date.SECOND, -1);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            case -1: // auto by month\r\n'
20130515 '                start = start.getFirstDateOfMonth();\r\n'
20130515 '                offset = start.getDay() - this.startDay;\r\n'
20130515 '                if(offset < 0){\r\n'
20130515 '                    // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '                    offset += 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                \r\n'
20130515 '                // start from current month start, not view start:\r\n'
20130515 '                var end = start.add(Date.MONTH, 1).add(Date.SECOND, -1);\r\n'
20130515 '                // fill out to the end of the week:\r\n'
20130515 '                offset = this.startDay;\r\n'
20130515 '                if(offset > end.getDay()){\r\n'
20130515 '                    // if the offset is larger than the end day index then the last row will be empty so skip it\r\n'
20130515 '                    offset -= 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewEnd = end.add(Date.DAY, 6-end.getDay()+offset);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            default:\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.weekCount * 7).add(Date.SECOND, -1);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start and end boundary dates currently displayed in the view. The method\r\n'
20130515 '     * returns an object literal that contains the following properties:<ul>\r\n'
20130515 '     * <li><b>start</b> Date : <div class="sub-desc">The start date of the view</div></li>\r\n'
20130515 '     * <li><b>end</b> Date : <div class="sub-desc">The end date of the view</div></li></ul>\r\n'
20130515 '     * For example:<pre><code>\r\n'
20130515 'var bounds = view.getViewBounds();\r\n'
20130515 "alert('Start: '+bounds.start);\r\n"
20130515 "alert('End: '+bounds.end);\r\n"
20130515 '</code></pre>\r\n'
20130515 '     * @return {Object} An object literal containing the start and end values\r\n'
20130515 '     */\r\n'
20130515 '    getViewBounds : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            start: this.viewStart,\r\n'
20130515 '            end: this.viewEnd\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t/* private\r\n'
20130515 '\t * Sort events for a single day for display in the calendar.  This sorts allday\r\n'
20130515 '\t * events first, then non-allday events are sorted either based on event start\r\n'
20130515 '\t * priority or span priority based on the value of {@link #spansHavePriority} \r\n'
20130515 '\t * (defaults to event start priority).\r\n'
20130515 '\t * @param {MixedCollection} evts A {@link Ext.util.MixedCollection MixedCollection}  \r\n'
20130515 '\t * of {@link #Ext.ensible.cal.EventRecord EventRecord} objects\r\n'
20130515 '\t */\r\n'
20130515 '\tsortEventRecordsForDay: function(evts){\r\n'
20130515 '        if(evts.length < 2){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "\t\tevts.sort('ASC', function(evtA, evtB){\r\n"
20130515 '\t\t\tvar a = evtA.data, b = evtB.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Always sort all day events before anything else\r\n'
20130515 '\t\t\tif (a[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse if (b[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (this.spansHavePriority) {\r\n'
20130515 '\t\t\t\t// This logic always weights span events higher than non-span events \r\n'
20130515 '\t\t\t\t// (at the possible expense of start time order). This seems to \r\n'
20130515 '\t\t\t\t// be the approach used by Google calendar and can lead to a more\r\n'
20130515 '\t\t\t\t// visually appealing layout in complex cases, but event order is\r\n'
20130515 '\t\t\t\t// not guaranteed to be consistent.\r\n'
20130515 '\t\t\t\tvar diff = Ext.ensible.Date.diffDays;\r\n'
20130515 '\t\t\t\tif (diff(a[M.StartDate.name], a[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\tif (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\t\t// Both events are multi-day\r\n'
20130515 '\t\t\t\t\t\tif (a[M.StartDate.name].getTime() == b[M.StartDate.name].getTime()) {\r\n'
20130515 '\t\t\t\t\t\t\t// If both events start at the same time, sort the one\r\n'
20130515 '\t\t\t\t\t\t\t// that ends later (potentially longer span bar) first\r\n'
20130515 '\t\t\t\t\t\t\treturn b[M.EndDate.name].getTime() - a[M.EndDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse if (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\t// Doing this allows span and non-span events to intermingle but\r\n'
20130515 '\t\t\t\t// remain sorted sequentially by start time. This seems more proper\r\n'
20130515 '\t\t\t\t// but can make for a less visually-compact layout when there are\r\n'
20130515 '\t\t\t\t// many such events mixed together closely on the calendar.\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}.createDelegate(this));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to contain the passed date\r\n'
20130515 '     * @param {Date} dt The date to display\r\n'
20130515 '     */\r\n'
20130515 '    moveTo : function(dt, /*private*/reload){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 '            this.setStartDate(dt, reload);\r\n'
20130515 '            return this.startDate;\r\n'
20130515 '        }\r\n'
20130515 '        return dt;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the next consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveNext : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(this.viewEnd.add(Date.DAY, 1), reload);\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the previous consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    movePrev : function(/*private*/reload){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd)+1;\r\n'
20130515 '        return this.moveDays(-days, reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of months relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of months (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveMonths : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.MONTH, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of weeks relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of weeks (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveWeeks : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value*7), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveDays : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to show today\r\n'
20130515 "     * @return {Date} Today's date\r\n"
20130515 '     */\r\n'
20130515 '    moveToday : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(new Date(), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setStore : function(store, initial){\r\n'
20130515 '        var currStore = this.store;\r\n'
20130515 '        \r\n'
20130515 '        if(!initial && currStore){\r\n'
20130515 '            currStore.un("datachanged", this.onDataChanged, this);\r\n'
20130515 '            currStore.un("clear", this.refresh, this);\r\n'
20130515 '            currStore.un("write", this.onWrite, this);\r\n'
20130515 '            currStore.un("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.onDataChanged, this);\r\n'
20130515 '            store.on("clear", this.refresh, this);\r\n'
20130515 '            store.on("write", this.onWrite, this);\r\n'
20130515 '            store.on("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.store = store;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onException : function(proxy, type, action, o, res, arg){\r\n'
20130515 '        // form edits are explicitly canceled, but we may not know if a drag/drop operation\r\n'
20130515 '        // succeeded until after a server round trip. if the update failed we have to explicitly\r\n'
20130515 "        // reject the changes so that the record doesn't stick around in the store's modified list \r\n"
20130515 '        if(arg.reject){\r\n'
20130515 '            arg.reject();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the calendar store used by the calendar (contains records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}).\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setCalendarStore : function(store, initial){\r\n'
20130515 '        if(!initial && this.calendarStore){\r\n'
20130515 '            this.calendarStore.un("datachanged", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("add", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("remove", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.refresh, this);\r\n'
20130515 '            store.on("add", this.refresh, this);\r\n'
20130515 '            store.on("remove", this.refresh, this);\r\n'
20130515 '            store.on("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.calendarStore = store;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    getEventRecord : function(id){\r\n'
20130515 '        var idx = this.store.find(Ext.ensible.cal.EventMappings.EventId.name, id);\r\n'
20130515 '        return this.store.getAt(idx);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetEventRecordFromEl : function(el){\r\n'
20130515 '\t\treturn this.getEventRecord(this.getEventIdFromEl(el));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventEditor : function(){\r\n'
20130515 '        // only create one instance of the edit window, even if there are multiple CalendarPanels\r\n'
20130515 "        this.editWin = this.editWin || Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '         \r\n'
20130515 '        if(!this.editWin){\r\n'
20130515 '            this.editWin = new Ext.ensible.cal.EventEditWindow({\r\n'
20130515 "                id: 'ext-cal-editwin',\r\n"
20130515 '                calendarStore: this.calendarStore,\r\n'
20130515 '                modal: this.editModal,\r\n'
20130515 '                enableEditDetails: this.enableEditDetails,\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'eventadd': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventAdd(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventupdate': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventUpdate(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventdelete': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventDelete(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'editdetails': {\r\n"
20130515 '                        fn: function(win, rec, animTarget, view){\r\n'
20130515 '                            win.hide(animTarget);\r\n'
20130515 "                            win.currentView.fireEvent('editdetails', win.currentView, rec, animTarget);\r\n"
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventcancel': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            this.dismissEventEditor(animTarget);\r\n'
20130515 '                            win.currentView.onEventCancel();\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    }\r\n'
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        // allows the window to reference the current scope in its callbacks\r\n'
20130515 '        this.editWin.currentView = this;\r\n'
20130515 '        return this.editWin;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\r\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\r\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\r\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\r\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    showEventEditor : function(rec, animateTarget){\r\n'
20130515 '        this.getEventEditor().show(rec, animateTarget, this);\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\r\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \r\n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\r\n"
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    dismissEventEditor : function(dismissMethod, /*private*/ animTarget){\r\n'
20130515 '        if(this.newRecord && this.newRecord.phantom){\r\n'
20130515 '            this.store.remove(this.newRecord);\r\n'
20130515 '        }\r\n'
20130515 '        delete this.newRecord;\r\n'
20130515 '        \r\n'
20130515 "        // grab the manager's ref so that we dismiss it properly even if the active view has changed\r\n"
20130515 "        var editWin = Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '        if(editWin){\r\n'
20130515 "            editWin[dismissMethod ? dismissMethod : 'hide'](animTarget);\r\n"
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    save: function(){\r\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\r\n"
20130515 '        // method will have already internally caused a save to execute on\r\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\r\n'
20130515 "        // otherwise we'll create duplicate transactions.\r\n"
20130515 '        if(!this.store.autoSave){\r\n'
20130515 '            this.store.save();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\r\n'
20130515 '        switch(action){\r\n'
20130515 "            case 'create': \r\n"
20130515 '                this.onAdd(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'update':\r\n"
20130515 '                this.onUpdate(store, rec, Ext.data.Record.COMMIT);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'destroy':\r\n"
20130515 '                this.onRemove(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventAdd: function(form, rec){\r\n'
20130515 '        this.newRecord = rec;\r\n'
20130515 '        if(!rec.store){\r\n'
20130515 '            this.store.add(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 '        }\r\n'
20130515 "        this.fireEvent('eventadd', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventUpdate: function(form, rec){\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventDelete: function(form, rec){\r\n'
20130515 '        if(rec.store){\r\n'
20130515 '            this.store.remove(rec);\r\n'
20130515 '        }\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventCancel: function(form, rec){\r\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private -- called from subclasses\r\n'
20130515 '    onDayClick: function(dt, ad, el){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('dayclick', this, dt, ad, el) !== false){\r\n"
20130515 '            var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '                data = {};\r\n'
20130515 '                \r\n'
20130515 '            data[M.StartDate.name] = dt;\r\n'
20130515 '            data[M.IsAllDay.name] = ad;\r\n'
20130515 '                \r\n'
20130515 '            this.showEventEditor(data, el);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    showEventMenu : function(el, xy){\r\n'
20130515 '        if(!this.eventMenu){\r\n'
20130515 '            this.eventMenu = new Ext.ensible.cal.EventContextMenu({\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'editdetails': this.onEditDetails.createDelegate(this),\r\n"
20130515 "                    'eventdelete': this.onDeleteEvent.createDelegate(this),\r\n"
20130515 "                    'eventmove': this.onMoveEvent.createDelegate(this)\r\n"
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.eventMenu.showForEvent(this.getEventRecordFromEl(el), el, xy);\r\n'
20130515 '        this.menuActive = true;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEditDetails : function(menu, rec, el){\r\n'
20130515 "        this.fireEvent('editdetails', this, rec, el);\r\n"
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMoveEvent : function(menu, rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Move the event to a new start date, preserving the original event duration.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     * @param {Object} dt The new start date\r\n'
20130515 '     */\r\n'
20130515 '    moveEvent : function(rec, dt){\r\n'
20130515 '        if(Ext.ensible.Date.compare(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt) === 0){\r\n'
20130515 '            // no changes\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('beforeeventmove', this, rec, dt) !== false){\r\n"
20130515 '            var diff = dt.getTime() - rec.data[Ext.ensible.cal.EventMappings.StartDate.name].getTime();\r\n'
20130515 '            rec.beginEdit();\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.StartDate.name, dt);\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.EndDate.name, rec.data[Ext.ensible.cal.EventMappings.EndDate.name].add(Date.MILLI, diff));\r\n'
20130515 '            rec.endEdit();\r\n'
20130515 '            this.save();\r\n'
20130515 '            \r\n'
20130515 "            this.fireEvent('eventmove', this, rec);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDeleteEvent: function(menu, rec, el){\r\n'
20130515 '        rec._deleting = true;\r\n'
20130515 '        this.deleteEvent(rec, el);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Delete the specified event.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     */\r\n'
20130515 '    deleteEvent: function(rec, /* private */el){\r\n'
20130515 "        if(this.fireEvent('beforeeventdelete', this, rec, el) !== false){\r\n"
20130515 '            this.store.remove(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 "            this.fireEvent('eventdelete', this, rec, el);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onContextMenu : function(e, t){\r\n'
20130515 '        var el, match = false;\r\n'
20130515 '        \r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            this.dismissEventEditor().showEventMenu(el, e.getXY());\r\n'
20130515 '            match = true;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        if(match || this.suppressBrowserContextMenu === true){\r\n'
20130515 '            e.preventDefault();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /*\r\n'
20130515 '     * Shared click handling.  Each specific view also provides view-specific\r\n'
20130515 '     * click handling that calls this first.  This method returns true if it\r\n'
20130515 '     * can handle the click (and so the subclass should ignore it) else false.\r\n'
20130515 '     */\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dropZone){\r\n'
20130515 '            this.dropZone.clearShims();\r\n'
20130515 '        }\r\n'
20130515 '        if(this.menuActive === true){\r\n'
20130515 '            // ignore the first click if a context menu is active (let it close)\r\n'
20130515 '            this.menuActive = false;\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        var el = e.getTarget(this.eventSelector, 5);\r\n'
20130515 '        if(el){\r\n'
20130515 '            var id = this.getEventIdFromEl(el),\r\n'
20130515 '                rec = this.getEventRecord(id);\r\n'
20130515 '            \r\n'
20130515 "            if(this.fireEvent('eventclick', this, rec, el) !== false){\r\n"
20130515 '                this.showEventEditor(rec, el);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOver : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'over')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'over');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOut : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'out')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'out');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleEventMouseEvent : function(e, t, type){\r\n'
20130515 '        var el;\r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            var rel = Ext.get(e.getRelatedTarget());\r\n'
20130515 '            if(el == rel || el.contains(rel)){\r\n'
20130515 '                return true;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            var evtId = this.getEventIdFromEl(el);\r\n'
20130515 '            \r\n'
20130515 "            if(this.eventOverClass != ''){\r\n"
20130515 '                var els = this.getEventEls(evtId);\r\n'
20130515 "                els[type == 'over' ? 'addClass' : 'removeClass'](this.eventOverClass);\r\n"
20130515 '            }\r\n'
20130515 "            this.fireEvent('event'+type, this, this.getEventRecord(evtId), el);\r\n"
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        return false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDateFromId : function(id, delim){\r\n'
20130515 '        var parts = id.split(delim);\r\n'
20130515 '        return parts[parts.length-1];\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 "        if(t = e.getTarget('td', 3)){\r\n"
20130515 '            if(t.id && t.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var dt = this.getDateFromId(t.id, this.dayElIdDelimiter),\r\n'
20130515 '                    rel = Ext.get(e.getRelatedTarget()),\r\n'
20130515 '                    relTD, relDate;\r\n'
20130515 '                \r\n'
20130515 '                if(rel){\r\n'
20130515 "                    relTD = rel.is('td') ? rel : rel.up('td', 3);\r\n"
20130515 "                    relDate = relTD && relTD.id ? this.getDateFromId(relTD.id, this.dayElIdDelimiter) : '';\r\n"
20130515 '                }\r\n'
20130515 '                if(!rel || dt != relDate){\r\n'
20130515 '                    var el = this.getDayEl(dt);\r\n'
20130515 "                    if(el && this.dayOverClass != ''){\r\n"
20130515 "                        el[type == 'over' ? 'addClass' : 'removeClass'](this.dayOverClass);\r\n"
20130515 '                    }\r\n'
20130515 '                    this.fireEvent(\'day\'+type, this, Date.parseDate(dt, "Ymd"), el);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private, MUST be implemented by subclasses\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 "        throw 'This method must be implemented by a subclass';\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.el){\r\n'
20130515 "            this.el.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '        Ext.destroy(\r\n'
20130515 '            this.editWin, \r\n'
20130515 '            this.eventMenu,\r\n'
20130515 '            this.dragZone,\r\n'
20130515 '            this.dropZone\r\n'
20130515 '        );\r\n'
20130515 '    }\r\n'
20130515 '});/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthView\r\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\r\n'
20130515 ' * <p>Displays a calendar view by month. This class does not usually need ot be used directly as you can\r\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\r\n'
20130515 ' * the month view.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthView = Ext.extend(Ext.ensible.cal.CalendarView, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} moreText\r\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMoreText} instead.</p>\r\n'
20130515 '     * <p>The text to display in a day box when there are more events than can be displayed and a link is provided to\r\n'
20130515 "     * show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @deprecated\r\n'
20130515 '     */\r\n'
20130515 "    moreText: '+{0} more...',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} detailsTitleDateFormat\r\n'
20130515 '     * The date format for the title of the details panel that shows when there are hidden events and the "more" link \r\n'
20130515 "     * is clicked (defaults to 'F j').\r\n"
20130515 '     */\r\n'
20130515 "    detailsTitleDateFormat: 'F j',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTime\r\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTime: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTodayText\r\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTodayText: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showHeader\r\n'
20130515 "     * True to display a header beneath the navigation bar containing the week names above each week's column, false not to \r\n"
20130515 '     * show it and instead display the week names in the first row of days in the calendar (defaults to false).\r\n'
20130515 '     */\r\n'
20130515 '    showHeader: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekLinks\r\n'
20130515 '     * True to display an extra column before the first day in the calendar that links to the {@link Ext.ensible.cal.WeekView view}\r\n'
20130515 '     * for each individual week, false to not show it (defaults to false). If true, the week links can also contain the week \r\n'
20130515 '     * number depending on the value of {@link #showWeekNumbers}.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekLinks: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekNumbers\r\n'
20130515 '     * True to show the week number for each week in the calendar in the week link column, false to show nothing (defaults to false).\r\n'
20130515 '     * Note that if {@link #showWeekLinks} is false this config will have no affect even if true.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekNumbers: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekLinkOverClass\r\n'
20130515 '     * The CSS class name applied when the mouse moves over a week link element (only applies when {@link #showWeekLinks} is true,\r\n'
20130515 "     * defaults to 'ext-week-link-over').\r\n"
20130515 '     */\r\n'
20130515 "    weekLinkOverClass: 'ext-week-link-over',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 "    daySelector: '.ext-cal-day',\r\n"
20130515 "    moreSelector : '.ext-cal-ev-more',\r\n"
20130515 "    weekLinkSelector : '.ext-cal-week-link',\r\n"
20130515 '    weekCount: -1, // defaults to auto by month\r\n'
20130515 '    dayCount: 7,\r\n'
20130515 "\tmoreElIdDelimiter: '-more-',\r\n"
20130515 "    weekLinkIdDelimiter: 'ext-cal-week-',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.initComponent.call(this);\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayclick\r\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \r\n'
20130515 '             * for validating that a user can only create events on certain days.\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\r\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \r\n'
20130515 '             * MonthView always return true for this param.\r\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            dayclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event weekclick\r\n'
20130515 '             * Fires after the user clicks within a week link (when {@link #showWeekLinks is true)\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The start date of the week that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            weekclick: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayout: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tinitDD : function(){\r\n'
20130515 '\t\tvar cfg = {\r\n'
20130515 '\t\t\tview: this,\r\n'
20130515 '\t\t\tcreateText: this.ddCreateEventText,\r\n'
20130515 '\t\t\tmoveText: this.ddMoveEventText,\r\n'
20130515 "            ddGroup : this.ddGroup || this.id+'-MonthViewDD'\r\n"
20130515 '\t\t};\r\n'
20130515 '        \r\n'
20130515 '        this.dragZone = new Ext.ensible.cal.DragZone(this.el, cfg);\r\n'
20130515 '        this.dropZone = new Ext.ensible.cal.DropZone(this.el, cfg);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDestroy : function(){\r\n'
20130515 '        Ext.destroy(this.ddSelector);\r\n'
20130515 '\t\tExt.destroy(this.dragZone);\r\n'
20130515 '\t\tExt.destroy(this.dropZone);\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onDestroy.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '            this.tpl = new Ext.ensible.cal.MonthViewTemplate({\r\n'
20130515 '                id: this.id,\r\n'
20130515 '                showTodayText: this.showTodayText,\r\n'
20130515 '                todayText: this.todayText,\r\n'
20130515 '                showTime: this.showTime,\r\n'
20130515 '                showHeader: this.showHeader,\r\n'
20130515 '                showWeekLinks: this.showWeekLinks,\r\n'
20130515 '                showWeekNumbers: this.showWeekNumbers\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 "        this.addClass('ext-cal-monthview ext-cal-ct');\r\n"
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.afterRender.call(this);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tif(this.monitorResize){\r\n'
20130515 '\t\t\tthis.maxEventsPerDay = this.getMaxEventsPerDay();\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        // Compensate for the week link gutter width if visible\r\n'
20130515 '        if(this.showWeekLinks && this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.select('.ext-cal-hd-days-tbl'),\r\n"
20130515 "                bgTbl = this.el.select('.ext-cal-bg-tbl'),\r\n"
20130515 "                evTbl = this.el.select('.ext-cal-evt-tbl'),\r\n"
20130515 "                wkLinkW = this.el.child('.ext-cal-week-link').getWidth(),\r\n"
20130515 '                w = this.el.getWidth()-wkLinkW;\r\n'
20130515 '            \r\n'
20130515 '            hd.setWidth(w);\r\n'
20130515 '            bgTbl.setWidth(w);\r\n'
20130515 '            evTbl.setWidth(w);\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.forceSize.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    //private\r\n'
20130515 '    initClock : function(){\r\n'
20130515 "        if(Ext.fly(this.id+'-clock') !== null){\r\n"
20130515 '            this.prevClockDay = new Date().getDay();\r\n'
20130515 '            if(this.clockTask){\r\n'
20130515 '                Ext.TaskMgr.stop(this.clockTask);\r\n'
20130515 '            }\r\n'
20130515 '            this.clockTask = Ext.TaskMgr.start({\r\n'
20130515 '                run: function(){ \r\n'
20130515 "                    var el = Ext.fly(this.id+'-clock'),\r\n"
20130515 '                        t = new Date();\r\n'
20130515 '                        \r\n'
20130515 '                    if(t.getDay() == this.prevClockDay){\r\n'
20130515 '                        if(el){\r\n'
20130515 "                            el.update(t.format(Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia'));\r\n"
20130515 '                        }\r\n'
20130515 '                    }\r\n'
20130515 '                    else{\r\n'
20130515 '                        this.prevClockDay = t.getDay();\r\n'
20130515 '                        this.moveTo(t);\r\n'
20130515 '                    }\r\n'
20130515 '                },\r\n'
20130515 '                scope: this,\r\n'
20130515 '                interval: 1000\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * <p>Returns the text to display in a day box when there are more events than can be displayed and a link is \r\n'
20130515 "     * provided to show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @param {Integer} numEvents The number of events currently hidden from view\r\n'
20130515 '     * @return {String} The text to display for the "more" link \r\n'
20130515 '     */\r\n'
20130515 '    getMoreText: function(numEvents){\r\n'
20130515 '        return this.moreText;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\r\n"
20130515 '\t            \'<tpl if="_isReminder">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="_isRecurring">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanLeft">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spl">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanRight">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>'\r\n"
20130515 "\t        ].join('');\r\n"
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventTemplate : function(){\r\n'
20130515 '        if(!this.eventTpl){\r\n'
20130515 '\t        var tpl, body = this.getEventBodyMarkup();\r\n'
20130515 '            \r\n'
20130515 '\t        tpl = !(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tnew Ext.XTemplate(\r\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 '\t\t                body,\r\n'
20130515 "\t\t            '</div>'\r\n"
20130515 '\t\t        ) \r\n'
20130515 '\t\t\t\t: new Ext.XTemplate(\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evo">\',\r\n'
20130515 '\t\t                    \'<div class="ext-cal-evm">\',\r\n'
20130515 '\t\t                        \'<div class="ext-cal-evi">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            \'<tpl if="!_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            body,\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 "\t\t                        '</div>',\r\n"
20130515 "\t\t                    '</div>',\r\n"
20130515 "\t\t            '</tpl>',\r\n"
20130515 "\t\t                '</div>'\r\n"
20130515 '\t        \t);\r\n'
20130515 '            tpl.compile();\r\n'
20130515 '            this.eventTpl = tpl;\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventTpl;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\r\n'
20130515 '            data = {},\r\n'
20130515 "            recurring = evt[M.RRule.name] != '',\r\n"
20130515 "            colorCls = 'x-cal-default',\r\n"
20130515 '\t\t    title = evt[M.Title.name],\r\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ';\r\n"
20130515 '        \r\n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\r\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\r\n'
20130515 '            if(rec){\r\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '');\r\n"
20130515 '        extraClasses.push(colorCls);\r\n'
20130515 '        \r\n'
20130515 '        if(this.getEventClass){\r\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\r\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\r\n'
20130515 '            extraClasses.push(cls);\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "\t\tdata._extraCls = extraClasses.join(' ');\r\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\r\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\r\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\r\n"
20130515 '        \r\n'
20130515 '        return Ext.applyIf(data, evt);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\trefresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (MonthView)');\r\n"
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\tExt.ensible.cal.MonthView.superclass.refresh.call(this, reloadData);\r\n'
20130515 '        \r\n'
20130515 '        if(this.showTime !== false){\r\n'
20130515 '            this.initClock();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 '        Ext.ensible.cal.WeekEventRenderer.render({\r\n'
20130515 '            eventGrid: this.allDayOnly ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            tpl: this.getEventTemplate(),\r\n'
20130515 '            maxEventsPerDay: this.maxEventsPerDay,\r\n'
20130515 '            id: this.id,\r\n'
20130515 '            templateDataFn: this.getTemplateEventData.createDelegate(this),\r\n'
20130515 '            evtMaxCount: this.evtMaxCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            getMoreText: this.getMoreText.createDelegate(this)\r\n'
20130515 '        });\r\n'
20130515 "        this.fireEvent('eventsrendered', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayEl : function(dt){\r\n'
20130515 '\t\treturn Ext.get(this.getDayId(dt));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayId : function(dt){\r\n'
20130515 '\t\tif(Ext.isDate(dt)){\r\n'
20130515 "\t\t\tdt = dt.format('Ymd');\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\treturn this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetWeekIndex : function(dt){\r\n'
20130515 "\t\tvar el = this.getDayEl(dt).up('.ext-cal-wk-ct');\r\n"
20130515 "\t\treturn parseInt(el.id.split('-wk-')[1]);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDaySize : function(contentOnly){\r\n'
20130515 '        var box = this.el.getBox(),\r\n'
20130515 '            padding = this.getViewPadding(),\r\n'
20130515 '            w = (box.width - padding.width) / this.dayCount,\r\n'
20130515 '            h = (box.height - padding.height) / this.getWeekCount();\r\n'
20130515 '            \r\n'
20130515 '\t\tif(contentOnly){\r\n'
20130515 '            // measure last row instead of first in case text wraps in first row\r\n'
20130515 "\t\t\tvar hd = this.el.select('.ext-cal-dtitle').last().parent('tr');\r\n"
20130515 '\t\t\th = hd ? h-hd.getHeight(true) : h;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn {height: h, width: w};\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventHeight : function(){\r\n'
20130515 '        if(!this.eventHeight){\r\n'
20130515 "            var evt = this.el.select('.ext-cal-evt').first();\r\n"
20130515 '            if(evt){\r\n'
20130515 "                this.eventHeight = evt.parent('tr').getHeight();\r\n"
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                return 16; // no events rendered, so try setting this.eventHeight again later\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventHeight;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetMaxEventsPerDay : function(){\r\n'
20130515 '\t\tvar dayHeight = this.getDaySize(true).height,\r\n'
20130515 '\t\t\th = this.getEventHeight(),\r\n'
20130515 '            bottomPad = 5,\r\n'
20130515 '            max = Math.max(Math.floor((dayHeight-h-bottomPad) / h), 0);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\treturn max;\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getViewPadding: function(sides) {\r\n'
20130515 "        var sides = sides || 'tlbr',\r\n"
20130515 "            top = sides.indexOf('t') > -1,\r\n"
20130515 "            left = sides.indexOf('l') > -1,\r\n"
20130515 "            right = sides.indexOf('r') > -1,\r\n"
20130515 "            height = this.showHeader && top ? this.el.select('.ext-cal-hd-days-tbl').first().getHeight() : 0,\r\n"
20130515 '            width = 0;\r\n'
20130515 '        \r\n'
20130515 '        if (this.isHeaderView) {\r\n'
20130515 '            if (left) {\r\n'
20130515 "                width = this.el.select('.ext-cal-gutter').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '            if (right) {\r\n'
20130515 "                width += this.el.select('.ext-cal-gutter-rt').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else if (this.showWeekLinks && left) {\r\n'
20130515 "            width = this.el.select('.ext-cal-week-link').first().getWidth();\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return {\r\n'
20130515 '            height: height,\r\n'
20130515 '            width: width\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayAt : function(x, y){\r\n'
20130515 '\t\tvar box = this.el.getBox(),\r\n'
20130515 "            padding = this.getViewPadding('tl'), // top/left only since we only want the xy offsets\r\n"
20130515 '\t\t\tdaySize = this.getDaySize(),\r\n'
20130515 '\t\t\tdayL = Math.floor(((x - box.x - padding.width) / daySize.width)),\r\n'
20130515 '\t\t\tdayT = Math.floor(((y - box.y - padding.height) / daySize.height)),\r\n'
20130515 '\t\t\tdays = (dayT * 7) + dayL;\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tvar dt = this.viewStart.add(Date.DAY, days);\r\n'
20130515 '\t\treturn {\r\n'
20130515 '\t\t\tdate: dt,\r\n'
20130515 '\t\t\tel: this.getDayEl(dt)\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    moveNext : function(){\r\n'
20130515 '        return this.moveMonths(1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    movePrev : function(){\r\n'
20130515 '        return this.moveMonths(-1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onInitDrag.call(this);\r\n'
20130515 '\t\tExt.select(this.daySelector).removeClass(this.dayOverClass);\r\n'
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonMoreClick : function(dt){\r\n'
20130515 '\t\tif(!this.detailPanel){\r\n'
20130515 '\t        this.detailPanel = new Ext.Panel({\r\n'
20130515 "\t\t\t\tid: this.id+'-details-panel',\r\n"
20130515 '\t\t\t\ttitle: dt.format(this.detailsTitleDateFormat),\r\n'
20130515 "\t\t\t\tlayout: 'fit',\r\n"
20130515 '\t\t\t\tfloating: true,\r\n'
20130515 '\t\t\t\trenderTo: Ext.getBody(),\r\n'
20130515 '\t\t\t\ttools: [{\r\n'
20130515 "\t\t\t\t\tid: 'close',\r\n"
20130515 '\t\t\t\t\thandler: function(e, t, p){\r\n'
20130515 '\t\t\t\t\t\tp.hide();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}],\r\n'
20130515 '\t\t\t\titems: {\r\n'
20130515 "\t\t\t\t\txtype: 'extensible.monthdaydetailview',\r\n"
20130515 "\t\t\t\t\tid: this.id+'-details-view',\r\n"
20130515 '\t\t\t\t\tdate: dt,\r\n'
20130515 '\t\t\t\t\tview: this,\r\n'
20130515 '\t\t\t\t\tstore: this.store,\r\n'
20130515 '                    calendarStore: this.calendarStore,\r\n'
20130515 '\t\t\t\t\tlisteners: {\r\n'
20130515 "\t\t\t\t\t\t'eventsrendered': this.onDetailViewUpdated.createDelegate(this)\r\n"
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 "            this.detailPanel.body.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.detailPanel.setTitle(dt.format(this.detailsTitleDateFormat));\r\n'
20130515 '\t\t}\r\n'
20130515 "\t\tthis.detailPanel.getComponent(this.id+'-details-view').update(dt);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonDetailViewUpdated : function(view, dt, numEvents){\r\n'
20130515 '\t\tvar p = this.detailPanel,\r\n'
20130515 '\t\t\tframeH = p.getFrameHeight(),\r\n'
20130515 '            evtH = this.getEventHeight(),\r\n'
20130515 '\t\t\tbodyH = frameH + (numEvents * evtH) + 3,\r\n'
20130515 '\t\t\tdayEl = this.getDayEl(dt),\r\n'
20130515 '\t\t\tbox = dayEl.getBox();\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tp.setHeight(bodyH);\r\n'
20130515 '\t\tp.setWidth(Math.max(box.width, 220));\r\n'
20130515 '\t\tp.show();\r\n'
20130515 "\t\tp.getPositionEl().alignTo(dayEl, 't-t?');\r\n"
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onHide : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onHide.call(this);\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.moreSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.moreElIdDelimiter)[1];\r\n'
20130515 "            this.onMoreClick(Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.weekLinkSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.weekLinkIdDelimiter)[1];\r\n'
20130515 "            this.fireEvent('weekclick', this, Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(Ext.ensible.cal.MonthView.superclass.onClick.apply(this, arguments)){\r\n'
20130515 '            // The superclass handled the click already so exit\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(el = e.getTarget('td', 3)){\r\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\r\n'
20130515 '                    dt = parts[parts.length-1];\r\n'
20130515 '                    \r\n'
20130515 "                //this.fireEvent('dayclick', this, Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 '                return;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 '        var el = e.getTarget(this.weekLinkSelector, 3, true);\r\n'
20130515 '        if(el){\r\n'
20130515 "            el[type == 'over' ? 'addClass' : 'removeClass'](this.weekLinkOverClass);\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.handleDayMouseEvent.apply(this, arguments);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.detailsPanel){\r\n'
20130515 "            this.detailPanel.body.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthview', Ext.ensible.cal.MonthView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>This is the header area container within the day and week views where all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayBodyView DayBodyView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    // private configs\n'
20130515 '    weekCount: 1,\n'
20130515 '    dayCount: 1,\n'
20130515 '    allDayOnly: true,\n'
20130515 '    monitorResize: false,\n'
20130515 '    isHeaderView: true,\n'
20130515 '    \n'
20130515 "    // The event is declared in MonthView but we're just overriding the docs:\n"
20130515 '    /**\n'
20130515 '     * @event dayclick\n'
20130515 '     * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '     * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '     * for validating that a user can only create events on certain days.\n'
20130515 '     * @param {Ext.ensible.cal.DayHeaderView} this\n'
20130515 '     * @param {Date} dt The date/time that was clicked on\n'
20130515 '     * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '     * DayHeaderView always return true for this param.\n'
20130515 '     * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayHeaderTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 "        this.addClass('ext-cal-day-header');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.afterRender.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayHeaderView)');\n"
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.refresh.call(this, reloadData);\n'
20130515 '        this.recalcHeaderBox();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    recalcHeaderBox : function(){\n'
20130515 "        var tbl = this.el.child('.ext-cal-evt-tbl'),\n"
20130515 '            h = tbl.getHeight();\n'
20130515 '        \n'
20130515 '        this.el.setHeight(h+7);\n'
20130515 '        \n'
20130515 '        // These should be auto-height, but since that does not work reliably\n'
20130515 '        // across browser / doc type, we have to size them manually\n'
20130515 "        this.el.child('.ext-cal-hd-ad-inner').setHeight(h+5);\n"
20130515 "        this.el.child('.ext-cal-bg-tbl').setHeight(h+5);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.moveDays(this.dayCount);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    movePrev : function(){\n'
20130515 '        this.moveDays(-this.dayCount);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 "        if(el = e.getTarget('td', 3)){\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\n'
20130515 '                    dt = parts[parts.length-1];\n'
20130515 '                    \n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt, true)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.onClick.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayheaderview', Ext.ensible.cal.DayHeaderView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyView\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\n'
20130515 ' * <p>This is the scrolling container within the day and week views where non-all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayHeaderView DayHeaderView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyView = Ext.extend(Ext.ensible.cal.CalendarView, {\n'
20130515 '    //private\n'
20130515 "    dayColumnElIdDelimiter: '-day-col-',\n"
20130515 '    hourIncrement: 60,\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        if(this.readOnly === true){\n'
20130515 '            this.enableEventResize = false;\n'
20130515 '        }\n'
20130515 '        this.incrementsPerHour = this.hourIncrement / this.ddIncrement;\n'
20130515 '        this.minEventHeight = this.minEventDisplayMinutes / (this.hourIncrement / this.hourHeight);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The original {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * @param {Object} data An object containing the new start and end dates that will be set into the event record if the\n'
20130515 '             * event is not canceled. Format of the object is: {StartDate: [date], EndDate: [date]}\n'
20130515 '             */\n'
20130515 '            beforeeventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user has drag-dropped the resize handle of an event and the resize operation is complete. If you need \n'
20130515 '             * to cancel the resize operation you should handle the {@link #beforeeventresize} event and return false from your handler function.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            eventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '             * for validating that a user can only create events on certain days.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '             * DayBodyView always return false for this param.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            dayclick: true\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initDD : function(){\n'
20130515 '        var cfg = {\n'
20130515 '            view: this,\n'
20130515 '            createText: this.ddCreateEventText,\n'
20130515 '            moveText: this.ddMoveEventText,\n'
20130515 '            resizeText: this.ddResizeEventText,\n'
20130515 '            ddIncrement: this.ddIncrement,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '\n'
20130515 '        this.el.ddScrollConfig = {\n'
20130515 '            // scrolling is buggy in IE/Opera for some reason.  A larger vthresh\n'
20130515 '            // makes it at least functional if not perfect\n'
20130515 '            vthresh: Ext.isIE || Ext.isOpera ? 100 : 40,\n'
20130515 '            hthresh: -1,\n'
20130515 '            frequency: 50,\n'
20130515 '            increment: 100,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.dragZone = new Ext.ensible.cal.DayViewDragZone(this.el, Ext.apply({\n'
20130515 '            containerScroll: true\n'
20130515 '        }, cfg));\n'
20130515 '        \n'
20130515 '        this.dropZone = new Ext.ensible.cal.DayViewDropZone(this.el, cfg);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayBodyView)');\n"
20130515 '        var top = this.el.getScroll().top;\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.refresh.call(this, reloadData);\n'
20130515 '        \n'
20130515 '        // skip this if the initial render scroll position has not yet been set.\n'
20130515 '        // necessary since IE/Opera must be deferred, so the first refresh will\n'
20130515 '        // override the initial position by default and always set it to 0.\n'
20130515 '        if(this.scrollReady){\n'
20130515 '            this.scrollTo(top);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Scrolls the container to the specified vertical position. If the view is large enough that\n'
20130515 '     * there is no scroll overflow then this method will have no affect.\n'
20130515 '     * @param {Number} y The new vertical scroll position in pixels \n'
20130515 '     * @param {Boolean} defer (optional) <p>True to slightly defer the call, false to execute immediately.</p> \n'
20130515 '     * <p>This method will automatically defer itself for IE and Opera (even if you pass false) otherwise\n'
20130515 '     * the scroll position will not update in those browsers. You can optionally pass true, however, to\n'
20130515 '     * force the defer in all browsers, or use your own custom conditions to determine whether this is needed.</p>\n'
20130515 '     * <p>Note that this method should not generally need to be called directly as scroll position is managed internally.</p>\n'
20130515 '     */\n'
20130515 '    scrollTo : function(y, defer){\n'
20130515 '        defer = defer || (Ext.isIE || Ext.isOpera);\n'
20130515 '        if(defer){\n'
20130515 '            (function(){\n'
20130515 "                this.el.scrollTo('top', y);\n"
20130515 '                this.scrollReady = true;\n'
20130515 '            }).defer(10, this);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.el.scrollTo('top', y);\n"
20130515 '            this.scrollReady = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayBodyTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                dayCount: this.dayCount,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime,\n'
20130515 '                showHourSeparator: this.showHourSeparator,\n'
20130515 '                viewStartHour: this.viewStartHour,\n'
20130515 '                viewEndHour: this.viewEndHour,\n'
20130515 '                hourIncrement: this.hourIncrement,\n'
20130515 '                hourHeight: this.hourHeight\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 '        \n'
20130515 "        this.addClass('ext-cal-body-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        // default scroll position to scrollStartHour (7am by default) or min view hour if later\n'
20130515 '        var startHour = Math.max(this.scrollStartHour, this.viewStartHour),\n'
20130515 '            scrollStart = Math.max(0, startHour - this.viewStartHour);\n'
20130515 '            \n'
20130515 '        if(scrollStart > 0){\n'
20130515 '            this.scrollTo(scrollStart * this.hourHeight);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private -- called from DayViewDropZone\n'
20130515 '    onEventResize : function(rec, data){\n'
20130515 "        if(this.fireEvent('beforeeventresize', this, rec, data) !== false){\n"
20130515 '            var D = Ext.ensible.Date,\n'
20130515 '                start = Ext.ensible.cal.EventMappings.StartDate.name,\n'
20130515 '                end = Ext.ensible.cal.EventMappings.EndDate.name;\n'
20130515 '                \n'
20130515 '            if(D.compare(rec.data[start], data.StartDate) === 0 &&\n'
20130515 '                D.compare(rec.data[end], data.EndDate) === 0){\n'
20130515 '                // no changes\n'
20130515 '                return;\n'
20130515 '            } \n'
20130515 '            rec.set(start, data.StartDate);\n'
20130515 '            rec.set(end, data.EndDate);\n'
20130515 '            this.onEventUpdate(null, rec);\n'
20130515 '            \n'
20130515 "            this.fireEvent('eventresize', this, rec);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    getEventBodyMarkup : function(){\n'
20130515 '        if(!this.eventBodyMarkup){\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\n"
20130515 '                \'<tpl if="_isReminder">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                '</tpl>',\n"
20130515 '                \'<tpl if="_isRecurring">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                '</tpl>'\n"
20130515 '//                \'<tpl if="spanLeft">\',\n'
20130515 '//                    \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "//                '</tpl>',\n"
20130515 '//                \'<tpl if="spanRight">\',\n'
20130515 '//                    \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "//                '</tpl>'\n"
20130515 "            ].join('');\n"
20130515 '        }\n'
20130515 '        return this.eventBodyMarkup;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    getEventTemplate : function(){\n'
20130515 '        if(!this.eventTpl){\n'
20130515 '            this.eventTpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="{_extraCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        \'<div class="ext-evt-bd">\', this.getEventBodyMarkup(), \'</div>\',\n'
20130515 '                        this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                    '</div>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="ext-cal-evt {_extraCls}" style="left: {_left}%; width: {_width}%; top: {_top}px;">\',\n'
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 '                        \'<dl style="height: {_height}px;" class="ext-cal-evdm">\',\n'
20130515 '                            \'<dd class="ext-evt-bd">\',\n'
20130515 '                                this.getEventBodyMarkup(),\n'
20130515 "                            '</dd>',\n"
20130515 '                            this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                        '</dl>',\n"
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 "                    '</div>'\n"
20130515 '                );\n'
20130515 '            this.eventTpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.eventTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with <strong>all-day</strong> events. \n'
20130515 '     * Internally this method by default generates different markup for browsers that support CSS border radius \n'
20130515 "     * and those that don't. This method can be overridden as needed to customize the markup generated.</p>\n"
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\n'
20130515 "     * from the surrounding container markup.  This provdes the flexibility to customize what's in the body without\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \n'
20130515 '     * overridden version also does the same.</p>\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\n'
20130515 '     */\n'
20130515 '    getEventAllDayTemplate : function(){\n'
20130515 '        if(!this.eventAllDayTpl){\n'
20130515 '            var tpl, body = this.getEventBodyMarkup();\n'
20130515 '            \n'
20130515 '            tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        body,\n'
20130515 "                    '</div>'\n"
20130515 '                ) \n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div class="ext-cal-evt" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evo">\',\n'
20130515 '                        \'<div class="ext-cal-evm">\',\n'
20130515 '                            \'<div class="ext-cal-evi">\',\n'
20130515 '                                body,\n'
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</div></div>'\n"
20130515 '                );\n'
20130515 '            tpl.compile();\n'
20130515 '            this.eventAllDayTpl = tpl;\n'
20130515 '        }\n'
20130515 '        return this.eventAllDayTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventData : function(evt){\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\n'
20130515 '            data = {},\n'
20130515 "            colorCls = 'x-cal-default',\n"
20130515 '            title = evt[M.Title.name],\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            recurring = evt[M.RRule.name] != '';\n"
20130515 '        \n'
20130515 '        this.getTemplateEventBox(evt);\n'
20130515 '        \n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\n'
20130515 '            if(rec){\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '') + (Ext.isIE || Ext.isOpera ? '-x' : '');\n"
20130515 '        extraClasses.push(colorCls);\n'
20130515 '        \n'
20130515 '        if(this.getEventClass){\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\n'
20130515 '            extraClasses.push(cls);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        data._extraCls = extraClasses.join(' ');\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\n"
20130515 '        \n'
20130515 '        return Ext.applyIf(data, evt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getEventPositionOffsets: function(){\n'
20130515 '        return {\n'
20130515 '            top: 1,\n'
20130515 '            height: -2\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventBox : function(evt){\n'
20130515 '        var heightFactor = this.hourHeight / this.hourIncrement,\n'
20130515 '            start = evt[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '            end = evt[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '            startOffset = Math.max(start.getHours() - this.viewStartHour, 0),\n'
20130515 '            endOffset = Math.min(end.getHours() - this.viewStartHour, this.viewEndHour - this.viewStartHour),\n'
20130515 '            startMins = startOffset * this.hourIncrement,\n'
20130515 '            endMins = endOffset * this.hourIncrement,\n'
20130515 '            viewEndDt = end.clearTime(true).add(Date.HOUR, this.viewEndHour),\n'
20130515 '            evtOffsets = this.getEventPositionOffsets();\n'
20130515 '            \n'
20130515 '        if(start.getHours() >= this.viewStartHour){\n'
20130515 '            // only add the minutes if the start is visible, otherwise it offsets the event incorrectly\n'
20130515 '            startMins += start.getMinutes();\n'
20130515 '        }\n'
20130515 '        if(end <= viewEndDt){\n'
20130515 '            // only add the minutes if the end is visible, otherwise it offsets the event incorrectly\n'
20130515 '            endMins += end.getMinutes();\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        evt._left = 0;\n'
20130515 '        evt._width = 100;\n'
20130515 '        evt._top = startMins * heightFactor + evtOffsets.top;\n'
20130515 '        evt._height = Math.max(((endMins - startMins) * heightFactor), this.minEventHeight) + evtOffsets.height;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        var day = 0, evts = [];\n'
20130515 '        for(; day < this.dayCount; day++){\n'
20130515 '            var ev = emptyCells = skipped = 0, \n'
20130515 '                d = this.eventGrid[0][day],\n'
20130515 '                ct = d ? d.length : 0, \n'
20130515 '                evt;\n'
20130515 '            \n'
20130515 '            for(; ev < ct; ev++){\n'
20130515 '                evt = d[ev];\n'
20130515 '                if(!evt){\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                var item = evt.data || evt.event.data,\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\n'
20130515 '                    ad = item[M.IsAllDay.name] === true,\n'
20130515 '                    span = Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0,\n'
20130515 '                    renderAsAllDay = ad || span;\n'
20130515 '                         \n'
20130515 '                if(renderAsAllDay){\n'
20130515 '                    // this event is already rendered in the header view\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                Ext.apply(item, {\n'
20130515 "                    cls: 'ext-cal-ev',\n"
20130515 '                    _positioned: true\n'
20130515 '                });\n'
20130515 '                evts.push({\n'
20130515 '                    data: this.getTemplateEventData(item),\n'
20130515 '                    date: this.viewStart.add(Date.DAY, day)\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // overlapping event pre-processing loop\n'
20130515 '        var i = j = 0, overlapCols = [], l = evts.length, prevDt;\n'
20130515 '        for(; i<l; i++){\n'
20130515 '            var evt = evts[i].data, \n'
20130515 '                evt2 = null, \n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '            \n'
20130515 '            for(j=0; j<l; j++){\n'
20130515 '                if(i==j)continue;\n'
20130515 '                evt2 = evts[j].data;\n'
20130515 '                if(this.isOverlapping(evt, evt2)){\n'
20130515 '                    evt._overlap = evt._overlap == undefined ? 1 : evt._overlap+1;\n'
20130515 '                    if(i<j){\n'
20130515 '                        if(evt._overcol===undefined){\n'
20130515 '                            evt._overcol = 0;\n'
20130515 '                        }\n'
20130515 '                        evt2._overcol = evt._overcol+1;\n'
20130515 '                        overlapCols[dt] = overlapCols[dt] ? Math.max(overlapCols[dt], evt2._overcol) : evt2._overcol;\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // rendering loop\n'
20130515 '        for(i=0; i<l; i++){\n'
20130515 '            var evt = evts[i].data,\n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '                \n'
20130515 '            if(evt._overlap !== undefined){\n'
20130515 '                var colWidth = 100 / (overlapCols[dt]+1),\n'
20130515 '                    evtWidth = 100 - (colWidth * evt._overlap);\n'
20130515 '                    \n'
20130515 '                evt._width = colWidth;\n'
20130515 '                evt._left = colWidth * evt._overcol;\n'
20130515 '            }\n'
20130515 '            var markup = this.getEventTemplate().apply(evt),\n'
20130515 "                target = this.id+'-day-col-'+evts[i].date.format('Ymd');\n"
20130515 '                \n'
20130515 '            Ext.DomHelper.append(target, markup);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('eventsrendered', this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayEl : function(dt){\n'
20130515 '        return Ext.get(this.getDayId(dt));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayId : function(dt){\n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format('Ymd');\n"
20130515 '        }\n'
20130515 '        return this.id + this.dayColumnElIdDelimiter + dt;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDaySize : function(){\n'
20130515 "        var box = this.el.child('.ext-cal-day-col-inner').getBox();\n"
20130515 '        return {height: box.height, width: box.width};\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayAt : function(x, y){\n'
20130515 "        var sel = '.ext-cal-body-ct',\n"
20130515 "            xoffset = this.el.child('.ext-cal-day-times').getWidth(),\n"
20130515 '            viewBox = this.el.getBox(),\n'
20130515 '            daySize = this.getDaySize(false),\n'
20130515 '            relX = x - viewBox.x - xoffset,\n'
20130515 '            dayIndex = Math.floor(relX / daySize.width), // clicked col index\n'
20130515 '            scroll = this.el.getScroll(),\n'
20130515 "            row = this.el.child('.ext-cal-bg-row'), // first avail row, just to calc size\n"
20130515 '            rowH = row.getHeight() / this.incrementsPerHour,\n'
20130515 '            relY = y - viewBox.y - rowH + scroll.top,\n'
20130515 '            rowIndex = Math.max(0, Math.ceil(relY / rowH)),\n'
20130515 '            mins = rowIndex * (this.hourIncrement / this.incrementsPerHour),\n'
20130515 '            dt = this.viewStart.add(Date.DAY, dayIndex).add(Date.MINUTE, mins).add(Date.HOUR, this.viewStartHour),\n'
20130515 '            el = this.getDayEl(dt),\n'
20130515 '            timeX = x;\n'
20130515 '        \n'
20130515 '        if(el){\n'
20130515 '            timeX = el.getLeft();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return {\n'
20130515 '            date: dt,\n'
20130515 '            el: el,\n'
20130515 '            // this is the box for the specific time block in the day that was clicked on:\n'
20130515 '            timeBox: {\n'
20130515 '                x: timeX,\n'
20130515 '                y: (rowIndex * this.hourHeight / this.incrementsPerHour) + viewBox.y - scroll.top,\n'
20130515 '                width: daySize.width,\n'
20130515 '                height: rowH\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        if(this.dragPending || Ext.ensible.cal.DayBodyView.superclass.onClick.apply(this, arguments)){\n'
20130515 '            // The superclass handled the click already so exit\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        if(e.getTarget('.ext-cal-day-times', 3) !== null){\n"
20130515 '            // ignore clicks on the times-of-day gutter\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        var el = e.getTarget('td', 3);\n"
20130515 '        if(el){\n'
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var dt = this.getDateFromId(el.id, this.dayElIdDelimiter);\n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        var day = this.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(day && day.date){\n'
20130515 '            this.onDayClick(day.date, false, null);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daybodyview', Ext.ensible.cal.DayBodyView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayView\n'
20130515 ' * @extends Ext.Container\n'
20130515 ' * <p>Unlike other calendar views, is not actually a subclass of {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 ' * Instead it is a {@link Ext.Container Container} subclass that internally creates and manages the layouts of\n'
20130515 ' * a {@link Ext.ensible.cal.DayHeaderView DayHeaderView} and a {@link Ext.ensible.cal.DayBodyView DayBodyView}. As such\n'
20130515 ' * DayView accepts any config values that are valid for DayHeaderView and DayBodyView and passes those through\n'
20130515 ' * to the contained views. It also supports the interface required of any calendar view and in turn calls methods\n'
20130515 ' * on the contained views as necessary.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayView = Ext.extend(Ext.Container, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\n"
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddCreateEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddCreateEventText: Ext.ensible.cal.CalendarView.prototype.ddCreateEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddMoveEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddMoveEventText: Ext.ensible.cal.CalendarView.prototype.ddMoveEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 1). Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 1,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEventResize\n'
20130515 "     * True to allow events in the view's scrolling body area to be updated by a resize handle at the \n"
20130515 '     * bottom of the event, false to disallow it (defaults to true). If {@link #readOnly} is true event \n'
20130515 '     * resizing will be disabled automatically.\n'
20130515 '     */\n'
20130515 '    enableEventResize: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} ddIncrement\n'
20130515 '     * <p>The number of minutes between each step during various drag/drop operations in the view (defaults to 30).\n'
20130515 '     * This controls the number of times the dragged object will "snap" to the view during a drag operation, and does\n'
20130515 '     * not have to match with the time boundaries displayed in the view. E.g., the view could be displayed in 30 minute\n'
20130515 '     * increments (the default) but you could configure ddIncrement to 10, which would snap a dragged object to the\n'
20130515 '     * view at 10 minute increments.</p>\n'
20130515 '     * <p>This config currently applies while dragging to move an event, resizing an event by its handle or dragging \n'
20130515 '     * on the view to create a new event.</p>\n'
20130515 '     */\n'
20130515 '    ddIncrement: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} minEventDisplayMinutes\n'
20130515 '     * This is the minimum <b>display</b> height, in minutes, for events shown in the view (defaults to 30). This setting\n'
20130515 '     * ensures that events with short duration are still readable (e.g., by default any event where the start and end\n'
20130515 '     * times were the same would have 0 height). It also applies when calculating whether multiple events should be\n'
20130515 '     * displayed as overlapping. In datetime terms, an event that starts and ends at 9:00 and another event that starts\n'
20130515 '     * and ends at 9:05 do not overlap, but visually the second event would obscure the first in the view. This setting\n'
20130515 '     * provides a way to ensure that such events will still be calculated as overlapping and displayed correctly.\n'
20130515 '     */\n'
20130515 '    minEventDisplayMinutes: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showHourSeparator\n'
20130515 '     * True to display a dotted line that separates each hour block in the scrolling body area at the half-hour mark \n'
20130515 '     * (the default), false to hide it.\n'
20130515 '     */\n'
20130515 '    showHourSeparator: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewStartHour\n'
20130515 "     * The hour of the day at which to begin the scrolling body area's times (defaults to 0, which equals early 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be less than the value of {@link viewEndHour}.\n'
20130515 '     */\n'
20130515 '    viewStartHour: 0,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewEndHour\n'
20130515 "     * The hour of the day at which to end the scrolling body area's times (defaults to 24, which equals late 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be greater than the value of {@link viewStartHour}. \n'
20130515 '     */\n'
20130515 '    viewEndHour: 24,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} scrollStartHour\n'
20130515 '     * The default hour of the day at which to set the body scroll position on view load (defaults to 7, which equals 7am / 07:00).\n'
20130515 '     * Note that if the body is not sufficiently overflowed to allow this positioning this setting will have no effect.\n'
20130515 '     * This setting should be equal to or greater than {@link viewStartHour}.\n'
20130515 '     */\n'
20130515 '    scrollStartHour: 7,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} hourHeight\n'
20130515 '     * <p>The height, in pixels, of each hour block displayed in the scrolling body area of the view (defaults to 42).</p> \n'
20130515 '     * <br><p><b>Important note:</b> While this config can be set to any reasonable integer value, note that it is also used to \n'
20130515 '     * calculate the ratio used when assigning event heights. By default, an hour is 60 minutes and 42 pixels high, so the\n'
20130515 '     * pixel-to-minute ratio is 42 / 60, or 0.7. This same ratio is then used when rendering events. When rendering a \n'
20130515 '     * 30 minute event, the rendered height would be 30 minutes * 0.7 = 21 pixels (as expected).</p>\n'
20130515 '     * <p>This is important to understand when changing this value because some browsers may handle pixel rounding in\n'
20130515 '     * different ways which could lead to inconsistent visual results in some cases. If you have any problems with pixel\n'
20130515 '     * precision in how events are laid out, you might try to stick with hourHeight values that will generate discreet ratios.\n'
20130515 '     * This is easily done by simply multiplying 60 minutes by different discreet ratios (.6, .8, 1.1, etc.) to get the \n'
20130515 '     * corresponding hourHeight pixel values (36, 48, 66, etc.) that will map back to those ratios. By contrast, if you \n'
20130515 '     * chose an hourHeight of 50 for example, the resulting height ratio would be 50 / 60 = .833333... This will work just\n'
20130515 '     * fine, just be aware that browsers may sometimes round the resulting height values inconsistently.\n'
20130515 '     */\n'
20130515 '    hourHeight: 42,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        // day count is only supported between 1 and 7 days\n'
20130515 '        this.dayCount = this.dayCount > 7 ? 7 : (this.dayCount < 1 ? 1 : this.dayCount);\n'
20130515 '        \n'
20130515 '        var cfg = Ext.apply({}, this.initialConfig);\n'
20130515 '        cfg.showTime = this.showTime;\n'
20130515 '        cfg.showTodayText = this.showTodayText;\n'
20130515 '        cfg.todayText = this.todayText;\n'
20130515 '        cfg.dayCount = this.dayCount;\n'
20130515 '        cfg.weekCount = 1;\n'
20130515 '        cfg.readOnly = this.readOnly;\n'
20130515 '        cfg.ddIncrement = this.ddIncrement;\n'
20130515 '        cfg.minEventDisplayMinutes = this.minEventDisplayMinutes;\n'
20130515 '        \n'
20130515 '        var header = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.dayheaderview',\n"
20130515 "            id: this.id+'-hd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        var body = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.daybodyview',\n"
20130515 '            enableEventResize: this.enableEventResize,\n'
20130515 '            showHourSeparator: this.showHourSeparator,\n'
20130515 '            viewStartHour: this.viewStartHour,\n'
20130515 '            viewEndHour: this.viewEndHour,\n'
20130515 '            scrollStartHour: this.scrollStartHour,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            id: this.id+'-bd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        this.items = [header, body];\n'
20130515 "        this.addClass('ext-cal-dayview ext-cal-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayView.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        Ext.ensible.cal.DayView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.header = Ext.getCmp(this.id+'-hd');\n"
20130515 "        this.body = Ext.getCmp(this.id+'-bd');\n"
20130515 "        this.body.on('eventsrendered', this.forceSize, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(){\n'
20130515 "        Ext.ensible.log('refresh (DayView)');\n"
20130515 '        this.header.refresh();\n'
20130515 '        this.body.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: function(){\n'
20130515 "        // The defer call is mainly for good ol' IE, but it doesn't hurt in\n"
20130515 '        // general to make sure that the window resize is good and done first\n'
20130515 '        // so that we can properly calculate sizes.\n'
20130515 '        (function(){\n'
20130515 "            var ct = this.el.up('.x-panel-body'),\n"
20130515 "                hd = this.el.child('.ext-cal-day-header'),\n"
20130515 '                h = ct.getHeight() - hd.getHeight();\n'
20130515 '            \n'
20130515 "            this.el.child('.ext-cal-body-ct').setHeight(h-1);\n"
20130515 '        }).defer(10, this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onResize : function(){\n'
20130515 '        this.forceSize();\n'
20130515 '        this.refresh.defer(1, this); //IE needs the defer\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /*\n'
20130515 '     * We have to "relay" this Component method so that the hidden\n'
20130515 "     * state will be properly reflected when the views' active state changes\n"
20130515 '     */\n'
20130515 '    doHide: function(){\n'
20130515 '        this.header.doHide.apply(this, arguments);\n'
20130515 '        this.body.doHide.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getViewBounds : function(){\n'
20130515 '        return this.header.getViewBounds();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\n'
20130515 '     * to the user use {@link #getViewBounds}.\n'
20130515 '     * @return {Date} The start date\n'
20130515 '     */\n'
20130515 '    getStartDate : function(){\n'
20130515 '        return this.header.getStartDate();\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 '        this.header.setStartDate(dt, true);\n'
20130515 '        this.body.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        this.header.renderItems();\n'
20130515 '        this.body.renderItems();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\n"
20130515 '     * @return {Boolean} True or false\n'
20130515 '     */\n'
20130515 '    isToday : function(){\n'
20130515 '        return this.header.isToday();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to contain the passed date\n'
20130515 '     * @param {Date} dt The date to display\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveTo : function(dt){\n'
20130515 '        this.header.moveTo(dt);\n'
20130515 '        return this.body.moveTo(dt, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the next consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.header.moveNext();\n'
20130515 '        return this.body.moveNext(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the previous consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    movePrev : function(noRefresh){\n'
20130515 '        this.header.movePrev();\n'
20130515 '        return this.body.movePrev(true);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveDays : function(value){\n'
20130515 '        this.header.moveDays(value);\n'
20130515 '        return this.body.moveDays(value, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to show today\n'
20130515 "     * @return {Date} Today's date\n"
20130515 '     */\n'
20130515 '    moveToday : function(){\n'
20130515 '        this.header.moveToday();\n'
20130515 '        return this.body.moveToday(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\n'
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    showEventEditor : function(rec, animateTarget){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.showEventEditor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\n"
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    dismissEventEditor : function(dismissMethod){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.dismissEventEditor.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayview', Ext.ensible.cal.DayView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.MultiDayView\n'
20130515 ' * @extends Ext.ensible.cal.DayView\n'
20130515 ' * <p>Displays a calendar view by day, more than one day at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiDayView = Ext.extend(Ext.ensible.cal.DayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 3).  Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 3,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} startDayIsStatic\n'
20130515 '     * <p>By default, any configuration of a multi-day view that contains fewer than 7 days will have a rolling\n'
20130515 '     * start day. If you view the next or previous views, the dates will be adjusted as needed so that each\n'
20130515 '     * view is contiguous (e.g., if the last day in the current view is Wednesday and you go to the next view\n'
20130515 '     * it will always begin with Thursday, regardless of the value of {@link #startDay}.</p>\n'
20130515 '     * <p>If you set <tt>startDayIsStatic</tt> to <tt>true</tt>, then the view will <em>always</em> begin on\n'
20130515 '     * {@link #startDay}. For any {@link #dayCount} less than 7, days outside the startDay + dayCount range\n'
20130515 '     * will not be viewable. If a date that is not in the viewable range is set into the view it will \n'
20130515 '     * automatically advance to the first viewable date for the current range.  This could be useful for \n'
20130515 '     * creating custom views like a weekday-only or weekend-only view.</p>\n'
20130515 '     * <p>Some example {@link Ext.ensible.cal.CalendarPanel CalendarPanel} configs:</p>\n'
20130515 '     * <pre><code>\n'
20130515 '    // Weekdays only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 5,\n'
20130515 '        startDay: 1,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    // Weekends only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 2,\n'
20130515 '        startDay: 6,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '     * </code></pre>\n'
20130515 '     */\n'
20130515 '    startDayIsStatic: false,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? 7 : this.dayCount, reload);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? -7 : -this.dayCount, reload);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multidayview', Ext.ensible.cal.MultiDayView);/**\n"
20130515 ' * @class Ext.ensible.cal.WeekView\n'
20130515 ' * @extends Ext.ensible.cal.MultiDayView\n'
20130515 ' * <p>Displays a calendar view by week. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\n'
20130515 ' * the week view.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekView = Ext.extend(Ext.ensible.cal.MultiDayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 7)\n'
20130515 '     */\n'
20130515 '    dayCount: 7\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.weekview', Ext.ensible.cal.WeekView);/**\n"
20130515 ' * @class Ext.ensible.cal.MultiWeekView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>Displays a calendar view by week, more than one week at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiWeekView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} weekCount\n'
20130515 '     * The number of weeks to display in the view (defaults to 2)\n'
20130515 '     */\n'
20130515 '    weekCount: 2,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(){\n'
20130515 '        return this.moveWeeks(this.weekCount, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(){\n'
20130515 '        return this.moveWeeks(-this.weekCount, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multiweekview', Ext.ensible.cal.MultiWeekView);/*\r\n"
20130515 ' * This is the view used internally by the panel that displays overflow events in the\r\n'
20130515 ' * month view. Anytime a day cell cannot display all of its events, it automatically displays\r\n'
20130515 ' * a link at the bottom to view all events for that day. When clicked, a panel pops up that\r\n'
20130515 ' * uses this view to display the events for that day.\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthDayDetailView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            eventsrendered: true\r\n'
20130515 '\t\t});\r\n'
20130515 '\t\t\r\n'
20130515 '        if(!this.el){\r\n'
20130515 "            this.el = document.createElement('div');\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        this.tpl = this.getTemplate();\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.MonthDayDetailView.superclass.afterRender.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'click': this.view.onClick,\r\n"
20130515 "\t\t\t'mouseover': this.view.onMouseOver,\r\n"
20130515 "\t\t\t'mouseout': this.view.onMouseOut,\r\n"
20130515 '            scope: this.view\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    getTemplate : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '\t        this.tpl = new Ext.XTemplate(\r\n'
20130515 '                \'<div class="ext-cal-mdv x-unselectable">\',\r\n'
20130515 '\t                \'<table class="ext-cal-mvd-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t\t\t\t\t'<tbody>',\r\n"
20130515 '\t\t\t\t\t\t\t\'<tpl for=".">\',\r\n'
20130515 '\t\t                        \'<tr><td class="ext-cal-ev">{markup}</td></tr>\',\r\n'
20130515 "\t\t\t\t\t\t\t'</tpl>',\r\n"
20130515 "\t                    '</tbody>',\r\n"
20130515 "\t                '</table>',\r\n"
20130515 "                '</div>'\r\n"
20130515 '\t        );\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 '        return this.tpl;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tupdate : function(dt){\r\n'
20130515 '\t\tthis.date = dt;\r\n'
20130515 '\t\tthis.refresh();\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    refresh : function(){\r\n'
20130515 '\t\tif(!this.rendered){\r\n'
20130515 '\t\t\treturn;\r\n'
20130515 '\t\t}\r\n'
20130515 '        var eventTpl = this.view.getEventTemplate(),\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\ttemplateData = [];\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tevts = this.store.queryBy(function(rec){\r\n'
20130515 '\t\t\t\tvar thisDt = this.date.clearTime(true).getTime(),\r\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '\t\t\t\t\trecStart = rec.data[M.StartDate.name].clearTime(true).getTime(),\r\n'
20130515 '\t            \tstartsOnDate = (thisDt == recStart),\r\n'
20130515 '\t\t\t\t\tspansDate = false,\r\n'
20130515 '                    calId = rec.data[M.CalendarId.name],\r\n'
20130515 '                    calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '                    \r\n'
20130515 '                if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '                    // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '                    return false;\r\n'
20130515 '                }\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tif(!startsOnDate){\r\n'
20130515 '\t\t\t\t\tvar recEnd = rec.data[Ext.ensible.cal.EventMappings.EndDate.name].clearTime(true).getTime();\r\n'
20130515 '\t            \tspansDate = recStart < thisDt && recEnd >= thisDt;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t            return startsOnDate || spansDate;\r\n'
20130515 '\t        }, this);\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.CalendarView.prototype.sortEventRecordsForDay.call(this, evts);\r\n'
20130515 '        \r\n'
20130515 '\t\tevts.each(function(evt){\r\n'
20130515 '            var item = evt.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '                \r\n'
20130515 '\t\t\titem._renderAsAllDay = item[M.IsAllDay.name] || Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0;\r\n'
20130515 '            item.spanLeft = Ext.ensible.Date.diffDays(item[M.StartDate.name], this.date) > 0;\r\n'
20130515 '            item.spanRight = Ext.ensible.Date.diffDays(this.date, item[M.EndDate.name]) > 0;\r\n'
20130515 "            item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \r\n"
20130515 "                'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\r\n"
20130515 '\r\n'
20130515 '\t\t\ttemplateData.push({markup: eventTpl.apply(this.getTemplateEventData(item))});\r\n'
20130515 '\t\t}, this);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.tpl.overwrite(this.el, templateData);\r\n'
20130515 "\t\tthis.fireEvent('eventsrendered', this, this.date, evts.getCount());\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tgetTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar data = this.view.getTemplateEventData(evt);\r\n'
20130515 "\t\tdata._elId = 'dtl-'+data._elId;\r\n"
20130515 '\t\treturn data;\r\n'
20130515 '\t}\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthdaydetailview', Ext.ensible.cal.MonthDayDetailView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarPanel\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is the default container for calendar views. It supports day, week, multi-week and month views as well\n'
20130515 ' * as a built-in event edit form. The only requirement for displaying a calendar is passing in a valid\n'
20130515 ' * {@link #Ext.data.Store store} config containing records of type {@link Ext.ensible.cal.EventRecord EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarPanel = Ext.extend(Ext.Panel, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} activeItem\n'
20130515 '     * The 0-based index within the available views to set as the default active view (defaults to undefined). If not \n'
20130515 '     * specified the default view will be set as the last one added to the panel. You can retrieve a reference to the\n'
20130515 '     * active {@link Ext.ensible.cal.CalendarView view} at any time using the {@link #activeView} property.\n'
20130515 '     */\n'
20130515 '    /*\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false, // not currently implemented\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showDayView\n'
20130515 '     * True to include the day view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showDayView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiDayView\n'
20130515 '     * True to include the multi-day view (and toolbar button), false to hide them (defaults to false).\n'
20130515 '     */\n'
20130515 '    showMultiDayView: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showWeekView\n'
20130515 '     * True to include the week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiWeekView\n'
20130515 '     * True to include the multi-week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showMultiWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMonthView\n'
20130515 '     * True to include the month view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     * If all other views are hidden, the month view will show by default even if this config is false.\n'
20130515 '     */\n'
20130515 '    showMonthView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavBar\n'
20130515 '     * True to display the calendar navigation toolbar, false to hide it (defaults to true). Note that\n'
20130515 "     * if you hide the default navigation toolbar you'll have to provide an alternate means of navigating the calendar.\n"
20130515 '     */\n'
20130515 '    showNavBar: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * Text to use for the 'Today' nav bar button.\n"
20130515 '     */\n'
20130515 "    todayText: 'Today',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to show the value of {@link #todayText} instead of today's date in the calendar's current day box,\n"
20130515 '     * false to display the day number(defaults to true).\n'
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time next to the date in the calendar's current day box, false to not show it \n"
20130515 '     * (defaults to true).\n'
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or calendar views from providing CRUD capabilities, false to enable CRUD \n'
20130515 '     * (the default). This option is passed into all views managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    readOnly: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavToday\n'
20130515 '     * True to display the "Today" button in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavToday: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavJump\n'
20130515 '     * True to display the "Jump to:" label in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavJump: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavNextPrev\n'
20130515 "     * True to display the left/right arrow buttons in the calendar panel's navigation header, false to not\n"
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavNextPrev: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} jumpToText\n'
20130515 "     * Text to use for the 'Jump to:' navigation label.\n"
20130515 '     */\n'
20130515 "    jumpToText: 'Jump to:',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} goText\n'
20130515 "     * Text to use for the 'Go' navigation button.\n"
20130515 '     */\n'
20130515 "    goText: 'Go',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} dayText\n'
20130515 "     * Text to use for the 'Day' nav bar button.\n"
20130515 '     */\n'
20130515 "    dayText: 'Day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiDayText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiDayText: '{0} Days',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} weekText\n'
20130515 "     * Text to use for the 'Week' nav bar button.\n"
20130515 '     */\n'
20130515 "    weekText: 'Week',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiWeekText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiWeekText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiWeekText: '{0} Weeks',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} monthText\n'
20130515 "     * Text to use for the 'Month' nav bar button.\n"
20130515 '     */\n'
20130515 "    monthText: 'Month',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} editModal\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\n'
20130515 '     * config will no longer apply. \n'
20130515 '     */\n'
20130515 '    editModal: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEditDetails\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\n'
20130515 '     * link and disable detailed event editing. \n'
20130515 '     */\n'
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\n'
20130515 '     * config), and either can be used interchangeably.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\n'
20130515 '     * the default calendar (and color).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} viewConfig\n'
20130515 '     * A config object that will be applied to all {@link Ext.ensible.cal.CalendarView views} managed by this CalendarPanel. Any\n'
20130515 '     * options on this object that do not apply to any particular view will simply be ignored.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} dayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.DayView DayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiDayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiDayView MultiDayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} weekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.WeekView WeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiWeekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiWeekView MultiWeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} monthViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MonthView MonthView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} editViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.EventEditForm EventEditForm} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * A reference to the {@link Ext.ensible.cal.CalendarView view} that is currently active.\n'
20130515 '     * @type {Ext.ensible.cal.CalendarView}\n'
20130515 '     * @property activeView\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    layoutConfig: {\n'
20130515 '        layoutOnCardChange: true,\n'
20130515 '        deferredRender: true\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private property\n'
20130515 '    startDate: new Date(),\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.tbar = {\n'
20130515 "            cls: 'ext-cal-toolbar',\n"
20130515 '            border: true,\n'
20130515 '            items: []\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.viewCount = 0;\n'
20130515 '        \n'
20130515 '        var multiDayViewCount = (this.multiDayViewCfg && this.multiDayViewCfg.dayCount) || 3,\n'
20130515 '            multiWeekViewCount = (this.multiWeekViewCfg && this.multiWeekViewCfg.weekCount) || 2;\n'
20130515 '        \n'
20130515 '        if(this.showNavToday){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-today', text: this.todayText, handler: this.onTodayClick, scope: this\n"
20130515 '            });\n'
20130515 '        }\n'
20130515 '        if(this.showNavNextPrev){\n'
20130515 '            this.tbar.items.push([\n'
20130515 "                {id: this.id+'-tb-prev', handler: this.onPrevClick, scope: this, iconCls: 'x-tbar-page-prev'},\n"
20130515 "                {id: this.id+'-tb-next', handler: this.onNextClick, scope: this, iconCls: 'x-tbar-page-next'}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        if(this.showNavJump){\n'
20130515 '            this.tbar.items.push([\n'
20130515 '                this.jumpToText,\n'
20130515 "                {id: this.id+'-tb-jump-dt', xtype: 'datefield', showToday: false},\n"
20130515 "                {id: this.id+'-tb-jump', text: this.goText, handler: this.onJumpClick, scope: this}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.tbar.items.push('->');\n"
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-day', text: this.dayText, handler: this.onDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var text = String.format(this.getMultiDayText(multiDayViewCount), multiDayViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiday', text: text, handler: this.onMultiDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-week', text: this.weekText, handler: this.onWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var text = String.format(this.getMultiWeekText(multiWeekViewCount), multiWeekViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiweek', text: text, handler: this.onMultiWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView || this.viewCount == 0){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-month', text: this.monthText, handler: this.onMonthNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '            this.showMonthView = true;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var idx = this.viewCount-1;\n'
20130515 '        this.activeItem = this.activeItem === undefined ? idx : (this.activeItem > idx ? idx : this.activeItem);\n'
20130515 '        \n'
20130515 '        if(this.showNavBar === false){\n'
20130515 '            delete this.tbar;\n'
20130515 "            this.addClass('x-calendar-nonav');\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added to the underlying store\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventdelete\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \n'
20130515 '             * will cancel the delete operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            beforeeventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted by the user.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event viewchange\n'
20130515 '             * Fires after a different calendar view is activated (but not when the event edit form is activated)\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.CalendarView} view The view being activated (any valid {@link Ext.ensible.cal.CalendarView CalendarView} subclass)\n'
20130515 '             * @param {Object} info Extra information about the newly activated view. This is a plain object \n'
20130515 '             * with following properties:<div class="mdetail-params"><ul>\n'
20130515 '             * <li><b><code>activeDate</code></b> : <div class="sub-desc">The currently-selected date</div></li>\n'
20130515 '             * <li><b><code>viewStart</code></b> : <div class="sub-desc">The first date in the new view range</div></li>\n'
20130515 '             * <li><b><code>viewEnd</code></b> : <div class="sub-desc">The last date in the new view range</div></li>\n'
20130515 '             * </ul></div>\n'
20130515 '             */\n'
20130515 '            viewchange: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the selected event in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}). Handling code should hide the active\n'
20130515 '             * event editor and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this The CalendarPanel\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} view The currently active {@link Ext.ensible.cal.CalendarView CalendarView} subclass\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '            \n'
20130515 '            \n'
20130515 '            //\n'
20130515 '            // NOTE: CalendarPanel also relays the following events from contained views as if they originated from this:\n'
20130515 '            //\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * @event eventsrendered\n'
20130515 '             * Fires after events are finished rendering in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this \n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventclick\n'
20130515 '             * <p>Fires after the user clicks on an event element.</p>\n'
20130515 '             * <p><strong>NOTE:</strong> This version of <code>eventclick</code> differs from the same event fired directly by\n'
20130515 '             * {@link Ext.ensible.cal.CalendarView CalendarView} subclasses in that it provides a default implementation (showing\n'
20130515 '             * the default edit window) and is also cancelable (if a handler returns <code>false</code> the edit window will not be shown).\n'
20130515 '             * This event when fired from a view class is simply a notification that an event was clicked and has no default behavior.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event rangeselect\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\n'
20130515 '             * function call (e.g., callback()).\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventover\n'
20130515 '             * Fires anytime the mouse is over an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventout\n'
20130515 '             * Fires anytime the mouse exits an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforedatechange\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\n'
20130515 '             * view change and the setting of the start date.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within a day/week view container and not on an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event datechange\n'
20130515 '             * Fires after the start date of the view changes\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventmove\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the move operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after an event element is dragged by the user and dropped in a new position\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\n'
20130515 '             * updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event initdrag\n'
20130515 '             * Fires when a drag operation is initiated in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayover\n'
20130515 '             * Fires while the mouse is over a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is being moused over\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayout\n'
20130515 '             * Fires when the mouse exits a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is exited\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event and the resize operation is complete. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.layout = 'card'; // do not allow override\n"
20130515 "        this.addClass('x-cal-panel');\n"
20130515 '        \n'
20130515 '        if(this.eventStore){\n'
20130515 '            this.store = this.eventStore;\n'
20130515 '            delete this.eventStore;\n'
20130515 '        }\n'
20130515 '        this.setStore(this.store);\n'
20130515 '        \n'
20130515 '        var sharedViewCfg = {\n'
20130515 '            showToday: this.showToday,\n'
20130515 '            todayText: this.todayText,\n'
20130515 '            showTodayText: this.showTodayText,\n'
20130515 '            showTime: this.showTime,\n'
20130515 '            readOnly: this.readOnly,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            store: this.store,\n'
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            editModal: this.editModal,\n'
20130515 '            enableEditDetails: this.enableEditDetails,\n'
20130515 '            ownerCalendarPanel: this\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            var day = Ext.apply({\n'
20130515 "                xtype: 'extensible.dayview',\n"
20130515 '                title: this.dayText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            day = Ext.apply(Ext.apply(day, this.viewConfig), this.dayViewCfg);\n'
20130515 "            day.id = this.id+'-day';\n"
20130515 '            this.initEventRelay(day);\n'
20130515 '            this.add(day);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var mday = Ext.apply({\n'
20130515 "                xtype: 'extensible.multidayview',\n"
20130515 '                title: this.getMultiDayText(multiDayViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mday = Ext.apply(Ext.apply(mday, this.viewConfig), this.multiDayViewCfg);\n'
20130515 "            mday.id = this.id+'-multiday';\n"
20130515 '            this.initEventRelay(mday);\n'
20130515 '            this.add(mday);\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            var wk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.weekview',\n"
20130515 '                title: this.weekText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            wk = Ext.apply(Ext.apply(wk, this.viewConfig), this.weekViewCfg);\n'
20130515 "            wk.id = this.id+'-week';\n"
20130515 '            this.initEventRelay(wk);\n'
20130515 '            this.add(wk);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var mwk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.multiweekview',\n"
20130515 '                title: this.getMultiWeekText(multiWeekViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mwk = Ext.apply(Ext.apply(mwk, this.viewConfig), this.multiWeekViewCfg);\n'
20130515 "            mwk.id = this.id+'-multiweek';\n"
20130515 '            this.initEventRelay(mwk);\n'
20130515 '            this.add(mwk);\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView){\n'
20130515 '            var month = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.monthview',\n"
20130515 '                title: this.monthText,\n'
20130515 '                listeners: {\n'
20130515 "                    'weekclick': {\n"
20130515 '                        fn: function(vw, dt){\n'
20130515 '                            this.showWeek(dt);\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            month = Ext.apply(Ext.apply(month, this.viewConfig), this.monthViewCfg);\n'
20130515 "            month.id = this.id+'-month';\n"
20130515 '            this.initEventRelay(month);\n'
20130515 '            this.add(month);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        this.add(Ext.applyIf({\n'
20130515 "            xtype: 'extensible.eventeditform',\n"
20130515 "            id: this.id+'-edit',\n"
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            listeners: {\n'
20130515 "                'eventadd':    { scope: this, fn: this.onEventAdd },\n"
20130515 "                'eventupdate': { scope: this, fn: this.onEventUpdate },\n"
20130515 "                'eventdelete': { scope: this, fn: this.onEventDelete },\n"
20130515 "                'eventcancel': { scope: this, fn: this.onEventCancel }\n"
20130515 '            }\n'
20130515 '        }, this.editViewCfg));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initEventRelay: function(cfg){\n'
20130515 '        cfg.listeners = cfg.listeners || {};\n'
20130515 '        cfg.listeners.afterrender = {\n'
20130515 '            fn: function(c){\n'
20130515 '                // relay view events so that app code only has to handle them in one place.\n'
20130515 '                // these events require no special handling by the calendar panel \n'
20130515 "                this.relayEvents(c, ['eventsrendered','eventclick','dayclick','eventover','eventout','beforedatechange',\n"
20130515 "                    'datechange','rangeselect','beforeeventmove','eventmove','initdrag','dayover','dayout','beforeeventresize',\n"
20130515 "                    'eventresize','eventadd','eventupdate','beforeeventdelete','eventdelete','eventcancel']);\n"
20130515 '                \n'
20130515 "                c.on('editdetails', this.onEditDetails, this);\n"
20130515 '            },\n'
20130515 '            scope: this,\n'
20130515 '            single: true\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.afterRender.call(this);\n'
20130515 "        this.body.addClass('x-cal-body');\n"
20130515 '        this.activeView = this.getLayout().activeItem;\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onLayout: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.onLayout.call(this);\n'
20130515 '        if(!this.navInitComplete){\n'
20130515 '            this.updateNavState();\n'
20130515 '            this.navInitComplete = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).\n"
20130515 '     */\n'
20130515 '    getMultiDayText: function(numDays){\n'
20130515 '        return this.multiDayText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).\n"
20130515 '     */\n'
20130515 '    getMultiWeekText: function(numWeeks){\n'
20130515 '        return this.multiWeekText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        var currStore = this.store;\n'
20130515 '        \n'
20130515 '        if(!initial && currStore){\n'
20130515 '            currStore.un("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreAdd : function(ds, recs, index){\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs;\n'
20130515 '        if(rec.phantom){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreUpdate : function(ds, rec, operation){\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.hideEditForm();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onStoreRemove : function(ds, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\n'
20130515 '        switch(action){\n'
20130515 "            case 'create': \n"
20130515 '                this.onStoreAdd(store, rec);\n'
20130515 '                break;\n'
20130515 "            case 'update':\n"
20130515 '                this.onStoreUpdate(store, rec, Ext.data.Record.COMMIT);\n'
20130515 '                break;\n'
20130515 "            case 'destroy':\n"
20130515 '                this.onStoreRemove(store, rec);\n'
20130515 '                break;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetails: function(vw, rec, el){\n'
20130515 "        if(this.fireEvent('editdetails', this, vw, rec, el) !== false){\n"
20130515 '            this.showEditForm(rec);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    save: function(){\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\n"
20130515 '        // method will have already internally caused a save to execute on\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\n'
20130515 "        // otherwise we'll create duplicate transactions.\n"
20130515 '        if(!this.store.autoSave){\n'
20130515 '            this.store.save();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    onEventAdd: function(form, rec){\n'
20130515 '        if(!rec.store){\n'
20130515 '            this.store.add(rec);\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('eventadd', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventUpdate: function(form, rec){\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventDelete: function(form, rec){\n'
20130515 '        this.store.remove(rec);\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventCancel: function(form, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the built-in event edit form for the passed in event record.  This method automatically\n'
20130515 '     * hides the calendar views and navigation toolbar.  To return to the calendar, call {@link #hideEditForm}.\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} record The event record to edit\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    showEditForm: function(rec){\n'
20130515 '        this.preEditView = this.layout.activeItem.id;\n'
20130515 "        this.setActiveView(this.id+'-edit');\n"
20130515 '        this.layout.activeItem.loadRecord(rec);\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Hides the built-in event edit form and returns to the previous calendar view. If the edit form is\n'
20130515 '     * not currently visible this method has no effect.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    hideEditForm: function(){\n'
20130515 '        if(this.preEditView){\n'
20130515 '            this.setActiveView(this.preEditView);\n'
20130515 '            delete this.preEditView;\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    setActiveView: function(id){\n'
20130515 '        var l = this.layout,\n'
20130515 '            tb = this.getTopToolbar();\n'
20130515 '            \n'
20130515 '        l.setActiveItem(id);\n'
20130515 '        this.activeView = l.activeItem;\n'
20130515 '        \n'
20130515 "        if(id == this.id+'-edit'){\n"
20130515 '            if(tb){\n'
20130515 '                tb.hide();\n'
20130515 '            }\n'
20130515 '            this.doLayout();\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(id !== this.preEditView){\n'
20130515 '                l.activeItem.setStartDate(this.startDate, true);\n'
20130515 '            }\n'
20130515 '            if(tb){\n'
20130515 '               tb.show();\n'
20130515 '           }\n'
20130515 '           this.updateNavState();\n'
20130515 '        }\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    fireViewChange: function(){\n'
20130515 '        var info = null, \n'
20130515 '            view = this.layout.activeItem;\n'
20130515 '            \n'
20130515 '        if(view.getViewBounds){\n'
20130515 '            var vb = view.getViewBounds(),\n'
20130515 '            info = {\n'
20130515 '                activeDate: view.getStartDate(),\n'
20130515 '                viewStart: vb.start,\n'
20130515 '                viewEnd: vb.end\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if(view.dismissEventEditor){\n'
20130515 '            view.dismissEventEditor();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('viewchange', this, view, info);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateNavState: function(){\n'
20130515 '        if(this.showNavBar !== false){\n'
20130515 '            var item = this.layout.activeItem,\n'
20130515 "                suffix = item.id.split(this.id+'-')[1];\n"
20130515 '            \n'
20130515 '            if(this.showNavToday){\n'
20130515 "                Ext.getCmp(this.id+'-tb-today').setDisabled(item.isToday());\n"
20130515 '            }\n'
20130515 "            var btn = Ext.getCmp(this.id+'-tb-'+suffix);\n"
20130515 '            btn.toggle(true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date for the currently-active calendar view.\n'
20130515 '     * @param {Date} dt The new start date\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 "        Ext.ensible.log('setStartDate (CalendarPanel');\n"
20130515 '        this.startDate = dt;\n'
20130515 '        this.layout.activeItem.setStartDate(dt, true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    showWeek: function(dt){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '        this.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onTodayClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveToday(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onJumpClick: function(){\n'
20130515 "        var dt = Ext.getCmp(this.id+'-tb-jump-dt').getValue();\n"
20130515 "        if(dt !== ''){\n"
20130515 '            this.startDate = this.layout.activeItem.moveTo(dt, true);\n'
20130515 '            this.updateNavState();\n'
20130515 '            // TODO: check that view actually changed:\n'
20130515 '            this.fireViewChange();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onPrevClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.movePrev(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onNextClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveNext(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-day');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiday');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiweek');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMonthNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-month');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Return the calendar view that is currently active, which will be a subclass of\n'
20130515 '     * {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} The active view\n'
20130515 '     */\n'
20130515 '    getActiveView: function(){\n'
20130515 '        return this.layout.activeItem;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarpanel', Ext.ensible.cal.CalendarPanel);"
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:30 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 5613\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/*\n'
20130515 ' * French (France) locale\n'
20130515 ' * Contributors: devil1591, Alain Deseine, Yannick Torres\n'
20130515 ' */\n'
20130515 '\n'
20130515 'Ext.ensible.Date.use24HourTime = true;\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarView.prototype, {\n'
20130515 '        startDay: 1,\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        defaultEventTitleText: '(Pas de titre)',\n"
20130515 "        ddCreateEventText: 'Cr\xc3\xa9er \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddMoveEventText: 'D\xc3\xa9placer \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddResizeEventText: 'Mettre \xc3\xa0 jour l\\'\xc3\xa9v\xc3\xa9nement au {0}'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthView.prototype, {\n'
20130515 "        moreText: '+{0} autres ...',\n"
20130515 '        getMoreText: function(numEvents){\n'
20130515 "            return '+{0} autres ...';\n"
20130515 '        },\n'
20130515 "        detailsTitleDateFormat: 'd F'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarPanel) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarPanel.prototype, {\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        dayText: 'Jour',\n"
20130515 "        weekText: 'Semaine',\n"
20130515 "        monthText: 'Mois',\n"
20130515 "        jumpToText: 'Aller au :',\n"
20130515 "        goText: 'Ok',\n"
20130515 "        multiDayText: '{0} jours',\n"
20130515 "        multiWeekText: '{0} semaines',\n"
20130515 '        getMultiDayText: function(numDays){\n'
20130515 "            return '{0} jours';\n"
20130515 '        },\n'
20130515 '        getMultiWeekText: function(numWeeks){\n'
20130515 "            return '{0} semaines';\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditWindow) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditWindow.prototype, {\n'
20130515 '        width: 650,\n'
20130515 '        labelWidth: 65,\n'
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        savingMessage: 'Sauvegarde des changements...',\n"
20130515 "        deletingMessage: 'Suppression de l\\'\xc3\xa9v\xc3\xa8nement...',\n"
20130515 "        detailsLinkText: 'D\xc3\xa9tail de l\\'\xc3\xa9v\xc3\xa9nement...',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        calendarLabelText: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditForm) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditForm.prototype, {\n'
20130515 '        labelWidth: 55,\n'
20130515 '        labelWidthRightCol: 80,\n'
20130515 "        title: 'Formulaire \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        reminderLabelText: 'Rappel',\n"
20130515 "        notesLabelText: 'Notes',\n"
20130515 "        locationLabelText: 'Lieu',\n"
20130515 "        webLinkLabelText: 'Lien internet',\n"
20130515 "        calendarLabelText: 'Agenda',\n"
20130515 "        repeatsLabelText: 'R\xc3\xa9p\xc3\xa9ter'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        toText: 'au',\n"
20130515 "        allDayText: 'Toute la journ\xc3\xa9e'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarCombo.prototype, {\n'
20130515 "        fieldLabel: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarList) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarList.prototype, {\n'
20130515 "        title: 'Agendas'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarListMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarListMenu.prototype, {\n'
20130515 "        displayOnlyThisCalendarText: 'N\\'afficher que cet agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.RecurrenceCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.RecurrenceCombo.prototype, {\n'
20130515 "        fieldLabel: 'R\xc3\xa9ccurence',\n"
20130515 '        recurrenceText: {\n'
20130515 "            none: 'Ne pas r\xc3\xa9p\xc3\xa9ter',\n"
20130515 "            daily: 'Quotidien',\n"
20130515 "            weekly: 'Hebdomadaire',\n"
20130515 "            monthly: 'Mensuel',\n"
20130515 "            yearly: 'Annuel'\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.ReminderField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.ReminderField.prototype, {\n'
20130515 "        fieldLabel: 'Rappel',\n"
20130515 "        noneText: 'Aucun',\n"
20130515 "        atStartTimeText: 'au d\xc3\xa9but',\n"
20130515 '        getMinutesText: function(numMinutes){\n'
20130515 "            return numMinutes === 1 ? 'minute' : 'minutes';\n"
20130515 '        },\n'
20130515 '        getHoursText: function(numHours){\n'
20130515 "            return numHours === 1 ? 'heure' : 'heures';\n"
20130515 '        },\n'
20130515 '        getDaysText: function(numDays){\n'
20130515 "            return numDays === 1 ? 'jour' : 'jours';\n"
20130515 '        },\n'
20130515 '        getWeeksText: function(numWeeks){\n'
20130515 "            return numWeeks === 1 ? 'semaine' : 'semaines';\n"
20130515 '        },\n'
20130515 '        reminderValueFormat: \'{0} {1} avant le d\xc3\xa9but\' // e.g. "2 hours before start"\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        dateFormat: 'd/m/Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventContextMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventContextMenu.prototype, {\n'
20130515 "        editDetailsText: '\xc3\x89diter les d\xc3\xa9tails',\n"
20130515 "        deleteText: 'Effacer',\n"
20130515 "        moveToText: 'D\xc3\xa9placer au...'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat: 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DayViewDropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DayViewDropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat : 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.BoxLayoutTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.BoxLayoutTemplate.prototype, {\n'
20130515 "        firstWeekDateFormat: 'D d',\n"
20130515 "        otherWeeksDateFormat: 'd',\n"
20130515 "        singleDayDateFormat: 'l d F Y',\n"
20130515 "        multiDayFirstDayFormat: 'd M Y',\n"
20130515 "        multiDayMonthStartFormat: 'd M'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthViewTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthViewTemplate.prototype, {\n'
20130515 "        dayHeaderFormat: 'D',\n"
20130515 "        dayHeaderTitleFormat: 'l d F Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:30 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21304\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/** ************************************************************\r\n'
20130515 '\tExt.ux.TinyMCE v0.8.5\r\n'
20130515 '\tExtJS form field containing TinyMCE v3.\r\n'
20130515 '\t\r\n'
20130515 '\tAuthor: Andrew Mayorov et al.\r\n'
20130515 '\thttp://blogs.byte-force.com/xor\r\n'
20130515 '  \r\n'
20130515 '\tCopyright (c)2008-2010 BYTE-force\r\n'
20130515 '\twww.byte-force.com\r\n'
20130515 '\t\r\n'
20130515 '\tLicense: LGPLv2.1 or later\r\n'
20130515 '  \r\n'
20130515 '  Modifs by Luc Saffre:\r\n'
20130515 '  \r\n'
20130515 '  disable function sets ``this.disabled = true;`` \r\n'
20130515 '  (enable function the opposite)\r\n'
20130515 '  \r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '(function() {\r\n'
20130515 '\r\n'
20130515 '\tExt.namespace("Ext.ux");\r\n'
20130515 '\r\n'
20130515 '\tvar tmceInitialized = false;\r\n'
20130515 '\r\n'
20130515 '\t// Lazy references to classes. To be filled in the initTinyMCE method.\r\n'
20130515 '\tvar WindowManager;\r\n'
20130515 '\tvar ControlManager;\r\n'
20130515 '\r\n'
20130515 '\t// Create a new Windows Group for the dialogs\r\n'
20130515 '\t/*var windowGroup = new Ext.WindowGroup();\r\n'
20130515 '\twindowGroup.zseed = 12000;*/\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\t/** ----------------------------------------------------------\r\n'
20130515 '\tExt.ux.TinyMCE\r\n'
20130515 '\t*/\r\n'
20130515 '\tExt.ux.TinyMCE = Ext.extend( Ext.form.Field, {\r\n'
20130515 '\r\n'
20130515 '\t\t// TinyMCE Settings specified for this instance of the editor.\r\n'
20130515 '\t\ttinymceSettings: null,\r\n'
20130515 '\r\n'
20130515 '\t\t// Validation properties\r\n'
20130515 '\t\tallowBlank: true,\r\n'
20130515 '\t\tinvalidText: "The value in this field is invalid",\r\n'
20130515 '\t\tinvalidClass: "invalid-content-body",\r\n'
20130515 "\t\tminLengthText : 'The minimum length for this field is {0}',\r\n"
20130515 "\t\tmaxLengthText : 'The maximum length for this field is {0}',\r\n"
20130515 "\t\tblankText : 'This field is required',\r\n"
20130515 '\r\n'
20130515 '\t\t// HTML markup for this field\r\n'
20130515 "\t\thideMode: 'offsets',\r\n"
20130515 '\t\tdefaultAutoCreate: {\r\n'
20130515 '\t\t\ttag: "textarea",\r\n'
20130515 '\t\t\tstyle: "width:1px;height:1px;",\r\n'
20130515 '\t\t\tautocomplete: "off"\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tconstructor: function(cfg) {\r\n'
20130515 '\r\n'
20130515 '\t\t\tvar config = {\r\n'
20130515 '\t\t\t\ttinymceSettings: {\r\n'
20130515 '\t\t\t\t\taccessibility_focus: false\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.apply(config, cfg);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Add events\r\n'
20130515 '\t\t\tthis.addEvents({\r\n'
20130515 '\t\t\t\t"editorcreated": true\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.constructor.call(this, config);\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitComponent: function() {\r\n'
20130515 '\t\t\tthis.tinymceSettings = this.tinymceSettings || {};\r\n'
20130515 "      //~ console.log('initComponent',this.tinymceSettings);\r\n"
20130515 '\t\t\tExt.ux.TinyMCE.initTinyMCE({ language: this.tinymceSettings.language });\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitEvents: function() {\r\n'
20130515 '\t\t\tthis.originalValue = this.getValue();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonRender: function(ct, position) {\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Fix size if it was specified in config\r\n'
20130515 '\t\t\tif (Ext.type(this.width) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.width = this.width;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (Ext.type(this.height) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.height = this.height;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 "\t\t\t//this.el.dom.style.border = '0 none';\r\n"
20130515 "\t\t\tthis.el.dom.setAttribute('tabIndex', -1);\r\n"
20130515 "\t\t\tthis.el.addClass('x-hidden');\r\n"
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Wrap textarea into DIV\r\n'
20130515 '\t\t\tthis.textareaEl = this.el;\r\n'
20130515 '\t\t\tvar wrapElStyle = { overflow: "hidden" };\r\n'
20130515 '\t\t\tif( Ext.isIE ) { // fix IE 1px bogus margin\r\n'
20130515 '\t\t\t\twrapElStyle["margin-top"] = "-1px";\r\n'
20130515 '\t\t\t\twrapElStyle["margin-bottom"] = "-1px";\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tthis.wrapEl = this.el.wrap({ style: wrapElStyle });\r\n'
20130515 '\t\t\tthis.actionMode = "wrapEl"; // Set action element to the new wrapper\r\n'
20130515 '\t\t\tthis.positionEl = this.wrapEl;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar id = this.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Create TinyMCE editor.\r\n'
20130515 '\t\t\tthis.ed = new tinymce.Editor(id, this.tinymceSettings);\r\n'
20130515 '      \r\n'
20130515 '      // LS 20110602\r\n'
20130515 '      //~ this.ed.addShortcut(\'ctrl+c\', "Close editor window", ct.close,this);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Validate value onKeyPress\r\n'
20130515 '\t\t\tvar validateContentTask = new Ext.util.DelayedTask( this.validate, this );\r\n'
20130515 '\t\t\tthis.ed.onKeyPress.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvalidateContentTask.delay( 250 );\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 "\t\t\t// Set up editor events' handlers\r\n"
20130515 '\t\t\tthis.ed.onBeforeRenderUI.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\t// Replace control manager\r\n'
20130515 '\t\t\t\ted.controlManager = new ControlManager(this, ed);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.ed.onPostRender.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvar s = ed.settings;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Modify markup.\r\n'
20130515 '\t\t\t\tvar tbar = Ext.get(Ext.DomQuery.selectNode("#" + this.ed.id + "_tbl td.mceToolbar"));\r\n'
20130515 '\t\t\t\tif( tbar != null ) {\r\n'
20130515 '\t\t\t\t\t// If toolbar is present\r\n'
20130515 '\t\t\t\t\tvar tbars = tbar.select("> table.mceToolbar");\r\n'
20130515 '\t\t\t\t\tExt.DomHelper\r\n'
20130515 '\t\t\t\t\t\t.append( tbar,\r\n'
20130515 '\t\t\t\t\t\t\t{ tag: "div", id: this.ed.id + "_xtbar", style: { overflow: "hidden"} }\r\n'
20130515 '\t\t\t\t\t\t\t, true )\r\n'
20130515 '\t\t\t\t\t\t.appendChild(tbars);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\t// Change window manager\r\n'
20130515 '\t\t\t\ted.windowManager = new WindowManager({\r\n'
20130515 '\t\t\t\t\teditor: this.ed,\r\n'
20130515 '\t\t\t\t\tmanager: this.manager\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t\t// Patch css-style for validation body like ExtJS\r\n'
20130515 "\t\t\t\tExt.get(ed.getContentAreaContainer()).addClass('patch-content-body');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t// Event of focused body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("focus", this.onFocus, this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Event of blur body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("blur", this.onBlur, this,\r\n'
20130515 '\t\t\t\t\t\tthis.inEditor && Ext.isWindows && Ext.isGecko ? { buffer: 10} : null\r\n'
20130515 '\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Set event handler on editor init.\r\n'
20130515 '\t\t\t//this.ed.onInit.add(function() {\r\n'
20130515 '\t\t\t//} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Wire "change" event\r\n'
20130515 '\t\t\tthis.ed.onChange.add(function(ed, l) {\r\n'
20130515 '\t\t\t\tthis.fireEvent("change", ed, l);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Render the editor\r\n'
20130515 '\t\t\tthis.ed.render();\r\n'
20130515 '\t\t\ttinyMCE.add(this.ed);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Fix editor size when control will be visible\r\n'
20130515 '\t\t\t(function fixEditorSize() {\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t\t// If element is not visible yet, wait.\r\n'
20130515 '\t\t\t\tif( !this.isVisible() ) {\r\n'
20130515 '\t\t\t\t\targuments.callee.defer( 50, this );\r\n'
20130515 '\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tvar size = this.getSize();\r\n'
20130515 '\t\t\t\tthis.withEd( function() {\r\n'
20130515 '\t\t\t\t\tthis._setEditorSize( size.width, size.height );\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t\t// Indicate that editor is created\r\n'
20130515 '\t\t\t\t\tthis.fireEvent("editorcreated");\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t}).call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetResizeEl: function() {\r\n'
20130515 '\t\t\treturn this.wrapEl;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t* Returns the name attribute of the field if available\r\n'
20130515 '\t\t* @return {String} name The field name\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetName: function() {\r\n'
20130515 '\t\t\treturn this.rendered && this.textareaEl.dom.name\r\n'
20130515 "\t\t\t\t? this.textareaEl.dom.name : (this.name || '');\r\n"
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif (!this.rendered)\r\n'
20130515 '\t\t\t\tExt.ux.TinyMCE.superclass.initValue.call(this);\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\tif (this.value !== undefined) {\r\n'
20130515 '\t\t\t\t\tthis.setValue(this.value);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse {\r\n'
20130515 '\t\t\t\t\tvar v = this.textareaEl.value; \r\n'
20130515 '\t\t\t\t\tif ( v )\r\n'
20130515 '\t\t\t\t\t\tthis.setValue( v );\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tbeforeDestroy: function() {\r\n'
20130515 '\t\t\tif( this.ed ) tinyMCE.remove( this.ed );\r\n'
20130515 '\t\t\tif( this.wrapEl ) Ext.destroy( this.wrapEl );\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.beforeDestroy.call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetRawValue : function(){\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '\t\t\tif(v === this.emptyText){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '      //~ console.log(v);\r\n'
20130515 '\t\t\tif( v === this.emptyText || v === undefined ){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetRawValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setRawValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t\tthis.validate();\r\n'
20130515 '\t\t\t\t\t//this.ed.resizeToContent();\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tisDirty: function() {\r\n'
20130515 '\t\t\tif (this.disabled || !this.rendered) {\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn this.ed && this.ed.initialized && this.ed.isDirty();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsyncValue: function() {\r\n'
20130515 '\t\t\tif (this.rendered && this.ed.initialized)\r\n'
20130515 '\t\t\t\tthis.ed.save();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetEd: function() {\r\n'
20130515 '\t\t\treturn this.ed;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tdisable: function() {\r\n'
20130515 '      this.disabled = true;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = true;\r\n'
20130515 '        //~ this.ed.setupContentEditable(false);\r\n'
20130515 '        //~ this.ed.controlManager.setDisabled(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = true;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceContentBody')) {\r\n"
20130515 "          //~ console.log('Ext.ux.TinyMCE.disable() 3') \r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceContentBody');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceNonEditable');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.readonly = true;\r\n'
20130515 '\t\t\t\t\t//~ bodyEl.setAttribute("disabled", "disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tenable: function() {\r\n'
20130515 '      this.disabled = false;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = false;\r\n'
20130515 '        //~ this.ed.setupContentEditable(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = false;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceNonEditable')) {\r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceNonEditable');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceContentBody');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.removeAttribute("disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonResize: function(aw, ah) {\r\n'
20130515 '\t\t\tif( Ext.type( aw ) != "number" ){\r\n'
20130515 '\t\t\t\taw = this.getWidth();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif( Ext.type(ah) != "number" ){\r\n'
20130515 '\t\t\t\tah = this.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (aw == 0 || ah == 0)\r\n'
20130515 '\t\t\t\treturn;\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( this.rendered && this.isVisible() ) {\r\n'
20130515 '\t\t\t\tthis.withEd(function() { this._setEditorSize( aw, ah ); });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tSets control size to the given width and height\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\t_setEditorSize: function( width, height ) {\r\n'
20130515 '\t\t  //~ console.log("_setEditorSize",arguments);\r\n'
20130515 '\t\t\t// We currently support only advanced theme resize\r\n'
20130515 '\t\t\tif( !this.ed.theme.AdvancedTheme ) {\r\n'
20130515 '          //~ console.log("We currently support only advanced theme resize, but this.ed.theme is",this.ed.theme);\r\n'
20130515 '          return;\r\n'
20130515 '      }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\t// Minimal width and height for advanced theme\r\n'
20130515 '\t\t\tif( width < 100 ) width = 100;\r\n'
20130515 '\t\t\tif( height < 129 ) height = 129;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Set toolbar div width\r\n'
20130515 '\t\t\tvar edTable = Ext.get(this.ed.id + "_tbl"), \r\n'
20130515 '\t\t\t\tedIframe = Ext.get(this.ed.id + "_ifr"),\r\n'
20130515 '\t\t\t\tedToolbar = Ext.get(this.ed.id + "_xtbar");\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarWidth = width;\r\n'
20130515 '\t\t\tif( edTable ) \r\n'
20130515 '\t\t\t\ttoolbarWidth = width - edTable.getFrameWidth( "lr" );\t\t\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarHeight = 0;\r\n'
20130515 '\t\t\tif( edToolbar ) {\r\n'
20130515 '\t\t\t\ttoolbarHeight = edToolbar.getHeight();\r\n'
20130515 '\t\t\t\tvar toolbarTd = edToolbar.findParent( "td", 5, true );\r\n'
20130515 '\t\t\t\ttoolbarHeight += toolbarTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\tedToolbar.setWidth( toolbarWidth );\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar edStatusbarTd = edTable.child( ".mceStatusbar" );\r\n'
20130515 '\t\t\tvar statusbarHeight = 0;\r\n'
20130515 '\t\t\tif( edStatusbarTd ) {\r\n'
20130515 '\t\t\t\tstatusbarHeight += edStatusbarTd.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar iframeHeight = height - toolbarHeight - statusbarHeight;\r\n'
20130515 '\t\t\tvar iframeTd = edIframe.findParent( "td", 5, true );\r\n'
20130515 '\t\t\tif( iframeTd )\r\n'
20130515 '\t\t\t\tiframeHeight -= iframeTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t// Resize iframe and container\r\n'
20130515 '\t\t\tedTable.setSize( width, height );\r\n'
20130515 '\t\t\tedIframe.setSize( toolbarWidth, iframeHeight );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tfocus: function(selectText, delay) {\r\n'
20130515 '\t\t\tif (delay) {\r\n'
20130515 "\t\t\t\tthis.focus.defer(typeof delay == 'number' ? delay : 10, this, [selectText, false]);\r\n"
20130515 '\t\t\t\treturn;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\tthis.ed.focus();\r\n'
20130515 '\t\t\t\t/*if (selectText === true) {\r\n'
20130515 "\t\t\t\t// TODO: Select editor's content\r\n"
20130515 '\t\t\t\t}*/\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\treturn this;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tprocessValue : function( value ){\r\n'
20130515 '\t\t\treturn Ext.util.Format.stripTags( value );\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tvalidateValue: function( value ) {\r\n'
20130515 '\t\t\tif(Ext.isFunction(this.validator)){\r\n'
20130515 '\t\t\t\tvar msg = this.validator(value);\r\n'
20130515 '\t\t\t\tif(msg !== true){\r\n'
20130515 '\t\t\t\t\tthis.markInvalid(msg);\r\n'
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 "\t\t\tif(value.length < 1 || value === this.emptyText){ // if it's blank\r\n"
20130515 '\t\t\t\t if(this.allowBlank){\r\n'
20130515 '\t\t\t\t\t this.clearInvalid();\r\n'
20130515 '\t\t\t\t\t return true;\r\n'
20130515 '\t\t\t\t }else{\r\n'
20130515 '\t\t\t\t\t this.markInvalid(this.blankText);\r\n'
20130515 '\t\t\t\t\t return false;\r\n'
20130515 '\t\t\t\t }\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length < this.minLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.minLengthText, this.minLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length > this.maxLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.maxLengthText, this.maxLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\t\r\n'
20130515 '\t\t\tif(this.vtype){\r\n'
20130515 '\t\t\t\tvar vt = Ext.form.VTypes;\r\n'
20130515 '\t\t\t\tif(!vt[this.vtype](value, this)){\r\n'
20130515 "\t\t\t\t\tthis.markInvalid(this.vtypeText || vt[this.vtype +'Text']);\r\n"
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(this.regex && !this.regex.test(value)){\r\n'
20130515 '\t\t\t\tthis.markInvalid(this.regexText);\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn true;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\tIf ed (local editor instance) is already initilized, calls\r\n'
20130515 '\t\tspecified function directly. Otherwise - adds it to ed.onInit event.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\twithEd: function(func) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t// If editor is not created yet, reschedule this call.\r\n'
20130515 '\t\t\tif (!this.ed) this.on(\r\n'
20130515 '\t\t\t\t"editorcreated",\r\n'
20130515 '\t\t\t\tfunction() { this.withEd(func); },\r\n'
20130515 '\t\t\t\tthis);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created and initialized\r\n'
20130515 '\t\t\telse if (this.ed.initialized) func.call(this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created but not initialized yet.\r\n'
20130515 '\t\t\telse this.ed.onInit.add(function() { func.defer(10, this); } .createDelegate(this));\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\t// Add static members\r\n'
20130515 '\tExt.apply(Ext.ux.TinyMCE, {\r\n'
20130515 '\r\n'
20130515 '\t\t/**\r\n'
20130515 '\t\tStatic field with all the plugins that should be loaded by TinyMCE.\r\n'
20130515 '\t\tShould be set before first component would be created.\r\n'
20130515 '\t\t@static\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\ttinymcePlugins: "pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template",\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tInits TinyMCE and other necessary dependencies.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitTinyMCE: function(settings) {\r\n'
20130515 '\t\t\tif (!tmceInitialized) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Create lazy classes\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tWindowManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tWindowManager = Ext.extend( tinymce.WindowManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t\tConfig parameters:\r\n'
20130515 '\t\t\t\t\t\teditor - reference to TinyMCE intstance.\r\n'
20130515 '\t\t\t\t\t\tmangager - WindowGroup to use for the popup window. Could be empty.\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function( cfg ) {\r\n'
20130515 '\t\t\t\t\t\tWindowManager.superclass.constructor.call(this, cfg.editor);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Set window group\r\n'
20130515 '\t\t\t\t\t\tthis.manager = cfg.manager;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\talert: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.alert("", txt, function() {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this);\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconfirm: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.confirm("", txt, function(btn) {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this, btn == "yes");\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\topen: function(s, p) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts = s || {};\r\n'
20130515 '\t\t\t\t\t\tp = p || {};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tif (!s.type)\r\n'
20130515 "\t\t\t\t\t\t\tthis.bookmark = this.editor.selection.getBookmark('simple');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts.width = parseInt(s.width || 320);\r\n'
20130515 '\t\t\t\t\t\ts.height = parseInt(s.height || 240) + (tinymce.isIE ? 8 : 0);\r\n'
20130515 '\t\t\t\t\t\ts.min_width = parseInt(s.min_width || 150);\r\n'
20130515 '\t\t\t\t\t\ts.min_height = parseInt(s.min_height || 100);\r\n'
20130515 '\t\t\t\t\t\ts.max_width = parseInt(s.max_width || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.max_height = parseInt(s.max_height || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.movable = true;\r\n'
20130515 '\t\t\t\t\t\ts.resizable = true;\r\n'
20130515 '\t\t\t\t\t\tp.mce_width = s.width;\r\n'
20130515 '\t\t\t\t\t\tp.mce_height = s.height;\r\n'
20130515 '\t\t\t\t\t\tp.mce_inline = true;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tthis.features = s;\r\n'
20130515 '\t\t\t\t\t\tthis.params = p;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar win = new Ext.Window(\r\n'
20130515 '\t\t\t\t\t\t{\r\n'
20130515 '\t\t\t\t\t\t\ttitle: s.name,\r\n'
20130515 '\t\t\t\t\t\t\twidth: s.width,\r\n'
20130515 '\t\t\t\t\t\t\theight: s.height,\r\n'
20130515 '\t\t\t\t\t\t\tminWidth: s.min_width,\r\n'
20130515 '\t\t\t\t\t\t\tminHeight: s.min_height,\r\n'
20130515 '\t\t\t\t\t\t\tresizable: true,\r\n'
20130515 '\t\t\t\t\t\t\tmaximizable: s.maximizable,\r\n'
20130515 '\t\t\t\t\t\t\tminimizable: s.minimizable,\r\n'
20130515 '\t\t\t\t\t\t\tmodal: true,\r\n'
20130515 '\t\t\t\t\t\t\tstateful: false,\r\n'
20130515 '\t\t\t\t\t\t\tconstrain: true,\r\n'
20130515 '\t\t\t\t\t\t\tmanager: this.manager,\r\n'
20130515 '\t\t\t\t\t\t\tlayout: "fit",\r\n'
20130515 '\t\t\t\t\t\t\titems: [\r\n'
20130515 '\t\t\t\t\t\t\t\tnew Ext.BoxComponent({\r\n'
20130515 '\t\t\t\t\t\t\t\t\tautoEl: {\r\n'
20130515 "\t\t\t\t\t\t\t\t\t\ttag: 'iframe',\r\n"
20130515 '\t\t\t\t\t\t\t\t\t\tsrc: s.url || s.file\r\n'
20130515 '\t\t\t\t\t\t\t\t\t},\r\n'
20130515 "\t\t\t\t\t\t\t\t\tstyle : 'border-width: 0px;'\r\n"
20130515 '\t\t\t\t\t\t\t\t})\r\n'
20130515 '\t\t\t\t\t\t\t]\r\n'
20130515 '\t\t\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tp.mce_window_id = win.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\twin.show(null,\r\n'
20130515 '\t\t\t\t\t\t\tfunction() {\r\n'
20130515 '\t\t\t\t\t\t\t\tif (s.left && s.top)\r\n'
20130515 '\t\t\t\t\t\t\t\t\twin.setPagePosition(s.left, s.top);\r\n'
20130515 '\t\t\t\t\t\t\t\tvar pos = win.getPosition();\r\n'
20130515 '\t\t\t\t\t\t\t\ts.left = pos[0];\r\n'
20130515 '\t\t\t\t\t\t\t\ts.top = pos[1];\r\n'
20130515 '\t\t\t\t\t\t\t\tthis.onOpen.dispatch(this, s, p);\r\n'
20130515 '\t\t\t\t\t\t\t},\r\n'
20130515 '\t\t\t\t\t\t\tthis\r\n'
20130515 '\t\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn win;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tclose: function(win) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.close.call(this, win);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tthis.onClose.dispatch(this);\r\n'
20130515 '\t\t\t\t\t\t\tw.close();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tsetTitle: function(win, ti) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.setTitle.call(this, win, ti);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setTitle(ti);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tresizeBy: function(dw, dh, id) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tvar size = w.getSize();\r\n'
20130515 '\t\t\t\t\t\t\tw.setSize(size.width + dw, size.height + dh);\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tfocus: function(id) {\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setActive(true);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tControlManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tControlManager = Ext.extend( tinymce.ControlManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t// Reference to ExtJS control Ext.ux.TinyMCE.\r\n'
20130515 '\t\t\t\t\tcontrol: null,\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function(control, ed, s) {\r\n'
20130515 '\t\t\t\t\t\tthis.control = control;\r\n'
20130515 '\t\t\t\t\t\tControlManager.superclass.constructor.call(this, ed, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateDropMenu: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createDropMenu.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(\'menu_\' + this.id).setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateColorSplitButton: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createColorSplitButton.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(this.id + \'_menu\').setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Init TinyMCE\r\n'
20130515 '\t\t\t\tvar s = {\r\n'
20130515 '\t\t\t\t\tmode: "none",\r\n'
20130515 '\t\t\t\t\tplugins: Ext.ux.TinyMCE.tinymcePlugins,\r\n'
20130515 '\t\t\t\t\ttheme: "advanced"\r\n'
20130515 '\t\t\t\t};\r\n'
20130515 '\t\t\t\tExt.apply(s, settings);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\tif (!tinymce.dom.Event.domLoaded)\r\n'
20130515 '\t\t\t\t\ttinymce.dom.Event._pageInit();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\ttinyMCE.init(s);\r\n'
20130515 '\t\t\t\ttmceInitialized = true;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\tExt.ComponentMgr.registerType("tinymce", Ext.ux.TinyMCE);\r\n'
20130515 '\r\n'
20130515 '})();'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:30 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21047\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '// vim: ts=4:sw=4:nu:fdc=4:nospell\r\n'
20130515 '/*global Ext */\r\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ux.form.DateTime\r\n'
20130515 ' * @extends Ext.form.Field\r\n'
20130515 ' *\r\n'
20130515 ' * DateTime field, combination of DateField and TimeField\r\n'
20130515 ' *\r\n'
20130515 ' * @author      Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @copyright (c) 2008, Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @version   2.0\r\n'
20130515 ' * @revision  $Id: Ext.ux.form.DateTime.js 813 2010-01-29 23:32:36Z jozo $\r\n'
20130515 ' *\r\n'
20130515 ' * @license Ext.ux.form.DateTime is licensed under the terms of\r\n'
20130515 ' * the Open Source LGPL 3.0 license.  Commercial use is permitted to the extent\r\n'
20130515 ' * that the code/component(s) do NOT become part of another Open Source or Commercially\r\n'
20130515 ' * licensed development library or toolkit without explicit permission.\r\n'
20130515 ' * \r\n'
20130515 ' * <p>License details: <a href="http://www.gnu.org/licenses/lgpl.html"\r\n'
20130515 ' * target="_blank">http://www.gnu.org/licenses/lgpl.html</a></p>\r\n'
20130515 ' *\r\n'
20130515 ' * @forum      22661\r\n'
20130515 ' *\r\n'
20130515 ' * @donate\r\n'
20130515 ' * <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">\r\n'
20130515 ' * <input type="hidden" name="cmd" value="_s-xclick">\r\n'
20130515 ' * <input type="hidden" name="hosted_button_id" value="3430419">\r\n'
20130515 ' * <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" \r\n'
20130515 ' * border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">\r\n'
20130515 ' * <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">\r\n'
20130515 ' * </form>\r\n'
20130515 ' */\r\n'
20130515 '\r\n'
20130515 "Ext.ns('Ext.ux.form');\r\n"
20130515 '\r\n'
20130515 '/**\r\n'
20130515 ' * Creates new DateTime\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config A config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ux.form.DateTime = Ext.extend(Ext.form.Field, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} dateValidator A custom validation function to be called during date field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '     dateValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String/Object} defaultAutoCreate DomHelper element spec\r\n'
20130515 '     * Let superclass to create hidden field instead of textbox. Hidden will be submittend to server\r\n'
20130515 '     */\r\n'
20130515 "    ,defaultAutoCreate:{tag:'input', type:'hidden'}\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dtSeparator Date - Time separator. Used to split date and time (defaults to ' ' (space))\r\n"
20130515 '     */\r\n'
20130515 "    ,dtSeparator:' '\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} hiddenFormat Format of datetime used to store value in hidden field\r\n'
20130515 "     * and submitted to server (defaults to 'Y-m-d H:i:s' that is mysql format)\r\n"
20130515 '     */\r\n'
20130515 "    ,hiddenFormat:'Y-m-d H:i:s'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} otherToNow Set other field to now() if not explicly filled in (defaults to true)\r\n'
20130515 '     */\r\n'
20130515 '    ,otherToNow:true\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} emptyToNow Set field value to now on attempt to set empty value.\r\n'
20130515 '     * If it is true then setValue() sets value of field to current date and time (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timePosition Where the time field should be rendered. 'right' is suitable for forms\r\n"
20130515 "     * and 'below' is suitable if the field is used as the grid editor (defaults to 'right')\r\n"
20130515 '     */\r\n'
20130515 "    ,timePosition:'right' // valid values:'below', 'right'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} timeValidator A custom validation function to be called during time field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} timeWidth Width of time field in pixels (defaults to 100)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeWidth:100\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dateFormat Format of DateField. Can be localized. (defaults to 'm/y/d')\r\n"
20130515 '     */\r\n'
20130515 "    ,dateFormat:'m/d/y'\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timeFormat Format of TimeField. Can be localized. (defaults to 'g:i A')\r\n"
20130515 '     */\r\n'
20130515 "    ,timeFormat:'g:i A'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} dateConfig Config for DateField constructor.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} timeConfig Config for TimeField constructor.\r\n'
20130515 '     */\r\n'
20130515 '\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * creates DateField and TimeField and installs the necessary event handlers\r\n'
20130515 '     */\r\n'
20130515 '    ,initComponent:function() {\r\n'
20130515 '        // call parent initComponent\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.initComponent.call(this);\r\n'
20130515 '\r\n'
20130515 '        // create DateField\r\n'
20130515 '        var dateConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-date'\r\n"
20130515 '            ,format:this.dateFormat || Ext.form.DateField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.dateValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.dateConfig);\r\n'
20130515 '        this.df = new Ext.form.DateField(dateConfig);\r\n'
20130515 '        this.df.ownerCt = this;\r\n'
20130515 '        delete(this.dateFormat);\r\n'
20130515 '\r\n'
20130515 '        // create TimeField\r\n'
20130515 '        var timeConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-time'\r\n"
20130515 '            ,format:this.timeFormat || Ext.form.TimeField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.timeValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.timeConfig);\r\n'
20130515 '        this.tf = new Ext.form.TimeField(timeConfig);\r\n'
20130515 '        this.tf.ownerCt = this;\r\n'
20130515 '        delete(this.timeFormat);\r\n'
20130515 '\r\n'
20130515 '        // relay events\r\n'
20130515 "        this.relayEvents(this.df, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 "        this.relayEvents(this.tf, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 '\r\n'
20130515 "        this.on('specialkey', this.onSpecialKey, this);\r\n"
20130515 '\r\n'
20130515 '    } // eo function initComponent\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Renders underlying DateField and TimeField and provides a workaround for side error icon bug\r\n'
20130515 '     */\r\n'
20130515 '    ,onRender:function(ct, position) {\r\n'
20130515 "        // don't run more than once\r\n"
20130515 '        if(this.isRendered) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // render underlying hidden field\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '        // render DateField and TimeField\r\n'
20130515 '        // create bounding table\r\n'
20130515 '        var t;\r\n'
20130515 "        if('below' === this.timePosition || 'bellow' === this.timePosition) {\r\n"
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                 {tag:'tr',children:[{tag:'td', style:'padding-bottom:1px', cls:'ux-datetime-date'}]}\r\n"
20130515 "                ,{tag:'tr',children:[{tag:'td', cls:'ux-datetime-time'}]}\r\n"
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                {tag:'tr',children:[\r\n"
20130515 "                    {tag:'td',style:'padding-right:4px', cls:'ux-datetime-date'},{tag:'td', cls:'ux-datetime-time'}\r\n"
20130515 '                ]}\r\n'
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.tableEl = t;\r\n'
20130515 "        this.wrap = t.wrap({cls:'x-form-field-wrap'});\r\n"
20130515 '//        this.wrap = t.wrap();\r\n'
20130515 '        this.wrap.on("mousedown", this.onMouseDown, this, {delay:10});\r\n'
20130515 '\r\n'
20130515 '        // render DateField & TimeField\r\n'
20130515 "        this.df.render(t.child('td.ux-datetime-date'));\r\n"
20130515 "        this.tf.render(t.child('td.ux-datetime-time'));\r\n"
20130515 '\r\n'
20130515 '        // workaround for IE trigger misalignment bug\r\n'
20130515 '        // see http://extjs.com/forum/showthread.php?p=341075#post341075\r\n'
20130515 '//        if(Ext.isIE && Ext.isStrict) {\r\n'
20130515 "//            t.select('input').applyStyles({top:0});\r\n"
20130515 '//        }\r\n'
20130515 '\r\n'
20130515 "        this.df.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 "        this.tf.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 '\r\n'
20130515 '        // create icon for side invalid errorIcon\r\n'
20130515 "        if('side' === this.msgTarget) {\r\n"
20130515 "            var elp = this.el.findParent('.x-form-element', 10, true);\r\n"
20130515 '            if(elp) {\r\n'
20130515 "                this.errorIcon = elp.createChild({cls:'x-form-invalid-icon'});\r\n"
20130515 '            }\r\n'
20130515 '\r\n'
20130515 '            var o = {\r\n'
20130515 '                 errorIcon:this.errorIcon\r\n'
20130515 "                ,msgTarget:'side'\r\n"
20130515 '                ,alignErrorIcon:this.alignErrorIcon.createDelegate(this)\r\n'
20130515 '            };\r\n'
20130515 '            Ext.apply(this.df, o);\r\n'
20130515 '            Ext.apply(this.tf, o);\r\n'
20130515 '//            this.df.errorIcon = this.errorIcon;\r\n'
20130515 '//            this.tf.errorIcon = this.errorIcon;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // setup name for submit\r\n'
20130515 '        this.el.dom.name = this.hiddenName || this.name || this.id;\r\n'
20130515 '\r\n'
20130515 '        // prevent helper fields from being submitted\r\n'
20130515 '        this.df.el.dom.removeAttribute("name");\r\n'
20130515 '        this.tf.el.dom.removeAttribute("name");\r\n'
20130515 '\r\n'
20130515 "        // we're rendered flag\r\n"
20130515 '        this.isRendered = true;\r\n'
20130515 '\r\n'
20130515 '        // update hidden field\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '    } // eo function onRender\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,adjustSize:Ext.BoxComponent.prototype.adjustSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,alignErrorIcon:function() {\r\n'
20130515 "        this.errorIcon.alignTo(this.tableEl, 'tl-tr', [2, 0]);\r\n"
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private initializes internal dateValue\r\n'
20130515 '     */\r\n'
20130515 '    ,initDateValue:function() {\r\n'
20130515 '        this.dateValue = this.otherToNow ? new Date() : new Date(1970, 0, 1, 0, 0, 0);\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls clearInvalid on the DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,clearInvalid:function(){\r\n'
20130515 '        this.df.clearInvalid();\r\n'
20130515 '        this.tf.clearInvalid();\r\n'
20130515 '    } // eo function clearInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls markInvalid on both DateField and TimeField\r\n'
20130515 '     * @param {String} msg Invalid message to display\r\n'
20130515 '     */\r\n'
20130515 '    ,markInvalid:function(msg){\r\n'
20130515 '        this.df.markInvalid(msg);\r\n'
20130515 '        this.tf.markInvalid(msg);\r\n'
20130515 '    } // eo function markInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * called from Component::destroy. \r\n'
20130515 "     * Destroys all elements and removes all listeners we've created.\r\n"
20130515 '     */\r\n'
20130515 '    ,beforeDestroy:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '//            this.removeAllListeners();\r\n'
20130515 '            this.wrap.removeAllListeners();\r\n'
20130515 '            this.wrap.remove();\r\n'
20130515 '            this.tableEl.remove();\r\n'
20130515 '            this.df.destroy();\r\n'
20130515 '            this.tf.destroy();\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function beforeDestroy\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Disable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,disable:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '            this.df.disabled = this.disabled;\r\n'
20130515 '            this.df.onDisable();\r\n'
20130515 '            this.tf.onDisable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = true;\r\n'
20130515 '        this.df.disabled = true;\r\n'
20130515 '        this.tf.disabled = true;\r\n'
20130515 '        this.fireEvent("disable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function disable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,enable:function() {\r\n'
20130515 '        if(this.rendered){\r\n'
20130515 '            this.df.onEnable();\r\n'
20130515 '            this.tf.onEnable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = false;\r\n'
20130515 '        this.df.disabled = false;\r\n'
20130515 '        this.tf.disabled = false;\r\n'
20130515 '        this.fireEvent("enable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function enable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Focus date filed\r\n'
20130515 '     */\r\n'
20130515 '    ,focus:function() {\r\n'
20130515 '        this.df.focus();\r\n'
20130515 '    } // eo function focus\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getPositionEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getResizeEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Date/String} Returns value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,getValue:function() {\r\n'
20130515 '        // create new instance of date\r\n'
20130515 "        return this.dateValue ? new Date(this.dateValue) : '';\r\n"
20130515 '    } // eo function getValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * @private Calls isValid methods of underlying DateField and TimeField and returns the result\r\n'
20130515 '     */\r\n'
20130515 '    ,isValid:function() {\r\n'
20130515 '        return this.df.isValid() && this.tf.isValid();\r\n'
20130515 '    } // eo function isValid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns true if this component is visible\r\n'
20130515 '     * @return {boolean} \r\n'
20130515 '     */\r\n'
20130515 '    ,isVisible : function(){\r\n'
20130515 '        return this.df.rendered && this.df.getActionEl().isVisible();\r\n'
20130515 '    } // eo function isVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Handles blur event\r\n'
20130515 '     */\r\n'
20130515 '    ,onBlur:function(f) {\r\n'
20130515 '        // called by both DateField and TimeField blur events\r\n'
20130515 '\r\n'
20130515 '        // revert focus to previous field if clicked in between\r\n'
20130515 '        if(this.wrapClick) {\r\n'
20130515 '            f.focus();\r\n'
20130515 '            this.wrapClick = false;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // update underlying value\r\n'
20130515 '        if(f === this.df) {\r\n'
20130515 '            this.updateDate();\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.updateTime();\r\n'
20130515 '        }\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        this.validate();\r\n'
20130515 '\r\n'
20130515 '        // fire events later\r\n'
20130515 '        (function() {\r\n'
20130515 '            if(!this.df.hasFocus && !this.tf.hasFocus) {\r\n'
20130515 '                var v = this.getValue();\r\n'
20130515 '                if(String(v) !== String(this.startValue)) {\r\n'
20130515 '                    this.fireEvent("change", this, v, this.startValue);\r\n'
20130515 '                }\r\n'
20130515 '                this.hasFocus = false;\r\n'
20130515 "                this.fireEvent('blur', this);\r\n"
20130515 '            }\r\n'
20130515 '        }).defer(100, this);\r\n'
20130515 '\r\n'
20130515 '    } // eo function onBlur\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Handles focus event\r\n'
20130515 '     */\r\n'
20130515 '    ,onFocus:function() {\r\n'
20130515 '        if(!this.hasFocus){\r\n'
20130515 '            this.hasFocus = true;\r\n'
20130515 '            this.startValue = this.getValue();\r\n'
20130515 '            this.fireEvent("focus", this);\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Just to prevent blur event when clicked in the middle of fields\r\n'
20130515 '     */\r\n'
20130515 '    ,onMouseDown:function(e) {\r\n'
20130515 '        if(!this.disabled) {\r\n'
20130515 "            this.wrapClick = 'td' === e.target.nodeName.toLowerCase();\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Handles Tab and Shift-Tab events\r\n'
20130515 '     */\r\n'
20130515 '    ,onSpecialKey:function(t, e) {\r\n'
20130515 '        var key = e.getKey();\r\n'
20130515 '        if(key === e.TAB) {\r\n'
20130515 '            if(t === this.df && !e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.tf.focus();\r\n'
20130515 '            }\r\n'
20130515 '            if(t === this.tf && e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.df.focus();\r\n'
20130515 '            }\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '        // otherwise it misbehaves in editor grid\r\n'
20130515 '        if(key === e.ENTER) {\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '    } // eo function onSpecialKey\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Resets the current field value to the originally loaded value \r\n'
20130515 '     * and clears any validation messages. See Ext.form.BasicForm.trackResetOnLoad\r\n'
20130515 '     */\r\n'
20130515 '    ,reset:function() {\r\n'
20130515 '        this.df.setValue(this.originalValue);\r\n'
20130515 '        this.tf.setValue(this.originalValue);\r\n'
20130515 '    } // eo function reset\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Sets the value of DateField\r\n'
20130515 '     */\r\n'
20130515 '    ,setDate:function(date) {\r\n'
20130515 '        this.df.setValue(date);\r\n'
20130515 '    } // eo function setDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Sets the value of TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,setTime:function(date) {\r\n'
20130515 '        this.tf.setValue(date);\r\n'
20130515 '    } // eo function setTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Sets correct sizes of underlying DateField and TimeField\r\n'
20130515 '     * With workarounds for IE bugs\r\n'
20130515 '     */\r\n'
20130515 '    ,setSize:function(w, h) {\r\n'
20130515 '        if(!w) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if('below' === this.timePosition) {\r\n"
20130515 '            this.df.setSize(w, h);\r\n'
20130515 '            this.tf.setSize(w, h);\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w);\r\n"
20130515 "                this.tf.el.up('td').setWidth(w);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.df.setSize(w - this.timeWidth - 4, h);\r\n'
20130515 '            this.tf.setSize(this.timeWidth, h);\r\n'
20130515 '\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w - this.timeWidth - 4);\r\n"
20130515 "                this.tf.el.up('td').setWidth(this.timeWidth);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function setSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @param {Mixed} val Value to set\r\n'
20130515 '     * Sets the value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,setValue:function(val) {\r\n'
20130515 '        if(!val && true === this.emptyToNow) {\r\n'
20130515 '            this.setValue(new Date());\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        else if(!val) {\r\n'
20130515 "            this.setDate('');\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '            this.updateValue();\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if ('number' === typeof val) {\r\n"
20130515 '          val = new Date(val);\r\n'
20130515 '        }\r\n'
20130515 "        else if('string' === typeof val && this.hiddenFormat) {\r\n"
20130515 '            val = Date.parseDate(val, this.hiddenFormat);\r\n'
20130515 '        }\r\n'
20130515 '        val = val ? val : new Date(1970, 0 ,1, 0, 0, 0);\r\n'
20130515 '        var da;\r\n'
20130515 '        if(val instanceof Date) {\r\n'
20130515 '            this.setDate(val);\r\n'
20130515 '            this.setTime(val);\r\n'
20130515 '            this.dateValue = new Date(Ext.isIE ? val.getTime() : val);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            da = val.split(this.dtSeparator);\r\n'
20130515 '            this.setDate(da[0]);\r\n'
20130515 '            if(da[1]) {\r\n'
20130515 '                if(da[2]) {\r\n'
20130515 '                    // add am/pm part back to time\r\n'
20130515 '                    da[1] += da[2];\r\n'
20130515 '                }\r\n'
20130515 '                this.setTime(da[1]);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.updateValue();\r\n'
20130515 '    } // eo function setValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Hide or show this component by boolean\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,setVisible: function(visible){\r\n'
20130515 '        if(visible) {\r\n'
20130515 '            this.df.show();\r\n'
20130515 '            this.tf.show();\r\n'
20130515 '        }else{\r\n'
20130515 '            this.df.hide();\r\n'
20130515 '            this.tf.hide();\r\n'
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function setVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,show:function() {\r\n'
20130515 '        return this.setVisible(true);\r\n'
20130515 '    } // eo function show\r\n'
20130515 '    //}}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,hide:function() {\r\n'
20130515 '        return this.setVisible(false);\r\n'
20130515 '    } // eo function hide\r\n'
20130515 '    //}}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the date part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateDate:function() {\r\n'
20130515 '\r\n'
20130515 '        var d = this.df.getValue();\r\n'
20130515 '        if(d) {\r\n'
20130515 '            if(!(this.dateValue instanceof Date)) {\r\n'
20130515 '                this.initDateValue();\r\n'
20130515 '                if(!this.tf.getValue()) {\r\n'
20130515 '                    this.setTime(this.dateValue);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            this.dateValue.setMonth(0); // because of leap years\r\n'
20130515 '            this.dateValue.setFullYear(d.getFullYear());\r\n'
20130515 '            this.dateValue.setMonth(d.getMonth(), d.getDate());\r\n'
20130515 '//            this.dateValue.setDate(d.getDate());\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            this.dateValue = '';\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '        }\r\n'
20130515 '    } // eo function updateDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Updates the time part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateTime:function() {\r\n'
20130515 '        var t = this.tf.getValue();\r\n'
20130515 '        if(t && !(t instanceof Date)) {\r\n'
20130515 '            t = Date.parseDate(t, this.tf.format);\r\n'
20130515 '        }\r\n'
20130515 '        if(t && !this.df.getValue()) {\r\n'
20130515 '            this.initDateValue();\r\n'
20130515 '            this.setDate(this.dateValue);\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dateValue instanceof Date) {\r\n'
20130515 '            if(t) {\r\n'
20130515 '                this.dateValue.setHours(t.getHours());\r\n'
20130515 '                this.dateValue.setMinutes(t.getMinutes());\r\n'
20130515 '                this.dateValue.setSeconds(t.getSeconds());\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.dateValue.setHours(0);\r\n'
20130515 '                this.dateValue.setMinutes(0);\r\n'
20130515 '                this.dateValue.setSeconds(0);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function updateTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the underlying hidden field value\r\n'
20130515 '     */\r\n'
20130515 '    ,updateHidden:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 "            var value = this.dateValue instanceof Date ? this.dateValue.format(this.hiddenFormat) : '';\r\n"
20130515 '            this.el.dom.value = value;\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates all of Date, Time and Hidden\r\n'
20130515 '     */\r\n'
20130515 '    ,updateValue:function() {\r\n'
20130515 '\r\n'
20130515 '        this.updateDate();\r\n'
20130515 '        this.updateTime();\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        return;\r\n'
20130515 '    } // eo function updateValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * calls validate methods of DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,validate:function() {\r\n'
20130515 '        return this.df.validate() && this.tf.validate();\r\n'
20130515 '    } // eo function validate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns renderer suitable to render this field\r\n'
20130515 '     * @param {Object} Column model config\r\n'
20130515 '     */\r\n'
20130515 '    ,renderer: function(field) {\r\n'
20130515 '        var format = field.editor.dateFormat || Ext.ux.form.DateTime.prototype.dateFormat;\r\n'
20130515 "        format += ' ' + (field.editor.timeFormat || Ext.ux.form.DateTime.prototype.timeFormat);\r\n"
20130515 '        var renderer = function(val) {\r\n'
20130515 '            var retval = Ext.util.Format.date(val, format);\r\n'
20130515 '            return retval;\r\n'
20130515 '        };\r\n'
20130515 '        return renderer;\r\n'
20130515 '    } // eo function renderer\r\n'
20130515 '    // }}}\r\n'
20130515 '\r\n'
20130515 '}); // eo extend\r\n'
20130515 '\r\n'
20130515 '// register xtype\r\n'
20130515 "Ext.reg('xdatetime', Ext.ux.form.DateTime);\r\n"
20130515 '\r\n'
20130515 '// eof'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:30 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 15 May 2013 08:45:09 GMT\r\nContent-Length: 2000115\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\n'
20130515 ' Copyright 2009-2013 Luc Saffre\n'
20130515 ' This file is part of the Lino project.\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \n'
20130515 ' it under the terms of the GNU General Public License as published by\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\n'
20130515 ' (at your option) any later version.\n'
20130515 ' Lino is distributed in the hope that it will be useful, \n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \n'
20130515 ' GNU General Public License for more details.\n'
20130515 ' You should have received a copy of the GNU General Public License\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\n'
20130515 '*/\n'
20130515 '\n'
20130515 '// lino.js --- generated Wed May 15 11:45:07 2013 by Lino version 1.6.7.\n'
20130515 "Ext.BLANK_IMAGE_URL = 'http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif';\n"
20130515 'LANGUAGE_CHOICES = [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ];\n'
20130515 'MEDIA_URL = "/media";\n'
20130515 '\n'
20130515 '/* MonthPickerPlugin: thanks to keypoint @ sencha forum\n'
20130515 '   http://www.sencha.com/forum/showthread.php?74002-3.x-Ext.ux.MonthMenu&p=356860#post356860\n'
20130515 '*/\n'
20130515 "Ext.namespace('Ext.ux'); \n"
20130515 '\n'
20130515 'Ext.ux.MonthPickerPlugin = function() { \n'
20130515 '    var picker; \n'
20130515 '    var oldDateDefaults; \n'
20130515 '\n'
20130515 '    this.init = function(pk) { \n'
20130515 '        picker = pk; \n'
20130515 '        picker.onTriggerClick = picker.onTriggerClick.createSequence(onClick); \n'
20130515 '        picker.getValue = picker.getValue.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '        picker.beforeBlur = picker.beforeBlur.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '    }; \n'
20130515 '\n'
20130515 '    function setDefaultMonthDay() { \n'
20130515 '        oldDateDefaults = Date.defaults.d; \n'
20130515 '        Date.defaults.d = 1; \n'
20130515 '        return true; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function restoreDefaultMonthDay(ret) { \n'
20130515 '        Date.defaults.d = oldDateDefaults; \n'
20130515 '        return ret; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function onClick(e, el, opt) { \n'
20130515 '        var p = picker.menu.picker; \n'
20130515 '        p.activeDate = p.activeDate.getFirstDateOfMonth(); \n'
20130515 '        if (p.value) { \n'
20130515 '            p.value = p.value.getFirstDateOfMonth(); \n'
20130515 '        } \n'
20130515 '\n'
20130515 '        p.showMonthPicker(); \n'
20130515 '         \n'
20130515 '        if (!p.disabled) { \n'
20130515 '            p.monthPicker.stopFx(); \n'
20130515 '            p.monthPicker.show(); \n'
20130515 '\n'
20130515 "            p.mun(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mun(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '            p.onMonthClick = p.onMonthClick.createSequence(pickerClick); \n'
20130515 '            p.onMonthDblClick = p.onMonthDblClick.createSequence(pickerDblclick); \n'
20130515 "            p.mon(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mon(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerClick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 "        if (el.is('button.x-date-mp-cancel')) { \n"
20130515 '            picker.menu.hide(); \n'
20130515 "        } else if(el.is('button.x-date-mp-ok')) { \n"
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerDblclick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 '        if (el.parent() \n'
20130515 "            && (el.parent().is('td.x-date-mp-month') \n"
20130515 "            || el.parent().is('td.x-date-mp-year'))) { \n"
20130515 '\n'
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '}; \n'
20130515 '\n'
20130515 "Ext.preg('monthPickerPlugin', Ext.ux.MonthPickerPlugin);  \n"
20130515 '\n'
20130515 '//~ /* \n'
20130515 '  //~ http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/\n'
20130515 '//~ */\n'
20130515 '//~ /**\n'
20130515 ' //~ * This submit action is basically the same as the normal submit action,\n'
20130515 ' //~ * only that it uses the fields getSubmitValue() to compose the values to submit,\n'
20130515 ' //~ * instead of looping over the input-tags in the form-tag of the form.\n'
20130515 ' //~ *\n'
20130515 ' //~ * To use it, just use the OOSubmit-plugin on either a FormPanel or a BasicForm,\n'
20130515 " //~ * or explicitly call form.doAction('oosubmit');\n"
20130515 ' //~ *\n'
20130515 ' //~ * @param {Object} form\n'
20130515 ' //~ * @param {Object} options\n'
20130515 ' //~ */\n'
20130515 '//~ Ext.ux.OOSubmitAction = function(form, options){\n'
20130515 '    //~ Ext.ux.OOSubmitAction.superclass.constructor.call(this, form, options);\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.extend(Ext.ux.OOSubmitAction, Ext.form.Action.Submit, {\n'
20130515 '    //~ /**\n'
20130515 "    //~ * @cfg {boolean} clientValidation Determines whether a Form's fields are validated\n"
20130515 '    //~ * in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission.\n'
20130515 "    //~ * Pass <tt>false</tt> in the Form's submit options to prevent this. If not defined, pre-submission field validation\n"
20130515 '    //~ * is performed.\n'
20130515 '    //~ */\n'
20130515 "    //~ type : 'oosubmit',\n"
20130515 '\n'
20130515 '    //~ // private\n'
20130515 '    //~ /**\n'
20130515 '     //~ * This is nearly a copy of the original submit action run method\n'
20130515 '     //~ */\n'
20130515 '    //~ run : function(){\n'
20130515 '        //~ var o = this.options;\n'
20130515 '        //~ var method = this.getMethod();\n'
20130515 "        //~ var isPost = method == 'POST';\n"
20130515 '\n'
20130515 '        //~ var params = this.options.params || {};\n'
20130515 '        //~ if (isPost) Ext.applyIf(params, this.form.baseParams);\n'
20130515 '\n'
20130515 '        //~ //now add the form parameters\n'
20130515 '        //~ this.form.items.each(function(field)\n'
20130515 '        //~ {\n'
20130515 '            //~ if (!field.disabled)\n'
20130515 '            //~ {\n'
20130515 '                //~ //check if the form item provides a specialized getSubmitValue() and use that if available\n'
20130515 '                //~ if (typeof field.getSubmitValue == "function")\n'
20130515 '                    //~ params[field.getName()] = field.getSubmitValue();\n'
20130515 '                //~ else\n'
20130515 '                    //~ params[field.getName()] = field.getValue();\n'
20130515 '            //~ }\n'
20130515 '        //~ });\n'
20130515 '\n'
20130515 '        //~ //convert params to get style if we are not post\n'
20130515 '        //~ if (!isPost) params=Ext.urlEncode(params);\n'
20130515 '\n'
20130515 '        //~ if(o.clientValidation === false || this.form.isValid()){\n'
20130515 '            //~ Ext.Ajax.request(Ext.apply(this.createCallback(o), {\n'
20130515 '                //~ url:this.getUrl(!isPost),\n'
20130515 '                //~ method: method,\n'
20130515 '                //~ params:params, //add our values\n'
20130515 '                //~ isUpload: this.form.fileUpload\n'
20130515 '            //~ }));\n'
20130515 '\n'
20130515 '        //~ }else if (o.clientValidation !== false){ // client validation failed\n'
20130515 '            //~ this.failureType = Ext.form.Action.CLIENT_INVALID;\n'
20130515 '            //~ this.form.afterAction(this, false);\n'
20130515 '        //~ }\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '//~ });\n'
20130515 '//~ //add our action to the registry of known actions\n'
20130515 "//~ Ext.form.Action.ACTION_TYPES['oosubmit'] = Ext.ux.OOSubmitAction;\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/**\n'
20130515 'JC Watsons solution (adapted to ExtJS 3.3.1 by LS) is elegant and simple:\n'
20130515 '`A "fix" for unchecked checkbox submission  behaviour\n'
20130515 '<http://www.sencha.com/forum/showthread.php?28449>`_\n'
20130515 '\n'
20130515 'Added special handling for checkbox inputs. \n'
20130515 'ExtJS defines disabled checkboxes `readonly`, not `disabled` as for other inputs.\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Ext.lib.Ajax.serializeForm = function(form) {\n'
20130515 "    //~ console.log('20120203 linolib.js serializeForm',form);\n"
20130515 '    var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements, \n'
20130515 '        hasSubmit = false, \n'
20130515 '        encoder = encodeURIComponent, \n'
20130515 '        name, \n'
20130515 "        data = '', \n"
20130515 '        type, \n'
20130515 '        hasValue;\n'
20130515 '\n'
20130515 '    Ext.each(fElements, function(element){\n'
20130515 '        name = element.name;\n'
20130515 '        type = element.type;\n'
20130515 '\n'
20130515 "        if (!element.disabled && name && !(type == 'checkbox' && element.readonly)) {\n"
20130515 '            if (/select-(one|multiple)/i.test(type)) {\n'
20130515 '                Ext.each(element.options, function(opt){\n'
20130515 '                    if (opt.selected) {\n'
20130515 "                        hasValue = opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified;\n"
20130515 '                        data += String.format("{0}={1}&", encoder(name), encoder(hasValue ? opt.value : opt.text));\n'
20130515 '                    }\n'
20130515 '                });\n'
20130515 '            } else if (!(/file|undefined|reset|button/i.test(type))) {\n'
20130515 "                //~ if (!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)) {\n"
20130515 "                if (!(type == 'submit' && hasSubmit)) {\n"
20130515 "                    if (type == 'checkbox') {\n"
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&');\n"
20130515 "                        data += encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&';\n"
20130515 '                    } else {\n'
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + encoder(element.value) + '&');\n"
20130515 "                        data += encoder(name) + '=' + encoder(element.value) + '&';\n"
20130515 '                    }\n'
20130515 '                    hasSubmit = /submit/i.test(type);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        //~ } else {\n'
20130515 '            //~ console.log(name,type,element.readonly);\n'
20130515 '        }\n'
20130515 '    });\n'
20130515 '    return data.substr(0, data.length - 1);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Set a long timeout of fifteen minutes. \n'
20130515 'See /blog/2012/0307\n'
20130515 '*/\n'
20130515 'Ext.Ajax.timeout = 15 * 60 * 1000; \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'My fix for the "Cannot set QuickTips dismissDelay to 0" bug,\n'
20130515 'see http://www.sencha.com/forum/showthread.php?183515 \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.QuickTip,{\n'
20130515 '  showAt : function(xy){\n'
20130515 '        var t = this.activeTarget;\n'
20130515 '        //~ console.log("20120224 QuickTip.showAt",this.title,this.dismissDelay,t.dismissDelay);\n'
20130515 '        if(t){\n'
20130515 '            if(!this.rendered){\n'
20130515 '                this.render(Ext.getBody());\n'
20130515 '                this.activeTarget = t;\n'
20130515 '            }\n'
20130515 '            if(t.width){\n'
20130515 '                this.setWidth(t.width);\n'
20130515 '                this.body.setWidth(this.adjustBodyWidth(t.width - this.getFrameWidth()));\n'
20130515 '                this.measureWidth = false;\n'
20130515 '            } else{\n'
20130515 '                this.measureWidth = true;\n'
20130515 '            }\n'
20130515 "            this.setTitle(t.title || '');\n"
20130515 '            this.body.update(t.text);\n'
20130515 '            this.autoHide = t.autoHide;\n'
20130515 '            // bugfix by Luc 20120226\n'
20130515 '            if (t.dismissDelay != undefined) this.dismissDelay = t.dismissDelay;\n'
20130515 '            //~ this.dismissDelay = t.dismissDelay || this.dismissDelay;\n'
20130515 '            if(this.lastCls){\n'
20130515 '                this.el.removeClass(this.lastCls);\n'
20130515 '                delete this.lastCls;\n'
20130515 '            }\n'
20130515 '            if(t.cls){\n'
20130515 '                this.el.addClass(t.cls);\n'
20130515 '                this.lastCls = t.cls;\n'
20130515 '            }\n'
20130515 '            if(this.anchor){\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else if(t.align){ \n'
20130515 '                xy = this.el.getAlignToXY(t.el, t.align);\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else{\n'
20130515 '                this.constrainPosition = true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.QuickTip.superclass.showAt.call(this, xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Another hack. See /docs/blog/2012/0228\n'
20130515 '*/\n'
20130515 'Ext.Element.addMethods(\n'
20130515 '    function() {\n'
20130515 '        var VISIBILITY      = "visibility",\n'
20130515 '            DISPLAY         = "display",\n'
20130515 '            HIDDEN          = "hidden",\n'
20130515 '            NONE            = "none",\n'
20130515 '            XMASKED         = "x-masked",\n'
20130515 '            XMASKEDRELATIVE = "x-masked-relative",\n'
20130515 '            data            = Ext.Element.data;\n'
20130515 '\n'
20130515 '        return {\n'
20130515 '            \n'
20130515 '            mask : function(msg, msgCls) {\n'
20130515 '                var me  = this,\n'
20130515 '                    dom = me.dom,\n'
20130515 '                    dh  = Ext.DomHelper,\n'
20130515 '                    EXTELMASKMSG = "ext-el-mask-msg",\n'
20130515 '                    el,\n'
20130515 '                    mask;\n'
20130515 '                // removed the following lines. See /docs/blog/2012/0228\n'
20130515 "                //~ if (!(/^body/i.test(dom.tagName) && me.getStyle('position') == 'static')) {\n"
20130515 '                    //~ console.log(20120228,dom.tagName,me);\n'
20130515 '                    //~ me.addClass(XMASKEDRELATIVE); \n'
20130515 '                //~ }\n'
20130515 "                if (el = data(dom, 'maskMsg')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 "                if (el = data(dom, 'mask')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 '\n'
20130515 '                mask = dh.append(dom, {cls : "ext-el-mask"}, true);\n'
20130515 "                data(dom, 'mask', mask);\n"
20130515 '\n'
20130515 '                me.addClass(XMASKED);\n'
20130515 '                mask.setDisplayed(true);\n'
20130515 '                \n'
20130515 "                if (typeof msg == 'string') {\n"
20130515 "                    var mm = dh.append(dom, {cls : EXTELMASKMSG, cn:{tag:'div'}}, true);\n"
20130515 "                    data(dom, 'maskMsg', mm);\n"
20130515 '                    mm.dom.className = msgCls ? EXTELMASKMSG + " " + msgCls : EXTELMASKMSG;\n'
20130515 '                    mm.dom.firstChild.innerHTML = msg;\n'
20130515 '                    mm.setDisplayed(true);\n'
20130515 '                    mm.center(me);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                \n'
20130515 "                if (Ext.isIE && !(Ext.isIE7 && Ext.isStrict) && me.getStyle('height') == 'auto') {\n"
20130515 '                    mask.setSize(undefined, me.getHeight());\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                return mask;\n'
20130515 '            }\n'
20130515 '\n'
20130515 '            \n'
20130515 '        };\n'
20130515 '    }()\n'
20130515 ');\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 "Ext.namespace('Lino');\n"
20130515 '    \n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.subst_user_field = new Ext.form.ComboBox({});\n'
20130515 '//~ Lino.subst_user = null;\n'
20130515 'Lino.insert_subst_user = function(p){\n'
20130515 "    //~ console.log('20120714 insert_subst_user',Lino.subst_user,p);\n"
20130515 '    //~ if (Lino.subst_user_field.getValue()) {\n'
20130515 '    if (p.su) return;\n'
20130515 '    if (Lino.subst_user) {\n'
20130515 '        //~ p.su = Lino.subst_user_field.getValue();\n'
20130515 '        p.su = Lino.subst_user;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ delete p.su;\n'
20130515 '    }\n'
20130515 "    //~ console.log('20120714 insert_subst_user -->',Lino.subst_user,p);\n"
20130515 '}\n'
20130515 '\n'
20130515 'Lino.login_window = null;\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_login_window = function() {\n'
20130515 "  //~ console.log('20121103 show_login_window',arguments);\n"
20130515 '  //~ var current_window = Lino.current_window;\n'
20130515 '  if (Lino.login_window == null) {\n'
20130515 '    \n'
20130515 '      function do_login() { \n'
20130515 '            Lino.viewport.loadMask.show()\n'
20130515 '            //~ Lino.body_loadMask.show()\n'
20130515 '            login_panel.getForm().submit({ \n'
20130515 "                method:'POST', \n"
20130515 "                waitTitle:'Connecting', \n"
20130515 "                waitMsg:'Sending data...',\n"
20130515 '                success:function(){ \n'
20130515 "                  //~ console.log('20121104 logged in',arguments);\n"
20130515 '                  Lino.login_window.hide();\n'
20130515 '                  Lino.close_all_windows();\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                },\n'
20130515 '                failure: function(form,action) { \n'
20130515 '                  //~ this.loadMask.hide();\n'
20130515 '                  Lino.on_submit_failure(form,action);\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                  //~ if (Lino.current_window) Lino.current_window.main_item.loadMask.hide()\n'
20130515 '                }\n'
20130515 '                //~ failure:function(form, action){ \n'
20130515 '                    //~ alert_msg\n'
20130515 "                    //~ if(action.failureType == 'server'){ \n"
20130515 '                        //~ obj = Ext.util.JSON.decode(action.response.responseText); \n'
20130515 "                        //~ Ext.Msg.alert('Login Failed!', obj.errors.reason); \n"
20130515 '                    //~ }else{ \n'
20130515 "                        //~ Ext.Msg.alert('Warning!', 'Authentication server is unreachable : ' + action.response.responseText); \n"
20130515 '                    //~ } \n'
20130515 '                    //~ Lino.login_panel.getForm().reset(); \n'
20130515 '                //~ } \n'
20130515 '            }); \n'
20130515 '      };\n'
20130515 '    \n'
20130515 '      var login_button = new Ext.Button({ \n'
20130515 '        text:"Log in",\n'
20130515 '        formBind: true,\t \n'
20130515 '        // Function that fires when user clicks the button \n'
20130515 '        handler: do_login});\n'
20130515 '    \n'
20130515 '      var login_panel = new Ext.FormPanel({ \n'
20130515 '        //~ inspired by http://www.sencha.com/learn/a-basic-login/\n'
20130515 '        autoHeight:true,\n'
20130515 '        labelWidth:90,\n'
20130515 "        url:'/auth', \n"
20130515 '        frame:true, \n'
20130515 "        defaultType:'textfield',\n"
20130515 '        monitorValid:true,\n'
20130515 '        items:[{ \n'
20130515 '            fieldLabel:"Username", \n'
20130515 "            id: 'username',\n"
20130515 "            name:'username', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        },{ \n'
20130515 '            fieldLabel:"Password", \n'
20130515 "            name:'password', \n"
20130515 "            inputType:'password', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        }],        \n'
20130515 '        buttons:[ login_button ]});\n'
20130515 '        \n'
20130515 '      Lino.login_window = new Ext.Window({\n'
20130515 "          layout:'fit',\n"
20130515 "          defaultButton: 'username',\n"
20130515 '          width:300,\n'
20130515 '          title:"Log in", \n'
20130515 '          autoHeight:true,\n'
20130515 '          modal: true,\n'
20130515 '          closeAction: "hide",\n'
20130515 '          keys: {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            fn: function() { do_login()}\n'
20130515 '          },\n'
20130515 '          //~ defaultButton: login_button,\n'
20130515 "          //~ height:'auto',\n"
20130515 '          //~ closable: false,\n'
20130515 '          //~ resizable: false,\n'
20130515 '          //~ plain: true,\n'
20130515 '          //~ border: false,\n'
20130515 '          items: [login_panel] });\n'
20130515 '  };\n'
20130515 '  Lino.login_window.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.logout = function(id,name) {\n'
20130515 "    //~ console.log('20121104 gonna log out',arguments);\n"
20130515 '    //~ Lino.do_action\n'
20130515 "    Lino.call_ajax_action(Lino.viewport,'GET','/auth',{},'logout',undefined,undefined,function(){\n"
20130515 "        //~ console.log('20121104 logged out',arguments);\n"
20130515 '        //~ Lino.login_window.hide();\n'
20130515 '        Lino.close_all_windows();\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.set_subst_user = function(id,name) {\n'
20130515 "    //~ console.log(20120714,'Lino.set_subst_user',id,name);\n"
20130515 '    Lino.subst_user = id;\n'
20130515 '\n'
20130515 '    if(id) {\n'
20130515 '        Lino.eventStore.setBaseParam("su",id);\n'
20130515 '    } else {\n'
20130515 "      delete Lino.eventStore.baseParams['su'];\n"
20130515 '    }\n'
20130515 '\n'
20130515 '    if (Lino.current_window) \n'
20130515 '        Lino.current_window.main_item.set_base_param("su",id);\n'
20130515 '    if (Lino.viewport) Lino.permalink_handler(Lino.current_window)();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.select_subst_user = function(cmp,rec,value){\n'
20130515 '    //~ Lino.subst_user=value;\n'
20130515 '    //~ console.log(20120713,rec);\n'
20130515 '//~ }\n'
20130515 '    \n'
20130515 'Lino.current_window = null;\n'
20130515 'Lino.window_history = Array();\n'
20130515 '    \n'
20130515 'Lino.chars2width = function(cols) {  return cols * 9; }\n'
20130515 'Lino.rows2height = function(cols) {  return cols * 20; }\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Viewport = Ext.extend(Ext.Viewport,{\n'
20130515 '  layout:"fit"\n'
20130515 '  ,initComponent : function(){\n'
20130515 '    Lino.Viewport.superclass.initComponent.call(this);\n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.el,{msg:"Please wait..."});\n'
20130515 '      //~ console.log("20121118 Lino.viewport.loadMask",this.loadMask);\n'
20130515 '    },this);\n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,refresh : function() {\n'
20130515 '      var caller = this;\n'
20130515 '      console.log("20121120 Lino.Viewport.refresh()");\n'
20130515 '      if (caller.loadMask) caller.loadMask.show();\n'
20130515 '      var success = function(response) {\n'
20130515 '        if (caller.loadMask) caller.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '          if (result.html) {\n'
20130515 "              Ext.getCmp('main_area').update(result.html);\n"
20130515 '          }\n'
20130515 '          if (result.message) {\n'
20130515 '              if (result.alert) {\n'
20130515 "                  //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "                  Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '              } else {\n'
20130515 '                  Lino.notify(result.message);\n'
20130515 '              }\n'
20130515 '          }\n'
20130515 '          \n'
20130515 '          if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '          if (result.js_code) { \n'
20130515 '            var jsr = result.js_code(caller);\n'
20130515 "            //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '          };\n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      var action = {\n'
20130515 "        url : '/api/main_html',\n"
20130515 '        waitMsg: "Please wait...",\n'
20130515 '        failure: Lino.ajax_error_handler(caller),\n'
20130515 '        success: success,\n'
20130515 "        method: 'GET',\n"
20130515 '        params: {}\n'
20130515 '      };\n'
20130515 '      Lino.insert_subst_user(action.params);\n'
20130515 '      Ext.Ajax.request(action);\n'
20130515 '    \n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.open_window = function(win,st,requesting_panel) {\n'
20130515 '  //~ console.log("20120918 Lino.open_window()",win,st);\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  if (cw) {\n'
20130515 '    //~ console.log("20120918 Lino.open_window() save current status",cw.main_item.get_status());\n'
20130515 '    Lino.window_history.push({\n'
20130515 '      window:cw,\n'
20130515 '      status:cw.main_item.get_status()\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '  Lino.current_window = win;\n'
20130515 '  //~ if (st.su) \n'
20130515 '      //~ Lino.subst_user_field.setValue(st.su);\n'
20130515 '  win.main_item.set_status(st,requesting_panel);\n'
20130515 '  win.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.load_url = function(url) {\n'
20130515 '    //~ foo.bar.baz = 2; \n'
20130515 '    //~ console.log("20121120 Lino.load_url()");\n'
20130515 '    //~ Lino.body_loadMask.show();\n'
20130515 '    Lino.viewport.loadMask.show();\n'
20130515 '    //~ location.replace(url);\n'
20130515 '    document.location = url;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.close_window = function(status_update) {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  var ww = Lino.window_history.pop();\n'
20130515 '  if (ww) {\n'
20130515 '    //~ if (status_update) Ext.apply(ww.status,status_update);\n'
20130515 '    if (status_update) status_update(ww);\n'
20130515 '    ww.window.main_item.set_status(ww.status);\n'
20130515 '    Lino.current_window = ww.window;\n'
20130515 '  } else {\n'
20130515 '    Lino.current_window = null;\n'
20130515 '  }\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.close_all_windows = function() {\n'
20130515 '  if (Lino.window_history.length == 0) {\n'
20130515 '      //~ Lino.viewport.refresh();\n'
20130515 '      var url =  "/"\n'
20130515 '      //~ console.log("20121120 Lino.close_all_windows() : no window_history");\n'
20130515 '      //~ if (ADMIN_URL) \n'
20130515 '      var p = {};\n'
20130515 '      Lino.insert_subst_user(p)\n'
20130515 '      if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '      Lino.load_url(url);\n'
20130515 '  } else {\n'
20130515 '    //~ console.log("20121120 Lino.close_all_windows() with window_history");\n'
20130515 '    while (Lino.window_history.length > 0) {\n'
20130515 '      Lino.close_window();\n'
20130515 '      //~ Lino.window_history.pop().hide_really();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '  //~ Lino.current_window = null;\n'
20130515 '  //~ Lino.close_window();\n'
20130515 '  //~ var ww = \n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.kill_current_window = function() {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  Lino.current_window = null;\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.calling_window = function() {\n'
20130515 '    if (Lino.window_history.length) return Lino.window_history[Lino.window_history.length-1];\n'
20130515 '}\n'
20130515 '\n'
20130515 '//~ Lino.WindowAction = function(mainItemClass,windowConfig,mainConfig,ppf) {\n'
20130515 'Lino.WindowAction = function(windowConfig,main_item_fn) {\n'
20130515 '    //~ if(!mainConfig) mainConfig = {};\n'
20130515 '    //~ mainConfig.is_main_window = true;\n'
20130515 '    this.windowConfig = windowConfig;\n'
20130515 '    this.main_item_fn = main_item_fn;\n'
20130515 '    //~ if (ppf) mainConfig.params_panel.fields = ppf;\n'
20130515 '    //~ this.mainConfig = mainConfig;\n'
20130515 '    //~ this.mainItemClass = mainItemClass;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.WindowAction = Ext.extend(Lino.WindowAction,{\n'
20130515 '    window : null,\n'
20130515 '    //~ mainItemClass: null,\n'
20130515 '    get_window : function() {\n'
20130515 '      //~ if(mainConfig) Ext.apply(this.mainConfig,mainConfig);\n'
20130515 '      if (this.window == null)  {\n'
20130515 '          //~ this.windowConfig.main_item = new this.mainItemClass(this.mainConfig);\n'
20130515 '          this.windowConfig.main_item = this.main_item_fn();\n'
20130515 '          this.window = new Lino.Window(this.windowConfig);\n'
20130515 '      }\n'
20130515 '      return this.window;\n'
20130515 '    },\n'
20130515 '    run : function(requesting_panel,status) {\n'
20130515 "      //~ console.log('20120625 window_action.run()',this)\n"
20130515 '      Lino.open_window(this.get_window(),status,requesting_panel);\n'
20130515 '    }\n'
20130515 '  \n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.PanelMixin = {\n'
20130515 '  get_containing_window : function (){\n'
20130515 '      if (this.containing_window) return this.containing_window;\n'
20130515 '      return this.containing_panel.get_containing_window();\n'
20130515 '  }\n'
20130515 '  ,set_window_title : function(title) {\n'
20130515 '    //~ this.setTitle(title);\n'
20130515 '    var cw = this.get_containing_window();\n'
20130515 '\n'
20130515 '    //~ if (cw) {\n'
20130515 '    //~ if (cw && cw.closable) {\n'
20130515 '    if (cw && !cw.main_item.hide_window_title) {\n'
20130515 "      //~ console.log('20111202 set_window_title(',title,') for',this.containing_window);\n"
20130515 '      //~ if (! this.containing_window.rendered) console.log("WARNING: not rendered!");\n'
20130515 '      cw.setTitle(title);\n'
20130515 '    //~ } else {\n'
20130515 '      //~ document.title = title;\n'
20130515 '    }\n'
20130515 "    //~ else console.log('20111202 not set_window_title(',title,') for',this);\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 "Lino.status_bar = new Ext.ux.StatusBar({defaultText:'Lino version 1.6.7.'});\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.edit_tinymce_text = function(panel,options) {\n'
20130515 '  // `panel` is the RichTextPanel\n'
20130515 '  //~ console.log(20111220,panel);\n'
20130515 '  //~ var rec = panel.get_current_record();\n'
20130515 '  var rec = panel.containing_panel.get_current_record();\n'
20130515 "  var value = rec ? rec.data[panel.editor.name] : '';\n"
20130515 '  var saving = false;\n'
20130515 '  var todo_after_save = false;\n'
20130515 '  var discard_changes = false;\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  function save() {\n'
20130515 "    //~ if (todo_after_save) {alert('tried to save again'); return; }\n"
20130515 "    if (saving) {alert('tried to save again'); return; }\n"
20130515 '    //~ var url = panel.containing_window.main_item.get_record_url(rec.id);\n'
20130515 '    var url = panel.containing_panel.get_record_url(rec.id);\n'
20130515 '    var params = Ext.apply({},panel.containing_panel.get_base_params());\n'
20130515 '    params[panel.editor.name] = editor.getValue();\n'
20130515 '    //~ params.su = Lino.subst_user;\n'
20130515 '    //~ Lino.insert_subst_user(params);\n'
20130515 '    var a = { \n'
20130515 '      params: params, \n'
20130515 "      method: 'PUT',\n"
20130515 '      url: url,\n'
20130515 '      failure: function() {\n'
20130515 '          //~ if (editor.ed.getContainer()) \n'
20130515 '          editor.ed.setProgressState(0);\n'
20130515 '          todo_after_save = false;\n'
20130515 '          saving = false;\n'
20130515 "          console.log('tinymce.save() failed. sorry.',arguments);\n"
20130515 '        },\n'
20130515 '      success: function() {\n'
20130515 '        saving = false;\n'
20130515 '        //~ if (editor.ed.getContainer()) \n'
20130515 '        editor.ed.setProgressState(0);\n'
20130515 '        rec.data[panel.editor.name] = editor.getValue();\n'
20130515 '        if(todo_after_save) {\n'
20130515 '            var fn = todo_after_save;\n'
20130515 '            todo_after_save = false;\n'
20130515 '            fn();\n'
20130515 '        }\n'
20130515 '        //~ panel.containing_window.set_current_record(rec);\n'
20130515 '        panel.refresh();\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    //~ if (editor.ed.getContainer()) \n'
20130515 '    editor.ed.setProgressState(1); // Show progress\n'
20130515 '    saving = true;\n'
20130515 '    //~ console.log(a);\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '  };\n'
20130515 '  function save_callback() {\n'
20130515 '      save();\n'
20130515 '      //~ save(function(){editor.ed.setDirty(false);})\n'
20130515 '      /* return true have the save button disabled.  \n'
20130515 "      That's not perfect because the PUT is asynchronous \n"
20130515 '      and the response is not yet known.\n'
20130515 '      */\n'
20130515 '      return true;\n'
20130515 '  }\n'
20130515 '  //~ var actions = [\n'
20130515 '    //~ {text:"Save",handler:save}\n'
20130515 '  //~ ]; \n'
20130515 '  //~ console.log(20110610,panel.editor.disabled);\n'
20130515 '  var settings = {};\n'
20130515 '  Ext.apply(settings,{\n'
20130515 '        readonly: panel.editor.disabled,\n'
20130515 '        //~ language: "de",\n'
20130515 '        plugins : "save,emotions,spellchecker,advhr,insertdatetime,preview,table,searchreplace,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "save,cancel,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect,|,search,replace",\n'
20130515 '        theme_advanced_buttons2 : "cut,copy,paste,template,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,|,code,preview,|,forecolor,backcolor",\n'
20130515 '        theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions,|,tablecontrols",      \n'
20130515 '        theme_advanced_resizing : false,\n'
20130515 '        convert_urls : false,\n'
20130515 '        save_onsavecallback : save_callback,\n'
20130515 '        save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '  });\n'
20130515 '  Ext.apply(settings,options);\n'
20130515 '  var editor = new Ext.ux.TinyMCE({\n'
20130515 '      value : value,\n'
20130515 '      tinymceSettings: settings\n'
20130515 '    });\n'
20130515 '  var win = new Ext.Window({\n'
20130515 '    title: rec.title, \n'
20130515 '    //~ bbar: actions,\n'
20130515 "    layout: 'fit',\n"
20130515 '    items: editor,\n'
20130515 '    width: 600, \n'
20130515 '    height:500,\n'
20130515 '    minWidth: 100,\n'
20130515 '\t\tminHeight: 100,\n'
20130515 '    modal: true,\n'
20130515 '    resizable: true,\n'
20130515 '    maximizable: true,\n'
20130515 '    //~ maximized: true,\n'
20130515 '    //~ closeAction: "close"\n'
20130515 '    closeAction: "hide"\n'
20130515 '    //~ hideMode: "offsets",\n'
20130515 '    //~ constrainHeader: true,\n'
20130515 "    //~ bodyStyle: 'padding: 10px'\n"
20130515 '  });\n'
20130515 '\n'
20130515 "  //~ win.on('beforeclose',function() {\n"
20130515 "  win.on('beforehide',function() {\n"
20130515 '    if (todo_after_save) return false;\n'
20130515 '    if (discard_changes) return true;\n'
20130515 '    if (editor.isDirty()) {\n'
20130515 '        //~ var ok = false;\n'
20130515 '        //~ var allowClose = true;\n'
20130515 '        var config = {title:"Confirmation"};\n'
20130515 '        config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        config.msg = "Save changes to text ?";\n'
20130515 '        config.modal = true;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 "          //~ console.log('do_when_clean',buttonId)\n"
20130515 '          if (buttonId == "yes") {\n'
20130515 "              /* we cancel this close, but save()'s onSuccess will call again.*/\n"
20130515 '              //~ allowClose = false;\n'
20130515 '              todo_after_save = function(){win.hide();}\n'
20130515 "              editor.ed.execCommand('mceSave');\n"
20130515 '              //~ editor.ed.save(function(){win.close();});\n'
20130515 '          } else if (buttonId == "no") { \n'
20130515 '              discard_changes = true;\n'
20130515 '              win.hide()\n'
20130515 '          //~ } else if (buttonId == "cancel") { \n'
20130515 '            //~ ok = true;\n'
20130515 '              //~ allowClose = false;\n'
20130515 '          //~ } else { \n'
20130515 "            //~ console.log('unknwon buttonId:',buttonId);\n"
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return false;\n'
20130515 '        //~ return allowClose;\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '  win.show();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/* \n'
20130515 '  Originally copied from Ext JS Library 3.3.1\n'
20130515 '  Modifications by Luc Saffre : \n'
20130515 '  - rendering of phantom records\n'
20130515 '  - fire afteredit event\n'
20130515 '  - react on dblclcik, not on single click\n'
20130515 '\n'
20130515 ' */\n'
20130515 'Lino.CheckColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 '\n'
20130515 '    processEvent : function(name, e, grid, rowIndex, colIndex){\n'
20130515 "        //~ console.log('20110713 Lino.CheckColumn.processEvent',name)\n"
20130515 "        if (name == 'click') {\n"
20130515 "        //~ if (name == 'mousedown') {\n"
20130515 "        //~ if (name == 'dblclick') {\n"
20130515 '            return this.toggleValue(grid, rowIndex, colIndex);\n'
20130515 '        } else {\n'
20130515 '            return Ext.grid.ActionColumn.superclass.processEvent.apply(this, arguments);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    toggleValue : function (grid,rowIndex,colIndex) {\n'
20130515 '        var record = grid.store.getAt(rowIndex);\n'
20130515 '        var dataIndex = grid.colModel.getDataIndex(colIndex);\n'
20130515 '        // 20120514\n'
20130515 '        //~ if(record.data.disabled_fields && record.data.disabled_fields[dataIndex]) {\n'
20130515 '          //~ Lino.notify("This field is disabled");\n'
20130515 '          //~ return false;\n'
20130515 '        //~ }\n'
20130515 '      \n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("This field is disabled.");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        var startValue = record.data[dataIndex];\n'
20130515 '        var value = !startValue;\n'
20130515 '        //~ record.set(this.dataIndex, value);\n'
20130515 '        var e = {\n'
20130515 '            grid: grid,\n'
20130515 '            record: record,\n'
20130515 '            field: dataIndex,\n'
20130515 '            originalValue: startValue,\n'
20130515 '            value: value,\n'
20130515 '            row: rowIndex,\n'
20130515 '            column: colIndex,\n'
20130515 '            cancel: false\n'
20130515 '        };\n'
20130515 '        if(grid.fireEvent("beforeedit", e) !== false && !e.cancel){\n'
20130515 '        //~ if(grid.fireEvent("validateedit", e) !== false && !e.cancel){\n'
20130515 '            record.set(dataIndex, value);\n'
20130515 '            delete e.cancel;\n'
20130515 '            grid.fireEvent("afteredit", e);\n'
20130515 '        }\n'
20130515 '        return false; // Cancel event propagation\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    renderer : function(v, p, record){\n'
20130515 "        if (record.phantom) return '';\n"
20130515 "        p.css += ' x-grid3-check-col-td'; \n"
20130515 '        return String.format(\'<div class="x-grid3-check-col{0}">&#160;</div>\', v ? \'-on\' : \'\');\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // Deprecate use as a plugin. Remove in 4.0\n'
20130515 '    // init: Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 '// register ptype. Deprecate. Remove in 4.0\n'
20130515 "// Ext.preg('checkcolumn', Lino.CheckColumn);\n"
20130515 '\n'
20130515 '// backwards compat. Remove in 4.0\n'
20130515 '// Ext.grid.CheckColumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '// register Column xtype\n'
20130515 'Ext.grid.Column.types.checkcolumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '\n'
20130515 '/* 20110725 : \n'
20130515 'Lino.on_tab_activate is necessary \n'
20130515 'in contacts.Person.2.dtl \n'
20130515 "(but don't ask me why...)\n"
20130515 '*/\n'
20130515 'Lino.on_tab_activate = function(item) {\n'
20130515 "  //~ console.log('activate',item); \n"
20130515 '  if (item.rendered && item.doLayout) item.doLayout();\n'
20130515 '  //~ if (item.rendered) item.doLayout();\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.TimeField = Ext.extend(Ext.form.TimeField,{\n'
20130515 "  format: 'H:i',\n"
20130515 '  increment: 15\n'
20130515 '  });\n'
20130515 'Lino.DateField = Ext.extend(Ext.form.DateField,{\n'
20130515 '  boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  });\n'
20130515 'Lino.DatePickerField = Ext.extend(Ext.DatePicker,{\n'
20130515 '  //~ boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  //~ altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  formatDate : function(date){\n'
20130515 '      console.log("20121203 formatDate",this.name,date);\n'
20130515 '      return Ext.isDate(date) ? date.dateFormat(this.format) : date;\n'
20130515 '  }\n'
20130515 '  });\n'
20130515 'Lino.DateTimeField = Ext.extend(Ext.ux.form.DateTime,{\n'
20130515 "  dateFormat: 'd.m.Y',\n"
20130515 "  timeFormat: 'H:i',\n"
20130515 "  //~ hiddenFormat: 'd.m.Y H:i'\n"
20130515 '  });\n'
20130515 'Lino.URLField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 "  //~ triggerClass : 'x-form-world-trigger',\n"
20130515 "  vtype: 'url',\n"
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    window.open(this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 'Lino.IncompleteDateField = Ext.extend(Ext.form.TextField,{\n'
20130515 '  //~ regex: /^-?\\d+-[01]\\d-[0123]\\d$/,\n'
20130515 '  //~ regex: /^[0123]\\d\\.[01]\\d\\.-?\\d+$/,\n'
20130515 '  maxLength: 10,\n'
20130515 '  boxMinWidth: Lino.chars2width(10),\n'
20130515 '  regex: /^[0123]?\\d\\.[01]?\\d\\.-?\\d+$/,\n'
20130515 "  regexText: 'Enter a date in format YYYY-MM-DD (use zeroes for unknown parts).'\n"
20130515 '  });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.make_dropzone = function(cmp) {\n'
20130515 "    //~ cmp.on('render', function(ct, position){\n"
20130515 '      //~ ct.el.on({\n'
20130515 '        //~ dragenter:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,dragover:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ event.stopEvent();\n'
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,drop:{\n'
20130515 '          //~ scope:this\n'
20130515 '          //~ ,fn:function(event){\n'
20130515 '            //~ event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            //~ var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            //~ if(files === undefined){\n'
20130515 '              //~ return true;\n'
20130515 '            //~ }\n'
20130515 '            //~ var len = files.length;\n'
20130515 '            //~ while(--len >= 0){\n'
20130515 '              //~ console.log(files[len]);\n'
20130515 '              //~ // this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            //~ }\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ });\n'
20130515 '    //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.FileUploadField = Ext.ux.form.FileUploadField;\n'
20130515 '\n'
20130515 'Lino.FileUploadField = Ext.extend(Ext.ux.form.FileUploadField,{\n'
20130515 '    onRender : function(ct, position){\n'
20130515 '      Lino.FileUploadField.superclass.onRender.call(this, ct, position);\n'
20130515 '      this.el.on({\n'
20130515 '        dragenter:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,dragover:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          event.stopEvent();\n'
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,drop:{\n'
20130515 '          scope:this\n'
20130515 '          ,fn:function(event){\n'
20130515 '            event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            if(files === undefined){\n'
20130515 '              return true;\n'
20130515 '            }\n'
20130515 '            var len = files.length;\n'
20130515 '            while(--len >= 0){\n'
20130515 '              console.log(files[len]);\n'
20130515 '              //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.FileField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 '  editable: false,\n'
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    if (this.getValue()) window.open(MEDIA_URL + '/'+this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.file_field_handler = function(panel,config) {\n'
20130515 '  //~ if (instanceof Lino.DetailWrapper) {\n'
20130515 "  if (panel.action_name == 'insert') {\n"
20130515 '  //~ if (panel.get_current_record().phantom) {\n'
20130515 '      panel.has_file_upload = true;\n'
20130515 '\n'
20130515 '      var f = new Lino.FileUploadField(config);\n'
20130515 '      //~ Lino.make_dropzone(f);\n'
20130515 '      return f;\n'
20130515 '      //~ return new Ext.ux.form.FileUploadField(config);\n'
20130515 '      //~ return new Lino.FileField(config);\n'
20130515 '      \n'
20130515 '  } else {\n'
20130515 '      //~ return new Lino.URLField(config);\n'
20130515 '      return new Lino.FileField(config);\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.VBorderPanel = Ext.extend(Ext.Panel,{\n'
20130515 '    constructor : function(config) {\n'
20130515 "      config.layout = 'border';\n"
20130515 '      delete config.layoutConfig;\n'
20130515 '      Lino.VBorderPanel.superclass.constructor.call(this,config);\n'
20130515 '      for(var i=0; i < this.items.length;i++) {\n'
20130515 '        var item = this.items.get(i);\n'
20130515 '        if (this.isVertical(item) && item.collapsible) {\n'
20130515 "          item.on('collapse',this.onBodyResize,this);\n"
20130515 "          item.on('expand',this.onBodyResize,this);\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '    },\n'
20130515 '    isVertical : function(item) {\n'
20130515 "       return (item.region == 'north' || item.region == 'south' || item.region == 'center');\n"
20130515 '    },\n'
20130515 '    onBodyResize: function(w, h){\n'
20130515 "        //~ console.log('VBorderPanel.onBodyResize',this.title)\n"
20130515 '      if (this.isVisible()) { // to avoid "Uncaught TypeError: Cannot call method \'getHeight\' of undefined."\n'
20130515 '        var sumflex = 0;\n'
20130515 '        var availableHeight = this.getInnerHeight();\n'
20130515 '        var me = this;\n'
20130515 '        this.items.each(function(item){\n'
20130515 '          if (me.isVertical(item)) {\n'
20130515 '              if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  if (item.rendered) availableHeight -= item.getHeight();\n'
20130515 '              } else {\n'
20130515 '                  sumflex += item.flex;\n'
20130515 '              }\n'
20130515 '          } \n'
20130515 '          \n'
20130515 '        });\n'
20130515 '        //~ for(var i=0; i < this.items.length;i++) {\n'
20130515 '          //~ var item = this.items.get(i);\n'
20130515 '          //~ // if (this.isVertical(item) && item.getResizeEl()) {\n'
20130515 '          //~ if (this.isVertical(item)) {\n'
20130515 '              //~ if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  //~ // item.syncSize()\n'
20130515 '                  //~ // item.doLayout()\n'
20130515 '                  //~ // if (item.region == "north") console.log(\'region north\',item.getHeight(),item.id, item);\n'
20130515 "                  //~ // if (item.getHeight() == 0) console.log(20100921,'both flex and getHeight() are 0!');\n"
20130515 '                  //~ availableHeight -= item.getHeight();\n'
20130515 '              //~ } else {\n'
20130515 '                  //~ sumflex += item.flex;\n'
20130515 '                  //~ // console.log(item.flex);\n'
20130515 '              //~ }\n'
20130515 '          //~ } \n'
20130515 "          //~ // else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        //~ }\n'
20130515 '        var hunit = availableHeight / sumflex;\n'
20130515 "        //~ console.log('sumflex=',sumflex,'hunit=',hunit, 'availableHeight=',availableHeight);\n"
20130515 '        for(var i=0; i < this.items.length;i++) {\n'
20130515 '          var item = this.items.get(i);\n'
20130515 '          if (this.isVertical(item)) {\n'
20130515 '              if (item.flex != 0 && ! item.collapsed) {\n'
20130515 '                  item.setHeight(hunit * item.flex);\n'
20130515 "                  //~ console.log(item.region,' : height set to',item.getHeight());\n"
20130515 '              }\n'
20130515 '          }\n'
20130515 "          //~ else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '      Lino.VBorderPanel.superclass.onBodyResize.call(this, w, h);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 '  modifications to the standard behaviour of a CellSelectionModel:\n'
20130515 '  \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.grid.CellSelectionModel, {\n'
20130515 '//~ var dummy = {\n'
20130515 '\n'
20130515 '    handleKeyDown : function(e){\n'
20130515 "        /* removed because F2 wouldn't pass\n"
20130515 '        if(!e.isNavKeyPress()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        */\n'
20130515 "        //~ console.log('handleKeyDown',e)\n"
20130515 '        var k = e.getKey(),\n'
20130515 '            g = this.grid,\n'
20130515 '            s = this.selection,\n'
20130515 '            sm = this,\n'
20130515 '            walk = function(row, col, step){\n'
20130515 '                return g.walkCells(\n'
20130515 '                    row,\n'
20130515 '                    col,\n'
20130515 '                    step,\n'
20130515 '                    g.isEditor && g.editing ? sm.acceptsNav : sm.isSelectable, \n'
20130515 '                    sm\n'
20130515 '                );\n'
20130515 '            },\n'
20130515 '            cell, newCell, r, c, ae;\n'
20130515 '\n'
20130515 '        switch(k){\n'
20130515 '            case e.ESC:\n'
20130515 '            case e.PAGE_UP:\n'
20130515 '            case e.PAGE_DOWN:\n'
20130515 '                break;\n'
20130515 '            default:\n'
20130515 "                // e.stopEvent(); // removed because Browser keys like Alt-Home, Ctrl-R wouldn't work\n"
20130515 '                break;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        if(!s){\n'
20130515 '            cell = walk(0, 0, 1); \n'
20130515 '            if(cell){\n'
20130515 '                this.select(cell[0], cell[1]);\n'
20130515 '            }\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        cell = s.cell;  \n'
20130515 '        r = cell[0];    \n'
20130515 '        c = cell[1];    \n'
20130515 '        \n'
20130515 '        switch(k){\n'
20130515 '            case e.TAB:\n'
20130515 '                if(e.shiftKey){\n'
20130515 '                    newCell = walk(r, c - 1, -1);\n'
20130515 '                }else{\n'
20130515 '                    newCell = walk(r, c + 1, 1);\n'
20130515 '                }\n'
20130515 '                break;\n'
20130515 '            case e.HOME:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  if (!e.hasModifier()){\n'
20130515 '                      newCell = [r, 0];\n'
20130515 "                      //~ console.log('home',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '                      if (activePage > 1) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          t.moveFirst();\n'
20130515 '                          return;\n'
20130515 '                      }\n'
20130515 '                      newCell = [0, c];\n'
20130515 '                      break;\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.END:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  c = g.colModel.getColumnCount()-1;\n'
20130515 '                  if (!e.hasModifier()) {\n'
20130515 '                      newCell = [r, c];\n'
20130515 "                      //~ console.log('end',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var d = t.getPageData();\n'
20130515 '                      if (d.activePage < d.pages) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          var self = this;\n'
20130515 "                          t.on('change',function(tb,pageData) {\n"
20130515 '                              var r = g.store.getCount()-2;\n'
20130515 '                              self.select(r, c);\n'
20130515 "                              //~ console.log('change',r,c);\n"
20130515 '                          },this,{single:true});\n'
20130515 '                          t.moveLast();\n'
20130515 '                          return;\n'
20130515 '                      } else {\n'
20130515 '                          newCell = [g.store.getCount()-1, c];\n'
20130515 "                          //~ console.log('ctrl-end',newCell);\n"
20130515 '                          break;\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.DOWN:\n'
20130515 '                newCell = walk(r + 1, c, 1);\n'
20130515 '                break;\n'
20130515 '            case e.UP:\n'
20130515 '                newCell = walk(r - 1, c, -1);\n'
20130515 '                break;\n'
20130515 '            case e.RIGHT:\n'
20130515 '                newCell = walk(r, c + 1, 1);\n'
20130515 '                break;\n'
20130515 '            case e.LEFT:\n'
20130515 '                newCell = walk(r, c - 1, -1);\n'
20130515 '                break;\n'
20130515 '            case e.F2:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.isEditor && !g.editing) {\n'
20130515 '                        g.startEditing(r, c);\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.INSERT:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.ls_insert_handler && !g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.show_insert(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.DELETE:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (!g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.delete_selected(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.ENTER:\n'
20130515 '                e.stopEvent();\n'
20130515 '                g.onCellDblClick(r,c);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '\n'
20130515 '        if(newCell){\n'
20130515 '          e.stopEvent();\n'
20130515 '          r = newCell[0];\n'
20130515 '          c = newCell[1];\n'
20130515 '          this.select(r, c); \n'
20130515 '          if(g.isEditor && g.editing){ \n'
20130515 '            ae = g.activeEditor;\n'
20130515 '            if(ae && ae.field.triggerBlur){\n'
20130515 '                ae.field.triggerBlur();\n'
20130515 '            }\n'
20130515 '            g.startEditing(r, c);\n'
20130515 '          }\n'
20130515 '        //~ } else if (g.isEditor && !g.editing && e.charCode) {\n'
20130515 '        //~ // } else if (!e.isSpecialKey() && g.isEditor && !g.editing) {\n'
20130515 '            //~ g.set_start_value(String.fromCharCode(e.charCode));\n'
20130515 '            //~ // g.set_start_value(String.fromCharCode(k));\n'
20130515 '            //~ // g.set_start_value(e.charCode);\n'
20130515 '            //~ g.startEditing(r, c);\n'
20130515 '            //~ // e.stopEvent();\n'
20130515 '            //~ return;\n'
20130515 '        // } else {\n'
20130515 "          // console.log('20120513',e,g);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ };\n'
20130515 '});\n'
20130515 '\n'
20130515 ' \n'
20130515 '\n'
20130515 'function PseudoConsole() {\n'
20130515 '    this.log = function() {};\n'
20130515 '};\n'
20130515 "if (typeof(console) == 'undefined') console = new PseudoConsole();\n"
20130515 '\n'
20130515 'Lino.notify = function(msg) {\n'
20130515 "  if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg);\n"
20130515 '  Lino.status_bar.setStatus({\n'
20130515 '    text: msg,\n'
20130515 "    iconCls: 'ok-icon',\n"
20130515 '    clear: true // auto-clear after a set interval\n'
20130515 '  });\n'
20130515 "  //~ Ext.getCmp('konsole').setTitle(msg.replace(/\\n/g,'<br/>'));\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg.replace(/\\n/g,'<br/>'));\n"
20130515 '};\n'
20130515 'Lino.alert = function(msg) {\n'
20130515 "  //~ if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  Ext.MessageBox.alert('Notify',msg);\n"
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.show_about = function() {\n'
20130515 '  //~ new Ext.Window({\n'
20130515 '    //~ width: 400, height: 400,\n'
20130515 '    //~ title: "About",\n'
20130515 '    //~ html: \'<a href="http://www.extjs.com" target="_blank">ExtJS</a> version \' + Ext.version\n'
20130515 '  //~ }).show();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'function obj2str(o) {\n'
20130515 "  if (typeof o != 'object') return String(o);\n"
20130515 "  var s = '';\n"
20130515 '  for (var p in o) {\n'
20130515 "    s += p + ': ' + obj2str(o[p]) + '\\n';\n"
20130515 '  }\n'
20130515 '  return s;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.on_store_exception = function (store,type,action,options,response,arg) {\n'
20130515 '  //~ throw response;\n'
20130515 '  console.log("on_store_exception: store=",store,\n'
20130515 '    "type=",type,\n'
20130515 '    "action=",action,\n'
20130515 '    "options=",options,\n'
20130515 '    "response=",response,\n'
20130515 '    "arg=",arg);\n'
20130515 '  if (arg) { console.log(arg.stack)};\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.on_submit_success = function(form, action) {\n'
20130515 '   //~ Lino.notify(action.result.message);\n'
20130515 '   //~ this.close();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.on_submit_failure = function(form, action) {\n'
20130515 '    //~ Lino.notify();\n'
20130515 '  // action may be undefined\n'
20130515 '    switch (action.failureType) {\n'
20130515 '        case Ext.form.Action.CLIENT_INVALID:\n'
20130515 "            Ext.Msg.alert('Client-side failure', 'Form fields may not be submitted with invalid values');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.CONNECT_FAILURE:\n'
20130515 "            Ext.Msg.alert('Connection failure', 'Ajax communication failed');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.SERVER_INVALID:\n'
20130515 "            Ext.Msg.alert('Server-side failure', action.result.message);\n"
20130515 '   }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Lino.save_wc_handler = function(ww) {\n'
20130515 '  return function(event,toolEl,panel,tc) {\n'
20130515 '    var pos = panel.getPosition();\n'
20130515 '    var size = panel.getSize();\n'
20130515 '    wc = ww.get_window_config();\n'
20130515 '    Ext.applyIf(wc,{ \n'
20130515 '      x:pos[0],y:pos[1],height:size.height,width:size.width,\n'
20130515 '      maximized:panel.maximized});\n'
20130515 "    Lino.do_action(ww,{url:'/window_configs/'+ww.config.permalink_name,params:wc,method:'POST'});\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '*/\n'
20130515 '\n'
20130515 'Lino.show_in_own_window_button = function(handler) {\n'
20130515 '  return {\n'
20130515 '    qtip: "Show this panel in own window", \n'
20130515 '    id: "up",\n'
20130515 '    handler: function(event,toolEl,panel, tc) {\n'
20130515 "      //~ console.log('20111206 report_window_button',panel,handler);\n"
20130515 '      //~ var bp = ww.get_master_params();\n'
20130515 '      //~ panel.containing_window = ww; // for HtmlBox. see blog/2010/1022\n'
20130515 '      //~ handler(panel,{base_params:bp});\n'
20130515 '      //~ handler(panel,{base_params:panel.get_master_params()});\n'
20130515 '      handler.run(null,{base_params:panel.containing_panel.get_master_params()});\n'
20130515 '      //~ handler(panel,{master_panel:panel.containing_window.main_item});\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.delete_selected = function(panel) {\n'
20130515 '  //~ console.log("Lino.delete_selected",panel);\n'
20130515 '  var recs1 = panel.get_selected();\n'
20130515 '  var recs = [];\n'
20130515 '  for ( var i=0; i < recs1.length; i++ ) { if (! recs1[i].phantom) recs.push(recs1[i]); }\n'
20130515 '  if (recs.length == 0) {\n'
20130515 '    Lino.notify("Please select at least one record.");\n'
20130515 '    return;\n'
20130515 '  };\n'
20130515 '  if (recs.length == 1) {\n'
20130515 '      if (recs[0].disable_delete) {\n'
20130515 '        Lino.alert(recs[0].disable_delete);\n'
20130515 '        return;\n'
20130515 '      }\n'
20130515 '  };\n'
20130515 '  //~ console.log(recs);\n'
20130515 '  Ext.MessageBox.show({\n'
20130515 '    title: "Confirmation",\n'
20130515 '    msg: String.format("Delete {0} rows. Are you sure?",String(recs.length)),\n'
20130515 '    //~ msg: "Delete " + String(recs.length) + " rows. Are you sure?",\n'
20130515 '    //~ buttons: Ext.MessageBox.YESNOCANCEL,\n'
20130515 '    buttons: Ext.MessageBox.YESNO,\n'
20130515 '    fn: function(btn) {\n'
20130515 "      if (btn == 'yes') {\n"
20130515 '        for ( var i=0; i < recs.length; i++ ) {\n'
20130515 '          Lino.do_action(panel,{\n'
20130515 "              method:'DELETE',\n"
20130515 "              url:  '/api' + panel.ls_url + '/' + recs[i].id,\n"
20130515 '              after_success: panel.after_delete.createDelegate(panel)\n'
20130515 '          })\n'
20130515 '        }\n'
20130515 '        //~ caller.after_delete();\n'
20130515 '      }\n'
20130515 '      else Lino.notify("Dann eben nicht.");\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.action_handler = function (panel,on_success,on_confirm) {\n'
20130515 '  return function (response) {\n'
20130515 '    //~ console.log(20120608,panel);\n'
20130515 '    if (panel instanceof Lino.GridPanel) {\n'
20130515 '        //~ gridmode = false;\n'
20130515 '        gridmode = true;\n'
20130515 "        //~ console.log('20120608 yes');\n"
20130515 '    } else {\n'
20130515 '        gridmode = false;\n'
20130515 "        //~ console.log('20120608 no');\n"
20130515 '    }\n'
20130515 '    panel.loadMask.hide(); // 20120211\n'
20130515 '    if (!response.responseText) return ;\n'
20130515 '    var result = Ext.decode(response.responseText);\n'
20130515 "    //~ console.log('Lino.action_handler()','result is',result,'on_confirm is',on_confirm);\n"
20130515 '    \n'
20130515 '    if (result.eval_js) {\n'
20130515 '        //~ console.log(20120618,result.eval_js);\n'
20130515 '        eval(result.eval_js);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.xcallback) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        var config = {title:result.xcallback.title};\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        config.buttons = result.xcallback.buttons;\n'
20130515 '        config.msg = result.message;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 '          panel.loadMask.show(); \n'
20130515 '          //~ Lino.insert_subst_user(p);\n'
20130515 '          Ext.Ajax.request({\n'
20130515 "            method: 'GET',\n"
20130515 "            url: '/callbacks/'+result.xcallback.id + '/' + buttonId,\n"
20130515 '            //~ params: {bi: buttonId},\n'
20130515 '            success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '          });\n'
20130515 "          //~ Lino.call_ajax_action(panel,'GET',)\n"
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (on_success && result.success) on_success(result);\n'
20130515 '    \n'
20130515 '    //~ if (on_confirm && result.confirm_message) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        //~ // config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        //~ config.msg = result.confirm_message;\n'
20130515 '        //~ config.fn = function(buttonId,text,opt) {\n'
20130515 '          //~ if (buttonId == "yes") {\n'
20130515 '              //~ on_confirm(panel,undefined,result.step);\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '        //~ Ext.MessageBox.show(config);\n'
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    //~ if (result.dialog_fn) {\n'
20130515 "        //~ console.log('20120928 TODO',result.dialog_fn);\n"
20130515 '    //~ }\n'
20130515 '    if (result.message) {\n'
20130515 '        //~ if (result.alert && ! gridmode) {\n'
20130515 '        if (result.alert) { // 20120628b \n'
20130515 "            //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '            if (result.alert === true) result.alert = "Alert";\n'
20130515 '            Ext.MessageBox.alert(result.alert,result.message);\n'
20130515 '        } else {\n'
20130515 '            Lino.notify(result.message);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    // \n'
20130515 '    if (result.data_record && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 '        panel.set_status({data_record:result.data_record});\n'
20130515 '    }\n'
20130515 '    else if (result.new_status && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.set_status(result.new_status);\n'
20130515 '    }\n'
20130515 '    else if (result.goto_record_id != undefined && ! gridmode) {\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.load_record_id(result.goto_record_id);\n'
20130515 '    }\n'
20130515 '    else if (result.refresh_all) {\n'
20130515 '        var cw = panel.get_containing_window();\n'
20130515 '        //~ console.log("20120123 refresh_all");\n'
20130515 '        if (cw) {\n'
20130515 '          cw.main_item.refresh();\n'
20130515 '        }\n'
20130515 '        else console.log("20120123 cannot refresh_all",panel);\n'
20130515 '    } else {\n'
20130515 '        //~ console.log("20121212 b gonna refresh",panel);\n'
20130515 '        if (result.refresh) panel.refresh();\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.open_url) {\n'
20130515 '        //~ console.log(20111126,result.open_url);\n'
20130515 '        //~ if (!result.message)\n'
20130515 '            //~ Lino.notify(\'Open new window <a href="\'+result.open_url+\'" target="_blank">\'+result.open_url+\'</a>\');\n'
20130515 '        window.open(result.open_url,\'foo\',"");\n'
20130515 '        //~ document.location = result.open_url;\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.do_action = function(caller,action) {\n'
20130515 '  action.success = function(response) {\n'
20130515 '    if (caller.loadMask) caller.loadMask.hide();\n'
20130515 "    //~ console.log('Lino.do_action()',action,'action success',response);\n"
20130515 '    if (action.after_success) {\n'
20130515 "        //~ console.log('Lino.do_action() calling after_success');\n"
20130515 '        action.after_success();\n'
20130515 '    }\n'
20130515 '    if (response.responseText) {\n'
20130515 '      var result = Ext.decode(response.responseText);\n'
20130515 "      //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '      if (result.message) {\n'
20130515 '          if (result.alert) {\n'
20130515 "              //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "              Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '          } else {\n'
20130515 '              Lino.notify(result.message);\n'
20130515 '          }\n'
20130515 '      }\n'
20130515 '      \n'
20130515 "      //~ if (result.alert_msg) Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '      //~ if (result.message) Lino.notify(result.message);\n'
20130515 '      if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '      if (result.js_code) { \n'
20130515 "        //~ console.log('Lino.do_action()',action,'gonna call js_code in',result);\n"
20130515 '        var jsr = result.js_code(caller);\n'
20130515 "        //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '        if (action.after_js_code) {\n'
20130515 "          //~ console.log('Lino.do_action()',action,'gonna call after_js_code');\n"
20130515 '          action.after_js_code(jsr);\n'
20130515 "          //~ console.log('Lino.do_action()',action,'returned from after_js_code');\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('Lino.do_action()',action,' : after_js_code is false');\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '    }\n'
20130515 '  };\n'
20130515 '  Ext.applyIf(action,{\n'
20130515 '    waitMsg: "Please wait...",\n'
20130515 '    failure: Lino.ajax_error_handler(caller),\n'
20130515 '    params: {}\n'
20130515 '  });\n'
20130515 '  //~ action.params.su = Lino.subst_user;\n'
20130515 '  Lino.insert_subst_user(action.params);\n'
20130515 '  \n'
20130515 '  Ext.Ajax.request(action);\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gup = function( name )\n'
20130515 '//~ {\n'
20130515 '  //~ // Thanks to http://www.netlobo.com/url_query_string_javascript.html\n'
20130515 '  //~ name = name.replace(/[\\[]/,"\\\\\\[").replace(/[\\]]/,"\\\\\\]");\n'
20130515 '  //~ var regexS = "[\\\\?&]"+name+"=([^&#]*)";\n'
20130515 '  //~ var regex = new RegExp( regexS );\n'
20130515 '  //~ var results = regex.exec( window.location.href );\n'
20130515 '  //~ if( results == null )\n'
20130515 '    //~ return "";\n'
20130515 '  //~ else\n'
20130515 '    //~ return results[1];\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.refresh_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 "      //~ console.log('refresh',ww);\n"
20130515 '      //~ ww.main_item.doLayout(false,true);\n'
20130515 '      //~ ww.main_item.syncSize();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.tools_close_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 '      //~ ww.close();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 'Lino.permalink_handler = function (ww) {\n'
20130515 '  return function() { \n'
20130515 '    //~ console.log(20100923,ww.get_permalink());\n'
20130515 '    //~ document.location = ww.main_item.get_permalink();\n'
20130515 '    Lino.load_url(ww.main_item.get_permalink());\n'
20130515 '    //~ console.log(20120715, ww.main_item.get_permalink());\n'
20130515 '    //~ document.location = "?permalink=" + ww.get_permalink();\n'
20130515 '    //~ document.location = "?permalink=" + ww.config.permalink_name +\'()\';\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '//~ Lino.run_permalink = function() {\n'
20130515 "  //~ var plink = Lino.gup('permalink');\n"
20130515 "  //~ if(plink) { eval('Lino.'+plink); }\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.MainPanel = {\n'
20130515 '  is_home_page : false,\n'
20130515 '  setting_param_values : false,\n'
20130515 '  config_containing_window : function(wincfg) { }\n'
20130515 '  ,init_containing_window : function(win) { }\n'
20130515 '  ,is_loading : function() { return true; } // overridden by subclasses\n'
20130515 '  ,do_when_clean : function(auto_save,todo) { todo() }\n'
20130515 '  ,get_master_params : function() {\n'
20130515 '    var p = {}\n'
20130515 "    p['mt'] = this.content_type; \n"
20130515 '    rec = this.get_current_record()\n'
20130515 '    if (rec) {\n'
20130515 '      if (rec.phantom) {\n'
20130515 "          p['mk'] = undefined; \n"
20130515 '      }else{\n'
20130515 "          p['mk'] = rec.id; \n"
20130515 '      }\n'
20130515 '    } else {\n'
20130515 "      p['mk'] = undefined;\n"
20130515 '    }\n'
20130515 "    //~ console.log('get_master_params returns',p,'using record',rec);\n"
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,get_permalink : function() {\n'
20130515 '    //~ var p = this.main_item.get_base_params() || {};\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    delete p.fmt;\n'
20130515 '    //~ if (p.fmt) delete p.fmt;\n'
20130515 '    Ext.apply(p,this.get_permalink_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "     //~ p.fmt = 'html';\n"
20130515 "    //~ console.log('get_permalink',p,this.get_permalink_params());\n"
20130515 '    if (this.is_home_page)\n'
20130515 "        //~ var url = '';\n"
20130515 "        var url = '/';\n"
20130515 '    else \n'
20130515 '        var url = this.get_permalink_url();\n'
20130515 '    if (p.su == null) \n'
20130515 '        delete p.su;\n'
20130515 '    if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '    return url;\n'
20130515 '  }\n'
20130515 '  ,get_record_url : function(record_id) {\n'
20130515 "      var url = '/api' + this.ls_url\n"
20130515 '      //~ var url = this.containing_window.config.url_data; // ls_url;\n'
20130515 "      url += '/' + (record_id === undefined ? '-99999' : String(record_id));\n"
20130515 "      //~ if (record_id !== undefined) url += '/' + String(record_id);\n"
20130515 "      //~ url += '/' + String(record_id);\n"
20130515 '      return url;\n'
20130515 '  }\n'
20130515 '  ,get_permalink_url : function() {\n'
20130515 "      return '/api' + this.ls_url;\n"
20130515 '  }\n'
20130515 '  ,get_permalink_params : function() {\n'
20130515 "      //~ return {an:'grid'};\n"
20130515 '      var p = {};\n'
20130515 '      if (this.action_name)\n'
20130515 '          p.an = this.action_name;\n'
20130515 '      this.add_param_values(p)\n'
20130515 '      return p;\n'
20130515 '  }\n'
20130515 '  ,set_status : function(status) {}\n'
20130515 '  ,get_status : function() { return {}}\n'
20130515 '  ,refresh : function() {}\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,add_params_panel : function (tbar) {\n'
20130515 '      if (this.params_panel) {\n'
20130515 '        tbar = tbar.concat([{ scope:this, \n'
20130515 '          //~ text: "$_("[parameters]")", // gear\n'
20130515 "          iconCls: 'x-tbar-parameters',\n"
20130515 '          tooltip:"Show or hide the table parameters panel",\n'
20130515 '          enableToggle: true,\n'
20130515 '          //~ pressed: ! this.params_panel.hidden,\n'
20130515 '          pressed: ! this.params_panel_hidden,\n'
20130515 '          toggleHandler: function(btn,state) { \n'
20130515 '            //~ if (this.params_panel.isVisible()) \n'
20130515 '                //~ this.params_panel.hide();\n'
20130515 '            //~ else\n'
20130515 '                //~ this.params_panel.show();\n'
20130515 '            //~ console.log("20120210 add_params_panel",state,this.params_panel);\n'
20130515 '            if (state) {\n'
20130515 '              this.params_panel.show();\n'
20130515 '              this.params_panel.doLayout();\n'
20130515 '            } else this.params_panel.hide();\n'
20130515 '            this.get_containing_window().doLayout();\n'
20130515 '          }\n'
20130515 '        }]);\n'
20130515 '        var t = this;\n'
20130515 '        var refresh = function() {if (!t.setting_param_values) t.refresh();}\n'
20130515 '        Ext.each(this.params_panel.fields,function(f) {\n'
20130515 "          //~ f.on('valid',function() {t.refresh()});\n"
20130515 '          if (f instanceof Ext.form.Checkbox) {\n'
20130515 "              f.on('check',refresh);\n"
20130515 '          } else if (f instanceof Ext.DatePicker) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 '          } else if (f instanceof Ext.form.TriggerField) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 "              //~ f.on('change',refresh);\n"
20130515 "              //~ f.on('valid',refresh);\n"
20130515 '          } else {\n'
20130515 '              if (! f.on) \n'
20130515 '                  console.log("20121010 no method \'on\'",f);\n'
20130515 '              else\n'
20130515 "                  f.on('change',refresh);\n"
20130515 '            }\n'
20130515 '          });\n'
20130515 '      }\n'
20130515 '      return tbar;\n'
20130515 '  }\n'
20130515 '  ,add_param_values : function (p) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 '      /* \n'
20130515 '      20120918 add param_values to the request string \n'
20130515 '      *only if the params_form is dirty*.\n'
20130515 '      Otherwise Actor.default_params() would never be used.\n'
20130515 '      \n'
20130515 '      20121023 But IntegClients.params_default has non-empty default values. \n'
20130515 '      Users must have the possibility to make them empty.\n'
20130515 '      */\n'
20130515 '      if (this.params_panel.form.isDirty()) {\n'
20130515 '        p.pv = this.get_param_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_param_values) \n'
20130515 '          p.pv = Lino.fields2array(\n'
20130515 '            this.params_panel.fields,this.status_param_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.params_panel.form.isDirty()) return;\n'
20130515 '      //~ p.pv = this.get_param_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  get_param_values : function() { // similar to get_field_values()\n'
20130515 '      return Lino.fields2array(this.params_panel.fields);\n'
20130515 '  },\n'
20130515 '  set_param_values : function(pv) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_param_values = pv;\n'
20130515 '      //~ this.params_panel.form.suspendEvents(false);\n'
20130515 '      this.setting_param_values = true;\n'
20130515 '      if (pv) { \n'
20130515 '          this.params_panel.form.my_loadRecord(pv);\n'
20130515 '      } else { \n'
20130515 '        this.params_panel.form.reset(); \n'
20130515 '      }\n'
20130515 '      this.setting_param_values = false;\n'
20130515 '      //~ this.params_panel.form.resumeEvents();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ajax_error_handler = function(panel) {\n'
20130515 '  return function(response,options) {\n'
20130515 "    console.log('Ajax failure:',response,options);\n"
20130515 '    if (panel.loadMask) panel.loadMask.hide();\n'
20130515 '    if (response.responseText) {\n'
20130515 "      var lines = response.responseText.split('\\n');\n"
20130515 '      if (lines.length > 10) {\n'
20130515 '          line = lines.splice(5,lines.length-10,"(...)");\n'
20130515 '      }\n'
20130515 '      Ext.MessageBox.alert(\n'
20130515 '        response.statusText,\n'
20130515 "        lines.join('<br/>')\n"
20130515 "        //~ response.responseText.replace(/\\n/g,'<br/>'))\n"
20130515 '      )\n'
20130515 '    } else {\n'
20130515 "      Ext.MessageBox.alert('Action failed',\n"
20130515 "        'Lino server did not respond to Ajax request');\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 "// Ext.Ajax.on('requestexception',Lino.ajax_error_handler)\n"
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 'Ext.QuickTips.init();\n'
20130515 '\n'
20130515 '/* setting QuickTips dismissDelay to 0 */\n'
20130515 '// Apply a set of config properties to the singleton\n'
20130515 '//~ Ext.apply(Ext.QuickTips.getQuickTip(), {\n'
20130515 '//~ Ext.apply(Ext.ToolTip, {\n'
20130515 '    //~ dismissDelay: 0\n'
20130515 '    //~ autoHide: false,\n'
20130515 '    //~ closable: true,\n'
20130515 '    //~ maxWidth: 200,\n'
20130515 '    //~ minWidth: 100,\n'
20130515 '    //~ showDelay: 50      // Show 50ms after entering target\n'
20130515 '    //~ ,trackMouse: true\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Ext.apply(Ext.QuickTip, {\n'
20130515 '    //~ dismissDelay: 0,\n'
20130515 '//~ });\n'
20130515 '  \n'
20130515 'Lino.quicktip_renderer = function(title,body) {\n'
20130515 '  return function(c) {\n'
20130515 '    //~ if (c instanceof Ext.Panel) var t = c.bwrap; else // 20130129\n'
20130515 '    if (c instanceof Ext.Panel) var t = c.header; else // 20130129\n'
20130515 '    var t = c.getEl();\n'
20130515 '    //~ console.log(20130129,t,title,body);\n'
20130515 '    //~ t.dismissDelay = 0;\n'
20130515 '    Ext.QuickTips.register({\n'
20130515 '      target: t,\n'
20130515 "      //~ cls: 'lino-quicktip-classical',\n"
20130515 '      dismissDelay: 0,\n'
20130515 '      //~ autoHide: false,\n'
20130515 '      showDelay: 50,      // Show 50ms after entering target\n'
20130515 '      //~ title: title,\n'
20130515 '      text: body\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '  \n'
20130515 'Lino.help_text_editor = function() {\n'
20130515 '  //~ var bp = {\n'
20130515 '      //~ mk:this.content_type,\n'
20130515 '      //~ mt:1\n'
20130515 '    //~ };\n'
20130515 '    //~ console.log(20120202,bp);\n'
20130515 '  //~ Lino.lino.ContentTypes.detail({},{base_params:bp});\n'
20130515 '  //~ Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '  Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '}\n'
20130515 '\n'
20130515 '// Path to the blank image should point to a valid location on your server\n'
20130515 "//~ Ext.BLANK_IMAGE_URL = MEDIA_URL + '/extjs/resources/images/default/s.gif'; \n"
20130515 '\n'
20130515 '\n'
20130515 '// used as Ext.grid.Column.renderer for id columns in order to hide the special id value -99999\n'
20130515 'Lino.id_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.raw_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.text_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return "not implemented"; \n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.NullNumberColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 "    align : 'right', \n"
20130515 "    format : '0,00/i', \n"
20130515 '    renderer : function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '        //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "        if (value === null) return '';\n"
20130515 '        return Ext.util.Format.number(value, this.format);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.NullNumberColumn = Ext.extend(Ext.grid.NumberColumn, {\n'
20130515 "    //~ align : 'right', \n"
20130515 '    //~ constructor: function(cfg){\n'
20130515 '        //~ Ext.grid.NumberColumn.superclass.constructor.call(this, cfg);\n'
20130515 '        //~ var t = this;\n'
20130515 '        //~ this.renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '          //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "          //~ if (value === null) return '';\n"
20130515 '          //~ return Ext.util.Format.number(value, t.format);\n'
20130515 '      //~ };\n'
20130515 '    //~ }\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.cell_button_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return \'<input type="button" onclick="alert(value)" value=" ? ">\' ;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.default_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  //~ return value;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.fk_renderer = function(fkname,handlername) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    //~ if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'.run(null,{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.lfk_renderer = function(panel,fkname) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 "  var handlername = 'console.log';\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'({},{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gfk_renderer = function() {\n'
20130515 '  //~ return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ if (record.phantom) return '';\n"
20130515 "    //~ console.log('Lino.gfk_renderer',value,colIndex,record,metaData,store);\n"
20130515 '    //~ return value;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.build_buttons = function(panel,actions) {\n'
20130515 '  //~ console.log("20121006 Lino.build_buttons",actions);\n'
20130515 '  if (actions) {\n'
20130515 '    var buttons = Array(actions.length);\n'
20130515 '    var cmenu = Array(actions.length);\n'
20130515 '    for (var i=0; i < actions.length; i++) { \n'
20130515 '      buttons[i] = new Ext.Toolbar.Button(actions[i]);\n'
20130515 '      cmenu[i] = actions[i]\n'
20130515 '      cmenu[i].text = actions[i].menu_item_text;\n'
20130515 '      if (actions[i].panel_btn_handler) {\n'
20130515 '          var h = actions[i].panel_btn_handler.createCallback(panel,buttons[i]);\n'
20130515 '          //~ if (actions[i].must_save) {\n'
20130515 '          if (actions[i].auto_save == true) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[true,h]));\n"
20130515 '          } else if (actions[i].auto_save == null) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[false,h]));\n"
20130515 '          } else if (actions[i].auto_save == false) {\n'
20130515 "              buttons[i].on('click',h);\n"
20130515 '          } else {\n'
20130515 '              console.log("20120703 unhandled auto_save value",actions[i])\n'
20130515 '          }\n'
20130515 '          cmenu[i].handler = actions[i].panel_btn_handler.createCallback(panel,cmenu[i]);\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    return {bbar:buttons, cmenu:new Ext.menu.Menu(cmenu)};\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.do_when_visible = function(cmp,todo) {\n'
20130515 '  //~ if (cmp.el && cmp.el.dom) \n'
20130515 '  if (cmp.isVisible()) { \n'
20130515 "    // 'visible' means 'rendered and not hidden'\n"
20130515 "    //~ console.log(cmp.title,'-> cmp is visible now');\n"
20130515 '    todo(); \n'
20130515 '  //~ } else {\n'
20130515 "      //~ cmp.on('resize',todo,cmp,{single:true});\n"
20130515 '  //~ }\n'
20130515 '  //~ if (false) { // 20120213\n'
20130515 '  } else { \n'
20130515 "    //~ console.log('Lino.do_when_visible() must defer because not isVisible()',todo,cmp);\n"
20130515 '    if (cmp.rendered) {\n'
20130515 "      //~ console.log(cmp,'-> cmp is rendered but not visible: and now?');\n"
20130515 "      //~ console.log(cmp.title,'-> cmp is rendered but not visible: try again in a moment...');\n"
20130515 '      //~ var fn = function() {Lino.do_when_visible(cmp,todo)};\n'
20130515 '      //~ fn.defer(100);\n'
20130515 '      \n'
20130515 '      Lino.do_when_visible.defer(50,this,[cmp,todo]);\n'
20130515 '      //~ Lino.do_when_visible.defer(100,this,[cmp,todo]);\n'
20130515 '      \n'
20130515 '    } else {\n'
20130515 "      //~ console.log(cmp.title,'-> after render');\n"
20130515 "      cmp.on('afterrender',todo,cmp,{single:true});\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '};    \n'
20130515 '\n'
20130515 '/*\n'
20130515 '*/\n'
20130515 'Lino.do_on_current_record = function(panel,fn,phantom_fn) {\n'
20130515 '  var rec = panel.get_current_record();\n'
20130515 '  if (rec == undefined) {\n'
20130515 '    Lino.notify("There\'s no selected record.");\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  // 20120307 A VirtualTable with a Detail (lino.Models) has only "phantom" records.\n'
20130515 '  if (rec.phantom) {\n'
20130515 '    //~ if (!panel.editable) { console.log("20120312 not editable:",panel)}\n'
20130515 '    if (phantom_fn) {\n'
20130515 '      phantom_fn(panel);\n'
20130515 '    } else {\n'
20130515 '      Lino.notify("Action not available on phantom record.");\n'
20130515 '    }\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  return fn(rec);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.call_ajax_action = function(panel,method,url,p,actionName,step,on_confirm,on_success) {\n'
20130515 '  p.an = actionName;\n'
20130515 '  if (!panel) panel = Lino.viewport;\n'
20130515 '  Ext.apply(p,panel.get_base_params());\n'
20130515 '  //~ console.log("20121212 Lino.call_ajax_action",panel);\n'
20130515 '  panel.loadMask.show(); \n'
20130515 '  //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 '  //~ Lino.insert_subst_user(p);\n'
20130515 '    \n'
20130515 "  //~ if (step) p['$ext_requests.URL_PARAM_ACTION_STEP'] = step;\n"
20130515 '  //~ if (pp) pp(p); // "parameter processor" : first used for read beid card\n'
20130515 '  Ext.Ajax.request({\n'
20130515 '    method: method,\n'
20130515 '    url: url,\n'
20130515 '    params: p,\n'
20130515 '    success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.row_action_handler = function(actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      if (pp) { p = pp(); if (! p) return; }\n'
20130515 '      Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '          //~ console.log(panel);\n'
20130515 '          //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '          Lino.call_ajax_action(panel,hm,panel.get_record_url(rec.id),p,actionName,step,fn);\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.list_action_handler = function(ls_url,actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 "  var url = '/api' + ls_url\n"
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      //~ console.log("20121210 Lino.list_action_handler",arguments);\n'
20130515 "      //~ var url = ADMIN_URL + '/api' + panel.ls_url\n"
20130515 '      if (pp) { p = pp();  if (! p) return; }\n'
20130515 '      Lino.call_ajax_action(panel,hm,url,p,actionName,step,fn);\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.param_action_handler = function(window_action) { // 20121012\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '      //~ console.log(panel);\n'
20130515 '      //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '      window_action.run(panel.getId(),{}); \n'
20130515 '    });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.run_row_action = function(requesting_panel,url,pk,actionName,pp) {\n'
20130515 '  //~ var panel = action.get_window().main_item;\n'
20130515 "  url = '/api' + url  + '/' + pk;\n"
20130515 '  var panel = Ext.getCmp(requesting_panel);\n'
20130515 '  if (pp) var p = pp(); else var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    //~ 20120723 Lino.call_ajax_action(panel,pk,actionName,step,fn);\n'
20130515 "    Lino.call_ajax_action(panel,'GET',url,p,actionName,step,fn);\n"
20130515 '  }\n'
20130515 '  fn(panel,null,null);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_detail = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel, \n'
20130515 '    function(rec) {\n'
20130515 '      //~ panel.loadMask.show();\n'
20130515 '      var bp = panel.get_base_params();\n'
20130515 '      //~ var bp = {};\n'
20130515 '      panel.add_param_values(bp); // 20120918\n'
20130515 '      var status = {\n'
20130515 '        record_id:rec.id,\n'
20130515 '        base_params:bp\n'
20130515 '        //~ param_values: pv.$ext_requests.URL_PARAM_PARAM_VALUES\n'
20130515 '      }\n'
20130515 '      //~ console.log("20120918 Lino.show_detail",status);\n'
20130515 '      panel.ls_detail_handler.run(null,status);\n'
20130515 '      //~ panel.loadMask.hide();\n'
20130515 '      //~ panel.containing_window.window.hideMask();\n'
20130515 '      //~ panel.el.unmask();\n'
20130515 '    },\n'
20130515 '    Lino.show_insert\n'
20130515 '  );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_fk_detail = function(combo,detail_action) {\n'
20130515 '    //~ console.log("Lino.show_fk_detail",combo,handler);\n'
20130515 '    pk = combo.getValue();\n'
20130515 '    if (pk) {\n'
20130515 '        detail_action.run(null,{record_id: pk})\n'
20130515 '      } else {\n'
20130515 '        Lino.notify("Cannot show detail for empty foreign key.");\n'
20130515 '      }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert = function(panel,btn) {\n'
20130515 '  var bp = panel.get_base_params();\n'
20130515 "  //~ console.log('20120125 Lino.show_insert',bp)\n"
20130515 '  //~ panel.ls_insert_handler.run(null,{record_id:-99999,base_params:bp});\n'
20130515 '  panel.ls_insert_handler.run(panel.getId(),{record_id:-99999,base_params:bp});\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert_duplicate = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel,\n'
20130515 '    function(rec) {\n'
20130515 '      var newRec = {};\n'
20130515 '      Ext.apply(newRec,rec);\n'
20130515 '      newRec.id = -99999;\n'
20130515 '      panel.ls_insert_handler.run(null,{data_record:rec});\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.update_row_handler = function(action_name) {\n'
20130515 '  //~ return function(panel,btn) {\n'
20130515 '    //~ Lino.notify("Sorry, " + action_name + " is not implemented.");\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'if (Ext.ux.grid !== undefined) {\n'
20130515 '    Lino.GridFilters = Ext.extend(Ext.ux.grid.GridFilters,{\n'
20130515 '      encode:true,\n'
20130515 '      local:false\n'
20130515 '    });\n'
20130515 '} else {\n'
20130515 '    Lino.GridFilters = function() {}; // dummy\n'
20130515 '    Ext.override(Lino.GridFilters,{\n'
20130515 '      init : function() {}\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.TextField,{\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.Field,{\n'
20130515 '    //~ editable : false,\n'
20130515 '    //~ constructor : function(ww,config,params){\n'
20130515 '      //~ this.containing_window = ww;\n'
20130515 '      //~ if (params) Ext.apply(config,params);\n'
20130515 '      //~ Lino.ButtonField.superclass.constructor.call(this, config);\n'
20130515 '    //~ },\n'
20130515 '    //~ setButtons : function(buttons){\n'
20130515 "      //~ console.log('setButtons',buttons);\n"
20130515 '    //~ },\n'
20130515 '    //~ onRender : function(ct, position){\n'
20130515 '        //~ if(!this.el){\n'
20130515 '            //~ this.panel = new Ext.Container({items:[\n'
20130515 "              //~ {xtype:'button',text:'upload'},\n"
20130515 "              //~ {xtype:'button',text:'show'},\n"
20130515 "              //~ {xtype:'button',text:'edit'}\n"
20130515 '            //~ ]});\n'
20130515 '            //~ this.panel.ownerCt = this;\n'
20130515 '            //~ this.el = this.panel.getEl();\n'
20130515 '\n'
20130515 '        //~ }\n'
20130515 '        //~ Lino.ButtonField.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '  \n'
20130515 '//~ });\n'
20130515 '\n'
20130515 'Lino.FieldBoxMixin = {\n'
20130515 '  before_init : function(config,params) {\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    if (actions) config.bbar = actions.bbar;\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.containing_window = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  do_when_clean : function(auto_save,todo) { todo() },\n'
20130515 '  //~ format_data : function(html) { return \'<div class="htmlText">\' + html + \'</div>\' },\n'
20130515 '  format_data : function(html) { return html },\n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '    //~ if (p.param_values) this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,{\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  constructor : function(config,params) {\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    Lino.HtmlBoxPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.constructor.call(this, ww,config,params);\n'
20130515 '  //~ },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  //~ disable : function() { var tb = this.getBottomToolbar(); if(tb) tb.disable()},\n'
20130515 '  //~ enable : function() { var tb = this.getBottomToolbar(); if(tb) tb.enable()},\n'
20130515 '  onRender : function(ct, position){\n'
20130515 '    Lino.HtmlBoxPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ console.log(20111125,this.containing_window);\n'
20130515 '    if (this.containing_panel) {\n'
20130515 "      this.containing_panel.on('enable',this.enable,this);\n"
20130515 "      this.containing_panel.on('disable',this.disable,this);\n"
20130515 '    }\n'
20130515 '    this.el.on({\n'
20130515 '      dragenter:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,dragover:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        event.stopEvent();\n'
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,drop:{\n'
20130515 '        scope:this\n'
20130515 '        ,fn:function(event){\n'
20130515 '          event.stopEvent();\n'
20130515 '          //~ console.log(20110516);\n'
20130515 '          var files = event.browserEvent.dataTransfer.files;\n'
20130515 '          if(files === undefined){\n'
20130515 '            return true;\n'
20130515 '          }\n'
20130515 '          var len = files.length;\n'
20130515 '          while(--len >= 0){\n'
20130515 '            console.log(files[len]);\n'
20130515 '            //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '          }\n'
20130515 '          Lino.show_insert(this);\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '      var record = this.containing_panel.get_current_record();\n'
20130515 "      //~ console.log('HtmlBox.refresh()',this.title,record,record.title);\n"
20130515 '      var box = this.items.get(0);\n'
20130515 '      var todo = function() {\n'
20130515 '        if (this.disabled) return;\n'
20130515 '        //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '        var el = box.getEl();\n'
20130515 '        if (el) {\n'
20130515 "          el.update(record ? this.format_data(record.data[this.name]) : '');\n"
20130515 "          //~ console.log('HtmlBox.refresh()',this.name);\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('HtmlBox.refresh() failed for',this.name);\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '      Lino.do_when_visible(box,todo.createDelegate(this));\n'
20130515 '    //~ }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.RichTextPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,{\n'
20130515 '    \n'
20130515 '  //~ initComponent : function(){\n'
20130515 '    //~ Lino.RichTextPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ },\n'
20130515 '  constructor : function(config,params) {\n'
20130515 "    //~ console.log('Lino.RichTextPanel.initComponent',this);\n"
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + String(rec.id) + "/" + config.name;\n'
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + config.name;\n'
20130515 '    var t = this;\n'
20130515 '    var tinymce_options = {\n'
20130515 '        theme : "advanced",\n'
20130515 "        content_css: '/media/lino/extjs/lino.css',\n"
20130515 "        language: 'de',\n"
20130515 '        //~ template_external_list_url : url,\n'
20130515 '        theme_advanced_toolbar_location : "top",\n'
20130515 '        theme_advanced_toolbar_align : "left",\n'
20130515 '        theme_advanced_statusbar_location : "bottom",\n'
20130515 '        template_popup_width : 700,\n'
20130515 '        template_popup_height : 500,\n'
20130515 '        template_replace_values : { \n'
20130515 '            data_field : function(element){ \n'
20130515 '                //~ console.log(20110722,fieldName,t.containing_window.get_current_record()); \n'
20130515 '                var fieldName = element.innerHTML;\n'
20130515 '                element.innerHTML = t.containing_panel.get_current_record().data[fieldName];\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '    var editorConfig = {\n'
20130515 '      tinymceSettings: {\n'
20130515 '        plugins : "noneditable,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,template",\n'
20130515 '        theme_advanced_buttons2 : "",\n'
20130515 '        theme_advanced_buttons3 : "", // ,|,sub,sup,|,charmap",      \n'
20130515 '        theme_advanced_resizing : false\n'
20130515 '        //~ save_onsavecallback : save_callback,\n'
20130515 '        //~ save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '        \n'
20130515 '    }};\n'
20130515 '    Ext.apply(editorConfig.tinymceSettings,tinymce_options);\n'
20130515 '    //~ editorConfig.name = config.action_name;\n'
20130515 '    editorConfig.name = config.name;\n'
20130515 '    delete config.name;\n'
20130515 '    //~ config.title = config.label;\n'
20130515 '    //~ delete config.label;\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    \n'
20130515 '    this.editor = new Ext.ux.TinyMCE(editorConfig);\n'
20130515 '    var t = this;\n'
20130515 '    config.tools = [{\n'
20130515 '                      qtip: "Edit text in own window", \n'
20130515 '                      id: "up",\n'
20130515 '                      handler: function(){\n'
20130515 '                        if(t.editor.isDirty()) {\n'
20130515 '                            var record = t.containing_panel.get_current_record();\n'
20130515 '                            record.data[t.editor.name] = t.editor.getValue();\n'
20130515 '                        }\n'
20130515 '                        Lino.edit_tinymce_text(t,tinymce_options)\n'
20130515 '                      }\n'
20130515 '                    }];\n'
20130515 '    \n'
20130515 '    config.items = this.editor;\n'
20130515 '    config.layout = "fit";\n'
20130515 '    Lino.RichTextPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    var record = this.containing_panel.get_current_record();\n'
20130515 "    //~ console.log('RichTextPanel.refresh()',this.title,record.title,record);\n"
20130515 '    var todo = function() {\n'
20130515 '      //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '      if (record) {\n'
20130515 '        var url = \'/templates\' + this.containing_panel.ls_url + "/" \n'
20130515 '            + String(record.id) + "/" + this.editor.name;\n'
20130515 "        //~ console.log('RichTextPanel.refresh()',url);\n"
20130515 '        if (this.editor.ed) this.editor.ed.settings.template_external_list_url = url;\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 "        //~ var v = record ? this.format_data(record.data[this.editor.name]) : ''\n"
20130515 '        var v = this.format_data(record.data[this.editor.name])\n'
20130515 '        this.editor.setValue(v);\n'
20130515 '      } else {\n'
20130515 "        this.editor.setValue('(no data)');\n"
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.PanelMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 "  //~ layout:'fit'\n"
20130515 '  //~ ,autoHeight: true\n'
20130515 '  //~ ,frame: true\n'
20130515 '  window_title: "Action Parameters",\n'
20130515 '  constructor : function(config){\n'
20130515 '    config.bbar = [\n'
20130515 "        {text:'OK',handler:this.on_ok,scope:this},\n"
20130515 "        {text:'Cancel',handler:this.on_cancel,scope:this}\n"
20130515 '    ];\n'
20130515 '    //~ config.items = config.params_panel;\n'
20130515 '    Lino.ActionFormPanel.superclass.constructor.call(this, config);\n'
20130515 '  }\n'
20130515 '  //~ ,initComponent : function(){\n'
20130515 '    //~ Lino.ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '    //~ var rp = this.requesting_panel;\n'
20130515 '    //~ console.log("on_ok",this.requesting_panel,arguments);\n'
20130515 '    //~ Lino.row_action_handler()\n'
20130515 '    var panel = this.requesting_panel;\n'
20130515 '    var actionName = this.action_name;\n'
20130515 '    var rec = panel.get_current_record();\n'
20130515 '    var self = this;\n'
20130515 '    function on_success() { self.get_containing_window().close(); };\n'
20130515 '    var fn = function(panel,btn,step) {\n'
20130515 '      var p = {};\n'
20130515 '      self.add_field_values(p)\n'
20130515 "      Lino.call_ajax_action(panel,'GET',panel.get_record_url(rec.id),p,actionName,step,fn,on_success);\n"
20130515 '    }\n'
20130515 '    fn(panel,null,null);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '  }\n'
20130515 '  ,set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 ActionFormPanel.set_status()',status,rp,this.requesting_panel);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_field_values(status.field_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,add_field_values : function (p) { // similar to add_param_values()\n'
20130515 '      //~ 20121023 \n'
20130515 '      if (this.form.isDirty()) {\n'
20130515 '        p.fv = this.get_field_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_field_values) \n'
20130515 '          p.fv = Lino.fields2array(this.fields,this.status_field_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.form.isDirty()) return;\n'
20130515 '      //~ p.$ext_requests.URL_PARAM_FIELD_VALUES = this.get_field_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '  }\n'
20130515 '  ,get_field_values : function() {\n'
20130515 '      return Lino.fields2array(this.fields);\n'
20130515 '  }\n'
20130515 '  ,set_field_values : function(pv) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_field_values = pv;\n'
20130515 '      if (pv) this.form.my_loadRecord(pv);\n'
20130515 '      else this.form.reset(); \n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.title = this.window_title;\n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.fields2array = function(fields,values) {\n'
20130515 "    //~ console.log('20120116 gonna loop on', fields);\n"
20130515 '    var pv = Array(fields.length);\n'
20130515 '    for(var i=0; i < fields.length;i++) {\n'
20130515 '        var f = fields[i]\n'
20130515 '        if (values) \n'
20130515 '          var v = values[f.name];\n'
20130515 '        else \n'
20130515 '          var v = f.getValue();\n'
20130515 '        if (f.formatDate) {\n'
20130515 '            pv[i] = f.formatDate(v); \n'
20130515 '        } else {\n'
20130515 '            pv[i] = v; // f.getValue(); \n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    return pv;\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.FormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,Lino.PanelMixin);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  //~ base_params : {},\n'
20130515 '  //~ trackResetOnLoad : true,\n'
20130515 '  //~ query_params : {},\n'
20130515 "  //~ 20110119b quick_search_text : '',\n"
20130515 '  constructor : function(config,params){\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    this.base_params = {};\n'
20130515 "    //~ ww.config.base_params.query = ''; // 20111018\n"
20130515 '    //~ console.log(config);\n'
20130515 "    //~ console.log('FormPanel.constructor() 1',config)\n"
20130515 '    //~ Ext.applyIf(config,{base_params:{}});\n'
20130515 "    //~ console.log('FormPanel.constructor() 2',config)\n"
20130515 '      \n'
20130515 '    config.trackResetOnLoad = true;\n'
20130515 '    \n'
20130515 '    Lino.FormPanel.superclass.constructor.call(this, config);\n'
20130515 '      \n'
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',null); // 20111018\n"
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',''); // 20111018\n"
20130515 '      \n'
20130515 '  },\n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    //~ console.log("20111201 containing_window",this.containing_window,this);\n'
20130515 '    \n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    if (actions) {\n'
20130515 '        this.bbar = actions.bbar;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ this.bbar = [];\n'
20130515 '    }\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ var config = this;\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window instanceof Lino.DetailWrapper) {\n'
20130515 '    \n'
20130515 "    //~ console.log('20120121 initComponent', this.action_name);\n"
20130515 "    //~ if (this.action_name == 'detail' | this.action_name == 'show') {\n"
20130515 "    //~ if (this.action_name != 'insert') {\n"
20130515 '    if (! this.hide_top_toolbar) {\n'
20130515 '      this.tbar = [];\n'
20130515 '      // 20111015    \n'
20130515 '      if (! this.hide_navigator) {\n'
20130515 '        this.record_selector = new Lino.RemoteComboFieldElement({\n'
20130515 '          store: new Lino.ComplexRemoteComboStore({\n'
20130515 '            //~ baseParams: this.containing_window.config.base_params,\n'
20130515 '            baseParams: this.get_base_params(),\n'
20130515 '            //~ value: this.containing_window.config.base_params.query,\n'
20130515 '            proxy: new Ext.data.HttpProxy({\n'
20130515 "              url: '/choices' + this.ls_url,\n"
20130515 "              method:'GET'\n"
20130515 '            })\n'
20130515 '          }),\n'
20130515 '          pageSize:25,\n'
20130515 '          listeners: { \n'
20130515 '            scope:this, \n'
20130515 '            select:function(combo,record,index) {\n'
20130515 "              //~ console.log('jumpto_select',arguments);\n"
20130515 '              this.goto_record_id(record.id);\n'
20130515 '            }\n'
20130515 '          },\n'
20130515 '          emptyText: "Go to record"\n'
20130515 '        })\n'
20130515 '        this.tbar = this.tbar.concat([this.record_selector]);\n'
20130515 '        \n'
20130515 '        this.tbar = this.tbar.concat([\n'
20130515 '          this.first = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"First",disabled:true,handler:this.moveFirst,scope:this,iconCls:\'x-tbar-page-first\'}),\n'
20130515 '          this.prev = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Previous",disabled:true,handler:this.movePrev,scope:this,iconCls:\'x-tbar-page-prev\'}),\n'
20130515 '          this.next = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Next",disabled:true,handler:this.moveNext,scope:this,iconCls:\'x-tbar-page-next\'}),\n'
20130515 '          this.last = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Last",disabled:true,handler:this.moveLast,scope:this,iconCls:\'x-tbar-page-last\'})\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      this.tbar = this.add_params_panel(this.tbar);\n'
20130515 '      \n'
20130515 '      //~ console.log(20101117,this.containing_window.refresh);\n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 '        {\n'
20130515 "          //~ text:'Refresh',\n"
20130515 '          handler:function(){ this.do_when_clean(true,this.refresh.createDelegate(this)) },\n'
20130515 "          iconCls: 'x-tbar-loading',\n"
20130515 '          tooltip:"Reload current record",\n'
20130515 '          scope:this}\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '      if (this.bbar) { // since 20121016\n'
20130515 '        if (this.tbar) {\n'
20130515 "            this.tbar = this.tbar.concat(['-']) ;\n"
20130515 '        } else {\n'
20130515 '          this.tbar = [];\n'
20130515 '        }\n'
20130515 '        this.tbar = this.tbar.concat(this.bbar) ;\n'
20130515 '        this.bbar = undefined;\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 "          '->',\n"
20130515 '          this.displayItem = new Ext.Toolbar.TextItem({})\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '    }\n'
20130515 "    //~ if (this.content_type && this.action_name != 'insert') {\n"
20130515 '      //~ this.bbar = this.bbar.concat([\n'
20130515 "        //~ '->',\n"
20130515 '        //~ { text: "[$_(\'Help Text Editor\')]",\n'
20130515 '          //~ handler: Lino.help_text_editor,\n'
20130515 '          //~ qtip: "$_(\'Edit help texts for fields on this model.\')",\n'
20130515 '          //~ scope: this}\n'
20130515 '      //~ ])\n'
20130515 '    //~ }\n'
20130515 '    //~ this.before_row_edit = config.before_row_edit.createDelegate(this);\n'
20130515 '      \n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '        //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '    //~ }\n'
20130515 '      \n'
20130515 '    Lino.FormPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.bwrap,{msg:"Please wait..."});\n'
20130515 '    },this);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.cascade(function(cmp){\n'
20130515 '      //~ // var active_field = false;\n'
20130515 '      //~ for (i = 0; i < this_.active_fields.length; i++) {\n'
20130515 '        //~ if (cmp.name == this_.active_fields[i]) {\n'
20130515 '            //~ // active_field = true; break;\n'
20130515 '            //~ cmp.on("change",function() {this_.save()});\n'
20130515 '        //~ }\n'
20130515 '      //~ };\n'
20130515 '      //~ if (active_field) {\n'
20130515 '      // if (cmp instanceof Lino.GridPanel) {\n'
20130515 '          //~ cmp.on("change",function() {this_.save()});\n'
20130515 '      //~ }\n'
20130515 '    //~ });\n'
20130515 '    \n'
20130515 "    if (this.action_name == 'insert') {\n"
20130515 '      this.cascade(function(cmp){\n'
20130515 "        // console.log('20110613 cascade',cmp);\n"
20130515 '        if (cmp.disabled_in_insert_window) {\n'
20130515 '            //~ cmp.disable();\n'
20130515 '            cmp.hide();\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    if (this.current_record == null) return true; \n'
20130515 '    var loading = false;\n'
20130515 '    this.cascade(function(cmp){\n'
20130515 '        if (cmp instanceof Lino.GridPanel && cmp.is_loading()) {\n'
20130515 "            //~ console.log(cmp.title,'is loading');\n"
20130515 '            loading = true;\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    return loading;\n'
20130515 '    //~ var a = this.findByType(Lino.GridPanel);\n'
20130515 '    //~ for (i=0;i<a.length;i++) {\n'
20130515 '        //~ if (a[i].is_loading()) return true;\n'
20130515 '    //~ }\n'
20130515 '    //~ return false;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '      var st = {\n'
20130515 '        base_params: this.get_base_params(),\n'
20130515 '        data_record : this.get_current_record()\n'
20130515 '        }\n'
20130515 '      var tp = this.items.get(0);\n'
20130515 '      if (tp instanceof Ext.TabPanel) {\n'
20130515 '        st.active_tab = tp.getActiveTab();\n'
20130515 '      }\n'
20130515 '      st.param_values = this.status_param_values;\n'
20130515 '      return st;\n'
20130515 '  },\n'
20130515 '  set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 FormPanel.set_status()',status);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '    var tp = this.items.get(0);\n'
20130515 '    if (tp instanceof Ext.TabPanel) {\n'
20130515 '      if (status.active_tab) {\n'
20130515 "        //~ console.log('20111201 active_tab',this.active_tab,this.items.get(0));\n"
20130515 '        //~ tp.activeTab = status.active_tab;\n'
20130515 '        tp.setActiveTab(status.active_tab);\n'
20130515 '        //~ this.main_item.items.get(0).activate(status.active_tab);\n'
20130515 '      } else {\n'
20130515 '        tp.setActiveTab(0);\n'
20130515 '      }\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '    if (status.data_record) {\n'
20130515 "      //~ console.log('20111201 Lino.FormPanel with data_record',this.data_record.title,this.containing_window);\n"
20130515 '      //~ this.main_item.on_master_changed.defer(2000,this.main_item,[status.data_record]);\n'
20130515 '      //~ Lino.do_when_visible(this.main_item,function(){this.on_master_changed(status.data_record)});\n'
20130515 "      //~ this.main_item.on('afterrender',function(){\n"
20130515 '      //~   this.main_item.on_master_changed(status.data_record)},this,{single:true});\n'
20130515 "      /* must defer because because set_window_title() didn't work otherwise */\n"
20130515 '      this.set_current_record.createDelegate(this,[status.data_record]).defer(100);\n'
20130515 '      //~ this.set_current_record(this.data_record);\n'
20130515 '      //~ return;\n'
20130515 '    } else if (status.record_id != undefined) { \n'
20130515 '      /* possible values include 0 and null, 0 being a valid record id, \n'
20130515 '      null the equivalent of undefined\n'
20130515 '      */\n'
20130515 '      //~ this.main_item.goto_record_id(this.status.record_id);\n'
20130515 '      this.load_record_id(status.record_id);\n'
20130515 '    } else {\n'
20130515 '      this.set_current_record(undefined);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '    \n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert_action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.base_params;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 "    delete p['query'] // 20120725\n"
20130515 '    Ext.apply(this.base_params,p);\n'
20130515 '    if (this.record_selector) {\n'
20130515 '        var store = this.record_selector.getStore();\n'
20130515 '        for (k in p) store.setBaseParam(k,p[k]);\n'
20130515 '        delete this.record_selector.lastQuery;\n'
20130515 '        //~ console.log("20120725 record_selector.setBaseParam",p)\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '        \n'
20130515 '      //~ if (this.record_selector) {\n'
20130515 '          //~ var store = this.record_selector.getStore();\n'
20130515 '          //~ for (k in store.baseParams) store.setBaseParam(k,undefined);\n'
20130515 '          //~ delete this.record_selector.lastQuery;\n'
20130515 '          //~ console.log("20120725 record_selector.getBaseParams() -->",store.baseParams)\n'
20130515 '      //~ }\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '    //~ if (this.record_selector) {\n'
20130515 '        //~ this.record_selector.getStore().setBaseParam(k,v);\n'
20130515 '        //~ delete this.record_selector.lastQuery;\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  after_delete : function() {\n'
20130515 '    if (this.current_record.navinfo.next)\n'
20130515 '      this.moveNext();\n'
20130515 '    else if (this.current_record.navinfo.prev)\n'
20130515 '      this.movePrev();\n'
20130515 '    else \n'
20130515 '      this.abandon();\n'
20130515 '  },\n'
20130515 '  moveFirst : function() {this.goto_record_id(this.current_record.navinfo.first)},\n'
20130515 '  movePrev : function() {this.goto_record_id(this.current_record.navinfo.prev)},\n'
20130515 '  moveNext : function() {this.goto_record_id(this.current_record.navinfo.next)},\n'
20130515 '  moveLast : function() {this.goto_record_id(this.current_record.navinfo.last)},\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ console.log('20120121 Lino.FormPanel.refresh()',this);\n"
20130515 '    if (this.current_record) {\n'
20130515 '        this.load_record_id(this.current_record.id,after);\n'
20130515 '    } else {\n'
20130515 '        this.set_current_record(undefined,after);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  do_when_clean : function(auto_save,todo) {\n'
20130515 '    var this_ = this;\n'
20130515 '    if (this.form.isDirty()) {\n'
20130515 '        if (auto_save) {\n'
20130515 '            this_.save(todo);\n'
20130515 '        } else {\n'
20130515 "          //~ console.log('20111217 do_when_clean() form is dirty',this.form);\n"
20130515 '          var config = {title:"Confirmation"};\n'
20130515 '          config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '          config.msg = "Save changes to current record ?";\n'
20130515 '          config.fn = function(buttonId,text,opt) {\n'
20130515 "            //~ console.log('do_when_clean',buttonId)\n"
20130515 '            if (buttonId == "yes") {\n'
20130515 '                //~ Lino.submit_detail(this_,undefined,todo);\n'
20130515 '                //~ this_.containing_window.save(todo);\n'
20130515 '                this_.save(todo);\n'
20130515 '            } else if (buttonId == "no") { \n'
20130515 '              todo();\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '    }else{\n'
20130515 "      //~ console.log('do_when_clean : now!')\n"
20130515 '      todo();\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  goto_record_id : function(record_id) {\n'
20130515 "    //~ console.log('20110701 Lino.FormPanel.goto_record_id()',record_id);\n"
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.do_when_clean(function() { this_.load_record_id(record_id) }\n'
20130515 '    this.do_when_clean(true,this.load_record_id.createDelegate(this,[record_id]));\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  load_record_id : function(record_id,after) {\n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var p = { fmt: this.containing_window.config.action_name};\n'
20130515 '    //~ var p = Ext.apply({},this.containing_window.config.base_params);\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "    //~ console.log('20110713 action_name=',this.containing_window.config.action_name,\n"
20130515 "      //~ 'base_params=',this.containing_window.config.base_params);\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ p.an = this.action_name;\n'
20130515 '    //~ p.an = this.containing_window.config.action_name;\n'
20130515 "    //~ p.fmt = 'json';\n"
20130515 "    //~ p.fmt = '$ext_requests.URL_FORMAT_JSON';\n"
20130515 '    p.rp = this.getId();\n'
20130515 '    //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 "    p.fmt = 'json';\n"
20130515 "    //~ 20110119b p['$URL_PARAM_FILTER'] = this.quick_search_text;\n"
20130515 '    //~ Ext.apply(p,this.query_params);\n'
20130515 '    this.add_param_values(p);\n'
20130515 "    //~ console.log('20121120 FormPanel.load_record_id',record_id,p);\n"
20130515 '    if (this.loadMask) this.loadMask.show();\n'
20130515 '    Ext.Ajax.request({ \n'
20130515 "      waitMsg: 'Loading record...',\n"
20130515 "      method: 'GET',\n"
20130515 '      params: p,\n'
20130515 '      scope: this,\n'
20130515 '      url: this.get_record_url(record_id),\n'
20130515 '      success: function(response) {   \n'
20130515 '        // todo: convert to Lino.action_handler.... but result \n'
20130515 '        if (this.loadMask) this.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var rec = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('20120918 goto_record_id success',rec);\n"
20130515 '          this.set_param_values(rec.param_values);\n'
20130515 '          this.set_current_record(rec,after);\n'
20130515 '        }\n'
20130515 '      },\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  abandon : function () {\n'
20130515 "    Ext.MessageBox.alert('Note',\n"
20130515 '      "No more records to display. Detail window has been closed.");\n'
20130515 '    Lino.close_window();\n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ this.containing_window.hide();\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_current_record : function(record,after) {\n'
20130515 "    //~ console.log('20120722 Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    if (this.record_selector) {\n'
20130515 '        this.record_selector.clearValue();\n'
20130515 "        // e.g. InsertWrapper FormPanel doesn't have a record_selector\n"
20130515 '    }\n'
20130515 '    this.current_record = record;\n'
20130515 '    //~ if (record) \n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    //~ else\n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record);\n"
20130515 '    //~ this.config.main_panel.form.load(record);    \n'
20130515 '    if (record) {\n'
20130515 '      this.enable();\n'
20130515 '      this.form.my_loadRecord(record.data);\n'
20130515 '      this.set_window_title(record.title);\n'
20130515 '      //~ this.getBottomToolbar().enable();\n'
20130515 '      var da = record.data.disabled_actions;\n'
20130515 '      if (da) {\n'
20130515 "          //~ console.log('20120528 disabled_actions =',da,this.getBottomToolbar());\n"
20130515 '          //~ 20121016 this.getBottomToolbar().items.each(function(item,index,length){\n'
20130515 '          var tb = this.getTopToolbar();\n'
20130515 '          if (tb) tb.items.each(function(item,index,length){\n'
20130515 "              //~ console.log('20120528 ',item.itemId,'-->',da[item.itemId]);\n"
20130515 '              if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '          });\n'
20130515 '      };\n'
20130515 '      if (this.disable_editing | record.data.disable_editing) {\n'
20130515 '          //~ console.log("20120202 disable_editing",record.title);\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            if (!cmp.always_enabled) cmp.disable();\n'
20130515 '          },this);\n'
20130515 '      } else {\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            //~ console.log("20120202",cmp);\n'
20130515 '            if (record.data.disabled_fields[cmp.name]) cmp.disable();\n'
20130515 '            else cmp.enable();\n'
20130515 '          },this);\n'
20130515 '        \n'
20130515 '          //~ if (record.data.disabled_fields) {\n'
20130515 '              //~ for (i = 0; i < record.data.disabled_fields.length; i++) {\n'
20130515 "                  //~ var flds = this.find('name',record.data.disabled_fields[i]);\n"
20130515 '                  //~ if (flds.length == 1) { \n'
20130515 '                    //~ flds[0].disable(); \n'
20130515 '                  //~ }\n'
20130515 '              //~ }\n'
20130515 '          //~ }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '      if (record.navinfo && ! this.hide_top_toolbar && ! this.hide_navigator) {\n'
20130515 '        //~ if (record.navinfo.recno == 0) {\n'
20130515 '            //~ this.first.setDisabled(true);\n'
20130515 '            //~ this.prev.setDisabled(true);\n'
20130515 '            //~ this.next.setDisabled(true);\n'
20130515 '            //~ this.last.setDisabled(true);\n'
20130515 '        //~ } else {\n'
20130515 '            this.first.setDisabled(!record.navinfo.first);\n'
20130515 '            this.prev.setDisabled(!record.navinfo.prev);\n'
20130515 '            this.next.setDisabled(!record.navinfo.next);\n'
20130515 '            this.last.setDisabled(!record.navinfo.last);\n'
20130515 '        //~ }\n'
20130515 '        this.displayItem.setText(record.navinfo.message);\n'
20130515 '      }\n'
20130515 '    } else {\n'
20130515 '      if (this.form.rendered) \n'
20130515 '        this.form.reset(); /* FileUploadField would fail when resetting a non-rendered form */\n'
20130515 '      //~ this.disable();\n'
20130515 '      //~ this.getBottomToolbar().disable();\n'
20130515 '      this.form.items.each(function(cmp){\n'
20130515 '        cmp.disable();\n'
20130515 '      },this);\n'
20130515 '      this.set_window_title(this.empty_title);\n'
20130515 '      //~ this.containing_window.window.setTitle(this.empty_title);\n'
20130515 '      if (!this.hide_navigator) {\n'
20130515 '        this.first.disable();\n'
20130515 '        this.prev.disable();\n'
20130515 '        this.next.disable();\n'
20130515 '        this.last.disable();\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 "    //~ console.log('20100531 Lino.DetailMixin.on_load_master_record',this.main_form);\n"
20130515 '    this.before_row_edit(record);\n'
20130515 '    if (after) after();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_selected : function() { return [ this.current_record ] },\n'
20130515 '  get_current_record : function() {  \n'
20130515 '    //~ console.log(20100714,this.current_record);\n'
20130515 '    return this.current_record \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_permalink_url : function() {\n'
20130515 '      var rec = this.get_current_record();\n'
20130515 '      if (rec && ! rec.phantom && rec.id != -99998)\n'
20130515 "          return '/api' + this.ls_url + '/' + rec.id;\n"
20130515 "      return '/api' + this.ls_url;\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  get_permalink_params : function() {\n'
20130515 '    var p = {};\n'
20130515 "    //~ var p = {an:'detail'};\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ var p = {an:this.action_name};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.activeTab) {\n'
20130515 '      var tab = main.items.indexOf(main.activeTab);\n'
20130515 "      //~ console.log('main.activeTab',tab,main.activeTab);\n"
20130515 '      if (tab) p.tab = tab;\n'
20130515 '    }\n'
20130515 '    this.add_param_values(p)\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.FormPanel.save() \n'
20130515 '  */\n'
20130515 '  save : function(after,switch_to_detail,action_name) {\n'
20130515 '    //~ var panel = this;\n'
20130515 "    //~ console.log('20121120 FormPanel.save');\n"
20130515 '    this.loadMask.show();\n'
20130515 '    var rec = this.get_current_record();\n'
20130515 '    if (this.has_file_upload) this.form.fileUpload = true;\n'
20130515 "    //~ console.log('FormPanel.save()',rec);\n"
20130515 '    if (!action_name) action_name = this.action_name;\n'
20130515 '    if (rec) {\n'
20130515 '      var p = {};\n'
20130515 '      Ext.apply(p,this.get_base_params());\n'
20130515 '      p.rp = this.getId();\n'
20130515 '      //~ if (this.action_name) \n'
20130515 '          //~ p.$ext_requests.URL_PARAM_ACTION_NAME = this.action_name;\n'
20130515 '      p.an = action_name;\n'
20130515 '      if (rec.phantom) {\n'
20130515 "        //~ if (this.action_name != 'insert') \n"
20130515 '            //~ console.log("Warning: phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url,\n"
20130515 "          method: 'POST',\n"
20130515 '          params: p, \n'
20130515 '          scope: this,\n'
20130515 '          success: function(form, action) {\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            /***\n'
20130515 '            Close this window, but update the status of the \n'
20130515 '            calling window.\n'
20130515 '            If the calling window is a detail on the same table,\n'
20130515 '            then it should skip to the new record. But only then.\n'
20130515 '            A successful response usually has a data_record,\n'
20130515 '            except if it is a fileupload form where some mysterious \n'
20130515 '            decoding problems (20120209) force us to return a record_id \n'
20130515 '            which will lead to an additional GET.\n'
20130515 '            ***/\n'
20130515 '            var url = this.ls_url;\n'
20130515 '            var ww = Lino.calling_window();\n'
20130515 '            if (ww && ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                   && ww.window.main_item.ls_url == this.ls_url) {\n'
20130515 '                //~ console.log("20120217 case 1");\n'
20130515 '                ww.status.record_id = action.result.record_id;\n'
20130515 '                ww.status.data_record = action.result.data_record;\n'
20130515 '                Lino.close_window();\n'
20130515 '            } else if (this.ls_detail_handler && switch_to_detail) {\n'
20130515 '                //~ console.log("20120217 case 2");\n'
20130515 '                Lino.kill_current_window();\n'
20130515 '                this.ls_detail_handler.run(null,{\n'
20130515 '                    record_id:action.result.record_id,\n'
20130515 '                    data_record: action.result.data_record,\n'
20130515 '                    base_params:this.get_base_params()\n'
20130515 '                });\n'
20130515 '            } else {\n'
20130515 '                //~ console.log("20120217 case 3");\n'
20130515 '                Lino.close_window();\n'
20130515 '            }\n'
20130515 '            //~ Lino.close_window(function(ww){\n'
20130515 '                //~ if (ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                    //~ && ww.window.main_item.ls_url == url) {\n'
20130515 '                  //~ ww.status.record_id = action.result.record_id,\n'
20130515 '                  //~ ww.status.data_record = action.result.data_record\n'
20130515 '                //~ }\n'
20130515 '            //~ });\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action);\n'
20130515 '          },\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      } else {\n'
20130515 "        //~ if (this.action_name != 'detail') \n"
20130515 '            //~ console.log("Warning: non-phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url + '/' + rec.id,\n"
20130515 "          method: 'PUT',\n"
20130515 "          //~ headers: { 'HTTP_X_REQUESTED_WITH' : 'XMLHttpRequest'},\n"
20130515 '          scope: this,\n'
20130515 '          params: p, \n'
20130515 '          success: function(form, action) {\n'
20130515 '            //~ panel.form.setValues(rec.data);\n'
20130515 '            //~ 20110701 panel.form.my_loadRecord(rec);\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            if (action.result.data_record)\n'
20130515 '                this.set_current_record(action.result.data_record,after);\n'
20130515 '            else\n'
20130515 '                console.log("Warning: no data_record in response to FormPanel.PUT")\n'
20130515 '            //~ this.refresh_with_after(after);\n'
20130515 '            //~ if (after) after(); else panel.refresh();\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action)},\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      }\n'
20130515 '    } else Lino.notify("Sorry, no current record.");\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '      this.save(null,true);\n'
20130515 '      //~ var rec = this.get_current_record();\n'
20130515 '      //~ if (rec && rec.phantom)\n'
20130515 '          //~ this.do_when_clean(true,function() { Lino.close_window(); });\n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok, scope:this }\n'
20130515 '        ,{ key: Ext.EventObject.ESCAPE, fn: this.on_cancel, scope:this }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  /* not used (no longer possible without .dtl files)\n'
20130515 '  , edit_detail_config : function () {\n'
20130515 '    var active_tab = {};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.getActiveTab !== undefined) {\n'
20130515 '      var tabitem = main.getActiveTab();\n'
20130515 '      Ext.apply(active_tab,{$ext_requests.URL_PARAM_TAB : main.items.indexOf(tabitem)});\n'
20130515 '    }\n'
20130515 '    var editor = new Ext.form.TextArea();\n'
20130515 '    var close = function() { win.close(); }\n'
20130515 '    var _this = this;\n'
20130515 '    var save = function() { \n'
20130515 '      //~ console.log(20110609,arguments); \n'
20130515 '      var params = {desc: editor.getValue()};\n'
20130515 '      Ext.apply(params,active_tab);\n'
20130515 '      var a = { \n'
20130515 '        params: params, \n'
20130515 "        method: 'PUT',\n"
20130515 "        url: ADMIN_URL + '/detail_config' + _this.ls_url,\n"
20130515 '        failure : Lino.ajax_error_handler(this),\n'
20130515 '        success: Lino.action_handler( _this, function(result) {\n'
20130515 "          //~ console.log('detail_config/save success',result);\n"
20130515 '          win.close();\n'
20130515 '          document.location = _this.get_permalink();\n'
20130515 '        })\n'
20130515 '      };\n'
20130515 "      //~ console.log('detail_config/save sent',a);\n"
20130515 '      _this.loadMask.show(); // 20120211\n'
20130515 '      Ext.Ajax.request(a);\n'
20130515 '    }\n'
20130515 "    var save_btn = new Ext.Button({text:'Save',handler:save,disabled:true});\n"
20130515 "    var win = new Ext.Window({title:'Detail Layout',\n"
20130515 "      items:editor, layout:'fit',\n"
20130515 '      width:500,height:500,\n'
20130515 "      bbar:[{text:'Cancel',handler:close},save_btn]});\n"
20130515 '    var a = { \n'
20130515 '      params:active_tab, \n'
20130515 "      method:'GET',\n"
20130515 "      url:ADMIN_URL+'/detail_config'+_this.ls_url,\n"
20130515 '      success : function(response) {\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 '          if (result.success) {\n'
20130515 '            editor.setValue(result.desc);\n'
20130515 '            save_btn.enable();\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    win.show();\n'
20130515 '  }\n'
20130515 '  */\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.getRowClass = function(record, rowIndex, rowParams, store) {\n'
20130515 '  if (record.phantom) {\n'
20130515 '    //~ console.log(20101009,record);\n'
20130515 '    //~ rowParams.bodyStyle = "color:red;background-color:blue";\n'
20130515 "    return 'lino-phantom-row';\n"
20130515 '    }\n'
20130515 "  //~ console.log('20101009 not a phantom:',record);\n"
20130515 "  return '';\n"
20130515 '}\n'
20130515 '\n'
20130515 '//~ FOO = 0;\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.GridStore = Ext.extend(Ext.data.ArrayStore,{ \n'
20130515 '  autoLoad: false\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    if (!options) options = {};\n'
20130515 '    if (!options.params) options.params = {};\n'
20130515 "    options.params.fmt = 'json';\n"
20130515 '    options.params.rp = this.grid_panel.getId();\n'
20130515 '    Lino.insert_subst_user(options.params); // since 20121016\n'
20130515 '      \n'
20130515 '    \n'
20130515 '    if (this.grid_panel.hide_top_toolbar) {\n'
20130515 '        //~ console.log("20120206 GridStore.load() toolbar is hidden");\n'
20130515 '        options.params.start = 0;\n'
20130515 '        if (this.grid_panel.preview_limit) {\n'
20130515 '          options.params.limit = this.grid_panel.preview_limit;\n'
20130515 '        }\n'
20130515 '    } else {\n'
20130515 '        var ps = this.grid_panel.calculatePageSize();\n'
20130515 '        if (!ps) {\n'
20130515 "            //~ this.gridpanel.on('render',this.load())\n"
20130515 '          //~ console.log("20120814 GridStore.load() failed to calculate pagesize");\n'
20130515 '          return false;\n'
20130515 '            //~ params.$URL_PARAM_LIMIT = 1;\n'
20130515 "            //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '            //~ return;\n'
20130515 '        } \n'
20130515 '        options.params.limit = ps;\n'
20130515 '      \n'
20130515 '        //~ options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '        //~ if (this.grid_panel.getTopToolbar().pageSize !=  ps) {\n'
20130515 '          //~ console.log("20120206 abort load because toolbar says pagesize",\n'
20130515 '            //~ this.grid_panel.getTopToolbar().pageSize,\n'
20130515 '            //~ "while actual pagesize is",ps);\n'
20130515 '            //~ return;\n'
20130515 '        //~ }\n'
20130515 '        \n'
20130515 '        this.grid_panel.getTopToolbar().pageSize =  ps;\n'
20130515 '        if (options.params.start == undefined)\n'
20130515 '            options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    this.grid_panel.add_param_values(options.params);\n'
20130515 '    //~ Lino.insert_subst_user(options.params);\n'
20130515 '    //~ console.log("20120814 GridStore.load()",options.params,this.baseParams);\n'
20130515 '    //~ if (FOO > 0) {\n'
20130515 '        //~ foo.bar = baz;\n'
20130515 '    //~ } else FOO += 1;\n'
20130515 '    return Lino.GridStore.superclass.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '    \n'
20130515 'Lino.GridPanel = Ext.extend(Ext.grid.EditorGridPanel,Lino.MainPanel);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,Lino.PanelMixin);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 "  quick_search_text : '',\n"
20130515 '  is_searching : false,\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  clicksToEdit:2,\n'
20130515 '  enableColLock: false,\n'
20130515 '  autoHeight: false,\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  preview_limit : undefined, \n'
20130515 '  //~ loadMask: true,\n'
20130515 '  //~ viewConfig: {\n'
20130515 '          //~ getRowClass: Lino.getRowClass,\n'
20130515 '          //~ emptyText:"$_(\'No data to display.\')"\n'
20130515 '        //~ },\n'
20130515 '  loadMask: {msg:"Please wait..."},\n'
20130515 '  \n'
20130515 '  constructor : function(config){\n'
20130515 '\n'
20130515 '    config.plugins = [new Lino.GridFilters()];\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ console.log("20111206 install refresh");\n'
20130515 "        //~ this.containing_window.on('show',this.refresh,this);\n"
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    //~ return this.store.getCount() > 0; \n'
20130515 '    return !this.loadMask.disabled; \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_config_containing_window : function(wincfg) { \n'
20130515 '      //~ temporarily remove save_grid_config button (see /blog(2012/1107)\n'
20130515 '      if (wincfg.tools != undefined) \n'
20130515 '        wincfg.tools = [\n'
20130515 '          //~ {handler:this.save_grid_data,\n'
20130515 '            //~ qtip:"$_("Save Grid Data")",\n'
20130515 '            //~ scope:this, id:"save_data"}, // 20120814\n'
20130515 '          {handler:this.save_grid_config,\n'
20130515 '            qtip:"Save Grid Configuration",\n'
20130515 '            scope:this, id:"save"}\n'
20130515 '        ].concat(wincfg.tools);\n'
20130515 '      //~ wincfg.listeners = { show: ... };\n'
20130515 '  },\n'
20130515 '  init_containing_window : function(win) { \n'
20130515 '    //~ console.log("20111206 install refresh");\n'
20130515 "    //~ win.on('show',this.refresh,this);\n"
20130515 '  },\n'
20130515 '  \n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    /* \n'
20130515 '    Problem 20111206:\n'
20130515 "    When a GridPanel is the main item of the window, then it doesn't \n"
20130515 "    have it's own header but uses the window's header bar.\n"
20130515 '    We must do this in initComponent because e.g. in beforerender \n'
20130515 "    it's already to late: a header element has been created because \n"
20130515 '    there was a title.\n'
20130515 '    But Lino.Window adds itself as `this.containing_window` \n'
20130515 '    only after the GridPanel has been initialized.\n'
20130515 '    Workaround is to generate a line "params.containing_window = true;" \n'
20130515 '    in the handler function.\n'
20130515 '    */ \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '    if (this.is_main_window) {\n'
20130515 "        //~ console.log(20111206, 'delete title',this.title,'from',this);\n"
20130515 '        //~ delete this.title;\n'
20130515 '        this.tools = undefined;  \n'
20130515 '        this.title = undefined;  /* simply deleting it \n'
20130515 "          isn't enough because that would only \n"
20130515 '          unhide the title defined in some base class. */\n'
20130515 '    } \n'
20130515 "    //~ else console.log(20111206, 'dont delete title',this.title,'from',this);\n"
20130515 '    \n'
20130515 '    /* e.g. when slave gridwindow called from a permalink */\n'
20130515 '    //~ if (this.base_params) Ext.apply(bp,this.base_params);  \n'
20130515 "    //~ bp['fmt'] = 'json';\n"
20130515 '    \n'
20130515 '    //~ function on_proxy_write( proxy, action,data, response,rs,options) {\n'
20130515 "      //~ console.log('20120814 on_proxy_write',action,data,response)\n"
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '    //~ }\n'
20130515 '    //~ function on_proxy_load( proxy, transactionObject, callbackOptions ) {\n'
20130515 "      //~ console.log('on_proxy_load',transactionObject)\n"
20130515 '    //~ }\n'
20130515 '    var proxy = new Ext.data.HttpProxy({ \n'
20130515 '      // 20120814 \n'
20130515 "      url: '/api' + this.ls_url\n"
20130515 '      ,method: "GET"\n'
20130515 "      //~ ,url: ADMIN_URL + '/restful' + this.ls_url\n"
20130515 '      //~ ,restful: true \n'
20130515 '      //~ ,listeners: {load:on_proxy_load} \n'
20130515 '      //~ ,listeners: {write:on_proxy_write} \n'
20130515 '    });\n'
20130515 '    //~ config.store = new Ext.data.JsonStore({ \n'
20130515 '    //~ this.store = new Ext.data.ArrayStore({ \n'
20130515 '    this.store = new Lino.GridStore({ \n'
20130515 '      grid_panel: this\n'
20130515 '      ,listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,remoteSort: true\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      //~ ,id: "id" \n'
20130515 '      ,proxy: proxy\n'
20130515 '      //~ autoLoad: this.containing_window ? true : false\n'
20130515 '      ,idIndex: this.pk_index\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,fields: this.ls_store_fields\n'
20130515 '      ,idProperty: this.ls_id_property \n'
20130515 '      // 20120814\n'
20130515 '      //~ ,writer : new Ext.data.JsonWriter({\n'
20130515 '        //~ writeAllFields: false\n'
20130515 '        //~ ,listful: true\n'
20130515 '      //~ })\n'
20130515 '      //~ ,restful : true\n'
20130515 '    });\n'
20130515 '      \n'
20130515 "    //~ console.log('config.pk_index',config.pk_index,config.store),\n"
20130515 '    delete this.ls_store_fields;\n'
20130515 '      \n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var grid = this;\n'
20130515 "    this.store.on('load', function() {\n"
20130515 "        //~ console.log('20120814 GridStore.on(load)',this_.store);\n"
20130515 '        //~ var da = this_.store.reader.arrayData.disabled_actions;\n'
20130515 '        //~ if (da) {\n'
20130515 '            //~ this.cmenu.cascade(function(item){ \n'
20130515 '              //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '              //~ if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '            //~ });\n'
20130515 '        //~ };\n'
20130515 '        this_.set_param_values(this_.store.reader.arrayData.param_values);\n'
20130515 '        //~ this_.set_status(this_.store.reader.arrayData.status);\n'
20130515 '        //~ 20120918\n'
20130515 '        if (this_.store.reader.arrayData.no_data_text) {\n'
20130515 '            //~ this.viewConfig.emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().refresh();\n'
20130515 '        }\n'
20130515 '        if (this_.containing_window)\n'
20130515 '            this_.set_window_title(this_.store.reader.arrayData.title);\n'
20130515 '            //~ this_.containing_window.setTitle(this_.store.reader.arrayData.title);\n'
20130515 '        if (!this.is_searching) { // disabled 20121025: quick_search_field may not lose focus\n'
20130515 '          this.is_searching = false;\n'
20130515 '          if (this_.selModel.getSelectedCell){\n'
20130515 '              if (this_.getStore().getCount()) // there may be no data\n'
20130515 '                  this_.selModel.select(0,0); \n'
20130515 '          } else {\n'
20130515 '              this_.selModel.selectFirstRow();\n'
20130515 '              this_.getView().focusEl.focus();\n'
20130515 '          }\n'
20130515 '        } \n'
20130515 '        //~ else console.log("is_searching -> no focussing");\n'
20130515 '        //~ var t = this.getTopToolbar();\n'
20130515 '        //~ var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '        //~ this.quick_search_field.focus(); // 20121024\n'
20130515 '      }, this\n'
20130515 '    );\n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar, this.cmenu = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ this.cmenu = new Ext.menu.Menu({items: config.bbar});\n'
20130515 '    delete this.ls_bbar_actions\n'
20130515 '    if (actions) {\n'
20130515 '        this.cmenu = actions.cmenu;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (!this.hide_top_toolbar) {  \n'
20130515 '      var tbar = [ \n'
20130515 '        this.quick_search_field = new Ext.form.TextField({ \n'
20130515 '          //~ fieldLabel: "Search"\n'
20130515 '          listeners: { \n'
20130515 '            scope:this_\n'
20130515 '            //~ ,change:this_.search_change\n'
20130515 '            \n'
20130515 '            ,render: Lino.quicktip_renderer("Quick Search","Enter a text to use as quick search filter")\n'
20130515 '            \n'
20130515 '            //~ ,keypress: this.search_keypress \n'
20130515 '            ,blur: function() { this.is_searching = false}\n'
20130515 '          }\n'
20130515 '          ,validator:function(value) { return this_.search_validate(value) }\n'
20130515 '          //~ ,tooltip: "Enter a quick search text, then press TAB"\n'
20130515 '          //~ value: text\n'
20130515 '          //~ scope:this, \n'
20130515 '          //~ ,enableKeyEvents: true\n'
20130515 '          //~ listeners: { keypress: this.search_keypress }, \n'
20130515 '          //~ id: "seachString" \n'
20130515 '      })];\n'
20130515 '      tbar = this.add_params_panel(tbar);\n'
20130515 '      tbar = tbar.concat([\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[csv]", \n'
20130515 '          tooltip: "Export this table to a .csv file", \n'
20130515 "          iconCls: 'x-tbar-csv',\n"
20130515 '          handler: function() { \n'
20130515 '            //~ 20130116 var p = Ext.apply({},this.get_base_params());\n'
20130515 "            //~ 20130116 p.fmt = 'csv';\n"
20130515 '            //~ url += "?" + Ext.urlEncode(p);\n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "csv";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            \n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        //~ { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          //~ handler: function() { \n'
20130515 '            //~ var p = this.get_current_grid_config();\n'
20130515 '            //~ Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PRINTER";\n'
20130515 '            //~ this.add_param_values(p);\n'
20130515 '            //~ window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          //~ } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          tooltip: "Show this table in plain html", \n'
20130515 "          iconCls: 'x-tbar-html',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ since 20121226 p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PLAIN";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            //~ since 20121226 window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '            window.open(\'/plain\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[pdf]", \n'
20130515 '          tooltip: "Show this table as a pdf document", \n'
20130515 "          iconCls: 'x-tbar-pdf',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "pdf";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } }\n'
20130515 '      ]);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      var menu = [];\n'
20130515 '      var set_gc = function(index) {\n'
20130515 '        return function() {\n'
20130515 "          //~ console.log('set_gc() 20100812');\n"
20130515 '          this.getColumnModel().setConfig(\n'
20130515 '              this.apply_grid_config(index,this.ls_grid_configs,this.ls_columns));\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      for (var i = 0; i < this.ls_grid_configs.length;i++) {\n'
20130515 '        var gc = this.ls_grid_configs[i];\n'
20130515 '        menu.push({text:gc.label,handler:set_gc(i),scope:this})\n'
20130515 '      }\n'
20130515 '      if(menu.length > 1) {\n'
20130515 '        tbar = tbar.concat([\n'
20130515 '          { text:"View",\n'
20130515 '            menu: menu,\n'
20130515 '            tooltip:"Select another view of this report"\n'
20130515 '          }\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      if (actions) {\n'
20130515 '        tbar = tbar.concat(actions.bbar);\n'
20130515 '          //~ this.bbar = actions.bbar;\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      this.tbar = new Ext.PagingToolbar({ \n'
20130515 '        store: this.store, \n'
20130515 '        prependButtons: true, \n'
20130515 '        //~ pageSize: this.page_length, \n'
20130515 '        pageSize: 1, \n'
20130515 '        displayInfo: true, \n'
20130515 '        beforePageText: "Page",\n'
20130515 '        afterPageText: "of {0}",\n'
20130515 '        displayMsg: "Displaying {0} - {1} of {2}",\n'
20130515 '        firstText: "Premi\xc3\xa8re page",\n'
20130515 '        lastText: "Derni\xc3\xa8re page",\n'
20130515 '        prevText: "Page pr\xc3\xa9c\xc3\xa9dente",\n'
20130515 '        nextText: "Page suivante",\n'
20130515 '        items: tbar\n'
20130515 '      });\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ var ps = this.calculatePageSize();\n'
20130515 '          //~ if (ps && ps != this.getTopToolbar().pageSize) {\n'
20130515 "              //~ // console.log('20120203 resize : pageSize',this.getTopToolbar().pageSize,'->',ps);\n"
20130515 '              //~ // this.getTopToolbar().pageSize =  ps;\n'
20130515 '              //~ cmp.refresh();\n'
20130515 '              //~ // this.getTopToolbar().doRefresh();\n'
20130515 '          //~ }\n'
20130515 '        //~ }, this);\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ cmp.getTopToolbar().pageSize = this.calculatePageSize(aw,ah,rw,rh) || 10;\n'
20130515 '          //~ cmp.refresh();\n'
20130515 '        //~ }, this, {delay:500});\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ delete this.page_length\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      \n'
20130515 '    if (this.ls_quick_edit) {\n'
20130515 '      this.selModel = new Ext.grid.CellSelectionModel()\n'
20130515 '      this.get_selected = function() {\n'
20130515 '        //~ console.log(this.getSelectionModel().selection);\n'
20130515 '        if (this.selModel.selection)\n'
20130515 '            return [ this.selModel.selection.record ];\n'
20130515 '        return [this.store.getAt(0)];\n'
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        if (this.getSelectionModel().selection) \n'
20130515 '          return this.selModel.selection.record;\n'
20130515 '        return this.store.getAt(0);\n'
20130515 '      };\n'
20130515 '    } else { \n'
20130515 '      this.selModel = new Ext.grid.RowSelectionModel() \n'
20130515 '      this.get_selected = function() {\n'
20130515 '        var sels = this.selModel.getSelections();\n'
20130515 '        if (sels.length == 0) sels = [this.store.getAt(0)];\n'
20130515 '        return sels\n'
20130515 '        //~ var sels = this.getSelectionModel().getSelections();\n'
20130515 "        //~ return Ext.pluck(sels,'id');\n"
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        var rec = this.selModel.getSelected();\n'
20130515 '        if (rec == undefined) rec = this.store.getAt(0);\n'
20130515 '        return rec\n'
20130515 '      };\n'
20130515 '    };\n'
20130515 '    delete this.ls_quick_edit;\n'
20130515 '    \n'
20130515 '    this.columns  = this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns);\n'
20130515 '    \n'
20130515 '    //~ var grid = this;\n'
20130515 '    //~ this.colModel = new Ext.grid.ColumnModel({\n'
20130515 '      //~ columns: this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns),\n'
20130515 '      //~ isCellEditable: function(col, row) {\n'
20130515 '        //~ var record = grid.store.getAt(row);\n'
20130515 "        //~ console.log('20120514',col,record); // dataIndex\n"
20130515 '        //~ var dataIndex = grid.colModel.getDataIndex(col);\n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("$_("This field is disabled")");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        //~ return Ext.grid.ColumnModel.prototype.isCellEditable.call(this, col, row);\n'
20130515 '      //~ }\n'
20130515 '    //~ });    \n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) \n'
20130515 "        //~ this.on('afterlayout', this.refresh, this);\n"
20130515 "        //~ this.on('afterrender', this.refresh,this);\n"
20130515 '    //~ else\n'
20130515 "        //~ this.on('show', this.refresh,this);\n"
20130515 "    //~ this.on('afterlayout', function() {\n"
20130515 '      //~ if (this.id == "ext-comp-1157") \n'
20130515 '        //~ console.log("20120213 afterlayout",this); \n'
20130515 '      //~ // this.refresh();\n'
20130515 '      //~ },this);\n'
20130515 "    //~ this.on('afterrender', this.refresh);\n"
20130515 "    //~ this.on('resize', this.refresh,this,{delay:500});\n"
20130515 '    //~ this.on(\'resize\', function(){console.log("20120213 resize",arguments)},this);\n'
20130515 "    this.on('resize', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments)\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('viewready', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments);\n'
20130515 '      this.view_is_ready = true;\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('afteredit', this.on_afteredit); // 20120814\n"
20130515 "    //~ this.on('afteredit', this.new_on_afteredit);\n"
20130515 "    this.on('beforeedit', this.on_beforeedit);\n"
20130515 "    this.on('beforeedit',function(e) { this.before_row_edit(e.record)},this);\n"
20130515 "    this.on('cellcontextmenu', Lino.cell_context_menu, this);\n"
20130515 "    //~ this.on('contextmenu', Lino.grid_context_menu, this);\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ if (this.id == "ext-comp-1157") captureEvents(this);    \n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ onResize : function(){\n'
20130515 '      //~ console.log("20120206 GridPanel.onResize",arguments);\n'
20130515 '      //~ Lino.GridPanel.superclass.onResize.apply(this, arguments);\n'
20130515 '      //~ this.refresh();\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '    var st = { base_params : this.get_base_params()};\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '        st.current_page = this.getTopToolbar().current;\n'
20130515 '    }\n'
20130515 '    st.param_values = this.status_param_values;\n'
20130515 '    //~ console.log("20120213 GridPanel.get_status",st);\n'
20130515 '    return st;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.GridPanel.set_status() \n'
20130515 '  */\n'
20130515 '  set_status : function(status){\n'
20130515 '    //~ console.log("20120918 GridPanel.set_status",status);\n'
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) { \n'
20130515 '      this.set_base_params(status.base_params);\n'
20130515 '    }\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '      //~ console.log("20120213 GridPanel.getTopToolbar().changePage",\n'
20130515 '          //~ status.current_page || 1);\n'
20130515 '      this.getTopToolbar().changePage(status.current_page || 1);\n'
20130515 '    }\n'
20130515 "    //~ this.fireEvent('resize');\n"
20130515 '    //~ this.refresh.defer(100,this); \n'
20130515 '    //~ this.onResize.defer(100,this); \n'
20130515 '    //~ this.refresh(); \n'
20130515 '    //~ this.doLayout(); \n'
20130515 '    //~ this.onResize(); \n'
20130515 '    //~ this.store.load();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '    this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ Lino.notify('20120204 Lino.GridPanel.refresh');\n"
20130515 "    //~ Lino.notify('Lino.GridPanel.refresh '+this.store.proxy.url);\n"
20130515 "    //~ var bp = { fmt:'json' }\n"
20130515 '    if (this.containing_panel) {\n'
20130515 '        //~ Ext.apply(p,this.master_panel.get_master_params());\n'
20130515 '        //~ Ext.apply(options.params,this.containing_panel.get_master_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (! this.view_is_ready) return;\n'
20130515 '    \n'
20130515 '    var options = {};\n'
20130515 '    if (after) {\n'
20130515 '        options.callback = function(r,options,success) {if(success) after()}\n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    //~ if (!this.rendered) {\n'
20130515 '        //~ console.log("20120206 GridPanel.refresh() must wait until rendered",options);\n'
20130515 "        //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    this.store.load(options);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* pageSize depends on grid height (Trying to remove scrollbar)\n'
20130515 '  Thanks to \n'
20130515 '  - Christophe Badoit on http://www.sencha.com/forum/showthread.php?82647\n'
20130515 '  - http://www.sencha.com/forum/archive/index.php/t-37231.html\n'
20130515 '  */\n'
20130515 '  calculatePageSize : function(second_attempt) {\n'
20130515 '    //~ if (!this.rendered) { \n'
20130515 '    if (!this.view_is_ready) { \n'
20130515 "      //~ console.log('Cannot calculatePageSize() : not rendered');\n"
20130515 '      return false; }\n'
20130515 '    //~ if (!this.isVisible()) { \n'
20130515 "      //~ console.log('calculatePageSize : not visible');\n"
20130515 '      //~ return false; }\n'
20130515 '      \n'
20130515 "    //~ console.log('getFrameHeight() is',this.getFrameHeight());\n"
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('mainBody.getHeight() is',this.getView().mainBody.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() is',this.getInnerHeight());\n"
20130515 "    //~ console.log('getHeight() is',this.getHeight());\n"
20130515 "    //~ console.log('el.getHeight() is',this.getEl().getHeight());\n"
20130515 "    //~ console.log('getGridEl().getHeight() is',this.getGridEl().getHeight());\n"
20130515 "    //~ console.log('getOuterSize().height is',this.getOuterSize().height);\n"
20130515 "    //~ console.log('getBox().height is',this.getBox().height);\n"
20130515 "    //~ console.log('getResizeEl.getHeight() is',this.getResizeEl().getHeight());\n"
20130515 "    //~ console.log('getLayoutTarget().getHeight() is',this.getLayoutTarget().getHeight());\n"
20130515 '      \n'
20130515 '    var rowHeight = this.getFrameHeight();\n'
20130515 '    //~ var rowHeight = 52; // experimental value\n'
20130515 '    var row = this.view.getRow(0);\n'
20130515 '    if (row) {\n'
20130515 "      //~ console.log('20120213 yes');\n"
20130515 '      rowHeight = Ext.get(row).getHeight();\n'
20130515 '    }\n'
20130515 "    //~ console.log('rowHeight is ',rowHeight,this,caller);\n"
20130515 '    //~ this.getView().syncScroll();\n'
20130515 '    //~ this.getView().initTemplates();\n'
20130515 '    var height = this.getView().scroller.getHeight();\n'
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() - getFrameHeight() is',\n"
20130515 "      //~ this.getInnerHeight(), '-',\n"
20130515 "      //~ this.getFrameHeight(), '=',\n"
20130515 '      //~ this.getInnerHeight() - this.getFrameHeight());\n'
20130515 '    //~ var height = this.getView().mainBody.getHeight();\n'
20130515 '    //~ var height = this.getView().mainWrap.getHeight();\n'
20130515 '    //~ var height = this.getView().resizeMarker.getHeight();\n'
20130515 '    //~ this.syncSize();\n'
20130515 '    //~ var height = this.getInnerHeight() - this.getFrameHeight();\n'
20130515 '    //~ var height = this.getHeight() - this.getFrameHeight();\n'
20130515 '    height -= Ext.getScrollBarWidth(); // leave room for a possible horizontal scrollbar... \n'
20130515 '    //~ height -= this.getView().scrollOffset;\n'
20130515 '    var ps = Math.floor(height / rowHeight);\n'
20130515 "    //~ console.log('20120203 calculatePageSize():',height,'/',rowHeight,'->',ps);\n"
20130515 '    ps -= 1; // leave room for a possible phantom row\n'
20130515 '    //~ return (ps > 1 ? ps : false);\n'
20130515 '    if (ps > 1) return ps;\n'
20130515 "    //~ console.log('calculatePageSize() found less than 1 row:',height,'/',rowHeight,'->',ps);\n"
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    return 5; // preview_limit\n'
20130515 '    //~ if (second_attempt) {\n'
20130515 "        //~ console.log('calculatePageSize() abandons after second attempt:',\n"
20130515 "          //~ height,'/',rowHeight,'->',ps);\n"
20130515 '      //~ return 5;\n'
20130515 '    //~ }\n'
20130515 '    //~ return this.calculatePageSize.defer(500,this,[true]);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  onCellDblClick : function(grid, row, col){\n'
20130515 '      //~ console.log("20120307 onCellDblClick",this,grid, row, col);\n'
20130515 '      if (this.ls_detail_handler) {\n'
20130515 "          //~ Lino.notify('show detail');\n"
20130515 '          Lino.show_detail(this);\n'
20130515 '          return false;\n'
20130515 '      }else{\n'
20130515 "        //~ console.log('startEditing');\n"
20130515 '        this.startEditing(row,col);\n'
20130515 '      }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_base_params : function() {\n'
20130515 '    //~ return this.containing_window.config.base_params;\n'
20130515 '    //~ console.log(20120717,this.store.baseParams);\n'
20130515 '    var p = Ext.apply({},this.store.baseParams);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    //~ console.log("20120717 GRidPanel.get_base_params() returns",p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.store.baseParams;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 "    //~ console.log('GridPanel.set_base_params',p)\n"
20130515 '    for (k in p) this.store.setBaseParam(k,p[k]);\n'
20130515 '    //~ this.store.baseParams = p;\n'
20130515 '    if (p.query) \n'
20130515 '        this.quick_search_field.setValue(p.query);\n'
20130515 '    //~ if (p.param_values) \n'
20130515 '        //~ this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.store.baseParams = {};\n'
20130515 '      Lino.insert_subst_user(this.store.baseParams);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.store.setBaseParam(k,v);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ get_permalink_params : function() {\n'
20130515 '    //~ var p = {};\n'
20130515 '    //~ return p;\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '    \n'
20130515 '  //~ search_keypress : function(){\n'
20130515 '    //~ console.log("2012124 search_keypress",arguments);\n'
20130515 '  //~ },\n'
20130515 '  search_validate : function(value) {\n'
20130515 '    if (value == this.quick_search_text) return true;\n'
20130515 '    this.is_searching = true;\n'
20130515 "    //~ console.log('search_validate',value)\n"
20130515 '    this.quick_search_text = value;\n'
20130515 "    this.set_base_param('query',value); \n"
20130515 '    //~ this.getTopToolbar().changePage(1);\n'
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '    return true;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  apply_grid_config : function(index,grid_configs,rpt_columns) {\n'
20130515 '    //~ var rpt_columns = this.ls_columns;\n'
20130515 '    var gc = grid_configs[index];    \n'
20130515 "    //~ console.log('apply_grid_config() 20100812',name,gc);\n"
20130515 '    this.gc_name = index;\n'
20130515 '    if (gc == undefined) {\n'
20130515 '      return rpt_columns;\n'
20130515 '      //~ config.columns = config.ls_columns;\n'
20130515 '      //~ return;\n'
20130515 '    } \n'
20130515 '    //~ delete config.ls_filters\n'
20130515 '    \n'
20130515 '    //~ console.log(20100805,config.ls_columns);\n'
20130515 '    var columns = Array(gc.columns.length);\n'
20130515 '    for (var j = 0; j < rpt_columns.length;j++) {\n'
20130515 '      var col = rpt_columns[j];\n'
20130515 '      for (var i = 0; i < gc.columns.length; i++) {\n'
20130515 '        if (col.dataIndex == gc.ci[i]) {\n'
20130515 '          col.width = gc.cw[i];\n'
20130515 '          col.hidden = gc.ch[i];\n'
20130515 '          columns[i] = col;\n'
20130515 '          break;\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ var columns = Array(rpt_columns.length);\n'
20130515 '    //~ for (var i = 0; i < rpt_columns.length; i++) {\n'
20130515 '      //~ columns[i] = rpt_columns[gc.columns[i]];\n'
20130515 '      //~ columns[i].width = gc.widths[i];\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    //~ if (gc.hidden_cols) {\n'
20130515 '      //~ for (var i = 0; i < gc.hidden_cols.length; i++) {\n'
20130515 '        //~ var hc = gc.hidden_cols[i];\n'
20130515 '        //~ for (var j = 0; j < columns.length;j++) {\n'
20130515 '          //~ var col = columns[j];\n'
20130515 '          //~ if (col.dataIndex == hc) {\n'
20130515 '            //~ col.hidden = true;\n'
20130515 '            //~ break\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '    if (gc.filters) {\n'
20130515 "      //~ console.log(20100811,'config.ls_filters',config.ls_filters);\n"
20130515 "      //~ console.log(20100811,'config.ls_grid_config.filters',config.ls_grid_config.filters);\n"
20130515 '      for (var i = 0; i < gc.filters.length; i++) {\n'
20130515 '        var fv = gc.filters[i];\n'
20130515 '        for (var j = 0; j < columns.length;j++) {\n'
20130515 '          var col = columns[j];\n'
20130515 '          if (col.dataIndex == fv.field) {\n'
20130515 "            //~ console.log(20100811, f,' == ',fv);\n"
20130515 "            if (fv.type == 'string') {\n"
20130515 '              col.filter.value = fv.value;\n'
20130515 '              //~ if (fv.comparison !== undefined) f.comparison = fv.comparison;\n'
20130515 '            } else {\n'
20130515 '              //~ console.log(20100811, fv);\n'
20130515 '              col.filter.value = {};\n'
20130515 '              col.filter.value[fv.comparison] = fv.value;\n'
20130515 '            }\n'
20130515 '            break;\n'
20130515 '          }\n'
20130515 '        };\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    return columns;\n'
20130515 '    //~ config.columns = cols;\n'
20130515 '    //~ delete config.ls_columns\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_current_grid_config : function () {\n'
20130515 '    var cm = this.getColumnModel();\n'
20130515 '    var widths = Array(cm.config.length);\n'
20130515 '    var hiddens = Array(cm.config.length);\n'
20130515 '    //~ var hiddens = Array(cm.config.length);\n'
20130515 '    var columns = Array(cm.config.length);\n'
20130515 '    //~ var columns = Array(cm.config.length);\n'
20130515 '    //~ var hidden_cols = [];\n'
20130515 '    //~ var filters = this.filters.getFilterValues();\n'
20130515 '    var p = this.filters.buildQuery(this.filters.getFilterData())\n'
20130515 '    for (var i = 0; i < cm.config.length; i++) {\n'
20130515 '      var col = cm.config[i];\n'
20130515 '      columns[i] = col.dataIndex;\n'
20130515 '      //~ hiddens[i] = col.hidden;\n'
20130515 '      widths[i] = col.width;\n'
20130515 '      hiddens[i] = col.hidden;\n'
20130515 '      //~ if (col.hidden) hidden_cols.push(col.dataIndex);\n'
20130515 '    }\n'
20130515 "    //~ p['hidden_cols'] = hidden_cols;\n"
20130515 '    p.cw = widths;\n'
20130515 '    p.ch = hiddens;\n'
20130515 '    p.ci = columns;\n'
20130515 "    //~ p['widths'] = widths;\n"
20130515 "    //~ p['hiddens'] = hiddens;\n"
20130515 "    //~ p['columns'] = columns;\n"
20130515 "    p['name'] = this.gc_name;\n"
20130515 '    //~ var gc = this.ls_grid_configs[this.gc_name];\n'
20130515 '    //~ if (gc !== undefined) \n'
20130515 "        //~ p['label'] = gc.label\n"
20130515 "    //~ console.log('20100810 save_grid_config',p);\n"
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_manage_grid_configs : function() {\n'
20130515 '    var data = [];\n'
20130515 '    for (k in this.ls_grid_configs) {\n'
20130515 '      var v = this.ls_grid_configs[k];\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i)\n'
20130515 '    }\n'
20130515 '    if (this.ls_grid_configs[this.gc_name] == undefined) {\n'
20130515 '      var v = this.get_current_grid_config();\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i);\n'
20130515 '    }\n'
20130515 '    //~ console.log(20100811, data);\n'
20130515 '    var main = new Ext.grid.GridPanel({\n'
20130515 '      store: new Ext.data.ArrayStore({\n'
20130515 '        idIndex:0,\n'
20130515 "        fields:['name','columns','hidden_cols','filters'],\n"
20130515 '        autoDestroy:true,\n'
20130515 '        data: data}),\n'
20130515 '      //~ autoHeight:true,\n'
20130515 '      selModel: new Ext.grid.RowSelectionModel(),\n'
20130515 '      listeners: { \n'
20130515 '        rowdblclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row doubleclicked',grid, rowIndex,e);\n"
20130515 '        },\n'
20130515 '        rowclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row clicked',grid, rowIndex,e);\n"
20130515 '        }\n'
20130515 '      },\n'
20130515 '      columns: [ \n'
20130515 "        {dataIndex:'name',header:'Name'}, \n"
20130515 "        {dataIndex:'columns',header:'columns'}, \n"
20130515 "        {dataIndex:'hidden_cols',header:'hidden columns'}, \n"
20130515 "        {dataIndex:'filters',header:'filters'} \n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 "    var win = new Ext.Window({title:'GridConfigs Manager',layout:'fit',items:main,height:200});\n"
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_edit_grid_config : function(name) {\n'
20130515 '    gc = this.ls_grid_configs[name];\n'
20130515 '    var win = new Ext.Window({\n'
20130515 "      title:'Edit Grid Config',layout:'vbox', \n"
20130515 "      //~ layoutConfig:'stretch'\n"
20130515 '      items:[\n'
20130515 "        {xtype:'text', value: gc.name},\n"
20130515 "        {xtype:'text', value: gc.columns},\n"
20130515 "        {xtype:'text', value: gc.hidden_cols},\n"
20130515 "        {xtype:'text', value: gc.filters}\n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  save_grid_config : function () {\n'
20130515 "    //~ console.log('TODO: save_grid_config',this);\n"
20130515 "    //~ p.column_widths = Ext.pluck(this.colModel.columns,'width');\n"
20130515 '    var a = { \n'
20130515 '      params:this.get_current_grid_config(), \n'
20130515 "      method:'PUT',\n"
20130515 "      url:'/grid_config' + this.ls_url,\n"
20130515 '      success: Lino.action_handler(this),\n'
20130515 '      scope: this,\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    //~ Lino.do_action(this,a);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_beforeedit : function(e) {\n'
20130515 "    //~ console.log('20130128 GridPanel.on_beforeedit()',e,e.record.data.disable_editing);\n"
20130515 '    if(this.disable_editing | e.record.data.disable_editing) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This record is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    if(e.record.data.disabled_fields && e.record.data.disabled_fields[e.field]) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This field is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    //~ if (e.record.data.disabled_fields) {\n'
20130515 '      //~ for (i in e.record.data.disabled_fields) {\n'
20130515 '        //~ if(e.record.data.disabled_fields[i] == e.field) {\n'
20130515 '          //~ e.cancel = true;\n'
20130515 '          //~ Lino.notify(String.format(\'Field "{0}" is disabled for this record\',e.field));\n'
20130515 '          //~ return\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  save_grid_data : function() {\n'
20130515 '      //~ console.log("20120814 save_grid_data");\n'
20130515 '      this.getStore().commitChanges();\n'
20130515 '  },\n'
20130515 '  new_on_afteredit : function(e) {\n'
20130515 '      //~ this.getStore().commitChanges();\n'
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '      console.log("20120814 new_on_afteredit",e);\n'
20130515 '  },\n'
20130515 '  on_afteredit : function(e) {\n'
20130515 '    /*\n'
20130515 '    e.grid - The grid that fired the event\n'
20130515 '    e.record - The record being edited\n'
20130515 '    e.field - The field name being edited\n'
20130515 '    e.value - The value being set\n'
20130515 '    e.originalValue - The original value for the field, before the edit.\n'
20130515 '    e.row - The grid row index\n'
20130515 '    e.column - The grid column index\n'
20130515 '    */\n'
20130515 '    var p = {};\n'
20130515 "    //~ console.log('20101130 modified: ',e.record.modified);\n"
20130515 "    //~ console.log('20101130 value: ',e.value);\n"
20130515 '    //~ var p = e.record.getChanges();\n'
20130515 "    //~ console.log('20101130 getChanges: ',e.record.getChanges());\n"
20130515 '    //~ this.before_row_edit(e.record);\n'
20130515 '    for(k in e.record.getChanges()) {\n'
20130515 '        var v = e.record.get(k);\n'
20130515 '    //~ for(k in e.record.modified) {\n'
20130515 "        //~ console.log('20101130',k,'=',v);\n"
20130515 '        //~ var cm = e.grid.getColumnModel();\n'
20130515 '        //~ var di = cm.getDataIndex(k);\n'
20130515 '        var f = e.record.fields.get(k);\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 '        //~ var v = e.record.get(di);\n'
20130515 "        if (f.type.type == 'date') {\n"
20130515 '            p[k] = Ext.util.Format.date(v, f.dateFormat);\n'
20130515 '        }else{\n'
20130515 '            p[k] = v;\n'
20130515 "            var v = e.record.get(k+'Hidden');\n"
20130515 '            if (v !== undefined) {\n'
20130515 "              p[k+'Hidden'] = v;\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        //~ var i = cm.findColumnIndex(k);\n'
20130515 '        //~ var r = cm.getRenderer(i);\n'
20130515 '        //~ var editor = cm.getCellEditor(i,e.row);\n'
20130515 '        //~ var col = e.grid.getColumnModel().getColumnById(k);\n'
20130515 "        //~ console.log('20101130 r = ',r(v));\n"
20130515 '        //~ var f = e.record.fields[k];\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 "        //~ console.log('20101130 editor = ',editor);\n"
20130515 '        //~ p[k] = f.getValue();\n'
20130515 '        //~ p[k] = r(v);\n'
20130515 '    }\n'
20130515 "    //~ console.log('20101130 p:',p);\n"
20130515 '    //~ var cm = e.grid.getColumnModel();\n'
20130515 '    //~ var di = cm.getDataIndex(e.column);\n'
20130515 '    //~ var f = e.record.fields.get(di);\n'
20130515 "    //~ console.log('20101130 f = ',f);\n"
20130515 "    //~ if (f.type.type == 'date') e.record.set(di,Ext.util.Format.date(e.value, f.dateFormat));\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var p = e.record.data;\n'
20130515 '    \n'
20130515 '    // var p = {};\n'
20130515 "    //~ p['grid_afteredit_colname'] = e.field;\n"
20130515 '    //~ p[e.field] = e.value;\n'
20130515 "    //~ console.log('20100723 GridPanel.on_afteredit()',e);\n"
20130515 '    // add value used by ForeignKeyStoreField CHOICES_HIDDEN_SUFFIX\n'
20130515 '    // not sure whether this is still needed:\n'
20130515 "    p[e.field+'Hidden'] = e.value;\n"
20130515 '    //~ p.su = Lino.subst_user;\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    // this one is needed so that this field can serve as choice context:\n'
20130515 "    e.record.data[e.field+'Hidden'] = e.value;\n"
20130515 '    // p[pk] = e.record.data[pk];\n'
20130515 '    // console.log("grid_afteredit:",e.field,\'=\',e.value);\n'
20130515 '    Ext.apply(p,this.get_base_params()); // needed for POST, ignored for PUT\n'
20130515 '    //~ Ext.apply(p,this.containing_window.config.base_params);\n'
20130515 "    //~ 20121109 p['$ext_requests.URL_PARAM_ACTION_NAME'] = 'grid';\n"
20130515 '    var self = this;\n'
20130515 '    var req = {\n'
20130515 '        params:p,\n'
20130515 "        waitMsg: 'Saving your data...',\n"
20130515 '        success: Lino.action_handler( this, function(result) {\n'
20130515 '          //~ if (result.data_record) {\n'
20130515 '          if (result.refresh_all) {\n'
20130515 '              var cw = self.get_containing_window();\n'
20130515 '              if (cw) {\n'
20130515 '                  cw.main_item.refresh();\n'
20130515 '              }\n'
20130515 '              else console.log("20120123 cannot refresh_all",self);\n'
20130515 '          } else if (result.rows) {\n'
20130515 '              //~ self.getStore().loadData(result,true);\n'
20130515 '              var r = self.getStore().reader.readRecords(result);\n'
20130515 '              if (e.record.phantom) {\n'
20130515 '                  //~ console.log("20120816 afteredit.success POST",r);\n'
20130515 '                  self.getStore().insert(e.row,r.records);\n'
20130515 '              }else{\n'
20130515 '                  //~ console.log("20120816 afteredit.success PUT",r);\n'
20130515 '                  self.getStore().doUpdate(r.records[0]);\n'
20130515 '              }\n'
20130515 '              self.getStore().rejectChanges(); /* \n'
20130515 '              get rid of the red triangles without saving the record again\n'
20130515 '              */\n'
20130515 '              //~ self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '          } else {\n'
20130515 '              self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '              self.getStore().reload();        // reload our datastore.\n'
20130515 '          }\n'
20130515 '          }),\n'
20130515 '        scope: this,\n'
20130515 '        failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    if (e.record.phantom) {\n'
20130515 "      req.params.an = 'post'; // SubmitInsert.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'POST',\n"
20130515 "        url: '/api' + this.ls_url\n"
20130515 '      });\n'
20130515 '    } else {\n'
20130515 "      req.params.an = 'put'; // SubmitDetail.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'PUT',\n"
20130515 "        url: '/api' + this.ls_url + '/' + e.record.id\n"
20130515 '      });\n'
20130515 '    }\n'
20130515 "    //~ console.log('20110406 on_afteredit',req);\n"
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(req);\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  afterRender : function() {\n'
20130515 '    Lino.GridPanel.superclass.afterRender.call(this);\n'
20130515 '    // this.getView().mainBody.focus();\n'
20130515 '    // console.log(20100114,this.getView().getRows());\n'
20130515 '    // if (this.getView().getRows().length > 0) {\n'
20130515 '    //  this.getView().focusRow(1);\n'
20130515 '    // }\n'
20130515 '    //~ this.my_load_mask = new Ext.LoadMask(this.getEl(), {\n'
20130515 '        //~ msg:\'$_("Please wait...")\',\n'
20130515 '        //~ store:this.store});\n'
20130515 '      \n'
20130515 '    var tbar = this.getTopToolbar();\n'
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 "    // tbar.on('change',function() {this.getSelectionModel().selectFirstRow();this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 '    this.nav = new Ext.KeyNav(this.getEl(),{\n'
20130515 '      pageUp: function() {tbar.movePrevious(); },\n'
20130515 '      pageDown: function() {tbar.moveNext(); },\n'
20130515 '      home: function() {tbar.moveFirst(); },\n'
20130515 '      end: function() {tbar.moveLast(); },\n'
20130515 '      scope: this\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  after_delete : function() {\n'
20130515 "    //~ console.log('Lino.GridPanel.after_delete');\n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  add_row_listener : function(fn,scope) {\n'
20130515 "    this.getSelectionModel().addListener('rowselect',fn,scope);\n"
20130515 '  },\n'
20130515 '  postEditValue : function(value, originalValue, r, field){\n'
20130515 '    value = Lino.GridPanel.superclass.postEditValue.call(this,value,originalValue,r,field);\n'
20130515 "    //~ console.log('GridPanel.postEdit()',value, originalValue, r, field);\n"
20130515 '    return value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_start_value : function(v) {\n'
20130515 '      this.start_value = v;\n'
20130515 '  },\n'
20130515 '  preEditValue : function(r, field){\n'
20130515 '      if (this.start_value) {\n'
20130515 '        var v = this.start_value;\n'
20130515 '        delete this.start_value;\n'
20130515 '        this.activeEditor.selectOnFocus = false;\n'
20130515 '        return v;\n'
20130515 '      }\n'
20130515 '      var value = r.data[field];\n'
20130515 '      return this.autoEncode && Ext.isString(value) ? Ext.util.Format.htmlDecode(value) : value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_master_changed : function() {\n'
20130515 '    //~ if (! this.enabled) return;\n'
20130515 '    //~ cmp = this;\n'
20130515 "    //~ console.log('Lino.GridPanel.on_master_changed()',this.title);\n"
20130515 '    if (! this.rendered) return; // 20120213\n'
20130515 '    var todo = function() {\n'
20130515 '      if (this.disabled) return;\n'
20130515 '      //~ if (this.disabled) return;\n'
20130515 '      //~ if (this.enabled) {\n'
20130515 '          //~ var src = caller.config.url_data + "/" + record.id + ".jpg"\n'
20130515 '          //~ console.log(20111125, this.containing_window);\n'
20130515 '          //~ for (k in p) this.getStore().setBaseParam(k,p[k]);\n'
20130515 "          //~ console.log('Lino.GridPanel.on_master_changed()',this.title,p);\n"
20130515 '          this.refresh();\n'
20130515 '          //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '          //~ this.getStore().load(); \n'
20130515 '      //~ }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '  \n'
20130515 '\n'
20130515 '//~ Lino.MainPanelMixin = {\n'
20130515 '  //~ tbar_items : function() {\n'
20130515 '      //~ return ;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.override(Lino.GridPanel,Lino.MainPanelMixin);\n'
20130515 '//~ Ext.override(Lino.FormPanel,Lino.MainPanelMixin);\n'
20130515 '\n'
20130515 '//~ Lino.grid_context_menu = function(e) {\n'
20130515 "  //~ console.log('contextmenu',arguments);\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.cell_context_menu = function(grid,row,col,e) {\n'
20130515 "  //~ console.log('20120531 cellcontextmenu',grid,row,col,e,grid.store.reader.arrayData.rows[row]);\n"
20130515 '  e.stopEvent();\n'
20130515 '  //~ grid.getView().focusCell(row,col);\n'
20130515 '  grid.getSelectionModel().select(row,col);\n'
20130515 '  //~ console.log(grid.store.getAt(row));\n'
20130515 '  //~ grid.getView().focusRow(row);\n'
20130515 '  //~ return;\n'
20130515 '  if(!grid.cmenu.el){grid.cmenu.render(); }\n'
20130515 '  //~ if(e.record.data.disabled_fields) {\n'
20130515 '  \n'
20130515 '  var da = grid.store.reader.arrayData.rows[row][grid.disabled_actions_index];\n'
20130515 '  if (da) {\n'
20130515 '      this.cmenu.cascade(function(item){ \n'
20130515 '        //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '        if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  \n'
20130515 '  var xy = e.getXY();\n'
20130515 '  xy[1] -= grid.cmenu.el.getHeight();\n'
20130515 '  grid.cmenu.showAt(xy);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.load_main_menu = function() {\n'
20130515 '  //~ Ext.Ajax.request({\n'
20130515 "    //~ waitMsg: 'Loading main menu...',\n"
20130515 "    //~ method: 'GET',\n"
20130515 "    //~ url: '/menu',\n"
20130515 '    //~ success: Lino.on_load_menu,\n'
20130515 '    //~ failure: Lino.ajax_error_handler\n'
20130515 '  //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.SlavePlugin = function(caller) {\n'
20130515 '  //~ this.caller = caller;\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.chooser_handler = function(combo,name) {\n'
20130515 '  return function(cmp,newValue,oldValue) {\n'
20130515 "    //~ console.log('Lino.chooser_handler()',cmp,oldValue,newValue);\n"
20130515 '    combo.setContextValue(name,newValue);\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ComboBox = Ext.extend(Ext.form.ComboBox,{\n'
20130515 '  forceSelection: true,\n'
20130515 "  triggerAction: 'all',\n"
20130515 '  minListWidth:230,\n'
20130515 '  autoSelect: false,\n'
20130515 '  selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  submitValue: true,\n'
20130515 "  displayField: 'text', // 'text', \n"
20130515 "  valueField: 'value', // 'value',\n"
20130515 '  \n'
20130515 '  //~ initComponent : Ext.form.ComboBox.prototype.initComponent.createSequence(function() {\n'
20130515 '  initComponent : function(){\n'
20130515 '      this.contextParams = {};\n'
20130515 '      //~ Ext.form.ComboBox.initComponent(this);\n'
20130515 '      Lino.ComboBox.superclass.initComponent.call(this);\n'
20130515 '  },\n'
20130515 '  setValue : function(v,record_data){\n'
20130515 '      /*\n'
20130515 '      Based on feature request developed in http://extjs.net/forum/showthread.php?t=75751\n'
20130515 '      */\n'
20130515 '      /* `record_data` is used to get the text corresponding to this value */\n'
20130515 "      //~ if(this.name == 'city') \n"
20130515 "      //~ console.log('20120203', this.name,'.setValue(', v ,') this=', this,'record_data=',record_data);\n"
20130515 '      var text = v;\n'
20130515 '      if(this.valueField){\n'
20130515 "        if(v == null || v == '') { \n"
20130515 "            //~ if (this.name == 'birth_country') \n"
20130515 "                //~ console.log(this.name,'.setValue',v,'no lookup needed, value is empty');\n"
20130515 '            //~ v = undefined;\n'
20130515 "            v = '';\n"
20130515 "            //~ text = '';\n"
20130515 '        } else if (Ext.isDefined(record_data)) {\n'
20130515 '          text = record_data[this.name];\n'
20130515 "          //~ if (this.name == 'birth_country') \n"
20130515 "            //~ console.log(this.name,'.setValue',v,'got text ',text,' from record ',record);\n"
20130515 '        } else {\n'
20130515 "          // if(this.mode == 'remote' && !Ext.isDefined(this.store.totalLength)){\n"
20130515 "          if(this.mode == 'remote' && ( this.lastQuery === null || (!Ext.isDefined(this.store.totalLength)))){\n"
20130515 "              //~ if (this.name == 'birth_country') console.log(this.name,'.setValue',v,'store not yet loaded');\n"
20130515 "              this.store.on('load', this.setValue.createDelegate(this, arguments), null, {single: true});\n"
20130515 '              if(this.store.lastOptions === null || this.lastQuery === null){\n'
20130515 '                  var params;\n'
20130515 '                  if(this.valueParam){\n'
20130515 '                      params = {};\n'
20130515 '                      params[this.valueParam] = v;\n'
20130515 '                  }else{\n'
20130515 '                      var q = this.allQuery;\n'
20130515 '                      this.lastQuery = q;\n'
20130515 '                      this.store.setBaseParam(this.queryParam, q);\n'
20130515 '                      params = this.getParams(q);\n'
20130515 '                  }\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : call load() with params ',params);\n"
20130515 '                  this.store.load({params: params});\n'
20130515 '              //~ }else{\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : but store is loading',this.store.lastOptions);\n"
20130515 '              }\n'
20130515 '              return;\n'
20130515 '          //~ }else{\n'
20130515 "              //~ if (this.name == 'birth_country') \n"
20130515 '                //~ console.log(this.name,\'.setValue\',v,\' : store is loaded, lastQuery is "\',this.lastQuery,\'"\');\n'
20130515 '          }\n'
20130515 '          var r = this.findRecord(this.valueField, v);\n'
20130515 '          if(r){\n'
20130515 '              text = r.data[this.displayField];\n'
20130515 '          }else if(this.valueNotFoundText !== undefined){\n'
20130515 '              text = this.valueNotFoundText;\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      this.lastSelectionText = text;\n'
20130515 '      //~ this.lastSelectionText = v;\n'
20130515 '      if(this.hiddenField){\n'
20130515 '          //~ this.hiddenField.originalValue = v;\n'
20130515 '          this.hiddenField.value = v;\n'
20130515 '      }\n'
20130515 '      Ext.form.ComboBox.superclass.setValue.call(this, text);\n'
20130515 '      this.value = v; // needed for grid.afteredit\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  getParams : function(q){\n'
20130515 '    // p = Ext.form.ComboBox.superclass.getParams.call(this, q);\n'
20130515 '    // causes "Ext.form.ComboBox.superclass.getParams is undefined"\n'
20130515 '    var p = {};\n'
20130515 '    //p[this.queryParam] = q;\n'
20130515 '    if(this.pageSize){\n'
20130515 '        //~ p.start = 0;\n'
20130515 '        //~ p.limit = this.pageSize;\n'
20130515 "        p['start'] = 0;\n"
20130515 "        p['limit'] = this.pageSize;\n"
20130515 '    }\n'
20130515 '    // now my code:\n'
20130515 '    if(this.contextParams) Ext.apply(p,this.contextParams);\n'
20130515 '    //~ if(this.contextParams && this.contextValues) {\n'
20130515 '      //~ for(i = 0; i <= this.contextParams.length; i++)\n'
20130515 '        //~ p[this.contextParams[i]] = this.contextValues[i];\n'
20130515 '    //~ }\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  setContextValue : function(name,value) {\n'
20130515 "    //~ console.log('setContextValue',this,this.name,':',name,'=',value);\n"
20130515 '    //~ if (this.contextValues === undefined) {\n'
20130515 '        //~ this.contextValues = Array(); // this.contextParams.length);\n'
20130515 '    //~ }\n'
20130515 '    if (this.contextParams[name] != value) {\n'
20130515 "      //~ console.log('setContextValue 1',this.contextParams);\n"
20130515 '      this.contextParams[name] = value;\n'
20130515 '      this.lastQuery = null;\n'
20130515 "      //~ console.log('setContextValue 2',this.contextParams);\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ChoicesFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'local'\n"
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  forceSelection: true,\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.SimpleRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value' ], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ComplexRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.ComplexRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value','text'], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.RemoteComboFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'remote',\n"
20130515 '  //~ forceSelection:false,\n'
20130515 '  minChars: 2, // default 4 is too much\n'
20130515 '  queryDelay: 300, // default 500 is maybe slow\n'
20130515 "  queryParam: 'query', \n"
20130515 '  //~ typeAhead: true,\n'
20130515 '  //~ selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  resizable: true\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Thanks to Animal for posting the basic idea:\n'
20130515 'http://www.sencha.com/forum/showthread.php?15842-2.0-SOLVED-Combobox-twintrigger-clear&p=76130&viewfull=1#post76130\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Lino.TwinCombo = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "    trigger2Class : 'x-form-search-trigger',\n"
20130515 "    //~ trigger2Class : 'x-tbar-detail',\n"
20130515 '    initComponent : function() {\n'
20130515 '        //~ Lino.TwinCombo.superclass.initComponent.call(this);\n'
20130515 '        Lino.ComboBox.prototype.initComponent.call(this);\n'
20130515 '        Ext.form.TwinTriggerField.prototype.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    onTrigger2Click : function() {\n'
20130515 "        //~ console.log('onTrigger2Click',this,arguments);\n"
20130515 '    }\n'
20130515 '  });\n'
20130515 '//~ Lino.TwinCombo.prototype.initComponent = Ext.form.TwinTriggerField.prototype.initComponent;\n'
20130515 'Lino.TwinCombo.prototype.getTrigger = Ext.form.TwinTriggerField.prototype.getTrigger;\n'
20130515 'Lino.TwinCombo.prototype.getOuterSize = Ext.form.TwinTriggerField.prototype.getOuterSize;\n'
20130515 'Lino.TwinCombo.prototype.initTrigger = Ext.form.TwinTriggerField.prototype.initTrigger;\n'
20130515 'Lino.TwinCombo.prototype.onTrigger1Click = Ext.form.ComboBox.prototype.onTriggerClick;\n'
20130515 '//~ Lino.TwinCombo.prototype.onTrigger2Click = function() {\n'
20130515 "    //~ console.log('onTrigger2Click',arguments);\n"
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboFieldElement = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "  displayField: 'value', \n"
20130515 '  valueField: null,\n'
20130515 '  forceSelection: false\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Window = Ext.extend(Ext.Window,{\n'
20130515 '  //~ layout: "fit", \n'
20130515 "  closeAction : 'hide',\n"
20130515 "  renderTo: 'main_area', \n"
20130515 '  constrain: true,\n'
20130515 '  maximized: true,\n'
20130515 '  draggable: false,\n'
20130515 '  width: 700,\n'
20130515 '  height: 500,\n'
20130515 '  maximizable: false,\n'
20130515 '  constructor : function (config) {\n'
20130515 '    if (config.main_item.params_panel) {\n'
20130515 "        config.layout = 'border';\n"
20130515 "        config.main_item.region = 'center';\n"
20130515 "        config.main_item.params_panel.region = 'north';\n"
20130515 '        config.main_item.params_panel.hidden = config.main_item.params_panel_hidden;\n'
20130515 '        config.items = [config.main_item.params_panel, config.main_item];\n'
20130515 '    } else {\n'
20130515 "        config.layout = 'fit';\n"
20130515 '        config.items = config.main_item;\n'
20130515 '    }\n'
20130515 '    this.main_item = config.main_item; \n'
20130515 '    \n'
20130515 '    delete config.main_item;\n'
20130515 '    //~ delete config.params_item;\n'
20130515 '    \n'
20130515 '    //~ this.main_item = config.items.get(0);\n'
20130515 '    this.main_item.containing_window = this;\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 1');\n"
20130515 '    //~ if (Lino.current_window) { // all windows except the top are closable\n'
20130515 '    if (this.main_item.hide_window_title) { \n'
20130515 '      config.closable = false;\n'
20130515 '      config.frame = false;\n'
20130515 '      config.shadow = false;\n'
20130515 '      //~ config.border = true;\n'
20130515 '      //~ config.title = undefined;\n'
20130515 '      //~ config.tools = null;\n'
20130515 '      delete config.title;\n'
20130515 '      delete config.tools;\n'
20130515 '    } else {\n'
20130515 '      config.title = this.main_item.empty_title;\n'
20130515 '      config.closable = true;\n'
20130515 '      config.tools = [ \n'
20130515 '        { qtip: \'permalink\', handler: Lino.permalink_handler(this), id: "pin" }\n'
20130515 '      ];\n'
20130515 "      if (this.main_item.content_type && this.main_item.action_name != 'insert') {\n"
20130515 '        config.tools = [ {\n'
20130515 '          handler: Lino.help_text_editor,\n'
20130515 '          qtip: "Edit help texts for fields on this model.",\n'
20130515 '          scope: this.main_item,\n'
20130515 '          id: "gear"\n'
20130515 '        }].concat(config.tools);\n'
20130515 '      }\n'
20130515 '        \n'
20130515 '    //~ { qtip: \'\', handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: this.config.qtip, handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: \'Call doLayout() on main Container.\', handler: Lino.refresh_handler(this), id: "refresh" },\n'
20130515 '    //~ if (this.main_item.params_panel) {\n'
20130515 '        //~ config.tools = config.tools.concat([ \n'
20130515 '          //~ { qtip: \'Show/hide parameter panel\', handler: this.toggle_params_panel, id: "gear", scope:this } \n'
20130515 '        //~ ]);\n'
20130515 '    //~ }\n'
20130515 '    //~ if (config.closable !== false) {\n'
20130515 '      // if undefined, will take default behaviour\n'
20130515 '      //~ config.tools = config.tools.concat([ \n'
20130515 '        //~ { qtip: \'close\', handler: this.hide, id: "close", scope:this } \n'
20130515 '      //~ ]);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    this.main_item.config_containing_window(config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 2');\n"
20130515 '    Lino.Window.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 3');\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.main_item.init_containing_window(this);\n'
20130515 '    Lino.Window.superclass.initComponent.call(this);\n'
20130515 '  \n'
20130515 '  },\n'
20130515 '  hide : function() { \n'
20130515 '      this.main_item.do_when_clean(false,function() { \n'
20130515 '        Lino.close_window(); });\n'
20130515 '  },\n'
20130515 '  hide_really : function() { \n'
20130515 '    Lino.Window.superclass.hide.call(this);\n'
20130515 '  },\n'
20130515 '  onRender : function(ct, position){\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 1');\n"
20130515 '    Lino.Window.superclass.onRender.call(this, ct, position);\n'
20130515 "    var main_area = Ext.getCmp('main_area')\n"
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 2');\n"
20130515 '  \n'
20130515 "    this.on('show', function(win) {\n"
20130515 "        //~ console.log('20120110 Lino.Window.on show 1');\n"
20130515 "        main_area.on('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    this.on('hide', function(win) {\n"
20130515 "        main_area.un('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 3');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.unused_ParamWindow = Ext.extend(Lino.Window,{\n'
20130515 '  //~ layout: "border", \n'
20130515 '  constructor : function (config) {\n'
20130515 '    Lino.ParamWindow.superclass.constructor.call(this,config);\n'
20130515 '    this.main_item = config.items; // `items` must be a single component\n'
20130515 "    config.layout = 'border';\n"
20130515 "    this.main_item.region = 'center';\n"
20130515 "    config.params.region = 'north';\n"
20130515 '    config.items = [config.params, config.items];\n'
20130515 '    //~ delete config.params;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '(function(){\n'
20130515 "    var ns = Ext.ns('Ext.ux.plugins');\n"
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @class Ext.ux.plugins.DefaultButton\n'
20130515 '     * @extends Object\n'
20130515 '     *\n'
20130515 '     * Plugin for Button that will click() the button if the user presses ENTER while\n'
20130515 "     * a component in the button's form has focus.\n"
20130515 '     *\n'
20130515 '     * @author Stephen Friedrich\n'
20130515 '     * @date 09-DEC-2009\n'
20130515 '     * @version 0.1\n'
20130515 '     *\n'
20130515 '     */\n'
20130515 '    ns.DefaultButton =  Ext.extend(Object, {\n'
20130515 '        init: function(button) {\n'
20130515 "            button.on('afterRender', setupKeyListener, button);\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '\n'
20130515 '    function setupKeyListener() {\n'
20130515 "        var formPanel = this.findParentByType('form');\n"
20130515 '        new Ext.KeyMap(formPanel.el, {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            shift: false,\n'
20130515 '            alt: false,\n'
20130515 '            fn: function(keyCode, e){\n'
20130515 "                if(e.target.type === 'textarea' && !e.ctrlKey) {\n"
20130515 '                    return true;\n'
20130515 '                }\n'
20130515 '\n'
20130515 "                this.el.select('button').item(0).dom.click();\n"
20130515 '                return false;\n'
20130515 '            },\n'
20130515 '            scope: this\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '\n'
20130515 "    Ext.ComponentMgr.registerPlugin('defaultButton', ns.DefaultButton);\n"
20130515 '\n'
20130515 '})(); \n'
20130515 '\n'
20130515 'Ext.override(Ext.form.BasicForm,{\n'
20130515 '    my_loadRecord : function(values){\n'
20130515 '    //~ loadRecord : function(record){\n'
20130515 "        /* Same as ExtJS's loadRecord() (setValues()), except that we \n"
20130515 '        forward also the record to field.setValue() so that Lino.Combobox \n'
20130515 '        can use it. \n'
20130515 '        */\n'
20130515 "        //~ console.log('20120918 my_loadRecord',values)\n"
20130515 '        if(Ext.isArray(values)){ \n'
20130515 '            for(var i = 0, len = values.length; i < len; i++){\n'
20130515 '                var v = values[i];\n'
20130515 '                var f = this.findField(v.id);\n'
20130515 '                if(f){\n'
20130515 '                    f.setValue(v.value,values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        f.originalValue = f.getValue();\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }else{ \n'
20130515 '            var field, id;\n'
20130515 '            for(id in values){\n'
20130515 '                if(!Ext.isFunction(values[id]) && (field = this.findField(id))){\n'
20130515 '                    field.setValue(values[id],values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        field.originalValue = field.getValue();\n'
20130515 '                        //~ if (field.hiddenField) {\n'
20130515 '                          //~ field.hiddenField.originalValue = field.hiddenField.value;\n'
20130515 '                        //~ }\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'function initializeFooBarDropZone(cmp) {\n'
20130515 "    //~ console.log('initializeFooBarDropZone',cmp);\n"
20130515 '    cmp.dropTarget = new Ext.dd.DropTarget(cmp.bwrap, {\n'
20130515 "      //~ ddGroup     : 'gridDDGroup',\n"
20130515 '      notifyEnter : function(ddSource, e, data) {\n'
20130515 "        console.log('notifyEnter',ddSource,e,data);\n"
20130515 '        //Add some flare to invite drop.\n'
20130515 '        cmp.body.stopFx();\n'
20130515 '        cmp.body.highlight();\n'
20130515 '      },\n'
20130515 '      notifyDrop  : function(ddSource, e, data){\n'
20130515 "        console.log('notifyDrop',ddSource,e,data);\n"
20130515 '        // Reference the record (single selection) for readability\n'
20130515 '        //~ var selectedRecord = ddSource.dragData.selections[0];\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Load the record into the form\n'
20130515 '        //~ formPanel.getForm().my_loadRecord(selectedRecord);\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Delete record from the grid.  not really required.\n'
20130515 '        //~ ddSource.grid.store.remove(selectedRecord);\n'
20130515 '\n'
20130515 '        return(true);\n'
20130515 '      }\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_mti_child = function(fieldname,detail_handler) {\n'
20130515 "  //~ console.log('show_mti_child',this);\n"
20130515 '  //~ console.log(\'show_mti_child\',panel.find("main_area"));\n'
20130515 '  rec = Lino.current_window.main_item.get_current_record();\n'
20130515 '  //~ rec = panel.get_current_record();\n'
20130515 '  if (rec) {\n'
20130515 "    //~ console.log('show_mti_child',Lino.current_window,rec);\n"
20130515 '    if (rec.phantom) {\n'
20130515 "      Lino.notify('Not allowed on phantom record.');\n"
20130515 '    }else if (rec.data[fieldname]) {\n'
20130515 "      //~ console.log('show_mti_child',rec.id);\n"
20130515 '      //~ detail_handler(Lino.current_window.main_item,{},{record_id:rec.id});\n'
20130515 '      detail_handler.run(null,{record_id:rec.id});\n'
20130515 "      //~ window.open(urlroot + '/' + rec.id);\n"
20130515 "      //~ document.location = urlroot + '/' + rec.id;\n"
20130515 "      //~ window.open(urlroot + '/' + rec.id,'_blank');\n"
20130515 '    } else {\n'
20130515 '      Lino.alert("Cannot show MTI child if checkbox is off.");\n'
20130515 '    }\n'
20130515 '  } else {\n'
20130515 "    Lino.notify('No current record.');\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelCalendars\n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelCalendars.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID',       mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'babel_name', type: 'string'},\n"
20130515 "    Description:  {name:'Desc',     mapping: 'description', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color',    mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden',   mapping: 'is_hidden', type: 'boolean'},    \n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();  \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelEvents \n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelEvents.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID',        mapping: 'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID',     mapping: 'calendarHidden', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle',  mapping: 'summary'},\n"
20130515 "    StartDate:   {name: 'StartDt',   mapping: 'start_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s" },\n'
20130515 "    EndDate:     {name: 'EndDt',     mapping: 'end_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s"},\n'
20130515 "    RRule:       {name: 'RecurRule', mapping: 'rsetHidden'},\n"
20130515 "    Location:    {name: 'Location',  mapping: 'placeHidden'},\n"
20130515 "    Notes:       {name: 'Desc',      mapping: 'description'},\n"
20130515 "    Url:         {name: 'LinkUrl',   mapping: 'url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay',    mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder',  mapping: 'reminder'}\n"
20130515 '    \n'
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.on_eventclick = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventclick",arguments);\n'
20130515 '  //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '  Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_editdetails = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_editdetails",arguments);\n'
20130515 '  if (rec.data.ID)\n'
20130515 '      //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '      Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.format_time = function(dt) {\n'
20130515 "    return dt.getHours() + ':' + dt.getMinutes();\n"
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventdelete = function() {\n'
20130515 '  //~ console.log("Lino.on_eventdelete",arguments);\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.on_eventadd  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventadd ",arguments);\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventresize  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventresize ",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventupdate  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventupdate",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.eventStore = new Ext.ensible.cal.EventStore({ \n'
20130515 '//~ Lino.eventStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.eventStore = new Ext.data.JsonStore({ \n'
20130515 '  listeners: { exception: Lino.on_store_exception }\n'
20130515 "  ,url: '/restful/cal/PanelEvents'\n"
20130515 '  ,restful : true\n'
20130515 '  ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "      url: '/restful/cal/PanelEvents', \n"
20130515 '      disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '      //~ disableCaching:true,\n'
20130515 '  })\n'
20130515 '  ,fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '  ,totalProperty: "count"\n'
20130515 '  ,root: "rows"\n'
20130515 '  ,idProperty: Ext.ensible.cal.EventMappings.EventId.mapping\n'
20130515 '  ,writer : new Ext.data.JsonWriter({\n'
20130515 '    writeAllFields: false\n'
20130515 '  })\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '      if (!options) options = {};\n'
20130515 '      if (!options.params) options.params = {};\n'
20130515 '      //~ options.params.$ext_requests.URL_PARAM_TEAM_VIEW = Lino.calendar_app.team_view_button.pressed;\n'
20130515 '      \n'
20130515 '      var view = this.cal_panel.getActiveView();\n'
20130515 '      var bounds = view.getViewBounds();\n'
20130515 "      //~ var p = {sd:'05.02.2012',ed:'11.02.2012'};\n"
20130515 '      //~ var p = {};\n'
20130515 '      options.params[view.dateParamStart] = bounds.start.format(view.dateParamFormat);\n'
20130515 '      options.params[view.dateParamEnd] = bounds.end.format(view.dateParamFormat);\n'
20130515 '      Lino.insert_subst_user(options.params);\n'
20130515 '      //~ Ext.apply(options.params,p)\n'
20130515 "      //~ console.log('20120710 eventStore.load()',this.baseParams,options);\n"
20130515 '    \n'
20130515 '    return Ext.data.JsonStore.prototype.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.calendarStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.calendarStore = new Ext.data.JsonStore({ \n'
20130515 '      listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,restful : true\n'
20130515 '      ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "          url: '/restful/cal/PanelCalendars?fmt=json', \n"
20130515 '          disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '          //~ restful : true\n'
20130515 '          //~ method: "GET"\n'
20130515 '      })\n'
20130515 '      //~ ,autoLoad: true\n'
20130515 '      //~ ,remoteSort: true\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      ,fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '      ,idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '      //~ ,idIndex: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '    });\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarCfg = {\n'
20130515 "    dateParamFormat: 'd.m.Y',\n"
20130515 "    dateParamStart:'sd',\n"
20130515 "    dateParamEnd:'ed'\n"
20130515 '};\n'
20130515 '//~ 20120704 Lino.CalendarPanel = Ext.extend(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 '//~ Lino.CalendarPanel = Ext.extend(Lino.CalendarPanel,{\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 '  ,activeItem: 1 // 0: day, 1: week\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  //~ ,disableCaching:true\n'
20130515 '  ,eventStore: Lino.eventStore\n'
20130515 '  ,calendarStore: Lino.calendarStore\n'
20130515 '  ,listeners: { \n'
20130515 '    editdetails: Lino.on_editdetails\n'
20130515 '    ,eventclick: Lino.on_eventclick\n'
20130515 '    //~ ,eventadd: Lino.on_eventadd\n'
20130515 '    //~ ,eventdelete: Lino.on_eventdelete\n'
20130515 '    //~ ,eventresize: Lino.on_eventresize\n'
20130515 '    ,afterrender : function(config) {\n'
20130515 '      //~ console.log("20120704 afterrender");\n'
20130515 '      Lino.calendarStore.load();\n'
20130515 '      //~ console.log("20120704 afterrender calls eventStore.load()",p);\n'
20130515 '      Lino.eventStore.cal_panel = this;\n'
20130515 '      //~ Lino.eventStore.load({params:p});\n'
20130515 '      Lino.eventStore.load();\n'
20130515 '      //~ Lino.CalendarPanel.superclass.constructor.call(this, config);\n'
20130515 '      //~ console.log(20120118, config,this);\n'
20130515 '    }\n'
20130515 '    }\n'
20130515 '  ,enableEditDetails: false\n'
20130515 '  //~ ,monthViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,weekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiDayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiWeekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,dayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,initComponent : function() {\n'
20130515 "    //~ // this.on('eventadd',Lino.on_eventadd);\n"
20130515 '    //~ Lino.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Ext.Panel,Lino.MainPanel);\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Lino.CalendarAppPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  ,set_status : function(status) { this.refresh();}\n'
20130515 '  ,refresh : function() {Lino.eventStore.reload();}\n'
20130515 "  ,layout: 'fit'\n"
20130515 '  ,is_loading : function() { \n'
20130515 '      var loading = Lino.calendarStore.getCount() == 0 | Lino.eventStore.getCount() == 0\n'
20130515 '      //~ console.log("CalendarPanel loading:",loading);\n'
20130515 '      return loading; \n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() {\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '  }\n'
20130515 '  ,clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  }\n'
20130515 '  ,set_base_param : function(k,v) {\n'
20130515 '      if (!this.base_params) this.base_params = {};\n'
20130515 '      this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.calendar_app = function() { return {\n'
20130515 '  get_main_panel : function() {\n'
20130515 '      return new Lino.CalendarAppPanel({ items : \n'
20130515 '        //~ [{\n'
20130515 "          //~ id: 'app-header',\n"
20130515 "          //~ region: 'north',\n"
20130515 '          //~ height: 35,\n'
20130515 '          //~ border: false,\n'
20130515 "          // contentEl: 'app-header-content'\n"
20130515 '        //~ },\n'
20130515 '      {\n'
20130515 "          id: 'app-center',\n"
20130515 "          title: '...', // will be updated to the current view's date range\n"
20130515 "          region: 'center',\n"
20130515 "          layout: 'border',\n"
20130515 '          listeners: {\n'
20130515 "              'afterrender': function(){\n"
20130515 "                  Ext.getCmp('app-center').header.addClass('app-center-header');\n"
20130515 '              }\n'
20130515 '          },\n'
20130515 '          items: [{\n'
20130515 "              id:'app-west',\n"
20130515 "              region: 'west',\n"
20130515 '              width: 176,\n'
20130515 '              border: false,\n'
20130515 '              items: [{\n'
20130515 "                  xtype: 'datepicker',\n"
20130515 "                  id: 'app-nav-picker',\n"
20130515 "                  cls: 'ext-cal-nav-picker',\n"
20130515 '                  listeners: {\n'
20130515 "                      'select': {\n"
20130515 '                          fn: function(dp, dt){\n'
20130515 '                              Lino.calendarPanel.setStartDate(dt);\n'
20130515 '                          },\n'
20130515 '                          scope: this\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '              //~ },{ \n'
20130515 "                //~ layout:'fit',\n"
20130515 '                //~ items: [\n'
20130515 '                  //~ new Ext.form.Checkbox({\n'
20130515 '                    //~ boxLabel:"$_(\'Team view\')",\n'
20130515 '                    //~ hideLabel:true\n'
20130515 '                    //~ listeners: { click: }\n'
20130515 '                  //~ })\n'
20130515 '                //~ ]\n'
20130515 '              },{ \n'
20130515 "                layout:'form',\n"
20130515 '                items: [\n'
20130515 '                  this.team_view_button = new Ext.Button({\n'
20130515 '                    text:"Team view",\n'
20130515 '                    enableToggle:true,\n'
20130515 '                    pressed:false,\n'
20130515 '                    toggleHandler: function(btn,state) { \n'
20130515 "                      //~ console.log('20120716 teamView.toggle()');\n"
20130515 "                      Lino.eventStore.setBaseParam('tv',state);\n"
20130515 '                      Lino.eventStore.load();\n'
20130515 '                      //~ Lino.eventStore.load({params:{$ext_requests.URL_PARAM_TEAM_VIEW:state}});\n'
20130515 '                      //~ console.log("team view",state);\n'
20130515 '                    }\n'
20130515 '                  })\n'
20130515 '                ]\n'
20130515 '              },{\n'
20130515 "                  xtype: 'extensible.calendarlist',\n"
20130515 '                  store: Lino.calendarStore,\n'
20130515 '                  border: false,\n'
20130515 '                  width: 175\n'
20130515 '              }]\n'
20130515 '          },{\n'
20130515 "              xtype: 'extensible.calendarpanel',\n"
20130515 '              eventStore: Lino.eventStore,\n'
20130515 '              calendarStore: Lino.calendarStore,\n'
20130515 '              border: false,\n'
20130515 "              id:'app-calendar',\n"
20130515 "              region: 'center',\n"
20130515 '              //~ activeItem: 3, // month view\n'
20130515 '              \n'
20130515 '              // Any generic view options that should be applied to all sub views:\n'
20130515 '              viewConfig: {\n'
20130515 '                  // Lino.CalendarCfg\n'
20130515 "                  dateParamFormat: 'd.m.Y',\n"
20130515 "                  dateParamStart:'sd',\n"
20130515 "                  dateParamEnd:'ed',\n"
20130515 '                \n'
20130515 '                  //enableFx: false,\n'
20130515 '                  //ddIncrement: 10, //only applies to DayView and subclasses, but convenient to put it here\n'
20130515 '                  viewStartHour: 8,\n'
20130515 '                  viewEndHour: 18\n'
20130515 '                  //minEventDisplayMinutes: 15\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // View options specific to a certain view (if the same options exist in viewConfig\n'
20130515 '              // they will be overridden by the view-specific config):\n'
20130515 '              monthViewCfg: {\n'
20130515 '                  showHeader: true,\n'
20130515 '                  showWeekLinks: true,\n'
20130515 '                  showWeekNumbers: true,\n'
20130515 "                  eventBodyMarkup: ['{Title}',\n"
20130515 '                    //~ \'<tpl if="url">\',\n'
20130515 '                        //~ \'<a href="{url}">XX</a>\',\n'
20130515 "                    //~ '</tpl>',\n"
20130515 '                    \'<tpl if="_isReminder">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="_isRecurring">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanLeft">\',\n'
20130515 '                        \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanRight">\',\n'
20130515 '                        \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "                    '</tpl>'\n"
20130515 "                ].join('')\n"
20130515 '              },\n'
20130515 '              \n'
20130515 '              multiWeekViewCfg: {\n'
20130515 '                  //weekCount: 3\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // Some optional CalendarPanel configs to experiment with:\n'
20130515 '              //readOnly: true,\n'
20130515 '              //showDayView: false,\n'
20130515 '              //showMultiDayView: true,\n'
20130515 '              //showWeekView: false,\n'
20130515 '              //showMultiWeekView: false,\n'
20130515 '              //showMonthView: false,\n'
20130515 '              //showNavBar: false,\n'
20130515 '              //showTodayText: false,\n'
20130515 '              //showTime: false,\n'
20130515 '              //editModal: true,\n'
20130515 '              //enableEditDetails: false,\n'
20130515 "              //title: 'My Calendar', // the header of the calendar, could be a subtitle for the app\n"
20130515 '              \n'
20130515 '              // Once this component inits it will set a reference to itself as an application\n'
20130515 '              // member property for easy reference in other functions within App.\n'
20130515 '              initComponent: function() {\n'
20130515 '                  Lino.calendarPanel = this;\n'
20130515 '                  this.constructor.prototype.initComponent.apply(this, arguments);\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              listeners: {\n'
20130515 "                  //~ 'eventclick': {\n"
20130515 '                      //~ fn: function(vw, rec, el){\n'
20130515 '                          //~ this.clearMsg();\n'
20130515 '                      //~ },\n'
20130515 '                      //~ scope: this\n'
20130515 '                  //~ },\n'
20130515 "                  'eventover': function(vw, rec, el){\n"
20130515 "                      //console.log('Entered evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventout': function(vw, rec, el){\n"
20130515 "                      //console.log('Leaving evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]+', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventadd': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was added');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventupdate': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          //this.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventcancel': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          // edit canceled\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'viewchange': {\n"
20130515 '                      fn: function(p, vw, dateInfo){\n'
20130515 '                          if(this.editWin){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          };\n'
20130515 '                          if(dateInfo !== null){\n'
20130515 '                              // will be null when switching to the event edit form so ignore\n'
20130515 "                              Ext.getCmp('app-nav-picker').setValue(dateInfo.activeDate);\n"
20130515 '                              this.updateTitle(dateInfo.viewStart, dateInfo.viewEnd);\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'dayclick': {\n"
20130515 '                      fn: function(vw, dt, ad, el){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'rangeselect': {\n"
20130515 '                      fn: function(vw, dates, onComplete){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventmove': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          var time = rec.data[Ext.ensible.cal.EventMappings.IsAllDay.name] ? '' : ' \\\\a\\\\t g:i a';\n"
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was moved to '+\n"
20130515 "                              rec.data[Ext.ensible.cal.EventMappings.StartDate.name].format('F jS'+time));\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventresize': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(win, rec){\n'
20130515 '                          Lino.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'initdrag': {\n"
20130515 '                      fn: function(vw){\n'
20130515 '                          if(this.editWin && this.editWin.isVisible()){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  }\n'
20130515 '              }\n'
20130515 '          }]\n'
20130515 '        }\n'
20130515 '        //~ ]\n'
20130515 '        \n'
20130515 '      });\n'
20130515 '      \n'
20130515 '  }\n'
20130515 '  ,updateTitle: function(startDt, endDt){\n'
20130515 "      var p = Ext.getCmp('app-center');\n"
20130515 '      \n'
20130515 '      if(startDt.clearTime().getTime() == endDt.clearTime().getTime()){\n'
20130515 "          p.setTitle(startDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '      else if(startDt.getFullYear() == endDt.getFullYear()){\n'
20130515 '          if(startDt.getMonth() == endDt.getMonth()){\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('j, Y'));\n"
20130515 '          }\n'
20130515 '          else{\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '          }\n'
20130515 '      }\n'
20130515 '      else{\n'
20130515 "          p.setTitle(startDt.format('F j, Y') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '  }\n'
20130515 '  // This is an application-specific way to communicate CalendarPanel event messages back to the user.\n'
20130515 '  // This could be replaced with a function to do "toast" style messages, growl messages, etc. This will\n'
20130515 "  // vary based on application requirements, which is why it's not baked into the CalendarPanel.\n"
20130515 '  ,showMsg: function(msg){\n'
20130515 '      Lino.notify(msg);\n'
20130515 "      //~ Ext.fly('app-msg').update(msg).removeClass('x-hidden');\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,clearMsg: function(){\n'
20130515 "      Lino.notify('');\n"
20130515 "      //~ Ext.fly('app-msg').update('').addClass('x-hidden');\n"
20130515 '  }\n'
20130515 '}\n'
20130515 '}();\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'captureEvents utility by Aaron Conran\n'
20130515 '<http://www.sencha.com/learn/grid-faq/>\n'
20130515 '\n'
20130515 'Ext.onReady(function(){\n'
20130515 '    var grid = new Ext.grid.GridPanel({\n'
20130515 '        ... \n'
20130515 '    });\n'
20130515 '    captureEvents(grid);\n'
20130515 '});\n'
20130515 '*/\n'
20130515 'function captureEvents(observable) {\n'
20130515 '    Ext.util.Observable.capture(\n'
20130515 '        observable,\n'
20130515 '        function(eventName) {\n'
20130515 '            console.info(eventName);\n'
20130515 '        },\n'
20130515 '        this\n'
20130515 '    );\t\t\n'
20130515 '}\n'
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.main_menu = [ { "menu": { "items": [ { "text": "Personnes", "handler": function() {Lino.contacts.Persons.grid.run(null)} }, { "text": " \\u25b6 Clients", "handler": function() {Lino.pcsw.Clients.grid.run(null)} }, { "text": "Organisations", "handler": function() {Lino.contacts.Companies.grid.run(null)} }, { "text": "M\\u00e9nages", "handler": function() {Lino.households.Households.grid.run(null)} }, "-", { "text": "Partenaires (tous)", "handler": function() {Lino.contacts.Partners.grid.run(null)} } ] }, "text": "Contacts" }, { "menu": { "items": [ { "text": "Mon courrier sortant", "handler": function() {Lino.outbox.MyOutbox.grid.run(null)} }, { "menu": { "items": [ { "text": "Mes Envois postaux", "handler": function() {Lino.postings.MyPostings.grid.run(null)} }, { "text": "Envois postaux \\u00e0 imprimer", "handler": function() {Lino.postings.PostingsReady.grid.run(null)} }, { "text": "Envois postaux imprim\\u00e9s", "handler": function() {Lino.postings.PostingsPrinted.grid.run(null)} }, { "text": "Envois postaux envoy\\u00e9s", "handler": function() {Lino.postings.PostingsSent.grid.run(null)} } ] }, "text": "Envois postaux" }, { "text": "Mes notes", "handler": function() {Lino.notes.MyNotes.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Calendrier", "iconCls": "x-tbar-calendar", "handler": function() {Lino.cal.CalendarPanel.grid.run(null)} }, { "text": "Events", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my calendar events.") }, "handler": function() {Lino.cal.MyEvents.grid.run(null)} }, "-", { "text": "Mes T\\u00e2ches", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my tasks.") }, "handler": function() {Lino.cal.MyTasks.grid.run(null)} }, { "text": "To-do list", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of my tasks marked \'to do\'.") }, "handler": function() {Lino.cal.MyTasksToDo.grid.run(null)} }, "-", { "text": "Mes pr\\u00e9sences", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows all my presences in calendar events, independently of their state.") }, "handler": function() {Lino.cal.MyPresences.grid.run(null)} }, { "text": "Mes invitations re\\u00e7ues", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows received invitations which I must accept or reject.") }, "handler": function() {Lino.cal.MyPendingInvitations.grid.run(null)} } ] }, "text": "Calendrier" }, { "menu": { "items": [ { "text": "Clients", "listeners": { "render": Lino.quicktip_renderer("Foo","Wie Kontakte \\u25b8 Klienten, aber mit DSBE-spezifischen Kolonnen und Filterparametern.") }, "handler": function() {Lino.pcsw.IntegClients.grid.run(null)} }, { "text": "PIISs", "handler": function() {Lino.isip.MyContracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.MyContracts.grid.run(null)} }, { "text": "Employants", "handler": function() {Lino.jobs.JobProviders.grid.run(null)} }, { "text": "Emplois", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    Eine Stelle ist ein Arbeitsplatz bei einem Stellenabieter. \\n    ") }, "handler": function() {Lino.jobs.Jobs.grid.run(null)} }, { "text": "Offres d\'emploi", "handler": function() {Lino.jobs.Offers.grid.run(null)} }, { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.NewJobsOverview.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Int\\u00e9gration" }, { "menu": { "items": [ { "text": "Organisateurs de cours", "handler": function() {Lino.courses.CourseProviders.grid.run(null)} }, { "text": "Offres de cours", "handler": function() {Lino.courses.CourseOffers.grid.run(null)} }, { "text": "Demandes de cours ouvertes", "handler": function() {Lino.courses.PendingCourseRequests.grid.run(null)} } ] }, "text": "Cours" }, { "menu": { "items": [ { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.JobsOverview.show.run(null,{ "record_id": -99998 })} }, { "text": "Agents et leurs clients", "handler": function() {Lino.pcsw.UsersWithClients.grid.run(null)} } ] }, "text": "Listings" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "Mes Text Field Templates", "handler": function() {Lino.ui.MyTextFieldTemplates.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Pays", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    A country is a geographic entity considered a \\"nation\\".\\n    ") }, "handler": function() {Lino.countries.Countries.grid.run(null)} }, { "text": "Langues", "handler": function() {Lino.countries.Languages.grid.run(null)} } ] }, "text": "Contacts" } ] }, "text": "Configuration" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "PIISs", "handler": function() {Lino.isip.Contracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.Contracts.grid.run(null)} } ] }, "text": "Int\\u00e9gration" } ] }, "text": "Explorateur" }, { "menu": { "items": [ { "text": "About", "listeners": { "render": Lino.quicktip_renderer("Foo","Show information about this site.") }, "handler": function() {Lino.about.About.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Site" }, { "text": "D\\u00e9part", "handler": function() {Lino.close_all_windows()} } ];\n'
20130515 "Ext.namespace('Lino.ui.SiteConfigs')\n"
20130515 "Ext.namespace('Lino.ui.ContentTypes')\n"
20130515 "Ext.namespace('Lino.ui.HelpTexts')\n"
20130515 "Ext.namespace('Lino.ui.TextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.Users')\n"
20130515 "Ext.namespace('Lino.users.MySettings')\n"
20130515 "Ext.namespace('Lino.users.UsersOverview')\n"
20130515 "Ext.namespace('Lino.users.Teams')\n"
20130515 "Ext.namespace('Lino.users.Memberships')\n"
20130515 "Ext.namespace('Lino.users.Authorities')\n"
20130515 "Ext.namespace('Lino.changes.Changes')\n"
20130515 "Ext.namespace('Lino.countries.Languages')\n"
20130515 "Ext.namespace('Lino.countries.Countries')\n"
20130515 "Ext.namespace('Lino.countries.Cities')\n"
20130515 "Ext.namespace('Lino.properties.PropGroups')\n"
20130515 "Ext.namespace('Lino.properties.PropTypes')\n"
20130515 "Ext.namespace('Lino.properties.Properties')\n"
20130515 "Ext.namespace('Lino.properties.PropChoices')\n"
20130515 "Ext.namespace('Lino.contacts.CompanyTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Partners')\n"
20130515 "Ext.namespace('Lino.contacts.Companies')\n"
20130515 "Ext.namespace('Lino.contacts.RoleTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Roles')\n"
20130515 "Ext.namespace('Lino.postings.Postings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByState')\n"
20130515 "Ext.namespace('Lino.postings.PostingsReady')\n"
20130515 "Ext.namespace('Lino.postings.PostingsPrinted')\n"
20130515 "Ext.namespace('Lino.postings.PostingsSent')\n"
20130515 "Ext.namespace('Lino.outbox.Recipients')\n"
20130515 "Ext.namespace('Lino.outbox.Mails')\n"
20130515 "Ext.namespace('Lino.outbox.Attachments')\n"
20130515 "Ext.namespace('Lino.cal.Calendars')\n"
20130515 "Ext.namespace('Lino.cal.Subscriptions')\n"
20130515 "Ext.namespace('Lino.cal.Places')\n"
20130515 "Ext.namespace('Lino.cal.Priorities')\n"
20130515 "Ext.namespace('Lino.cal.Events')\n"
20130515 "Ext.namespace('Lino.cal.MyEvents')\n"
20130515 "Ext.namespace('Lino.cal.MyUnclearEvents')\n"
20130515 "Ext.namespace('Lino.cal.EventsAssignedToMe')\n"
20130515 "Ext.namespace('Lino.cal.MyEventsToday')\n"
20130515 "Ext.namespace('Lino.cal.Tasks')\n"
20130515 "Ext.namespace('Lino.cal.GuestRoles')\n"
20130515 "Ext.namespace('Lino.cal.Guests')\n"
20130515 "Ext.namespace('Lino.cal.PanelCalendars')\n"
20130515 "Ext.namespace('Lino.cal.PanelEvents')\n"
20130515 "Ext.namespace('Lino.uploads.UploadTypes')\n"
20130515 "Ext.namespace('Lino.uploads.Uploads')\n"
20130515 "Ext.namespace('Lino.households.Types')\n"
20130515 "Ext.namespace('Lino.households.Households')\n"
20130515 "Ext.namespace('Lino.households.Roles')\n"
20130515 "Ext.namespace('Lino.households.Members')\n"
20130515 "Ext.namespace('Lino.accounts.Charts')\n"
20130515 "Ext.namespace('Lino.accounts.Groups')\n"
20130515 "Ext.namespace('Lino.accounts.Accounts')\n"
20130515 "Ext.namespace('Lino.notes.NoteTypes')\n"
20130515 "Ext.namespace('Lino.notes.EventTypes')\n"
20130515 "Ext.namespace('Lino.notes.Notes')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledges')\n"
20130515 "Ext.namespace('Lino.cv.PersonProperties')\n"
20130515 "Ext.namespace('Lino.contacts.Persons')\n"
20130515 "Ext.namespace('Lino.pcsw.Clients')\n"
20130515 "Ext.namespace('Lino.pcsw.DebtsClients')\n"
20130515 "Ext.namespace('Lino.pcsw.IntegClients')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsTest')\n"
20130515 "Ext.namespace('Lino.pcsw.PersonGroups')\n"
20130515 "Ext.namespace('Lino.pcsw.Activities')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Exclusions')\n"
20130515 "Ext.namespace('Lino.pcsw.AidTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.OverlappingContracts')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContactTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContacts')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Coachings')\n"
20130515 "Ext.namespace('Lino.isip.ContractTypes')\n"
20130515 "Ext.namespace('Lino.isip.ExamPolicies')\n"
20130515 "Ext.namespace('Lino.isip.ContractEndings')\n"
20130515 "Ext.namespace('Lino.isip.Contracts')\n"
20130515 "Ext.namespace('Lino.isip.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Schedules')\n"
20130515 "Ext.namespace('Lino.jobs.Regimes')\n"
20130515 "Ext.namespace('Lino.jobs.JobProviders')\n"
20130515 "Ext.namespace('Lino.jobs.ContractTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Sectors')\n"
20130515 "Ext.namespace('Lino.jobs.Functions')\n"
20130515 "Ext.namespace('Lino.jobs.Contracts')\n"
20130515 "Ext.namespace('Lino.jobs.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Offers')\n"
20130515 "Ext.namespace('Lino.jobs.StudyTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Studies')\n"
20130515 "Ext.namespace('Lino.jobs.Experiences')\n"
20130515 "Ext.namespace('Lino.jobs.Candidatures')\n"
20130515 "Ext.namespace('Lino.jobs.Jobs')\n"
20130515 "Ext.namespace('Lino.jobs.JobTypes')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsSearch')\n"
20130515 "Ext.namespace('Lino.courses.CourseProviders')\n"
20130515 "Ext.namespace('Lino.courses.CourseContents')\n"
20130515 "Ext.namespace('Lino.courses.Courses')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffers')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequests')\n"
20130515 "Ext.namespace('Lino.courses.PendingCourseRequests')\n"
20130515 "Ext.namespace('Lino.newcomers.Brokers')\n"
20130515 "Ext.namespace('Lino.newcomers.Faculties')\n"
20130515 "Ext.namespace('Lino.newcomers.Competences')\n"
20130515 "Ext.namespace('Lino.newcomers.NewClients')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoaches')\n"
20130515 "Ext.namespace('Lino.debts.Budgets')\n"
20130515 "Ext.namespace('Lino.debts.Actors')\n"
20130515 "Ext.namespace('Lino.debts.Entries')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByType')\n"
20130515 "Ext.namespace('Lino.cbss.Sectors')\n"
20130515 "Ext.namespace('Lino.cbss.Purposes')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.sessions.SessionTable')\n"
20130515 "Ext.namespace('Lino.ui.MyTextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.MembershipsByUser')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesGiven')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesTaken')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCity')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCountry')\n"
20130515 "Ext.namespace('Lino.properties.PropsByGroup')\n"
20130515 "Ext.namespace('Lino.properties.PropsByType')\n"
20130515 "Ext.namespace('Lino.properties.ChoicesByType')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCity')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCountry')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByCompany')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByPerson')\n"
20130515 "Ext.namespace('Lino.postings.MyPostings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByPartner')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientsByMail')\n"
20130515 "Ext.namespace('Lino.outbox.MyOutbox')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByUser')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.SentByPartner')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByMail')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByUser')\n"
20130515 "Ext.namespace('Lino.cal.EventsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.EventsByPlace')\n"
20130515 "Ext.namespace('Lino.cal.EventsByProject')\n"
20130515 "Ext.namespace('Lino.cal.TasksByUser')\n"
20130515 "Ext.namespace('Lino.cal.MyTasks')\n"
20130515 "Ext.namespace('Lino.cal.MyTasksToDo')\n"
20130515 "Ext.namespace('Lino.cal.TasksByProject')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByEvent')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByRole')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByPartner')\n"
20130515 "Ext.namespace('Lino.cal.MyPresences')\n"
20130515 "Ext.namespace('Lino.cal.MyPendingInvitations')\n"
20130515 "Ext.namespace('Lino.uploads.MyUploads')\n"
20130515 "Ext.namespace('Lino.households.HouseholdsByType')\n"
20130515 "Ext.namespace('Lino.households.MembersByHousehold')\n"
20130515 "Ext.namespace('Lino.households.MembersByPerson')\n"
20130515 "Ext.namespace('Lino.households.MembersByRole')\n"
20130515 "Ext.namespace('Lino.accounts.GroupsByChart')\n"
20130515 "Ext.namespace('Lino.accounts.AccountsByGroup')\n"
20130515 "Ext.namespace('Lino.notes.MyNotes')\n"
20130515 "Ext.namespace('Lino.notes.NotesByType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByEventType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByProject')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledgesByPerson')\n"
20130515 "Ext.namespace('Lino.cv.KnowledgesByLanguage')\n"
20130515 "Ext.namespace('Lino.cv.PropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.PersonPropsByProp')\n"
20130515 "Ext.namespace('Lino.cv.ConfiguredPropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SoftSkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.ObstaclesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsByNationality')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionsByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ContactsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByUser')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByCompany')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.FunctionsBySector')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByJob')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByRegime')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsBySchedule')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCountry')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCity')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesBySector')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByJob')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByType')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverviewByType')\n"
20130515 "Ext.namespace('Lino.courses.CoursesByOffer')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByProvider')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByContent')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByContent')\n"
20130515 "Ext.namespace('Lino.courses.RequestsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.ParticipantsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.CandidatesByCourse')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByUser')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.MyCompetences')\n"
20130515 "Ext.namespace('Lino.newcomers.ClientsByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoachesByClient')\n"
20130515 "Ext.namespace('Lino.debts.MyBudgets')\n"
20130515 "Ext.namespace('Lino.debts.BudgetsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.IncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.LiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.AssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DistByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.MyIdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyRetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.uploads.UploadsByController')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByController')\n"
20130515 "Ext.namespace('Lino.cal.TasksByController')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByController')\n"
20130515 "Ext.namespace('Lino.changes.ChangesByMaster')\n"
20130515 "Ext.namespace('Lino.ui.HelpTextsByModel')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByController')\n"
20130515 "Ext.namespace('Lino.cal.EventsByController')\n"
20130515 "Ext.namespace('Lino.about.Models')\n"
20130515 "Ext.namespace('Lino.about.FieldsByModel')\n"
20130515 "Ext.namespace('Lino.about.Inspector')\n"
20130515 "Ext.namespace('Lino.about.SourceFiles')\n"
20130515 "Ext.namespace('Lino.pcsw.UsersWithClients')\n"
20130515 "Ext.namespace('Lino.debts.PrintEntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintIncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintLiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintAssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.SummaryTable')\n"
20130515 "Ext.namespace('Lino.debts.ResultByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DebtsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.BailiffDebtsByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonResult')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsResult')\n"
20130515 "Ext.namespace('Lino.ui.Home')\n"
20130515 "Ext.namespace('Lino.about.About')\n"
20130515 "Ext.namespace('Lino.cal.CalendarPanel')\n"
20130515 "Ext.namespace('Lino.lino.Home')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverview')\n"
20130515 "Ext.namespace('Lino.jobs.NewJobsOverview')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestStates')\n"
20130515 "Ext.namespace('Lino.postings.PostingStates')\n"
20130515 "Ext.namespace('Lino.cal.DurationUnits')\n"
20130515 "Ext.namespace('Lino.cal.TaskStates')\n"
20130515 "Ext.namespace('Lino.cal.Weekdays')\n"
20130515 "Ext.namespace('Lino.lino.UserLevels')\n"
20130515 "Ext.namespace('Lino.lino.UserProfiles')\n"
20130515 "Ext.namespace('Lino.cal.EventStates')\n"
20130515 "Ext.namespace('Lino.accounts.AccountTypes')\n"
20130515 "Ext.namespace('Lino.cv.CefLevel')\n"
20130515 "Ext.namespace('Lino.properties.HowWell')\n"
20130515 "Ext.namespace('Lino.jobs.CandidatureStates')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientType')\n"
20130515 "Ext.namespace('Lino.countries.CityTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.BeIdCardTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.CivilState')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientStates')\n"
20130515 "Ext.namespace('Lino.cal.GuestStates')\n"
20130515 "Ext.namespace('Lino.properties.DoYouLike')\n"
20130515 "Ext.namespace('Lino.cbss.RequestLanguages')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAction')\n"
20130515 "Ext.namespace('Lino.pcsw.RefusalReasons')\n"
20130515 "Ext.namespace('Lino.lino.UserGroups')\n"
20130515 "Ext.namespace('Lino.cbss.RequestStates')\n"
20130515 "Ext.namespace('Lino.lino.ChangeTypes')\n"
20130515 "Ext.namespace('Lino.cal.AccessClasses')\n"
20130515 "Ext.namespace('Lino.cbss.QueryRegister')\n"
20130515 "Ext.namespace('Lino.lino.Genders')\n"
20130515 "Ext.namespace('Lino.pcsw.ResidenceType')\n"
20130515 '\n'
20130515 '// ChoiceLists: \n'
20130515 'Lino.courses.CourseRequestStates = [ [ "10", "Open" ], [ "20", "Registered" ], [ "30", "R\\u00e9ussi" ], [ "40", "Bien r\\u00e9ussi" ], [ "50", "echec" ], [ "60", "Abandonn\\u00e9" ], [ "70", "Inactif" ] ];\n'
20130515 'Lino.postings.PostingStates = [ [ "10", "Ouvert" ], [ "20", "Pr\\u00e8t \\u00e0 imprimer" ], [ "30", "Imprim\\u00e9" ], [ "40", "Ex\\u00e9cut\\u00e9" ], [ "50", "Retour" ] ];\n'
20130515 'Lino.cal.DurationUnits = [ [ "s", "secondes" ], [ "m", "minutes" ], [ "h", "heures" ], [ "D", "jours" ], [ "W", "semaines" ], [ "M", "mois" ], [ "Y", "ann\\u00e9es" ] ];\n'
20130515 'Lino.cal.TaskStates = [ [ "10", "\\u00e0 faire" ], [ "20", "Started" ], [ "30", "accomplie" ], [ "50", "Annul\\u00e9" ] ];\n'
20130515 'Lino.cal.Weekdays = [ [ "1", "Lundi" ], [ "2", "Mardi" ], [ "3", "Mercredit" ], [ "4", "Jeudi" ], [ "5", "Vendredi" ], [ "6", "Samedi" ], [ "7", "Dimanche" ] ];\n'
20130515 'Lino.lino.UserLevels = [ [ "10", "Guest" ], [ "20", "Secr\\u00e9taire" ], [ "30", "Utilisateur" ], [ "40", "Manager" ], [ "50", "Administrateur" ], [ "90", "Expert" ] ];\n'
20130515 'Lino.lino.UserProfiles = [ [ "000", "000 (Anonyme)" ], [ "100", "100 (Agent d\'insertion)" ], [ "110", "110 (Agent d\'insertion (chef de service))" ], [ "200", "200 (Consultat nouveaux clients)" ], [ "300", "300 (Consultate m\\u00e9diateur dettes)" ], [ "500", "500 (BCSS seulement)" ], [ "900", "900 (Administrateur)" ] ];\n'
20130515 'Lino.cal.EventStates = [ [ "10", "Propos\\u00e9" ], [ "20", "Draft" ], [ "30", "Communiqu\\u00e9" ], [ "40", "Planif\\u00e9" ], [ "50", "a eu lieu" ], [ "60", "D\\u00e9plac\\u00e9" ], [ "70", "Annul\\u00e9" ], [ "80", "Absent" ] ];\n'
20130515 'Lino.accounts.AccountTypes = [ [ "A", "Actifs" ], [ "L", "Obligations" ], [ "I", "Revenus" ], [ "E", "D\\u00e9penses" ], [ "C", "Capital" ], [ "B", "Bank accounts" ] ];\n'
20130515 'Lino.cv.CefLevel = [ [ "A1", "A1 (basic language skills)" ], [ "A2", "A2 (basic language skills)" ], [ "A2+", "A2+ (basic language skills)" ], [ "B1", "B1 (independent use of language)" ], [ "B2", "B2 (independent use of language)" ], [ "B2+", "B2+ (independent use of language)" ], [ "C1", "C1 (proficient use of language)" ], [ "C2", "C2 (proficient use of language)" ], [ "C2+", "C2+ (proficient use of language)" ] ];\n'
20130515 'Lino.properties.HowWell = [ [ "0", "not at all" ], [ "1", "a bit" ], [ "2", "moderate" ], [ "3", "quite well" ], [ "4", "very well" ] ];\n'
20130515 'Lino.jobs.CandidatureStates = [ [ "10", "Active" ], [ "20", "p\\u00e9riode d\'essai" ], [ "25", "Probation failed" ], [ "27", "Travaille" ], [ "30", "Inactive" ] ];\n'
20130515 'Lino.outbox.RecipientType = [ [ "to", "to" ], [ "cc", "cc" ], [ "bcc", "bcc" ] ];\n'
20130515 'Lino.countries.CityTypes = [ [ "10", "Member State" ], [ "11", "Division" ], [ "12", "Region" ], [ "13", "Community" ], [ "14", "Territory" ], [ "20", "County" ], [ "21", "Province" ], [ "22", "Shire" ], [ "23", "Subregion" ], [ "24", "Department" ], [ "25", "Arrondissement" ], [ "26", "Prefecture" ], [ "27", "District" ], [ "28", "Secteur" ], [ "50", "Ville" ], [ "51", "Town" ], [ "52", "Municipality" ], [ "54", "Parish" ], [ "55", "Township" ], [ "56", "Quarter" ], [ "61", "Borough" ], [ "62", "Small borough" ], [ "70", "Village" ] ];\n'
20130515 'Lino.pcsw.BeIdCardTypes = [ [ "1", "Registre national" ], [ "6", "Kids card (< 12 year)" ], [ "11", "Foreigner card A" ], [ "12", "Foreigner card B" ], [ "13", "Foreigner card C" ], [ "14", "Foreigner card D" ], [ "15", "Foreigner card E" ], [ "16", "Foreigner card E+" ], [ "17", "Foreigner card F" ], [ "18", "Foreigner card F+" ] ];\n'
20130515 'Lino.pcsw.CivilState = [ [ "10", "c\\u00e9libataire" ], [ "13", "C\\u00e9libateire cohabitant" ], [ "18", "C\\u00e9libataire avec enfant" ], [ "20", "mari\\u00e9" ], [ "21", "Mari\\u00e9 (habitant seul)" ], [ "22", "Mari\\u00e9 (vivant avec autre partenaire)" ], [ "30", "veuf/veuve" ], [ "33", "Veuf cohabitant" ], [ "40", "divorc\\u00e9" ], [ "50", "s\\u00e9par\\u00e9" ] ];\n'
20130515 'Lino.pcsw.ClientStates = [ [ "10", "Nouveau" ], [ "20", "Refus\\u00e9" ], [ "30", "Accompagn\\u00e9" ], [ "50", "Ancien" ] ];\n'
20130515 'Lino.cal.GuestStates = [ [ "10", "Invit\\u00e9" ], [ "20", "Accept\\u00e9" ], [ "30", "Rejet\\u00e9" ], [ "40", "Pr\\u00e9sent" ], [ "50", "Absent" ] ];\n'
20130515 'Lino.properties.DoYouLike = [ [ "0", "certainly not" ], [ "1", "rather not" ], [ "2", "normally" ], [ "3", "quite much" ], [ "4", "very much" ] ];\n'
20130515 'Lino.cbss.RequestLanguages = [ [ "nl", "Dutch" ], [ "fr", "French" ], [ "de", "German" ] ];\n'
20130515 'Lino.cbss.ManageAction = [ [ "1", "Int\\u00e9grer" ], [ "2", "Annuler int\\u00e9gration" ], [ "3", "Listing" ] ];\n'
20130515 'Lino.pcsw.RefusalReasons = [ [ "10", "Information request (No coaching needed)" ], [ "20", "CPAS n\'est pas comp\\u00e9tent" ], [ "30", "Client n\'est plus revenu" ] ];\n'
20130515 'Lino.lino.UserGroups = [ [ "office", "office (Office)" ], [ "accounting", "accounting (Comptabilit\\u00e9)" ], [ "integ", "integ (Int\\u00e9gration)" ], [ "newcomers", "newcomers (Nouvelles demandes)" ], [ "debts", "debts (M\\u00e9diation de dettes)" ], [ "cbss", "cbss (BCSS)" ] ];\n'
20130515 'Lino.cbss.RequestStates = [ [ "10", "Ex\\u00e9cut\\u00e9" ], [ "20", "echec" ], [ "25", "Valid\\u00e9" ], [ "30", "OK" ], [ "40", "Avertissements" ], [ "50", "Erreurs" ] ];\n'
20130515 'Lino.lino.ChangeTypes = [ [ "C", "Cr\\u00e9er" ], [ "U", "Update" ], [ "D", "Supprimer" ], [ "R", "Remove child" ], [ "A", "Add child" ], [ "M", "Merge" ] ];\n'
20130515 'Lino.cal.AccessClasses = [ [ "10", "Priv\\u00e9" ], [ "20", "Montrer \\"occup\\u00e9\\"" ], [ "30", "Public" ] ];\n'
20130515 'Lino.cbss.QueryRegister = [ [ "1", "Primaire" ], [ "2", "Secondaire" ], [ "3", "Tous" ] ];\n'
20130515 'Lino.lino.Genders = [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ];\n'
20130515 'Lino.pcsw.ResidenceType = [ [ "1", "Registre national" ], [ "2", "Registre des \\u00e9trangers" ], [ "3", "Registre d\'attente " ] ];\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1534 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1535 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1536 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1537 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1538 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1539 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1534, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1535, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1536, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1537, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1538, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1539, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1534, type1535, show_past1536, show_active1537, show_coming1538, today1539 ];\n'
20130515 '    Lino.jobs.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client_state1776 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1777 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1778 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1779 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1780 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var also_obsolete1781 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1782 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1776, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1777, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1778, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1779, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1780, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var aged_from1789 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1790 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1791 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var nationality1792 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1793 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1789, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1790, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1791, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1792, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var language1798 = new Lino.TwinCombo({ "fieldLabel": "Connaissance de langue", "name": "language", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Languages.detail)}, "emptyText": "Choisir Langue...", "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/language", "method": "GET" }) }) });\n'
20130515 '    var wanted_property1799 = new Lino.TwinCombo({ "fieldLabel": "Comp\\u00e9tence requise", "name": "wanted_property", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.properties.Properties.detail)}, "emptyText": "Choisir Propri\\u00e9t\\u00e9...", "selectOnFocus": true, "hiddenName": "wanted_propertyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/wanted_property", "method": "GET" }) }) });\n'
20130515 '    var group1800 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/group", "method": "GET" }) }) });\n'
20130515 '    var only_active1801 = new Ext.form.Checkbox({ "boxLabel": "Clients actifs seulement", "listeners": { "render": Lino.quicktip_renderer("Clients actifs seulement","Show only clients in \'active\' integration phases") }, "hideLabel": true, "checked": false, "name": "only_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_3_panel1802 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1798, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": wanted_property1799, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1800, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_active1801, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1782, main_2_panel1793, main_3_panel1802 ];\n'
20130515 '    this.fields = [ client_state1776, coached_by1777, and_coached_by1778, coached_on1779, only_primary1780, also_obsolete1781, aged_from1789, aged_to1790, gender1791, nationality1792, language1798, wanted_property1799, group1800, only_active1801 ];\n'
20130515 '    Lino.pcsw.IntegClients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2454 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2455 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var job_type2456 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    this.items = [ { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2454, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2455, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2456, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2454, date2455, job_type2456 ];\n'
20130515 '    Lino.jobs.JobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from1753 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1754 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1755 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1756 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1757 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1753, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1754, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1755, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1756, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state1762 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1763 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1764 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1765 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1766 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality1767 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1768 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1762, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1763, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1764, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1765, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1766, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1767, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1757, main_2_panel1768 ];\n'
20130515 '    this.fields = [ aged_from1753, aged_to1754, gender1755, also_obsolete1756, client_state1762, coached_by1763, and_coached_by1764, coached_on1765, only_primary1766, nationality1767 ];\n'
20130515 '    Lino.pcsw.Clients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1427 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1428 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1429 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1430 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1431 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1432 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1427, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1428, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1429, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1430, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1431, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1432, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1427, type1428, show_past1429, show_active1430, show_coming1431, today1432 ];\n'
20130515 '    Lino.isip.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var dates_from836 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Date du","Nur Termine ab diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date du</span>", "anchor": "-20", "name": "dates_from" });\n'
20130515 '    var dates_to837 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("au ","Nur Termine bis zu diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">au </span>", "anchor": "-20", "name": "dates_to" });\n'
20130515 '    var user838 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Responsible user</span>", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Responsible user","Nur Termine dieses Benutzers.") }, "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to839 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Attribu\\u00e9 \\u00e0</span>", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Attribu\\u00e9 \\u00e0","Nur Termine, die diesem Benutzer zugewiesen sind.") }, "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var state840 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "state", "hiddenName": "stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Termine in diesem Bearbeitungszustand.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.EventStates });\n'
20130515 '    var unclear841 = new Ext.form.Checkbox({ "boxLabel": "Mes rendez-vous \\u00e0 clarifier", "hideLabel": true, "checked": false, "name": "unclear", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel842 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 252, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_from836, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_to837, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user838, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to839, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state840, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unclear841, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel842 ];\n'
20130515 '    this.fields = [ dates_from836, dates_to837, user838, assigned_to839, state840, unclear841 ];\n'
20130515 '    Lino.cal.MyEvents.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 126,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var job_type2463 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/NewJobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    var today2464 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2463, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today2464, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ job_type2463, today2464 ];\n'
20130515 '    Lino.jobs.NewJobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from2128 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to2129 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender2130 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete2131 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel2132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from2128, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to2129, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2130, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete2131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state2137 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by2138 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by2139 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on2140 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary2141 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality2142 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2143 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state2137, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by2138, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by2139, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on2140, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary2141, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality2142, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var request_state2150 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "name": "request_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "hiddenName": "request_stateHidden" });\n'
20130515 '    var course_content2151 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "name": "course_content", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "course_contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_content", "method": "GET" }) }) });\n'
20130515 '    var course_provider2152 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "name": "course_provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "course_providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_provider", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel2153 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": request_state2150, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_content2151, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_provider2152, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel2132, main_2_panel2143, main_3_panel2153 ];\n'
20130515 '    this.fields = [ aged_from2128, aged_to2129, gender2130, also_obsolete2131, client_state2137, coached_by2138, and_coached_by2139, coached_on2140, only_primary2141, nationality2142, request_state2150, course_content2151, course_provider2152 ];\n'
20130515 '    Lino.courses.PendingCourseRequests.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2420 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverviewByType/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2421 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2420, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2421, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2420, date2421 ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var gender1098 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1099 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1100 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 47, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1098, "labelAlign": "top" }, { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1099, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1100 ];\n'
20130515 '    this.fields = [ gender1098, also_obsolete1099 ];\n'
20130515 '    Lino.contacts.Persons.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 90,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Refuser",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var reason13 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "reason", "allowBlank": false, "hiddenName": "reasonHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "name": "reason" });\n'
20130515 '    var remark14 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    this.items = [ { "items": reason13, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": remark14, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ];\n'
20130515 '    this.fields = [ reason13, remark14 ];\n'
20130515 '    Lino.pcsw.Clients.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 387,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Rejeter",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var notify_subject6 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "notify_subject" });\n'
20130515 '    var notify_body7 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "notify_body" });\n'
20130515 '    var notify_silent8 = new Ext.form.Checkbox({ "boxLabel": "Don\'t send email notification", "hideLabel": true, "checked": false, "name": "notify_silent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    this.items = [ { "items": notify_subject6, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": notify_body7, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, { "items": notify_silent8, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ notify_subject6, notify_body7, notify_silent8 ];\n'
20130515 '    Lino.cal.GuestsByEvent.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to18 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/pcsw/Clients/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var pcsw_Coaching19 = new Ext.form.Checkbox({ "boxLabel": "Accompagnements", "hideLabel": true, "checked": false, "name": "pcsw_Coaching", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var cv_LanguageKnowledge20 = new Ext.form.Checkbox({ "boxLabel": "Connaissances de langue", "hideLabel": true, "checked": false, "name": "cv_LanguageKnowledge", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_1_panel21 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": pcsw_Coaching19, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cv_LanguageKnowledge20, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var properties_PersonProperty24 = new Ext.form.Checkbox({ "boxLabel": "Propri\\u00e9t\\u00e9s", "hideLabel": true, "checked": false, "name": "properties_PersonProperty", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_panel25 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Auch verg\\u00e4ngliche verkn\\u00fcpfte Objekte \\u00fcberweisen", "items": [ keep_volatiles_1_panel21, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": properties_PersonProperty24, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var reason27 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to18, "anchor": "-20", "labelAlign": "top" }, keep_volatiles_panel25, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason27, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to18, pcsw_Coaching19, cv_LanguageKnowledge20, properties_PersonProperty24, reason27 ];\n'
20130515 '    Lino.pcsw.Clients.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to1 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/contacts/Companies/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var reason2 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to1, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason2, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to1, reason2 ];\n'
20130515 '    Lino.contacts.Companies.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var start_date818 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time819 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel820 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date818, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date823 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time824 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel825 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date823, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time824, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var main_2_panel828 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ start_panel820, end_panel825 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var calendar829 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var project830 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel831 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar829, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project830, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel834 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary817, "anchor": "-20", "labelAlign": "top" }, main_2_panel828, main_3_panel831 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel834;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1608 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var job1609 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var main_panel1610 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1608, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1609, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1610;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1609.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1440 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1441 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1442 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1443 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1444 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var general_1_panel1445 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1440, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1441, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1442, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1443, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1444, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type1451 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1452 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1453 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1454 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel1455 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1451, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1452, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1453, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1454, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1460 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var applies_until1461 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1462 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var general_3_panel1463 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1460, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1461, "labelAlign": "top" }, { "flex": 55, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1462, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1467 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1468 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1469 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1470 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var general_4_panel1471 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1467, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1468, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1469, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1470, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid1476 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 47 });\n'
20130515 '    var cal_EventsByController_grid1483 = new Lino.cal.EventsByController.GridPanel({ "flex": 52, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ], "master_panel": this });\n'
20130515 '    var general_5_panel1484 = new Ext.Panel({ "flex": 55, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ cal_TasksByController_grid1476, cal_EventsByController_grid1483 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1485 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1445, general_2_panel1455, general_3_panel1463, general_4_panel1471, general_5_panel1484 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var stages1486 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "stages", "title": "stages" });\n'
20130515 '    var goals1487 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "goals", "title": "buts" });\n'
20130515 '    var isip_1_panel1488 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ stages1486, goals1487 ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_asd1489 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_asd", "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1490 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_dsbe", "title": "devois ISP" });\n'
20130515 '    var isip_2_panel1491 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_asd1489, duties_dsbe1490 ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_company1492 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_company", "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1493 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_person", "title": "Devoirs personne" });\n'
20130515 '    var isip_3_panel1494 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_company1492, duties_person1493 ], "region": "south", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var isip_panel1495 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "PIIS", "hideCheckBoxLabels": true, "items": [ isip_1_panel1488, isip_2_panel1491, isip_3_panel1494 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1496 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1485, isip_panel1495 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1496;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1453.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      cal_TasksByController_grid1476.on_master_changed();\n'
20130515 '      cal_EventsByController_grid1483.on_master_changed();\n'
20130515 '      stages1486.refresh();\n'
20130515 '      goals1487.refresh();\n'
20130515 '      duties_asd1489.refresh();\n'
20130515 '      duties_dsbe1490.refresh();\n'
20130515 '      duties_company1492.refresh();\n'
20130515 '      duties_person1493.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1452.on('change',Lino.chooser_handler(contact_person1453,'company'));\n"
20130515 '      Lino.isip.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1452.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1497 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var type1498 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1499 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1500 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1498, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1499, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1503 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1497, "anchor": "-20", "labelAlign": "top" }, main_2_panel1500 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1499.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name2378 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2379 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2380 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2381 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2379, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2380, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2384 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2378, "anchor": "-20", "labelAlign": "top" }, main_2_panel2381 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2384;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var subject673 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project674 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var date675 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date","\\n        The official date to be printed on the document.\\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date</span>", "name": "date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel676 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject673, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project674, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date675, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var user680 = new Lino.TwinCombo({ "fieldLabel": "exp\\u00e9diteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/user", "method": "GET" }) }) });\n'
20130515 '    var sent681 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "sent", "anchor": "-20", "value": "<br>", "name": "sent" });\n'
20130515 '    var id682 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var owner_disp683 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_2_panel684 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user680, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent681, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id682, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp683, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var RecipientsByMail_grid695 = new Lino.outbox.RecipientsByMail.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.RecipientsByMail.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var AttachmentsByMail_htmlbox696 = new Lino.HtmlBoxPanel({ "flex": 22, "layout": "fit", "name": "AttachmentsByMail", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Pi\\u00e8ces jointes", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.outbox.AttachmentsByMail.grid) ] });\n'
20130515 '    var UploadsByController_htmlbox697 = new Lino.HtmlBoxPanel({ "flex": 22, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel698 = new Ext.Panel({ "flex": 29, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ RecipientsByMail_grid695, AttachmentsByMail_htmlbox696, UploadsByController_htmlbox697 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var body699 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 58, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel700 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel676, main_2_panel684, main_3_panel698, body699 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel700;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      RecipientsByMail_grid695.on_master_changed();\n'
20130515 '      AttachmentsByMail_htmlbox696.refresh();\n'
20130515 '      UploadsByController_htmlbox697.refresh();\n'
20130515 '      body699.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date636 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var event_type637 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type638 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var left_1_panel639 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date636, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type637, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type638, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var subject643 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project644 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company645 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var left_3_panel646 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project644, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company645, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var id649 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var user650 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/user", "method": "GET" }) }) });\n'
20130515 '    var language651 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var build_time652 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var left_4_panel653 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id649, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user650, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language651, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time652, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var body658 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 55, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var left_panel659 = new Ext.Panel({ "flex": 66, "layout": "vbox", "items": [ left_1_panel639, { "items": subject643, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, left_3_panel646, left_4_panel653, body658 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox661 = new Lino.HtmlBoxPanel({ "flex": 16, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var outbox_MailsByController_grid707 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var postings_PostingsByController_grid718 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var cal_TasksByController_grid724 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var right_panel725 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ UploadsByController_htmlbox661, outbox_MailsByController_grid707, postings_PostingsByController_grid718, cal_TasksByController_grid724 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel726 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ left_panel659, right_panel725 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel727 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel726 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel727;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body658.refresh();\n'
20130515 '      UploadsByController_htmlbox661.refresh();\n'
20130515 '      outbox_MailsByController_grid707.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid718.on_master_changed();\n'
20130515 '      cal_TasksByController_grid724.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var preview_htmlbox2461 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "preview", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2462 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ preview_htmlbox2461 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2462;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      preview_htmlbox2461.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.NewJobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name550 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id551 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language552 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel553 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix549, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name550, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id551, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language552, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity559 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }) });\n'
20130515 '    var type560 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel561 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id558, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity559, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type560, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account1565 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete567 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel568 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1565, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2566, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete567, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel572 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel553, intro_box_2_panel561, intro_box_3_panel568 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country573 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }) });\n'
20130515 '    var region574 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel575 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country573, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region574, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city578 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code579 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel580 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city578, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code579, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix583 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street584 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no585 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box586 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel587 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix583, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street584, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no585, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box586, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2592 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel593 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel575, box3_2_panel580, box3_3_panel587, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2592, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email595 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url596 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone597 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm598 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel599 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email595, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url596, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone597, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm598, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel604 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel593, box4_panel599 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks605 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var is_courseprovider606 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un organisateur de cours (<a href=\\"javascript:Lino.show_mti_child(\'is_courseprovider\',Lino.courses.CourseProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_courseprovider" });\n'
20130515 '    var is_jobprovider607 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est Employant (<a href=\\"javascript:Lino.show_mti_child(\'is_jobprovider\',Lino.jobs.JobProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_jobprovider" });\n'
20130515 '    var client_contact_type608 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de contact client", "name": "client_contact_type", "pageSize": 20, "emptyText": "Choisir Type de contact client...", "selectOnFocus": true, "hiddenName": "client_contact_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }) });\n'
20130515 '    var box5_2_panel609 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 261, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_courseprovider606, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_jobprovider607, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_contact_type608, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var box5_panel613 = new Ext.Panel({ "flex": 57, "layout": "vbox", "items": [ { "items": remarks605, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 }, box5_2_panel609 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByCompany_grid619 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel620 = new Ext.Panel({ "flex": 46, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box5_panel613, contacts_RolesByCompany_grid619 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel621 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel572, address_box_panel604, bottom_box_panel620 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid741 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var main_panel742 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel621, pcsw_NotesByCompany_grid741 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel742;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region574.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid619.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid741.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country573.on('change',Lino.chooser_handler(region574,'country'));\n"
20130515 "      country573.on('change',Lino.chooser_handler(city578,'country'));\n"
20130515 "      region574.on('change',Lino.chooser_handler(city578,'region'));\n"
20130515 '      Lino.contacts.Companies.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name504 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language505 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email506 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel507 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language505, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email506, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel510 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name504, "anchor": "-20", "labelAlign": "top" }, main_2_panel507 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel510;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var title1085 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var first_name1086 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1087 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1085, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1086, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1087, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1092 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1093 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_2_panel1094 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1092, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1093, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1097 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel1088, main_2_panel1094 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1097;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2212 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2213 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var main_1_panel2214 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2212, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2213, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2217 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2218 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2220 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2217, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2218, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2219, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2224 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2225 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2226 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2227 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2224, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2225, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2226, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2231 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2220, p2_2_panel2227 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2232 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel2214, p2_panel2231 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2232;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2212.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.lino.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2445 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var welcome_htmlbox2446 = new Lino.HtmlBoxPanel({ "flex": 10, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var UsersWithClients_htmlbox2447 = new Lino.HtmlBoxPanel({ "flex": 28, "layout": "fit", "name": "UsersWithClients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Agents et leurs clients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.pcsw.UsersWithClients.grid) ] });\n'
20130515 '    var coming_reminders_htmlbox2448 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "coming_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels \\u00e0 venir", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var missed_reminders_htmlbox2449 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "missed_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels rat\\u00e9s", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_4_panel2450 = new Ext.Panel({ "flex": 57, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ coming_reminders_htmlbox2448, missed_reminders_htmlbox2449 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2451 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2445, welcome_htmlbox2446, UsersWithClients_htmlbox2447, main_4_panel2450 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2451;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2445.refresh();\n'
20130515 '      welcome_htmlbox2446.refresh();\n'
20130515 '      UsersWithClients_htmlbox2447.refresh();\n'
20130515 '      coming_reminders_htmlbox2448.refresh();\n'
20130515 '      missed_reminders_htmlbox2449.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.lino.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var start_date107 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var due_date108 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Due date", "anchor": "-20", "name": "due_date" });\n'
20130515 '    var id109 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var workflow_buttons_disp110 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var main_1_panel111 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date107, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": due_date108, "labelAlign": "top" }, { "flex": 9, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id109, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp110, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var summary116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user117 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project118 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel119 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user117, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project118, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var calendar122 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/calendar", "method": "GET" }) }) });\n'
20130515 '    var owner_disp123 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var created124 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified125 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var main_4_panel126 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar122, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp123, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created124, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified125, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description131 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var main_panel132 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ main_1_panel111, { "items": summary116, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, main_3_panel119, main_4_panel126, description131 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel132;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description131.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2318 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2319 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2320 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2321 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2322 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2323 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2324 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2325 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2318, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2319, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2320, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2321, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2322, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2323, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2324, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2333 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2334 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var history2335 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var parameters_panel2336 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2333, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2334, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2335, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 99, "border": false, "labelAlign": "top" });\n'
20130515 '    var cbss_RetrieveTIGroupsResult_grid2345 = new Lino.cbss.RetrieveTIGroupsResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.RetrieveTIGroupsResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var request_panel2346 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2325, parameters_panel2336, cbss_RetrieveTIGroupsResult_grid2345 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2347 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2348 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2349 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2350 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2347, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2348, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2349, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2354 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2346, technical_panel2350 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2354;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cbss_RetrieveTIGroupsResult_grid2345.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 72,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix1808 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name1809 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id1810 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1811 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel1812 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix1808, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1809, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1810, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1811, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id1817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity1818 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type1819 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel1820 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id1817, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1818, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11824 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21825 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1826 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel1827 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11824, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21825, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1826, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel1831 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel1812, intro_box_2_panel1820, intro_box_3_panel1827 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country1832 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region1833 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel1834 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1832, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1833, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city1837 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1838 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel1839 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1837, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1838, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1842 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1843 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1844 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1845 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel1846 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1842, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1843, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1844, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1845, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21851 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel1852 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel1834, box3_2_panel1839, box3_3_panel1846, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21851, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email1854 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1855 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1856 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1857 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel1858 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1854, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1855, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1856, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1857, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel1863 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel1852, box4_panel1858 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1864 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid1865 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel1866 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1864, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid1865 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1868 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel1831, address_box_panel1863, bottom_box_panel1866 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid1869 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var JobsByProvider_grid1943 = new Lino.jobs.JobsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.jobs.JobsByProvider.grid) ], "master_panel": this });\n'
20130515 '    var ContractsByProvider_grid1972 = new Lino.jobs.ContractsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByProvider.grid) ] });\n'
20130515 '    var jobs_panel1973 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Emplois", "hideCheckBoxLabels": true, "items": [ JobsByProvider_grid1943, ContractsByProvider_grid1972 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1974 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1868, pcsw_NotesByCompany_grid1869, jobs_panel1973 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1974;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1833.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid1865.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid1869.on_master_changed();\n'
20130515 '      JobsByProvider_grid1943.on_master_changed();\n'
20130515 '      ContractsByProvider_grid1972.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1832.on('change',Lino.chooser_handler(region1833,'country'));\n"
20130515 "      country1832.on('change',Lino.chooser_handler(city1837,'country'));\n"
20130515 "      region1833.on('change',Lino.chooser_handler(city1837,'region'));\n"
20130515 '      Lino.jobs.JobProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var project701 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var subject702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var body703 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 71, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel704 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "items": project701, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": subject702, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, body703 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel704;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body703.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var first_name1740 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1741 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1742 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1740, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1741, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id1745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var gender1746 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1747 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_3_panel1748 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1746, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1747, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1751 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ main_1_panel1742, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1745, "anchor": "-20", "labelAlign": "top" }, main_3_panel1748 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1751;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name1104 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name1105 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var title1106 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var box1_1_panel1107 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1104, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1105, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1106, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1111 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/country", "method": "GET" }) }) });\n'
20130515 '    var city1112 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1113 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_2_panel1114 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1111, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1112, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1113, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1118 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1119 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1120 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1121 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_3_panel1122 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1118, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1119, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1120, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1121, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21127 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box1_panel1128 = new Ext.form.FieldSet({ "flex": 61, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ box1_1_panel1107, box1_2_panel1114, box1_3_panel1122, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21127, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1130 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1131 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box2_1_panel1132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1130, "labelAlign": "top" }, { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var phone1136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var fax1137 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var box2_3_panel1138 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1136, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1137, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 90, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gsm1141 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box2_panel1142 = new Ext.form.FieldSet({ "flex": 38, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ box2_1_panel1132, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1135, "anchor": "-20", "labelAlign": "top" }, box2_3_panel1138, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1141, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 63, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1145 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1128, box2_panel1142 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1146 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var birth_date1147 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var age_disp1148 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "\\u00e2ge", "name": "age", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state1149 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Etat civil", "name": "civil_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.CivilState, "hiddenName": "civil_stateHidden" });\n'
20130515 '    var noble_condition1150 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Titre de noblesse","The eventual noble condition of this person. Imported from TIM.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Titre de noblesse</span>", "name": "noble_condition", "maxLength": 50, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_1_panel1151 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1146, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date1147, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": age_disp1148, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": civil_state1149, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": noble_condition1150, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_country1157 = new Lino.TwinCombo({ "fieldLabel": "Pays de naissance", "name": "birth_country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "birth_countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/birth_country", "method": "GET" }) }) });\n'
20130515 '    var birth_place1158 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Lieu de naissance", "anchor": "-20", "name": "birth_place" });\n'
20130515 '    var nationality1159 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var national_id1160 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var box3_2_panel1161 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_country1157, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_place1158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1159, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1160, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel1166 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Naissance", "items": [ box3_1_panel1151, box3_2_panel1161 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var card_number1167 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20, "fieldLabel": "n\\u00b0", "anchor": "-20", "name": "card_number" });\n'
20130515 '    var card_valid_from1168 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "valide de", "anchor": "-20", "name": "card_valid_from" });\n'
20130515 '    var card_valid_until1169 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "card_valid_until" });\n'
20130515 '    var card_issuer1170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50, "fieldLabel": "\\u00e9mise par", "anchor": "-20", "name": "card_issuer" });\n'
20130515 '    var card_type1171 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de carte eID", "name": "card_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.BeIdCardTypes, "hiddenName": "card_typeHidden" });\n'
20130515 '    var eid_panel_1_panel1172 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Carte eID", "bodyBorder": true, "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_number1167, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_from1168, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_until1169, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_issuer1170, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_type1171, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created1178 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1179 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box4_3_panel1180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1178, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box4_panel1183 = new Ext.Panel({ "flex": 82, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box3_panel1166, eid_panel_1_panel1172, box4_3_panel1180 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var image_htmlbox1184 = new Lino.HtmlBoxPanel({ "flex": 17, "layout": "fit", "name": "image", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var general_2_panel1185 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ box4_panel1183, image_htmlbox1184 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 0, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var general_panel1186 = new Ext.Panel({ "autoHeight": true, "layout": "form", "title": "Personne", "items": [ general_1_panel1145, general_2_panel1185 ], "frame": true, "bodyBorder": false, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "labelAlign": "top" });\n'
20130515 '    var in_belgium_since1187 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("en Belgique depuis","Since when this person in Belgium lives.\\n<b>Important:</b> help_text can be formatted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">en Belgique depuis</span>", "anchor": "-20", "name": "in_belgium_since" });\n'
20130515 '    var residence_type1188 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de s\\u00e9jour", "name": "residence_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ResidenceType, "hiddenName": "residence_typeHidden" });\n'
20130515 '    var gesdos_id1189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "N\\u00b0 GesDos", "anchor": "-20", "name": "gesdos_id" });\n'
20130515 '    var status_1_panel1190 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": in_belgium_since1187, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_type1188, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gesdos_id1189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11194 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var status_2_panel1196 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11194, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21195, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var job_agents1199 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Agences de travail", "anchor": "-20", "name": "job_agents" });\n'
20130515 '    var group1200 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/group", "method": "GET" }) }) });\n'
20130515 '    var status_3_panel1201 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_agents1199, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1200, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var status_panel1204 = new Ext.Panel({ "flex": 68, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ status_1_panel1190, status_2_panel1196, status_3_panel1201 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var aid_type1205 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'aide sociale", "name": "aid_type", "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale...", "selectOnFocus": true, "hiddenName": "aid_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }) });\n'
20130515 '    var income_ag1206 = new Ext.form.Checkbox({ "boxLabel": "allocation de ch\\u00f4mage", "hideLabel": true, "checked": false, "name": "income_ag", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_wg1207 = new Ext.form.Checkbox({ "boxLabel": "waiting pay", "hideLabel": true, "checked": false, "name": "income_wg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_2_panel1208 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_ag1206, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_wg1207, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_kg1211 = new Ext.form.Checkbox({ "boxLabel": "indemnisation maladie", "hideLabel": true, "checked": false, "name": "income_kg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_rente1212 = new Ext.form.Checkbox({ "boxLabel": "persone de retraite", "hideLabel": true, "checked": false, "name": "income_rente", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_3_panel1213 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_kg1211, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_rente1212, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_misc1216 = new Ext.form.Checkbox({ "boxLabel": "autres revenus", "hideLabel": true, "checked": false, "name": "income_misc", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_panel1217 = new Ext.Panel({ "flex": 31, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": aid_type1205, "anchor": "-20", "labelAlign": "top" }, income_2_panel1208, income_3_panel1213, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_misc1216, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 180, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_1_panel1220 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ status_panel1204, income_panel1217 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_seeking1221 = new Ext.form.Checkbox({ "boxLabel": "cherche du travail", "hideLabel": true, "checked": false, "name": "is_seeking", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var unemployed_since1222 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Cherche du travail depuis", "anchor": "-20", "name": "unemployed_since" });\n'
20130515 '    var work_permit_suspended_until1223 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "suspendu jusque", "anchor": "-20", "name": "work_permit_suspended_until" });\n'
20130515 '    var suche_1_panel1224 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_seeking1221, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unemployed_since1222, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_suspended_until1223, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var unavailable_until1228 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Indidponible jusque", "anchor": "-20", "name": "unavailable_until" });\n'
20130515 '    var unavailable_why1229 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "raison", "anchor": "-20", "name": "unavailable_why" });\n'
20130515 '    var suche_2_panel1230 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_until1228, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_why1229, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ExclusionsByPerson_grid1238 = new Lino.pcsw.ExclusionsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ExclusionsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var suche_panel1239 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Recherche de travail", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ suche_1_panel1224, suche_2_panel1230, pcsw_ExclusionsByPerson_grid1238 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var needs_residence_permit1240 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de s\\u00e9jour", "hideLabel": true, "checked": false, "name": "needs_residence_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var needs_work_permit1241 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de travail", "hideLabel": true, "checked": false, "name": "needs_work_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var papers_1_panel1242 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 288, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_residence_permit1240, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_work_permit1241, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var residence_permit_disp1245 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de s\\u00e9jour", "name": "residence_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var work_permit_disp1246 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de travail", "name": "work_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var driving_licence_disp1247 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "permis de conduire", "name": "driving_licence", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var papers_2_panel1248 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_permit_disp1245, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_disp1246, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": driving_licence_disp1247, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox1252 = new Lino.HtmlBoxPanel({ "flex": 42, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var papers_panel1253 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Papiers", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ papers_1_panel1242, papers_2_panel1248, UploadsByController_htmlbox1252 ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_2_panel1254 = new Ext.Panel({ "flex": 63, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ suche_panel1239, papers_panel1253 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_panel1255 = new Ext.Panel({ "layout": "vbox", "title": "Statut", "items": [ status_tab_1_panel1220, status_tab_2_panel1254 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var workflow_buttons_disp1256 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker1257 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Interm\\u00e9diaire ", "name": "broker", "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ...", "selectOnFocus": true, "hiddenName": "brokerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/broker", "method": "GET" }) }) });\n'
20130515 '    var faculty1258 = new Lino.TwinCombo({ "fieldLabel": "Sp\\u00e9cificit\\u00e9", "name": "faculty", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.newcomers.Faculties.detail)}, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9...", "selectOnFocus": true, "hiddenName": "facultyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/faculty", "method": "GET" }) }) });\n'
20130515 '    var newcomers_left_panel1259 = new Ext.Panel({ "flex": 33, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp1256, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": broker1257, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": faculty1258, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var coaching_1_panel1278 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ newcomers_left_panel1259 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ContactsByClient_grid1286 = new Lino.pcsw.ContactsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ContactsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var pcsw_CoachingsByClient_grid1294 = new Lino.pcsw.CoachingsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var coaching_2_panel1295 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ pcsw_ContactsByClient_grid1286, pcsw_CoachingsByClient_grid1294 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var coaching_panel1296 = new Ext.Panel({ "layout": "vbox", "title": "Accompagnement", "items": [ coaching_1_panel1278, coaching_2_panel1295 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_StudiesByPerson_grid1309 = new Lino.jobs.StudiesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "master_panel": this, "listeners": { "render": Lino.quicktip_renderer("\\u00c9tudes & formations","List of studies for a given person.") }, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByPerson.grid) ] });\n'
20130515 '    var jobs_ExperiencesByPerson_grid1319 = new Lino.jobs.ExperiencesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var education_panel1320 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Formation", "hideCheckBoxLabels": true, "items": [ jobs_StudiesByPerson_grid1309, jobs_ExperiencesByPerson_grid1319 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_LanguageKnowledgesByPerson_grid1327 = new Lino.cv.LanguageKnowledgesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.cv.LanguageKnowledgesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var courses_CourseRequestsByPerson_grid1363 = new Lino.courses.CourseRequestsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseRequestsByPerson.grid) ], "master_panel": this });\n'
20130515 '    var languages_panel1364 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Langues", "hideCheckBoxLabels": true, "items": [ cv_LanguageKnowledgesByPerson_grid1327, courses_CourseRequestsByPerson_grid1363 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_SkillsByPerson_grid1371 = new Lino.cv.SkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var cv_SoftSkillsByPerson_grid1378 = new Lino.cv.SoftSkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SoftSkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var skills1379 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Autres talents", "anchor": "-20 -10", "growMax": 2000, "name": "skills" });\n'
20130515 '    var competences_1_panel1380 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_SkillsByPerson_grid1371, cv_SoftSkillsByPerson_grid1378, { "items": skills1379, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 28 } ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 135, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var cv_ObstaclesByPerson_grid1388 = new Lino.cv.ObstaclesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.ObstaclesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var obstacles1389 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Obstacles", "anchor": "-20 -10", "growMax": 2000, "name": "obstacles" });\n'
20130515 '    var competences_2_panel1390 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_ObstaclesByPerson_grid1388, { "items": obstacles1389, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 44 } ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 90, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var competences_panel1392 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Comp\\u00e9tences", "hideCheckBoxLabels": true, "items": [ competences_1_panel1380, competences_2_panel1390 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_CandidaturesByPerson_grid1401 = new Lino.jobs.CandidaturesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Demandes d\'emploi", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var isip_ContractsByPerson_grid1505 = new Lino.isip.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.isip.ContractsByPerson.grid) ] });\n'
20130515 '    var jobs_ContractsByPerson_grid1613 = new Lino.jobs.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByPerson.grid) ] });\n'
20130515 '    var contracts_panel1614 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Contrats", "hideCheckBoxLabels": true, "items": [ isip_ContractsByPerson_grid1505, jobs_ContractsByPerson_grid1613 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByPerson_grid1629 = new Lino.pcsw.NotesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Historique", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var cal_EventsByProject_grid1655 = new Lino.cal.EventsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByProject.grid) ] });\n'
20130515 '    var cal_TasksByProject_grid1678 = new Lino.cal.TasksByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByProject.grid) ], "master_panel": this });\n'
20130515 '    var calendar_panel1679 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_EventsByProject_grid1655, cal_TasksByProject_grid1678 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByProject_grid1691 = new Lino.outbox.MailsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByProject.grid) ], "master_panel": this });\n'
20130515 '    var postings_PostingsByProject_grid1702 = new Lino.postings.PostingsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByProject.grid) ], "master_panel": this });\n'
20130515 '    var outbox_panel1703 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Correspondence", "hideCheckBoxLabels": true, "items": [ outbox_MailsByProject_grid1691, postings_PostingsByProject_grid1702 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var activity1704 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/activity", "method": "GET" }) }) });\n'
20130515 '    var client_state1705 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "client_stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates, "name": "client_state" });\n'
20130515 '    var refusal_reason1706 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "refusal reason", "name": "refusal_reason", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "hiddenName": "refusal_reasonHidden" });\n'
20130515 '    var misc_1_panel1707 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1704, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1705, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refusal_reason1706, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_cpas1711 = new Ext.form.Checkbox({ "boxLabel": "client CPAS", "hideLabel": true, "checked": false, "name": "is_cpas", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_senior1712 = new Ext.form.Checkbox({ "boxLabel": "retrait\\u00e9", "hideLabel": true, "checked": false, "name": "is_senior", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_obsolete1713 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var misc_2_panel1714 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_cpas1711, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_senior1712, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1713, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1718 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var remarks21719 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque (Bureau Social)", "anchor": "-20 -10", "growMax": 2000, "name": "remarks2" });\n'
20130515 '    var misc_3_panel1720 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 225, "hideCheckBoxLabels": true, "items": [ { "items": remarks1718, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 }, { "items": remarks21719, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 } ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByPerson_grid1723 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var households_MembersByPerson_grid1724 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var misc_4_panel1725 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_RolesByPerson_grid1723, households_MembersByPerson_grid1724 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var misc_panel1726 = new Ext.Panel({ "layout": "vbox", "title": "Divers", "items": [ misc_1_panel1707, misc_2_panel1714, misc_3_panel1720, misc_4_panel1725 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cbss_identify_person_disp1727 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates IdentifyPerson", "name": "cbss_identify_person", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_manage_access_disp1728 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates ManageAccess", "name": "cbss_manage_access", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_retrieve_ti_groups_disp1729 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates Tx25", "name": "cbss_retrieve_ti_groups", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_1_panel1730 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_identify_person_disp1727, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_manage_access_disp1728, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_retrieve_ti_groups_disp1729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cbss_summary_htmlbox1734 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "cbss_summary", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Sommaire BCSS", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var cbss_panel1735 = new Ext.Panel({ "layout": "vbox", "title": "BCSS", "items": [ cbss_1_panel1730, cbss_summary_htmlbox1734 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 126, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1739 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1186, status_tab_panel1255, coaching_panel1296, education_panel1320, languages_panel1364, competences_panel1392, jobs_CandidaturesByPerson_grid1401, contracts_panel1614, pcsw_NotesByPerson_grid1629, calendar_panel1679, outbox_panel1703, misc_panel1726, cbss_panel1735 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1112.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1112.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      image_htmlbox1184.refresh();\n'
20130515 '      pcsw_ExclusionsByPerson_grid1238.on_master_changed();\n'
20130515 '      UploadsByController_htmlbox1252.refresh();\n'
20130515 '      pcsw_ContactsByClient_grid1286.on_master_changed();\n'
20130515 '      pcsw_CoachingsByClient_grid1294.on_master_changed();\n'
20130515 '      jobs_StudiesByPerson_grid1309.on_master_changed();\n'
20130515 '      jobs_ExperiencesByPerson_grid1319.on_master_changed();\n'
20130515 '      cv_LanguageKnowledgesByPerson_grid1327.on_master_changed();\n'
20130515 '      courses_CourseRequestsByPerson_grid1363.on_master_changed();\n'
20130515 '      cv_SkillsByPerson_grid1371.on_master_changed();\n'
20130515 '      cv_SoftSkillsByPerson_grid1378.on_master_changed();\n'
20130515 '      cv_ObstaclesByPerson_grid1388.on_master_changed();\n'
20130515 '      jobs_CandidaturesByPerson_grid1401.on_master_changed();\n'
20130515 '      isip_ContractsByPerson_grid1505.on_master_changed();\n'
20130515 '      jobs_ContractsByPerson_grid1613.on_master_changed();\n'
20130515 '      pcsw_NotesByPerson_grid1629.on_master_changed();\n'
20130515 '      cal_EventsByProject_grid1655.on_master_changed();\n'
20130515 '      cal_TasksByProject_grid1678.on_master_changed();\n'
20130515 '      outbox_MailsByProject_grid1691.on_master_changed();\n'
20130515 '      postings_PostingsByProject_grid1702.on_master_changed();\n'
20130515 '      contacts_RolesByPerson_grid1723.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1724.on_master_changed();\n'
20130515 '      cbss_summary_htmlbox1734.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1111.on('change',Lino.chooser_handler(city1112,'country'));\n"
20130515 '      Lino.pcsw.Clients.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var event_type728 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type729 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel730 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type728, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var subject733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project734 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company735 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel736 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project734, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company735, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel739 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 72, "autoScroll": false, "items": [ main_1_panel730, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject733, "anchor": "-20", "labelAlign": "top" }, main_3_panel736 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2355 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2357 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var main_2_panel2358 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 70, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2356, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2357, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var history2361 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_panel2362 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2355, "anchor": "-20", "labelAlign": "top" }, main_2_panel2358, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2361, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 69,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1881 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var provider1882 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }) });\n'
20130515 '    var contract_type1883 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }) });\n'
20130515 '    var type1884 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }) });\n'
20130515 '    var id1885 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel1886 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1881, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1882, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type1883, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1884, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1885, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var sector1892 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }) });\n'
20130515 '    var function1893 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }) });\n'
20130515 '    var capacity1894 = new Ext.form.NumberField({ "fieldLabel": "Capacit\\u00e9", "name": "capacity", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var hourly_rate1895 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var main_2_panel1896 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1892, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1893, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": capacity1894, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1895, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1901 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var CandidaturesByJob_grid1910 = new Lino.jobs.CandidaturesByJob.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByJob.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var main_3_panel1911 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1901, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 33 }, CandidaturesByJob_grid1910 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var ContractsByJob_grid1941 = new Lino.jobs.ContractsByJob.GridPanel({ "flex": 41, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByJob.grid) ], "master_panel": this });\n'
20130515 '    var main_panel1942 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1886, main_2_panel1896, main_3_panel1911, ContractsByJob_grid1941 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1942;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1893.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      CandidaturesByJob_grid1910.on_master_changed();\n'
20130515 '      ContractsByJob_grid1941.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1892.on('change',Lino.chooser_handler(function1893,'sector'));\n"
20130515 '      Lino.jobs.Jobs.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Jobs.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name297 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var country298 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }) });\n'
20130515 '    var region299 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }) });\n'
20130515 '    var city300 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code301 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel302 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country298, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region299, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city300, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code301, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr1307 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix308 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street309 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no310 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box311 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel312 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix308, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street309, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no310, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box311, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2317 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel318 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name297, "anchor": "-20", "labelAlign": "top" }, address_box_2_panel302, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr1307, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel312, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2317, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id322 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language323 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel324 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id322, "labelAlign": "top" }, { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language323, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email327 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url328 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone329 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm330 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax331 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel332 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm330, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax331, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel335 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel324, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email327, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url328, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone329, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel332 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel339 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel318, contact_box_panel335 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks340 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var activity341 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1342 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2343 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete344 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_2_panel345 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity341, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1342, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2343, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete344, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_person350 = new Ext.form.Checkbox({ "boxLabel": "est une Personne (<a href=\\"javascript:Lino.show_mti_child(\'is_person\',Lino.contacts.Persons.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Personne","Si ce partenaire est \\u00e9galement une personne.") }, "hideLabel": true, "name": "is_person", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_company351 = new Ext.form.Checkbox({ "boxLabel": "est une Organisation (<a href=\\"javascript:Lino.show_mti_child(\'is_company\',Lino.contacts.Companies.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Organisation","Si ce partenaire est \\u00e9galement une organisation.") }, "hideLabel": true, "name": "is_company", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_household352 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un m\\u00e9nage (<a href=\\"javascript:Lino.show_mti_child(\'is_household\',Lino.households.Households.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_household" });\n'
20130515 '    var created353 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified354 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_3_panel355 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_person350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_company351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_household352, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created353, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified354, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel361 = new Ext.Panel({ "flex": 58, "layout": "vbox", "items": [ { "items": remarks340, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, bottom_box_2_panel345, bottom_box_3_panel355 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_panel363 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel339, bottom_box_panel361 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var changes_ChangesByMaster_grid388 = new Lino.changes.ChangesByMaster.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Changes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.changes.ChangesByMaster.grid) ], "master_panel": this });\n'
20130515 '    var main_panel503 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel363, changes_ChangesByMaster_grid388 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region299.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      changes_ChangesByMaster_grid388.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country298.on('change',Lino.chooser_handler(region299,'country'));\n"
20130515 "      country298.on('change',Lino.chooser_handler(city300,'country'));\n"
20130515 "      region299.on('change',Lino.chooser_handler(city300,'region'));\n"
20130515 '      Lino.contacts.Partners.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 76,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2099 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var start_date2100 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var offer2101 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/Courses/offer", "method": "GET" }) }), "name": "offer" });\n'
20130515 '    var title2102 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Name", "anchor": "-20", "name": "title" });\n'
20130515 '    var main_1_panel2103 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2099, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2100, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer2101, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2102, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark2108 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Remarque", "anchor": "-20", "name": "remark" });\n'
20130515 '    var courses_ParticipantsByCourse_grid2114 = new Lino.courses.ParticipantsByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.ParticipantsByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var courses_CandidatesByCourse_grid2121 = new Lino.courses.CandidatesByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.CandidatesByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var main_panel2122 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel2103, { "items": remark2108, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, courses_ParticipantsByCourse_grid2114, courses_CandidatesByCourse_grid2121 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2122;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      courses_ParticipantsByCourse_grid2114.on_master_changed();\n'
20130515 '      courses_CandidatesByCourse_grid2121.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CoursesByOffer.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var body_htmlbox2452 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "body", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2453 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ body_htmlbox2452 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2453;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body_htmlbox2452.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user135 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project136 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel137 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user135, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project136, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel140 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary134, "anchor": "-20", "labelAlign": "top" }, main_2_panel137 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel140;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var isocode204 = new Ext.form.TextField({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">ISO code</span>", "name": "isocode", "boxMinWidth": Lino.chars2width(4), "listeners": { "render": Lino.quicktip_renderer("ISO code","        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.") }, "maxLength": 4, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name205 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr206 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl207 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var short_code208 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Short code","A short abbreviation for regional usage. Obsolete.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Short code</span>", "name": "short_code", "maxLength": 4, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var inscode209 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this country used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20" });\n'
20130515 '    var main_1_panel210 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": isocode204, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name205, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr206, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl207, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": short_code208, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode209, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var countries_CitiesByCountry_grid533 = new Lino.countries.CitiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 48 });\n'
20130515 '    var jobs_StudiesByCountry_grid546 = new Lino.jobs.StudiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 51 });\n'
20130515 '    var main_2_panel547 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ countries_CitiesByCountry_grid533, jobs_StudiesByCountry_grid546 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel548 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel210, main_2_panel547 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel548;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      countries_CitiesByCountry_grid533.on_master_changed();\n'
20130515 '      jobs_StudiesByCountry_grid546.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Countries.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name226 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr227 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl228 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var country229 = new Lino.TwinCombo({ "fieldLabel": "Pays", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/country", "method": "GET" }) }), "name": "country" });\n'
20130515 '    var inscode230 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this place used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 5, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "anchor": "-20" });\n'
20130515 '    var main_1_panel231 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name226, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr227, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl228, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country229, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode230, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var parent237 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Part of</span>", "name": "parent", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "listeners": { "render": Lino.quicktip_renderer("Part of","The superordinate geographic place of which this place is a part.") }, "selectOnFocus": true, "hiddenName": "parentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/parent", "method": "GET" }) }) });\n'
20130515 '    var type238 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Place Type", "name": "type", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/type", "method": "GET" }) }), "hiddenName": "typeHidden" });\n'
20130515 '    var id239 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel240 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": parent237, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type238, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id239, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var CitiesByCity_grid528 = new Lino.countries.CitiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var contacts_PartnersByCity_grid529 = new Lino.contacts.PartnersByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.PartnersByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var jobs_StudiesByCity_grid530 = new Lino.jobs.StudiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel531 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_PartnersByCity_grid529, jobs_StudiesByCity_grid530 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel532 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel231, main_2_panel240, CitiesByCity_grid528, main_4_panel531 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel532;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type238.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '      CitiesByCity_grid528.on_master_changed();\n'
20130515 '      contacts_PartnersByCity_grid529.on_master_changed();\n'
20130515 '      jobs_StudiesByCity_grid530.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country229.on('change',Lino.chooser_handler(type238,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.countries.CitiesByCity.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.About.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var main_panel2444 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ { "html": "<div class=\\"htmlText\\"><span>This is <a href=\\"http://welfare.lino-framework.org\\" target=\\"_blank\\">Lino Welfare</a> 1.1.4 using <a href=\\"http://site.lino-framework.org\\" target=\\"_blank\\">djangosite</a> 0.1.4, <a href=\\"http://www.python.org/\\" target=\\"_blank\\">Python</a> 2.7.3, <a href=\\"http://www.djangoproject.com\\" target=\\"_blank\\">Django</a> 1.5.1, <a href=\\"http://babel.edgewall.org/\\" target=\\"_blank\\">Babel</a> 1.0dev-r661, <a href=\\"http://www.lino-framework.org\\" target=\\"_blank\\">Lino</a> 1.6.7, <a href=\\"http://jinja.pocoo.org/\\" target=\\"_blank\\">Jinja</a> 2.6, <a href=\\"http://sphinx-doc.org/\\" target=\\"_blank\\">Sphinx</a> 1.2b1, <a href=\\"http://labix.org/python-dateutil\\" target=\\"_blank\\">python-dateutil</a> 2.1, <a href=\\"http://pypi.python.org/pypi/odfpy\\" target=\\"_blank\\">OdfPy</a> ODFPY/0.9.6, <a href=\\"http://docutils.sourceforge.net/\\" target=\\"_blank\\">docutils</a> 0.10, <a href=\\"https://fedorahosted.org/suds/\\" target=\\"_blank\\">suds</a> 0.4, <a href=\\"http://pyyaml.org/\\" target=\\"_blank\\">PyYaml</a> 3.10, <a href=\\"http://appyframework.org/pod.html\\" target=\\"_blank\\">Appy</a> 0.8.3 (2013/02/22 15:29)</span><p>Server uptime : <b>mercredi 15 mai 2013 at 11:45:06.556847</b></p><p>Source timestamps:</p><ul><li>djangosite : <b>mercredi 15 mai 2013 at 11:02:05.242649</b></li><li>lino : <b>mercredi 15 mai 2013 at 10:57:20.598657</b></li><li>lino_welfare : <b>mercredi 15 mai 2013 at 09:04:22.174857</b></li><li>atelier : <b>mardi 14 mai 2013 at 21:14:51.339674</b></li><li>django : <b>mercredi 8 mai 2013 at 10:18:59.384324</b></li><li>north : <b>dimanche 5 mai 2013 at 22:52:00.438131</b></li></ul></div>", "xtype": "label" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2444;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.about.About.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id185 = new Ext.form.TextField({ "fieldLabel": "id", "name": "id", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20", "allowBlank": false });\n'
20130515 '    var iso2186 = new Ext.form.TextField({ "fieldLabel": "iso2", "name": "iso2", "maxLength": 2, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "anchor": "-20" });\n'
20130515 '    var name187 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr188 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel190 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id185, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": iso2186, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name187, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr188, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cv_KnowledgesByLanguage_grid202 = new Lino.cv.KnowledgesByLanguage.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.KnowledgesByLanguage.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var main_panel203 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel190, cv_KnowledgesByLanguage_grid202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel203;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cv_KnowledgesByLanguage_grid202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Languages.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 77,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix2017 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name2018 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id2019 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language2020 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel2021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix2017, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2018, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2019, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id2026 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity2027 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type2028 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel2029 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id2026, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity2027, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2028, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account12033 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account22034 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete2035 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel2036 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account12033, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account22034, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete2035, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel2040 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel2021, intro_box_2_panel2029, intro_box_3_panel2036 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country2041 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region2042 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel2043 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country2041, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region2042, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city2046 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code2047 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel2048 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city2046, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code2047, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix2051 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street2052 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no2053 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box2054 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel2055 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix2051, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street2052, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no2053, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box2054, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr22060 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel2061 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel2043, box3_2_panel2048, box3_3_panel2055, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr22060, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email2063 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url2064 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone2065 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm2066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel2067 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email2063, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url2064, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone2065, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm2066, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel2072 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel2061, box4_panel2067 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks2073 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid2074 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel2075 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks2073, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid2074 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel2077 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel2040, address_box_panel2072, bottom_box_panel2075 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid2078 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var CourseOffersByProvider_grid2126 = new Lino.courses.CourseOffersByProvider.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Offres de cours", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseOffersByProvider.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2127 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel2077, pcsw_NotesByCompany_grid2078, CourseOffersByProvider_grid2126 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2127;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region2042.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid2074.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid2078.on_master_changed();\n'
20130515 '      CourseOffersByProvider_grid2126.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2041.on('change',Lino.chooser_handler(region2042,'country'));\n"
20130515 "      country2041.on('change',Lino.chooser_handler(city2046,'country'));\n"
20130515 "      region2042.on('change',Lino.chooser_handler(city2046,'region'));\n"
20130515 '      Lino.courses.CourseProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username38 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id39 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var profile40 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var box1_1_panel41 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username38, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id39, "labelAlign": "top" }, { "flex": 63, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile40, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name45 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name46 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var partner47 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel48 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name45, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name46, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner47, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email52 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var language53 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_3_panel54 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email52, "labelAlign": "top" }, { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language53, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created57 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified58 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box1_4_panel59 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created57, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified58, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box1_panel62 = new Ext.Panel({ "flex": 66, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box1_1_panel41, box1_2_panel48, box1_3_panel54, box1_4_panel59 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel66 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel62 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks67 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var AuthoritiesGiven_grid70 = new Lino.users.AuthoritiesGiven.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.users.AuthoritiesGiven.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var general_2_panel71 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks67, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, AuthoritiesGiven_grid70 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel73 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel66, general_2_panel71 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var calendar74 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Calendrier par d\\u00e9faut</span>", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "listeners": { "render": Lino.quicktip_renderer("Calendrier par d\\u00e9faut","Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.") }, "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/calendar", "method": "GET" }) }) });\n'
20130515 '    var access_class75 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s par d\\u00e9faut</span>", "allowBlank": false, "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s par d\\u00e9faut","The default access class for your calendar events and tasks.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses, "name": "access_class" });\n'
20130515 '    var cal_left_1_panel76 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar74, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class75, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_SubscriptionsByUser_grid83 = new Lino.cal.SubscriptionsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.SubscriptionsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var cal_left_panel84 = new Ext.Panel({ "flex": 33, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ cal_left_1_panel76, cal_SubscriptionsByUser_grid83 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByUser_grid142 = new Lino.cal.TasksByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var cal_1_panel143 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_left_panel84, cal_TasksByUser_grid142 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var newcomer_quota144 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Quota nouvelles demandes","Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Quota nouvelles demandes</span>", "name": "newcomer_quota", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var coaching_type145 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Service</span>", "name": "coaching_type", "pageSize": 20, "emptyText": "Choisir Service...", "listeners": { "render": Lino.quicktip_renderer("Service","The default CoachingType used when creating Coachings.") }, "selectOnFocus": true, "hiddenName": "coaching_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/coaching_type", "method": "GET" }) }) });\n'
20130515 '    var coaching_supervisor146 = new Ext.form.Checkbox({ "boxLabel": "Notify me when a coach has been assigned", "listeners": { "render": Lino.quicktip_renderer("Notify me when a coach has been assigned","Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.") }, "hideLabel": true, "checked": false, "name": "coaching_supervisor", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var newcomers_CompetencesByUser_grid152 = new Lino.newcomers.CompetencesByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.newcomers.CompetencesByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var coaching_a_panel153 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ { "items": newcomer_quota144, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_type145, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_supervisor146, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, newcomers_CompetencesByUser_grid152 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 369, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_CoachingsByUser_grid164 = new Lino.pcsw.CoachingsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var coaching_1_panel165 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Accompagnement", "hideCheckBoxLabels": true, "items": [ coaching_a_panel153, pcsw_CoachingsByUser_grid164 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel166 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel73, cal_1_panel143, coaching_1_panel165 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel166;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      AuthoritiesGiven_grid70.on_master_changed();\n'
20130515 '      cal_SubscriptionsByUser_grid83.on_master_changed();\n'
20130515 '      cal_TasksByUser_grid142.on_master_changed();\n'
20130515 '      newcomers_CompetencesByUser_grid152.on_master_changed();\n'
20130515 '      pcsw_CoachingsByUser_grid164.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2440 = new Lino.HtmlBoxPanel({ "flex": 1, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "north", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var welcome_htmlbox2441 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "center", "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var main_panel2442 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2440, welcome_htmlbox2441 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2442;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2440.refresh();\n'
20130515 '      welcome_htmlbox2441.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 10,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var time372 = new Ext.form.DisplayField({ "fieldLabel": "time", "name": "time", "selectOnFocus": true, "anchor": "-20", "value": "<br>", "allowBlank": false });\n'
20130515 '    var user373 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/Changes/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var type374 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Change Type", "allowBlank": false, "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.ChangeTypes, "name": "type" });\n'
20130515 '    var master_disp375 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Signal\\u00e9tique", "anchor": "-20", "name": "master" });\n'
20130515 '    var object_disp376 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Object", "anchor": "-20", "name": "object" });\n'
20130515 '    var id377 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel378 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": time372, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user373, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type374, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": master_disp375, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": object_disp376, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id377, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var diff385 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Changes", "anchor": "-20 -10", "growMax": 2000, "name": "diff" });\n'
20130515 '    var main_panel386 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ main_1_panel378, { "items": diff385, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel386;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.changes.ChangesByMaster.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 79,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2084 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var title2085 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "title", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var content2086 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var provider2087 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "name": "provider" });\n'
20130515 '    var main_1_panel2088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2084, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2085, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content2086, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider2087, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 198, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2093 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "center", "title": "Description", "name": "description" });\n'
20130515 '    var CoursesByOffer_grid2124 = new Lino.courses.CoursesByOffer.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "south", "tools": [ Lino.show_in_own_window_button(Lino.courses.CoursesByOffer.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2125 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel2088, description2093, CoursesByOffer_grid2124 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2125;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2093.refresh();\n'
20130515 '      CoursesByOffer_grid2124.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseOffers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name998 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name999 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var gender1000 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var title1001 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var name_box_panel1002 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name998, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name999, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1000, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1001, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1007 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }) });\n'
20130515 '    var region1008 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }) });\n'
20130515 '    var city1009 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1010 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel1011 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1007, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1008, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1009, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1010, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr11016 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix1017 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1018 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1019 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1020 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel1021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1017, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1018, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1019, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21026 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel1027 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ name_box_panel1002, address_box_2_panel1011, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr11016, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel1021, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21026, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1030 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1031 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel1032 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1030, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1031, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1035 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1036 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1037 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1038 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax1039 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel1040 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1038, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1039, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel1043 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel1032, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1035, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1036, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1037, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel1040 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1047 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel1027, contact_box_panel1043 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var activity1048 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account11049 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21050 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1051 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_1_panel1052 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1048, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11049, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21050, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1051, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_client1057 = new Ext.form.Checkbox({ "boxLabel": "est un client (<a href=\\"javascript:Lino.show_mti_child(\'is_client\',Lino.pcsw.Clients.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est un client","Whether this Person is a Client.") }, "hideLabel": true, "name": "is_client", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var created1058 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1059 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_2_panel1060 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_client1057, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1058, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1059, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1064 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByPerson_grid1069 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var households_MembersByPerson_grid1076 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 36 });\n'
20130515 '    var bottom_box_3_panel1077 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1064, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 36 }, contacts_RolesByPerson_grid1069, households_MembersByPerson_grid1076 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel1079 = new Ext.Panel({ "flex": 58, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ bottom_box_1_panel1052, bottom_box_2_panel1060, bottom_box_3_panel1077 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var general_panel1080 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1047, bottom_box_panel1079 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1084 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1080 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1084;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1008.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByPerson_grid1069.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1076.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1007.on('change',Lino.chooser_handler(region1008,'country'));\n"
20130515 "      country1007.on('change',Lino.chooser_handler(city1009,'country'));\n"
20130515 "      region1008.on('change',Lino.chooser_handler(city1009,'region'));\n"
20130515 '      Lino.contacts.Persons.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name743 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language744 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel746 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language744, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email745, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type749 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var id750 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_3_panel751 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type749, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id750, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel754 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name743, "anchor": "-20", "labelAlign": "top" }, main_2_panel746, main_3_panel751 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel754;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username167 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var email168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_1_panel169 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username167, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email168, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name172 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var main_2_panel174 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name172, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name173, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var partner177 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var language178 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var profile179 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var main_4_panel180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language178, "labelAlign": "top" }, { "flex": 69, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel183 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ main_1_panel169, main_2_panel174, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner177, "anchor": "-20", "labelAlign": "top" }, main_4_panel180 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel183;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2407 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2408 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2409 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2407, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2408, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type2412 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var valid_until2413 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2414 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2412, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2413, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var description2417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var main_panel2418 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ main_1_panel2409, main_2_panel2414, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2417, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2418;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1547 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1548 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1549 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1550 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1551 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_1_panel1552 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1547, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1548, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1549, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1550, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1551, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var job1558 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var type1559 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1560 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1561 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1562 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel1563 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1558, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1559, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1560, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1561, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1562, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1569 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var duration1570 = new Lino.SimpleRemoteComboFieldElement({ "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "fieldLabel": "dur\\u00e9e (jours)", "name": "duration", "selectOnFocus": true, "anchor": "-20", "value": null });\n'
20130515 '    var applies_until1571 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1572 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var box1_3_panel1573 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1569, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": duration1570, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1571, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1572, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var regime1578 = new Lino.TwinCombo({ "fieldLabel": "R\\u00e9gime de travail", "name": "regime", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Regimes.detail)}, "emptyText": "Choisir R\\u00e9gime de travail...", "selectOnFocus": true, "hiddenName": "regimeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }) });\n'
20130515 '    var schedule1579 = new Lino.TwinCombo({ "fieldLabel": "Horaire", "name": "schedule", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Schedules.detail)}, "emptyText": "Choisir Horaire...", "selectOnFocus": true, "hiddenName": "scheduleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }) });\n'
20130515 '    var hourly_rate1580 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var refund_rate1581 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "tarif de remboursement", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }), "name": "refund_rate" });\n'
20130515 '    var box1_4_panel1582 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 207, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": regime1578, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": schedule1579, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1580, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refund_rate1581, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var reference_person1587 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "persone de r\\u00e9f\\u00e9rence", "anchor": "-20", "name": "reference_person" });\n'
20130515 '    var build_time1588 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var box1_5_panel1589 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": reference_person1587, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time1588, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1592 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1593 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1594 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1595 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var box1_6_panel1596 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1592, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1593, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1594, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1595, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var responsibilities1601 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "responsibilities", "title": "responsabilit\\u00e9s" });\n'
20130515 '    var box1_panel1602 = new Ext.Panel({ "flex": 70, "layout": "vbox", "items": [ box1_1_panel1552, box1_2_panel1563, box1_3_panel1573, box1_4_panel1582, box1_5_panel1589, box1_6_panel1596, responsibilities1601 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 0, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cal_EventsByController_grid1603 = new Lino.cal.EventsByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ] });\n'
20130515 '    var cal_TasksByController_grid1604 = new Lino.cal.TasksByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "master_panel": this });\n'
20130515 '    var right_panel1605 = new Lino.VBorderPanel({ "flex": 30, "border": false, "hideCheckBoxLabels": true, "items": [ cal_EventsByController_grid1603, cal_TasksByController_grid1604 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel1606 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1602, right_panel1605 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel1607 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel1606 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1607;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1561.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1601.refresh();\n'
20130515 '      cal_EventsByController_grid1603.on_master_changed();\n'
20130515 '      cal_TasksByController_grid1604.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1560.on('change',Lino.chooser_handler(contact_person1561,'company'));\n"
20130515 '      Lino.jobs.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1558.on("change",function(){this.save()},this);\n'
20130515 '    company1560.on("change",function(){this.save()},this);\n'
20130515 '    contact_person1561.on("change",function(){this.save()},this);\n'
20130515 '    contact_role1562.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name920 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl922 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel923 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name920, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr921, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl922, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type927 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var invite_team_members928 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color929 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var main_2_panel930 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type927, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members928, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color929, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 72, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel934 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel923, main_2_panel930 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel934;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2233 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2234 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2235 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2236 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2237 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2238 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2239 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2240 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2233, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2234, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2235, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2236, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2237, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2238, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2239, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var action2248 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2249 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2250 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2251 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2248, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2249, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2250, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2255 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2256 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2257 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2255, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2256, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2260 = new Ext.form.FieldSet({ "flex": 37, "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2251, p1_2_panel2257 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2261 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2262 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2263 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2264 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2261, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2262, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2263, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2268 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2269 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2270 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2271 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2268, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2269, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2270, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2275 = new Ext.form.FieldSet({ "flex": 62, "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2264, proof_2_panel2271 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2276 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2260, proof_panel2275 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var result_htmlbox2277 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "result", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "R\\u015bultat", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var request_panel2278 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2240, parameters_panel2276, result_htmlbox2277 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2286 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2278 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2286;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2255.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      result_htmlbox2277.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2234.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2158 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2159 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2160 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2161 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2162 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2163 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2164 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2165 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2159, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2160, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2161, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2162, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2163, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2164, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var p1_panel2175 = new Ext.form.FieldSet({ "flex": 25, "layout": "vbox", "title": "avec NISS", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ { "items": national_id2173, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "flex": 50, "html": "<br/>", "xtype": "label" } ], "hideCheckBoxLabels": true, "labelWidth": 45, "border": false, "labelAlign": "top" });\n'
20130515 '    var first_name2177 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2178 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2179 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2177, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2178, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2184 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2185 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2186 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2187 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2184, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2185, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2186, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2191 = new Ext.form.FieldSet({ "flex": 75, "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2180, p2_2_panel2187 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2192 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2175, p2_panel2191 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var IdentifyPersonResult_grid2202 = new Lino.cbss.IdentifyPersonResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.IdentifyPersonResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var request_panel2203 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2165, parameters_panel2192, IdentifyPersonResult_grid2202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2204 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2205 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2206 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2207 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2204, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2205, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2206, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2211 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2203, technical_panel2207 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2211;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      IdentifyPersonResult_grid2202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2159.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2386 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2387 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2388 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2386, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2387, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type2391 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var description2392 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var valid_until2393 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2394 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2391, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2392, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2393, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var modified2398 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var created2399 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var owner_disp2400 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_3_panel2401 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified2398, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created2399, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp2400, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid2405 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2406 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2388, main_2_panel2394, main_3_panel2401, cal_TasksByController_grid2405 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2406;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cal_TasksByController_grid2405.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var app_disp2425 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "app_label", "name": "app", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp2426 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "name", "name": "name", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp2427 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "docstring", "name": "docstring", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows2428 = new Ext.form.NumberField({ "disabled": true, "fieldLabel": "Rows", "anchor": "-20", "name": "rows" });\n'
20130515 '    var main_1_panel2429 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": app_disp2425, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_disp2426, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": docstring_disp2427, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": rows2428, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var about_FieldsByModel_grid2438 = new Lino.about.FieldsByModel.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.about.FieldsByModel.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2439 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2429, about_FieldsByModel_grid2438 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2439;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      about_FieldsByModel_grid2438.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.about.Models.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 66,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Name", "anchor": "-20", "name": "name" });\n'
20130515 '    var provider1976 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }) });\n'
20130515 '    var sector1977 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }) });\n'
20130515 '    var function1978 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel1979 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1975, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1976, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1977, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1978, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var selection_from1984 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de s\\u00e9lection", "anchor": "-20", "name": "selection_from" });\n'
20130515 '    var selection_until1985 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin de s\\u00e9lection", "anchor": "-20", "name": "selection_until" });\n'
20130515 '    var start_date1986 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_2_panel1987 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_from1984, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_until1985, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date1986, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1991 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var ExperiencesByOffer_grid2003 = new Lino.jobs.ExperiencesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var CandidaturesByOffer_grid2013 = new Lino.jobs.CandidaturesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel2014 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ ExperiencesByOffer_grid2003, CandidaturesByOffer_grid2013 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2015 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel1979, main_2_panel1987, { "items": remark1991, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 41 }, main_4_panel2014 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2015;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1978.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      ExperiencesByOffer_grid2003.on_master_changed();\n'
20130515 '      CandidaturesByOffer_grid2013.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1977.on('change',Lino.chooser_handler(function1978,'sector'));\n"
20130515 '      Lino.jobs.Offers.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Offers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 75,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date_submitted1338 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date d\\u00e9ntr\\u00e9e","When this request has been submitted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date d\\u00e9ntr\\u00e9e</span>", "name": "date_submitted", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var person1339 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Client</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "listeners": { "render": Lino.quicktip_renderer("Client","Le client qui d\\u00e9sire suivre un cours.") }, "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var content1340 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Contenu</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "listeners": { "render": Lino.quicktip_renderer("Contenu","Der gew\\u00fcnschte Kursinhalt.)") }, "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var offer1341 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "name": "offer", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/offer", "method": "GET" }) }) });\n'
20130515 '    var urgent1342 = new Ext.form.Checkbox({ "boxLabel": "cause professionnelle", "listeners": { "render": Lino.quicktip_renderer("cause professionnelle","Check this if the request is needed for job search.") }, "hideLabel": true, "checked": false, "name": "urgent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1343 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_submitted1338, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person1339, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content1340, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer1341, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": urgent1342, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var course1349 = new Lino.TwinCombo({ "fieldLabel": "Cours trouv\\u00e9", "name": "course", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.Courses.detail)}, "emptyText": "Choisir Cours...", "selectOnFocus": true, "hiddenName": "courseHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/course", "method": "GET" }) }) });\n'
20130515 '    var state1350 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "name": "state" });\n'
20130515 '    var date_ended1351 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var id1352 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel1353 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course1349, "labelAlign": "top" }, { "flex": 26, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state1350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1352, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1358 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var UploadsByController_htmlbox1359 = new Lino.HtmlBoxPanel({ "flex": 33, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel1360 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1358, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, UploadsByController_htmlbox1359 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1362 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1343, main_2_panel1353, main_3_panel1360 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1341.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '      UploadsByController_htmlbox1359.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1340.on('change',Lino.chooser_handler(offer1341,'content'));\n"
20130515 '      Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    offer1341.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2365 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var name2366 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2367 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2368 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2369 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2365, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2366, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2367, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2368, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 108, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2374 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "description" });\n'
20130515 '    var text2375 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "south", "title": "Texte mod\\u00e8le", "name": "text" });\n'
20130515 '    var main_panel2376 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ main_1_panel2369, { "flex": 5, "layout": "form", "xtype": "panel", "items": description2374, "region": "center", "labelAlign": "top", "split": true }, text2375 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2376;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text2375.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2287 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var action2288 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2289 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2290 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2291 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2288, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2289, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2290, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2295 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2296 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2297 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2295, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2296, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2300 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2291, p1_2_panel2297 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id2301 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2302 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2303 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2304 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2301, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2302, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2303, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2309 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2310 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2311 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2308, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2309, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2310, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2315 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2304, proof_2_panel2311 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2316 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2287, "anchor": "-20", "labelAlign": "top" }, p1_panel2300, proof_panel2315 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2316;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2295.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2287.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type850 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var name851 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr852 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl853 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var id854 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel855 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type850, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name851, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr852, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl853, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id854, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var url_template861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL template", "anchor": "-20", "name": "url_template" });\n'
20130515 '    var username862 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Username", "anchor": "-20", "name": "username" });\n'
20130515 '    var password863 = new Ext.form.TextField({ "fieldLabel": "Password", "name": "password", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "inputType": "password" });\n'
20130515 '    var main_2_panel864 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": url_template861, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username862, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": password863, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var readonly868 = new Ext.form.Checkbox({ "boxLabel": "read-only", "hideLabel": true, "checked": false, "name": "readonly", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var invite_team_members869 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color870 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var start_date871 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_3_panel872 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": readonly868, "labelAlign": "top" }, { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members869, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color870, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date871, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var build_method877 = new Lino.ChoicesFieldElement({ "fieldLabel": "M\\u00e9thode de construction", "name": "build_method", "selectOnFocus": true, "anchor": "-20", "store": [ [ "appyodt", "AppyOdtBuildMethod" ], [ "appypdf", "AppyPdfBuildMethod" ], [ "appyrtf", "AppyRtfBuildMethod" ], [ "latex", "LatexBuildMethod" ], [ "pisa", "PisaBuildMethod" ], [ "rtf", "RtfBuildMethod" ] ], "hiddenName": "build_methodHidden" });\n'
20130515 '    var template878 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "Mod\\u00e8le", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/template", "method": "GET" }) }), "name": "template" });\n'
20130515 '    var email_template879 = new Lino.SimpleRemoteComboFieldElement({ "listeners": { "render": Lino.quicktip_renderer("Email template","The name of the file to be used as template \\nwhen creating an email from a mailable of this type.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Email template</span>", "name": "email_template", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/email_template", "method": "GET" }) }) });\n'
20130515 '    var attach_to_email880 = new Ext.form.Checkbox({ "boxLabel": "Attach to email", "listeners": { "render": Lino.quicktip_renderer("Attach to email","Whether the printable file should be attached to the email\\nwhen creating an email from a mailable of this type.\\n") }, "hideLabel": true, "checked": false, "name": "attach_to_email", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_4_panel881 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_method877, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": template878, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email_template879, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": attach_to_email880, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var main_panel919 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel855, main_2_panel864, main_3_panel872, main_4_panel881 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel919;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      template878.setContextValue('build_method',record ? record.data['build_methodHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      build_method877.on('change',Lino.chooser_handler(template878,'build_method'));\n"
20130515 '      Lino.cal.PanelCalendars.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 41,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type935 = new Lino.TwinCombo({ "fieldLabel": "Type de m\\u00e9nage", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.households.Types.detail)}, "emptyText": "Choisir Type de m\\u00e9nage...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }) });\n'
20130515 '    var name936 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language937 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var id938 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var intro_box_1_panel939 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type935, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name936, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language937, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id938, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var country944 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }) });\n'
20130515 '    var region945 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel946 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country944, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region945, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city949 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code950 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel951 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city949, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code950, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix954 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street955 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no956 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box957 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel958 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix954, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street955, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no956, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box957, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2963 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var activity964 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1965 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2966 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var box3_5_panel967 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity964, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1965, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2966, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel971 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel946, box3_2_panel951, box3_3_panel958, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2963, "anchor": "-20", "labelAlign": "top" }, box3_5_panel967 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email973 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url974 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm976 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel977 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email973, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url974, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone975, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm976, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel982 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel971, box4_panel977 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks983 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var households_MembersByHousehold_grid990 = new Lino.households.MembersByHousehold.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByHousehold.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var bottom_box_panel991 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks983, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 49 }, households_MembersByHousehold_grid990 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel993 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_1_panel939, address_box_panel982, bottom_box_panel991 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel997 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel993 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel997;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region945.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      households_MembersByHousehold_grid990.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country944.on('change',Lino.chooser_handler(region945,'country'));\n"
20130515 "      country944.on('change',Lino.chooser_handler(city949,'country'));\n"
20130515 "      region945.on('change',Lino.chooser_handler(city949,'region'));\n"
20130515 '      Lino.households.Households.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.households.Households.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var calendar756 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var summary757 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var project758 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var general_1_panel759 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar756, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary757, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project758, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var start_date763 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time764 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel765 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date763, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time764, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date768 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time769 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel770 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date768, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time769, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var user773 = new Lino.TwinCombo({ "fieldLabel": "Responsible user", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to774 = new Lino.TwinCombo({ "fieldLabel": "Attribu\\u00e9 \\u00e0", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel775 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ start_panel765, end_panel770, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user773, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to774, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var place778 = new Lino.TwinCombo({ "fieldLabel": "Place", "name": "place", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Places.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "placeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/place", "method": "GET" }) }) });\n'
20130515 '    var priority779 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Priorit\\u00e9", "name": "priority", "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9...", "selectOnFocus": true, "hiddenName": "priorityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/priority", "method": "GET" }) }) });\n'
20130515 '    var access_class780 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s</span>", "name": "access_class", "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s","Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses });\n'
20130515 '    var transparent781 = new Ext.form.Checkbox({ "boxLabel": "non bloquant", "listeners": { "render": Lino.quicktip_renderer("non bloquant","Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.") }, "hideLabel": true, "checked": false, "name": "transparent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var general_3_panel782 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": place778, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": priority779, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class780, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": transparent781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var owner_disp787 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var workflow_buttons_disp788 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var general_4_panel789 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp787, "labelAlign": "top" }, { "flex": 75, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp788, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description792 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 33, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var GuestsByEvent_grid802 = new Lino.cal.GuestsByEvent.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.GuestsByEvent.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var general_5_panel803 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ description792, GuestsByEvent_grid802 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel804 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel759, general_2_panel775, general_3_panel782, general_4_panel789, general_5_panel803 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var id805 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var created806 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified807 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var more_1_panel808 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id805, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created806, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified807, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByController_grid812 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var postings_PostingsByController_grid813 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var more_2_panel814 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ outbox_MailsByController_grid812, postings_PostingsByController_grid813 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var more_panel815 = new Ext.Panel({ "layout": "vbox", "title": "Plus", "items": [ more_1_panel808, more_2_panel814 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel816 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel804, more_panel815 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel816;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description792.refresh();\n'
20130515 '      GuestsByEvent_grid802.on_master_changed();\n'
20130515 '      outbox_MailsByController_grid812.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid813.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(70), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.cal.GuestStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.MySettings\n'
20130515 'Lino.users.MySettings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/MySettings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  title : "Utilisateurs",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "username" }, { "name": "profile" }, \'profileHidden\', { "name": "first_name" }, { "name": "last_name" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "password" }, { "name": "email" }, { "name": "remarks" }, { "name": "language" }, \'languageHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "access_class" }, \'access_classHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "coaching_type" }, \'coaching_typeHidden\', { "type": "boolean", "name": "coaching_supervisor" }, { "type": "int", "name": "newcomer_quota" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 7,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 24,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var username2468 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 30 });\n'
20130515 '    var profile2469 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.UserProfiles });\n'
20130515 '    var first_name2470 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var last_name2471 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var id2472 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2473 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2474 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var password2475 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 128 });\n'
20130515 '    var email2476 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var remarks2477 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var language2478 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ] });\n'
20130515 '    var partner2479 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var access_class2480 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.AccessClasses });\n'
20130515 '    var calendar2481 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var coaching_type2482 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/coaching_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var coaching_supervisor2483 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var newcomer_quota2484 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Username", "editable": true, "tooltip": "\\n        Required. Must be unique. \\n        ", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "username", "editor": username2468 }, { "colIndex": 1, "sortable": true, "header": "User Profile", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(47), "dataIndex": "profile", "editor": profile2469 }, { "colIndex": 2, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2470 }, { "colIndex": 3, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2471 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2472, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Password", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "password", "hidden": true, "editor": password2475 }, { "colIndex": 8, "sortable": true, "header": "adresse e-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2476 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remarks2477, "dataIndex": "remarks" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2478 }, { "colIndex": 11, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2479, "dataIndex": "partner" }, { "colIndex": 12, "sortable": true, "header": "Classe d\'acc\\u00e8s par d\\u00e9faut", "editable": true, "tooltip": "The default access class for your calendar events and tasks.", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class2480 }, { "colIndex": 13, "sortable": true, "header": "Calendrier par d\\u00e9faut", "editable": true, "tooltip": "Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2481 }, { "colIndex": 14, "sortable": true, "header": "Service", "editable": true, "tooltip": "The default CoachingType used when creating Coachings.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "coaching_type", "editor": coaching_type2482 }, { "colIndex": 15, "sortable": false, "xtype": "checkcolumn", "header": "Notify me when a coach has been assigned", "editable": true, "tooltip": "Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "coaching_supervisor" }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n", "filter": { "type": "numeric" }, "header": "Quota nouvelles demandes", "dataIndex": "newcomer_quota", "width": Lino.chars2width(6), "editor": newcomer_quota2484 }) ];\n'
20130515 '    Lino.users.MySettings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Languages\n'
20130515 'Lino.countries.Languages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Languages",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Langues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "id" }, { "name": "iso2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 12,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2486 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2487 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2488 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2489 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "allowBlank": false, "maxLength": 3 });\n'
20130515 '    var iso22490 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "maxLength": 2 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2486 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2487 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2488 }, { "colIndex": 3, "sortable": true, "header": "id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "id", "editor": id2489 }, { "colIndex": 4, "sortable": true, "header": "iso2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso2", "editor": iso22490 } ];\n'
20130515 '    Lino.countries.Languages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insertPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Langues",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Languages.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detailPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Langues",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Languages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Countries\n'
20130515 'Lino.countries.Countries.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Countries",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pays",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "isocode" }, { "name": "short_code" }, { "name": "iso3" }, { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 11,\n'
20130515 '  ls_id_property : "isocode",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2492 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2493 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2494 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var isocode2495 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "allowBlank": false, "maxLength": 4 });\n'
20130515 '    var short_code2496 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var iso32497 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    var inscode2498 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2492 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2493 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2494 }, { "colIndex": 3, "sortable": true, "header": "ISO code", "editable": true, "tooltip": "        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "isocode", "editor": isocode2495 }, { "colIndex": 4, "sortable": true, "header": "Short code", "editable": true, "tooltip": "A short abbreviation for regional usage. Obsolete.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "short_code", "editor": short_code2496 }, { "colIndex": 5, "sortable": true, "header": "ISO-3 code", "editable": true, "tooltip": "The three-letter code for this country as defined by ISO 3166-1.", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso3", "editor": iso32497 }, { "colIndex": 6, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this country used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "inscode", "editor": inscode2498 } ];\n'
20130515 '    Lino.countries.Countries.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insertPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Pays",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Countries.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detailPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Pays",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Countries.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.PropChoices\n'
20130515 'Lino.properties.PropChoices.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/PropChoices",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "type" }, \'typeHidden\', { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2500 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var type2501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/properties/PropChoices/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type de propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value2502 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text2503 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr2504 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl2505 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2500, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Type de propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2501 }, { "colIndex": 2, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value2502 }, { "colIndex": 3, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text2503 }, { "colIndex": 4, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr2504 }, { "colIndex": 5, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl2505 } ];\n'
20130515 '    Lino.properties.PropChoices.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.PropChoices.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.PropChoices.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Partners\n'
20130515 'Lino.contacts.Partners.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Partners",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 29,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2507 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2508 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2509 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2510 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2511 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2512 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2514 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12515 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2517 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2518 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2519 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22520 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2521 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2522 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2523 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2524 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2525 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2526 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2527 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2528 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12529 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var id2531 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2512.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2512.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2513.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2511.on('change',Lino.chooser_handler(city2512,'country'));\n"
20130515 "      region2513.on('change',Lino.chooser_handler(city2512,'region'));\n"
20130515 "      country2511.on('change',Lino.chooser_handler(region2513,'country'));\n"
20130515 '      Lino.contacts.Partners.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2507 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2508 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2511, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2512 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2513 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2514 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12515 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2516 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2517 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2518 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2519 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22520 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2521 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2522 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2523 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2524 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2525 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2526, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2528 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12529 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22530 }, new Lino.NullNumberColumn({ "colIndex": 24, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2531, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Partners.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Partners.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Partners.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Companies\n'
20130515 'Lino.contacts.Companies.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Companies",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 20,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2533 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2534 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2535 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2536 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2538 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2539 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2540 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12541 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2542 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2544 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2545 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22546 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2547 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2548 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2550 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2551 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2552 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2553 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12555 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22556 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2557 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2560 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2561 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2538.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2538.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2539.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2537.on('change',Lino.chooser_handler(city2538,'country'));\n"
20130515 "      region2539.on('change',Lino.chooser_handler(city2538,'region'));\n"
20130515 "      country2537.on('change',Lino.chooser_handler(region2539,'country'));\n"
20130515 '      Lino.contacts.Companies.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2533 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2534 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2537, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2538 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2539 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2540 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12541 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2542 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2543 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2544 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2545 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22546 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2547 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2548 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2549 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2550 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2551 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2552, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2554 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12555 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22556 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2557 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2558 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2559 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2560 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2561, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Companies.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisations",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detailPanel = Ext.extend(Lino.contacts.Companies.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisations",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Companies.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByState\n'
20130515 'Lino.postings.PostingsByState.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByState",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2563 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2564 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2565 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2566 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2567 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2568 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2569 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2571 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2572 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2569.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2568.on('change',Lino.chooser_handler(owner_id2569,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByState.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2563, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2564 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2565, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2567, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2568 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2569 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2570, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2571 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByState.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByState.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByState.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByState.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByState",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsReady\n'
20130515 'Lino.postings.PostingsReady.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsReady",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux \\u00e0 imprimer",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2574 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2575 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2576 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2577 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2578 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2582 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2583 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2580.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2579.on('change',Lino.chooser_handler(owner_id2580,'owner_type'));\n"
20130515 '      Lino.postings.PostingsReady.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2574, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2575 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2576, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2578, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2579 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2580 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2581, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2582 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsReady.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsReady.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsReady.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsReady.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsReady",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsPrinted\n'
20130515 'Lino.postings.PostingsPrinted.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsPrinted",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux imprim\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2585 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2588 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2589 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2590 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2592 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2593 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2594 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2591.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2590.on('change',Lino.chooser_handler(owner_id2591,'owner_type'));\n"
20130515 '      Lino.postings.PostingsPrinted.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2585, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2586 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2587, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2589, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2590 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2591 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2592, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2593 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsPrinted.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsPrinted.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsPrinted.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsPrinted.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsPrinted",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsSent\n'
20130515 'Lino.postings.PostingsSent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsSent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux envoy\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2596 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2597 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2599 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2600 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2603 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2604 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2605 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2602.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2601.on('change',Lino.chooser_handler(owner_id2602,'owner_type'));\n"
20130515 '      Lino.postings.PostingsSent.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2596, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2597 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2598, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2600, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2601 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2602 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2603, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2604 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsSent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsSent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsSent.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsSent.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsSent",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEvents\n'
20130515 'Lino.cal.MyEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "calendar" }, \'calendarHidden\', { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2607 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2608 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var calendar2609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var project2610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2611 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2612 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2613 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2616 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2617 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2618 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2619 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2620 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2621 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class2623 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2624 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2625 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2626 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2629 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2631 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2614.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2621.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2613.on('change',Lino.chooser_handler(owner_id2614,'owner_type'));\n"
20130515 '      Lino.cal.MyEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2607, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2608 }, { "colIndex": 2, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2609 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2610, "dataIndex": "project" }, { "colIndex": 4, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2611 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2612, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2613 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2614 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2615 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2619 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2620 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2621, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2622 }, { "colIndex": 16, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2623 }, new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2624 }), new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 19, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 20, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2627 }, { "colIndex": 21, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2628 }, { "colIndex": 22, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2629 }, { "colIndex": 23, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2630 }, { "width": Lino.chars2width(11), "colIndex": 24, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyUnclearEvents\n'
20130515 'Lino.cal.MyUnclearEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyUnclearEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2633 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2634 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2635 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2636 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2637 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2638 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2641 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2642 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2643 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2644 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2645 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2646 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2647 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2648 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2650 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2651 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2652 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2653 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2656 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2658 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2640.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2647.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2639.on('change',Lino.chooser_handler(owner_id2640,'owner_type'));\n"
20130515 '      Lino.cal.MyUnclearEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2633, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2634 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2635, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2636 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2638, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2639 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2640 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2641 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2645 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2646 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2647, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2648 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2649 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2650 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2651 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2654 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2655 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2656 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2657 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyUnclearEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyUnclearEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsAssignedToMe\n'
20130515 'Lino.cal.EventsAssignedToMe.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsAssignedToMe",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2661 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2663 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2669 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2670 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2671 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2674 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2675 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2676 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2677 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2678 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2679 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2680 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2681 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2683 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2684 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2685 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2674.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2666.on('change',Lino.chooser_handler(owner_id2667,'owner_type'));\n"
20130515 '      Lino.cal.EventsAssignedToMe.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2660, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2661 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2662, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2663 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2666 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2667 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2668 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2672 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2673 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2674, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2675 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2676 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2677 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2678 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2681 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2682 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2683 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2684 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsAssignedToMe.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEventsToday\n'
20130515 'Lino.cal.MyEventsToday.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEventsToday",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous aujourd\'hui",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "build_time" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_time2687 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary2688 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2689 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2690 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2692 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2694 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project2696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var build_time2697 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_date2698 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date2699 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2700 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2701 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2703 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2704 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2705 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2706 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2707 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2708 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2712 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2692.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2701.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2691.on('change',Lino.chooser_handler(owner_id2692,'owner_type'));\n"
20130515 '      Lino.cal.MyEventsToday.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(9), "colIndex": 0, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2687 }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2688 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2690, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2691 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2692 }, { "colIndex": 6, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2693 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2696, "dataIndex": "project" }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2698, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2699 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2700 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2701, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2702 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2703 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2704 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2705 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2708 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2709 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2710 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2711 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEventsToday.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous aujourd\'hui",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous aujourd\'hui",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEventsToday.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelCalendars\n'
20130515 'Lino.cal.PanelCalendars.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelCalendars",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Calendriers",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "babel_name" }, { "name": "description" }, { "type": "int", "name": "color" }, { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 35,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2714 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var babel_name_disp2715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var description2716 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var color2717 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var is_hidden_disp2718 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2716.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2714, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "babel_name", "header": "babel_name", "editable": false }, { "colIndex": 2, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2716, "dataIndex": "description" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Couleur", "dataIndex": "color", "width": Lino.chars2width(6), "editor": color2717 }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "is_hidden", "header": "Invisible", "editable": false } ];\n'
20130515 '    Lino.cal.PanelCalendars.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insertPanel = Ext.extend(Lino.cal.PanelCalendars.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Calendriers",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detailPanel = Ext.extend(Lino.cal.PanelCalendars.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Calendriers",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelCalendars.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelEvents\n'
20130515 'Lino.cal.PanelEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "start_dt" }, { "name": "end_dt" }, { "name": "summary" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "place" }, \'placeHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "url" }, { "type": "boolean", "name": "all_day" }, { "name": "reminder" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2720 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var start_dt2721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_dt2722 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var summary2723 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var description2724 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var user2725 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var place2726 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var calendar2727 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var url_disp2728 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var all_day2729 = new Ext.form.Checkbox({ "disabled": true });\n'
20130515 '    var reminder_disp2730 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2724.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2720, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": false, "dataIndex": "start_dt", "header": "D\\u00e9but", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": false, "dataIndex": "end_dt", "header": "Fin", "editable": false }, { "width": Lino.chars2width(5), "colIndex": 3, "sortable": false, "dataIndex": "summary", "header": "R\\u00e9sum\\u00e9", "editable": false }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2724, "dataIndex": "description" }, { "colIndex": 5, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2725 }, { "colIndex": 6, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2726 }, { "colIndex": 7, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2727 }, { "width": Lino.chars2width(31), "colIndex": 8, "sortable": false, "dataIndex": "url", "header": "Link URL", "editable": false }, { "header": "journ\\u00e9e enti\\u00e8re", "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "width": Lino.chars2width(11), "editable": false, "dataIndex": "all_day" }, { "width": Lino.chars2width(31), "colIndex": 10, "sortable": false, "dataIndex": "reminder", "header": "Rappel", "editable": false } ];\n'
20130515 '    Lino.cal.PanelEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.PanelEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.Households\n'
20130515 'Lino.households.Households.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/Households",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 32,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2732 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2734 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2735 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2736 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2737 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2738 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2739 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12740 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2741 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2743 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2744 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2746 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2747 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2749 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2750 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2751 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2752 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12754 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2756 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2757 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de m\\u00e9nage..." });\n'
20130515 '    var id2758 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2737.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2737.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2738.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2736.on('change',Lino.chooser_handler(city2737,'country'));\n"
20130515 "      region2738.on('change',Lino.chooser_handler(city2737,'region'));\n"
20130515 "      country2736.on('change',Lino.chooser_handler(region2738,'country'));\n"
20130515 '      Lino.households.Households.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2732 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2733 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2736, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2737 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2738 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2739 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12740 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2741 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2742 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2743 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2744 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22745 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2746 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2747 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2748 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2749 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2750 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2751, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2753 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12754 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22755 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2756 }, { "colIndex": 25, "sortable": true, "header": "Type de m\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2757 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2758, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.Households.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.Households.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.Households.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Persons\n'
20130515 'Lino.contacts.Persons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Persons",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "address_column" }, { "name": "email" }, { "name": "phone" }, { "name": "gsm" }, { "type": "int", "name": "id" }, { "name": "language" }, \'languageHidden\', { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "url" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 39,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2760 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_column_disp2761 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2762 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2763 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2764 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2765 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var language2766 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var created2767 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2768 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2769 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2770 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2771 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2772 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2773 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12774 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2776 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2777 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2778 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22779 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var url2780 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2781 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2782 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2783 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12785 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22786 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2787 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2788 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2789 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2790 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2791 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2770.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2770.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2771.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2769.on('change',Lino.chooser_handler(city2770,'country'));\n"
20130515 "      region2771.on('change',Lino.chooser_handler(city2770,'region'));\n"
20130515 "      country2769.on('change',Lino.chooser_handler(region2771,'country'));\n"
20130515 '      Lino.contacts.Persons.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "colIndex": 2, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2762 }, { "colIndex": 3, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2763 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2764 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2765, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2766 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2769, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2770 }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2771 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2772 }, { "colIndex": 13, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2773 }, { "colIndex": 14, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12774 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2775 }, { "colIndex": 16, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2776 }, { "colIndex": 17, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2777 }, { "colIndex": 18, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2778 }, { "colIndex": 19, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22779 }, { "colIndex": 20, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2780 }, { "colIndex": 21, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2781 }, { "colIndex": 22, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2782, "dataIndex": "remarks" }, { "colIndex": 23, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 24, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2784 }, { "colIndex": 25, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12785 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22786 }, { "colIndex": 27, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2787 }, { "colIndex": 28, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2788 }, { "colIndex": 29, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2789 }, { "colIndex": 30, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2790 }, { "colIndex": 31, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2791 } ];\n'
20130515 '    Lino.contacts.Persons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insertPanel = Ext.extend(Lino.contacts.Persons.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Personnes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Persons.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detailPanel = Ext.extend(Lino.contacts.Persons.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Personnes",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Persons.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Persons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.contacts.Persons.ParamsPanel({});\n'
20130515 '  return new Lino.contacts.Persons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.Clients\n'
20130515 'Lino.pcsw.Clients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/Clients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "client_state" }, \'client_stateHidden\', { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2793 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var client_state2794 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var national_id2795 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2797 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2798 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2800 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2801 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12802 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2804 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state2794 }, { "colIndex": 2, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2795 }, { "colIndex": 3, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2796 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 5, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 6, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2799 }, { "colIndex": 7, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2800 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2801, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 9, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12802 }, { "colIndex": 10, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2803 }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2804 } ];\n'
20130515 '    Lino.pcsw.Clients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.Clients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.Clients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.Clients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.IntegClients\n'
20130515 'Lino.pcsw.IntegClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/IntegClients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2806 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var applies_from2807 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var applies_until2808 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var national_id2809 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2810 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2811 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2812 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2814 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2815 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2817 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2818 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat d\\u00e9bute", "dataIndex": "applies_from", "width": Lino.chars2width(9) }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat se termine", "dataIndex": "applies_until", "width": Lino.chars2width(9) }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2809 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2810 }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 6, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 7, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2813 }, { "colIndex": 8, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2814 }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2815, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12816 }, { "colIndex": 11, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2817 }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2818 } ];\n'
20130515 '    Lino.pcsw.IntegClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.IntegClients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/IntegClients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.IntegClients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.IntegClients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.IntegClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.IntegClients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.IntegClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.OverlappingContracts\n'
20130515 'Lino.pcsw.OverlappingContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/OverlappingContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contrats chevauchants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2820 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2821 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2822 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2823 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2825 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2826 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2827 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12828 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2829 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2830 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2831 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2832 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22833 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2834 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email2835 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url2836 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2839 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2840 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2841 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2842 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12843 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22844 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2845 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2846 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2847 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2848 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2849 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2824.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2824.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2825.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2823.on('change',Lino.chooser_handler(city2824,'country'));\n"
20130515 "      region2825.on('change',Lino.chooser_handler(city2824,'region'));\n"
20130515 "      country2823.on('change',Lino.chooser_handler(region2825,'country'));\n"
20130515 '      Lino.pcsw.OverlappingContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2820, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 3, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2823, "dataIndex": "country" }, { "colIndex": 4, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2824 }, { "colIndex": 5, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2825 }, { "colIndex": 6, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2826 }, { "colIndex": 7, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2827 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12828 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2829 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2830 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2831 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2832 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22833 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2834 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2835 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2836 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2837 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2838 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2839 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2840, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2842 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12843 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22844 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2845 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2846 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2847 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2848 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2849 } ];\n'
20130515 '    Lino.pcsw.OverlappingContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.OverlappingContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.OverlappingContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.Contracts\n'
20130515 'Lino.isip.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2851 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2852 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2853 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2854 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2855 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2856 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2857 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2858 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2859 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2860 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12861 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22862 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2863 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2864 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2865 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2866 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2867 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2868 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2869 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2870 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2871 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2872 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2873 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2874 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2875 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2859.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2870.refresh();\n'
20130515 '      goals2871.refresh();\n'
20130515 '      duties_asd2872.refresh();\n'
20130515 '      duties_dsbe2873.refresh();\n'
20130515 '      duties_company2874.refresh();\n'
20130515 '      duties_person2875.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2858.on('change',Lino.chooser_handler(contact_person2859,'company'));\n"
20130515 '      Lino.isip.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2851, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2852, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2853, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2854, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2855 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2856 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2858, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2859, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2860 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12861, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22862, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2863 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2864 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2865 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2866 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2867 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2868 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2869 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2870, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2871, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2872, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2873, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2874, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2875, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.MyContracts\n'
20130515 'Lino.isip.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2877 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2878 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2879 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2880 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2883 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2884 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2885 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2886 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12887 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22888 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2889 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2890 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2891 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2893 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2895 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2896 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2897 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2898 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2899 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2900 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2901 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2885.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2896.refresh();\n'
20130515 '      goals2897.refresh();\n'
20130515 '      duties_asd2898.refresh();\n'
20130515 '      duties_dsbe2899.refresh();\n'
20130515 '      duties_company2900.refresh();\n'
20130515 '      duties_person2901.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2884.on('change',Lino.chooser_handler(contact_person2885,'company'));\n"
20130515 '      Lino.isip.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2877, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2878, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2879, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2880, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2881 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2882 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2884, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2885, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2886 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12887, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22888, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2889 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2890 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2891 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2892 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2893 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2894 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2895 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2896, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2897, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2898, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2899, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2900, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2901, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobProviders\n'
20130515 'Lino.jobs.JobProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Employants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 72,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2903 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2904 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2906 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2907 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2908 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2909 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2910 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12911 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2912 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2913 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2914 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2915 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22916 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2917 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2918 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2919 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2920 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2922 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2923 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12925 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22926 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2927 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2928 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2931 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2908.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2908.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2909.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2907.on('change',Lino.chooser_handler(city2908,'country'));\n"
20130515 "      region2909.on('change',Lino.chooser_handler(city2908,'region'));\n"
20130515 "      country2907.on('change',Lino.chooser_handler(region2909,'country'));\n"
20130515 '      Lino.jobs.JobProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2903 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2904 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2907, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2908 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2909 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2910 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12911 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2912 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2913 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2914 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2915 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22916 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2917 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2918 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2919 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2920 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2921 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2922, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2924 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12925 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22926 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2927 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2928 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2929 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2930 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2931, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Employants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detailPanel = Ext.extend(Lino.jobs.JobProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Employants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Contracts\n'
20130515 'Lino.jobs.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2933 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job2934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from2935 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2936 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user2937 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2938 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time2939 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2940 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2941 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2942 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12943 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client2945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language2946 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2948 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2950 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2951 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2952 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration2953 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2956 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2957 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2958 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2959 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2960 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2941.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2959.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2940.on('change',Lino.chooser_handler(contact_person2941,'company'));\n"
20130515 '      Lino.jobs.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2933, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2934, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2935, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2936, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2937 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2938 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2940, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2941, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2942 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12943, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22944, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2945, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2946 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2947 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2948 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2949 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2950 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2951 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2952 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2953 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2954 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2955 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2956 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2957 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2958 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2959, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2960, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.MyContracts\n'
20130515 'Lino.jobs.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from2962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2963 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var id2965 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user2966 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var build_time2967 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2968 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2969 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2970 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12971 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22972 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2973 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until2974 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided2975 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2976 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2977 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2978 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2979 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2980 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type2981 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var duration2982 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2983 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2985 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2986 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2987 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2988 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2989 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2969.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2988.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2968.on('change',Lino.chooser_handler(contact_person2969,'company'));\n"
20130515 '      Lino.jobs.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2962, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2963, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2964, "dataIndex": "job" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2965, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2966 }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2968, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2969, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2970 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12971, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22972, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2973 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2974, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2975 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2976 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2977 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2978 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2979 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2980 }, { "colIndex": 19, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2981 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2982 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2983 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2984 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2985 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2986 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2987 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2988, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2989, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Offers\n'
20130515 'Lino.jobs.Offers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Offers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres d\'emploi",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "type": "date", "name": "selection_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "selection_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 66,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2991 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2992 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var name2994 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var provider2995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var selection_from2996 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var selection_until2997 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_date2998 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark2999 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2993.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2992.on('change',Lino.chooser_handler(function2993,'sector'));\n"
20130515 '      Lino.jobs.Offers.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2991, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2992 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2993 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2994 }, { "colIndex": 4, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider2995, "dataIndex": "provider" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de s\\u00e9lection", "editor": selection_from2996, "width": Lino.chars2width(9), "dataIndex": "selection_from" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin de s\\u00e9lection", "editor": selection_until2997, "width": Lino.chars2width(9), "dataIndex": "selection_until" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2998, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2999, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Offers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insertPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres d\'emploi",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Offers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detailPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres d\'emploi",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Offers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Jobs\n'
20130515 'Lino.jobs.Jobs.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Jobs",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3001 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3002 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3003 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3004 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type3005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type3006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3007 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3008 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3009 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3010 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3004.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3003.on('change',Lino.chooser_handler(function3004,'sector'));\n"
20130515 '      Lino.jobs.Jobs.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3001 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3002, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3003 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3004 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3005 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3006 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3007 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3008 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3009, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3010, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.Jobs.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Jobs.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Jobs.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsSearch\n'
20130515 'Lino.jobs.ContractsSearch.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsSearch",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Recherche contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "client" }, \'clientHidden\', { "name": "client__city" }, \'client__cityHidden\', { "name": "client__national_id" }, { "name": "client__gender" }, \'client__genderHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 49,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3012 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3013 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3014 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var job3015 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var client3016 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var client__city3017 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var client__national_id3018 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var client__gender3019 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(1), "maxLength": 1 });\n'
20130515 '    var user3020 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3021 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3022 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3023 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3024 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3025 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13026 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23027 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3028 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3029 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3030 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3031 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3032 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3033 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3034 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3035 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3036 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3037 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3038 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3039 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3040 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3041 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3042 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3024.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3041.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3023.on('change',Lino.chooser_handler(contact_person3024,'company'));\n"
20130515 '      Lino.jobs.ContractsSearch.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3012, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3013, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3014, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3015, "dataIndex": "job" }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3016, "dataIndex": "client" }, { "filter": { "type": "string" }, "width": Lino.chars2width(21), "colIndex": 5, "sortable": true, "dataIndex": "client__city", "header": "Place", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "client__national_id", "header": "NISS", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(5), "colIndex": 7, "sortable": true, "dataIndex": "client__gender", "header": "Sexe", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3020 }, { "colIndex": 9, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3021 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3023, "dataIndex": "company" }, { "colIndex": 12, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3024, "dataIndex": "contact_person" }, { "colIndex": 13, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3025 }, { "colIndex": 14, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13026, "dataIndex": "signer1" }, { "colIndex": 15, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23027, "dataIndex": "signer2" }, { "colIndex": 16, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3028 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3029 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3030 }, { "colIndex": 19, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3031 }, { "colIndex": 20, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3032 }, { "colIndex": 21, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3033 }, { "colIndex": 22, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3034 }, { "colIndex": 23, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3035 }, { "colIndex": 24, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3036 }, { "colIndex": 25, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3037 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3038 }), { "colIndex": 27, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3039 }, { "colIndex": 28, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3040 }, { "colIndex": 29, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3041, "dataIndex": "responsibilities" }, { "colIndex": 30, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3042, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsSearch.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Recherche contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Recherche contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsSearch.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsSearch.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseProviders\n'
20130515 'Lino.courses.CourseProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisateurs de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 77,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3044 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3045 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3046 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3047 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3048 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3049 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3050 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3051 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13052 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3053 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3054 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3055 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3056 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23057 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3058 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3059 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3060 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3061 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3062 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3063 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3064 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23067 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3068 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id3069 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type3070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type3071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id3072 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3049.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3049.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3050.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3048.on('change',Lino.chooser_handler(city3049,'country'));\n"
20130515 "      region3050.on('change',Lino.chooser_handler(city3049,'region'));\n"
20130515 "      country3048.on('change',Lino.chooser_handler(region3050,'country'));\n"
20130515 '      Lino.courses.CourseProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3044 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3045 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3048, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3049 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3050 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3051 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13052 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3053 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3054 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3055 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3056 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23057 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3058 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3059 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3060 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3061 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3062 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3063, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3065 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13066 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23067 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3068 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id3069 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3070 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type3071 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3072, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisateurs de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detailPanel = Ext.extend(Lino.courses.CourseProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisateurs de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffers\n'
20130515 'Lino.courses.CourseOffers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3075 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content3076 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var provider3077 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3078 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3078.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3074, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3075 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3076 }, { "colIndex": 3, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3077, "dataIndex": "provider" }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3078, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.PendingCourseRequests\n'
20130515 'Lino.courses.PendingCourseRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/PendingCourseRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demandes de cours ouvertes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "person" }, \'personHidden\', { "type": "int", "name": "age" }, { "name": "address" }, { "name": "person__gsm" }, { "name": "person__phone" }, { "name": "person__coaches" }, { "name": "content" }, \'contentHidden\', { "type": "boolean", "name": "urgent" }, { "name": "remark" }, { "type": "int", "name": "a16" }, { "type": "int", "name": "a25" }, { "type": "int", "name": "a31" }, { "type": "int", "name": "a41" }, { "type": "int", "name": "a51" }, { "type": "int", "name": "a61" }, { "type": "int", "name": "ax" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 20,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 22,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted3080 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp3081 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person3082 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var age3083 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var address_disp3084 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person__gsm3085 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__phone3086 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__coaches_disp3087 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content3088 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var urgent3089 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var remark3090 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var a163091 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a253092 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a313093 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a413094 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a513095 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a613096 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var ax3097 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3080 }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3082, "dataIndex": "person" }, new Lino.NullNumberColumn({ "header": "\\u00e2ge", "colIndex": 3, "sortable": false, "dataIndex": "age", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "person__gsm", "header": "GSM", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "person__phone", "header": "T\\u00e9l\\u00e9phone", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 7, "sortable": false, "dataIndex": "person__coaches", "header": "Accompagnants", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3088 }, { "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 10, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3090, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "header": "16-24", "colIndex": 11, "sortable": false, "dataIndex": "a16", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "25-30", "colIndex": 12, "sortable": false, "dataIndex": "a25", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "31-40", "colIndex": 13, "sortable": false, "dataIndex": "a31", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "41-50", "colIndex": 14, "sortable": false, "dataIndex": "a41", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "51-60", "colIndex": 15, "sortable": false, "dataIndex": "a51", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": ">61", "colIndex": 16, "sortable": false, "dataIndex": "a61", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "age inconnu", "colIndex": 17, "sortable": false, "dataIndex": "ax", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.courses.PendingCourseRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demandes de cours ouvertes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demandes de cours ouvertes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.courses.PendingCourseRequests.ParamsPanel({});\n'
20130515 '  return new Lino.courses.PendingCourseRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonRequests\n'
20130515 'Lino.cbss.IdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 25,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3099 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3100 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3101 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3102 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3103 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3104 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3105 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3106 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3107 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3108 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3109 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3110 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3111 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3112 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3113 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3114 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3115 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3117 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3118 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3099, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3100 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3101, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3110 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3111 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3112 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3113 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3114 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3115 }, { "colIndex": 17, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3116 }, { "colIndex": 18, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3117 }, new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3118 }) ];\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequests\n'
20130515 'Lino.cbss.ManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3120 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3121 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3122 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3123 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3124 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3125 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3126 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3127 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3128 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3129 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3130 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3131 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3132 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3133 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3137 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3138 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3139 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3140 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3141 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3142 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3138.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3137.on('change',Lino.chooser_handler(purpose3138,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3120, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3121 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3122, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3131 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3132 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3133 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3134 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3135 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3136 }, { "colIndex": 17, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 18, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3138 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3139, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 20, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3140, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 21, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3141 }, { "colIndex": 22, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3142 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3144 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3145 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3146 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3147 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3148 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3149 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3150 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3151 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3152 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3153 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3144, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3145 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3146, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3147 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3148 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class sessions.SessionTable\n'
20130515 'Lino.sessions.SessionTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/sessions/SessionTable",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "sessions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "session_key" }, { "name": "session_data" }, { "name": "expire_date" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 4,\n'
20130515 '  ls_id_property : "session_key",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var session_key3155 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 40 });\n'
20130515 '    var session_data3156 = new Ext.form.TextArea({ "selectOnFocus": true, "allowBlank": false, "growMax": 2000 });\n'
20130515 '    var expire_date3157 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "cl\\u00e9 de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "session_key", "editor": session_key3155 }, { "colIndex": 1, "sortable": false, "header": "donn\\u00e9es de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": session_data3156, "dataIndex": "session_data" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "expire_date", "header": "date d\'expiration", "editable": true, "editor": expire_date3157 } ];\n'
20130515 '    Lino.sessions.SessionTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.sessions.SessionTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.sessions.SessionTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class ui.MyTextFieldTemplates\n'
20130515 'Lino.ui.MyTextFieldTemplates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/ui/MyTextFieldTemplates",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Text Field Templates",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "name" }, { "name": "description" }, { "name": "team" }, \'teamHidden\', { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 1,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3159 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var name3160 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var description3161 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var team3162 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/MyTextFieldTemplates/team", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Team..." });\n'
20130515 '    var text3163 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Texte mod\\u00e8le" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text3163.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3159, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3160 }, { "colIndex": 2, "sortable": false, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3161, "dataIndex": "description" }, { "colIndex": 3, "sortable": true, "header": "Team", "editable": true, "tooltip": "If not empty, then this template is reserved to members of this team.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "team", "editor": team3162 }, { "colIndex": 4, "sortable": false, "header": "text", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": text3163, "dataIndex": "text" } ];\n'
20130515 '    Lino.ui.MyTextFieldTemplates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insertPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Text Field Templates",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detailPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Text Field Templates",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.ui.MyTextFieldTemplates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesGiven\n'
20130515 'Lino.users.AuthoritiesGiven.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesGiven",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations accord\\u00e9es",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "authorized" }, \'authorizedHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var authorized68 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesGiven/authorized", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      authorized68.setContextValue('mk',bp['mk']);\n"
20130515 "      authorized68.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Utilisateur", "editable": true, "tooltip": "The user who gets authority to act in your name.", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "authorized", "editor": authorized68 } ];\n'
20130515 '    Lino.users.AuthoritiesGiven.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesGiven.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesGiven.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesTaken\n'
20130515 'Lino.users.AuthoritiesTaken.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesTaken",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3165 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesTaken/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3165 } ];\n'
20130515 '    Lino.users.AuthoritiesTaken.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesTaken.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesTaken.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCity\n'
20130515 'Lino.countries.CitiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Subdivisions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name244 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr245 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl246 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code248 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id249 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/country", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var inscode251 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type247.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country250.on('change',Lino.chooser_handler(type247,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name244 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr245 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl246 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type247 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code248 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id249, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country250, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode251 } ];\n'
20130515 '    Lino.countries.CitiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Subdivisions",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Subdivisions",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCountry\n'
20130515 'Lino.countries.CitiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Places",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "parent" }, \'parentHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name217 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr218 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type220 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code221 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id222 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var parent223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/parent", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var inscode224 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      type220.setContextValue('mk',bp['mk']);\n"
20130515 "      type220.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name217 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr218 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl219 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type220 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code221 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id222, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Part of", "editable": true, "tooltip": "The superordinate geographic place of which this place is a part.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "parent", "editor": parent223 }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode224 } ];\n'
20130515 '    Lino.countries.CitiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Places",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Places",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.ChoicesByType\n'
20130515 'Lino.properties.ChoicesByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/ChoicesByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3167 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text3168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr3169 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl3170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3171 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value3167 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text3168 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr3169 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl3170 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3171, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.properties.ChoicesByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.ChoicesByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.ChoicesByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCity\n'
20130515 'Lino.contacts.PartnersByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var street272 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no273 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box274 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr2275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name276 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id278 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created279 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified280 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var region282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code283 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr1284 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix285 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email286 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url287 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone288 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax290 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks291 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete292 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity293 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account1294 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account2295 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region282.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country281.on('change',Lino.chooser_handler(region282,'country'));\n"
20130515 '      Lino.contacts.PartnersByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street272 }, { "colIndex": 1, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no273 }, { "colIndex": 2, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box274 }, { "colIndex": 3, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr2275 }, { "colIndex": 4, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name276 }, { "colIndex": 5, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language277 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id278, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country281, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region282 }, { "colIndex": 11, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code283 }, { "colIndex": 12, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr1284 }, { "colIndex": 13, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix285 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email286 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url287 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone288 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm289 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax290 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks291, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity293 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account1294 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account2295 } ];\n'
20130515 '    Lino.contacts.PartnersByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCountry\n'
20130515 'Lino.contacts.PartnersByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3173 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3174 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3175 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3176 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language3177 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3178 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3179 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3180 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3181 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3182 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13183 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3184 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_box3185 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23186 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3187 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3188 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3190 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3191 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3192 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3193 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3194 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23196 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city3173.setContextValue('mk',bp['mk']);\n"
20130515 "      city3173.setContextValue('mt',bp['mt']);\n"
20130515 "      city3173.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      var bp = this.get_base_params();\n'
20130515 "      region3181.setContextValue('mk',bp['mk']);\n"
20130515 "      region3181.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      region3181.on('change',Lino.chooser_handler(city3173,'region'));\n"
20130515 '      Lino.contacts.PartnersByCountry.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3173 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3174 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3175 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3176 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3177 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3178, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3181 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3182 }, { "colIndex": 10, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13183 }, { "colIndex": 11, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3184 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3185 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23186 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3187 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3188 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3189 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3190 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3191 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3192, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3194 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13195 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23196 } ];\n'
20130515 '    Lino.contacts.PartnersByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByCompany\n'
20130515 'Lino.contacts.RolesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes de contact",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var type616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id617 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person615, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type616 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id617, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByPerson\n'
20130515 'Lino.contacts.RolesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contact pour",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, \'companyHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/company", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var type1066 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id1067 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1065, "dataIndex": "company" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1066 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1067, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.MyPostings\n'
20130515 'Lino.postings.MyPostings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/MyPostings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3198 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner3199 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state3200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3201 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3202 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3203 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3204 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3205 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var owner_disp3206 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3204.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3203.on('change',Lino.chooser_handler(owner_id3204,'owner_type'));\n"
20130515 '      Lino.postings.MyPostings.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3198, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3199, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3200 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3202, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3203 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3204 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3205, "dataIndex": "project" }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.MyPostings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.MyPostings.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.MyPostings.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.MyPostings.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/MyPostings",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByPartner\n'
20130515 'Lino.postings.PostingsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3208 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3209 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var state3210 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3211 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3212 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3213 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3214 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user3215 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project3216 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3214.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3213.on('change',Lino.chooser_handler(owner_id3214,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByPartner.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3208, "width": Lino.chars2width(9), "dataIndex": "date" }, { "width": Lino.chars2width(11), "colIndex": 1, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3210 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3212, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3213 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3214 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3215 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3216, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByPartner.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByPartner",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByProject\n'
20130515 'Lino.postings.PostingsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1692 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner1693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state1694 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp1695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1696 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user1699 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1700 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1698.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1697.on('change',Lino.chooser_handler(owner_id1698,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date1692, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner1693, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state1694 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1696, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1697 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1698 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1699 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByProject.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByProject",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientsByMail\n'
20130515 'Lino.outbox.RecipientsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/RecipientsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Recipients",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "address" }, { "name": "name" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 28,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner689 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/RecipientsByMail/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var address690 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var name691 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var type692 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.outbox.RecipientType });\n'
20130515 '    var id693 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner689, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "Addresse", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "address", "editor": address690 }, { "colIndex": 2, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "name", "editor": name691 }, { "colIndex": 3, "sortable": true, "header": "Recipient Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type692 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id693, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.outbox.RecipientsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MyOutbox\n'
20130515 'Lino.outbox.MyOutbox.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MyOutbox",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Mon courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3218 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox3219 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject3220 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3221 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3222 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3224 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date3225 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3226 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var body3227 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3219.refresh();\n'
20130515 "      owner_id3223.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body3227.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3222.on('change',Lino.chooser_handler(owner_id3223,'owner_type'));\n"
20130515 '      Lino.outbox.MyOutbox.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3220 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3221, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3222 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3223 }, { "colIndex": 6, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3224, "dataIndex": "project" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date3225 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3227, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MyOutbox.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mon courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mon courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MyOutbox.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByUser\n'
20130515 'Lino.outbox.MailsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "recipients" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3229 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3230 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox3231 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3231.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3230 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByProject\n'
20130515 'Lino.outbox.MailsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "subject" }, { "name": "recipients" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "body" }, { "name": "sent" }, { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1680 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var subject1681 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox1682 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var user1683 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id1684 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1685 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var body1687 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var sent1688 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var owner_disp1689 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox1682.refresh();\n'
20130515 "      owner_id1686.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body1687.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1685.on('change',Lino.chooser_handler(owner_id1686,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date1680 }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1681 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 3, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1683 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1684, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1685 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1686 }, { "colIndex": 7, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1687, "dataIndex": "body" }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.SentByPartner\n'
20130515 'Lino.outbox.SentByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/SentByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3233 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3234 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/SentByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3234 }, { "colIndex": 2, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3235 } ];\n'
20130515 '    Lino.outbox.SentByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.SentByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.AttachmentsByMail\n'
20130515 'Lino.outbox.AttachmentsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/AttachmentsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pi\\u00e8ces jointes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 29,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3237 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3238 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3239 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_id", "method": "GET" }) }) });\n'
20130515 '    var owner_disp3240 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3239.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3238.on('change',Lino.chooser_handler(owner_id3239,'owner_type'));\n"
20130515 '      Lino.outbox.AttachmentsByMail.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3237, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3238 }, { "colIndex": 2, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3239 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.AttachmentsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.AttachmentsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.AttachmentsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.SubscriptionsByUser\n'
20130515 'Lino.cal.SubscriptionsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/SubscriptionsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Abonnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "calendar" }, \'calendarHidden\', { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 37,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id79 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var calendar80 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/SubscriptionsByUser/calendar", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var is_hidden81 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id79, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Calendrier", "editable": true, "tooltip": "The calendar you want to subscribe to.\\nYou can subscribe to *non-private* calendars of *other* users.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar80 }, { "colIndex": 2, "sortable": false, "xtype": "checkcolumn", "header": "cach\\u00e9", "editable": true, "tooltip": "Activer cette case pour ne pas afficher ce calendrier en ouvrant le panneau.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_hidden" } ];\n'
20130515 '    Lino.cal.SubscriptionsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.SubscriptionsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.SubscriptionsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByProject\n'
20130515 'Lino.cal.EventsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "calendar" }, \'calendarHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1630 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1631 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var user1632 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1633 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1634 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var id1635 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1636 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1638 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1639 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time1640 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date1641 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time1642 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1643 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1644 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class1645 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1646 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1647 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent1648 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place1649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority1650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state1651 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to1652 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1653 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1637.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1643.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1636.on('change',Lino.chooser_handler(owner_id1637,'owner_type'));\n"
20130515 '      Lino.cal.EventsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1630, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1631 }, { "colIndex": 2, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1632 }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1633 }, { "colIndex": 4, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1634 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1635, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type1636 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id1637 }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date1641 }, { "colIndex": 12, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time1642 }, { "colIndex": 13, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description1643, "dataIndex": "description" }, { "colIndex": 14, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid1644 }, { "colIndex": 15, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class1645 }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence1646 }), new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 18, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 19, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place1649 }, { "colIndex": 20, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority1650 }, { "colIndex": 21, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state1651 }, { "colIndex": 22, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to1652 }, { "width": Lino.chars2width(11), "colIndex": 23, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByUser\n'
20130515 'Lino.cal.TasksByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date85 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary86 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp87 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id88 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type89 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id90 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created91 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified92 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project93 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time94 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description95 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid96 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar97 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class98 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence99 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type100 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date101 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time102 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent103 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state104 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp105 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id90.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description95.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type89.on('change',Lino.chooser_handler(owner_id90,'owner_type'));\n"
20130515 '      Lino.cal.TasksByUser.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date85, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary86 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id88, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type89 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id90 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project93, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time94 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description95, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid96 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar97 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class98 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence99 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date101, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time102 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent103 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state104 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasks\n'
20130515 'Lino.cal.MyTasks.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasks",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3242 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3243 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3244 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3245 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3246 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3248 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3249 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3251 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3252 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3253 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3254 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3255 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3256 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3257 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3258 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3259 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3260 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3261 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3262 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3247.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3252.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3246.on('change',Lino.chooser_handler(owner_id3247,'owner_type'));\n"
20130515 '      Lino.cal.MyTasks.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3242, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3243 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3245, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3246 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3247 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3250, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3251 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3252, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3253 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3254 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3255 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3256 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3258, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3259 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3260 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3261 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasks.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasks.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasksToDo\n'
20130515 'Lino.cal.MyTasksToDo.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasksToDo",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "To-do list",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3264 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3265 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3266 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3267 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3268 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3269 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3270 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3271 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3272 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3273 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3274 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3276 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3278 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3279 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3280 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3281 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3282 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3283 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3284 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3269.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3274.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3268.on('change',Lino.chooser_handler(owner_id3269,'owner_type'));\n"
20130515 '      Lino.cal.MyTasksToDo.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3264, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3265 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3267, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3268 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3269 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3272, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3273 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3274, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3275 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3276 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3277 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3278 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3280, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3281 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3282 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3283 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasksToDo.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau To-do list",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail To-do list",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByProject\n'
20130515 'Lino.cal.TasksByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1656 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1658 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1659 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1660 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1661 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1663 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_time1665 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1666 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1667 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class1669 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1670 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1671 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date1672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time1673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent1674 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state1675 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp1676 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1662.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1666.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1661.on('change',Lino.chooser_handler(owner_id1662,'owner_type'));\n"
20130515 '      Lino.cal.TasksByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1656, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1657 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1658 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1660, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1661 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1662 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1665 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description1666, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid1667 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1668 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class1669 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence1670 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date1672, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time1673 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent1674 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state1675 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByEvent\n'
20130515 'Lino.cal.GuestsByEvent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByEvent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner793 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role794 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp795 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event797 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id798 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time799 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner793, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role794 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark796 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event797 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id798, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state800 } ];\n'
20130515 '    Lino.cal.GuestsByEvent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByRole\n'
20130515 'Lino.cal.GuestsByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner3286 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role3287 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3288 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event3290 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id3291 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3292 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3293 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3286, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3287 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3289 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3290 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3291, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3293 } ];\n'
20130515 '    Lino.cal.GuestsByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByRole.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByPartner\n'
20130515 'Lino.cal.GuestsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "event" }, \'eventHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event3295 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var role3296 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3297 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3299 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3300 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3301 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3295 }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3296 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3298 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3299, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3301 } ];\n'
20130515 '    Lino.cal.GuestsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByPartner.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPresences\n'
20130515 'Lino.cal.MyPresences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPresences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes pr\\u00e9sences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3303 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3304 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3305 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3306 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3307 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3309 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3310 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3311 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3312 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3306 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3308 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3309, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3311 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3312 } ];\n'
20130515 '    Lino.cal.MyPresences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPresences.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPresences.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPendingInvitations\n'
20130515 'Lino.cal.MyPendingInvitations.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPendingInvitations",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes invitations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3314 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3315 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3316 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3317 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3318 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3319 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3320 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3321 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3322 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3317 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3319 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3320, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3322 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3323 } ];\n'
20130515 '    Lino.cal.MyPendingInvitations.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPendingInvitations.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPendingInvitations.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.MyUploads\n'
20130515 'Lino.uploads.MyUploads.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/MyUploads",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "owner" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "name": "type" }, \'typeHidden\', { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3325 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var description3326 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3327 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp3328 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var id3329 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3332 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3333 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3334 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var type3335 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var valid_until3336 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3331.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3330.on('change',Lino.chooser_handler(owner_id3331,'owner_type'));\n"
20130515 '      Lino.uploads.MyUploads.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3325 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3326 }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3327 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3329, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3330 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3331 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3335 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3336, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.MyUploads.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.MyUploads.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.MyUploads.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.HouseholdsByType\n'
20130515 'Lino.households.HouseholdsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/HouseholdsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 30,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 32,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3338 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3339 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3342 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3343 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3344 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3345 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13346 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3347 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3348 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3349 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3350 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23351 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3352 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3353 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3354 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3355 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3357 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3358 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3359 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13360 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23361 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3362 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3363 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3343.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3343.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3344.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3342.on('change',Lino.chooser_handler(city3343,'country'));\n"
20130515 "      region3344.on('change',Lino.chooser_handler(city3343,'region'));\n"
20130515 "      country3342.on('change',Lino.chooser_handler(region3344,'country'));\n"
20130515 '      Lino.households.HouseholdsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3338 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3339 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3342, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3343 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3344 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3345 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13346 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3347 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3348 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3349 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3350 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23351 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3352 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3353 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3354 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3355 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3356 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3357, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3359 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13360 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23361 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3362 }, new Lino.NullNumberColumn({ "colIndex": 25, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3363, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.HouseholdsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.HouseholdsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByHousehold\n'
20130515 'Lino.households.MembersByHousehold.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByHousehold",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var role985 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date986 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date987 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id988 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person984, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role985 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date986, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date987, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id988, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByHousehold.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByHousehold.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByHousehold.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByPerson\n'
20130515 'Lino.households.MembersByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membre de ",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "household" }, \'householdHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var household1070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var role1071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date1072 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1073 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id1074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household1070, "dataIndex": "household" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role1071 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date1072, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date1073, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1074, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByRole\n'
20130515 'Lino.households.MembersByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "household" }, \'householdHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person3365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var household3366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var start_date3367 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date3368 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id3369 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person3365, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household3366, "dataIndex": "household" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date3367, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date3368, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3369, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountsByGroup\n'
20130515 'Lino.accounts.AccountsByGroup.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/accounts/AccountsByGroup",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comptes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "ref" }, { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "default_amount" }, { "name": "periods" }, { "type": "boolean", "name": "required_for_household" }, { "type": "boolean", "name": "required_for_person" }, { "name": "group" }, \'groupHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 43,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var ref3371 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    var name3372 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr3373 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl3374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var default_amount3375 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var periods3376 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": true, "value": 1, "allowDecimals": false });\n'
20130515 '    var required_for_household3377 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var required_for_person3378 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3379 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/accounts/AccountsByGroup/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de comptes..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "ref", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "ref", "editor": ref3371 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3372 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr3373 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl3374 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "header": "Default amount", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "default_amount", "editor": default_amount3375 }), new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0/i", "editable": true, "tooltip": "For how many months the entered amount counts. \\nFor example 1 means a monthly amount, 12 a yearly amount.", "filter": { "type": "numeric" }, "header": "P\\u00e9riodes", "dataIndex": "periods", "width": Lino.chars2width(6), "editor": periods3376 }), { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour m\\u00e9nages", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_household" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour personnes", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_person" }, { "colIndex": 8, "sortable": true, "header": "Groupe de comptes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3379 } ];\n'
20130515 '    Lino.accounts.AccountsByGroup.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountsByGroup.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountsByGroup.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.accounts.AccountsByGroup.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.accounts.AccountsByGroup.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.MyNotes\n'
20130515 'Lino.notes.MyNotes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/MyNotes",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "project" }, \'projectHidden\', { "name": "body" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3381 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var project3385 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var body3386 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var id3387 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3388 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3389 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3390 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3391 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3392 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3393 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3386.refresh();\n'
20130515 "      owner_id3389.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3388.on('change',Lino.chooser_handler(owner_id3389,'owner_type'));\n"
20130515 '      Lino.notes.MyNotes.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3381, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3382 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3383 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3384 }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3385, "dataIndex": "project" }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3386, "dataIndex": "body" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3387, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3388 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3389 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3391 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3392, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.MyNotes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.MyNotes.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.MyNotes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.NotesByProject\n'
20130515 'Lino.notes.NotesByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/NotesByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3395 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3398 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body3399 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user3400 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3401 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3402 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3403 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3404 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3405 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3406 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3407 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3399.refresh();\n'
20130515 "      owner_id3403.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3402.on('change',Lino.chooser_handler(owner_id3403,'owner_type'));\n"
20130515 '      Lino.notes.NotesByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3395, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3396 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3397 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3398 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3399, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3400 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3401, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3402 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3403 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3405 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3406, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.NotesByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.NotesByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.NotesByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.LanguageKnowledgesByPerson\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/LanguageKnowledgesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var language1321 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/LanguageKnowledgesByPerson/language", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var native1322 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken1323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written1324 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level1325 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1321, "dataIndex": "language" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken1323 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written1324 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level1325 } ];\n'
20130515 '    Lino.cv.LanguageKnowledgesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.LanguageKnowledgesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.KnowledgesByLanguage\n'
20130515 'Lino.cv.KnowledgesByLanguage.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/KnowledgesByLanguage",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person196 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/KnowledgesByLanguage/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var native197 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken198 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written199 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person196, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken198 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written199 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level200 } ];\n'
20130515 '    Lino.cv.KnowledgesByLanguage.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.KnowledgesByLanguage.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.KnowledgesByLanguage.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.PropsByPerson\n'
20130515 'Lino.cv.PropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/PropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3411 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3412 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3413 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3409.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3410.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3413.on('change',Lino.chooser_handler(property3409,'group'));\n"
20130515 "      property3409.on('change',Lino.chooser_handler(value3410,'property'));\n"
20130515 '      Lino.cv.PropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3409 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3410 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3411 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3412, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3413 } ];\n'
20130515 '    Lino.cv.PropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.PropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.PropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ConfiguredPropsByPerson\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ConfiguredPropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3415 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3418 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3419 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3415.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3416.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3419.on('change',Lino.chooser_handler(property3415,'group'));\n"
20130515 "      property3415.on('change',Lino.chooser_handler(value3416,'property'));\n"
20130515 '      Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3415 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3416 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3417 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3418, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3419 } ];\n'
20130515 '    Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ConfiguredPropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SkillsByPerson\n'
20130515 'Lino.cv.SkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1367 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1368 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1365.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1366.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1369.on('change',Lino.chooser_handler(property1365,'group'));\n"
20130515 "      property1365.on('change',Lino.chooser_handler(value1366,'property'));\n"
20130515 '      Lino.cv.SkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1365 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1366 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1367 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1368, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1369 } ];\n'
20130515 '    Lino.cv.SkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SoftSkillsByPerson\n'
20130515 'Lino.cv.SoftSkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SoftSkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences sociales",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1372 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1373 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1375 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1376 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1372.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1373.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1376.on('change',Lino.chooser_handler(property1372,'group'));\n"
20130515 "      property1372.on('change',Lino.chooser_handler(value1373,'property'));\n"
20130515 '      Lino.cv.SoftSkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1372 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1373 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1374 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1375, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1376 } ];\n'
20130515 '    Lino.cv.SoftSkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SoftSkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SoftSkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ObstaclesByPerson\n'
20130515 'Lino.cv.ObstaclesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ObstaclesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Obstacles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1385 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1386 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1382.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1383.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1386.on('change',Lino.chooser_handler(property1382,'group'));\n"
20130515 "      property1382.on('change',Lino.chooser_handler(value1383,'property'));\n"
20130515 '      Lino.cv.ObstaclesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1382 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1383 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1384 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1385, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1386 } ];\n'
20130515 '    Lino.cv.ObstaclesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ObstaclesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ObstaclesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ClientsByNationality\n'
20130515 'Lino.pcsw.ClientsByNationality.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ClientsByNationality",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "country" }, \'countryHidden\', { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "broker" }, \'brokerHidden\', { "name": "faculty" }, \'facultyHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3421 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3422 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3423 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3424 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23425 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name3426 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var country3427 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var language3428 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3429 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3430 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3431 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3432 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3433 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13434 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3435 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3436 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3437 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3438 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3439 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3440 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3441 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3442 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3443 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13444 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23445 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3446 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3447 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3448 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3449 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3450 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23451 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3452 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3453 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3454 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3455 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3456 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3457 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3458 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3459 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3460 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3461 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var card_number3462 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3463 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3464 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3465 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3466 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3467 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3468 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3469 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3470 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3471 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3472 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3473 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3474 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3475 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3476 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3477 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3478 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3479 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3480 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3481 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3482 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3483 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3484 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3485 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3486 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3487 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3488 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    var broker3489 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var faculty3490 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/faculty", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3421.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3421.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3432.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3427.on('change',Lino.chooser_handler(city3421,'country'));\n"
20130515 "      region3432.on('change',Lino.chooser_handler(city3421,'region'));\n"
20130515 "      country3427.on('change',Lino.chooser_handler(region3432,'country'));\n"
20130515 '      Lino.pcsw.ClientsByNationality.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3421 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3422 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3423 }, { "colIndex": 3, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3424 }, { "colIndex": 4, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23425 }, { "colIndex": 5, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3426 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3427, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3428 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3429, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3432 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3433 }, { "colIndex": 13, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13434 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3435 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3436 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3437 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3438 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3439 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3440 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3441, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3443 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13444 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23445 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3446 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3447 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3448 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3449 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3450 }, { "colIndex": 30, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23451, "dataIndex": "remarks2" }, { "colIndex": 31, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3452 }, { "colIndex": 32, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 33, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 34, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3455 }, { "colIndex": 35, "sortable": true, "header": "Lieu de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3456 }, { "colIndex": 36, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3457, "dataIndex": "birth_country" }, { "colIndex": 37, "sortable": true, "header": "Etat civil'
20130515 '", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3458 }, { "colIndex": 38, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3459 }, { "colIndex": 39, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3460, "dataIndex": "health_insurance" }, { "colIndex": 40, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3461, "dataIndex": "pharmacy" }, { "colIndex": 41, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3462 }, { "colIndex": 42, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3463, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 43, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3464, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 44, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3465 }, { "colIndex": 45, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3466 }, { "colIndex": 46, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3467 }, { "colIndex": 47, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3468 }, { "colIndex": 48, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3469, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 49, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3470, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 50, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 51, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3473, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 53, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3474 }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 56, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 57, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 60, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3481, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 61, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3482 }, { "colIndex": 62, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3483, "dataIndex": "obstacles" }, { "colIndex": 63, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3484, "dataIndex": "skills" }, { "colIndex": 64, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3485 }, { "colIndex": 65, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3486 }, { "colIndex": 66, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3487 }, { "colIndex": 67, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3488 }, { "colIndex": 68, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3489 }, { "colIndex": 69, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3490 } ];\n'
20130515 '    Lino.pcsw.ClientsByNationality.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.ClientsByNationality.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ExclusionsByPerson\n'
20130515 'Lino.pcsw.ExclusionsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ExclusionsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "exclusions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "excluded_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "excluded_until", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 46,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var excluded_from1233 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var excluded_until1234 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type1235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ExclusionsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Exclusion Type..." });\n'
20130515 '    var remark1236 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "de", "editor": excluded_from1233, "width": Lino.chars2width(9), "dataIndex": "excluded_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": excluded_until1234, "width": Lino.chars2width(9), "dataIndex": "excluded_until" }, { "colIndex": 2, "sortable": true, "header": "Raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1235 }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1236 } ];\n'
20130515 '    Lino.pcsw.ExclusionsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ExclusionsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ExclusionsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ContactsByClient\n'
20130515 'Lino.pcsw.ContactsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ContactsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Contacts",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 54,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1279 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var company1280 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1283 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1284 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      company1280.setContextValue('type',record ? record.data['typeHidden'] : undefined);\n"
20130515 "      contact_person1281.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      type1279.on('change',Lino.chooser_handler(company1280,'type'));\n"
20130515 "      company1280.on('change',Lino.chooser_handler(contact_person1281,'company'));\n"
20130515 '      Lino.pcsw.ContactsByClient.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1279 }, { "colIndex": 1, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1280, "dataIndex": "company" }, { "colIndex": 2, "sortable": true, "header": "Personne de contact", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1281, "dataIndex": "contact_person" }, { "colIndex": 3, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1282 }, { "colIndex": 4, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1283, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1284, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.ContactsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ContactsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ContactsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByClient\n'
20130515 'Lino.pcsw.CoachingsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "type": "boolean", "name": "primary" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1287 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1288 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1289 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var primary1290 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var type1291 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var id1292 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date1287, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date1288, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Accompagnant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "user", "editor": user1289 }, { "colIndex": 3, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, { "colIndex": 4, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "type", "editor": type1291 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1292, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByUser\n'
20130515 'Lino.pcsw.CoachingsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "type" }, \'typeHidden\', { "type": "boolean", "name": "primary" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date157 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date158 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client159 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type160 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var primary161 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var id162 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date157, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date158, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client159, "dataIndex": "client" }, { "colIndex": 3, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type160 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id162, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByPerson\n'
20130515 'Lino.pcsw.NotesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "name": "company" }, \'companyHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1615 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type1616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type1617 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject1618 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body1619 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user1620 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var company1621 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var id1622 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time1625 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language1626 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp1627 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body1619.refresh();\n'
20130515 "      owner_id1624.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1623.on('change',Lino.chooser_handler(owner_id1624,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date1615, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type1616 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1617 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1618 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1619, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1620 }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1621, "dataIndex": "company" }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1622, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1623 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1624 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1626 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByCompany\n'
20130515 'Lino.pcsw.NotesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "project" }, \'projectHidden\', { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date622 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var project623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var event_type624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type625 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject626 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body627 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id629 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time632 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language633 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp634 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body627.refresh();\n'
20130515 "      owner_id631.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type630.on('change',Lino.chooser_handler(owner_id631,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByCompany.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date622, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project623, "dataIndex": "project" }, { "colIndex": 2, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type624 }, { "colIndex": 3, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type625 }, { "colIndex": 4, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject626 }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body627, "dataIndex": "body" }, { "colIndex": 6, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user628 }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id629, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type630 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id631 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language633 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPerson\n'
20130515 'Lino.isip.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from1402 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1403 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1404 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1405 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var id1406 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1407 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1408 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11411 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21412 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1413 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1414 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1415 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1417 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1418 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1419 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages1420 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals1421 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd1422 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1423 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company1424 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1425 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1409.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages1420.refresh();\n'
20130515 '      goals1421.refresh();\n'
20130515 '      duties_asd1422.refresh();\n'
20130515 '      duties_dsbe1423.refresh();\n'
20130515 '      duties_company1424.refresh();\n'
20130515 '      duties_person1425.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1408.on('change',Lino.chooser_handler(contact_person1409,'company'));\n"
20130515 '      Lino.isip.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1402, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1403, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1404 }, { "colIndex": 3, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1405 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1406, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1408, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1409, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1410 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11411, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21412, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1413 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1414 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1415 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1416 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1417 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1418 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1419 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages1420, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals1421, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd1422, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe1423, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company1424, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person1425, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPolicy\n'
20130515 'Lino.isip.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3492 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3493 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3494 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3495 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3496 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3497 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time3498 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3499 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3500 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13502 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23503 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3504 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3505 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3506 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3507 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3508 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3509 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3510 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3511 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3512 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3513 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3514 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3515 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3500.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3510.refresh();\n'
20130515 '      goals3511.refresh();\n'
20130515 '      duties_asd3512.refresh();\n'
20130515 '      duties_dsbe3513.refresh();\n'
20130515 '      duties_company3514.refresh();\n'
20130515 '      duties_person3515.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3499.on('change',Lino.chooser_handler(contact_person3500,'company'));\n"
20130515 '      Lino.isip.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3492, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3493, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3494, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3495, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3496 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3497 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3499, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3500, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3501 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13502, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23503, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3504 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3505 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3506 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3507 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3508 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3509 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3510, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3511, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3512, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3513, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3514, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3515, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByType\n'
20130515 'Lino.isip.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from3517 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3518 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3519 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3520 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3521 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3524 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13525 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3527 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until3528 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided3529 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3530 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3531 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3532 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3533 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3534 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3535 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3536 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3537 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3538 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3539 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3540 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3523.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3535.refresh();\n'
20130515 '      goals3536.refresh();\n'
20130515 '      duties_asd3537.refresh();\n'
20130515 '      duties_dsbe3538.refresh();\n'
20130515 '      duties_company3539.refresh();\n'
20130515 '      duties_person3540.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3522.on('change',Lino.chooser_handler(contact_person3523,'company'));\n"
20130515 '      Lino.isip.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3517, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3518, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3519 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3520, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3522, "dataIndex": "company" }, { "colIndex": 6, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3523, "dataIndex": "contact_person" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3524 }, { "colIndex": 8, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13525, "dataIndex": "signer1" }, { "colIndex": 9, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23526, "dataIndex": "signer2" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3527 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3528, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3529 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3530 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3531 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3532 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3533 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3534 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3535, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3536, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3537, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3538, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3539, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3540, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPerson\n'
20130515 'Lino.jobs.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job1506 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1507 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1508 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1509 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1510 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1511 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1512 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11516 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21517 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1518 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1519 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1520 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1521 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1524 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1525 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1527 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1528 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1529 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1531 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1532 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1514.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1531.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1513.on('change',Lino.chooser_handler(contact_person1514,'company'));\n"
20130515 '      Lino.jobs.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1506, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1507, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1508, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1509 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1510 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1511, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1513, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": contact_person1514, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "hidden": true, "editor": contact_role1515 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11516, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21517, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "hidden": true, "editor": language1518 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1519 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1520 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1521 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1522 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1523 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1524 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "hidden": true, "editor": duration1525 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "hidden": true, "editor": regime1526 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "hidden": true, "editor": schedule1527 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "hidden": true, "editor": hourly_rate1528 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1529 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "hidden": true, "editor": reference_person1530 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": responsibilities1531, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remark1532, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByProvider\n'
20130515 'Lino.jobs.ContractsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job1945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1946 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1948 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1950 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1951 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var contact_person1952 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1953 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1956 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1957 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1958 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1959 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1960 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1961 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1963 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1965 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1966 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1967 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1968 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1969 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1970 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      contact_person1952.setContextValue('mk',bp['mk']);\n"
20130515 "      contact_person1952.setContextValue('mt',bp['mt']);\n"
20130515 '      responsibilities1969.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1944, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1945, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1946, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1947, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1948 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1949 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1950, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1952, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1953 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11954, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21955, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1956 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1957 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1958 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1959 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1960 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1961 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1962 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1963 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1964 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1965 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1966 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1967 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1968 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1969, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1970, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPolicy\n'
20130515 'Lino.jobs.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3542 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3543 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3544 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3545 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3546 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3547 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3548 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3549 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3550 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3551 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13552 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23553 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3555 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3556 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3557 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3558 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3560 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3561 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3562 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3563 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3564 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3565 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3567 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3568 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3550.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3567.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3549.on('change',Lino.chooser_handler(contact_person3550,'company'));\n"
20130515 '      Lino.jobs.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3542, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3543, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3544, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3545, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3546 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3547 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3549, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3550, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3551 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13552, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23553, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3554, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3555 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3556 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3557 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3558 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3559 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3560 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3561 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3562 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3563 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3564 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3565 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3566 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3567, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3568, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByJob\n'
20130515 'Lino.jobs.ContractsByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1913 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var applies_from1914 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1915 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1916 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1917 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1918 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1919 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1920 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1921 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1922 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11923 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1925 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1926 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1927 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1928 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1931 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1932 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1933 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1935 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1936 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1937 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1938 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1939 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1921.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1938.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1920.on('change',Lino.chooser_handler(contact_person1921,'company'));\n"
20130515 '      Lino.jobs.ContractsByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1913, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1914, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1915, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1916 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1917 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1918, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1920, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1921, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1922 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11923, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21924, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1925 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1926 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1927 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1928 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1929 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1930 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1931 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1932 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1933 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1934 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1935 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1936 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1937 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1938, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1939, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByRegime\n'
20130515 'Lino.jobs.ContractsByRegime.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByRegime",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3571 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3572 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3573 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3574 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3575 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3576 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3577 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3578 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3582 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3583 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3584 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3585 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3588 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3589 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3590 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var schedule3591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3592 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3593 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3594 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3595 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3596 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3578.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3595.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3577.on('change',Lino.chooser_handler(contact_person3578,'company'));\n"
20130515 '      Lino.jobs.ContractsByRegime.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3570, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3571, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3572, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3573 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3574 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3575, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3577, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3578, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3579 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13580, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23581, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3582, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3583 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3584 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3585 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3586 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3587 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3588 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3589 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3590 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3591 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3592 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3593 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3594 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3595, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3596, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByRegime.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByRegime.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByRegime.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsBySchedule\n'
20130515 'Lino.jobs.ContractsBySchedule.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsBySchedule",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3599 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3600 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3603 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3604 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3605 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3606 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3607 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13608 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3611 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3612 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3613 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3617 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3618 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3619 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var hourly_rate3620 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3621 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3623 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3624 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3606.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3623.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3605.on('change',Lino.chooser_handler(contact_person3606,'company'));\n"
20130515 '      Lino.jobs.ContractsBySchedule.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3598, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3599, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3600, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3601 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3602 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3603, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3605, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3606, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3607 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13608, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23609, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3610, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3611 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3612 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3613 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3614 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3615 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3616 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3617 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3618 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3619 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3620 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3621 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3622 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3623, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3624, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsBySchedule.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsBySchedule.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCountry\n'
20130515 'Lino.jobs.StudiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "city" }, \'cityHidden\', { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id534 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var city535 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var person536 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content538 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started539 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped540 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success541 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language542 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks544 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city535.setContextValue('mk',bp['mk']);\n"
20130515 "      city535.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id534, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city535 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person536, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type537 }, { "colIndex": 4, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content538 }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started539, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped540, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 8, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language542, "dataIndex": "language" }, { "colIndex": 9, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school543 }, { "colIndex": 10, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks544, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.StudiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCity\n'
20130515 'Lino.jobs.StudiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "school" }, { "name": "type" }, \'typeHidden\', { "name": "person" }, \'personHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var school513 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var person515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var content516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started517 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped518 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success519 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language520 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var remarks521 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id522 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school513 }, { "colIndex": 1, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type514 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person515, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content516 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started517, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped518, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language520, "dataIndex": "language" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks521, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id522, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country523, "dataIndex": "country" } ];\n'
20130515 '    Lino.jobs.StudiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByPerson\n'
20130515 'Lino.jobs.StudiesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1297 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content1298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started1299 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1300 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var country1301 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city1302 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var success1303 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language1304 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school1305 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks1306 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1307 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1302.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1301.on('change',Lino.chooser_handler(city1302,'country'));\n"
20130515 '      Lino.jobs.StudiesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1297 }, { "colIndex": 1, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content1298 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1299, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1300, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1301, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city1302 }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1304, "dataIndex": "language" }, { "colIndex": 8, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school1305 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1306, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 10, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1307, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.StudiesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByFunction\n'
20130515 'Lino.jobs.ExperiencesByFunction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByFunction",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3626 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector3627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var person3628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company3629 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title3630 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country3631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started3632 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped3633 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks3634 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3626, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3627 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3628, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company3629 }, { "colIndex": 4, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3630 }, { "colIndex": 5, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3631, "dataIndex": "country" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started3632, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped3633, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3634, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByFunction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByFunction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByFunction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByPerson\n'
20130515 'Lino.jobs.ExperiencesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "country" }, \'countryHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1310 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var started1311 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1312 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var title1313 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector1314 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1315 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var country1316 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var remarks1317 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1315.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1314.on('change',Lino.chooser_handler(function1315,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1310 }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1311, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1312, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 3, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1313 }, { "colIndex": 4, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1314 }, { "colIndex": 5, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1315 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1316, "dataIndex": "country" }, { "colIndex": 7, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1317, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByPerson\n'
20130515 'Lino.jobs.CandidaturesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1393 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var job1394 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var state1395 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1398 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1399 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1397.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1396.on('change',Lino.chooser_handler(function1397,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1393 }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1394, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1395 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1396 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1397 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1398, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1399, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByJob\n'
20130515 'Lino.jobs.CandidaturesByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "person" }, \'personHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1902 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var person1903 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state1904 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1905 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1906 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1907 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1908 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1906.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1905.on('change',Lino.chooser_handler(function1906,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1902 }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1903, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1904 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1905 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1906 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1907, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1908, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByOffer\n'
20130515 'Lino.jobs.CandidaturesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2004 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person2007 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2008 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var date_submitted2009 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var remark2010 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var state2011 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2006.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2005.on('change',Lino.chooser_handler(function2006,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2004, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2005 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2006 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2007, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2008, "dataIndex": "job" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2009 }, { "colIndex": 6, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2010, "dataIndex": "remark" }, { "colIndex": 7, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state2011 } ];\n'
20130515 '    Lino.jobs.CandidaturesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByOffer\n'
20130515 'Lino.jobs.ExperiencesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id1992 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector1993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1994 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person1995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company1996 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title1997 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country1998 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started1999 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped2000 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks2001 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1994.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1993.on('change',Lino.chooser_handler(function1994,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1992, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1993 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1994 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1995, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1996 }, { "colIndex": 5, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1997 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1998, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1999, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped2000, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2001, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByProvider\n'
20130515 'Lino.jobs.JobsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name1870 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider1871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector1872 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1873 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type1874 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type1875 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate1876 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity1877 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark1878 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1879 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1873.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1872.on('change',Lino.chooser_handler(function1873,'sector'));\n"
20130515 '      Lino.jobs.JobsByProvider.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name1870 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider1871, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1872 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1873 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1874 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type1875 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1876 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity1877 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1878, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1879, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByType\n'
20130515 'Lino.jobs.JobsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3636 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3638 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var contract_type3640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3641 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3642 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3643 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3644 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3639.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3638.on('change',Lino.chooser_handler(function3639,'sector'));\n"
20130515 '      Lino.jobs.JobsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3636 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3637, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3638 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3639 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3640 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3641 }), new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3642 }), { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3643, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3644, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByType\n'
20130515 'Lino.jobs.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3646 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3647 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3648 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3649 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3651 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3652 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3653 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13656 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3658 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3659 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3661 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3663 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3664 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3665 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3666 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3669 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3670 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3671 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3672 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3673 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3654.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3672.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3653.on('change',Lino.chooser_handler(contact_person3654,'company'));\n"
20130515 '      Lino.jobs.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3646, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3647, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3648, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3649, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3650 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3651 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3653, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3654, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3655 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13656, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23657, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3658, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3659 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3660 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3661 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3662 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3663 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3664 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3665 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3666 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3667 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3668 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3669 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3670 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3671 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3672, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3673, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsOverviewByType\n'
20130515 'Lino.jobs.JobsOverviewByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsOverviewByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Situation contrats Art 60-7",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  disable_editing : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job_desc" }, { "name": "working" }, { "name": "probation" }, { "name": "candidates" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job_desc_disp3675 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var working_disp3676 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var probation_disp3677 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var candidates_disp3678 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "job_desc", "header": "Emploi", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "working", "header": "Travaille", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "probation", "header": "p\\u00e9riode d\'essai", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "candidates", "header": "Candidats", "editable": false } ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Situation contrats Art 60-7",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/jobs/JobsOverviewByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.JobsOverviewByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsOverviewByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverviewByType.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CoursesByOffer\n'
20130515 'Lino.courses.CoursesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CoursesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  title : "Cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 76,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2094 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var title2095 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remark2096 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2097 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2094, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2095 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark2096 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2097, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CoursesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insertPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detailPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CoursesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByProvider\n'
20130515 'Lino.courses.CourseOffersByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2079 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title2080 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content2081 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByProvider/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var description2082 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2082.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2079, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2080 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2081 }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2082, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByContent\n'
20130515 'Lino.courses.CourseOffersByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3680 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3681 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var provider3682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByContent/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3683 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3683.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3680, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3681 }, { "colIndex": 2, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3682, "dataIndex": "provider" }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3683, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByPerson\n'
20130515 'Lino.courses.CourseRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "content" }, \'contentHidden\', { "name": "offer" }, \'offerHidden\', { "name": "course" }, \'courseHidden\', { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1328 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var content1329 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var offer1330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var course1331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var urgent1332 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state1333 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var date_ended1334 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark1335 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1336 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1330.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1329.on('change',Lino.chooser_handler(offer1330,'content'));\n"
20130515 '      Lino.courses.CourseRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(11), "editor": date_submitted1328 }, { "colIndex": 1, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "content", "editor": content1329 }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer1330, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course1331 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state1333 }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended1334, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.text_renderer, "editor": remark1335, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1336, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByContent\n'
20130515 'Lino.courses.CourseRequestsByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "course" }, \'courseHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3685 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3687 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var date_submitted3688 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3689 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3690 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var course3691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var remark3692 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3693 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      offer3687.setContextValue('mk',bp['mk']);\n"
20130515 "      offer3687.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3685, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3686, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3687, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3688 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3690 }, { "colIndex": 6, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course3691 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3692, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3693, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.CourseRequestsByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.RequestsByCourse\n'
20130515 'Lino.courses.RequestsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/RequestsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "name": "content" }, \'contentHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3695 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var content3698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var date_submitted3699 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3700 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3701 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var remark3702 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3703 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer3697.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content3698.on('change',Lino.chooser_handler(offer3697,'content'));\n"
20130515 '      Lino.courses.RequestsByCourse.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3695, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3696, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3697, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3698 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3699 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3701 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3702, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3703, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.RequestsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.ParticipantsByCourse\n'
20130515 'Lino.courses.ParticipantsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/ParticipantsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2109 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/ParticipantsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2110 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended2111 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var workflow_buttons_disp2112 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2109, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2110, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended2111, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false } ];\n'
20130515 '    Lino.courses.ParticipantsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Participants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Participants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CandidatesByCourse\n'
20130515 'Lino.courses.CandidatesByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CandidatesByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "content" }, \'contentHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2115 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2116 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_submitted2117 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp2118 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content2119 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2115, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2116, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2117 }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 4, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2119 } ];\n'
20130515 '    Lino.courses.CandidatesByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Candidats",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Candidats",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.CompetencesByUser\n'
20130515 'Lino.newcomers.CompetencesByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/CompetencesByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno147 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty148 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/CompetencesByUser/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight149 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id150 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno147 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty148 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight149 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id150, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.CompetencesByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.CompetencesByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.CompetencesByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.CompetencesByUser.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.CompetencesByUser.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.MyCompetences\n'
20130515 'Lino.newcomers.MyCompetences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/MyCompetences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Mes Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno3705 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty3706 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/MyCompetences/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight3707 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id3708 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno3705 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3706 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight3707 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3708, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.MyCompetences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.MyCompetences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.MyCompetences.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.MyCompetences.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.MyCompetences.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.ClientsByFaculty\n'
20130515 'Lino.newcomers.ClientsByFaculty.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/ClientsByFaculty",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "broker" }, \'brokerHidden\', { "name": "address_column" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "nationality" }, \'nationalityHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 92,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp3710 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker3711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var address_column_disp3712 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3713 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3714 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3717 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3718 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3719 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3720 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr13721 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3722 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3723 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3724 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3725 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23726 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3727 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email3728 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3729 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3730 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3731 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3732 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3733 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3734 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3735 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13736 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23737 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3738 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3739 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3740 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3741 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23743 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3744 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3745 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3746 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3747 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3749 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3750 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3751 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3752 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var nationality3754 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/nationality", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var card_number3755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3756 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3757 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3758 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3759 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3760 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3761 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3762 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3763 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3764 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3765 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3766 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3767 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3768 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3769 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3770 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3771 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3772 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3773 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3774 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3776 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3777 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3778 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3779 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3780 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3781 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3717.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3717.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3718.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3716.on('change',Lino.chooser_handler(city3717,'country'));\n"
20130515 "      region3718.on('change',Lino.chooser_handler(city3717,'region'));\n"
20130515 "      country3716.on('change',Lino.chooser_handler(region3718,'country'));\n"
20130515 '      Lino.newcomers.ClientsByFaculty.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3711 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3713, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3716, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3717 }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3718 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3719 }, { "colIndex": 10, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3720 }, { "colIndex": 11, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13721 }, { "colIndex": 12, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3722 }, { "colIndex": 13, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3723 }, { "colIndex": 14, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3724 }, { "colIndex": 15, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3725 }, { "colIndex": 16, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23726 }, { "colIndex": 17, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3727 }, { "colIndex": 18, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3728 }, { "colIndex": 19, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3729 }, { "colIndex": 20, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3730 }, { "colIndex": 21, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3731 }, { "colIndex": 22, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3732 }, { "colIndex": 23, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3733, "dataIndex": "remarks" }, { "colIndex": 24, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 25, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3735 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13736 }, { "colIndex": 27, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23737 }, { "colIndex": 28, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3738 }, { "colIndex": 29, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3739 }, { "colIndex": 30, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3740 }, { "colIndex": 31, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3741 }, { "colIndex": 32, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3742 }, { "colIndex": 33, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23743, "dataIndex": "remarks2" }, { "colIndex": 34, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3744 }, { "colIndex": 35, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 36, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 37, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3747 }, { "colIndex": 38, "sortable": true, "header": "Lieu de naissance", "editable": true,'
20130515 ' "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3748 }, { "colIndex": 39, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3749, "dataIndex": "birth_country" }, { "colIndex": 40, "sortable": true, "header": "Etat civil", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3750 }, { "colIndex": 41, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3751 }, { "colIndex": 42, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3752, "dataIndex": "health_insurance" }, { "colIndex": 43, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3753, "dataIndex": "pharmacy" }, { "colIndex": 44, "sortable": true, "header": "Nationalit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'nationalityHidden\',\'Lino.countries.Countries.detail\'), "editor": nationality3754, "dataIndex": "nationality" }, { "colIndex": 45, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3755 }, { "colIndex": 46, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3756, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 47, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3757, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 48, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3758 }, { "colIndex": 49, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3759 }, { "colIndex": 50, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3760 }, { "colIndex": 51, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3761 }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3762, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 53, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3763, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 56, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3766, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 57, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3767 }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 60, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 61, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 62, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 63, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 64, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3774, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 65, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3775 }, { "colIndex": 66, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3776, "dataIndex": "obstacles" }, { "colIndex": 67, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3777, "dataIndex": "skills" }, { "colIndex": 68, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3778 }, { "colIndex": 69, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3779 }, { "colIndex": 70, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3780 }, { "colIndex": 71, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3781 } ];\n'
20130515 '    Lino.newcomers.ClientsByFaculty.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyIdentifyPersonRequests\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3783 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyIdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3785 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3786 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3787 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3788 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3789 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3790 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3791 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3792 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3793 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3794 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3795 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3797 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3798 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3801 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3783, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3784, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3793 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3794 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3795 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3796 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3797 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3798 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3799 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3800 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3801 }) ];\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyRequestsByPerson\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "type": "int", "name": "id" }, { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3804 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3805 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var id3806 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var environment3807 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3808 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3809 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3810 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3811 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3812 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3814 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3815 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3818 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3819 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3820 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3821 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3803 }, { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 2, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3806, "width": Lino.chars2width(6), "dataIndex": "id" }), { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3813 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3814 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3815 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3816 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3817 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3818 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3819 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3820 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3821 }) ];\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequestsByPerson\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3823 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3825 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3826 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3827 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3828 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3829 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3830 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3831 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3832 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3833 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3834 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3835 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3836 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3839 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3840 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3841 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3842 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3843 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3844 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3840.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3839.on('change',Lino.chooser_handler(purpose3840,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3823, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3824 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3833 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3834 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3835 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3836 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3837 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3838 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3840 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3841, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3842, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3843 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3844 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyManageAccessRequests\n'
20130515 'Lino.cbss.MyManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3846 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3847 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3848 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3849 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3850 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3851 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3852 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3853 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3854 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3855 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3856 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3857 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3858 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3859 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3860 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3862 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3863 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3864 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3865 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3866 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3867 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3863.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3862.on('change',Lino.chooser_handler(purpose3863,'sector'));\n"
20130515 '      Lino.cbss.MyManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3846, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3847, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3856 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3857 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3858 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3859 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3860 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3861 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3863 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3864, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3865, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3866 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3867 } ];\n'
20130515 '    Lino.cbss.MyManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequestsByPerson\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3869 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3870 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3872 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3873 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3874 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3875 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3876 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3877 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3878 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3869, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3870 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3871, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3872 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3873 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyRetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3880 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3883 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3884 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3885 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3886 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3887 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3888 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3889 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3880, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3881 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3882, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3883 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3884 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.UploadsByController\n'
20130515 'Lino.uploads.UploadsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/UploadsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "type" }, \'typeHidden\', { "name": "description" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3891 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var type3892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var description3893 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3895 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3896 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3897 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3898 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3899 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3900 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var valid_until3901 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3897.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3896.on('change',Lino.chooser_handler(owner_id3897,'owner_type'));\n"
20130515 '      Lino.uploads.UploadsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3891 }, { "colIndex": 1, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3892 }, { "colIndex": 2, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3893 }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3894 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3895, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3896 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3897 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3901, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.UploadsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.UploadsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByController\n'
20130515 'Lino.postings.PostingsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date708 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp711 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id712 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type713 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id714 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user715 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id714.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type713.on('change',Lino.chooser_handler(owner_id714,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date708, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner709, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state710 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id712, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type713 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id714 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user715 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project716, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByController.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByController",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByController\n'
20130515 'Lino.cal.TasksByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date719 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary720 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id722 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date719, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary720 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id722, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.TasksByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByController\n'
20130515 'Lino.outbox.MailsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Outgoing Mails",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent662 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox663 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject664 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project669 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date670 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var body671 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox663.refresh();\n'
20130515 "      owner_id667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body671.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type666.on('change',Lino.chooser_handler(owner_id667,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject664 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type666 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id667 }, { "colIndex": 6, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user668 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project669, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date670 }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body671, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MailsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Outgoing Mails",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Outgoing Mails",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class changes.ChangesByMaster\n'
20130515 'Lino.changes.ChangesByMaster.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/changes/ChangesByMaster",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Changes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "time" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "object" }, { "name": "diff" }, { "name": "object_type" }, \'object_typeHidden\', { "name": "object_id" }, \'object_idHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 10,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var time364 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    var user365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type366 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.lino.ChangeTypes });\n'
20130515 '    var object_disp367 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var diff368 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var object_type369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var object_id370 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_id", "method": "GET" }) }) });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      object_id370.setContextValue('object_type',record ? record.data['object_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      object_type369.on('change',Lino.chooser_handler(object_id370,'object_type'));\n"
20130515 '      Lino.changes.ChangesByMaster.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "time", "header": "time", "editable": true, "editor": time364 }, { "colIndex": 1, "sortable": true, "header": "Utilisateur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user365 }, { "colIndex": 2, "sortable": true, "header": "Change Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "type", "editor": type366 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "object", "header": "Object", "editable": false }, { "colIndex": 4, "sortable": false, "header": "Changes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": diff368, "dataIndex": "diff" }, { "colIndex": 5, "sortable": true, "header": "Object type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "object_type", "editor": object_type369 }, { "colIndex": 6, "sortable": true, "header": "object id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "object_id", "editor": object_id370 } ];\n'
20130515 '    Lino.changes.ChangesByMaster.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insertPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Changes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detailPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Changes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.changes.ChangesByMaster.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByController\n'
20130515 'Lino.cal.EventsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1477 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1478 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary1479 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1480 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1481 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1477, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1478 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1479 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1481, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.EventsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.Models\n'
20130515 'Lino.about.Models.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/Models",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Models",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "app" }, { "name": "name" }, { "name": "docstring" }, { "name": "rows" }, { "name": "detail_action" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var app_disp3903 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp3904 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp3905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows3906 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var detail_action_disp3907 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "app", "header": "app_label", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "docstring", "header": "docstring", "editable": false }, new Lino.NullNumberColumn({ "header": "Rows", "colIndex": 3, "sortable": false, "dataIndex": "rows", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "detail_action", "header": "detail_action", "editable": false } ];\n'
20130515 '    Lino.about.Models.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.detailPanel = Ext.extend(Lino.about.Models.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Models",\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/about/Models",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    Lino.about.Models.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.Models.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.about.Models.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.FieldsByModel\n'
20130515 'Lino.about.FieldsByModel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/FieldsByModel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Fields",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "verbose_name" }, { "name": "help_text_column" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_disp2434 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var verbose_name_disp2435 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var help_text_column_disp2436 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "verbose_name", "header": "verbose name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "help_text_column", "header": "help text", "editable": false } ];\n'
20130515 '    Lino.about.FieldsByModel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.FieldsByModel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.FieldsByModel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.SourceFiles\n'
20130515 'Lino.about.SourceFiles.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/SourceFiles",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Source files",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "module_name" }, { "type": "int", "name": "code_lines" }, { "type": "int", "name": "doc_lines" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var module_name3909 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var code_lines3910 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var doc_lines3911 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(5), "colIndex": 0, "sortable": false, "dataIndex": "module_name", "header": "module name", "editable": false }, new Lino.NullNumberColumn({ "header": "Code", "colIndex": 1, "sortable": false, "dataIndex": "code_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "doc", "colIndex": 2, "sortable": false, "dataIndex": "doc_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.about.SourceFiles.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.SourceFiles.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.SourceFiles.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.UsersWithClients\n'
20130515 'Lino.pcsw.UsersWithClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/UsersWithClients",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Agents et leurs clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "G1" }, { "name": "G2" }, { "name": "G4" }, { "name": "G4bis" }, { "name": "G9" }, { "name": "primary_clients" }, { "name": "active_clients" }, { "name": "row_total" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3913 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var G13914 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G23915 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G43916 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G4bis3917 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G93918 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var primary_clients3919 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var active_clients3920 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var row_total3921 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "user", "header": "Accompagnant", "editable": false }, new Lino.NullNumberColumn({ "header": "Bilan", "colIndex": 1, "sortable": false, "dataIndex": "G1", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Formation", "colIndex": 2, "sortable": false, "dataIndex": "G2", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Recherche", "colIndex": 3, "sortable": false, "dataIndex": "G4", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Travail", "colIndex": 4, "sortable": false, "dataIndex": "G4bis", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Standby", "colIndex": 5, "sortable": false, "dataIndex": "G9", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Dossiers complets", "colIndex": 6, "sortable": false, "dataIndex": "primary_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Clients actifs", "colIndex": 7, "sortable": false, "dataIndex": "active_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Total", "colIndex": 8, "sortable": false, "dataIndex": "row_total", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.pcsw.UsersWithClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.UsersWithClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.UsersWithClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class debts.SummaryTable\n'
20130515 'Lino.debts.SummaryTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/debts/SummaryTable",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "SummaryTable",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "desc" }, { "name": "amount" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 3,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var desc_disp3923 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var amount3924 = new Ext.form.NumberField({ "disabled": true, "decimalPrecision": 2, "decimalSeparator": "," });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "desc", "header": "Description", "editable": false }, new Lino.NullNumberColumn({ "width": Lino.chars2width(13), "colIndex": 1, "sortable": false, "dataIndex": "amount", "header": "Montant", "editable": false }) ];\n'
20130515 '    Lino.debts.SummaryTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.debts.SummaryTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.debts.SummaryTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonResult\n'
20130515 'Lino.cbss.IdentifyPersonResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/IdentifyPersonResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "national_id" }, { "name": "last_name" }, { "name": "first_name" }, { "name": "address" }, { "name": "birth_date" }, { "name": "birth_location" }, { "name": "civil_state" }, { "name": "gender" }, \'genderHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 10,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var national_id_disp2193 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var last_name_disp2194 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var first_name_disp2195 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_disp2196 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_date_disp2197 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_location_disp2198 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state_disp2199 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var gender2200 = new Lino.ChoicesFieldElement({ "disabled": true, "store": [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ] });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "national_id", "header": "NISS", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 1, "sortable": false, "dataIndex": "last_name", "header": "Nom de famille", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 2, "sortable": false, "dataIndex": "first_name", "header": "Pr\\u00e9nom", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 4, "sortable": false, "dataIndex": "birth_date", "header": "date de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "birth_location", "header": "Lieu de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 6, "sortable": false, "dataIndex": "civil_state", "header": "Etat civil", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 7, "sortable": false, "dataIndex": "gender", "header": "Sexe", "editable": false } ];\n'
20130515 '    Lino.cbss.IdentifyPersonResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsResult\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "group" }, { "name": "type" }, { "type": "date", "name": "since", "dateFormat": "d.m.Y" }, { "name": "info" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var group_disp2340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var type_disp2341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var since2342 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var info_disp2343 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(19), "colIndex": 0, "sortable": false, "dataIndex": "group", "header": "Groupe", "editable": false }, { "width": Lino.chars2width(6), "colIndex": 1, "sortable": false, "dataIndex": "type", "header": "TI", "editable": false }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Depuis", "dataIndex": "since", "width": Lino.chars2width(15) }, { "width": Lino.chars2width(51), "colIndex": 3, "sortable": false, "dataIndex": "info", "header": "Information", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.CalendarPanel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  return Lino.calendar_app.get_main_panel();\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestStates\n'
20130515 'Lino.courses.CourseRequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/courses/CourseRequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3926 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3927 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3928 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.courses.CourseRequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestStates.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingStates\n'
20130515 'Lino.postings.PostingStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/postings/PostingStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3930 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3931 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3932 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.postings.PostingStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.DurationUnits\n'
20130515 'Lino.cal.DurationUnits.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/DurationUnits",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DurationUnits",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3934 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3935 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3936 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.DurationUnits.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.DurationUnits.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.DurationUnits.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.Weekdays\n'
20130515 'Lino.cal.Weekdays.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/Weekdays",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Weekdays",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3938 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3939 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3940 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.Weekdays.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.Weekdays.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.Weekdays.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountTypes\n'
20130515 'Lino.accounts.AccountTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/accounts/AccountTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccountTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3942 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3943 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3944 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.accounts.AccountTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.CefLevel\n'
20130515 'Lino.cv.CefLevel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cv/CefLevel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CEF levels",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3946 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3947 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3948 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cv.CefLevel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.CefLevel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.CefLevel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.HowWell\n'
20130515 'Lino.properties.HowWell.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/HowWell",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "HowWell",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3950 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3951 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3952 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.HowWell.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.HowWell.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.HowWell.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidatureStates\n'
20130515 'Lino.jobs.CandidatureStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/jobs/CandidatureStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Candidature states",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3954 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3955 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3956 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.jobs.CandidatureStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidatureStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidatureStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientType\n'
20130515 'Lino.outbox.RecipientType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/outbox/RecipientType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RecipientType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3958 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3959 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3960 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.outbox.RecipientType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CityTypes\n'
20130515 'Lino.countries.CityTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/countries/CityTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CityTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3962 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3963 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3964 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.countries.CityTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CityTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CityTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.DoYouLike\n'
20130515 'Lino.properties.DoYouLike.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/DoYouLike",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DoYouLike",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3966 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3967 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3968 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.DoYouLike.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.DoYouLike.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.DoYouLike.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestLanguages\n'
20130515 'Lino.cbss.RequestLanguages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestLanguages",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RequestLanguages",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3970 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3971 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3972 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestLanguages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestLanguages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestLanguages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAction\n'
20130515 'Lino.cbss.ManageAction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/ManageAction",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ManageAction",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3974 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3975 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3976 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.ManageAction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.RefusalReasons\n'
20130515 'Lino.pcsw.RefusalReasons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/RefusalReasons",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RefusalReasons",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3978 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3979 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3980 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.RefusalReasons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.RefusalReasons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.RefusalReasons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestStates\n'
20130515 'Lino.cbss.RequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3982 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3983 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3984 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.ChangeTypes\n'
20130515 'Lino.lino.ChangeTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/ChangeTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Change Types",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3986 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3987 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3988 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.ChangeTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.ChangeTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.ChangeTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.AccessClasses\n'
20130515 'Lino.cal.AccessClasses.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/AccessClasses",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccessClasses",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3990 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3991 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3992 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.AccessClasses.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.AccessClasses.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.AccessClasses.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.QueryRegister\n'
20130515 'Lino.cbss.QueryRegister.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/QueryRegister",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "QueryRegister",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3994 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3995 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3996 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.QueryRegister.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.QueryRegister.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.QueryRegister.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.Genders\n'
20130515 'Lino.lino.Genders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/Genders",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Genders",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3998 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3999 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4000 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.Genders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Genders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.Genders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ResidenceType\n'
20130515 'Lino.pcsw.ResidenceType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/ResidenceType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ResidenceType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : No Lino in response
Retry userdocs/gen/screenshots/fr/cal.CalendarPanel.jpg (3 attempts left)
4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value4002 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name4003 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4004 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.ResidenceType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ResidenceType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ResidenceType.GridPanel(p);\n'
20130515 '});\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:34 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "count": 5, "rows": [ { "babel_name": "Rencontres internes avec client", "description": "", "color": 20, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 1 }, { "babel_name": "Rencontres client externes", "description": "", "color": 1, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 2 }, { "babel_name": "R\\u00e9unions internes", "description": "", "color": 4, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 3 }, { "babel_name": "R\\u00e9unions externes", "description": "", "color": 8, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 4 }, { "babel_name": "Coordinations en \\u00e9quipe", "description": "", "color": 12, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 5 } ] }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:34 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "count": 8, "rows": [ { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Propos\\u00e9) Diner avec SAFFRE Luc (112)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-14T08:30:00", "end_dt": "2013-05-14T09:30:00", "id": 66, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Draft) Souper avec AUSDEMWALD Alfons (116)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-15T09:40:00", "end_dt": "2013-05-15T10:55:00", "id": 67, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Communiqu\\u00e9) Petit-d\\u00e9jeuner avec BASTIAENSEN Laurent (117)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-16T10:20:00", "end_dt": "2013-05-16T11:50:00", "id": 68, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Planif\\u00e9) Rencontre avec COLLARD Charlotte (118)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 4, "calendar": "R\\u00e9unions externes", "start_dt": "2013-05-16T11:10:00", "end_dt": "2013-05-16T12:55:00", "id": 69, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(a eu lieu) Consultation avec CHANTRAINE Marc (120)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 5, "calendar": "Coordinations en \\u00e9quipe", "start_dt": "2013-05-17T13:30:00", "end_dt": "2013-05-17T15:30:00", "id": 70, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(D\\u00e9plac\\u00e9) S\\u00e9minaire avec DERICUM Daniel (121)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-18T08:30:00", "end_dt": "2013-05-18T11:00:00", "id": 71, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Annul\\u00e9) Evaluation avec DEMEULENAERE Doroth\\u00e9e (122)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-18T09:40:00", "end_dt": "2013-05-18T12:40:00", "id": 72, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Absent) Premi\\u00e8re rencontre avec DOBBELSTEIN-DEMEULENAERE Doroth\\u00e9e (123)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-19T10:20:00", "end_dt": "2013-05-19T11:20:00", "id": 73, "reminder": false } ] }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:34 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "count": 8, "rows": [ { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Propos\\u00e9) Diner avec SAFFRE Luc (112)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-14T08:30:00", "end_dt": "2013-05-14T09:30:00", "id": 66, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Draft) Souper avec AUSDEMWALD Alfons (116)", "place": null, "user": "Alicia Allmanns", "caLino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen57" style="display: none; "></div><div id="ext-comp-1099" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-tl"><div class="x-window-tr"><div class="x-window-tc"><div class="x-window-header x-unselectable" id="ext-gen49" style="-webkit-user-select: none; "><div class="x-tool x-tool-close" id="ext-gen55">&nbsp;</div><div class="x-tool x-tool-pin" id="ext-gen54">&nbsp;</div><span class="x-window-header-text" id="ext-gen58">Calendrier</span></div></div></div></div><div class="x-window-bwrap" id="ext-gen50"><div class="x-window-ml"><div class="x-window-mr"><div class="x-window-mc" id="ext-gen53"><div class="x-window-body" id="ext-gen51" style="width: 1018px; height: 679px; "><div id="ext-comp-1082" class=" x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen60"><div class="x-panel-body x-panel-body-noheader" id="ext-gen61" style="width: 1012px; height: 677px; "><div id="app-center" class=" x-panel" style="width: 1012px; "><div class="x-panel-header x-unselectable app-center-header" id="ext-gen63" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen66">Mai 13 - 19, 2013</span></div><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-border-layout-ct" id="ext-gen65" style="width: 1006px; height: 650px; "><div id="app-west" class=" x-panel x-panel-noborder x-border-panel" style="width: 176px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder" id="ext-gen69" style="width: 172px; height: 650px; "><div class="x-date-picker x-unselectable ext-cal-nav-picker" id="ext-gen70" style="-webkit-user-select: none; width: 175px; "><table cellspacing="0" id="ext-gen71" style="width: 175px; "><tbody><tr><td class="x-date-left"><a href="#" title="Mois précédent (CTRL+Flèche gauche)" id="ext-gen72" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td><td class="x-date-middle" align="center" id="ext-gen75"><table id="ext-comp-1100" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class=" x-btn-arrow" unselectable="on" id="ext-gen77"><button type="button" id="ext-gen76" class=" x-btn-text">Mai 2013</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-date-right"><a href="#" title="Mois suivant (CTRL+Flèche droite)" id="ext-gen73" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td></tr><tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr><th><span>L</span></th><th><span>M</span></th><th><span>M</span></th><th><span>J</span></th><th><span>V</span></th><th><span>S</span></th><th><span>D</span></th></tr></thead><tbody><tr><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>10</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>11</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>12</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>13</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>14</span></em></a></td><td class="x-date-active x-date-today x-date-selected" title="Aujourd'hui"><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>15</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>16</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>17</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>18</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>19</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>20</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>21</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>22</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>23</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>24</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>25</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>26</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>27</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>28</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>31</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td></tr><tr><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td></tr></tbody></table></td></tr><tr><td colspan="3" class="x-date-bottom" align="center" id="ext-gen78"><table id="ext-comp-1101" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen79" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table><div class="x-date-mp" id="ext-gen74"></div></div><div id="ext-comp-1083" class=" x-panel"><div class="x-panel-bwrap" id="ext-gen80"><div class="x-panel-body x-panel-body-noheader" id="ext-gen81"><table id="ext-comp-1081" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen89" class=" x-btn-text">Team view</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></div></div><div id="ext-comp-1084" class=" x-panel x-calendar-list x-panel-noborder" style="width: 175px; "><div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen83" style="-webkit-user-select: none; "><div class="x-tool x-tool-toggle" id="ext-gen86">&nbsp;</div><span class="x-panel-header-text" id="ext-gen87">Agendas</span></div><div class="x-panel-bwrap" id="ext-gen84"><div class="x-panel-body x-panel-body-noborder" id="ext-gen85" style="width: 171px; height: auto; "><ul class="x-unselectable"><li id="ext-comp-1084__1" class="ext-cal-evr x-cal-20-ad ">Rencontres internes avec client<em>&nbsp;</em></li><li id="ext-comp-1084__2" class="ext-cal-evr x-cal-1-ad ">Rencontres client externes<em>&nbsp;</em></li><li id="ext-comp-1084__3" class="ext-cal-evr x-cal-4-ad ">Réunions internes<em>&nbsp;</em></li><li id="ext-comp-1084__4" class="ext-cal-evr x-cal-8-ad ">Réunions externes<em>&nbsp;</em></li><li id="ext-comp-1084__5" class="ext-cal-evr x-cal-12-ad ">Coordinations en équipe<em>&nbsp;</em></li></ul></div></div></div></div></div></div><div id="app-calendar" class=" x-panel x-cal-panel x-panel-noborder x-border-panel" style="width: 834px; left: 176px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen90"><div class="x-panel-tbar x-panel-tbar-noheader x-panel-tbar-noborder" id="ext-gen91" style="width: 834px; "><div id="ext-comp-1085" class="x-toolbar x-small-editor ext-cal-toolbar x-toolbar-layout-ct" style="width: 828px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen98"><table id="app-calendar-tb-today" cellspacing="0" class="x-btn  x-btn-noicon x-item-disabled" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen99" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen100"><table id="app-calendar-tb-prev" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen101" class=" x-btn-text x-tbar-page-prev">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen102"><table id="app-calendar-tb-next" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen103" class=" x-btn-text x-tbar-page-next">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen104"><div class="xtb-text" id="ext-comp-1086">Aller au :</div></td><td class="x-toolbar-cell" id="ext-gen105"><div class="x-form-field-wrap x-form-field-trigger-wrap" id="ext-gen106" style="width: 94px; "><input type="text" size="10" autocomplete="off" id="app-calendar-tb-jump-dt" name="app-calendar-tb-jump-dt" class="x-form-text x-form-field" style="width: 69px; "><img src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif" alt="" class="x-form-trigger x-form-date-trigger" id="ext-gen107"></div></td><td class="x-toolbar-cell" id="ext-gen108"><table id="app-calendar-tb-jump" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen109" class=" x-btn-text">Ok</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen110"><table id="app-calendar-tb-day" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen111" class=" x-btn-text">Jour</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen112"><table id="app-calendar-tb-week" cellspacing="0" class="x-btn  x-btn-noicon x-btn-pressed" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen113" class=" x-btn-text">Semaine</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen114"><table id="app-calendar-tb-multiweek" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen115" class=" x-btn-text">2 semaines</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen116"><table id="app-calendar-tb-month" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen117" class=" x-btn-text">Mois</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-cal-body" id="ext-gen92" style="width: 830px; height: 622px; "><div id="app-calendar-week" class=" ext-cal-dayview ext-cal-ct" style="width: 830px; height: 622px; "><div id="app-calendar-week-hd" class=" ext-cal-day-header ext-cal-monthview ext-cal-ct x-unselectable" style="-webkit-user-select: none; height: 52px; "><div class="ext-cal-hd-ct"><table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0"><tbody><tr><td class="ext-cal-gutter"></td><td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner" id="ext-gen144" style="height: 50px; "><div id="app-calendar-week-hd-wk-0" class="ext-cal-wk-ct" style="top:0%; height:100%;"><table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0" id="ext-gen145" style="height: 49px; "><tbody><tr><td id="app-calendar-week-hd-day-20130513" class="ext-cal-day  ext-cal-day-first">&nbsp;</td><td id="app-calendar-week-hd-day-20130514" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130515" class="ext-cal-day  ext-cal-day-today">&nbsp;</td><td id="app-calendar-week-hd-day-20130516" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130517" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130518" class="ext-cal-day  ext-cal-day-we">&nbsp;</td><td id="app-calendar-week-hd-day-20130519" class="ext-cal-day  ext-cal-day-we">&nbsp;</td></tr></tbody></table><table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0" id="ext-gen143"><tbody><tr><td id="app-calendar-week-hd-ev-day-20130513" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>13 Mai 2013</div></td><td id="app-calendar-week-hd-ev-day-20130514" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Mar 14</div></td><td id="app-calendar-week-hd-ev-day-20130515" class="ext-cal-dtitle  ext-cal-dtitle-today ext-cal-dtitle-first"><div>Aujourd'hui <span id="app-calendar-week-hd-clock" class="ext-cal-dtitle-time">11:45</span></div></td><td id="app-calendar-week-hd-ev-day-20130516" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Jeu 16</div></td><td id="app-calendar-week-hd-ev-day-20130517" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Ven 17</div></td><td id="app-calendar-week-hd-ev-day-20130518" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Sam 18</div></td><td id="app-calendar-week-hd-ev-day-20130519" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Dim 19</div></td></tr><tr id="ext-gen142"><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130513" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130514" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130515" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130516" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130517" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130518" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130519" rowspan="2">&nbsp;</td></tr></tbody></table></div></div></td><td class="ext-cal-gutter-rt"></td></tr></tbody></table></div></div><div id="app-calendar-week-bd" class=" ext-cal-body-ct x-unselectable" style="-webkit-user-select: none; height: 569px; "><table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:420px;"><tbody><tr height="1"><td class="ext-cal-gutter"></td><td colspan="7"><div class="ext-cal-bg-rows"><div class="ext-cal-bg-rows-inner"><div class="ext-cal-bg-row ext-row-1" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-2" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-3" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-4" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-5" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-6" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-7" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-8" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-9" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-10" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div></div></div></td></tr><tr><td class="ext-cal-day-times"><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">8:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">9:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">10:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">11:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">12:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">13:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">14:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">15:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">16:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">17:00</div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130513" class="ext-cal-day-col-gutter" style="height:420px;"></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130514" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-66 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 22px; height: 40px;"><div class="ext-evt-bd">8:30 (Proposé) Diner avec SAFFRE Luc (112)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130515" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-67 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 71px; height: 50.5px;"><div class="ext-evt-bd">9:40 (Draft) Souper avec AUSDEMWALD Alfons (116)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130516" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-68 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 99px; height: 60.99999999999999px;"><div class="ext-evt-bd">10:20 (Communiqué) Petit-déjeuner avec BASTIAENSEN Laurent (117)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-69 x-cal-8 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 134px; height: 71.5px;"><div class="ext-evt-bd">11:10 (Planifé) Rencontre avec COLLARD Charlotte (118)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130517" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-70 x-cal-12 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 231.99999999999997px; height: 82px;"><div class="ext-evt-bd">13:30 (a eu lieu) Consultation avec CHANTRAINE Marc (120)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130518" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-71 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 22px; height: 103px;"><div class="ext-evt-bd">8:30 (Déplacé) Séminaire avec DERICUM Daniel (121)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-72 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 71px; height: 123.99999999999999px;"><div class="ext-evt-bd">9:40 (Annulé) Evaluation avec DEMEULENAERE Dorothée (122)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130519" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-73 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 99px; height: 40px;"><div class="ext-evt-bd">10:20 (Absent) Première rencontre avec DOBBELSTEIN-DEMEULENAERE Dorothée (123)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-window-bl x-panel-nofooter" id="ext-gen52"><div class="x-window-br"><div class="x-window-bc"></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen56">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen118" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen119" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen120" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen121" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen122" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen123" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen124" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen125" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div id="ext-gen95" class="ext-dd-drag-proxy x-dd-drag-proxy x-dd-drop-nodrop" style="position: absolute; z-index: 15000; visibility: hidden; left: -10000px; top: -10000px; "><div class="x-dd-drop-icon"></div><div class="ext-dd-ghost-ct"><div class="x-dd-drag-ghost" id="ext-gen96"></div><div class="ext-dd-msg" id="ext-gen97"></div></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1099-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/fr/cal.CalendarPanel.jpg (2 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen57" style="display: none; "></div><div id="ext-comp-1099" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-tl"><div class="x-window-tr"><div class="x-window-tc"><div class="x-window-header x-unselectable" id="ext-gen49" style="-webkit-user-select: none; "><div class="x-tool x-tool-close" id="ext-gen55">&nbsp;</div><div class="x-tool x-tool-pin" id="ext-gen54">&nbsp;</div><span class="x-window-header-text" id="ext-gen58">Calendrier</span></div></div></div></div><div class="x-window-bwrap" id="ext-gen50"><div class="x-window-ml"><div class="x-window-mr"><div class="x-window-mc" id="ext-gen53"><div class="x-window-body" id="ext-gen51" style="width: 1018px; height: 679px; "><div id="ext-comp-1082" class=" x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen60"><div class="x-panel-body x-panel-body-noheader" id="ext-gen61" style="width: 1012px; height: 677px; "><div id="app-center" class=" x-panel" style="width: 1012px; "><div class="x-panel-header x-unselectable app-center-header" id="ext-gen63" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen66">Mai 13 - 19, 2013</span></div><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-border-layout-ct" id="ext-gen65" style="width: 1006px; height: 650px; "><div id="app-west" class=" x-panel x-panel-noborder x-border-panel" style="width: 176px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder" id="ext-gen69" style="width: 172px; height: 650px; "><div class="x-date-picker x-unselectable ext-cal-nav-picker" id="ext-gen70" style="-webkit-user-select: none; width: 175px; "><table cellspacing="0" id="ext-gen71" style="width: 175px; "><tbody><tr><td class="x-date-left"><a href="#" title="Mois précédent (CTRL+Flèche gauche)" id="ext-gen72" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td><td class="x-date-middle" align="center" id="ext-gen75"><table id="ext-comp-1100" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class=" x-btn-arrow" unselectable="on" id="ext-gen77"><button type="button" id="ext-gen76" class=" x-btn-text">Mai 2013</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-date-right"><a href="#" title="Mois suivant (CTRL+Flèche droite)" id="ext-gen73" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td></tr><tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr><th><span>L</span></th><th><span>M</span></th><th><span>M</span></th><th><span>J</span></th><th><span>V</span></th><th><span>S</span></th><th><span>D</span></th></tr></thead><tbody><tr><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>10</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>11</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>12</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>13</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>14</span></em></a></td><td class="x-date-active x-date-today x-date-selected" title="Aujourd'hui"><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>15</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>16</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>17</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>18</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>19</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>20</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>21</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>22</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>23</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>24</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>25</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>26</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>27</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>28</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>31</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td></tr><tr><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td></tr></tbody></table></td></tr><tr><td colspan="3" class="x-date-bottom" align="center" id="ext-gen78"><table id="ext-comp-1101" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen79" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table><div class="x-date-mp" id="ext-gen74"></div></div><div id="ext-comp-1083" class=" x-panel"><div class="x-panel-bwrap" id="ext-gen80"><div class="x-panel-body x-panel-body-noheader" id="ext-gen81"><table id="ext-comp-1081" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen89" class=" x-btn-text">Team view</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></div></div><div id="ext-comp-1084" class=" x-panel x-calendar-list x-panel-noborder" style="width: 175px; "><div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen83" style="-webkit-user-select: none; "><div class="x-tool x-tool-toggle" id="ext-gen86">&nbsp;</div><span class="x-panel-header-text" id="ext-gen87">Agendas</span></div><div class="x-panel-bwrap" id="ext-gen84"><div class="x-panel-body x-panel-body-noborder" id="ext-gen85" style="width: 171px; height: auto; "><ul class="x-unselectable"><li id="ext-comp-1084__1" class="ext-cal-evr x-cal-20-ad ">Rencontres internes avec client<em>&nbsp;</em></li><li id="ext-comp-1084__2" class="ext-cal-evr x-cal-1-ad ">Rencontres client externes<em>&nbsp;</em></li><li id="ext-comp-1084__3" class="ext-cal-evr x-cal-4-ad ">Réunions internes<em>&nbsp;</em></li><li id="ext-comp-1084__4" class="ext-cal-evr x-cal-8-ad ">Réunions externes<em>&nbsp;</em></li><li id="ext-comp-1084__5" class="ext-cal-evr x-cal-12-ad ">Coordinations en équipe<em>&nbsp;</em></li></ul></div></div></div></div></div></div><div id="app-calendar" class=" x-panel x-cal-panel x-panel-noborder x-border-panel" style="width: 834px; left: 176px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen90"><div class="x-panel-tbar x-panel-tbar-noheader x-panel-tbar-noborder" id="ext-gen91" style="width: 834px; "><div id="ext-comp-1085" class="x-toolbar x-small-editor ext-cal-toolbar x-toolbar-layout-ct" style="width: 828px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen98"><table id="app-calendar-tb-today" cellspacing="0" class="x-btn  x-btn-noicon x-item-disabled" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen99" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen100"><table id="app-calendar-tb-prev" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen101" class=" x-btn-text x-tbar-page-prev">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen102"><table id="app-calendar-tb-next" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen103" class=" x-btn-text x-tbar-page-next">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen104"><div class="xtb-text" id="ext-comp-1086">Aller au :</div></td><td class="x-toolbar-cell" id="ext-gen105"><div class="x-form-field-wrap x-form-field-trigger-wrap" id="ext-gen106" style="width: 94px; "><input type="text" size="10" autocomplete="off" id="app-calendar-tb-jump-dt" name="app-calendar-tb-jump-dt" class="x-form-text x-form-field" style="width: 69px; "><img src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif" alt="" class="x-form-trigger x-form-date-trigger" id="ext-gen107"></div></td><td class="x-toolbar-cell" id="ext-gen108"><table id="app-calendar-tb-jump" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen109" class=" x-btn-text">Ok</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen110"><table id="app-calendar-tb-day" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen111" class=" x-btn-text">Jour</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen112"><table id="app-calendar-tb-week" cellspacing="0" class="x-btn  x-btn-noicon x-btn-pressed" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen113" class=" x-btn-text">Semaine</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen114"><table id="app-calendar-tb-multiweek" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen115" class=" x-btn-text">2 semaines</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen116"><table id="app-calendar-tb-month" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen117" class=" x-btn-text">Mois</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-cal-body" id="ext-gen92" style="width: 830px; height: 622px; "><div id="app-calendar-week" class=" ext-cal-dayview ext-cal-ct" style="width: 830px; height: 622px; "><div id="app-calendar-week-hd" class=" ext-cal-day-header ext-cal-monthview ext-cal-ct x-unselectable" style="-webkit-user-select: none; height: 52px; "><div class="ext-cal-hd-ct"><table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0"><tbody><tr><td class="ext-cal-gutter"></td><td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner" id="ext-gen144" style="height: 50px; "><div id="app-calendar-week-hd-wk-0" class="ext-cal-wk-ct" style="top:0%; height:100%;"><table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0" id="ext-gen145" style="height: 49px; "><tbody><tr><td id="app-calendar-week-hd-day-20130513" class="ext-cal-day  ext-cal-day-first">&nbsp;</td><td id="app-calendar-week-hd-day-20130514" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130515" class="ext-cal-day  ext-cal-day-today">&nbsp;</td><td id="app-calendar-week-hd-day-20130516" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130517" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130518" class="ext-cal-day  ext-cal-day-we">&nbsp;</td><td id="app-calendar-week-hd-day-20130519" class="ext-cal-day  ext-cal-day-we">&nbsp;</td></tr></tbody></table><table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0" id="ext-gen143"><tbody><tr><td id="app-calendar-week-hd-ev-day-20130513" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>13 Mai 2013</div></td><td id="app-calendar-week-hd-ev-day-20130514" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Mar 14</div></td><td id="app-calendar-week-hd-ev-day-20130515" class="ext-cal-dtitle  ext-cal-dtitle-today ext-cal-dtitle-first"><div>Aujourd'hui <span id="app-calendar-week-hd-clock" class="ext-cal-dtitle-time">11:45</span></div></td><td id="app-calendar-week-hd-ev-day-20130516" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Jeu 16</div></td><td id="app-calendar-week-hd-ev-day-20130517" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Ven 17</div></td><td id="app-calendar-week-hd-ev-day-20130518" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Sam 18</div></td><td id="app-calendar-week-hd-ev-day-20130519" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Dim 19</div></td></tr><tr id="ext-gen142"><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130513" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130514" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130515" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130516" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130517" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130518" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130519" rowspan="2">&nbsp;</td></tr></tbody></table></div></div></td><td class="ext-cal-gutter-rt"></td></tr></tbody></table></div></div><div id="app-calendar-week-bd" class=" ext-cal-body-ct x-unselectable" style="-webkit-user-select: none; height: 569px; "><table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:420px;"><tbody><tr height="1"><td class="ext-cal-gutter"></td><td colspan="7"><div class="ext-cal-bg-rows"><div class="ext-cal-bg-rows-inner"><div class="ext-cal-bg-row ext-row-1" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-2" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-3" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-4" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-5" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-6" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-7" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-8" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-9" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-10" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div></div></div></td></tr><tr><td class="ext-cal-day-times"><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">8:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">9:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">10:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">11:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">12:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">13:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">14:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">15:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">16:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">17:00</div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130513" class="ext-cal-day-col-gutter" style="height:420px;"></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130514" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-66 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 22px; height: 40px;"><div class="ext-evt-bd">8:30 (Proposé) Diner avec SAFFRE Luc (112)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130515" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-67 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 71px; height: 50.5px;"><div class="ext-evt-bd">9:40 (Draft) Souper avec AUSDEMWALD Alfons (116)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130516" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-68 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 99px; height: 60.99999999999999px;"><div class="ext-evt-bd">10:20 (Communiqué) Petit-déjeuner avec BASTIAENSEN Laurent (117)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-69 x-cal-8 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 134px; height: 71.5px;"><div class="ext-evt-bd">11:10 (Planifé) Rencontre avec COLLARD Charlotte (118)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130517" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-70 x-cal-12 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 231.99999999999997px; height: 82px;"><div class="ext-evt-bd">13:30 (a eu lieu) Consultation avec CHANTRAINE Marc (120)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130518" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-71 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 22px; height: 103px;"><div class="ext-evt-bd">8:30 (Déplacé) Séminaire avec DERICUM Daniel (121)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-72 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 71px; height: 123.99999999999999px;"><div class="ext-evt-bd">9:40 (Annulé) Evaluation avec DEMEULENAERE Dorothée (122)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130519" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-73 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 99px; height: 40px;"><div class="ext-evt-bd">10:20 (Absent) Première rencontre avec DOBBELSTEIN-DEMEULENAERE Dorothée (123)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-window-bl x-panel-nofooter" id="ext-gen52"><div class="x-window-br"><div class="x-window-bc"></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen56">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen118" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen119" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen120" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen121" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen122" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen123" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen124" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen125" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div id="ext-gen95" class="ext-dd-drag-proxy x-dd-drag-proxy x-dd-drop-nodrop" style="position: absolute; z-index: 15000; visibility: hidden; left: -10000px; top: -10000px; "><div class="x-dd-drop-icon"></div><div class="ext-dd-ghost-ct"><div class="x-dd-drag-ghost" id="ext-gen96"></div><div class="ext-dd-msg" id="ext-gen97"></div></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1099-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/fr/cal.CalendarPanel.jpg (1 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen57" style="display: none; "></div><div id="ext-comp-1099" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-tl"><div class="x-window-tr"><div class="x-window-tc"><div class="x-window-header x-unselectable" id="ext-gen49" style="-webkit-user-select: none; "><div class="x-tool x-tool-close" id="ext-gen55">&nbsp;</div><div class="x-tool x-tool-pin" id="ext-gen54">&nbsp;</div><span class="x-window-header-text" id="ext-gen58">Calendrier</span></div></div></div></div><div class="x-window-bwrap" id="ext-gen50"><div class="x-window-ml"><div class="x-window-mr"><div class="x-window-mc" id="ext-gen53"><div class="x-window-body" id="ext-gen51" style="width: 1018px; height: 679px; "><div id="ext-comp-1082" class=" x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen60"><div class="x-panel-body x-panel-body-noheader" id="ext-gen61" style="width: 1012px; height: 677px; "><div id="app-center" class=" x-panel" style="width: 1012px; "><div class="x-panel-header x-unselectable app-center-header" id="ext-gen63" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen66">Mai 13 - 19, 2013</span></div><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-border-layout-ct" id="ext-gen65" style="width: 1006px; height: 650px; "><div id="app-west" class=" x-panel x-panel-noborder x-border-panel" style="width: 176px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder" id="ext-gen69" style="width: 172px; height: 650px; "><div class="x-date-picker x-unselectable ext-cal-nav-picker" id="ext-gen70" style="-webkit-user-select: none; width: 175px; "><table cellspacing="0" id="ext-gen71" style="width: 175px; "><tbody><tr><td class="x-date-left"><a href="#" title="Mois précédent (CTRL+Flèche gauche)" id="ext-gen72" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td><td class="x-date-middle" align="center" id="ext-gen75"><table id="ext-comp-1100" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class=" x-btn-arrow" unselectable="on" id="ext-gen77"><button type="button" id="ext-gen76" class=" x-btn-text">Mai 2013</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-date-right"><a href="#" title="Mois suivant (CTRL+Flèche droite)" id="ext-gen73" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td></tr><tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr><th><span>L</span></th><th><span>M</span></th><th><span>M</span></th><th><span>J</span></th><th><span>V</span></th><th><span>S</span></th><th><span>D</span></th></tr></thead><tbody><tr><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>10</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>11</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>12</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>13</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>14</span></em></a></td><td class="x-date-active x-date-today x-date-selected" title="Aujourd'hui"><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>15</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>16</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>17</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>18</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>19</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>20</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>21</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>22</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>23</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>24</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>25</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>26</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>27</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>28</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>31</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td></tr><tr><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td></tr></tbody></table></td></tr><tr><td colspan="3" class="x-date-bottom" align="center" id="ext-gen78"><table id="ext-comp-1101" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen79" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table><div class="x-date-mp" id="ext-gen74"></div></div><div id="ext-comp-1083" class=" x-panel"><div class="x-panel-bwrap" id="ext-gen80"><div class="x-panel-body x-panel-body-noheader" id="ext-gen81"><table id="ext-comp-1081" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen89" class=" x-btn-text">Team view</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></div></div><div id="ext-comp-1084" class=" x-panel x-calendar-list x-panel-noborder" style="width: 175px; "><div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen83" style="-webkit-user-select: none; "><div class="x-tool x-tool-toggle" id="ext-gen86">&nbsp;</div><span class="x-panel-header-text" id="ext-gen87">Agendas</span></div><div class="x-panel-bwrap" id="ext-gen84"><div class="x-panel-body x-panel-body-noborder" id="ext-gen85" style="width: 171px; height: auto; "><ul class="x-unselectable"><li id="ext-comp-1084__1" class="ext-cal-evr x-cal-20-ad ">Rencontres internes avec client<em>&nbsp;</em></li><li id="ext-comp-1084__2" class="ext-cal-evr x-cal-1-ad ">Rencontres client externes<em>&nbsp;</em></li><li id="ext-comp-1084__3" class="ext-cal-evr x-cal-4-ad ">Réunions internes<em>&nbsp;</em></li><li id="ext-comp-1084__4" class="ext-cal-evr x-cal-8-ad ">Réunions externes<em>&nbsp;</em></li><li id="ext-comp-1084__5" class="ext-cal-evr x-cal-12-ad ">Coordinations en équipe<em>&nbsp;</em></li></ul></div></div></div></div></div></div><div id="app-calendar" class=" x-panel x-cal-panel x-panel-noborder x-border-panel" style="width: 834px; left: 176px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen90"><div class="x-panel-tbar x-panel-tbar-noheader x-panel-tbar-noborder" id="ext-gen91" style="width: 834px; "><div id="ext-comp-1085" class="x-toolbar x-small-editor ext-cal-toolbar x-toolbar-layout-ct" style="width: 828px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen98"><table id="app-calendar-tb-today" cellspacing="0" class="x-btn  x-btn-noicon x-item-disabled" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen99" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen100"><table id="app-calendar-tb-prev" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen101" class=" x-btn-text x-tbar-page-prev">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen102"><table id="app-calendar-tb-next" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen103" class=" x-btn-text x-tbar-page-next">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen104"><div class="xtb-text" id="ext-comp-1086">Aller au :</div></td><td class="x-toolbar-cell" id="ext-gen105"><div class="x-form-field-wrap x-form-field-trigger-wrap" id="ext-gen106" style="width: 94px; "><input type="text" size="10" autocomplete="off" id="app-calendar-tb-jump-dt" name="app-calendar-tb-jump-dt" class="x-form-text x-form-field" style="width: 69px; "><img src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif" alt="" class="x-form-trigger x-form-date-trigger" id="ext-gen107"></div></td><td class="x-toolbar-cell" id="ext-gen108"><table id="app-calendar-tb-jump" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen109" class=" x-btn-text">Ok</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen110"><table id="app-calendar-tb-day" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen111" class=" x-btn-text">Jour</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen112"><table id="app-calendar-tb-week" cellspacing="0" class="x-btn  x-btn-noicon x-btn-pressed" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen113" class=" x-btn-text">Semaine</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen114"><table id="app-calendar-tb-multiweek" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen115" class=" x-btn-text">2 semaines</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen116"><table id="app-calendar-tb-month" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen117" class=" x-btn-text">Mois</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-cal-body" id="ext-gen92" style="width: 830px; height: 622px; "><div id="app-calendar-week" class=" ext-cal-dayview ext-cal-ct" style="width: 830px; height: 622px; "><div id="app-calendar-week-hd" class=" ext-cal-day-header ext-cal-monthview ext-cal-ct x-unselectable" style="-webkit-user-select: none; height: 52px; "><div class="ext-cal-hd-ct"><table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0"><tbody><tr><td class="ext-cal-gutter"></td><td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner" id="ext-gen144" style="height: 50px; "><div id="app-calendar-week-hd-wk-0" class="ext-cal-wk-ct" style="top:0%; height:100%;"><table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0" id="ext-gen145" style="height: 49px; "><tbody><tr><td id="app-calendar-week-hd-day-20130513" class="ext-cal-day  ext-cal-day-first">&nbsp;</td><td id="app-calendar-week-hd-day-20130514" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130515" class="ext-cal-day  ext-cal-day-today">&nbsp;</td><td id="app-calendar-week-hd-day-20130516" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130517" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130518" class="ext-cal-day  ext-cal-day-we">&nbsp;</td><td id="app-calendar-week-hd-day-20130519" class="ext-cal-day  ext-cal-day-we">&nbsp;</td></tr></tbody></table><table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0" id="ext-gen143"><tbody><tr><td id="app-calendar-week-hd-ev-day-20130513" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>13 Mai 2013</div></td><td id="app-calendar-week-hd-ev-day-20130514" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Mar 14</div></td><td id="app-calendar-week-hd-ev-day-20130515" class="ext-cal-dtitle  ext-cal-dtitle-today ext-cal-dtitle-first"><div>Aujourd'hui <span id="app-calendar-week-hd-clock" class="ext-cal-dtitle-time">11:45</span></div></td><td id="app-calendar-week-hd-ev-day-20130516" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Jeu 16</div></td><td id="app-calendar-week-hd-ev-day-20130517" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Ven 17</div></td><td id="app-calendar-week-hd-ev-day-20130518" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Sam 18</div></td><td id="app-calendar-week-hd-ev-day-20130519" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Dim 19</div></td></tr><tr id="ext-gen142"><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130513" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130514" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130515" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130516" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130517" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130518" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130519" rowspan="2">&nbsp;</td></tr></tbody></table></div></div></td><td class="ext-cal-gutter-rt"></td></tr></tbody></table></div></div><div id="app-calendar-week-bd" class=" ext-cal-body-ct x-unselectable" style="-webkit-user-select: none; height: 569px; "><table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:420px;"><tbody><tr height="1"><td class="ext-cal-gutter"></td><td colspan="7"><div class="ext-cal-bg-rows"><div class="ext-cal-bg-rows-inner"><div class="ext-cal-bg-row ext-row-1" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-2" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-3" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-4" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-5" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-6" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-7" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-8" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-9" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-10" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div></div></div></td></tr><tr><td class="ext-cal-day-times"><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">8:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">9:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">10:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">11:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">12:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">13:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">14:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">15:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">16:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">17:00</div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130513" class="ext-cal-day-col-gutter" style="height:420px;"></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130514" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-66 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 22px; height: 40px;"><div class="ext-evt-bd">8:30 (Proposé) Diner avec SAFFRE Luc (112)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130515" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-67 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 71px; height: 50.5px;"><div class="ext-evt-bd">9:40 (Draft) Souper avec AUSDEMWALD Alfons (116)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130516" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-68 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 99px; height: 60.99999999999999px;"><div class="ext-evt-bd">10:20 (Communiqué) Petit-déjeuner avec BASTIAENSEN Laurent (117)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-69 x-cal-8 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 134px; height: 71.5px;"><div class="ext-evt-bd">11:10 (Planifé) Rencontre avec COLLARD Charlotte (118)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130517" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-70 x-cal-12 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 231.99999999999997px; height: 82px;"><div class="ext-evt-bd">13:30 (a eu lieu) Consultation avec CHANTRAINE Marc (120)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130518" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-71 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 22px; height: 103px;"><div class="ext-evt-bd">8:30 (Déplacé) Séminaire avec DERICUM Daniel (121)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-72 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 71px; height: 123.99999999999999px;"><div class="ext-evt-bd">9:40 (Annulé) Evaluation avec DEMEULENAERE Dorothée (122)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130519" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-73 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 99px; height: 40px;"><div class="ext-evt-bd">10:20 (Absent) Première rencontre avec DOBBELSTEIN-DEMEULENAERE Dorothée (123)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-window-bl x-panel-nofooter" id="ext-gen52"><div class="x-window-br"><div class="x-window-bc"></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen56">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen118" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen119" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen120" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen121" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen122" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen123" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen124" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen125" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div id="ext-gen95" class="ext-dd-drag-proxy x-dd-drag-proxy x-dd-drop-nodrop" style="position: absolute; z-index: 15000; visibility: hidden; left: -10000px; top: -10000px; "><div class="x-dd-drop-icon"></div><div class="ext-dd-ghost-ct"><div class="x-dd-drag-ghost" id="ext-gen96"></div><div class="ext-dd-msg" id="ext-gen97"></div></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1099-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Giving up userdocs/gen/screenshots/fr/cal.CalendarPanel.jpg
Rendering to userdocs/gen/screenshots/fr/cal.CalendarPanel.jpg false
Loading http://127.0.0.1:8000?lng=nl to userdocs/gen/screenshots/nl/index.jpg
lendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-15T09:40:00", "end_dt": "2013-05-15T10:55:00", "id": 67, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Communiqu\\u00e9) Petit-d\\u00e9jeuner avec BASTIAENSEN Laurent (117)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-16T10:20:00", "end_dt": "2013-05-16T11:50:00", "id": 68, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Planif\\u00e9) Rencontre avec COLLARD Charlotte (118)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 4, "calendar": "R\\u00e9unions externes", "start_dt": "2013-05-16T11:10:00", "end_dt": "2013-05-16T12:55:00", "id": 69, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(a eu lieu) Consultation avec CHANTRAINE Marc (120)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 5, "calendar": "Coordinations en \\u00e9quipe", "start_dt": "2013-05-17T13:30:00", "end_dt": "2013-05-17T15:30:00", "id": 70, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(D\\u00e9plac\\u00e9) S\\u00e9minaire avec DERICUM Daniel (121)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-18T08:30:00", "end_dt": "2013-05-18T11:00:00", "id": 71, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Annul\\u00e9) Evaluation avec DEMEULENAERE Doroth\\u00e9e (122)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-18T09:40:00", "end_dt": "2013-05-18T12:40:00", "id": 72, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Absent) Premi\\u00e8re rencontre avec DOBBELSTEIN-DEMEULENAERE Doroth\\u00e9e (123)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-19T10:20:00", "end_dt": "2013-05-19T11:20:00", "id": 73, "reminder": false } ] }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:37 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: text/html; charset=utf-8\r\nContent-Language: fr\r\n\r\n'
20130515 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html><head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<title id="title">Lino-Welfare</title>\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css" />\n<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css" />\n<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css" />\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>\n<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>\n<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>\n<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>\n<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>\n<script language="javascript" type="text/javascript">\ntinymce.init({\n        theme : "advanced"\n        // , mode : "textareas"\n});\n</script>\n<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>\n<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>\n<script type="text/javascript">\nExt.onReady(function(){\nLino.set_subst_user();\nLino.user = { "name": "Alicia Allmanns", "id": 6 };\nLino.main_menu = Lino.main_menu.concat([\'->\',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);\n  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.statuopened auth!
s_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});\n  Lino.viewport.render("body");\nLino.lino.Home.show.run(null,{ "record_id": -99998 })\n}); // end of onReady()\n</script></head><body>\n<div id="body"></div>\n</body></html>'
20130515 authenticate alicia,1234
20130515 authenticate None,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:37 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "message": "Could not authenticate u\'None\'", "success": false }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:37 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Tue, 19 Mar 2013 15:33:52 GMT\r\nContent-Length: 7750\r\nContent-Type: text/css\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\r\n'
20130515 ' Copyright 2009-2013 Luc Saffre\r\n'
20130515 ' This file is part of the Lino project.\r\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \r\n'
20130515 ' it under the terms of the GNU General Public License as published by\r\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\r\n'
20130515 ' (at your option) any later version.\r\n'
20130515 ' Lino is distributed in the hope that it will be useful, \r\n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \r\n'
20130515 ' GNU General Public License for more details.\r\n'
20130515 ' You should have received a copy of the GNU General Public License\r\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'http://stackoverflow.com/questions/2106104/word-wrap-grid-cells-in-ext-js \r\n'
20130515 'e.g. welfare.jobs.NewJobsOverview needs\r\n'
20130515 '*/\r\n'
20130515 '/* \r\n'
20130515 '.x-grid3-cell-inner {\r\n'
20130515 '  /* white-space: normal; changed from nowrap \r\n'
20130515 '  height:18px; \r\n'
20130515 '  overflow:hidden;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-grid3-hd-inner {\r\n'
20130515 '  white-space: normal; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*.lino-phantom-row table.x-grid3-row-table {\r\n'
20130515 '\tcolor: blue; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '.lino-phantom-row td {\r\n'
20130515 '\t/* font-style: italic; */\r\n'
20130515 '\tcolor:white;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-item-disabled, .x-tree-node-disabled, .x-date-disabled\r\n'
20130515 '*/\r\n'
20130515 '.x-item-disabled {\r\n'
20130515 '  color: blue; \r\n'
20130515 '  /*   opacity: 1;  \r\n'
20130515 '  font-weight: bold; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-item-disabled * {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '  /*font-weight: bold !important; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-noicon {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '.x-btn-pressed {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-text {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-menu-active {\r\n'
20130515 "\tcursor: 'wait';\r\n"
20130515 "\tcolor:'red';\r\n"
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* See blog/2011/0603\r\n'
20130515 '*/\r\n'
20130515 '.x-form-item-label{\r\n'
20130515 '    white-space: nowrap; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-form-field { padding: 10px; }\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-panel-body-noheader { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '.x-panel-body { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* TinyMCE specific rules */\r\n'
20130515 '/* \r\n'
20130515 'body.mceContentBody {\r\n'
20130515 '  color: red !important; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 'body.mceNonEditable {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 '\r\n'
20130515 'To display "normal" HTML inside an ExtJS component, \r\n'
20130515 'wrap it into a <div class="htmlText">.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.htmlText {\r\n'
20130515 '\tfont-family: arial,tahoma;\r\n'
20130515 '}\r\n'
20130515 '.htmlText h1 {\r\n'
20130515 '\tfont-size:16px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:12px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText h2 {\r\n'
20130515 '\tfont-size:13px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:10px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText td,th {\r\n'
20130515 '\tpadding:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText p {\r\n'
20130515 '\tmargin-top:0px;\r\n'
20130515 '\tmargin-bottom:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ol {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: decimal; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ul {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: square; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText strong {\r\n'
20130515 '\tfont-weight:bold;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText em {\r\n'
20130515 '\tfont-style: italic;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to http://de.selfhtml.org/css/formate/zentrale.htm\r\n'
20130515 '*/\r\n'
20130515 'table.htmlText tr td {\r\n'
20130515 '\tvertical-align: middle;\r\n'
20130515 '\ttext-align: center;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'The following are \r\n'
20130515 "Alexander Dawson's CSS tooltips\r\n"
20130515 'from <http://sixrevisions.com/css/css-only-tooltips/>,\r\n'
20130515 'adapted for usage in an ExtJS application.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-form-item-label .tooltip {\r\n'
20130515 '\tborder-bottom: 1px dotted #000000; color: #000000; outline: none;\r\n'
20130515 '\tcursor: help; \r\n'
20130515 '\ttext-decoration: none;\r\n'
20130515 '\tposition: relative;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip span {\r\n'
20130515 '\tmargin-left: -999em;\r\n'
20130515 '\tposition: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover span {\r\n'
20130515 '\tborder-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; \r\n'
20130515 '\tbox-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); \r\n'
20130515 '\t-moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);\r\n'
20130515 '\tfont-family: Calibri, Tahoma, Geneva, sans-serif;\r\n'
20130515 '\tposition: absolute; left: 1em; top: 2em; z-index: 99;\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '    white-space: normal; \r\n'
20130515 '\tmargin-left: 0; width: 250px;\r\n'
20130515 '\t\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover img {\r\n'
20130515 '\tborder: 0; margin: -10px 0 0 -55px;\r\n'
20130515 '\tfloat: left; position: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover em {\r\n'
20130515 '\tfont-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold;\r\n'
20130515 '\tdisplay: block; padding: 0.2em 0 0.6em 0;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .classic { padding: 0.8em 1em; }\r\n'
20130515 '.x-form-item-label .custom { padding: 0.5em 0.8em 0.8em 2em; }\r\n'
20130515 '.x-form-item-label * html a:hover { background: transparent; }\r\n'
20130515 '.x-form-item-label .classic {background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '.x-form-item-label .critical { background: #FFCCAA; border: 1px solid #FF3334;\t}\r\n'
20130515 '.x-form-item-label .help { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .info { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .warning { background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 ' 20120229 For css tooltips we need to override some CSS rules of ExtJS.\r\n'
20130515 ' set all overflows \r\n'
20130515 " to 'visible' for CSS tooltips.\r\n"
20130515 " I don't really understand it, and it doesn't yet work,\r\n"
20130515 " but it doesn't seem to  cause any problem.\r\n"
20130515 ' \r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: hidden;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-body .x-panel-body-noheader {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-bwrap {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-box-inner {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-fieldset .x-form-label-top .x-box-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-tip \r\n'
20130515 '  .x-tip-tl\r\n'
20130515 '    .x-tip-tr\r\n'
20130515 '      .x-tip-tc\r\n'
20130515 '        .x-tip-header\r\n'
20130515 '          .x-tip-header-text\r\n'
20130515 '  .x-tip-bwrap\r\n'
20130515 '    .x-tip-ml\r\n'
20130515 '      .x-tip-mr\r\n'
20130515 '        .x-tip-mc\r\n'
20130515 '          .x-tip-body\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: #FFFFAA; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-header-text { border: 0; }\r\n'
20130515 '\r\n'
20130515 '.x-tip div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-ml div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mr div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mc div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-body div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* border: 1px solid #FFAD33;  */\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '.x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/mjames/delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '/*\r\n'
20130515 '.x-item-disabled .x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/default/grid/delete-disabled.gif) !important;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-tbar-new{\r\n'
20130515 '\tbackground-image: url(images/mjames/add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 'ShowDetailAction\r\n'
20130515 '$a.icon_name\r\n'
20130515 '$a.icon_file\r\n'
20130515 '*/\r\n'
20130515 '.x-tbar-detail{\r\n'
20130515 '\tbackground-image: url(images/mjames/application_form.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-save{\r\n'
20130515 '\tbackground-image: url(images/mjames/disk.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-email_add{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-email_send{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_go.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-create-postings{\r\n'
20130515 '\tbackground-image: url(images/mjames/script_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-calendar{\r\n'
20130515 '\tbackground-image: url(images/mjames/calendar.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-print{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-clearcache{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer_delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-duplicate{\r\n'
20130515 '\tbackground-image: url(images/mjames/arrow_divide.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-pdf{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_white_acrobat.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-html{\r\n'
20130515 '\tbackground-image: url(images/mjames/html.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-csv{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_excel.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-vcard{\r\n'
20130515 '\tbackground-image: url(images/mjames/vcard.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-done{\r\n'
20130515 '\tbackground-image: url(images/mjames/accept.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-parameters{\r\n'
20130515 '\tbackground-image: url(images/mjames/database_gear.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to Animal in \r\n'
20130515 'http://www.sencha.com/forum/showthread.php?70195-NumberField-and-Right-Alignment\r\n'
20130515 '*/\r\n'
20130515 '.x-form-num-field {\r\n'
20130515 '    text-align: right;\r\n'
20130515 '}'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:37 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 359788\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible\n'
20130515 ' * Extensible core utilities and functions.\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 '(function(){\n'
20130515 '    \n'
20130515 "    Ext.ns('Ext.ensible.ux', 'Ext.ensible.sample', 'Ext.ensible.plugins', 'Ext.ensible.cal');\n"
20130515 '    \n'
20130515 '    Ext.apply(Ext.ensible, {\n'
20130515 '        /**\n'
20130515 '         * The version of the framework\n'
20130515 '         * @type String\n'
20130515 '         */\n'
20130515 "        version : '1.0.1',\n"
20130515 '        /**\n'
20130515 '         * The version of the framework, broken out into its numeric parts. This returns an\n'
20130515 '         * object that contains the following integer properties: major, minor and patch.\n'
20130515 '         * @type Object\n'
20130515 '         */\n'
20130515 '        versionDetails : {\n'
20130515 '            major: 1,\n'
20130515 '            minor: 0,\n'
20130515 '            patch: 1\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        hasBorderRadius : !(Ext.isIE || Ext.isOpera),\n'
20130515 '        \n'
20130515 '        log : function(s){\n'
20130515 '            //console.log(s);\n'
20130515 '        },\n'
20130515 '    \n'
20130515 '       /**\n'
20130515 '        * @class Ext.ensible.cal.Date\n'
20130515 '        * @extends Object\n'
20130515 '        * <p>Contains utility date functions used by the calendar components.</p>\n'
20130515 '        * @singleton\n'
20130515 '        */\n'
20130515 '\t    Date : {\n'
20130515 '            /**\n'
20130515 '             * Determines whether times used throughout all Extensible components should be displayed as\n'
20130515 '             * 12 hour times with am/pm (default) or 24 hour / military format. Note that some locale files\n'
20130515 '             * may override this value by default.\n'
20130515 '             * @type Boolean\n'
20130515 '             * @property use24HourTime\n'
20130515 '             */\n'
20130515 '            use24HourTime : false,\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns the time duration between two dates in the specified units. For finding the number\n'
20130515 '             * of calendar days (ignoring time) between two dates use {@link Ext.ensible.Date.diffDays diffDays} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 "             * @param {String} unit (optional) The time unit to return. Valid values are 'ms' (milliseconds, the default), 's' (seconds),\n"
20130515 "             * 'm' (minutes) or 'h' (hours).\n"
20130515 '             * @return {Number} The time difference between the dates in the units specified by the unit param\n'
20130515 '             */\n'
20130515 '            diff : function(start, end, unit){\n'
20130515 '                var denom = 1,\n'
20130515 '                    diff = end.getTime() - start.getTime();\n'
20130515 '                \n'
20130515 "                if(unit == 's'){ \n"
20130515 '                    denom = 1000;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'm'){\n"
20130515 '                    denom = 1000*60;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'h'){\n"
20130515 '                    denom = 1000*60*60;\n'
20130515 '                }\n'
20130515 '                return Math.round(diff/denom);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Calculates the number of calendar days between two dates, ignoring time values. \n'
20130515 '             * A time span that starts at 11pm (23:00) on Monday and ends at 1am (01:00) on Wednesday is \n'
20130515 '             * only 26 total hours, but it spans 3 calendar days, so this function would return 3. For the\n'
20130515 '             * exact time difference, use {@link Ext.ensible.Date.diff diff} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 '             * @return {Number} The number of calendar days difference between the dates\n'
20130515 '             */\n'
20130515 '            diffDays : function(start, end){\n'
20130515 '                var day = 1000*60*60*24,\n'
20130515 '                    diff = end.clearTime(true).getTime() - start.clearTime(true).getTime();\n'
20130515 '                \n'
20130515 '                return Math.ceil(diff/day);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 "             * Copies the time value from one date object into another without altering the target's \n"
20130515 '             * date value. This function returns a new Date instance without modifying either original value.\n'
20130515 '             * @param {Date} fromDt The original date from which to copy the time\n'
20130515 '             * @param {Date} toDt The target date to copy the time to\n'
20130515 '             * @return {Date} The new date/time value\n'
20130515 '             */\n'
20130515 '            copyTime : function(fromDt, toDt){\n'
20130515 '                var dt = toDt.clone();\n'
20130515 '                dt.setHours(\n'
20130515 '                    fromDt.getHours(),\n'
20130515 '                    fromDt.getMinutes(),\n'
20130515 '                    fromDt.getSeconds(),\n'
20130515 '                    fromDt.getMilliseconds());\n'
20130515 '                \n'
20130515 '                return dt;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Compares two dates and returns a value indicating how they relate to each other.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Boolean} precise (optional) If true, the milliseconds component is included in the comparison,\n'
20130515 '             * else it is ignored (the default).\n'
20130515 '             * @return {Number} The number of milliseconds difference between the two dates. If the dates are equal\n'
20130515 '             * this will be 0.  If the first date is earlier the return value will be positive, and if the second date\n'
20130515 '             * is earlier the value will be negative.\n'
20130515 '             */\n'
20130515 '            compare : function(dt1, dt2, precise){\n'
20130515 '                var d1 = dt1, d2 = dt2;\n'
20130515 '                if(precise !== true){\n'
20130515 '                    d1 = dt1.clone();\n'
20130515 '                    d1.setMilliseconds(0);\n'
20130515 '                    d2 = dt2.clone();\n'
20130515 '                    d2.setMilliseconds(0);\n'
20130515 '                }\n'
20130515 '                return d2.getTime() - d1.getTime();\n'
20130515 '            },\n'
20130515 '\n'
20130515 '\t        // private helper fn\n'
20130515 '\t        maxOrMin : function(max){\n'
20130515 '\t            var dt = (max ? 0 : Number.MAX_VALUE), i = 0, args = arguments[1], ln = args.length;\n'
20130515 '\t            for(; i < ln; i++){\n'
20130515 "\t                dt = Math[max ? 'max' : 'min'](dt, args[i].getTime());\n"
20130515 '\t            }\n'
20130515 '\t            return new Date(dt);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the maximum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the latest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmax : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [true, arguments]);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the minimum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the earliest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmin : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [false, arguments]);\n'
20130515 '\t        },\n'
20130515 '            \n'
20130515 '            isInRange : function(dt, rangeStart, rangeEnd) {\n'
20130515 '                return  (dt >= rangeStart && dt <= rangeEnd);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if two date ranges overlap (either one starts or ends within the other, or one completely\n'
20130515 '             * overlaps the start and end of the other), else false if they do not.\n'
20130515 '             * @param {Date} start1 The start date of range 1\n'
20130515 '             * @param {Date} end1   The end date of range 1\n'
20130515 '             * @param {Date} start2 The start date of range 2\n'
20130515 '             * @param {Date} end2   The end date of range 2\n'
20130515 '             * @return {Booelan} True if the ranges overlap, else false\n'
20130515 '             */\n'
20130515 '            rangesOverlap : function(start1, end1, start2, end2){\n'
20130515 '                var startsInRange = (start1 >= start2 && start1 <= end2),\n'
20130515 '                    endsInRange = (end1 >= start2 && end1 <= end2),\n'
20130515 '                    spansRange = (start1 <= start2 && end1 >= end2);\n'
20130515 '                \n'
20130515 '                return (startsInRange || endsInRange || spansRange);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date is a Saturday or Sunday, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a weekend day, else false \n'
20130515 '             */\n'
20130515 '            isWeekend : function(dt){\n'
20130515 '                return dt.getDay() % 6 === 0;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date falls on a Monday through Fridey, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a week day, else false \n'
20130515 '             */\n'
20130515 '            isWeekday : function(dt){\n'
20130515 '                return dt.getDay() % 6 !== 0;\n'
20130515 '            }\n'
20130515 '\t    }\n'
20130515 '    });\n'
20130515 '})();\n'
20130515 '//TODO: remove this once we are synced to trunk again\n'
20130515 'Ext.override(Ext.XTemplate, {\n'
20130515 '    applySubTemplate : function(id, values, parent, xindex, xcount){\n'
20130515 '        var me = this,\n'
20130515 '            len,\n'
20130515 '            t = me.tpls[id],\n'
20130515 '            vs,\n'
20130515 '            buf = [];\n'
20130515 '        if ((t.test && !t.test.call(me, values, parent, xindex, xcount)) ||\n'
20130515 '            (t.exec && t.exec.call(me, values, parent, xindex, xcount))) {\n'
20130515 "            return '';\n"
20130515 '        }\n'
20130515 '        vs = t.target ? t.target.call(me, values, parent) : values;\n'
20130515 '        len = vs.length;\n'
20130515 '        parent = t.target ? values : parent;\n'
20130515 '        if(t.target && Ext.isArray(vs)){\n'
20130515 '            Ext.each(vs, function(v, i) {\n'
20130515 '                buf[buf.length] = t.compiled.call(me, v, parent, i+1, len);\n'
20130515 '            });\n'
20130515 "            return buf.join('');\n"
20130515 '        }\n'
20130515 '        return t.compiled.call(me, vs, parent, xindex, xcount);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This fix is in Ext 3.2 */\n'
20130515 'Ext.override(Ext.form.DateField, {\n'
20130515 '\t\n'
20130515 '\taltFormats : "m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j",\n'
20130515 '\t\n'
20130515 '    safeParse : function(value, format) {\n'
20130515 "        if (/[gGhH]/.test(format.replace(/(\\\\.)/g, ''))) {\n"
20130515 '            // if parse format contains hour information, no DST adjustment is necessary\n'
20130515 '            return Date.parseDate(value, format);\n'
20130515 '        } else {\n'
20130515 '            // set time to 12 noon, then clear the time\n'
20130515 "            var parsedDate = Date.parseDate(value + ' ' + this.initTime, format + ' ' + this.initTimeFormat);\n"
20130515 '            if (parsedDate) return parsedDate.clearTime();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This override applies to the current 3.3.x line to fix duplicate remote actions */\n'
20130515 'Ext.override(Ext.data.Store, {\n'
20130515 '    add : function(records) {\n'
20130515 '        var i, record, index;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        if (records.length < 1) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        index = this.data.length;\n'
20130515 '        this.data.addAll(records);\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    insert : function(index, records) {\n'
20130515 '        var i, record;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            this.data.insert(index + i, record);\n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // Interestingly, this method has no changes, but is included here because without it a very strange\n'
20130515 '    // race condition occurs. This method is used as a callback internally for the add event which\n'
20130515 '    // is fired from the add method (overridden above). As long as both methods are here everything is OK\n'
20130515 '    // but with createRecords removed and defaulted to the original class you end up with duplicate copies\n'
20130515 "    // of added records in the store's modified collection (since both methods add to it). Not sure exactly\n"
20130515 '    // how that happens, but including this fixes it.\n'
20130515 '    createRecords : function(store, records, index) {\n'
20130515 '        var modified = this.modified,\n'
20130515 '            length   = records.length,\n'
20130515 '            record, i;\n'
20130515 '        \n'
20130515 '        for (i = 0; i < length; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            if (record.phantom && record.isValid()) {\n'
20130515 '                record.markDirty();  // <-- Mark new records dirty (Ed: why?)\n'
20130515 '                \n'
20130515 '                //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '                if (modified.indexOf(record) == -1) {\n'
20130515 '                    modified.push(record);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if (this.autoSave === true) {\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '// Have to add in full API support so that EventMemoryProxy can do its thing.\n'
20130515 "// Won't hurt normal read-only MemoryProxy read actions.\n"
20130515 'Ext.data.MemoryProxy = function(data){\n'
20130515 '    var api = {};\n'
20130515 '    api[Ext.data.Api.actions.read] = true;\n'
20130515 '    api[Ext.data.Api.actions.create] = true;\n'
20130515 '    api[Ext.data.Api.actions.update] = true;\n'
20130515 '    api[Ext.data.Api.actions.destroy] = true;\n'
20130515 '    Ext.data.MemoryProxy.superclass.constructor.call(this, {\n'
20130515 '        api: api\n'
20130515 '    });\n'
20130515 '    this.data = data;\n'
20130515 '};\n'
20130515 'Ext.extend(Ext.data.MemoryProxy, Ext.data.DataProxy, {\n'
20130515 '    doRequest : function(action, rs, params, reader, callback, scope, arg) {\n'
20130515 '        callback.call(scope, null, arg, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "// This heinous override is required to fix IE9's removal of createContextualFragment.\n"
20130515 "// Unfortunately since DomHelper is a singleton there's not much of a way around it.\n"
20130515 'Ext.apply(Ext.DomHelper,\n'
20130515 'function(){\n'
20130515 '    var tempTableEl = null,\n'
20130515 '        emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,\n'
20130515 '        tableRe = /^table|tbody|tr|td$/i,\n'
20130515 '        confRe = /tag|children|cn|html$/i,\n'
20130515 '        tableElRe = /td|tr|tbody/i,\n'
20130515 '        cssRe = /([a-z0-9-]+)\\s*:\\s*([^;\\s]+(?:\\s*[^;\\s]+)*);?/gi,\n'
20130515 '        endRe = /end/i,\n'
20130515 '        pub,\n'
20130515 '        // kill repeat to save bytes\n'
20130515 "        afterbegin = 'afterbegin',\n"
20130515 "        afterend = 'afterend',\n"
20130515 "        beforebegin = 'beforebegin',\n"
20130515 "        beforeend = 'beforeend',\n"
20130515 "        ts = '<table>',\n"
20130515 "        te = '</table>',\n"
20130515 "        tbs = ts+'<tbody>',\n"
20130515 "        tbe = '</tbody>'+te,\n"
20130515 "        trs = tbs + '<tr>',\n"
20130515 "        tre = '</tr>'+tbe;\n"
20130515 '\n'
20130515 '    // private\n'
20130515 '    function doInsert(el, o, returnElement, pos, sibling, append){\n'
20130515 '        var newNode = pub.insertHtml(pos, Ext.getDom(el), createHtml(o));\n'
20130515 '        return returnElement ? Ext.get(newNode, true) : newNode;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // build as innerHTML where available\n'
20130515 '    function createHtml(o){\n'
20130515 "        var b = '',\n"
20130515 '            attr,\n'
20130515 '            val,\n'
20130515 '            key,\n'
20130515 '            cn;\n'
20130515 '\n'
20130515 '        if(typeof o == "string"){\n'
20130515 '            b = o;\n'
20130515 '        } else if (Ext.isArray(o)) {\n'
20130515 '            for (var i=0; i < o.length; i++) {\n'
20130515 '                if(o[i]) {\n'
20130515 '                    b += createHtml(o[i]);\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '        } else {\n'
20130515 "            b += '<' + (o.tag = o.tag || 'div');\n"
20130515 '            for (attr in o) {\n'
20130515 '                val = o[attr];\n'
20130515 '                if(!confRe.test(attr)){\n'
20130515 '                    if (typeof val == "object") {\n'
20130515 '                        b += \' \' + attr + \'="\';\n'
20130515 '                        for (key in val) {\n'
20130515 "                            b += key + ':' + val[key] + ';';\n"
20130515 '                        };\n'
20130515 '                        b += \'"\';\n'
20130515 '                    }else{\n'
20130515 '                        b += \' \' + ({cls : \'class\', htmlFor : \'for\'}[attr] || attr) + \'="\' + val + \'"\';\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '            // Now either just close the tag or try to add children and close the tag.\n'
20130515 '            if (emptyTags.test(o.tag)) {\n'
20130515 "                b += '/>';\n"
20130515 '            } else {\n'
20130515 "                b += '>';\n"
20130515 '                if ((cn = o.children || o.cn)) {\n'
20130515 '                    b += createHtml(cn);\n'
20130515 '                } else if(o.html){\n'
20130515 '                    b += o.html;\n'
20130515 '                }\n'
20130515 "                b += '</' + o.tag + '>';\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return b;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    function ieTable(depth, s, h, e){\n'
20130515 "        tempTableEl.innerHTML = [s, h, e].join('');\n"
20130515 '        var i = -1,\n'
20130515 '            el = tempTableEl,\n'
20130515 '            ns;\n'
20130515 '        while(++i < depth){\n'
20130515 '            el = el.firstChild;\n'
20130515 '        }\n'
20130515 '//      If the result is multiple siblings, then encapsulate them into one fragment.\n'
20130515 '        if(ns = el.nextSibling){\n'
20130515 '            var df = document.createDocumentFragment();\n'
20130515 '            while(el){\n'
20130515 '                ns = el.nextSibling;\n'
20130515 '                df.appendChild(el);\n'
20130515 '                el = ns;\n'
20130515 '            }\n'
20130515 '            el = df;\n'
20130515 '        }\n'
20130515 '        return el;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @ignore\n'
20130515 "     * Nasty code for IE's broken table implementation\n"
20130515 '     */\n'
20130515 '    function insertIntoTable(tag, where, el, html) {\n'
20130515 '        var node,\n'
20130515 '            before;\n'
20130515 '\n'
20130515 "        tempTableEl = tempTableEl || document.createElement('div');\n"
20130515 '\n'
20130515 "        if(tag == 'td' && (where == afterbegin || where == beforeend) ||\n"
20130515 '           !tableElRe.test(tag) && (where == beforebegin || where == afterend)) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        before = where == beforebegin ? el :\n'
20130515 '                 where == afterend ? el.nextSibling :\n'
20130515 '                 where == afterbegin ? el.firstChild : null;\n'
20130515 '\n'
20130515 '        if (where == beforebegin || where == afterend) {\n'
20130515 '            el = el.parentNode;\n'
20130515 '        }\n'
20130515 '\n'
20130515 "        if (tag == 'td' || (tag == 'tr' && (where == beforeend || where == afterbegin))) {\n"
20130515 '            node = ieTable(4, trs, html, tre);\n'
20130515 "        } else if ((tag == 'tbody' && (where == beforeend || where == afterbegin)) ||\n"
20130515 "                   (tag == 'tr' && (where == beforebegin || where == afterend))) {\n"
20130515 '            node = ieTable(3, tbs, html, tbe);\n'
20130515 '        } else {\n'
20130515 '            node = ieTable(2, ts, html, te);\n'
20130515 '        }\n'
20130515 '        el.insertBefore(node, before);\n'
20130515 '        return node;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '    pub = {\n'
20130515 '        /**\n'
20130515 '         * Returns the markup for the passed Element(s) config.\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @return {String}\n'
20130515 '         */\n'
20130515 '        markup : function(o){\n'
20130515 '            return createHtml(o);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Applies a style specification to an element.\n'
20130515 '         * @param {String/HTMLElement} el The element to apply styles to\n'
20130515 "         * @param {String/Object/Function} styles A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or\n"
20130515 '         * a function which returns such a specification.\n'
20130515 '         */\n'
20130515 '        applyStyles : function(el, styles){\n'
20130515 '            if (styles) {\n'
20130515 '                var matches;\n'
20130515 '\n'
20130515 '                el = Ext.fly(el);\n'
20130515 '                if (typeof styles == "function") {\n'
20130515 '                    styles = styles.call();\n'
20130515 '                }\n'
20130515 '                if (typeof styles == "string") {\n'
20130515 '                    /**\n'
20130515 "                     * Since we're using the g flag on the regex, we need to set the lastIndex.\n"
20130515 '                     * This automatically happens on some implementations, but not others, see:\n'
20130515 '                     * http://stackoverflow.com/questions/2645273/javascript-regular-expression-literal-persists-between-function-calls\n'
20130515 '                     * http://blog.stevenlevithan.com/archives/fixing-javascript-regexp\n'
20130515 '                     */\n'
20130515 '                    cssRe.lastIndex = 0;\n'
20130515 '                    while ((matches = cssRe.exec(styles))) {\n'
20130515 '                        el.setStyle(matches[1], matches[2]);\n'
20130515 '                    }\n'
20130515 '                } else if (typeof styles == "object") {\n'
20130515 '                    el.setStyle(styles);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Inserts an HTML fragment into the DOM.\n'
20130515 '         * @param {String} where Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd.\n'
20130515 '         * @param {HTMLElement} el The context element\n'
20130515 '         * @param {String} html The HTML fragment\n'
20130515 '         * @return {HTMLElement} The new node\n'
20130515 '         */\n'
20130515 '        insertHtml : function(where, el, html){\n'
20130515 '            var hash = {},\n'
20130515 '                hashVal,\n'
20130515 '                setStart,\n'
20130515 '                range,\n'
20130515 '                frag,\n'
20130515 '                rangeEl,\n'
20130515 '                rs,\n'
20130515 '                temp;\n'
20130515 '\n'
20130515 '            where = where.toLowerCase();\n'
20130515 '            // add these here because they are used in both branches of the condition.\n'
20130515 "            hash[beforebegin] = ['BeforeBegin', 'previousSibling'];\n"
20130515 "            hash[afterend] = ['AfterEnd', 'nextSibling'];\n"
20130515 '\n'
20130515 '            if (el.insertAdjacentHTML) {\n'
20130515 '                if(tableRe.test(el.tagName) && (rs = insertIntoTable(el.tagName.toLowerCase(), where, el, html))){\n'
20130515 '                    return rs;\n'
20130515 '                }\n'
20130515 '                // add these two to the hash.\n'
20130515 "                hash[afterbegin] = ['AfterBegin', 'firstChild'];\n"
20130515 "                hash[beforeend] = ['BeforeEnd', 'lastChild'];\n"
20130515 '                if ((hashVal = hash[where])) {\n'
20130515 '                    el.insertAdjacentHTML(hashVal[0], html);\n'
20130515 '                    return el[hashVal[1]];\n'
20130515 '                }\n'
20130515 '            } else {\n'
20130515 '                range = el.ownerDocument.createRange();\n'
20130515 "                setStart = 'setStart' + (endRe.test(where) ? 'After' : 'Before');\n"
20130515 '                if (hash[where]) {\n'
20130515 '                    range[setStart](el);\n'
20130515 '                    if (range.createContextualFragment) {\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                    } else {\n'
20130515 '                        frag = document.createDocumentFragment(), \n'
20130515 "                        temp = document.createElement('div');\n"
20130515 '                        frag.appendChild(temp);\n'
20130515 '                        temp.outerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    el.parentNode.insertBefore(frag, where == beforebegin ? el : el.nextSibling);\n'
20130515 "                    return el[(where == beforebegin ? 'previous' : 'next') + 'Sibling'];\n"
20130515 '                } else {\n'
20130515 "                    rangeEl = (where == afterbegin ? 'first' : 'last') + 'Child';\n"
20130515 '                    if (el.firstChild) {\n'
20130515 '                        range[setStart](el[rangeEl]);\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                        if(where == afterbegin){\n'
20130515 '                            el.insertBefore(frag, el.firstChild);\n'
20130515 '                        }else{\n'
20130515 '                            el.appendChild(frag);\n'
20130515 '                        }\n'
20130515 '                    } else {\n'
20130515 '                        el.innerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    return el[rangeEl];\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '            throw \'Illegal insertion point -> "\' + where + \'"\';\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them before el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertBefore : function(el, o, returnElement){\n'
20130515 '            return doInsert(el, o, returnElement, beforebegin);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them after el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertAfter : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterend, 'nextSibling');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them as the first child of el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertFirst : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterbegin, 'firstChild');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and appends them to el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        append : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, beforeend, '', true);\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and overwrites the contents of el with them.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        overwrite : function(el, o, returnElement){\n'
20130515 '            el = Ext.getDom(el);\n'
20130515 '            el.innerHTML = createHtml(o);\n'
20130515 '            return returnElement ? Ext.get(el.firstChild) : el.firstChild;\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        createHtml : createHtml\n'
20130515 '    };\n'
20130515 '    return pub;\n'
20130515 '}());\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the all-day event container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. Internally the majority of the layout logic is deferred to an instance of\n'
20130515 ' * {@link Ext.ensible.cal.BoxLayoutTemplate}.</p> \n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayBodyTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    this.allDayTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\n'
20130515 '    this.allDayTpl.compile();\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayHeaderTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<div class="ext-cal-hd-ct">\',\n'
20130515 '            \'<table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0">\',\n'
20130515 "                '<tbody>',\n"
20130515 "                    '<tr>',\n"
20130515 '                        \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                        \'<td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner">{allDayTpl}</div></td>\',\n'
20130515 '                        \'<td class="ext-cal-gutter-rt"></td>\',\n'
20130515 "                    '</tr>',\n"
20130515 "                '</tbody>',\n"
20130515 "            '</table>',\n"
20130515 "        '</div>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayHeaderTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        return Ext.ensible.cal.DayHeaderTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            allDayTpl: this.allDayTpl.apply(o)\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate.prototype.apply = Ext.ensible.cal.DayHeaderTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the scrolling body container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayHeaderTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayBodyTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:{dayHeight}px;">\',\n'
20130515 "            '<tbody>',\n"
20130515 '                \'<tr height="1">\',\n'
20130515 '                    \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                    \'<td colspan="{dayCount}">\',\n'
20130515 '                        \'<div class="ext-cal-bg-rows">\',\n'
20130515 '                            \'<div class="ext-cal-bg-rows-inner">\',\n'
20130515 '                                \'<tpl for="times">\',\n'
20130515 '                                    \'<div class="ext-cal-bg-row ext-row-{[xindex]}" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                        \'<div class="ext-cal-bg-row-div {parent.hourSeparatorCls}" style="height:{parent.hourSeparatorHeight}px;"></div>\',\n'
20130515 "                                    '</div>',\n"
20130515 "                                '</tpl>',\n"
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</td>',\n"
20130515 "                '</tr>',\n"
20130515 "                '<tr>',\n"
20130515 '                    \'<td class="ext-cal-day-times">\',\n'
20130515 '                        \'<tpl for="times">\',\n'
20130515 '                            \'<div class="ext-cal-bg-row" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                \'<div class="ext-cal-day-time-inner"  style="height:{parent.hourHeight-1}px;">{.}</div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</tpl>',\n"
20130515 "                    '</td>',\n"
20130515 '                    \'<tpl for="days">\',\n'
20130515 '                        \'<td class="ext-cal-day-col">\',\n'
20130515 '                            \'<div class="ext-cal-day-col-inner">\',\n'
20130515 '                                \'<div id="{[this.id]}-day-col-{.:date("Ymd")}" class="ext-cal-day-col-gutter" style="height:{parent.dayHeight}px;"></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</td>',\n"
20130515 "                    '</tpl>',\n"
20130515 "                '</tr>',\n"
20130515 "            '</tbody>',\n"
20130515 "        '</table>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayBodyTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        this.today = new Date().clearTime();\n'
20130515 '        this.dayCount = this.dayCount || 1;\n'
20130515 '        \n'
20130515 '        var i = 0, days = [],\n'
20130515 '            dt = o.viewStart.clone();\n'
20130515 '            \n'
20130515 '        for(; i<this.dayCount; i++){\n'
20130515 '            days[i] = dt.add(Date.DAY, i);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        var times = [],\n'
20130515 '            start = this.viewStartHour,\n'
20130515 '            end = this.viewEndHour,\n'
20130515 '            mins = this.hourIncrement,\n'
20130515 '            dayHeight = this.hourHeight * (end - start)\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i' : 'ga';\n"
20130515 '        \n'
20130515 "        // use a fixed DST-safe date so times don't get skipped on DST boundaries\n"
20130515 "        dt = new Date('1/1/2010').clearTime().add(Date.HOUR, start);\n"
20130515 '        \n'
20130515 '        for(i=start; i<end; i++){\n'
20130515 '            times.push(dt.format(fmt));\n'
20130515 '            dt = dt.add(Date.MINUTE, mins);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.DayBodyTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            days: days,\n'
20130515 '            dayCount: days.length,\n'
20130515 '            times: times,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            hourSeparatorCls: this.showHourSeparator ? '' : 'no-sep', // the class suppresses the default separator\n"
20130515 '            dayHeight: dayHeight,\n'
20130515 '            hourSeparatorHeight: (this.hourHeight / 2) - 1\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayBodyTemplate.prototype.apply = Ext.ensible.cal.DayBodyTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.BoxLayoutTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render calendar views based on small day boxes within a non-scrolling container (currently\n'
20130515 ' * the {@link Ext.ensible.cal.MonthView MonthView} and the all-day headers for {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div id="{weekLinkId}" class="ext-cal-week-link">{weekNum}</div>\' : \'\';\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.BoxLayoutTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<tpl for="weeks">\',\n'
20130515 '            \'<div id="{[this.id]}-wk-{[xindex-1]}" class="ext-cal-wk-ct" style="top:{[this.getRowTop(xindex, xcount)]}%; height:{[this.getRowHeight(xcount)]}%;">\',\n'
20130515 '                weekLinkTpl,\n'
20130515 '                \'<table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                 \'<td id="{[this.id]}-day-{date:date("Ymd")}" class="{cellCls}">&#160;</td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 '                \'<table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                \'<td id="{[this.id]}-ev-day-{date:date("Ymd")}" class="{titleCls}"><div>{title}</div></td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 "            '</div>',\n"
20130515 "        '</tpl>', {\n"
20130515 '            getRowTop: function(i, ln){\n'
20130515 '                return ((i-1)*(100/ln));\n'
20130515 '            },\n'
20130515 '            getRowHeight: function(ln){\n'
20130515 '                return 100/ln;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.BoxLayoutTemplate, Ext.XTemplate, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} firstWeekDateFormat\n'
20130515 '     * The date format used for the day boxes in the first week of the view only (subsequent weeks\n'
20130515 "     * use the {@link #otherWeeksDateFormat} config). Defaults to 'D j'. Note that if the day names header is displayed\n"
20130515 '     * above the first row (e.g., {@link Ext.ensible.cal.MonthView#showHeader MonthView.showHeader} = true)\n'
20130515 '     * then this value is ignored and {@link #otherWeeksDateFormat} will be used instead.\n'
20130515 '     */\n'
20130515 "    firstWeekDateFormat: 'D j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} otherWeeksDateFormat\n'
20130515 '     * The date format used for the date in day boxes (other than the first week, which is controlled by\n'
20130515 "     * {@link #firstWeekDateFormat}). Defaults to 'j'.\n"
20130515 '     */\n'
20130515 "    otherWeeksDateFormat: 'j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} singleDayDateFormat\n'
20130515 "     * The date format used for the date in the header when in single-day view (defaults to 'l, F j, Y').\n"
20130515 '     */\n'
20130515 "    singleDayDateFormat: 'l, F j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayFirstDayFormat\n'
20130515 "     * The date format used for the date in the header when more than one day are visible (defaults to 'M j, Y').\n"
20130515 '     */\n'
20130515 "    multiDayFirstDayFormat: 'M j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayMonthStartFormat\n'
20130515 "     * The date format to use for the first day in a month when more than one day are visible (defaults to 'M j').\n"
20130515 '     * Note that if this day falls on the first day within the view, {@link #multiDayFirstDayFormat} takes precedence.\n'
20130515 '     */\n'
20130515 "    multiDayMonthStartFormat: 'M j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        \n'
20130515 '        Ext.apply(this, o);\n'
20130515 '        \n'
20130515 "        var w = 0, title = '', first = true, isToday = false, showMonth = false, \n"
20130515 '            prevMonth = false, nextMonth = false, isWeekend = false,\n'
20130515 '            weekendCls = o.weekendCls,\n'
20130515 '            prevMonthCls = o.prevMonthCls,\n'
20130515 '            nextMonthCls = o.nextMonthCls,\n'
20130515 '            todayCls = o.todayCls,\n'
20130515 '            weeks = [[]],\n'
20130515 '            today = new Date().clearTime(),\n'
20130515 '            dt = this.viewStart.clone(),\n'
20130515 '            thisMonth = this.startDate.getMonth();\n'
20130515 '        \n'
20130515 '        for(; w < this.weekCount || this.weekCount == -1; w++){\n'
20130515 '            if(dt > this.viewEnd){\n'
20130515 '                break;\n'
20130515 '            }\n'
20130515 '            weeks[w] = [];\n'
20130515 '            \n'
20130515 '            for(var d = 0; d < this.dayCount; d++){\n'
20130515 '                isToday = dt.getTime() === today.getTime();\n'
20130515 '                showMonth = first || (dt.getDate() == 1);\n'
20130515 '                prevMonth = (dt.getMonth() < thisMonth) && this.weekCount == -1;\n'
20130515 '                nextMonth = (dt.getMonth() > thisMonth) && this.weekCount == -1;\n'
20130515 '                isWeekend = dt.getDay() % 6 === 0;\n'
20130515 '                \n'
20130515 '                if(dt.getDay() == 1){\n'
20130515 "                    // The ISO week format 'W' is relative to a Monday week start. If we\n"
20130515 '                    // make this check on Sunday the week number will be off.\n'
20130515 "                    weeks[w].weekNum = this.showWeekNumbers ? dt.format('W') : '&#160;';\n"
20130515 "                    weeks[w].weekLinkId = 'ext-cal-week-'+dt.format('Ymd');\n"
20130515 '                }\n'
20130515 '                \n'
20130515 '                if(showMonth){\n'
20130515 '                    if(isToday){\n'
20130515 '                        title = this.getTodayText();\n'
20130515 '                    }\n'
20130515 '                    else{\n'
20130515 '                        title = dt.format(this.dayCount == 1 ? this.singleDayDateFormat : \n'
20130515 '                                (first ? this.multiDayFirstDayFormat : this.multiDayMonthStartFormat));\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    var dayFmt = (w == 0 && this.showHeader !== true) ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '                    title = isToday ? this.getTodayText() : dt.format(dayFmt);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                weeks[w].push({\n'
20130515 '                    title: title,\n'
20130515 '                    date: dt.clone(),\n'
20130515 "                    titleCls: 'ext-cal-dtitle ' + (isToday ? ' ext-cal-dtitle-today' : '') + \n"
20130515 "                        (w==0 ? ' ext-cal-dtitle-first' : '') +\n"
20130515 "                        (prevMonth ? ' ext-cal-dtitle-prev' : '') + \n"
20130515 "                        (nextMonth ? ' ext-cal-dtitle-next' : ''),\n"
20130515 "                    cellCls: 'ext-cal-day ' + (isToday ? ' '+todayCls : '') + \n"
20130515 "                        (d==0 ? ' ext-cal-day-first' : '') +\n"
20130515 "                        (prevMonth ? ' '+prevMonthCls : '') +\n"
20130515 "                        (nextMonth ? ' '+nextMonthCls : '') +\n"
20130515 "                        (isWeekend && weekendCls ? ' '+weekendCls : '')\n"
20130515 '                });\n'
20130515 '                dt = dt.add(Date.DAY, 1);\n'
20130515 '                first = false;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.BoxLayoutTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            weeks: weeks\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTodayText : function(){\n'
20130515 "        var timeFmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            todayText = this.showTodayText !== false ? this.todayText : '',\n"
20130515 '            timeText = this.showTime !== false ? \' <span id="\'+this.id+\'-clock" class="ext-cal-dtitle-time">\' + \n'
20130515 "                    new Date().format(timeFmt) + '</span>' : '',\n"
20130515 "            separator = todayText.length > 0 || timeText.length > 0 ? ' &#8212; ' : ''; // &#8212; == &mdash;\n"
20130515 '        \n'
20130515 '        if(this.dayCount == 1){\n'
20130515 '            return new Date().format(this.singleDayDateFormat) + separator + todayText + timeText;\n'
20130515 '        }\n'
20130515 '        fmt = this.weekCount == 1 ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '        return todayText.length > 0 ? todayText + timeText : new Date().format(fmt) + timeText;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate.prototype.apply = Ext.ensible.cal.BoxLayoutTemplate.prototype.applyTemplate;\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthViewTemplate\r\n'
20130515 ' * @extends Ext.XTemplate\r\n'
20130515 ' * <p>This is the template used to render the {@link Ext.ensible.cal.MonthView MonthView}. Internally this class defers to an\r\n'
20130515 ' * instance of {@link Ext.calerndar.BoxLayoutTemplate} to handle the inner layout rendering and adds containing elements around\r\n'
20130515 ' * that to form the month view.</p> \r\n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \r\n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate = function(config){\r\n'
20130515 '    \r\n'
20130515 '    Ext.apply(this, config);\r\n'
20130515 '    \r\n'
20130515 '    this.weekTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\r\n'
20130515 '    this.weekTpl.compile();\r\n'
20130515 '    \r\n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div class="ext-cal-week-link-hd">&#160;</div>\' : \'\';\r\n'
20130515 '    \r\n'
20130515 '    Ext.ensible.cal.MonthViewTemplate.superclass.constructor.call(this,\r\n'
20130515 '\t    \'<div class="ext-cal-inner-ct {extraClasses}">\',\r\n'
20130515 '            \'<div class="ext-cal-hd-ct ext-cal-month-hd">\',\r\n'
20130515 '                weekLinkTpl,\r\n'
20130515 '\t\t        \'<table class="ext-cal-hd-days-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t            '<tbody>',\r\n"
20130515 "                        '<tr>',\r\n"
20130515 '                            \'<tpl for="days">\',\r\n'
20130515 '\t\t                        \'<th class="ext-cal-hd-day{[xindex==1 ? " ext-cal-day-first" : ""]}" title="{title}">{name}</th>\',\r\n'
20130515 "\t\t                    '</tpl>',\r\n"
20130515 "                        '</tr>',\r\n"
20130515 "\t\t            '</tbody>',\r\n"
20130515 "\t\t        '</table>',\r\n"
20130515 "            '</div>',\r\n"
20130515 '\t        \'<div class="ext-cal-body-ct">{weeks}</div>\',\r\n'
20130515 "        '</div>'\r\n"
20130515 '    );\r\n'
20130515 '};\r\n'
20130515 '\r\n'
20130515 'Ext.extend(Ext.ensible.cal.MonthViewTemplate, Ext.XTemplate, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderFormat\r\n'
20130515 "     * The date format to use for day headers, if used (defaults to 'D', e.g. 'Mon' for Monday)\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderFormat: 'D',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderTitleFormat\r\n'
20130515 "     * The date format to use for the day header's HTML title attribute displayed on mouseover \r\n"
20130515 "     * (defaults to 'l, F j, Y', e.g. 'Monday, December 27, 2010')\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderTitleFormat: 'l, F j, Y',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    applyTemplate : function(o){\r\n'
20130515 '        var days = [],\r\n'
20130515 '            weeks = this.weekTpl.apply(o),\r\n'
20130515 '            dt = o.viewStart;\r\n'
20130515 '        \r\n'
20130515 '        for(var i = 0; i < 7; i++){\r\n'
20130515 '            var d = dt.add(Date.DAY, i);\r\n'
20130515 '            days.push({\r\n'
20130515 '                name: d.format(this.dayHeaderFormat),\r\n'
20130515 '                title: d.format(this.dayHeaderTitleFormat)\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        var extraClasses = this.showHeader === true ? '' : 'ext-cal-noheader';\r\n"
20130515 '        if(this.showWeekLinks){\r\n'
20130515 "            extraClasses += ' ext-cal-week-links';\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return Ext.ensible.cal.MonthViewTemplate.superclass.applyTemplate.call(this, {\r\n'
20130515 '            days: days,\r\n'
20130515 '            weeks: weeks,\r\n'
20130515 '            extraClasses: extraClasses\r\n'
20130515 '        });\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate.prototype.apply = Ext.ensible.cal.MonthViewTemplate.prototype.applyTemplate;\r\n'
20130515 '/* @private\n'
20130515 ' * @class Ext.dd.ScrollManager\n'
20130515 ' * <p>Provides automatic scrolling of overflow regions in the page during drag operations.</p>\n'
20130515 ' * <p>The ScrollManager configs will be used as the defaults for any scroll container registered with it,\n'
20130515 ' * but you can also override most of the configs per scroll container by adding a \n'
20130515 ' * <tt>ddScrollConfig</tt> object to the target element that contains these properties: {@link #hthresh},\n'
20130515 ' * {@link #vthresh}, {@link #increment} and {@link #frequency}.  Example usage:\n'
20130515 ' * <pre><code>\n'
20130515 "var el = Ext.get('scroll-ct');\n"
20130515 'el.ddScrollConfig = {\n'
20130515 '    vthresh: 50,\n'
20130515 '    hthresh: -1,\n'
20130515 '    frequency: 100,\n'
20130515 '    increment: 200\n'
20130515 '};\n'
20130515 'Ext.dd.ScrollManager.register(el);\n'
20130515 '</code></pre>\n'
20130515 ' * <b>Note: This class uses "Point Mode" and is untested in "Intersect Mode".</b>\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 'Ext.dd.ScrollManager = function(){\n'
20130515 '    var ddm = Ext.dd.DragDropMgr;\n'
20130515 '    var els = {};\n'
20130515 '    var dragEl = null;\n'
20130515 '    var proc = {};\n'
20130515 '    \n'
20130515 '    var onStop = function(e){\n'
20130515 '        dragEl = null;\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var triggerRefresh = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '             ddm.refreshCache(ddm.dragCurrent.groups);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var doScroll = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '            var dds = Ext.dd.ScrollManager;\n'
20130515 '            var inc = proc.el.ddScrollConfig ?\n'
20130515 '                      proc.el.ddScrollConfig.increment : dds.increment;\n'
20130515 '            if(!dds.animate){\n'
20130515 '                if(proc.el.scroll(proc.dir, inc)){\n'
20130515 '                    triggerRefresh();\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                proc.el.scroll(proc.dir, inc, true, dds.animDuration, triggerRefresh);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var clearProc = function(){\n'
20130515 '        if(proc.id){\n'
20130515 '            clearInterval(proc.id);\n'
20130515 '        }\n'
20130515 '        proc.id = 0;\n'
20130515 '        proc.el = null;\n'
20130515 '        proc.dir = "";\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var startProc = function(el, dir){\n'
20130515 '        clearProc();\n'
20130515 '        proc.el = el;\n'
20130515 '        proc.dir = dir;\n'
20130515 '        var freq = (el.ddScrollConfig && el.ddScrollConfig.frequency) ? \n'
20130515 '                el.ddScrollConfig.frequency : Ext.dd.ScrollManager.frequency,\n'
20130515 '            group = el.ddScrollConfig ? el.ddScrollConfig.ddGroup : undefined;\n'
20130515 '        \n'
20130515 '        if(group === undefined || ddm.dragCurrent.ddGroup == group){\n'
20130515 '            proc.id = setInterval(doScroll, freq);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var onFire = function(e, isDrop){\n'
20130515 '        if(isDrop || !ddm.dragCurrent){ return; }\n'
20130515 '        var dds = Ext.dd.ScrollManager;\n'
20130515 '        if(!dragEl || dragEl != ddm.dragCurrent){\n'
20130515 '            dragEl = ddm.dragCurrent;\n'
20130515 '            // refresh regions on drag start\n'
20130515 '            dds.refreshCache();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var xy = Ext.lib.Event.getXY(e);\n'
20130515 '        var pt = new Ext.lib.Point(xy[0], xy[1]);\n'
20130515 '        for(var id in els){\n'
20130515 '            var el = els[id], r = el._region;\n'
20130515 '            var c = el.ddScrollConfig ? el.ddScrollConfig : dds;\n'
20130515 '            if(r && r.contains(pt) && el.isScrollable()){\n'
20130515 '                if(r.bottom - pt.y <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "down");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(r.right - pt.x <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "left");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.y - r.top <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "up");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.x - r.left <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "right");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    ddm.fireEvents = ddm.fireEvents.createSequence(onFire, ddm);\n'
20130515 '    ddm.stopDrag = ddm.stopDrag.createSequence(onStop, ddm);\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        /**\n'
20130515 '         * Registers new overflow element(s) to auto scroll\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be scrolled or an array of either\n'
20130515 '         */\n'
20130515 '        register : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.register(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                els[el.id] = el;\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Unregisters overflow element(s) so they are no longer scrolled\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be removed or an array of either\n'
20130515 '         */\n'
20130515 '        unregister : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.unregister(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                delete els[el.id];\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the top or bottom edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        vthresh : 25,\n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the right or left edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        hthresh : 25,\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * The number of pixels to scroll in each scroll increment (defaults to 50)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        increment : 100,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The frequency of scrolls in milliseconds (defaults to 500)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        frequency : 500,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * True to animate the scroll (defaults to true)\n'
20130515 '         * @type Boolean\n'
20130515 '         */\n'
20130515 '        animate: true,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The animation duration in seconds - \n'
20130515 '         * MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        animDuration: .4,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Manually trigger a cache refresh.\n'
20130515 '         */\n'
20130515 '        refreshCache : function(){\n'
20130515 '            for(var id in els){\n'
20130515 "                if(typeof els[id] == 'object'){ // for people extending the object prototype\n"
20130515 '                    els[id]._region = els[id].getRegion();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();/**\n'
20130515 ' * @class Ext.ensible.cal.StatusProxy\n'
20130515 ' * A specialized drag proxy that supports a drop status icon, {@link Ext.Layer} styles and auto-repair. It also\n'
20130515 " * contains a calendar-specific drag status message containing details about the dragged event's target drop date range.  \n"
20130515 ' * This is the default drag proxy used by all calendar views.\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.StatusProxy = function(config){\n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    this.id = this.id || Ext.id();\n'
20130515 '    this.el = new Ext.Layer({\n'
20130515 '        dh: {\n'
20130515 "            id: this.id, cls: 'ext-dd-drag-proxy x-dd-drag-proxy '+this.dropNotAllowed, cn: [\n"
20130515 "                {cls: 'x-dd-drop-icon'},\n"
20130515 "                {cls: 'ext-dd-ghost-ct', cn:[\n"
20130515 "                    {cls: 'x-dd-drag-ghost'},\n"
20130515 "                    {cls: 'ext-dd-msg'}\n"
20130515 '                ]}\n'
20130515 '            ]\n'
20130515 '        }, \n'
20130515 '        shadow: !config || config.shadow !== false\n'
20130515 '    });\n'
20130515 '    this.ghost = Ext.get(this.el.dom.childNodes[1].childNodes[0]);\n'
20130515 '    this.message = Ext.get(this.el.dom.childNodes[1].childNodes[1]);\n'
20130515 '    this.dropStatus = this.dropNotAllowed;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.StatusProxy, Ext.dd.StatusProxy, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} moveEventCls\n'
20130515 "     * The CSS class to apply to the status element when an event is being dragged (defaults to 'ext-cal-dd-move').\n"
20130515 '     */\n'
20130515 "    moveEventCls : 'ext-cal-dd-move',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} addEventCls\n'
20130515 "     * The CSS class to apply to the status element when drop is not allowed (defaults to 'ext-cal-dd-add').\n"
20130515 '     */\n'
20130515 "    addEventCls : 'ext-cal-dd-add',\n"
20130515 '\n'
20130515 '    // inherit docs\n'
20130515 '    update : function(html){\n'
20130515 "        if(typeof html == 'string'){\n"
20130515 '            this.ghost.update(html);\n'
20130515 '        }else{\n'
20130515 "            this.ghost.update('');\n"
20130515 "            html.style.margin = '0';\n"
20130515 '            this.ghost.dom.appendChild(html);\n'
20130515 '        }\n'
20130515 '        var el = this.ghost.dom.firstChild;\n'
20130515 '        if(el){\n'
20130515 "            Ext.fly(el).setStyle('float', 'none').setHeight('auto');\n"
20130515 "            Ext.getDom(el).id += '-ddproxy';\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /* @private\n'
20130515 '     * Update the calendar-specific drag status message without altering the ghost element.\n'
20130515 '     * @param {String} msg The new status message\n'
20130515 '     */\n'
20130515 '    updateMsg : function(msg){\n'
20130515 '        this.message.update(msg);\n'
20130515 '    }\n'
20130515 '});/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DragZone = Ext.extend(Ext.dd.DragZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 '    \n'
20130515 '    constructor : function(el, config){\n'
20130515 '        if(!Ext.ensible.cal._statusProxyInstance){\n'
20130515 '            Ext.ensible.cal._statusProxyInstance = new Ext.ensible.cal.StatusProxy();\n'
20130515 '        }\n'
20130515 '        this.proxy = Ext.ensible.cal._statusProxyInstance;\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.constructor.call(this, el, config);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        // Check whether we are dragging on an event first\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                start: t.date,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onInitDrag : function(x, y){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            var ghost = this.dragData.ddel.cloneNode(true),\n'
20130515 "                child = Ext.fly(ghost).child('dl');\n"
20130515 '            \n'
20130515 "            Ext.fly(ghost).setWidth('auto');\n"
20130515 '            \n'
20130515 '            if(child){\n'
20130515 '                // for IE/Opera\n'
20130515 "                child.setHeight('auto');\n"
20130515 '            }\n'
20130515 '            this.proxy.update(ghost);\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        else if(this.dragData.start){\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        this.view.onInitDrag();\n'
20130515 '        return true;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterRepair : function(){\n'
20130515 '        if(Ext.enableFx && this.dragData.ddel){\n'
20130515 "            Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor || 'c3daf9');\n"
20130515 '        }\n'
20130515 '        this.dragging = false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getRepairXY : function(e){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            return Ext.Element.fly(this.dragData.ddel).getXY();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterInvalidDrop : function(e, id){\n'
20130515 "        Ext.select('.ext-dd-shim').hide();\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    destroy : function(){\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.destroy.call(this);\n'
20130515 '        delete Ext.ensible.cal._statusProxyInstance;\n'
20130515 '    }    \n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DropZone = Ext.extend(Ext.dd.DropZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    shims : [],\n'
20130515 '    \n'
20130515 '    getTargetFromEvent : function(e){\n'
20130515 '        var dragOffset = this.dragOffset || 0,\n'
20130515 '            y = e.getPageY() - dragOffset,\n'
20130515 '            d = this.view.getDayAt(e.getPageX(), y);\n'
20130515 '        \n'
20130515 '        return d.el ? d : null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var D = Ext.ensible.Date,\n'
20130515 "            start = data.type == 'eventdrag' ? n.date : D.min(data.start, n.date),\n"
20130515 "            end = data.type == 'eventdrag' ? n.date.add(Date.DAY, D.diffDays(data.eventStart, data.eventEnd)) : \n"
20130515 '                D.max(data.start, n.date);\n'
20130515 '        \n'
20130515 '        if(!this.dragStartDate || !this.dragEndDate || (D.diffDays(start, this.dragStartDate) != 0) || (D.diffDays(end, this.dragEndDate) != 0)){\n'
20130515 '            this.dragStartDate = start;\n'
20130515 '            this.dragEndDate = end.clearTime().add(Date.DAY, 1).add(Date.MINUTE, -30);\n'
20130515 '            this.shim(start, end);\n'
20130515 '            \n'
20130515 '            var range = start.format(this.dateFormat);\n'
20130515 '                \n'
20130515 '            if(D.diffDays(start, end) > 0){\n'
20130515 '                end = end.format(this.dateFormat);\n'
20130515 '                range = String.format(this.dateRangeFormat, range, end);\n'
20130515 '            }\n'
20130515 "            var msg = String.format(data.type == 'eventdrag' ? this.moveText : this.createText, range);\n"
20130515 '            data.proxy.updateMsg(msg);\n'
20130515 '        }\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(start, end){\n'
20130515 '        this.currWeek = -1;\n'
20130515 '        var dt = start.clone(),\n'
20130515 '            i = 0, shim, box,\n'
20130515 '            cnt = Ext.ensible.Date.diffDays(dt, end)+1\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        while(i++ < cnt){\n'
20130515 '            var dayEl = this.view.getDayEl(dt);\n'
20130515 '            \n'
20130515 '            // if the date is not in the current view ignore it (this\n'
20130515 '            // can happen when an event is dragged to the end of the\n'
20130515 '            // month so that it ends outside the view)\n'
20130515 '            if(dayEl){\n'
20130515 '                var wk = this.view.getWeekIndex(dt),\n'
20130515 '                    shim = this.shims[wk];\n'
20130515 '            \n'
20130515 '                if(!shim){\n'
20130515 '                    shim = this.createShim();\n'
20130515 '                    this.shims[wk] = shim;\n'
20130515 '                }\n'
20130515 '                if(wk != this.currWeek){\n'
20130515 '                    shim.boxInfo = dayEl.getBox();\n'
20130515 '                    this.currWeek = wk;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box = dayEl.getBox();\n'
20130515 '                    shim.boxInfo.right = box.right;\n'
20130515 '                    shim.boxInfo.width = box.right - shim.boxInfo.x;\n'
20130515 '                }\n'
20130515 '                shim.isActive = true;\n'
20130515 '            }\n'
20130515 '            dt = dt.add(Date.DAY, 1);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                if(shim.isActive){\n'
20130515 '                    shim.show();\n'
20130515 '                    shim.setBox(shim.boxInfo);\n'
20130515 '                }\n'
20130515 '                else if(shim.isVisible()){\n'
20130515 '                    shim.hide();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    createShim : function(){\n'
20130515 '        var owner = this.view.ownerCalendarPanel ? this.view.ownerCalendarPanel : this.view;\n'
20130515 '        if(!this.shimCt){\n'
20130515 "            this.shimCt = Ext.get('ext-dd-shim-ct-'+owner.id);\n"
20130515 '            if(!this.shimCt){\n'
20130515 "                this.shimCt = document.createElement('div');\n"
20130515 "                this.shimCt.id = 'ext-dd-shim-ct-'+owner.id;\n"
20130515 '                owner.getEl().parent().appendChild(this.shimCt);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 "        var el = document.createElement('div');\n"
20130515 "        el.className = 'ext-dd-shim';\n"
20130515 '        this.shimCt.appendChild(el);\n'
20130515 '        \n'
20130515 '        return new Ext.Layer({\n'
20130515 '            shadow:false, \n'
20130515 '            useDisplay:true, \n'
20130515 '            constrain:false\n'
20130515 '        }, el);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    clearShims : function(){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerOver : function(dd, e, data){\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onCalendarDragComplete : function(){\n'
20130515 '        delete this.dragStartDate;\n'
20130515 '        delete this.dragEndDate;\n'
20130515 '        this.clearShims();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel),\n'
20130515 '                    dt = Ext.ensible.Date.copyTime(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], n.date);\n'
20130515 '                    \n'
20130515 '                this.view.onEventDrop(rec, dt);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerDrop : function(dd, e, data){\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDragZone = Ext.extend(Ext.ensible.cal.DragZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    resizeSelector : '.ext-evt-rsz',\n"
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        var t = e.getTarget(this.resizeSelector, 2, true);\n'
20130515 '        if(t){\n'
20130515 '            var p = t.parent(this.eventSelector), \n'
20130515 '                rec = this.view.getEventRecordFromEl(p);\n'
20130515 '            \n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventresize',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: p.dom,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging/resizing an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                dayInfo: t,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDropZone = Ext.extend(Ext.ensible.cal.DropZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var dt, text = this.createText,\n'
20130515 "            timeFormat = Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia';\n"
20130515 '            \n'
20130515 "        if(data.type == 'caldrag'){\n"
20130515 '            if(!this.dragStartMarker){\n'
20130515 '                // Since the container can scroll, this gets a little tricky.\n'
20130515 '                // There is no el in the DOM that we can measure by default since\n'
20130515 '                // the box is simply calculated from the original drag start (as opposed\n'
20130515 '                // to dragging or resizing the event where the orig event box is present).\n'
20130515 '                // To work around this we add a placeholder el into the DOM and give it\n'
20130515 "                // the original starting time's box so that we can grab its updated\n"
20130515 '                // box measurements as the underlying container scrolls up or down.\n'
20130515 '                // This placeholder is removed in onNodeDrop.\n'
20130515 '                this.dragStartMarker = n.el.parent().createChild({\n'
20130515 "                    style: 'position:absolute;'\n"
20130515 '                });\n'
20130515 '                // use the original dayInfo values from the drag start\n'
20130515 '                this.dragStartMarker.setBox(data.dayInfo.timeBox);\n'
20130515 '                this.dragCreateDt = data.dayInfo.date;\n'
20130515 '            }\n'
20130515 '            var endDt, box = this.dragStartMarker.getBox();\n'
20130515 '            box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '            \n'
20130515 '            if(e.xy[1] < box.y){\n'
20130515 '                box.height += n.timeBox.height;\n'
20130515 '                box.y = box.y - box.height + n.timeBox.height;\n'
20130515 '                endDt = this.dragCreateDt.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            this.shim(this.dragCreateDt, box);\n'
20130515 '            \n'
20130515 '            var curr = Ext.ensible.Date.copyTime(n.date, this.dragCreateDt);\n'
20130515 '            this.dragStartDate = Ext.ensible.Date.min(this.dragCreateDt, curr);\n'
20130515 '            this.dragEndDate = endDt || Ext.ensible.Date.max(this.dragCreateDt, curr);\n'
20130515 '                \n'
20130515 '            dt = String.format(this.dateRangeFormat, this.dragStartDate.format(timeFormat), this.dragEndDate.format(timeFormat));\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            var evtEl = Ext.get(data.ddel),\n'
20130515 '                dayCol = evtEl.parent().parent(),\n'
20130515 '                box = evtEl.getBox();\n'
20130515 '            \n'
20130515 '            box.width = dayCol.getWidth();\n'
20130515 '            \n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                if(this.dragOffset === undefined){\n'
20130515 '                    // on fast drags there is a lag between the original drag start xy position and\n'
20130515 "                    // that first detected within the drop zone's getTargetFromEvent method (which is \n"
20130515 '                    // where n.timeBox comes from). to avoid a bad offset we calculate the\n'
20130515 '                    // timeBox based on the initial drag xy, not the current target xy.\n'
20130515 '                    var initialTimeBox = this.view.getDayAt(data.xy[0], data.xy[1]).timeBox;\n'
20130515 '                    this.dragOffset = initialTimeBox.y - box.y;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box.y = n.timeBox.y;\n'
20130515 '                }\n'
20130515 "                dt = n.date.format(this.dateFormat + ' ' + timeFormat);\n"
20130515 '                box.x = n.el.getLeft();\n'
20130515 '                \n'
20130515 '                this.shim(n.date, box);\n'
20130515 '                text = this.moveText;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                if(!this.resizeDt){\n'
20130515 '                    this.resizeDt = n.date;\n'
20130515 '                }\n'
20130515 '                box.x = dayCol.getLeft();\n'
20130515 '                box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '                if(e.xy[1] < box.y){\n'
20130515 '                    box.y -= box.height;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '                }\n'
20130515 '                this.shim(this.resizeDt, box);\n'
20130515 '                \n'
20130515 '                var curr = Ext.ensible.Date.copyTime(n.date, this.resizeDt),\n'
20130515 '                    start = Ext.ensible.Date.min(data.eventStart, curr),\n'
20130515 '                    end = Ext.ensible.Date.max(data.eventStart, curr);\n'
20130515 '                    \n'
20130515 '                data.resizeDates = {\n'
20130515 '                    StartDate: start,\n'
20130515 '                    EndDate: end\n'
20130515 '                }\n'
20130515 '                dt = String.format(this.dateRangeFormat, start.format(timeFormat), end.format(timeFormat));\n'
20130515 '                text = this.resizeText;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        data.proxy.updateMsg(String.format(text, dt));\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(dt, box){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var shim = this.shims[0];\n'
20130515 '        if(!shim){\n'
20130515 '            shim = this.createShim();\n'
20130515 '            this.shims[0] = shim;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        shim.isActive = true;\n'
20130515 '        shim.show();\n'
20130515 '        shim.setBox(box);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventDrop(rec, n.date);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.dragOffset;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventResize(rec, data.resizeDates);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.resizeDt;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                Ext.destroy(this.dragStartMarker);\n'
20130515 '                delete this.dragStartMarker;\n'
20130515 '                delete this.dragCreateDt;\n'
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.EventStore = Ext.extend(Ext.data.Store, {\n'
20130515 '    constructor: function(config){\n'
20130515 '        // By default autoLoad will cause the store to load itself during the\n'
20130515 '        // constructor, before the owning calendar view has a chance to set up\n'
20130515 '        // the initial date params to use during loading.  We replace autoLoad\n'
20130515 '        // with a deferLoad property that the view can check for and use to set\n'
20130515 '        // up default params as needed, then call the load itself. \n'
20130515 '        this.deferLoad = config.autoLoad;\n'
20130515 '        config.autoLoad = false;\n'
20130515 '        \n'
20130515 '        //this._dateCache = [];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.constructor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    load : function(o){\n'
20130515 "        Ext.ensible.log('store load');\n"
20130515 '        \n'
20130515 '        // if params are passed delete the one-time defaults\n'
20130515 '        if(o.params){\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        // this.initialParams will only be set if the store is being loaded manually\n'
20130515 '        // for the first time (autoLoad = false) so the owning calendar view set\n'
20130515 '        // the initial start and end date params to use. Every load after that will\n'
20130515 '        // have these params set automatically during normal UI navigation.\n'
20130515 '        if(this.initialParams){\n'
20130515 '            o = Ext.isObject(o) ? o : {};\n'
20130515 '            o.params = o.params || {};\n'
20130515 '            Ext.apply(o.params, this.initialParams);\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.load.call(this, o);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '//    execute : function(action, rs, options, /* private */ batch) {\n'
20130515 "//        if(action=='read'){\n"
20130515 '//            var i = 0, \n'
20130515 '//                dc = this._dateCache, \n'
20130515 '//                len = dc.length,\n'
20130515 '//                range,\n'
20130515 '//                p = options.params,\n'
20130515 '//                start = p.start,\n'
20130515 '//                end = p.end;\n'
20130515 '//                \n'
20130515 '//            //options.add = true;\n'
20130515 '//            for(i; i<len; i++){\n'
20130515 '//                range = dc[i];\n'
20130515 '//                \n'
20130515 '//            }\n'
20130515 '//        }\n'
20130515 '//        Ext.ensible.cal.EventStore.superclass.execute.apply(this, arguments);\n'
20130515 '//    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventstore', Ext.ensible.cal.EventStore);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * <p>A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.EventRecord EventRecord}s so that they can be easily overridden.</p>\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Event record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the EventMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings;\n'
20130515 "M.Title.mapping = 'evt_title';\n"
20130515 "M.Title.name = 'EventTitle';\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default EventMappings:\n'
20130515 'Ext.ensible.cal.EventMappings.Timestamp = {\n'
20130515 "    name: 'Timestamp',\n"
20130515 "    mapping: 'timestamp',\n"
20130515 "    type: 'date'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire EventMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard EventRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'EventId') should <b>NOT</b> be changed for the default EventMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID', mapping:'evt_id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID', mapping: 'cal_id', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle', mapping: 'evt_title'},\n"
20130515 "    StartDate:   {name: 'StartDt', mapping: 'start_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDt', mapping: 'end_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'},\n"
20130515 "    Location:    {name: 'Location', mapping: 'location'},\n"
20130515 "    Notes:       {name: 'Desc', mapping: 'full_desc'},\n"
20130515 "    Url:         {name: 'LinkUrl', mapping: 'link_url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay', mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'reminder'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard EventRecord:\n'
20130515 "    CreatedBy:   {name: 'CreatedBy', mapping: 'created_by'},\n"
20130515 "    IsPrivate:   {name: 'Private', mapping:'private', type:'boolean'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>EventId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.EventMappings.EventId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'EventId', mapping:'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalendarId', mapping: 'cid', type: 'int'},\n"
20130515 "    Title:       {name: 'Title', mapping: 'title', type: 'string'},\n"
20130515 "    StartDate:   {name: 'StartDate', mapping: 'start', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDate', mapping: 'end', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'}, // not currently used\n"
20130515 "    Location:    {name: 'Location', mapping: 'loc', type: 'string'},\n"
20130515 "    Notes:       {name: 'Notes', mapping: 'notes', type: 'string'},\n"
20130515 "    Url:         {name: 'Url', mapping: 'url', type: 'string'},\n"
20130515 "    IsAllDay:    {name: 'IsAllDay', mapping: 'ad', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'rem', type: 'string'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.CalendarRecord CalendarRecord}s so that they can be easily overridden.\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Calendar record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the CalendarMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 "M.Title.mapping = 'cal_title';\n"
20130515 "M.Title.name = 'CalTitle';\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default CalendarMappings:\n'
20130515 'Ext.ensible.cal.CalendarMappings.Owner = {\n'
20130515 "    name: 'Owner',\n"
20130515 "    mapping: 'owner',\n"
20130515 "    type: 'string'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire CalendarMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard CalendarRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'CalendarId') should <b>NOT</b> be changed for the default CalendarMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Desc', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden', mapping: 'hidden', type: 'boolean'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard CalendarRecord:\n'
20130515 "    Owner:        {name: 'Owner', mapping: 'owner'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>CalendarId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'CalendarId', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'Title', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Description', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'ColorId', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'IsHidden', mapping: 'hidden', type: 'boolean'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.EventRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar event data used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s underlying store. It can be overridden as \n"
20130515 ' * necessary to customize the fields supported by events, although the existing field definition names \n'
20130515 ' * should not be altered. If your model fields are named differently you should update the <b>mapping</b>\n'
20130515 ' * configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new event record instance are <tt>StartDate</tt> and\n'
20130515 ' * <tt>EndDate</tt>.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.EventRecord({\n'
20130515 "    StartDate: '2101-01-12 12:00:00',\n"
20130515 "    EndDate: '2101-01-12 13:30:00',\n"
20130515 "    Title: 'My cool event',\n"
20130515 "    Notes: 'Some notes'\n"
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.EventMappings EventMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the field names match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings,\n'
20130515 '    rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '\n'
20130515 "rec.data[M.StartDate.name] = '2101-01-12 12:00:00';\n"
20130515 "rec.data[M.EndDate.name] = '2101-01-12 13:30:00';\n"
20130515 "rec.data[M.Title.name] = 'My cool event';\n"
20130515 "rec.data[M.Notes.name] = 'Some notes';\n"
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.EventMappings EventMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.EventMappings} for complete details and \n'
20130515 ' * examples of reconfiguring an EventRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated EventRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.EventMappings,\n'
20130515 '        proto = C.EventRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.EventRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar items used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s calendar store. If your model fields \n"
20130515 ' * are named differently you should update the <b>mapping</b> configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new calendar record instance are CalendarId and\n'
20130515 ' * Title.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord({\n'
20130515 '    CalendarId: 5,\n'
20130515 "    Title: 'My Holidays',\n"
20130515 "    Description: 'My personal holiday schedule',\n"
20130515 '    ColorId: 3\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.CalendarMappings CalendarMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the fields match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 '\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord();\n'
20130515 'rec.data[M.CalendarId.name] = 5;\n'
20130515 "rec.data[M.Title.name] = 'My Holidays';\n"
20130515 "rec.data[M.Description.name] = 'My personal holiday schedule';\n"
20130515 'rec.data[M.ColorId.name] = 3;\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.CalendarMappings CalendarMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.CalendarMappings} for complete details and \n'
20130515 ' * examples of reconfiguring a CalendarRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated CalendarRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.CalendarMappings,\n'
20130515 '        proto = C.CalendarRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.CalendarRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();/* @private\n'
20130515 ' * This is an internal helper class for the calendar views and should not be overridden.\n'
20130515 ' * It is responsible for the base event rendering logic underlying all views based on a \n'
20130515 ' * box-oriented layout that supports day spanning (MonthView, MultiWeekView, DayHeaderView).\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekEventRenderer = function(){\n'
20130515 '    \n'
20130515 '    var getEventRow = function(id, week, index){\n'
20130515 "        var indexOffset = 1; //skip row with date #'s\n"
20130515 "        var evtRow, wkRow = Ext.get(id+'-wk-'+week);\n"
20130515 '        if(wkRow){\n'
20130515 "            var table = wkRow.child('.ext-cal-evt-tbl', true);\n"
20130515 '            evtRow = table.tBodies[0].childNodes[index+indexOffset];\n'
20130515 '            if(!evtRow){\n'
20130515 "                evtRow = Ext.DomHelper.append(table.tBodies[0], '<tr></tr>');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return Ext.get(evtRow);\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        render: function(o){\n'
20130515 '            var w = 0, grid = o.eventGrid, \n'
20130515 '                dt = o.viewStart.clone(),\n'
20130515 '                eventTpl = o.tpl,\n'
20130515 '                max = o.maxEventsPerDay != undefined ? o.maxEventsPerDay : 999,\n'
20130515 '                weekCount = o.weekCount < 1 ? 6 : o.weekCount,\n'
20130515 '                dayCount = o.weekCount == 1 ? o.dayCount : 7;\n'
20130515 '            \n'
20130515 '            for(; w < weekCount; w++){\n'
20130515 '                var row, d = 0, wk = grid[w];\n'
20130515 '                var startOfWeek = dt.clone();\n'
20130515 '                var endOfWeek = startOfWeek.add(Date.DAY, dayCount).add(Date.MILLI, -1);\n'
20130515 '                \n'
20130515 '                for(; d < dayCount; d++){\n'
20130515 '                    if(wk && wk[d]){\n'
20130515 '                        var ev = emptyCells = skipped = 0, \n'
20130515 '                            day = wk[d], ct = day.length, evt;\n'
20130515 '                        \n'
20130515 '                        for(; ev < ct; ev++){\n'
20130515 '                            if(!day[ev]){\n'
20130515 '                                emptyCells++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            if(emptyCells > 0 && ev-emptyCells < max){\n'
20130515 '                                row = getEventRow(o.id, w, ev-emptyCells);\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+ct+'-day-'+dt.format('Ymd')\n"
20130515 '                                }\n'
20130515 '                                if(emptyCells > 1 && max-ev > emptyCells){\n'
20130515 '                                    cellCfg.rowspan = Math.min(emptyCells, max-ev);\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                                emptyCells = 0;\n'
20130515 '                            }\n'
20130515 '                            \n'
20130515 '                            if(ev >= max){\n'
20130515 '                                skipped++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            evt = day[ev];\n'
20130515 '                            \n'
20130515 '                            if(!evt.isSpan || evt.isSpanStart){ //skip non-starting span cells\n'
20130515 '                                var item = evt.data || evt.event.data;\n'
20130515 '                                item._weekIndex = w;\n'
20130515 '                                item._renderAsAllDay = item[Ext.ensible.cal.EventMappings.IsAllDay.name] || evt.isSpanStart;\n'
20130515 '                                item.spanLeft = item[Ext.ensible.cal.EventMappings.StartDate.name].getTime() < startOfWeek.getTime();\n'
20130515 '                                item.spanRight = item[Ext.ensible.cal.EventMappings.EndDate.name].getTime() > endOfWeek.getTime();\n'
20130515 "                                item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \n"
20130515 "                                    'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\n"
20130515 '                                        \n'
20130515 '                                var row = getEventRow(o.id, w, ev),\n'
20130515 '                                    cellCfg = {\n'
20130515 "                                        tag: 'td',\n"
20130515 "                                        cls: 'ext-cal-ev',\n"
20130515 '                                        cn : eventTpl.apply(o.templateDataFn(item))\n'
20130515 '                                    },\n'
20130515 '                                    diff = Ext.ensible.Date.diffDays(dt, item[Ext.ensible.cal.EventMappings.EndDate.name]) + 1,\n'
20130515 '                                    cspan = Math.min(diff, dayCount-d);\n'
20130515 '                                    \n'
20130515 '                                if(cspan > 1){\n'
20130515 '                                    cellCfg.colspan = cspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                        if(ev > max){\n'
20130515 '                            row = getEventRow(o.id, w, max);\n'
20130515 '                            Ext.DomHelper.append(row, {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev-more',\n"
20130515 "                                id: 'ext-cal-ev-more-'+dt.format('Ymd'),\n"
20130515 '                                cn: {\n'
20130515 "                                    tag: 'a',\n"
20130515 '                                    html: String.format(o.getMoreText(skipped), skipped)\n'
20130515 '                                }\n'
20130515 '                            });\n'
20130515 '                        }\n'
20130515 '                        if(ct < o.evtMaxCount[w]){\n'
20130515 '                            row = getEventRow(o.id, w, ct);\n'
20130515 '                            if(row){\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    //html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+(ct+1)+'-day-'+dt.format('Ymd')\n"
20130515 '                                };\n'
20130515 '                                var rowspan = o.evtMaxCount[w] - ct;\n'
20130515 '                                if(rowspan > 1){\n'
20130515 '                                    cellCfg.rowspan = rowspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                    }else{\n'
20130515 '                        row = getEventRow(o.id, w, 0);\n'
20130515 '                        if(row){\n'
20130515 '                            var cellCfg = {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev',\n"
20130515 "                                html: '&#160;',\n"
20130515 "                                id: o.id+'-empty-day-'+dt.format('Ymd')\n"
20130515 '                            };\n'
20130515 '                            if(o.evtMaxCount[w] > 1){\n'
20130515 '                                cellCfg.rowspan = o.evtMaxCount[w];\n'
20130515 '                            }\n'
20130515 '                            Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                        }\n'
20130515 '                    }\n'
20130515 '                    dt = dt.add(Date.DAY, 1);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarCombo\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing from the list of available calendars to assign an event to. You must\n'
20130515 ' * pass a populated calendar store as the store config or the combo will not work.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 "fieldLabel: 'Calendar',\n"
20130515 "triggerAction: 'all',\n"
20130515 "mode: 'local',\n"
20130515 'forceSelection: true,\n'
20130515 'width: 200\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 "    fieldLabel: 'Calendar',\n"
20130515 "    triggerAction: 'all',\n"
20130515 "    mode: 'local',\n"
20130515 '    forceSelection: true,\n'
20130515 '    selectOnFocus: true,\n'
20130515 '    width: 200,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 "    defaultCls: 'x-cal-default',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        var C = Ext.ensible.cal,\n'
20130515 '            M = C.CalendarMappings;\n'
20130515 '        \n'
20130515 '        C.CalendarCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.valueField = M.CalendarId.name;\n'
20130515 '        this.displayField = M.Title.name;\n'
20130515 '        \n'
20130515 '        this.tpl = this.tpl ||\n'
20130515 '              \'<tpl for="."><div class="x-combo-list-item x-cal-{\' + M.ColorId.name +\n'
20130515 '              \'}"><div class="ext-cal-picker-icon">&#160;</div>{\' + this.displayField + \'}</div></tpl>\';\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.wrap = this.el.up('.x-form-field-wrap');\n"
20130515 "        this.wrap.addClass('ext-calendar-picker');\n"
20130515 '        \n'
20130515 '        this.icon = Ext.DomHelper.append(this.wrap, {\n'
20130515 "            tag: 'div', cls: 'ext-cal-picker-icon ext-cal-picker-mainicon'\n"
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    assertValue  : function(){\n'
20130515 '        var val = this.getRawValue(),\n'
20130515 '            rec = this.findRecord(this.displayField, val);\n'
20130515 '\n'
20130515 '        if(!rec && this.forceSelection){\n'
20130515 '            if(val.length > 0 && val != this.emptyText){\n'
20130515 '                // Override this method simply to fix the original logic that was here.\n'
20130515 '                // The orignal method simply reverts the displayed text but the store remains\n'
20130515 '                // filtered with the invalid query, meaning it contains no records. This causes\n'
20130515 '                // problems with redisplaying the field -- much better to clear the filter and\n'
20130515 '                // reset the original value so everything works as expected.\n'
20130515 '                this.store.clearFilter();\n'
20130515 '                this.setValue(this.value);\n'
20130515 '                this.applyEmptyText();\n'
20130515 '            }else{\n'
20130515 '                this.clearValue();\n'
20130515 '            }\n'
20130515 '        }else{\n'
20130515 '            if(rec){\n'
20130515 '                if (val == rec.get(this.displayField) && this.value == rec.get(this.valueField)){\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '                val = rec.get(this.valueField || this.displayField);\n'
20130515 '            }\n'
20130515 '            this.setValue(val);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getStyleClass: function(calendarId){\n'
20130515 "        if(calendarId && calendarId !== ''){\n"
20130515 '            var rec = this.store.getById(calendarId);\n'
20130515 "            return 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    setValue: function(value) {\n'
20130515 '        this.wrap.removeClass(this.getStyleClass(this.getValue()));\n'
20130515 '        value = value || this.store.getAt(0).data[Ext.ensible.cal.CalendarMappings.CalendarId.name];\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.setValue.call(this, value);\n'
20130515 '        this.wrap.addClass(this.getStyleClass(value));\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcombo', Ext.ensible.cal.CalendarCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 160,\n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'pattern',\n"
20130515 "    valueField: 'id',\n"
20130515 '    \n'
20130515 '    recurrenceText: {\n'
20130515 "        none: 'Does not repeat',\n"
20130515 "        daily: 'Daily',\n"
20130515 "        weekly: 'Weekly',\n"
20130515 "        monthly: 'Monthly',\n"
20130515 "        yearly: 'Yearly'\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 "        this.addEvents('recurrencechange');\n"
20130515 '        \n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 "            fields: ['id', 'pattern'],\n"
20130515 '            idIndex: 0,\n'
20130515 '            data: [\n'
20130515 "                ['NONE', this.recurrenceText.none],\n"
20130515 "                ['DAILY', this.recurrenceText.daily],\n"
20130515 "                ['WEEKLY', this.recurrenceText.weekly],\n"
20130515 "                ['MONTHLY', this.recurrenceText.monthly],\n"
20130515 "                ['YEARLY', this.recurrenceText.yearly]\n"
20130515 '            ]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initValue : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initValue.call(this);\n'
20130515 '        if(this.value != undefined){\n'
20130515 "            this.fireEvent('recurrencechange', this.value);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        var old = this.value;\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.setValue.call(this, v);\n'
20130515 '        if(old != v){\n'
20130515 "            this.fireEvent('recurrencechange', v);\n"
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencecombo', Ext.ensible.cal.RecurrenceCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' * Rrule info: http://www.kanzaki.com/docs/ical/rrule.html\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceField = Ext.extend(Ext.form.Field, {\n'
20130515 '    \n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 '    startDate: new Date().clearTime(),\n'
20130515 '    enableFx: true,\n'
20130515 '    \n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.initComponent.call(this);\n'
20130515 '        if(!this.height){\n'
20130515 '            this.autoHeight = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.frequencyCombo = new Ext.ensible.cal.RecurrenceCombo({\n'
20130515 "                id: this.id+'-frequency',\n"
20130515 '                listeners: {\n'
20130515 "                    'recurrencechange': {\n"
20130515 '                        fn: this.showOptions,\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            if(this.fieldLabel){\n'
20130515 '                this.frequencyCombo.fieldLabel = this.fieldLabel;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.innerCt = new Ext.Container({\n'
20130515 "                cls: 'extensible-recur-inner-ct',\n"
20130515 '                items: []\n'
20130515 '            });\n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'extensible-recur-ct',\n"
20130515 '                renderTo: ct,\n'
20130515 '                items: [this.frequencyCombo, this.innerCt]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.innerCt.ownerCt = this.fieldCt;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll(this.initSubComponents());\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '//    afterRender : function(){\n'
20130515 '//        Ext.ensible.cal.RecurrenceField.superclass.afterRender.call(this);\n'
20130515 '//        this.setStartDate(this.startDate);\n'
20130515 '//    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initValue : function(){\n'
20130515 '        this.setStartDate(this.startDate);\n'
20130515 '        \n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else if(this.frequency !== undefined){\n'
20130515 "            this.setValue('FREQ='+this.frequency);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('NONE');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showOptions : function(o){\n'
20130515 "        var layoutChanged = false, unit = 'day';\n"
20130515 '        \n'
20130515 "        if(o != 'NONE'){\n"
20130515 '            this.hideSubPanels();\n'
20130515 '        }\n'
20130515 '        this.frequency = o;\n'
20130515 '        \n'
20130515 '        switch(o){\n'
20130515 "            case 'DAILY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'WEEKLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.weekly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'week';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'MONTHLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.monthly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'month';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'YEARLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.yearly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'year';\n"
20130515 '                break;\n'
20130515 '            \n'
20130515 '            default:\n'
20130515 '                // case NONE\n'
20130515 '                this.hideInnerCt();\n'
20130515 '                return; \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(layoutChanged){\n'
20130515 '            this.innerCt.doLayout();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.showInnerCt();\n'
20130515 '        this.repeatEvery.updateLabel(unit);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showSubPanel : function(p){\n'
20130515 '        if (p.rendered) {\n'
20130515 '            p.show();\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(this.repeatEvery.rendered){\n'
20130515 '                // make sure weekly/monthly options show in the middle\n'
20130515 '                p = this.innerCt.insert(1, p);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                p = this.innerCt.add(p);\n'
20130515 '            }\n'
20130515 '            p.show();\n'
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showInnerCt: function(){\n'
20130515 '        if(!this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideIn('t', {\n"
20130515 '                    duration: .3\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.show();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideInnerCt: function(){\n'
20130515 '        if(this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideOut('t', {\n"
20130515 '                    duration: .3,\n'
20130515 "                    easing: 'easeIn',\n"
20130515 '                    callback: this.hideSubPanels,\n'
20130515 '                    scope: this\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.hide();\n'
20130515 '                this.hideSubPanels();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setStartDate : function(dt){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setStartDate(dt);\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getValue : function(){\n'
20130515 '        if(!this.rendered) {\n'
20130515 '            return this.value;\n'
20130515 '        }\n'
20130515 "        if(this.frequency=='NONE'){\n"
20130515 "            return '';\n"
20130515 '        }\n'
20130515 "        var value = 'FREQ='+this.frequency;\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            if(p.isVisible()){\n'
20130515 '                value += p.getValue();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        return value;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        this.value = v;\n'
20130515 '        \n'
20130515 "        if(v == null || v == '' || v == 'NONE'){\n"
20130515 "            this.frequencyCombo.setValue('NONE');\n"
20130515 "            this.showOptions('NONE');\n"
20130515 '            return this;\n'
20130515 '        }\n'
20130515 "        var parts = v.split(';');\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setValue(parts);\n'
20130515 '        });\n'
20130515 '        Ext.each(parts, function(p){\n'
20130515 "            if(p.indexOf('FREQ') > -1){\n"
20130515 "                var freq = p.split('=')[1];\n"
20130515 '                this.frequencyCombo.setValue(freq);\n'
20130515 '                this.showOptions(freq);\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideSubPanels : function(){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.hide();\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initSubComponents : function(){\n'
20130515 '        Ext.ensible.cal.recurrenceBase = Ext.extend(Ext.Container, {\n'
20130515 "            fieldLabel: ' ',\n"
20130515 "            labelSeparator: '',\n"
20130515 '            hideLabel: true,\n'
20130515 "            layout: 'table',\n"
20130515 "            anchor: '100%',\n"
20130515 '            startDate: this.startDate,\n'
20130515 '\n'
20130515 '            //TODO: This is not I18N-able:\n'
20130515 '            getSuffix : function(n){\n'
20130515 '                if(!Ext.isNumber(n)){\n'
20130515 "                    return '';\n"
20130515 '                }\n'
20130515 '                switch (n) {\n'
20130515 '                    case 1:\n'
20130515 '                    case 21:\n'
20130515 '                    case 31:\n'
20130515 '                        return "st";\n'
20130515 '                    case 2:\n'
20130515 '                    case 22:\n'
20130515 '                        return "nd";\n'
20130515 '                    case 3:\n'
20130515 '                    case 23:\n'
20130515 '                        return "rd";\n'
20130515 '                    default:\n'
20130515 '                        return "th";\n'
20130515 '                }\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            //shared by monthly and yearly components:\n'
20130515 '            initNthCombo: function(cbo){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    dt = this.startDate,\n'
20130515 '                    store = cbo.getStore(),\n'
20130515 '                    last = dt.getLastDateOfMonth().getDate(),\n'
20130515 '                    dayNum = dt.getDate(),\n'
20130515 "                    nthDate = dt.format('jS') + ' day',\n"
20130515 "                    isYearly = this.id.indexOf('-yearly') > -1,\n"
20130515 "                    yearlyText = ' in ' + dt.format('F'),\n"
20130515 '                    nthDayNum, nthDay, lastDay, lastDate, idx, data, s;\n'
20130515 '                    \n'
20130515 '                nthDayNum = Math.ceil(dayNum / 7);\n'
20130515 "                nthDay = nthDayNum + this.getSuffix(nthDayNum) + dt.format(' l');\n"
20130515 '                if(isYearly){\n'
20130515 '                    nthDate += yearlyText;\n'
20130515 '                    nthDay += yearlyText;\n'
20130515 '                }\n'
20130515 '                data = [[nthDate],[nthDay]];\n'
20130515 '                \n'
20130515 "                s = isYearly ? yearlyText : '';\n"
20130515 '                if(last-dayNum < 7){\n'
20130515 "                    data.push(['last '+dt.format('l')+s]);\n"
20130515 '                }\n'
20130515 '                if(last == dayNum){\n'
20130515 "                    data.push(['last day'+s]);\n"
20130515 '                }\n'
20130515 '                \n'
20130515 "                idx = store.find('field1', cbo.getValue());\n"
20130515 '                store.removeAll();\n'
20130515 '                cbo.clearValue();\n'
20130515 '                store.loadData(data);\n'
20130515 '                \n'
20130515 '                if(idx > data.length-1){\n'
20130515 '                    idx = data.length-1;\n'
20130515 '                }\n'
20130515 '                cbo.setValue(store.getAt(idx > -1 ? idx : 0).data.field1);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            setValue:Ext.emptyFn\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.repeatEvery = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-every',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'Repeat every'\n"
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-every-num',\n"
20130515 '                value: 1,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                enableKeyEvents: true,\n'
20130515 '                listeners: {\n'
20130515 "                    'keyup': {\n"
20130515 '                        fn: function(){\n'
20130515 '                            this.repeatEvery.updateLabel();\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-every-label'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.updateLabel();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = Ext.getCmp(this.id+'-num').getValue();\n"
20130515 "                return v > 1 ? ';INTERVAL='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('INTERVAL') > -1){\n"
20130515 "                        var interval = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(interval);\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            updateLabel: function(type){\n'
20130515 '                if(this.rendered){\n'
20130515 "                    var s = Ext.getCmp(this.id+'-num').getValue() == 1 ? '' : 's';\n"
20130515 "                    this.type = type ? type.toLowerCase() : this.type || 'day';\n"
20130515 "                    var lbl = Ext.getCmp(this.id+'-label');\n"
20130515 '                    if(lbl.rendered){\n'
20130515 "                        lbl.update(this.type + s + ' beginning ' + this.startDate.format('l, F j'));\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            afterRender: function(){\n'
20130515 '                Ext.ensible.cal.recurrenceBase.superclass.afterRender.call(this);\n'
20130515 '                this.updateLabel();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.weekly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-weekly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 2\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on:'\n"
20130515 '            },{\n'
20130515 "                xtype: 'checkboxgroup',\n"
20130515 "                id: this.id+'-weekly-days',\n"
20130515 '                items: [\n'
20130515 "                    {boxLabel: 'Sun', name: 'SU', id: this.id+'-weekly-SU'},\n"
20130515 "                    {boxLabel: 'Mon', name: 'MO', id: this.id+'-weekly-MO'},\n"
20130515 "                    {boxLabel: 'Tue', name: 'TU', id: this.id+'-weekly-TU'},\n"
20130515 "                    {boxLabel: 'Wed', name: 'WE', id: this.id+'-weekly-WE'},\n"
20130515 "                    {boxLabel: 'Thu', name: 'TH', id: this.id+'-weekly-TH'},\n"
20130515 "                    {boxLabel: 'Fri', name: 'FR', id: this.id+'-weekly-FR'},\n"
20130515 "                    {boxLabel: 'Sat', name: 'SA', id: this.id+'-weekly-SA'}\n"
20130515 '                ]\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.selectToday();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            selectToday: function(){\n'
20130515 '                this.clearValue();\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                Ext.getCmp(this.id + '-days').setValue(day, true);\n"
20130515 '            },\n'
20130515 '            clearValue: function(){\n'
20130515 "                Ext.getCmp(this.id + '-days').setValue([false, false, false, false, false, false, false]);\n"
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = '', sel = Ext.getCmp(this.id+'-days').getValue();\n"
20130515 '                Ext.each(sel, function(chk){\n'
20130515 '                    if(v.length > 0){\n'
20130515 "                        v += ',';\n"
20130515 '                    }\n'
20130515 '                    v += chk.name;\n'
20130515 '                });\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                return v.length > 0 && v != day ? ';BYDAY='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                this.clearValue();\n'
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('BYDAY') > -1){\n"
20130515 "                        var days = p.split('=')[1].split(','),\n"
20130515 '                            vals = {};\n'
20130515 '                            \n'
20130515 '                        Ext.each(days, function(d){\n'
20130515 '                            vals[d] = true;\n'
20130515 '                        }, this);\n'
20130515 '                        \n'
20130515 "                        Ext.getCmp(this.id+'-days').setValue(vals);\n"
20130515 '                        return set = true;\n'
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                \n'
20130515 '                if(!set){\n'
20130515 '                    this.selectToday();\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.monthly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-monthly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-monthly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 150,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'of each month'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase();\n"
20130515 '                \n'
20130515 '                if (idx > -1) {\n'
20130515 '                    switch(idx){\n'
20130515 "                        case 0:  return ';BYMONTHDAY='+dt.format('j');\n"
20130515 "                        case 1:  return ';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return ';BYDAY=-1'+day;\n"
20130515 "                        default: return ';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.yearly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-yearly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-yearly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 170,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'each year'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase(),\n"
20130515 "                    byMonth = ';BYMONTH='+dt.format('n');\n"
20130515 '                \n'
20130515 '                if(idx > -1){\n'
20130515 '                    switch(idx){\n'
20130515 '                        case 0:  return byMonth;\n'
20130515 "                        case 1:  return byMonth+';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return byMonth+';BYDAY=-1'+day;\n"
20130515 "                        default: return byMonth+';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.until = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-until',\n"
20130515 "            untilDateFormat: 'Ymd\\\\T000000\\\\Z',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 5\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'and continuing'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-until-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 85,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 "                value: 'forever',\n"
20130515 "                store: ['forever', 'for', 'until'],\n"
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(cbo, rec){\n'
20130515 "                            var dt = Ext.getCmp(this.id+'-until-date');\n"
20130515 "                            if(rec.data.field1 == 'until'){\n"
20130515 '                                dt.show();\n'
20130515 "                                if (dt.getValue() == '') {\n"
20130515 '                                    dt.setValue(this.startDate.add(Date.DAY, 5));\n'
20130515 '                                    dt.setMinValue(this.startDate.clone().add(Date.DAY, 1));\n'
20130515 '                                }\n'
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 '                                dt.hide();\n'
20130515 '                            }\n'
20130515 "                            if(rec.data.field1 == 'for'){\n"
20130515 "                                Ext.getCmp(this.id+'-until-num').show();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').show();\n"
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 "                                Ext.getCmp(this.id+'-until-num').hide();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').hide();\n"
20130515 '                            }\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'datefield',\n"
20130515 "                id: this.id+'-until-date',\n"
20130515 '                showToday: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-until-num',\n"
20130515 '                value: 5,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-until-endlabel',\n"
20130515 "                text: 'occurrences',\n"
20130515 '                hidden: true\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var dt = Ext.getCmp(this.id+'-date');\n"
20130515 '                if(dt.isVisible()){\n'
20130515 "                    return ';UNTIL='+dt.getValue().format(this.untilDateFormat);\n"
20130515 '                }\n'
20130515 "                var ct = Ext.getCmp(this.id+'-num');\n"
20130515 '                if(ct.isVisible()){\n'
20130515 "                    return ';COUNT='+ct.getValue();\n"
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('COUNT') > -1){\n"
20130515 "                        var count = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('for');\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(count).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').show();\n"
20130515 '                    }\n'
20130515 "                    else if(p.indexOf('UNTIL') > -1){\n"
20130515 "                        var dt = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('until');\n"
20130515 "                        Ext.getCmp(this.id+'-date').setValue(Date.parseDate(dt, this.untilDateFormat)).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').hide();\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        return [this.repeatEvery, this.weekly, this.monthly, this.yearly, this.until];\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencefield', Ext.ensible.cal.RecurrenceField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DateRangeField\n'
20130515 ' * @extends Ext.form.Field\n'
20130515 ' * <p>A combination field that includes start and end dates and times, as well as an optional all-day checkbox.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DateRangeField = Ext.extend(Ext.form.Field, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} toText\n'
20130515 "     * The text to display in between the date/time fields (defaults to 'to')\n"
20130515 '     */\n'
20130515 "    toText: 'to',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} allDayText\n'
20130515 "     * The text to display as the label for the all day checkbox (defaults to 'All day')\n"
20130515 '     */\n'
20130515 "    allDayText: 'All day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String/Boolean} singleLine\n'
20130515 '     * This value can be set explicitly to <code>true</code> or <code>false</code> to force the field to render on\n'
20130515 "     * one line or two lines respectively.  The default value is <code>'auto'</code> which means that the field will\n"
20130515 "     * calculate its container's width and compare it to {@link singleLineMinWidth} to determine whether to render \n"
20130515 '     * on one line or two automatically.  Note that this only applies at render time -- once the field is rendered\n'
20130515 '     * the layout cannot be changed.\n'
20130515 '     */\n'
20130515 "    singleLine: 'auto',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} singleLineMinWidth\n'
20130515 "     * If {@link singleLine} is set to 'auto' it will use this value to determine whether to render the field on one\n"
20130515 '     * line or two. This value is the approximate minimum width required to render the field on a single line, so if\n'
20130515 "     * the field's container is narrower than this value it will automatically be rendered on two lines.\n"
20130515 '     */\n'
20130515 '    singleLineMinWidth: 490,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} dateFormat\n'
20130515 "     * The date display format used by the date fields (defaults to 'n/j/Y') \n"
20130515 '     */\n'
20130515 "    dateFormat: 'n/j/Y',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.startDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-start-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.startTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-start-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.endTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-end-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            })\n'
20130515 '            this.endDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-end-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.allDay = new Ext.form.Checkbox({\n'
20130515 "                id: this.id+'-allday',\n"
20130515 '                hidden: this.showTimes === false || this.showAllDay === false,\n'
20130515 '                boxLabel: this.allDayText,\n'
20130515 '                handler: function(chk, checked){\n'
20130515 '                    this.startTime.setVisible(!checked);\n'
20130515 '                    this.endTime.setVisible(!checked);\n'
20130515 '                },\n'
20130515 '                scope: this\n'
20130515 '            });\n'
20130515 '            this.toLabel = new Ext.form.Label({\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-to-label',\n"
20130515 '                text: this.toText\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            var singleLine = this.singleLine;\n'
20130515 "            if(singleLine == 'auto'){\n"
20130515 "                var el, w = this.ownerCt.getWidth() - this.ownerCt.getEl().getPadding('lr');\n"
20130515 "                if(el = this.ownerCt.getEl().child('.x-panel-body')){\n"
20130515 "                    w -= el.getPadding('lr');\n"
20130515 '                }\n'
20130515 "                if(el = this.ownerCt.getEl().child('.x-form-item-label')){\n"
20130515 "                    w -= el.getWidth() - el.getPadding('lr');\n"
20130515 '                }\n'
20130515 '                singleLine = w <= this.singleLineMinWidth ? false : true;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'ext-dt-range',\n"
20130515 '                renderTo: ct,\n'
20130515 "                layout: 'table',\n"
20130515 '                layoutConfig: {\n'
20130515 '                    columns: singleLine ? 6 : 3\n'
20130515 '                },\n'
20130515 '                defaults: {\n'
20130515 '                    hideParent: true\n'
20130515 '                },\n'
20130515 '                items:[\n'
20130515 '                    this.startDate,\n'
20130515 '                    this.startTime,\n'
20130515 '                    this.toLabel,\n'
20130515 '                    singleLine ? this.endTime : this.endDate,\n'
20130515 '                    singleLine ? this.endDate : this.endTime,\n'
20130515 '                    this.allDay\n'
20130515 '                ]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll([this.startDate, this.endDate, this.toLabel, this.startTime, this.endTime, this.allDay]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.onRender.call(this, ct, position);\n'
20130515 '        \n'
20130515 '        if(!singleLine){\n'
20130515 "            this.el.child('tr').addClass('ext-dt-range-row1');\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onFieldChange: function(type, startend){\n'
20130515 '        this.checkDates(type, startend);\n'
20130515 "        this.fireEvent('change', this, this.getValue());\n"
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    checkDates: function(type, startend){\n'
20130515 "        var startField = Ext.getCmp(this.id+'-start-'+type),\n"
20130515 "            endField = Ext.getCmp(this.id+'-end-'+type),\n"
20130515 "            startValue = this.getDT('start'),\n"
20130515 "            endValue = this.getDT('end');\n"
20130515 '\n'
20130515 '        if(startValue > endValue){\n'
20130515 "            if(startend=='start'){\n"
20130515 '                endField.setValue(startValue);\n'
20130515 '            }else{\n'
20130515 '                startField.setValue(endValue);\n'
20130515 "                this.checkDates(type, 'start');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        if(type=='date'){\n"
20130515 "            this.checkDates('time', startend);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns an array containing the following values in order:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The start date/time</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The end date/time</div></li>\n'
20130515 '     * <li><b><code>Boolean</code></b> : <div class="sub-desc">True if the dates are all-day, false \n'
20130515 '     * if the time values should be used</div></li><ul></div>\n'
20130515 '     * @return {Array} The array of return values\n'
20130515 '     */\n'
20130515 '    getValue: function(){\n'
20130515 '        return [\n'
20130515 "            this.getDT('start'), \n"
20130515 "            this.getDT('end'),\n"
20130515 '            this.allDay.getValue()\n'
20130515 '        ];\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private getValue helper\n'
20130515 '    getDT: function(startend){\n'
20130515 "        var time = this[startend+'Time'].getValue(),\n"
20130515 "            dt = this[startend+'Date'].getValue();\n"
20130515 '            \n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format(this[startend+'Date'].format);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            return null;\n'
20130515 '        };\n'
20130515 "        if(time != ''){\n"
20130515 "            return Date.parseDate(dt+' '+time, this[startend+'Date'].format+' '+this[startend+'Time'].format);\n"
20130515 '        }\n'
20130515 "        return Date.parseDate(dt, this[startend+'Date'].format);\n"
20130515 '        \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the values to use in the date range.\n'
20130515 '     * @param {Array/Date/Object} v The value(s) to set into the field. Valid types are as follows:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>Array</code></b> : <div class="sub-desc">An array containing, in order, a start date, end date and all-day flag.\n'
20130515 '     * This array should exactly match the return type as specified by {@link #getValue}.</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">A single Date object, which will be used for both the start and\n'
20130515 '     * end dates in the range.  The all-day flag will be defaulted to false.</div></li>\n'
20130515 '     * <li><b><code>Object</code></b> : <div class="sub-desc">An object containing properties for StartDate, EndDate and IsAllDay\n'
20130515 '     * as defined in {@link Ext.ensible.cal.EventMappings}.</div></li><ul></div>\n'
20130515 '     */\n'
20130515 '    setValue: function(v){\n'
20130515 '        if(Ext.isArray(v)){\n'
20130515 "            this.setDT(v[0], 'start');\n"
20130515 "            this.setDT(v[1], 'end');\n"
20130515 '            this.allDay.setValue(!!v[2]);\n'
20130515 '        }\n'
20130515 '        else if(Ext.isDate(v)){\n'
20130515 "            this.setDT(v, 'start');\n"
20130515 "            this.setDT(v, 'end');\n"
20130515 '            this.allDay.setValue(false);\n'
20130515 '        }\n'
20130515 '        else if(v[Ext.ensible.cal.EventMappings.StartDate.name]){ //object\n'
20130515 "            this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'start');\n"
20130515 "            if(!this.setDT(v[Ext.ensible.cal.EventMappings.EndDate.name], 'end')){\n"
20130515 "                this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'end');\n"
20130515 '            }\n'
20130515 '            this.allDay.setValue(!!v[Ext.ensible.cal.EventMappings.IsAllDay.name]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private setValue helper\n'
20130515 '    setDT: function(dt, startend){\n'
20130515 '        if(dt && Ext.isDate(dt)){\n'
20130515 "            this[startend+'Date'].setValue(dt);\n"
20130515 "            this[startend+'Time'].setValue(dt.format(this[startend+'Time'].format));\n"
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    isDirty: function(){\n'
20130515 '        var dirty = false;\n'
20130515 '        if(this.rendered && !this.disabled) {\n'
20130515 '            this.items.each(function(item){\n'
20130515 '                if (item.isDirty()) {\n'
20130515 '                    dirty = true;\n'
20130515 '                    return false;\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDisable : function(){\n'
20130515 "        this.delegateFn('disable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEnable : function(){\n'
20130515 "        this.delegateFn('enable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    reset : function(){\n'
20130515 "        this.delegateFn('reset');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    delegateFn : function(fn){\n'
20130515 '        this.items.each(function(item){\n'
20130515 '            if (item[fn]) {\n'
20130515 '                item[fn]();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    beforeDestroy: function(){\n'
20130515 '        Ext.destroy(this.fieldCt);\n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.beforeDestroy.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @method getRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    getRawValue : Ext.emptyFn,\n'
20130515 '    /**\n'
20130515 '     * @method setRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    setRawValue : Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daterangefield', Ext.ensible.cal.DateRangeField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ReminderField\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing a reminder setting for an event.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 'width: 200,\n'
20130515 "fieldLabel: 'Reminder',\n"
20130515 "mode: 'local',\n"
20130515 "triggerAction: 'all',\n"
20130515 'forceSelection: true,\n'
20130515 "displayField: 'desc',\n"
20130515 "valueField: 'value',\n"
20130515 "noneText: 'None',\n"
20130515 "atStartTimeText: 'At start time',\n"
20130515 "reminderValueFormat: '{0} {1} before start'\n"
20130515 '</code></pre>\n'
20130515 ' * <p>To customize the descriptions in the dropdown list override the following methods: \n'
20130515 ' * {@link #getMinutesText}, {@link #getHoursText}, {@link #getDaysText} and {@link #getWeeksText}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ReminderField = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 200,\n'
20130515 "    fieldLabel: 'Reminder',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'desc',\n"
20130515 "    valueField: 'value',\n"
20130515 "    noneText: 'None',\n"
20130515 "    atStartTimeText: 'At start time',\n"
20130515 "    reminderValueFormat: '{0} {1} before start',\n"
20130515 '    \n'
20130515 '    // the following are all deprecated in favor of the corresponding get* template methods.\n'
20130515 '    // they are still here only for backwards-compatibility and will be removed in a future release.\n'
20130515 "    minutesText: 'minutes',\n"
20130515 "    hourText: 'hour',\n"
20130515 "    hoursText: 'hours',\n"
20130515 "    dayText: 'day',\n"
20130515 "    daysText: 'days',\n"
20130515 "    weekText: 'week',\n"
20130515 "    weeksText: 'weeks',\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the list of reminder values used as the contents of the combo list. This method is provided so that\n'
20130515 '     * the value list can be easily overridden as needed.\n'
20130515 '     * @return {Array} A 2-dimensional array of type [{String}, {String}] which contains the value and description\n'
20130515 '     * respectively of each item in the combo list. By default the value is the number of minutes for the selected \n'
20130515 "     * time value (e.g., value 120 == '2 hours') with empty string for no value, but these can be set to anything.\n"
20130515 '     */\n'
20130515 '    getValueList: function(){\n'
20130515 '        var me = this,\n'
20130515 '            fmt = me.reminderValueFormat,\n'
20130515 '            stringFormat = String.format;\n'
20130515 '            \n'
20130515 '        return [\n'
20130515 "            ['', me.noneText],\n"
20130515 "            ['0', me.atStartTimeText],\n"
20130515 "            ['5', stringFormat(fmt, '5', me.getMinutesText(5))],\n"
20130515 "            ['15', stringFormat(fmt, '15', me.getMinutesText(15))],\n"
20130515 "            ['30', stringFormat(fmt, '30', me.getMinutesText(30))],\n"
20130515 "            ['60', stringFormat(fmt, '1', me.getHoursText(1))],\n"
20130515 "            ['90', stringFormat(fmt, '1.5', me.getHoursText(1.5))],\n"
20130515 "            ['120', stringFormat(fmt, '2', me.getHoursText(2))],\n"
20130515 "            ['180', stringFormat(fmt, '3', me.getHoursText(3))],\n"
20130515 "            ['360', stringFormat(fmt, '6', me.getHoursText(6))],\n"
20130515 "            ['720', stringFormat(fmt, '12', me.getHoursText(12))],\n"
20130515 "            ['1440', stringFormat(fmt, '1', me.getDaysText(1))],\n"
20130515 "            ['2880', stringFormat(fmt, '2', me.getDaysText(2))],\n"
20130515 "            ['4320', stringFormat(fmt, '3', me.getDaysText(3))],\n"
20130515 "            ['5760', stringFormat(fmt, '4', me.getDaysText(4))],\n"
20130515 "            ['7200', stringFormat(fmt, '5', me.getDaysText(5))],\n"
20130515 "            ['10080', stringFormat(fmt, '1', me.getWeeksText(1))],\n"
20130515 "            ['20160', stringFormat(fmt, '2', me.getWeeksText(2))]\n"
20130515 '        ]\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of minutes\n'
20130515 "     * prior to the due time (defaults to 'minute' when the passed value === 1, else 'minutes').\n"
20130515 '     * @param {Number} numMinutes The number of minutes prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getMinutesText: function(numMinutes){\n'
20130515 '        return numMinutes === 1 ? this.minuteText : this.minutesText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of hours\n'
20130515 "     * prior to the due time (defaults to 'hour' when the passed value === 1, else 'hours').\n"
20130515 '     * @param {Number} numHours The number of hours prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getHoursText: function(numHours){\n'
20130515 '        return numHours === 1 ? this.hourText : this.hoursText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of days\n'
20130515 "     * prior to the due time (defaults to 'day' when the passed value === 1, else 'days').\n"
20130515 '     * @param {Number} numDays The number of days prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getDaysText: function(numDays){\n'
20130515 '        return numDays === 1 ? this.dayText : this.daysText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of weeks\n'
20130515 "     * prior to the due time (defaults to 'week' when the passed value === 1, else 'weeks').\n"
20130515 '     * @param {Number} numWeeks The number of weeks prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getWeeksText: function(numWeeks){\n'
20130515 '        return numWeeks === 1 ? this.weekText : this.weeksText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ReminderField.superclass.initComponent.call(this);\n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 '            fields: [this.valueField, this.displayField],\n'
20130515 '            idIndex: 0,\n'
20130515 '            data: this.getValueList()\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    initValue : function(){\n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.reminderfield', Ext.ensible.cal.ReminderField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ColorPalette\n'
20130515 ' * @extends Ext.ColorPalette\n'
20130515 ' * Simple color palette class for choosing colors specifically for calendars. This is a lightly modified version\n'
20130515 ' * of the default Ext ColorPalette that is based on calendar ids rather than hex color codes so that the colors\n'
20130515 ' * can be easily modified via CSS and automatically applied to calendars. The specific colors used by default are\n'
20130515 ' * also chosen to provide good color contrast when displayed in calendars.\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * Create a new ColorPalette\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype extensible.calendarcolorpalette\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ColorPalette = Ext.extend(Ext.ColorPalette, {\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    colorCount: 32,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Function} handler\n'
20130515 '     * Optional. A function that will handle the select event of this color palette.\n'
20130515 '     * The handler is passed the following parameters:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><code>palette</code> : ColorPalette<div class="sub-desc">The {@link #palette Ext.ensible.cal.ColorPalette} instance.</div></li>\n'
20130515 '     * <li><code>colorId</code> : String<div class="sub-desc">The id that identifies the selected color and relates it to a calendar.</div></li>\n'
20130515 '     * </ul></div>\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ColorPalette.superclass.initComponent.call(this);\n'
20130515 "        this.addClass('x-calendar-palette');\n"
20130515 '        this.tpl = new Ext.XTemplate(\'<tpl for="."><a class="x-unselectable x-cal-color" id="\' + this.id +\n'
20130515 '            \'-color-{.}" href="#" hidefocus="on"><em><span class="x-cal-{.}">&#160;</span></em></a></tpl>\');\n'
20130515 '            \n'
20130515 '        if(this.handler){\n'
20130515 "            this.on('select', this.handler, this.scope || this);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.colors = [];\n'
20130515 '        for(var i=1; i<=this.colorCount; i++){\n'
20130515 '            this.colors.push(i);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleClick : function(e, t){\n'
20130515 '        e.preventDefault();\n'
20130515 "        var el = e.getTarget('.x-cal-color', 3, true);\n"
20130515 '        if(el){\n'
20130515 "            var id = el.id.split('-color-')[1];\n"
20130515 '            this.select(id);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Selects the specified color in the palette (fires the {@link #select} event)\n'
20130515 '     * @param {Number} colorId The id that identifies the selected color and relates it to a calendar\n'
20130515 '     * @param {Boolean} suppressEvent (optional) True to stop the select event from firing. Defaults to <tt>false</tt>.\n'
20130515 '     */\n'
20130515 '    select : function(colorId, suppressEvent){\n'
20130515 '        if(colorId != this.value){\n'
20130515 '            if(this.value){\n'
20130515 "                Ext.fly(this.id+'-color-'+this.value).removeClass('x-color-palette-sel');\n"
20130515 '            }\n'
20130515 "            Ext.get(this.id+'-color-'+colorId).addClass('x-color-palette-sel');\n"
20130515 '            this.value = colorId;\n'
20130515 '            \n'
20130515 '            if(suppressEvent !== true){\n'
20130515 "                this.fireEvent('select', this, colorId);\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcolorpalette', Ext.ensible.cal.ColorPalette);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarListMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * <p>A menu containing a {@link Ext.ensible.cal.ColorPalette palette} for choosing calendar colors, \n'
20130515 ' * as well as other calendar-specific options.</p>\n'
20130515 ' * @xtype extensible.calendarlistmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarListMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} cls\n'
20130515 "     * An optional extra CSS class that will be added to this component's Element (defaults to 'x-calendar-list-menu'). \n"
20130515 '     * This can be useful for adding customized styles to the component or any of its children using standard CSS rules.\n'
20130515 '     */\n'
20130515 "    cls : 'x-calendar-list-menu',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} displayOnlyThisCalendarText\n'
20130515 "     * The text to display for the 'Display only this calendar' option in the menu.\n"
20130515 '     */\n'
20130515 "    displayOnlyThisCalendarText: 'Display only this calendar',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} calendarId\n'
20130515 '     * The id of the calendar to be associated with this menu. This calendarId will be passed\n'
20130515 '     * back with any events from this menu to identify the calendar to be acted upon. The calendar\n'
20130515 '     * id can also be changed at any time after creation by calling {@link setCalendar}.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @property palette\n'
20130515 '     * @type ColorPalette\n'
20130515 '     * The {@link Ext.ensible.cal.ColorPalette ColorPalette} instance for this CalendarListMenu\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 "            'showcalendar',\n"
20130515 "            'hidecalendar',\n"
20130515 "            'radiocalendar',\n"
20130515 "            'colorchange'\n"
20130515 '        );\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.displayOnlyThisCalendarText,\n'
20130515 "                iconCls: 'extensible-cal-icon-cal-show',\n"
20130515 '                handler: this.handleRadioCalendarClick.createDelegate(this)\n'
20130515 "            }, '-', {\n"
20130515 "                xtype: 'extensible.calendarcolorpalette',\n"
20130515 '                handler: this.handleColorSelect.createDelegate(this)\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.afterRender.call(this);\n'
20130515 "        this.palette = this.findByType('extensible.calendarcolorpalette')[0];\n"
20130515 '        \n'
20130515 '        if(this.colorId){\n'
20130515 '            this.palette.select(this.colorId, true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendarClick: function(e, t){\n'
20130515 "        this.fireEvent('radiocalendar', this, this.calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorSelect: function(cp, selColorId){\n'
20130515 "        this.fireEvent('colorchange', this, this.calendarId, selColorId, this.colorId);\n"
20130515 '        this.colorId = selColorId;\n'
20130515 '        this.menuHide();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the calendar id and color id to be associated with this menu. This should be called each time the\n'
20130515 '     * menu is shown relative to a new calendar.\n'
20130515 '     * @param {Number} calendarId The id of the calendar to be associated\n'
20130515 '     * @param {Number} colorId The id of the color to be pre-selected in the color palette\n'
20130515 '     * @return {Ext.ensible.cal.CalendarListMenu} this\n'
20130515 '     */\n'
20130515 '    setCalendar: function(id, cid){\n'
20130515 '        this.calendarId = id;\n'
20130515 '        this.colorId = cid;\n'
20130515 '        \n'
20130515 '        if(this.rendered){\n'
20130515 '            this.palette.select(cid, true);\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    menuHide : function(){\n'
20130515 '        if(this.hideOnClick){\n'
20130515 '            this.hide(true);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlistmenu', Ext.ensible.cal.CalendarListMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.EventContextMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * The context menu displayed for calendar events in any {@link Ext.ensible.cal.CalendarView CalendarView} subclass. \n'
20130515 ' * @xtype extensible.eventcontextmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventContextMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} editDetailsText\n'
20130515 "     * The text to display for the 'Edit Details' option in the menu.\n"
20130515 '     */\n'
20130515 "    editDetailsText: 'Edit Details',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} deleteText\n'
20130515 "     * The text to display for the 'Delete' option in the menu.\n"
20130515 '     */\n'
20130515 "    deleteText: 'Delete',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} moveToText\n'
20130515 "     * The text to display for the 'Move to...' option in the menu.\n"
20130515 '     */\n'
20130515 "    moveToText: 'Move to...',\n"
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the event details\n'
20130515 '             * (by default, in an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should \n'
20130515 '             * transfer the current event record to the appropriate instance of the detailed form by showing\n'
20130515 '             * the form and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'editdetails',\n"
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after the user selectes the option to delete an event. Note that this menu does not actually\n'
20130515 '             * delete the event from the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the deletion and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be deleted\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'eventdelete',\n"
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after the user selects a date in the calendar picker under the "move event" menu option. Note that this menu does not actually\n'
20130515 '             * update the event in the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the move action and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be moved\n'
20130515 '             * @param {Date} dt The new start date for the event (the existing event start time will be preserved)\n'
20130515 '             */\n'
20130515 "            'eventmove'\n"
20130515 '        );\n'
20130515 '        this.buildMenu();\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Overrideable method intended for customizing the menu items. This should only to be used for overriding \n'
20130515 '     * or called from a subclass and should not be called directly from application code.\n'
20130515 '     */\n'
20130515 '    buildMenu: function(){\n'
20130515 '        if(this.rendered){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.dateMenu = new Ext.menu.DateMenu({\n'
20130515 '            scope: this,\n'
20130515 '            handler: function(dp, dt){\n'
20130515 '                dt = Ext.ensible.Date.copyTime(this.rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt);\n'
20130515 "                this.fireEvent('eventmove', this, this.rec, dt);\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.editDetailsText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-edit',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('editdetails', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 '            },{\n'
20130515 '                text: this.deleteText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-del',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('eventdelete', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 "            },'-',{\n"
20130515 '                text: this.moveToText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-move',\n"
20130515 '                menu: this.dateMenu\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the specified event at the given XY position. \n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event\n'
20130515 '     * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '     * @param {Array} xy The X & Y [x, y] values for the position at which to show the menu (coordinates are page-based) \n'
20130515 '     */\n'
20130515 '    showForEvent: function(rec, el, xy){\n'
20130515 '        this.rec = rec;\n'
20130515 '        this.ctxEl = el;\n'
20130515 '        this.dateMenu.picker.setValue(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        this.showAt(xy);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onHide : function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.onHide.call(this);\n'
20130515 '        delete this.ctxEl;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventcontextmenu', Ext.ensible.cal.EventContextMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarList\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is a {@link Ext.Panel panel} subclass that renders a list of available calendars\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarList = Ext.extend(Ext.Panel, {\n'
20130515 "    title: 'Calendars',\n"
20130515 '    collapsible: true,\n'
20130515 '    autoHeight: true,\n'
20130515 "    layout: 'fit',\n"
20130515 "    menuSelector: 'em',\n"
20130515 "    width: 100, // this should be overridden by this container's layout\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} store\n'
20130515 '     * A {@link Ext.data.Store store} containing records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * This is a required config and is used to populate the calendar list.  The CalendarList widget will also listen for events from\n'
20130515 '     * the store and automatically refresh iteself in the event that the underlying calendar records in the store change.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 "        this.addClass('x-calendar-list');\n"
20130515 '        Ext.ensible.cal.CalendarList.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(ct, position){\n'
20130515 '        Ext.ensible.cal.CalendarList.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        if(this.store){\n'
20130515 '            this.setStore(this.store, true);\n'
20130515 '        }\n'
20130515 '        this.refresh();\n'
20130515 '        \n'
20130515 "        this.body.on('click', this.onClick, this);\n"
20130515 "        this.body.on('mouseover', this.onMouseOver, this, {delegate: 'li'});\n"
20130515 "        this.body.on('mouseout', this.onMouseOut, this, {delegate: 'li'});\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getListTemplate : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evr {colorCls} {hiddenCls}">{title}<em>&#160;</em></li>\',\n'
20130515 "                    '</tpl></ul>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evo {colorCls} {hiddenCls}">\',\n'
20130515 '                            \'<div class="ext-cal-evm">\',\n'
20130515 '                                \'<div class="ext-cal-evi">{title}<em>&#160;</em></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</li>',\n"
20130515 "                    '</tpl></ul>'\n"
20130515 '                );\n'
20130515 '            this.tpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.tpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the store used to display the available calendars. It should contain \n'
20130515 '     * records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        if(!initial && this.store){\n'
20130515 '            this.store.un("load", this.refresh, this);\n'
20130515 '            this.store.un("add", this.refresh, this);\n'
20130515 '            this.store.un("remove", this.refresh, this);\n'
20130515 '            this.store.un("update", this.onUpdate, this);\n'
20130515 '            this.store.un("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("load", this.refresh, this);\n'
20130515 '            store.on("add", this.refresh, this);\n'
20130515 '            store.on("remove", this.refresh, this);\n'
20130515 '            store.on("update", this.onUpdate, this);\n'
20130515 '            store.on("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onUpdate : function(ds, rec, operation){\n'
20130515 '        // ignore EDIT notifications, only refresh after a commit\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.refresh();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Refreshes the calendar list so that it displays based on the most current state of\n'
20130515 '     * the underlying calendar store. Usually this method does not need to be called directly\n'
20130515 "     * as the control is automatically bound to the store's events, but it is available in the\n"
20130515 '     * event that a manual refresh is ever needed.\n'
20130515 '     */\n'
20130515 '    refresh: function(){\n'
20130515 '        if(this.skipRefresh){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        var data = [], i = 0, o = null,\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            o = {\n'
20130515 "                cmpId: this.id + '__' + recs[i].data[CM.CalendarId.name],\n"
20130515 '                title: recs[i].data[CM.Title.name],\n'
20130515 '                colorCls: this.getColorCls(recs[i].data[CM.ColorId.name])\n'
20130515 '            };\n'
20130515 '            if(recs[i].data[CM.IsHidden.name] === true){\n'
20130515 "                o.hiddenCls = 'ext-cal-hidden';\n"
20130515 '            }\n'
20130515 '            data[data.length] = o;\n'
20130515 '        }\n'
20130515 '        this.getListTemplate().overwrite(this.body, data);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getColorCls: function(colorId){\n'
20130515 "        return 'x-cal-'+colorId+'-ad';\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    toggleCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id),\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            isHidden = rec.data[CM.IsHidden.name]; \n'
20130515 '        \n'
20130515 '        rec.set([CM.IsHidden.name], !isHidden);\n'
20130515 '        \n'
20130515 '        if(commit !== false){\n'
20130515 '            rec.commit();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    hideCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] !== true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    radioCalendar: function(id){\n'
20130515 '        var i = 0, recId,\n'
20130515 '            calendarId = Ext.ensible.cal.CalendarMappings.CalendarId.name,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            recId = recs[i].data[calendarId];\n'
20130515 '            // make a truthy check so that either numeric or string ids can match\n'
20130515 '            if(recId == id){\n'
20130515 '                this.showCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.hideCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // store.commitChanges() just loops over each modified record and calls rec.commit(),\n'
20130515 '        // which in turns fires an update event that would cause a full refresh for each record.\n'
20130515 '        // To avoid this we simply set a flag and make sure we only refresh once per commit set.\n'
20130515 '        this.skipRefresh = true;\n'
20130515 '        this.store.commitChanges();\n'
20130515 '        delete this.skipRefresh;\n'
20130515 '        this.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOver: function(e, t){\n'
20130515 "        Ext.fly(t).addClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOut: function(e, t){\n'
20130515 "        Ext.fly(t).removeClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarId: function(el){\n'
20130515 "        return el.id.split('__')[1];\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarItemEl: function(calendarId){\n'
20130515 "        return Ext.get(this.id+'__'+calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        var el;\n'
20130515 '        if(el = e.getTarget(this.menuSelector, 3, true)){\n'
20130515 '            this.showEventMenu(el, e.getXY());\n'
20130515 '        }\n'
20130515 "        else if(el = e.getTarget('li', 3, true)){\n"
20130515 '            this.toggleCalendar(this.getCalendarId(el));\n'
20130515 '        } \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorChange: function(menu, id, colorId, origColorId){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name] = colorId;\n'
20130515 '        rec.commit();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendar: function(menu, id){\n'
20130515 '        this.radioCalendar(id);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showEventMenu : function(el, xy){\n'
20130515 "        var id = this.getCalendarId(el.parent('li')),\n"
20130515 '            rec = this.store.getById(id),\n'
20130515 '            colorId = rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n'
20130515 '            \n'
20130515 '        if(!this.menu){\n'
20130515 '            this.menu = new Ext.ensible.cal.CalendarListMenu();\n'
20130515 "            this.menu.on('colorchange', this.handleColorChange, this);\n"
20130515 "            this.menu.on('radiocalendar', this.handleRadioCalendar, this);\n"
20130515 '        }\n'
20130515 '        this.menu.setCalendar(id, colorId);\n'
20130515 '        this.menu.showAt(xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlist', Ext.ensible.cal.CalendarList);/**\n"
20130515 ' * @class Ext.ensible.cal.EventEditForm\n'
20130515 ' * @extends Ext.form.FormPanel\n'
20130515 ' * <p>A custom form used for detailed editing of events.</p>\n'
20130515 ' * <p>This is pretty much a standard form that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. It is also configured to automatically bind records of type {@link Ext.ensible.cal.EventRecord}\n'
20130515 ' * to and from the form.</p>\n'
20130515 ' * <p>This form also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 'labelWidth: 65,\n'
20130515 'labelWidthRightCol: 65,\n'
20130515 'colWidthLeft: .6,\n'
20130515 'colWidthRight: .4,\n'
20130515 "title: 'Event Form',\n"
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "reminderLabelText: 'Reminder',\n"
20130515 "notesLabelText: 'Notes',\n"
20130515 "locationLabelText: 'Location',\n"
20130515 "webLinkLabelText: 'Web Link',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "repeatsLabelText: 'Repeats',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 'border: false,\n'
20130515 "buttonAlign: 'center',\n"
20130515 'autoHeight: true // to allow for the notes field to autogrow\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditForm = Ext.extend(Ext.form.FormPanel, {\n'
20130515 '    labelWidth: 65,\n'
20130515 '    labelWidthRightCol: 65,\n'
20130515 '    colWidthLeft: .6,\n'
20130515 '    colWidthRight: .4,\n'
20130515 "    title: 'Event Form',\n"
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    reminderLabelText: 'Reminder',\n"
20130515 "    notesLabelText: 'Notes',\n"
20130515 "    locationLabelText: 'Location',\n"
20130515 "    webLinkLabelText: 'Web Link',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    repeatsLabelText: 'Repeats',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 '    border: false,\n'
20130515 "    buttonAlign: 'center',\n"
20130515 '    autoHeight: true, // to allow for the notes field to autogrow\n'
20130515 '    \n'
20130515 '    /* // not currently supported\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false,\n'
20130515 '    \n'
20130515 '    // private properties:\n'
20130515 "    layout: 'column',\n"
20130515 "    cls: 'ext-evt-edit-form',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true\n'
20130515 '        });\n'
20130515 '                \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 "            anchor: '90%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 '            fieldLabel: this.datesLabelText,\n'
20130515 '            singleLine: false,\n'
20130515 "            anchor: '90%',\n"
20130515 '            listeners: {\n'
20130515 "                'change': this.onDateChange.createDelegate(this)\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        this.reminderField = new Ext.ensible.cal.ReminderField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Reminder.name,\n'
20130515 '            fieldLabel: this.reminderLabelText\n'
20130515 '        });\n'
20130515 '        this.notesField = new Ext.form.TextArea({\n'
20130515 '            fieldLabel: this.notesLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Notes.name,\n'
20130515 '            grow: true,\n'
20130515 '            growMax: 150,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.locationField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.locationLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Location.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.urlField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.webLinkLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Url.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        \n'
20130515 '        var leftFields = [this.titleField, this.dateRangeField, this.reminderField], \n'
20130515 '            rightFields = [this.notesField, this.locationField, this.urlField];\n'
20130515 '            \n'
20130515 '        if(this.enableRecurrence){\n'
20130515 '            this.recurrenceField = new Ext.ensible.cal.RecurrenceField({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.RRule.name,\n'
20130515 '                fieldLabel: this.repeatsLabelText,\n'
20130515 "                anchor: '100%'\n"
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.recurrenceField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                store: this.calendarStore,\n'
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name\n'
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.calendarField);\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.items = [{\n'
20130515 "            id: this.id+'-left-col',\n"
20130515 '            columnWidth: this.colWidthLeft,\n'
20130515 "            layout: 'form',\n"
20130515 '            border: false,\n'
20130515 '            items: leftFields\n'
20130515 '        },{\n'
20130515 "            id: this.id+'-right-col',\n"
20130515 '            columnWidth: this.colWidthRight,\n'
20130515 "            layout: 'form',\n"
20130515 '            labelWidth: this.labelWidthRightCol || this.labelWidth,\n'
20130515 '            border: false,\n'
20130515 '            items: rightFields\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        this.fbar = [{\n'
20130515 '            text:this.saveButtonText, scope: this, handler: this.onSave\n'
20130515 '        },{\n'
20130515 "            cls:'ext-del-btn', text:this.deleteButtonText, scope:this, handler:this.onDelete\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, scope: this, handler: this.onCancel\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditForm.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDateChange: function(dateRangeField, val){\n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(val[0]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    loadRecord: function(rec){\n'
20130515 '        this.form.reset().loadRecord.apply(this.form, arguments);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        \n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        }\n'
20130515 '        if(this.calendarStore){\n'
20130515 "            this.form.setValues({'calendar': rec.data[Ext.ensible.cal.EventMappings.CalendarId.name]});\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        //this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '        if(rec.phantom){\n'
20130515 '            //rec.markDirty();\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(false);\n"
20130515 '        }\n'
20130515 '        else {\n'
20130515 '            this.setTitle(this.titleTextEdit);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(true);\n"
20130515 '        }\n'
20130515 '        this.titleField.focus();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    updateRecord: function(){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '        \n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = this.form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        //delete rec.store; // make sure the record does not try to autosave\n'
20130515 '        rec.endEdit();\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '        this.cleanup(true);\n'
20130515 "        this.fireEvent('eventcancel', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '        \n'
20130515 '        if(this.form.isDirty()){\n'
20130515 '            this.form.reset();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        if(!this.updateRecord()){\n'
20130515 '            this.onCancel();\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        this.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "        this.fireEvent('eventdelete', this, this.activeRecord);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditform', Ext.ensible.cal.EventEditForm);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventEditWindow\n'
20130515 ' * @extends Ext.Window\n'
20130515 ' * <p>A custom window containing a basic edit form used for quick editing of events.</p>\n'
20130515 ' * <p>This window also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 'width: 600,\n'
20130515 'border: true,\n'
20130515 "closeAction: 'hide',\n"
20130515 'modal: false,\n'
20130515 'resizable: false,\n'
20130515 "buttonAlign: 'left',\n"
20130515 'labelWidth: 65,\n'
20130515 "detailsLinkText: 'Edit Details...',\n"
20130515 "savingMessage: 'Saving changes...',\n"
20130515 "deletingMessage: 'Deleting event...',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "bodyStyle: 'padding:5px 10px;',\n"
20130515 'enableEditDetails: true\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditWindow = Ext.extend(Ext.Window, {\n'
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 '    width: 600,\n'
20130515 '    border: true,\n'
20130515 "    closeAction: 'hide',\n"
20130515 '    modal: false,\n'
20130515 '    resizable: false,\n'
20130515 "    buttonAlign: 'left',\n"
20130515 '    labelWidth: 65,\n'
20130515 "    detailsLinkText: 'Edit Details...',\n"
20130515 "    savingMessage: 'Saving changes...',\n"
20130515 "    deletingMessage: 'Deleting event...',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "    bodyStyle: 'padding:5px 10px;',\n"
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.fbar = ['->',{\n"
20130515 '            text:this.saveButtonText, disabled:false, handler:this.onSave, scope:this\n'
20130515 '        },{\n'
20130515 "            id:this.id+'-delete-btn', text:this.deleteButtonText, disabled:false, handler:this.onDelete, scope:this, hideMode:'offsets'\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, disabled:false, handler:this.onCancel, scope:this\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        if(this.enableEditDetails !== false){\n'
20130515 '            this.fbar.unshift({\n'
20130515 '                xtype: \'tbtext\', text: \'<a href="#" class="\'+this.editDetailsLinkClass+\'">\'+this.detailsLinkText+\'</a>\'\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender : function(ct, position){\n'
20130515 "        this.deleteBtn = Ext.getCmp(this.id+'-delete-btn');\n"
20130515 '        \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 "            anchor: '95%',\n"
20130515 '            fieldLabel: this.datesLabelText\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var items = [this.titleField, this.dateRangeField];\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name,\n'
20130515 "                anchor: '100%',\n"
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                store: this.calendarStore\n'
20130515 '            });\n'
20130515 '            items.push(this.calendarField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.formPanel = new Ext.FormPanel({\n'
20130515 '            labelWidth: this.labelWidth,\n'
20130515 '            frame: false,\n'
20130515 '            bodyBorder: false,\n'
20130515 '            border: false,\n'
20130515 '            items: items\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.add(this.formPanel);\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.afterRender.call(this);\n'
20130515 '\t\t\n'
20130515 "\t\tthis.el.addClass('ext-cal-event-win');\n"
20130515 "        this.el.select('.'+this.editDetailsLinkClass).on('click', this.onEditDetailsClick, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetailsClick: function(e){\n'
20130515 '        e.stopEvent();\n'
20130515 '        this.updateRecord(true);\n'
20130515 "        this.fireEvent('editdetails', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\t\n'
20130515 '\t/**\n'
20130515 '     * Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden.\n'
20130515 '\t * @param {Ext.data.Record/Object} o Either a {@link Ext.data.Record} if showing the form\n'
20130515 '\t * for an existing event in edit mode, or a plain object containing a StartDate property (and \n'
20130515 '\t * optionally an EndDate property) for showing the form in add mode. \n'
20130515 '     * @param {String/Element} animateTarget (optional) The target element or id from which the window should\n'
20130515 '     * animate while opening (defaults to null with no animation)\n'
20130515 '     * @return {Ext.Window} this\n'
20130515 '     */\n'
20130515 '    show: function(o, animateTarget){\n'
20130515 '\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\tvar anim = (Ext.isIE8 && Ext.isStrict) ? null : animateTarget,\n'
20130515 '            M = Ext.ensible.cal.EventMappings;\n'
20130515 '\n'
20130515 '\t\tExt.ensible.cal.EventEditWindow.superclass.show.call(this, anim, function(){\n'
20130515 '            this.titleField.focus(false, 100);\n'
20130515 '        });\n'
20130515 "        this.deleteBtn[o.data && o.data[M.EventId.name] ? 'show' : 'hide']();\n"
20130515 '        \n'
20130515 '        var rec, f = this.formPanel.form;\n'
20130515 '\n'
20130515 '        if(o.data){\n'
20130515 '            rec = o;\n'
20130515 '\t\t\t//this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '\t\t\tif(rec.phantom){\n'
20130515 '\t\t\t\t// Enable adding the default record that was passed in\n'
20130515 "\t\t\t\t// if it's new even if the user makes no changes \n"
20130515 '\t\t\t\t//rec.markDirty();\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextAdd);\n'
20130515 '\t\t\t}\n'
20130515 '\t\t\telse{\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextEdit);\n'
20130515 '\t\t\t}\n'
20130515 '            \n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '\t\t\t//this.isAdd = true;\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 '\n'
20130515 '            var start = o[M.StartDate.name],\n'
20130515 "                end = o[M.EndDate.name] || start.add('h', 1);\n"
20130515 '                \n'
20130515 '            rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '            //rec.data[M.EventId.name] = this.newId++;\n'
20130515 '            rec.data[M.StartDate.name] = start;\n'
20130515 '            rec.data[M.EndDate.name] = end;\n'
20130515 '            rec.data[M.IsAllDay.name] = !!o[M.IsAllDay.name] || start.getDate() != end.clone().add(Date.MILLI, 1).getDate();\n'
20130515 '            \n'
20130515 '            f.reset();\n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField.setValue(rec.data[M.CalendarId.name]);\n'
20130515 '        }\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 "        this.el.setStyle('z-index', 12000);\n"
20130515 '        \n'
20130515 '\t\treturn this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    roundTime: function(dt, incr){\n'
20130515 '        incr = incr || 15;\n'
20130515 '        var m = parseInt(dt.getMinutes());\n'
20130515 "        return dt.add('mi', incr - (m % incr));\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '    \tthis.cleanup(true);\n'
20130515 "\t\tthis.fireEvent('eventcancel', this, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '\t\t\n'
20130515 '        if(hide===true){\n'
20130515 '\t\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\t\t//var anim = afterDelete || (Ext.isIE8 && Ext.isStrict) ? null : this.animateTarget;\n'
20130515 '            this.hide();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateRecord: function(keepEditing){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            form = this.formPanel.form,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '\n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        \n'
20130515 '        if(!keepEditing){\n'
20130515 '            rec.endEdit();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.formPanel.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\t\tif(!this.updateRecord()){\n'
20130515 '\t\t\tthis.onCancel();\n'
20130515 '\t\t\treturn;\n'
20130515 '\t\t}\n'
20130515 "\t\tthis.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "\t\tthis.fireEvent('eventdelete', this, this.activeRecord, this.animateTarget);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditwindow', Ext.ensible.cal.EventEditWindow);/**\r\n"
20130515 ' * @class Ext.ensible.cal.CalendarView\r\n'
20130515 ' * @extends Ext.BoxComponent\r\n'
20130515 ' * <p>This is an abstract class that serves as the base for other calendar views. This class is not\r\n'
20130515 ' * intended to be directly instantiated.</p>\r\n'
20130515 ' * <p>When extending this class to create a custom calendar view, you must provide an implementation\r\n'
20130515 ' * for the <code>renderItems</code> method, as there is no default implementation for rendering events\r\n'
20130515 ' * The rendering logic is totally dependent on how the UI structures its data, which\r\n'
20130515 ' * is determined by the underlying UI template (this base class does not have a template).</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.CalendarView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\r\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\r\n'
20130515 '     * config), and either can be used interchangeably.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\r\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\r\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\r\n'
20130515 '     * the default calendar (and color).\r\n'
20130515 '     */\r\n'
20130515 '    /*\r\n'
20130515 '     * @cfg {Boolean} enableRecurrence\r\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\r\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\r\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\r\n'
20130515 '     * if the server supports it.\r\n'
20130515 '     */\r\n'
20130515 '    //enableRecurrence: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} readOnly\r\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} startDay\r\n'
20130515 '     * The 0-based index for the day on which the calendar week begins (0=Sunday, which is the default)\r\n'
20130515 '     */\r\n'
20130515 '    startDay : 0,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} spansHavePriority\r\n'
20130515 '     * Allows switching between two different modes of rendering events that span multiple days. When true,\r\n'
20130515 '     * span events are always sorted first, possibly at the expense of start dates being out of order (e.g., \r\n'
20130515 '     * a span event that starts at 11am one day and spans into the next day would display before a non-spanning \r\n'
20130515 '     * event that starts at 10am, even though they would not be in date order). This can lead to more compact\r\n'
20130515 '     * layouts when there are many overlapping events. If false (the default), events will always sort by start date\r\n'
20130515 '     * first which can result in a less compact, but chronologically consistent layout.\r\n'
20130515 '     */\r\n'
20130515 '    spansHavePriority: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} trackMouseOver\r\n'
20130515 '     * Whether or not the view tracks and responds to the browser mouseover event on contained elements (defaults to\r\n'
20130515 "     * true). If you don't need mouseover event highlighting you can disable this.\r\n"
20130515 '     */\r\n'
20130515 '\ttrackMouseOver: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableFx\r\n'
20130515 '     * Determines whether or not visual effects for CRUD actions are enabled (defaults to true). If this is false\r\n'
20130515 '     * it will override any values for {@link #enableAddFx}, {@link #enableUpdateFx} or {@link enableRemoveFx} and\r\n'
20130515 '     * all animations will be disabled.\r\n'
20130515 '     */\r\n'
20130515 '\tenableFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableAddFx\r\n'
20130515 '     * True to enable a visual effect on adding a new event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doAddFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableAddFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableUpdateFx\r\n'
20130515 '     * True to enable a visual effect on updating an event, false to disable it (the default). Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doUpdateFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableUpdateFx: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableRemoveFx\r\n'
20130515 '     * True to enable a visual effect on removing an event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doRemoveFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableRemoveFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableDD\r\n'
20130515 '     * True to enable drag and drop in the calendar view (the default), false to disable it\r\n'
20130515 '     */\r\n'
20130515 '    enableDD: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableContextMenus\r\n'
20130515 '     * True to enable automatic right-click context menu handling in the calendar views (the default), false to disable\r\n'
20130515 '     * them. Different context menus are provided when clicking on events vs. the view background.\r\n'
20130515 '     */\r\n'
20130515 '    enableContextMenus: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} suppressBrowserContextMenu\r\n'
20130515 '     * When {@link #enableContextMenus} is true, the browser context menu will automatically be suppressed whenever a\r\n'
20130515 '     * custom context menu is displayed. When this option is true, right-clicks on elements that do not have a custom\r\n'
20130515 '     * context menu will also suppress the default browser context menu (no menu will be shown at all). When false,\r\n'
20130515 '     * the browser context menu will still show if the right-clicked element has no custom menu (this is the default).\r\n'
20130515 '     */\r\n'
20130515 '    suppressBrowserContextMenu: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} monitorResize\r\n'
20130515 "     * True to monitor the browser's resize event (the default), false to ignore it. If the calendar view is rendered\r\n"
20130515 "     * into a fixed-size container this can be set to false. However, if the view can change dimensions (e.g., it's in \r\n"
20130515 '     * fit layout in a viewport or some other resizable container) it is very important that this config is true so that\r\n'
20130515 '     * any resize event propagates properly to all subcomponents and layouts get recalculated properly.\r\n'
20130515 '     */\r\n'
20130515 '    monitorResize: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayText\r\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\r\n"
20130515 '     */\r\n'
20130515 "    todayText: 'Today',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddCreateEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \r\n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddCreateEventText: 'Create event for {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddMoveEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \r\n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddMoveEventText: 'Move event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddResizeEventText\r\n'
20130515 '     * The string displayed to the user in the drag proxy while dragging the resize handle of an event (defaults to \r\n'
20130515 "     * 'Update event to {0}' where {0} is the updated event start-end range supplied by the view). Note that \r\n"
20130515 '     * this text is only used in views\r\n'
20130515 '     * that allow resizing of events.\r\n'
20130515 '     */\r\n'
20130515 "    ddResizeEventText: 'Update event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} defaultEventTitleText\r\n'
20130515 "     * The default text to display as the title of an event that has a null or empty string title value (defaults to '(No title)')\r\n"
20130515 '     */\r\n'
20130515 "    defaultEventTitleText: '(No title)',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamStart\r\n'
20130515 "     * The param name representing the start date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'start').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamStart: 'start',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamEnd\r\n'
20130515 "     * The param name representing the end date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'end').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamEnd: 'end',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamFormat\r\n'
20130515 "     * The format to use for date parameters sent with requests to retrieve events for the calendar (defaults to 'Y-m-d', e.g. '2010-10-31')\r\n"
20130515 '     */\r\n'
20130515 "    dateParamFormat: 'Y-m-d',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} editModal\r\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\r\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\r\n'
20130515 '     * config will no longer apply. \r\n'
20130515 '     */\r\n'
20130515 '    editModal: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableEditDetails\r\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\r\n'
20130515 '     * link and disable detailed event editing. \r\n'
20130515 '     */\r\n'
20130515 '    enableEditDetails: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekendCls\r\n'
20130515 "     * A CSS class to apply to weekend days in the current view (defaults to 'ext-cal-day-we' which highlights weekend days in light blue). \r\n"
20130515 "     * To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    weekendCls: 'ext-cal-day-we',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} prevMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month previous to the current view's month (defaults to 'ext-cal-day-prev' which \r\n"
20130515 "     * highlights previous month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    prevMonthCls: 'ext-cal-day-prev',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} nextMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month after the current view's month (defaults to 'ext-cal-day-next' which \r\n"
20130515 "     * highlights next month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    nextMonthCls: 'ext-cal-day-next',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayCls\r\n'
20130515 "     * A CSS class to apply to the current date when it is visible in the current view (defaults to 'ext-cal-day-today' which \r\n"
20130515 "     * highlights today in yellow). To disable this styling set the value to null or ''.\r\n"
20130515 '     */\r\n'
20130515 "    todayCls: 'ext-cal-day-today',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 '    weekCount: 1,\r\n'
20130515 '    dayCount: 1,\r\n'
20130515 "    eventSelector : '.ext-cal-evt',\r\n"
20130515 "    eventOverClass: 'ext-evt-over',\r\n"
20130515 "\teventElIdDelimiter: '-evt-',\r\n"
20130515 "    dayElIdDelimiter: '-day-',\r\n"
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns a string of HTML template markup to be used as the body portion of the event template created\r\n'
20130515 "     * by {@link #getEventTemplate}. This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. This string can include any valid {@link Ext.Template} code, and\r\n'
20130515 '     * any data tokens accessible to the containing event template can be referenced in this string.\r\n'
20130515 '     * @return {String} The body template string\r\n'
20130515 '     */\r\n'
20130515 '    getEventBodyMarkup : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\r\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with events. Internally this method\r\n'
20130515 "     * by default generates different markup for browsers that support CSS border radius and those that don't.\r\n"
20130515 '     * This method can be overridden as needed to customize the markup generated.</p>\r\n'
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\r\n'
20130515 "     * from the surrounding container markup.  This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \r\n'
20130515 '     * overridden version also does the same.</p>\r\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\r\n'
20130515 '     */\r\n'
20130515 '    getEventTemplate : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * This is undefined by default, but can be implemented to allow custom CSS classes and template data to be\r\n'
20130515 '     * conditionally applied to events during rendering. This function will be called with the parameter list shown\r\n'
20130515 "     * below and is expected to return the CSS class name (or empty string '' for none) that will be added to the \r\n"
20130515 "     * event element's wrapping div. To apply multiple class names, simply return them space-delimited within the \r\n"
20130515 "     * string (e.g., 'my-class another-class'). Example usage, applied in a CalendarPanel config:\r\n"
20130515 '     * <pre><code>\r\n'
20130515 "// This example assumes a custom field of 'IsHoliday' has been added to EventRecord\r\n"
20130515 'viewConfig: {\r\n'
20130515 '    getEventClass: function(rec, allday, templateData, store){\r\n'
20130515 '        if(rec.data.IsHoliday){\r\n'
20130515 "            templateData.iconCls = 'holiday';\r\n"
20130515 "            return 'evt-holiday';\r\n"
20130515 '        }\r\n'
20130515 "        templateData.iconCls = 'plain';\r\n"
20130515 "        return '';\r\n"
20130515 '    },\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        // This is simplified, but shows the symtax for how you could add a\r\n'
20130515 '        // custom placeholder that maps back to the templateData property created\r\n'
20130515 '        // in getEventClass. Note that this is standard Ext template syntax.\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 '            this.eventBodyMarkup = \'&lt;span class="{iconCls}">&lt;/span> {Title}\';\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    }\r\n'
20130515 '}\r\n'
20130515 '</code></pre>\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} being rendered\r\n'
20130515 '     * @param {Boolean} isAllDay A flag indicating whether the event will be <em>rendered</em> as an all-day event. Note that this\r\n'
20130515 '     * will not necessarily correspond with the value of the <tt>EventRecord.IsAllDay</tt> field &mdash; events that span multiple\r\n'
20130515 '     * days will be rendered using the all-day event template regardless of the field value. If your logic for this function\r\n'
20130515 '     * needs to know whether or not the event will be rendered as an all-day event, this value should be used. \r\n'
20130515 '     * @param {Object} templateData A plain JavaScript object that is empty by default. You can add custom properties\r\n'
20130515 '     * to this object that will then be passed into the event template for the specific event being rendered. If you have \r\n'
20130515 '     * overridden the default event template and added custom data placeholders, you can use this object to pass the data\r\n'
20130515 '     * into the template that will replace those placeholders.\r\n'
20130515 '     * @param {Ext.data.Store} store The Event data store in use by the view\r\n'
20130515 '     * @method getEventClass\r\n'
20130515 "     * @return {String} A space-delimited CSS class string (or '')\r\n"
20130515 '     */\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        this.setStartDate(this.startDate || new Date());\r\n'
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '        \r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 "            this.addClass('ext-cal-readonly');\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventsrendered\r\n'
20130515 '             * Fires after events are finished rendering in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this \r\n'
20130515 '             */\r\n'
20130515 '            eventsrendered: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventclick\r\n'
20130515 '             * Fires after the user clicks on an event element. This is a cancelable event, so returning false from a \r\n'
20130515 '             * handler will cancel the click without displaying the event editor view. This could be useful for \r\n'
20130515 '             * validating the rules by which events should be editable by the user.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            eventclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventover\r\n'
20130515 '             * Fires anytime the mouse is over an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            eventover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventout\r\n'
20130515 '             * Fires anytime the mouse exits an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\r\n'
20130515 '             */\r\n'
20130515 '            eventout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforedatechange\r\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\r\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\r\n'
20130515 '             * view change and the setting of the start date.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\r\n'
20130515 '             */\r\n'
20130515 '            beforedatechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event datechange\r\n'
20130515 '             * Fires after the start date of the view has changed. If you need to cancel the date change you should handle the \r\n'
20130515 '             * {@link #beforedatechange} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\r\n'
20130515 '             */\r\n'
20130515 '            datechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event rangeselect\r\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event. This is a \r\n'
20130515 '             * cancelable event, so returning false from a handler will cancel the drag operation and clean up any drag shim elements\r\n'
20130515 '             * without displaying the event editor view. This could be useful for validating that a user can only create events within\r\n'
20130515 '             * a certain range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\r\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\r\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\r\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\r\n'
20130515 '             * function call (e.g., callback()).\r\n'
20130515 '             */\r\n'
20130515 '\t\t\trangeselect: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventmove\r\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the move operation. This could be useful for validating that a user can \r\n'
20130515 '             * only move events within a certain date range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\r\n'
20130515 '             * @param {Date} dt The new start date to be set (the end date will be automaticaly adjusted to match the event duration)\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventmove\r\n'
20130515 '             * Fires after an event element has been dragged by the user and dropped in a new position. If you need to cancel the \r\n'
20130515 '             * move operation you should handle the {@link #beforeeventmove} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\r\n'
20130515 '             * updated start and end dates\r\n'
20130515 '             */\r\n'
20130515 '\t\t\teventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event initdrag\r\n'
20130515 '             * Fires when a drag operation is initiated in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             */\r\n'
20130515 '            initdrag: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayover\r\n'
20130515 '             * Fires while the mouse is over a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is being moused over\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayout\r\n'
20130515 '             * Fires when the mouse exits a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is exited\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\r\n'
20130515 '             */\r\n'
20130515 '            dayout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event editdetails\r\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\r\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\r\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\r\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            editdetails: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventadd\r\n'
20130515 '             * Fires after a new event has been added to the underlying store\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\r\n'
20130515 '             */\r\n'
20130515 '            eventadd: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventupdate\r\n'
20130515 '             * Fires after an existing event has been updated\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\r\n'
20130515 '             */\r\n'
20130515 '            eventupdate: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventcancel\r\n'
20130515 '             * Fires after an event add/edit operation has been canceled by the user and no store update took place\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\r\n'
20130515 '             */\r\n'
20130515 '            eventcancel: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventdelete\r\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \r\n'
20130515 '             * will cancel the delete operation.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventdelete: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventdelete\r\n'
20130515 '             * Fires after an event has been deleted by the user. If you need to cancel the delete operation you should handle the \r\n'
20130515 '             * {@link #beforeeventdelete} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            eventdelete: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.afterRender.call(this);\r\n'
20130515 '\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        \r\n'
20130515 '        if(this.store){\r\n'
20130515 '            this.setStore(this.store, true);\r\n'
20130515 '            if(this.store.deferLoad){\r\n'
20130515 '                this.reloadStore(this.store.deferLoad);\r\n'
20130515 '                delete this.store.deferLoad;\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.store.initialParams = this.getStoreParams();\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        if(this.calendarStore){\r\n'
20130515 '            this.setCalendarStore(this.calendarStore, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'mouseover': this.onMouseOver,\r\n"
20130515 "            'mouseout': this.onMouseOut,\r\n"
20130515 "            'click': this.onClick,\r\n"
20130515 "\t\t\t'resize': this.onResize,\r\n"
20130515 '            scope: this\r\n'
20130515 '        });\r\n'
20130515 '        \r\n'
20130515 '        // currently the context menu only contains CRUD actions so do not show it if read-only\r\n'
20130515 '        if(this.enableContextMenus && this.readOnly !== true){\r\n'
20130515 "            this.el.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.el.unselectable();\r\n'
20130515 '        \r\n'
20130515 '        if(this.enableDD && this.readOnly !== true && this.initDD){\r\n'
20130515 '\t\t\tthis.initDD();\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        this.on('eventsrendered', this.forceSize);\r\n"
20130515 '        this.forceSize.defer(100, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing the start and end dates to be passed as params in all calls\r\n'
20130515 '     * to load the event store. The param names are customizable using {@link #dateParamStart}\r\n'
20130515 '     * and {@link #dateParamEnd} and the date format used in requests is defined by {@link #dateParamFormat}.\r\n'
20130515 '     * If you need to add additional parameters to be sent when loading the store see {@link #getStoreParams}.\r\n'
20130515 '     * @return {Object} An object containing the start and end dates\r\n'
20130515 '     */\r\n'
20130515 '    getStoreDateParams : function(){\r\n'
20130515 '        var o = {};\r\n'
20130515 '        o[this.dateParamStart] = this.viewStart.format(this.dateParamFormat);\r\n'
20130515 '        o[this.dateParamEnd] = this.viewEnd.format(this.dateParamFormat);\r\n'
20130515 '        return o;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing all key/value params to be passed when loading the event store.\r\n'
20130515 '     * By default the returned object will simply be the same object returned by {@link #getStoreDateParams},\r\n'
20130515 '     * but this method is intended to be overridden if you need to pass anything in addition to start and end dates.\r\n'
20130515 '     * See the inline code comments when overriding for details.\r\n'
20130515 '     * @return {Object} An object containing all params to be sent when loading the event store\r\n'
20130515 '     */\r\n'
20130515 '    getStoreParams : function(){\r\n'
20130515 '        // This is needed if you require the default start and end dates to be included\r\n'
20130515 '        var params = this.getStoreDateParams();\r\n'
20130515 '        \r\n'
20130515 '        // Here is where you can add additional custom params, e.g.:\r\n'
20130515 '        // params.now = new Date().format(this.dateParamFormat);\r\n'
20130515 "        // params.foo = 'bar';\r\n"
20130515 '        // params.number = 123;\r\n'
20130515 '        \r\n'
20130515 '        return params;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Reloads the view's underlying event store using the params returned from {@link #getStoreParams}.\r\n"
20130515 '     * Reloading the store is typically managed automatically by the view itself, but the method is\r\n'
20130515 '     * available in case a manual reload is ever needed.\r\n'
20130515 "     * @param {Object} options (optional) An object matching the format used by Store's {@link Ext.data.Store#load load} method\r\n"
20130515 '     */\r\n'
20130515 '    reloadStore : function(o){\r\n'
20130515 "        Ext.ensible.log('reloadStore');\r\n"
20130515 '        o = Ext.isObject(o) ? o : {};\r\n'
20130515 '        o.params = o.params || {};\r\n'
20130515 '        \r\n'
20130515 '        Ext.apply(o.params, this.getStoreParams());\r\n'
20130515 '        this.store.load(o);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        if(this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.child('.ext-cal-hd-ct'),\r\n"
20130515 "                bd = this.el.child('.ext-cal-body-ct');\r\n"
20130515 '                \r\n'
20130515 '            if(bd==null || hd==null) return;\r\n'
20130515 '                \r\n'
20130515 '            var headerHeight = hd.getHeight(),\r\n'
20130515 '                sz = this.el.parent().getSize();\r\n'
20130515 '                   \r\n'
20130515 '            bd.setHeight(sz.height-headerHeight);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Refresh the current view, optionally reloading the event store also. While this is normally\r\n'
20130515 '     * managed internally on any navigation and/or CRUD action, there are times when you might want\r\n'
20130515 "     * to refresh the view manually (e.g., if you'd like to reload using different {@link #getStoreParams params}).\r\n"
20130515 '     * @param {Boolean} reloadData True to reload the store data first, false to simply redraw the view using current \r\n'
20130515 '     * data (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    refresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (base), reload = '+reloadData);\r\n"
20130515 '        if(reloadData === true){\r\n'
20130515 '            this.reloadStore();\r\n'
20130515 '        }\r\n'
20130515 '        this.prepareData();\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        this.renderItems();\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getWeekCount : function(){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd);\r\n'
20130515 '        return Math.ceil(days / this.dayCount);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareData : function(){\r\n'
20130515 '        var lastInMonth = this.startDate.getLastDateOfMonth(),\r\n'
20130515 '            w = 0, row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            weeks = this.weekCount < 1 ? 6 : this.weekCount;\r\n'
20130515 '        \r\n'
20130515 '        this.eventGrid = [[]];\r\n'
20130515 '        this.allDayGrid = [[]];\r\n'
20130515 '        this.evtMaxCount = [];\r\n'
20130515 '        \r\n'
20130515 '        var evtsInView = this.store.queryBy(function(rec){\r\n'
20130515 '            return this.isEventVisible(rec.data);\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        for(; w < weeks; w++){\r\n'
20130515 '            this.evtMaxCount[w] = 0;\r\n'
20130515 '            if(this.weekCount == -1 && dt > lastInMonth){\r\n'
20130515 '                //current week is fully in next month so skip\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            this.eventGrid[w] = this.eventGrid[w] || [];\r\n'
20130515 '            this.allDayGrid[w] = this.allDayGrid[w] || [];\r\n'
20130515 '            \r\n'
20130515 '            for(d = 0; d < this.dayCount; d++){\r\n'
20130515 '                if(evtsInView.getCount() > 0){\r\n'
20130515 '                    var evts = evtsInView.filterBy(function(rec){\r\n'
20130515 '                        var startsOnDate = (dt.getTime() == rec.data[Ext.ensible.cal.EventMappings.StartDate.name].clearTime(true).getTime());\r\n'
20130515 '                        var spansFromPrevView = (w == 0 && d == 0 && (dt > rec.data[Ext.ensible.cal.EventMappings.StartDate.name]));\r\n'
20130515 '                        return startsOnDate || spansFromPrevView;\r\n'
20130515 '                    }, this);\r\n'
20130515 '                    \r\n'
20130515 '                    this.sortEventRecordsForDay(evts);\r\n'
20130515 '                    this.prepareEventGrid(evts, w, d);\r\n'
20130515 '                }\r\n'
20130515 '                dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.currentWeekCount = w;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGrid : function(evts, w, d){\r\n'
20130515 '        var row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            max = this.maxEventsPerDay ? this.maxEventsPerDay : 999;\r\n'
20130515 '        \r\n'
20130515 '        evts.each(function(evt){\r\n'
20130515 '            var M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '            \r\n'
20130515 '            if(Ext.ensible.Date.diffDays(evt.data[M.StartDate.name], evt.data[M.EndDate.name]) > 0){\r\n'
20130515 '                var daysInView = Ext.ensible.Date.diffDays(\r\n'
20130515 '                    Ext.ensible.Date.max(this.viewStart, evt.data[M.StartDate.name]),\r\n'
20130515 '                    Ext.ensible.Date.min(this.viewEnd, evt.data[M.EndDate.name])) + 1;\r\n'
20130515 '                    \r\n'
20130515 '                this.prepareEventGridSpans(evt, this.eventGrid, w, d, daysInView);\r\n'
20130515 '                this.prepareEventGridSpans(evt, this.allDayGrid, w, d, daysInView, true);\r\n'
20130515 '            }\r\n'
20130515 '            else{\r\n'
20130515 '                row = this.findEmptyRowIndex(w,d);\r\n'
20130515 '                this.eventGrid[w][d] = this.eventGrid[w][d] || [];\r\n'
20130515 '                this.eventGrid[w][d][row] = evt;\r\n'
20130515 '                \r\n'
20130515 '                if(evt.data[M.IsAllDay.name]){\r\n'
20130515 '                    row = this.findEmptyRowIndex(w,d, true);\r\n'
20130515 '                    this.allDayGrid[w][d] = this.allDayGrid[w][d] || [];\r\n'
20130515 '                    this.allDayGrid[w][d][row] = evt;\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            if(this.evtMaxCount[w] < this.eventGrid[w][d].length){\r\n'
20130515 '                this.evtMaxCount[w] = Math.min(max+1, this.eventGrid[w][d].length);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGridSpans : function(evt, grid, w, d, days, allday){\r\n'
20130515 '        // this event spans multiple days/weeks, so we have to preprocess\r\n'
20130515 '        // the events and store special span events as placeholders so that\r\n'
20130515 '        // the render routine can build the necessary TD spans correctly.\r\n'
20130515 '        var w1 = w, d1 = d, \r\n'
20130515 '            row = this.findEmptyRowIndex(w,d,allday),\r\n'
20130515 '            dt = this.viewStart.clone();\r\n'
20130515 '        \r\n'
20130515 '        var start = {\r\n'
20130515 '            event: evt,\r\n'
20130515 '            isSpan: true,\r\n'
20130515 '            isSpanStart: true,\r\n'
20130515 '            spanLeft: false,\r\n'
20130515 '            spanRight: (d == 6)\r\n'
20130515 '        };\r\n'
20130515 '        grid[w][d] = grid[w][d] || [];\r\n'
20130515 '        grid[w][d][row] = start;\r\n'
20130515 '        \r\n'
20130515 '        while(--days){\r\n'
20130515 '            dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            if(dt > this.viewEnd){\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            if(++d1>6){\r\n'
20130515 '                // reset counters to the next week\r\n'
20130515 '                d1 = 0; w1++;\r\n'
20130515 '                row = this.findEmptyRowIndex(w1,0);\r\n'
20130515 '            }\r\n'
20130515 '            grid[w1] = grid[w1] || [];\r\n'
20130515 '            grid[w1][d1] = grid[w1][d1] || [];\r\n'
20130515 '            \r\n'
20130515 '            grid[w1][d1][row] = {\r\n'
20130515 '                event: evt,\r\n'
20130515 '                isSpan: true,\r\n'
20130515 '                isSpanStart: (d1 == 0),\r\n'
20130515 '                spanLeft: (w1 > w) && (d1 % 7 == 0),\r\n'
20130515 '                spanRight: (d1 == 6) && (days > 1)\r\n'
20130515 '            };\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    findEmptyRowIndex : function(w, d, allday){\r\n'
20130515 '        var grid = allday ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            day = grid[w] ? grid[w][d] || [] : [],\r\n'
20130515 '            i = 0, ln = day.length;\r\n'
20130515 '            \r\n'
20130515 '        for(; i < ln; i++){\r\n'
20130515 '            if(day[i] == null){\r\n'
20130515 '                return i;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return ln;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderTemplate : function(){\r\n'
20130515 '        if(this.tpl){\r\n'
20130515 '            this.tpl.overwrite(this.el, this.getTemplateParams());\r\n'
20130515 '            this.lastRenderStart = this.viewStart.clone();\r\n'
20130515 '            this.lastRenderEnd = this.viewEnd.clone();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateParams : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            viewEnd: this.viewEnd,\r\n'
20130515 '            startDate: this.startDate,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            weekendCls: this.weekendCls,\r\n'
20130515 '            prevMonthCls: this.prevMonthCls,\r\n'
20130515 '            nextMonthCls: this.nextMonthCls,\r\n'
20130515 '            todayCls: this.todayCls\r\n'
20130515 '        };\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Disable store event monitoring within this view. Note that if you do this the view will no longer\r\n'
20130515 '     * refresh itself automatically when CRUD actions occur. To enable store events see {@link #enableStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tdisableStoreEvents : function(){\r\n'
20130515 '\t\tthis.monitorStoreEvents = false;\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable store event monitoring within this view if disabled by {@link #disbleStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tenableStoreEvents : function(refresh){\r\n'
20130515 '\t\tthis.monitorStoreEvents = true;\r\n'
20130515 '\t\tif(refresh === true){\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '\t\t}\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tthis.refresh(false);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 "        this.fireEvent('initdrag', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonEventDrop : function(rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonCalendarEndDrag : function(start, end, onComplete){\r\n'
20130515 "        // set this flag for other event handlers that might conflict while we're waiting\r\n"
20130515 '        this.dragPending = true;\r\n'
20130515 '        \r\n'
20130515 '        var dates = {},\r\n'
20130515 '            onComplete = this.onCalendarEndDragComplete.createDelegate(this, [onComplete]);\r\n'
20130515 '        \r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.StartDate.name] = start;\r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.EndDate.name] = end;\r\n'
20130515 '        \r\n'
20130515 "        if(this.fireEvent('rangeselect', this, dates, onComplete) !== false){\r\n"
20130515 '            this.showEventEditor(dates, null);\r\n'
20130515 "            this.editWin.on('hide', onComplete, this, {single:true});\r\n"
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 '            // client code canceled the selection so clean up immediately\r\n'
20130515 '            this.onCalendarEndDragComplete(onComplete);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onCalendarEndDragComplete : function(onComplete){\r\n'
20130515 '        // callback for the drop zone to clean up\r\n'
20130515 '        onComplete();\r\n'
20130515 '        // clear flag for other events to resume normally\r\n'
20130515 '        this.dragPending = false;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onUpdate : function(ds, rec, operation){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\r\n'
20130515 "            Ext.ensible.log('onUpdate');\r\n"
20130515 '            this.dismissEventEditor();\r\n'
20130515 '            \r\n'
20130515 '            var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '            // if the event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // any event instances were updated on the server\r\n'
20130515 "            this.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '            \r\n'
20130515 '\t\t\tif(this.enableFx && this.enableUpdateFx){\r\n'
20130515 '\t\t\t\tthis.doUpdateFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                    scope: this\r\n'
20130515 '                });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is updated. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was updated. The default \r\n'
20130515 '     * effect is {@link Ext.Element#highlight highlight}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableUpdateFx} is true (it is false by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the updated event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoUpdateFx : function(els, o){\r\n'
20130515 '\t\tthis.highlightEvent(els, null, o);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onAdd : function(ds, recs, index){\r\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs; \r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false || rec.phantom){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(rec._deleting){\r\n'
20130515 '            delete rec._deleting;\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onAdd');\r\n"
20130515 '        \r\n'
20130515 '\t\tvar rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '        \r\n'
20130515 '        this.dismissEventEditor();    \r\n'
20130515 '\t\tthis.tempEventId = rec.id;\r\n'
20130515 '        // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '        // new event instances were generated on the server\r\n'
20130515 "\t\tthis.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '\t\t\r\n'
20130515 '\t\tif(this.enableFx && this.enableAddFx){\r\n'
20130515 '\t\t\tthis.doAddFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                scope: this\r\n'
20130515 '            });\r\n'
20130515 '\t\t};\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is added. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was added. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeIn fadeIn}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableAddFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the added event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoAddFx : function(els, o){\r\n'
20130515 '\t\tels.fadeIn(Ext.apply(o, {duration:2}));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onRemove : function(ds, rec){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onRemove');\r\n"
20130515 '        this.dismissEventEditor();\r\n'
20130515 '        \r\n'
20130515 '        var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name],\r\n'
20130515 '            // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // new event instances were generated on the server\r\n'
20130515 "            isRecurring = rrule !== undefined && rrule !== '';\r\n"
20130515 '        \r\n'
20130515 '\t\tif(this.enableFx && this.enableRemoveFx){\r\n'
20130515 '\t\t\tthis.doRemoveFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '\t            remove: true,\r\n'
20130515 '\t            scope: this,\r\n'
20130515 '\t\t\t\tcallback: this.refresh.createDelegate(this, [isRecurring])\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]).remove();\r\n'
20130515 '            this.refresh(isRecurring);\r\n'
20130515 '\t\t}\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is removed. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was removed. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeOut fadeOut}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableRemoveFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the removed event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object contains the following properties:\r\n'
20130515 '     * <pre><code>\r\n'
20130515 '{\r\n'
20130515 '   remove: true, // required by fadeOut to actually remove the element(s)\r\n'
20130515 '   scope: this,  // required for the callback\r\n'
20130515 '   callback: fn  // required to refresh the view after the fx finish\r\n'
20130515 '} \r\n'
20130515 '     * </code></pre>\r\n'
20130515 '     * While you can modify this options object as needed if you change the effect used, please note that the\r\n'
20130515 '     * callback method (and scope) MUST still be passed in order for the view to refresh correctly after the removal.\r\n'
20130515 '     * Please see the inline code comments before overriding this method. \r\n'
20130515 '     */\r\n'
20130515 '\tdoRemoveFx : function(els, o){\r\n'
20130515 '        // Please make sure you keep this entire code block or removing events might not work correctly!\r\n'
20130515 '        // Removing is a little different because we have to wait for the fx to finish, then we have to actually\r\n'
20130515 '        // refresh the view AFTER the fx are run (this is different than add and update).\r\n'
20130515 '        if(els.getCount() == 0 && Ext.isFunction(o.callback)){\r\n'
20130515 '            // if there are no matching elements in the view make sure the callback still runs.\r\n'
20130515 '            // this can happen when an event accessed from the "more" popup is deleted.\r\n'
20130515 '            o.callback.call(o.scope || this);\r\n'
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 "            // If you'd like to customize the remove fx do so here. Just make sure you\r\n"
20130515 '            // DO NOT override the default callback property on the options object, and that\r\n'
20130515 '            // you still pass that object in whatever fx method you choose.\r\n'
20130515 '            els.fadeOut(o);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * Visually highlights an event using {@link Ext.Fx#highlight} config options.\r\n'
20130515 '\t * @param {Ext.CompositeElement} els The element(s) to highlight\r\n'
20130515 '\t * @param {Object} color (optional) The highlight color. Should be a 6 char hex \r\n'
20130515 "\t * color without the leading # (defaults to yellow: 'ffff9c')\r\n"
20130515 '\t * @param {Object} o (optional) Object literal with any of the {@link Ext.Fx} config \r\n'
20130515 '\t * options. See {@link Ext.Fx#highlight} for usage examples.\r\n'
20130515 '\t */\r\n'
20130515 '\thighlightEvent : function(els, color, o) {\r\n'
20130515 '\t\tif(this.enableFx){\r\n'
20130515 '\t\t\tvar c;\r\n'
20130515 '\t\t\t!(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tels.highlight(color, o) :\r\n'
20130515 '\t\t\t\t// Fun IE/Opera handling:\r\n'
20130515 '\t\t\t\tels.each(function(el){\r\n'
20130515 "\t\t\t\t\tel.highlight(color, Ext.applyIf({attr:'color'}, o));\r\n"
20130515 "\t\t\t\t\tif(c = el.child('.ext-cal-evm')) {\r\n"
20130515 '\t\t\t\t\t\tc.highlight(color, o);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}, this);\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 "\t * Retrieve an Event object's id from its corresponding node in the DOM.\r\n"
20130515 '\t * @param {String/Element/HTMLElement} el An {@link Ext.Element}, DOM node or id\r\n'
20130515 '\t */\r\n'
20130515 '//\tgetEventIdFromEl : function(el){\r\n'
20130515 '//\t\tel = Ext.get(el);\r\n'
20130515 '//\t\tvar id = el.id.split(this.eventElIdDelimiter)[1];\r\n'
20130515 "//        if(id.indexOf('-w_') > -1){\r\n"
20130515 '//            //This id has the index of the week it is rendered in as part of the suffix.\r\n'
20130515 '//            //This allows events that span across weeks to still have reproducibly-unique DOM ids.\r\n'
20130515 "//            id = id.split('-w_')[0];\r\n"
20130515 '//        }\r\n'
20130515 '//        return id;\r\n'
20130515 '//\t},\r\n'
20130515 '    getEventIdFromEl : function(el){\r\n'
20130515 '        el = Ext.get(el);\r\n'
20130515 "        var parts, id = '', cls, classes = el.dom.className.split(' ');\r\n"
20130515 '        \r\n'
20130515 '        Ext.each(classes, function(cls){\r\n'
20130515 '            parts = cls.split(this.eventElIdDelimiter);\r\n'
20130515 '            if(parts.length > 1){\r\n'
20130515 '                id = parts[1];\r\n'
20130515 '                return false;\r\n'
20130515 '            }\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        return id;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t// private\r\n'
20130515 '\tgetEventId : function(eventId){\r\n'
20130515 '\t\tif(eventId === undefined && this.tempEventId){\r\n'
20130515 '            // temp record id assigned during an add, will be overwritten later\r\n'
20130515 '\t\t\teventId = this.tempEventId;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn eventId;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @param {Boolean} forSelect\r\n'
20130515 '\t * @return {String} The selector class\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventSelectorCls : function(eventId, forSelect){\r\n'
20130515 "\t\tvar prefix = forSelect ? '.' : '';\r\n"
20130515 '\t\treturn prefix + this.id + this.eventElIdDelimiter + this.getEventId(eventId);\r\n'
20130515 '\t},\r\n'
20130515 '\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @return {Ext.CompositeElement} The matching CompositeElement of nodes\r\n'
20130515 '\t * that comprise the rendered event.  Any event that spans across a view \r\n'
20130515 '\t * boundary will contain more than one internal Element.\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventEls : function(eventId){\r\n'
20130515 '\t\tvar els = this.el.select(this.getEventSelectorCls(this.getEventId(eventId), true), false);\r\n'
20130515 '\t\treturn new Ext.CompositeElement(els);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\r\n"
20130515 '     * @return {Boolean} True or false\r\n'
20130515 '     */\r\n'
20130515 '    isToday : function(){\r\n'
20130515 '        var today = new Date().clearTime().getTime();\r\n'
20130515 '        return this.viewStart.getTime() <= today && this.viewEnd.getTime() >= today;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    onDataChanged : function(store){\r\n'
20130515 "        Ext.ensible.log('onDataChanged');\r\n"
20130515 '        this.refresh(false);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isEventVisible : function(evt){\r\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            data = evt.data ? evt.data : evt,\r\n'
20130515 '            calId = data[M.CalendarId.name],\r\n'
20130515 '            calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '            \r\n'
20130515 '        if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '            // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '            return false;\r\n'
20130515 '        }\r\n'
20130515 '            \r\n'
20130515 '        var start = this.viewStart.getTime(),\r\n'
20130515 '            end = this.viewEnd.getTime(),\r\n'
20130515 '            evStart = data[M.StartDate.name].getTime(),\r\n'
20130515 '            evEnd = data[M.EndDate.name].getTime();\r\n'
20130515 '            \r\n'
20130515 '        return Ext.ensible.Date.rangesOverlap(start, end, evStart, evEnd);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isOverlapping : function(evt1, evt2){\r\n'
20130515 '        var ev1 = evt1.data ? evt1.data : evt1,\r\n'
20130515 '            ev2 = evt2.data ? evt2.data : evt2,\r\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            start1 = ev1[M.StartDate.name].getTime(),\r\n'
20130515 '            end1 = ev1[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 '            start2 = ev2[M.StartDate.name].getTime(),\r\n'
20130515 '            end2 = ev2[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 "            startDiff = Ext.ensible.Date.diff(ev1[M.StartDate.name], ev2[M.StartDate.name], 'm');\r\n"
20130515 '            \r\n'
20130515 '            if(end1<start1){\r\n'
20130515 '                end1 = start1;\r\n'
20130515 '            }\r\n'
20130515 '            if(end2<start2){\r\n'
20130515 '                end2 = start2;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '//            var ev1startsInEv2 = (start1 >= start2 && start1 <= end2),\r\n'
20130515 '//            ev1EndsInEv2 = (end1 >= start2 && end1 <= end2),\r\n'
20130515 '//            ev1SpansEv2 = (start1 < start2 && end1 > end2),\r\n'
20130515 '            var evtsOverlap = Ext.ensible.Date.rangesOverlap(start1, end1, start2, end2),\r\n'
20130515 '                minimumMinutes = this.minEventDisplayMinutes || 0, // applies in day/week body view only for vertical overlap\r\n'
20130515 '                ev1MinHeightOverlapsEv2 = minimumMinutes > 0 && (startDiff > -minimumMinutes && startDiff < minimumMinutes);\r\n'
20130515 '        \r\n'
20130515 '        //return (ev1startsInEv2 || ev1EndsInEv2 || ev1SpansEv2 || ev1MinHeightOverlapsEv2);\r\n'
20130515 '        return (evtsOverlap || ev1MinHeightOverlapsEv2);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayEl : function(dt){\r\n'
20130515 '        return Ext.get(this.getDayId(dt));\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayId : function(dt){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 "            dt = dt.format('Ymd');\r\n"
20130515 '        }\r\n'
20130515 '        return this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \r\n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\r\n'
20130515 '     * to the user use {@link #getViewBounds}.\r\n'
20130515 '     * @return {Date} The start date\r\n'
20130515 '     */\r\n'
20130515 '    getStartDate : function(){\r\n'
20130515 '        return this.startDate;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \r\n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\r\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\r\n'
20130515 '     */\r\n'
20130515 '    setStartDate : function(start, /*private*/reload){\r\n'
20130515 "        Ext.ensible.log('setStartDate (base) '+start.format('Y-m-d'));\r\n"
20130515 "        if(this.fireEvent('beforedatechange', this, this.startDate, start, this.viewStart, this.viewEnd) !== false){\r\n"
20130515 '            this.startDate = start.clearTime();\r\n'
20130515 '            this.setViewBounds(start);\r\n'
20130515 '            if(this.rendered){\r\n'
20130515 '                this.refresh(reload);\r\n'
20130515 '            }\r\n'
20130515 "            this.fireEvent('datechange', this, this.startDate, this.viewStart, this.viewEnd);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    setViewBounds : function(startDate){\r\n'
20130515 '        var start = startDate || this.startDate,\r\n'
20130515 '            offset = start.getDay() - this.startDay;\r\n'
20130515 '        \r\n'
20130515 '        if(offset < 0){\r\n'
20130515 '            // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '            offset += 7;\r\n'
20130515 '        }\r\n'
20130515 '        switch(this.weekCount){\r\n'
20130515 '            case 0:\r\n'
20130515 '            case 1:\r\n'
20130515 '                this.viewStart = this.dayCount < 7 && !this.startDayIsStatic ? start : start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.dayCount || 7).add(Date.SECOND, -1);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            case -1: // auto by month\r\n'
20130515 '                start = start.getFirstDateOfMonth();\r\n'
20130515 '                offset = start.getDay() - this.startDay;\r\n'
20130515 '                if(offset < 0){\r\n'
20130515 '                    // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '                    offset += 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                \r\n'
20130515 '                // start from current month start, not view start:\r\n'
20130515 '                var end = start.add(Date.MONTH, 1).add(Date.SECOND, -1);\r\n'
20130515 '                // fill out to the end of the week:\r\n'
20130515 '                offset = this.startDay;\r\n'
20130515 '                if(offset > end.getDay()){\r\n'
20130515 '                    // if the offset is larger than the end day index then the last row will be empty so skip it\r\n'
20130515 '                    offset -= 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewEnd = end.add(Date.DAY, 6-end.getDay()+offset);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            default:\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.weekCount * 7).add(Date.SECOND, -1);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start and end boundary dates currently displayed in the view. The method\r\n'
20130515 '     * returns an object literal that contains the following properties:<ul>\r\n'
20130515 '     * <li><b>start</b> Date : <div class="sub-desc">The start date of the view</div></li>\r\n'
20130515 '     * <li><b>end</b> Date : <div class="sub-desc">The end date of the view</div></li></ul>\r\n'
20130515 '     * For example:<pre><code>\r\n'
20130515 'var bounds = view.getViewBounds();\r\n'
20130515 "alert('Start: '+bounds.start);\r\n"
20130515 "alert('End: '+bounds.end);\r\n"
20130515 '</code></pre>\r\n'
20130515 '     * @return {Object} An object literal containing the start and end values\r\n'
20130515 '     */\r\n'
20130515 '    getViewBounds : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            start: this.viewStart,\r\n'
20130515 '            end: this.viewEnd\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t/* private\r\n'
20130515 '\t * Sort events for a single day for display in the calendar.  This sorts allday\r\n'
20130515 '\t * events first, then non-allday events are sorted either based on event start\r\n'
20130515 '\t * priority or span priority based on the value of {@link #spansHavePriority} \r\n'
20130515 '\t * (defaults to event start priority).\r\n'
20130515 '\t * @param {MixedCollection} evts A {@link Ext.util.MixedCollection MixedCollection}  \r\n'
20130515 '\t * of {@link #Ext.ensible.cal.EventRecord EventRecord} objects\r\n'
20130515 '\t */\r\n'
20130515 '\tsortEventRecordsForDay: function(evts){\r\n'
20130515 '        if(evts.length < 2){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "\t\tevts.sort('ASC', function(evtA, evtB){\r\n"
20130515 '\t\t\tvar a = evtA.data, b = evtB.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Always sort all day events before anything else\r\n'
20130515 '\t\t\tif (a[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse if (b[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (this.spansHavePriority) {\r\n'
20130515 '\t\t\t\t// This logic always weights span events higher than non-span events \r\n'
20130515 '\t\t\t\t// (at the possible expense of start time order). This seems to \r\n'
20130515 '\t\t\t\t// be the approach used by Google calendar and can lead to a more\r\n'
20130515 '\t\t\t\t// visually appealing layout in complex cases, but event order is\r\n'
20130515 '\t\t\t\t// not guaranteed to be consistent.\r\n'
20130515 '\t\t\t\tvar diff = Ext.ensible.Date.diffDays;\r\n'
20130515 '\t\t\t\tif (diff(a[M.StartDate.name], a[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\tif (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\t\t// Both events are multi-day\r\n'
20130515 '\t\t\t\t\t\tif (a[M.StartDate.name].getTime() == b[M.StartDate.name].getTime()) {\r\n'
20130515 '\t\t\t\t\t\t\t// If both events start at the same time, sort the one\r\n'
20130515 '\t\t\t\t\t\t\t// that ends later (potentially longer span bar) first\r\n'
20130515 '\t\t\t\t\t\t\treturn b[M.EndDate.name].getTime() - a[M.EndDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse if (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\t// Doing this allows span and non-span events to intermingle but\r\n'
20130515 '\t\t\t\t// remain sorted sequentially by start time. This seems more proper\r\n'
20130515 '\t\t\t\t// but can make for a less visually-compact layout when there are\r\n'
20130515 '\t\t\t\t// many such events mixed together closely on the calendar.\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}.createDelegate(this));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to contain the passed date\r\n'
20130515 '     * @param {Date} dt The date to display\r\n'
20130515 '     */\r\n'
20130515 '    moveTo : function(dt, /*private*/reload){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 '            this.setStartDate(dt, reload);\r\n'
20130515 '            return this.startDate;\r\n'
20130515 '        }\r\n'
20130515 '        return dt;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the next consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveNext : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(this.viewEnd.add(Date.DAY, 1), reload);\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the previous consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    movePrev : function(/*private*/reload){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd)+1;\r\n'
20130515 '        return this.moveDays(-days, reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of months relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of months (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveMonths : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.MONTH, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of weeks relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of weeks (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveWeeks : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value*7), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveDays : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to show today\r\n'
20130515 "     * @return {Date} Today's date\r\n"
20130515 '     */\r\n'
20130515 '    moveToday : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(new Date(), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setStore : function(store, initial){\r\n'
20130515 '        var currStore = this.store;\r\n'
20130515 '        \r\n'
20130515 '        if(!initial && currStore){\r\n'
20130515 '            currStore.un("datachanged", this.onDataChanged, this);\r\n'
20130515 '            currStore.un("clear", this.refresh, this);\r\n'
20130515 '            currStore.un("write", this.onWrite, this);\r\n'
20130515 '            currStore.un("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.onDataChanged, this);\r\n'
20130515 '            store.on("clear", this.refresh, this);\r\n'
20130515 '            store.on("write", this.onWrite, this);\r\n'
20130515 '            store.on("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.store = store;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onException : function(proxy, type, action, o, res, arg){\r\n'
20130515 '        // form edits are explicitly canceled, but we may not know if a drag/drop operation\r\n'
20130515 '        // succeeded until after a server round trip. if the update failed we have to explicitly\r\n'
20130515 "        // reject the changes so that the record doesn't stick around in the store's modified list \r\n"
20130515 '        if(arg.reject){\r\n'
20130515 '            arg.reject();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the calendar store used by the calendar (contains records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}).\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setCalendarStore : function(store, initial){\r\n'
20130515 '        if(!initial && this.calendarStore){\r\n'
20130515 '            this.calendarStore.un("datachanged", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("add", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("remove", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.refresh, this);\r\n'
20130515 '            store.on("add", this.refresh, this);\r\n'
20130515 '            store.on("remove", this.refresh, this);\r\n'
20130515 '            store.on("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.calendarStore = store;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    getEventRecord : function(id){\r\n'
20130515 '        var idx = this.store.find(Ext.ensible.cal.EventMappings.EventId.name, id);\r\n'
20130515 '        return this.store.getAt(idx);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetEventRecordFromEl : function(el){\r\n'
20130515 '\t\treturn this.getEventRecord(this.getEventIdFromEl(el));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventEditor : function(){\r\n'
20130515 '        // only create one instance of the edit window, even if there are multiple CalendarPanels\r\n'
20130515 "        this.editWin = this.editWin || Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '         \r\n'
20130515 '        if(!this.editWin){\r\n'
20130515 '            this.editWin = new Ext.ensible.cal.EventEditWindow({\r\n'
20130515 "                id: 'ext-cal-editwin',\r\n"
20130515 '                calendarStore: this.calendarStore,\r\n'
20130515 '                modal: this.editModal,\r\n'
20130515 '                enableEditDetails: this.enableEditDetails,\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'eventadd': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventAdd(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventupdate': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventUpdate(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventdelete': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventDelete(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'editdetails': {\r\n"
20130515 '                        fn: function(win, rec, animTarget, view){\r\n'
20130515 '                            win.hide(animTarget);\r\n'
20130515 "                            win.currentView.fireEvent('editdetails', win.currentView, rec, animTarget);\r\n"
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventcancel': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            this.dismissEventEditor(animTarget);\r\n'
20130515 '                            win.currentView.onEventCancel();\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    }\r\n'
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        // allows the window to reference the current scope in its callbacks\r\n'
20130515 '        this.editWin.currentView = this;\r\n'
20130515 '        return this.editWin;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\r\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\r\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\r\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\r\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    showEventEditor : function(rec, animateTarget){\r\n'
20130515 '        this.getEventEditor().show(rec, animateTarget, this);\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\r\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \r\n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\r\n"
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    dismissEventEditor : function(dismissMethod, /*private*/ animTarget){\r\n'
20130515 '        if(this.newRecord && this.newRecord.phantom){\r\n'
20130515 '            this.store.remove(this.newRecord);\r\n'
20130515 '        }\r\n'
20130515 '        delete this.newRecord;\r\n'
20130515 '        \r\n'
20130515 "        // grab the manager's ref so that we dismiss it properly even if the active view has changed\r\n"
20130515 "        var editWin = Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '        if(editWin){\r\n'
20130515 "            editWin[dismissMethod ? dismissMethod : 'hide'](animTarget);\r\n"
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    save: function(){\r\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\r\n"
20130515 '        // method will have already internally caused a save to execute on\r\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\r\n'
20130515 "        // otherwise we'll create duplicate transactions.\r\n"
20130515 '        if(!this.store.autoSave){\r\n'
20130515 '            this.store.save();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\r\n'
20130515 '        switch(action){\r\n'
20130515 "            case 'create': \r\n"
20130515 '                this.onAdd(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'update':\r\n"
20130515 '                this.onUpdate(store, rec, Ext.data.Record.COMMIT);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'destroy':\r\n"
20130515 '                this.onRemove(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventAdd: function(form, rec){\r\n'
20130515 '        this.newRecord = rec;\r\n'
20130515 '        if(!rec.store){\r\n'
20130515 '            this.store.add(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 '        }\r\n'
20130515 "        this.fireEvent('eventadd', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventUpdate: function(form, rec){\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventDelete: function(form, rec){\r\n'
20130515 '        if(rec.store){\r\n'
20130515 '            this.store.remove(rec);\r\n'
20130515 '        }\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventCancel: function(form, rec){\r\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private -- called from subclasses\r\n'
20130515 '    onDayClick: function(dt, ad, el){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('dayclick', this, dt, ad, el) !== false){\r\n"
20130515 '            var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '                data = {};\r\n'
20130515 '                \r\n'
20130515 '            data[M.StartDate.name] = dt;\r\n'
20130515 '            data[M.IsAllDay.name] = ad;\r\n'
20130515 '                \r\n'
20130515 '            this.showEventEditor(data, el);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    showEventMenu : function(el, xy){\r\n'
20130515 '        if(!this.eventMenu){\r\n'
20130515 '            this.eventMenu = new Ext.ensible.cal.EventContextMenu({\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'editdetails': this.onEditDetails.createDelegate(this),\r\n"
20130515 "                    'eventdelete': this.onDeleteEvent.createDelegate(this),\r\n"
20130515 "                    'eventmove': this.onMoveEvent.createDelegate(this)\r\n"
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.eventMenu.showForEvent(this.getEventRecordFromEl(el), el, xy);\r\n'
20130515 '        this.menuActive = true;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEditDetails : function(menu, rec, el){\r\n'
20130515 "        this.fireEvent('editdetails', this, rec, el);\r\n"
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMoveEvent : function(menu, rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Move the event to a new start date, preserving the original event duration.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     * @param {Object} dt The new start date\r\n'
20130515 '     */\r\n'
20130515 '    moveEvent : function(rec, dt){\r\n'
20130515 '        if(Ext.ensible.Date.compare(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt) === 0){\r\n'
20130515 '            // no changes\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('beforeeventmove', this, rec, dt) !== false){\r\n"
20130515 '            var diff = dt.getTime() - rec.data[Ext.ensible.cal.EventMappings.StartDate.name].getTime();\r\n'
20130515 '            rec.beginEdit();\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.StartDate.name, dt);\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.EndDate.name, rec.data[Ext.ensible.cal.EventMappings.EndDate.name].add(Date.MILLI, diff));\r\n'
20130515 '            rec.endEdit();\r\n'
20130515 '            this.save();\r\n'
20130515 '            \r\n'
20130515 "            this.fireEvent('eventmove', this, rec);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDeleteEvent: function(menu, rec, el){\r\n'
20130515 '        rec._deleting = true;\r\n'
20130515 '        this.deleteEvent(rec, el);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Delete the specified event.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     */\r\n'
20130515 '    deleteEvent: function(rec, /* private */el){\r\n'
20130515 "        if(this.fireEvent('beforeeventdelete', this, rec, el) !== false){\r\n"
20130515 '            this.store.remove(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 "            this.fireEvent('eventdelete', this, rec, el);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onContextMenu : function(e, t){\r\n'
20130515 '        var el, match = false;\r\n'
20130515 '        \r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            this.dismissEventEditor().showEventMenu(el, e.getXY());\r\n'
20130515 '            match = true;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        if(match || this.suppressBrowserContextMenu === true){\r\n'
20130515 '            e.preventDefault();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /*\r\n'
20130515 '     * Shared click handling.  Each specific view also provides view-specific\r\n'
20130515 '     * click handling that calls this first.  This method returns true if it\r\n'
20130515 '     * can handle the click (and so the subclass should ignore it) else false.\r\n'
20130515 '     */\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dropZone){\r\n'
20130515 '            this.dropZone.clearShims();\r\n'
20130515 '        }\r\n'
20130515 '        if(this.menuActive === true){\r\n'
20130515 '            // ignore the first click if a context menu is active (let it close)\r\n'
20130515 '            this.menuActive = false;\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        var el = e.getTarget(this.eventSelector, 5);\r\n'
20130515 '        if(el){\r\n'
20130515 '            var id = this.getEventIdFromEl(el),\r\n'
20130515 '                rec = this.getEventRecord(id);\r\n'
20130515 '            \r\n'
20130515 "            if(this.fireEvent('eventclick', this, rec, el) !== false){\r\n"
20130515 '                this.showEventEditor(rec, el);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOver : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'over')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'over');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOut : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'out')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'out');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleEventMouseEvent : function(e, t, type){\r\n'
20130515 '        var el;\r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            var rel = Ext.get(e.getRelatedTarget());\r\n'
20130515 '            if(el == rel || el.contains(rel)){\r\n'
20130515 '                return true;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            var evtId = this.getEventIdFromEl(el);\r\n'
20130515 '            \r\n'
20130515 "            if(this.eventOverClass != ''){\r\n"
20130515 '                var els = this.getEventEls(evtId);\r\n'
20130515 "                els[type == 'over' ? 'addClass' : 'removeClass'](this.eventOverClass);\r\n"
20130515 '            }\r\n'
20130515 "            this.fireEvent('event'+type, this, this.getEventRecord(evtId), el);\r\n"
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        return false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDateFromId : function(id, delim){\r\n'
20130515 '        var parts = id.split(delim);\r\n'
20130515 '        return parts[parts.length-1];\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 "        if(t = e.getTarget('td', 3)){\r\n"
20130515 '            if(t.id && t.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var dt = this.getDateFromId(t.id, this.dayElIdDelimiter),\r\n'
20130515 '                    rel = Ext.get(e.getRelatedTarget()),\r\n'
20130515 '                    relTD, relDate;\r\n'
20130515 '                \r\n'
20130515 '                if(rel){\r\n'
20130515 "                    relTD = rel.is('td') ? rel : rel.up('td', 3);\r\n"
20130515 "                    relDate = relTD && relTD.id ? this.getDateFromId(relTD.id, this.dayElIdDelimiter) : '';\r\n"
20130515 '                }\r\n'
20130515 '                if(!rel || dt != relDate){\r\n'
20130515 '                    var el = this.getDayEl(dt);\r\n'
20130515 "                    if(el && this.dayOverClass != ''){\r\n"
20130515 "                        el[type == 'over' ? 'addClass' : 'removeClass'](this.dayOverClass);\r\n"
20130515 '                    }\r\n'
20130515 '                    this.fireEvent(\'day\'+type, this, Date.parseDate(dt, "Ymd"), el);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private, MUST be implemented by subclasses\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 "        throw 'This method must be implemented by a subclass';\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.el){\r\n'
20130515 "            this.el.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '        Ext.destroy(\r\n'
20130515 '            this.editWin, \r\n'
20130515 '            this.eventMenu,\r\n'
20130515 '            this.dragZone,\r\n'
20130515 '            this.dropZone\r\n'
20130515 '        );\r\n'
20130515 '    }\r\n'
20130515 '});/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthView\r\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\r\n'
20130515 ' * <p>Displays a calendar view by month. This class does not usually need ot be used directly as you can\r\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\r\n'
20130515 ' * the month view.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthView = Ext.extend(Ext.ensible.cal.CalendarView, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} moreText\r\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMoreText} instead.</p>\r\n'
20130515 '     * <p>The text to display in a day box when there are more events than can be displayed and a link is provided to\r\n'
20130515 "     * show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @deprecated\r\n'
20130515 '     */\r\n'
20130515 "    moreText: '+{0} more...',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} detailsTitleDateFormat\r\n'
20130515 '     * The date format for the title of the details panel that shows when there are hidden events and the "more" link \r\n'
20130515 "     * is clicked (defaults to 'F j').\r\n"
20130515 '     */\r\n'
20130515 "    detailsTitleDateFormat: 'F j',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTime\r\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTime: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTodayText\r\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTodayText: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showHeader\r\n'
20130515 "     * True to display a header beneath the navigation bar containing the week names above each week's column, false not to \r\n"
20130515 '     * show it and instead display the week names in the first row of days in the calendar (defaults to false).\r\n'
20130515 '     */\r\n'
20130515 '    showHeader: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekLinks\r\n'
20130515 '     * True to display an extra column before the first day in the calendar that links to the {@link Ext.ensible.cal.WeekView view}\r\n'
20130515 '     * for each individual week, false to not show it (defaults to false). If true, the week links can also contain the week \r\n'
20130515 '     * number depending on the value of {@link #showWeekNumbers}.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekLinks: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekNumbers\r\n'
20130515 '     * True to show the week number for each week in the calendar in the week link column, false to show nothing (defaults to false).\r\n'
20130515 '     * Note that if {@link #showWeekLinks} is false this config will have no affect even if true.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekNumbers: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekLinkOverClass\r\n'
20130515 '     * The CSS class name applied when the mouse moves over a week link element (only applies when {@link #showWeekLinks} is true,\r\n'
20130515 "     * defaults to 'ext-week-link-over').\r\n"
20130515 '     */\r\n'
20130515 "    weekLinkOverClass: 'ext-week-link-over',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 "    daySelector: '.ext-cal-day',\r\n"
20130515 "    moreSelector : '.ext-cal-ev-more',\r\n"
20130515 "    weekLinkSelector : '.ext-cal-week-link',\r\n"
20130515 '    weekCount: -1, // defaults to auto by month\r\n'
20130515 '    dayCount: 7,\r\n'
20130515 "\tmoreElIdDelimiter: '-more-',\r\n"
20130515 "    weekLinkIdDelimiter: 'ext-cal-week-',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.initComponent.call(this);\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayclick\r\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \r\n'
20130515 '             * for validating that a user can only create events on certain days.\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\r\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \r\n'
20130515 '             * MonthView always return true for this param.\r\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            dayclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event weekclick\r\n'
20130515 '             * Fires after the user clicks within a week link (when {@link #showWeekLinks is true)\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The start date of the week that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            weekclick: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayout: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tinitDD : function(){\r\n'
20130515 '\t\tvar cfg = {\r\n'
20130515 '\t\t\tview: this,\r\n'
20130515 '\t\t\tcreateText: this.ddCreateEventText,\r\n'
20130515 '\t\t\tmoveText: this.ddMoveEventText,\r\n'
20130515 "            ddGroup : this.ddGroup || this.id+'-MonthViewDD'\r\n"
20130515 '\t\t};\r\n'
20130515 '        \r\n'
20130515 '        this.dragZone = new Ext.ensible.cal.DragZone(this.el, cfg);\r\n'
20130515 '        this.dropZone = new Ext.ensible.cal.DropZone(this.el, cfg);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDestroy : function(){\r\n'
20130515 '        Ext.destroy(this.ddSelector);\r\n'
20130515 '\t\tExt.destroy(this.dragZone);\r\n'
20130515 '\t\tExt.destroy(this.dropZone);\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onDestroy.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '            this.tpl = new Ext.ensible.cal.MonthViewTemplate({\r\n'
20130515 '                id: this.id,\r\n'
20130515 '                showTodayText: this.showTodayText,\r\n'
20130515 '                todayText: this.todayText,\r\n'
20130515 '                showTime: this.showTime,\r\n'
20130515 '                showHeader: this.showHeader,\r\n'
20130515 '                showWeekLinks: this.showWeekLinks,\r\n'
20130515 '                showWeekNumbers: this.showWeekNumbers\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 "        this.addClass('ext-cal-monthview ext-cal-ct');\r\n"
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.afterRender.call(this);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tif(this.monitorResize){\r\n'
20130515 '\t\t\tthis.maxEventsPerDay = this.getMaxEventsPerDay();\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        // Compensate for the week link gutter width if visible\r\n'
20130515 '        if(this.showWeekLinks && this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.select('.ext-cal-hd-days-tbl'),\r\n"
20130515 "                bgTbl = this.el.select('.ext-cal-bg-tbl'),\r\n"
20130515 "                evTbl = this.el.select('.ext-cal-evt-tbl'),\r\n"
20130515 "                wkLinkW = this.el.child('.ext-cal-week-link').getWidth(),\r\n"
20130515 '                w = this.el.getWidth()-wkLinkW;\r\n'
20130515 '            \r\n'
20130515 '            hd.setWidth(w);\r\n'
20130515 '            bgTbl.setWidth(w);\r\n'
20130515 '            evTbl.setWidth(w);\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.forceSize.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    //private\r\n'
20130515 '    initClock : function(){\r\n'
20130515 "        if(Ext.fly(this.id+'-clock') !== null){\r\n"
20130515 '            this.prevClockDay = new Date().getDay();\r\n'
20130515 '            if(this.clockTask){\r\n'
20130515 '                Ext.TaskMgr.stop(this.clockTask);\r\n'
20130515 '            }\r\n'
20130515 '            this.clockTask = Ext.TaskMgr.start({\r\n'
20130515 '                run: function(){ \r\n'
20130515 "                    var el = Ext.fly(this.id+'-clock'),\r\n"
20130515 '                        t = new Date();\r\n'
20130515 '                        \r\n'
20130515 '                    if(t.getDay() == this.prevClockDay){\r\n'
20130515 '                        if(el){\r\n'
20130515 "                            el.update(t.format(Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia'));\r\n"
20130515 '                        }\r\n'
20130515 '                    }\r\n'
20130515 '                    else{\r\n'
20130515 '                        this.prevClockDay = t.getDay();\r\n'
20130515 '                        this.moveTo(t);\r\n'
20130515 '                    }\r\n'
20130515 '                },\r\n'
20130515 '                scope: this,\r\n'
20130515 '                interval: 1000\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * <p>Returns the text to display in a day box when there are more events than can be displayed and a link is \r\n'
20130515 "     * provided to show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @param {Integer} numEvents The number of events currently hidden from view\r\n'
20130515 '     * @return {String} The text to display for the "more" link \r\n'
20130515 '     */\r\n'
20130515 '    getMoreText: function(numEvents){\r\n'
20130515 '        return this.moreText;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\r\n"
20130515 '\t            \'<tpl if="_isReminder">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="_isRecurring">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanLeft">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spl">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanRight">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>'\r\n"
20130515 "\t        ].join('');\r\n"
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventTemplate : function(){\r\n'
20130515 '        if(!this.eventTpl){\r\n'
20130515 '\t        var tpl, body = this.getEventBodyMarkup();\r\n'
20130515 '            \r\n'
20130515 '\t        tpl = !(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tnew Ext.XTemplate(\r\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 '\t\t                body,\r\n'
20130515 "\t\t            '</div>'\r\n"
20130515 '\t\t        ) \r\n'
20130515 '\t\t\t\t: new Ext.XTemplate(\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evo">\',\r\n'
20130515 '\t\t                    \'<div class="ext-cal-evm">\',\r\n'
20130515 '\t\t                        \'<div class="ext-cal-evi">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            \'<tpl if="!_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            body,\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 "\t\t                        '</div>',\r\n"
20130515 "\t\t                    '</div>',\r\n"
20130515 "\t\t            '</tpl>',\r\n"
20130515 "\t\t                '</div>'\r\n"
20130515 '\t        \t);\r\n'
20130515 '            tpl.compile();\r\n'
20130515 '            this.eventTpl = tpl;\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventTpl;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\r\n'
20130515 '            data = {},\r\n'
20130515 "            recurring = evt[M.RRule.name] != '',\r\n"
20130515 "            colorCls = 'x-cal-default',\r\n"
20130515 '\t\t    title = evt[M.Title.name],\r\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ';\r\n"
20130515 '        \r\n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\r\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\r\n'
20130515 '            if(rec){\r\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '');\r\n"
20130515 '        extraClasses.push(colorCls);\r\n'
20130515 '        \r\n'
20130515 '        if(this.getEventClass){\r\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\r\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\r\n'
20130515 '            extraClasses.push(cls);\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "\t\tdata._extraCls = extraClasses.join(' ');\r\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\r\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\r\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\r\n"
20130515 '        \r\n'
20130515 '        return Ext.applyIf(data, evt);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\trefresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (MonthView)');\r\n"
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\tExt.ensible.cal.MonthView.superclass.refresh.call(this, reloadData);\r\n'
20130515 '        \r\n'
20130515 '        if(this.showTime !== false){\r\n'
20130515 '            this.initClock();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 '        Ext.ensible.cal.WeekEventRenderer.render({\r\n'
20130515 '            eventGrid: this.allDayOnly ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            tpl: this.getEventTemplate(),\r\n'
20130515 '            maxEventsPerDay: this.maxEventsPerDay,\r\n'
20130515 '            id: this.id,\r\n'
20130515 '            templateDataFn: this.getTemplateEventData.createDelegate(this),\r\n'
20130515 '            evtMaxCount: this.evtMaxCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            getMoreText: this.getMoreText.createDelegate(this)\r\n'
20130515 '        });\r\n'
20130515 "        this.fireEvent('eventsrendered', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayEl : function(dt){\r\n'
20130515 '\t\treturn Ext.get(this.getDayId(dt));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayId : function(dt){\r\n'
20130515 '\t\tif(Ext.isDate(dt)){\r\n'
20130515 "\t\t\tdt = dt.format('Ymd');\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\treturn this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetWeekIndex : function(dt){\r\n'
20130515 "\t\tvar el = this.getDayEl(dt).up('.ext-cal-wk-ct');\r\n"
20130515 "\t\treturn parseInt(el.id.split('-wk-')[1]);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDaySize : function(contentOnly){\r\n'
20130515 '        var box = this.el.getBox(),\r\n'
20130515 '            padding = this.getViewPadding(),\r\n'
20130515 '            w = (box.width - padding.width) / this.dayCount,\r\n'
20130515 '            h = (box.height - padding.height) / this.getWeekCount();\r\n'
20130515 '            \r\n'
20130515 '\t\tif(contentOnly){\r\n'
20130515 '            // measure last row instead of first in case text wraps in first row\r\n'
20130515 "\t\t\tvar hd = this.el.select('.ext-cal-dtitle').last().parent('tr');\r\n"
20130515 '\t\t\th = hd ? h-hd.getHeight(true) : h;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn {height: h, width: w};\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventHeight : function(){\r\n'
20130515 '        if(!this.eventHeight){\r\n'
20130515 "            var evt = this.el.select('.ext-cal-evt').first();\r\n"
20130515 '            if(evt){\r\n'
20130515 "                this.eventHeight = evt.parent('tr').getHeight();\r\n"
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                return 16; // no events rendered, so try setting this.eventHeight again later\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventHeight;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetMaxEventsPerDay : function(){\r\n'
20130515 '\t\tvar dayHeight = this.getDaySize(true).height,\r\n'
20130515 '\t\t\th = this.getEventHeight(),\r\n'
20130515 '            bottomPad = 5,\r\n'
20130515 '            max = Math.max(Math.floor((dayHeight-h-bottomPad) / h), 0);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\treturn max;\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getViewPadding: function(sides) {\r\n'
20130515 "        var sides = sides || 'tlbr',\r\n"
20130515 "            top = sides.indexOf('t') > -1,\r\n"
20130515 "            left = sides.indexOf('l') > -1,\r\n"
20130515 "            right = sides.indexOf('r') > -1,\r\n"
20130515 "            height = this.showHeader && top ? this.el.select('.ext-cal-hd-days-tbl').first().getHeight() : 0,\r\n"
20130515 '            width = 0;\r\n'
20130515 '        \r\n'
20130515 '        if (this.isHeaderView) {\r\n'
20130515 '            if (left) {\r\n'
20130515 "                width = this.el.select('.ext-cal-gutter').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '            if (right) {\r\n'
20130515 "                width += this.el.select('.ext-cal-gutter-rt').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else if (this.showWeekLinks && left) {\r\n'
20130515 "            width = this.el.select('.ext-cal-week-link').first().getWidth();\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return {\r\n'
20130515 '            height: height,\r\n'
20130515 '            width: width\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayAt : function(x, y){\r\n'
20130515 '\t\tvar box = this.el.getBox(),\r\n'
20130515 "            padding = this.getViewPadding('tl'), // top/left only since we only want the xy offsets\r\n"
20130515 '\t\t\tdaySize = this.getDaySize(),\r\n'
20130515 '\t\t\tdayL = Math.floor(((x - box.x - padding.width) / daySize.width)),\r\n'
20130515 '\t\t\tdayT = Math.floor(((y - box.y - padding.height) / daySize.height)),\r\n'
20130515 '\t\t\tdays = (dayT * 7) + dayL;\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tvar dt = this.viewStart.add(Date.DAY, days);\r\n'
20130515 '\t\treturn {\r\n'
20130515 '\t\t\tdate: dt,\r\n'
20130515 '\t\t\tel: this.getDayEl(dt)\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    moveNext : function(){\r\n'
20130515 '        return this.moveMonths(1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    movePrev : function(){\r\n'
20130515 '        return this.moveMonths(-1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onInitDrag.call(this);\r\n'
20130515 '\t\tExt.select(this.daySelector).removeClass(this.dayOverClass);\r\n'
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonMoreClick : function(dt){\r\n'
20130515 '\t\tif(!this.detailPanel){\r\n'
20130515 '\t        this.detailPanel = new Ext.Panel({\r\n'
20130515 "\t\t\t\tid: this.id+'-details-panel',\r\n"
20130515 '\t\t\t\ttitle: dt.format(this.detailsTitleDateFormat),\r\n'
20130515 "\t\t\t\tlayout: 'fit',\r\n"
20130515 '\t\t\t\tfloating: true,\r\n'
20130515 '\t\t\t\trenderTo: Ext.getBody(),\r\n'
20130515 '\t\t\t\ttools: [{\r\n'
20130515 "\t\t\t\t\tid: 'close',\r\n"
20130515 '\t\t\t\t\thandler: function(e, t, p){\r\n'
20130515 '\t\t\t\t\t\tp.hide();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}],\r\n'
20130515 '\t\t\t\titems: {\r\n'
20130515 "\t\t\t\t\txtype: 'extensible.monthdaydetailview',\r\n"
20130515 "\t\t\t\t\tid: this.id+'-details-view',\r\n"
20130515 '\t\t\t\t\tdate: dt,\r\n'
20130515 '\t\t\t\t\tview: this,\r\n'
20130515 '\t\t\t\t\tstore: this.store,\r\n'
20130515 '                    calendarStore: this.calendarStore,\r\n'
20130515 '\t\t\t\t\tlisteners: {\r\n'
20130515 "\t\t\t\t\t\t'eventsrendered': this.onDetailViewUpdated.createDelegate(this)\r\n"
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 "            this.detailPanel.body.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.detailPanel.setTitle(dt.format(this.detailsTitleDateFormat));\r\n'
20130515 '\t\t}\r\n'
20130515 "\t\tthis.detailPanel.getComponent(this.id+'-details-view').update(dt);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonDetailViewUpdated : function(view, dt, numEvents){\r\n'
20130515 '\t\tvar p = this.detailPanel,\r\n'
20130515 '\t\t\tframeH = p.getFrameHeight(),\r\n'
20130515 '            evtH = this.getEventHeight(),\r\n'
20130515 '\t\t\tbodyH = frameH + (numEvents * evtH) + 3,\r\n'
20130515 '\t\t\tdayEl = this.getDayEl(dt),\r\n'
20130515 '\t\t\tbox = dayEl.getBox();\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tp.setHeight(bodyH);\r\n'
20130515 '\t\tp.setWidth(Math.max(box.width, 220));\r\n'
20130515 '\t\tp.show();\r\n'
20130515 "\t\tp.getPositionEl().alignTo(dayEl, 't-t?');\r\n"
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onHide : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onHide.call(this);\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.moreSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.moreElIdDelimiter)[1];\r\n'
20130515 "            this.onMoreClick(Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.weekLinkSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.weekLinkIdDelimiter)[1];\r\n'
20130515 "            this.fireEvent('weekclick', this, Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(Ext.ensible.cal.MonthView.superclass.onClick.apply(this, arguments)){\r\n'
20130515 '            // The superclass handled the click already so exit\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(el = e.getTarget('td', 3)){\r\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\r\n'
20130515 '                    dt = parts[parts.length-1];\r\n'
20130515 '                    \r\n'
20130515 "                //this.fireEvent('dayclick', this, Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 '                return;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 '        var el = e.getTarget(this.weekLinkSelector, 3, true);\r\n'
20130515 '        if(el){\r\n'
20130515 "            el[type == 'over' ? 'addClass' : 'removeClass'](this.weekLinkOverClass);\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.handleDayMouseEvent.apply(this, arguments);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.detailsPanel){\r\n'
20130515 "            this.detailPanel.body.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthview', Ext.ensible.cal.MonthView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>This is the header area container within the day and week views where all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayBodyView DayBodyView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    // private configs\n'
20130515 '    weekCount: 1,\n'
20130515 '    dayCount: 1,\n'
20130515 '    allDayOnly: true,\n'
20130515 '    monitorResize: false,\n'
20130515 '    isHeaderView: true,\n'
20130515 '    \n'
20130515 "    // The event is declared in MonthView but we're just overriding the docs:\n"
20130515 '    /**\n'
20130515 '     * @event dayclick\n'
20130515 '     * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '     * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '     * for validating that a user can only create events on certain days.\n'
20130515 '     * @param {Ext.ensible.cal.DayHeaderView} this\n'
20130515 '     * @param {Date} dt The date/time that was clicked on\n'
20130515 '     * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '     * DayHeaderView always return true for this param.\n'
20130515 '     * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayHeaderTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 "        this.addClass('ext-cal-day-header');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.afterRender.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayHeaderView)');\n"
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.refresh.call(this, reloadData);\n'
20130515 '        this.recalcHeaderBox();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    recalcHeaderBox : function(){\n'
20130515 "        var tbl = this.el.child('.ext-cal-evt-tbl'),\n"
20130515 '            h = tbl.getHeight();\n'
20130515 '        \n'
20130515 '        this.el.setHeight(h+7);\n'
20130515 '        \n'
20130515 '        // These should be auto-height, but since that does not work reliably\n'
20130515 '        // across browser / doc type, we have to size them manually\n'
20130515 "        this.el.child('.ext-cal-hd-ad-inner').setHeight(h+5);\n"
20130515 "        this.el.child('.ext-cal-bg-tbl').setHeight(h+5);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.moveDays(this.dayCount);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    movePrev : function(){\n'
20130515 '        this.moveDays(-this.dayCount);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 "        if(el = e.getTarget('td', 3)){\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\n'
20130515 '                    dt = parts[parts.length-1];\n'
20130515 '                    \n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt, true)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.onClick.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayheaderview', Ext.ensible.cal.DayHeaderView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyView\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\n'
20130515 ' * <p>This is the scrolling container within the day and week views where non-all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayHeaderView DayHeaderView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyView = Ext.extend(Ext.ensible.cal.CalendarView, {\n'
20130515 '    //private\n'
20130515 "    dayColumnElIdDelimiter: '-day-col-',\n"
20130515 '    hourIncrement: 60,\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        if(this.readOnly === true){\n'
20130515 '            this.enableEventResize = false;\n'
20130515 '        }\n'
20130515 '        this.incrementsPerHour = this.hourIncrement / this.ddIncrement;\n'
20130515 '        this.minEventHeight = this.minEventDisplayMinutes / (this.hourIncrement / this.hourHeight);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The original {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * @param {Object} data An object containing the new start and end dates that will be set into the event record if the\n'
20130515 '             * event is not canceled. Format of the object is: {StartDate: [date], EndDate: [date]}\n'
20130515 '             */\n'
20130515 '            beforeeventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user has drag-dropped the resize handle of an event and the resize operation is complete. If you need \n'
20130515 '             * to cancel the resize operation you should handle the {@link #beforeeventresize} event and return false from your handler function.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            eventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '             * for validating that a user can only create events on certain days.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '             * DayBodyView always return false for this param.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            dayclick: true\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initDD : function(){\n'
20130515 '        var cfg = {\n'
20130515 '            view: this,\n'
20130515 '            createText: this.ddCreateEventText,\n'
20130515 '            moveText: this.ddMoveEventText,\n'
20130515 '            resizeText: this.ddResizeEventText,\n'
20130515 '            ddIncrement: this.ddIncrement,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '\n'
20130515 '        this.el.ddScrollConfig = {\n'
20130515 '            // scrolling is buggy in IE/Opera for some reason.  A larger vthresh\n'
20130515 '            // makes it at least functional if not perfect\n'
20130515 '            vthresh: Ext.isIE || Ext.isOpera ? 100 : 40,\n'
20130515 '            hthresh: -1,\n'
20130515 '            frequency: 50,\n'
20130515 '            increment: 100,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.dragZone = new Ext.ensible.cal.DayViewDragZone(this.el, Ext.apply({\n'
20130515 '            containerScroll: true\n'
20130515 '        }, cfg));\n'
20130515 '        \n'
20130515 '        this.dropZone = new Ext.ensible.cal.DayViewDropZone(this.el, cfg);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayBodyView)');\n"
20130515 '        var top = this.el.getScroll().top;\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.refresh.call(this, reloadData);\n'
20130515 '        \n'
20130515 '        // skip this if the initial render scroll position has not yet been set.\n'
20130515 '        // necessary since IE/Opera must be deferred, so the first refresh will\n'
20130515 '        // override the initial position by default and always set it to 0.\n'
20130515 '        if(this.scrollReady){\n'
20130515 '            this.scrollTo(top);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Scrolls the container to the specified vertical position. If the view is large enough that\n'
20130515 '     * there is no scroll overflow then this method will have no affect.\n'
20130515 '     * @param {Number} y The new vertical scroll position in pixels \n'
20130515 '     * @param {Boolean} defer (optional) <p>True to slightly defer the call, false to execute immediately.</p> \n'
20130515 '     * <p>This method will automatically defer itself for IE and Opera (even if you pass false) otherwise\n'
20130515 '     * the scroll position will not update in those browsers. You can optionally pass true, however, to\n'
20130515 '     * force the defer in all browsers, or use your own custom conditions to determine whether this is needed.</p>\n'
20130515 '     * <p>Note that this method should not generally need to be called directly as scroll position is managed internally.</p>\n'
20130515 '     */\n'
20130515 '    scrollTo : function(y, defer){\n'
20130515 '        defer = defer || (Ext.isIE || Ext.isOpera);\n'
20130515 '        if(defer){\n'
20130515 '            (function(){\n'
20130515 "                this.el.scrollTo('top', y);\n"
20130515 '                this.scrollReady = true;\n'
20130515 '            }).defer(10, this);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.el.scrollTo('top', y);\n"
20130515 '            this.scrollReady = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayBodyTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                dayCount: this.dayCount,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime,\n'
20130515 '                showHourSeparator: this.showHourSeparator,\n'
20130515 '                viewStartHour: this.viewStartHour,\n'
20130515 '                viewEndHour: this.viewEndHour,\n'
20130515 '                hourIncrement: this.hourIncrement,\n'
20130515 '                hourHeight: this.hourHeight\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 '        \n'
20130515 "        this.addClass('ext-cal-body-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        // default scroll position to scrollStartHour (7am by default) or min view hour if later\n'
20130515 '        var startHour = Math.max(this.scrollStartHour, this.viewStartHour),\n'
20130515 '            scrollStart = Math.max(0, startHour - this.viewStartHour);\n'
20130515 '            \n'
20130515 '        if(scrollStart > 0){\n'
20130515 '            this.scrollTo(scrollStart * this.hourHeight);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private -- called from DayViewDropZone\n'
20130515 '    onEventResize : function(rec, data){\n'
20130515 "        if(this.fireEvent('beforeeventresize', this, rec, data) !== false){\n"
20130515 '            var D = Ext.ensible.Date,\n'
20130515 '                start = Ext.ensible.cal.EventMappings.StartDate.name,\n'
20130515 '                end = Ext.ensible.cal.EventMappings.EndDate.name;\n'
20130515 '                \n'
20130515 '            if(D.compare(rec.data[start], data.StartDate) === 0 &&\n'
20130515 '                D.compare(rec.data[end], data.EndDate) === 0){\n'
20130515 '                // no changes\n'
20130515 '                return;\n'
20130515 '            } \n'
20130515 '            rec.set(start, data.StartDate);\n'
20130515 '            rec.set(end, data.EndDate);\n'
20130515 '            this.onEventUpdate(null, rec);\n'
20130515 '            \n'
20130515 "            this.fireEvent('eventresize', this, rec);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    getEventBodyMarkup : function(){\n'
20130515 '        if(!this.eventBodyMarkup){\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\n"
20130515 '                \'<tpl if="_isReminder">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                '</tpl>',\n"
20130515 '                \'<tpl if="_isRecurring">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                '</tpl>'\n"
20130515 '//                \'<tpl if="spanLeft">\',\n'
20130515 '//                    \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "//                '</tpl>',\n"
20130515 '//                \'<tpl if="spanRight">\',\n'
20130515 '//                    \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "//                '</tpl>'\n"
20130515 "            ].join('');\n"
20130515 '        }\n'
20130515 '        return this.eventBodyMarkup;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    getEventTemplate : function(){\n'
20130515 '        if(!this.eventTpl){\n'
20130515 '            this.eventTpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="{_extraCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        \'<div class="ext-evt-bd">\', this.getEventBodyMarkup(), \'</div>\',\n'
20130515 '                        this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                    '</div>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="ext-cal-evt {_extraCls}" style="left: {_left}%; width: {_width}%; top: {_top}px;">\',\n'
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 '                        \'<dl style="height: {_height}px;" class="ext-cal-evdm">\',\n'
20130515 '                            \'<dd class="ext-evt-bd">\',\n'
20130515 '                                this.getEventBodyMarkup(),\n'
20130515 "                            '</dd>',\n"
20130515 '                            this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                        '</dl>',\n"
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 "                    '</div>'\n"
20130515 '                );\n'
20130515 '            this.eventTpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.eventTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with <strong>all-day</strong> events. \n'
20130515 '     * Internally this method by default generates different markup for browsers that support CSS border radius \n'
20130515 "     * and those that don't. This method can be overridden as needed to customize the markup generated.</p>\n"
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\n'
20130515 "     * from the surrounding container markup.  This provdes the flexibility to customize what's in the body without\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \n'
20130515 '     * overridden version also does the same.</p>\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\n'
20130515 '     */\n'
20130515 '    getEventAllDayTemplate : function(){\n'
20130515 '        if(!this.eventAllDayTpl){\n'
20130515 '            var tpl, body = this.getEventBodyMarkup();\n'
20130515 '            \n'
20130515 '            tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        body,\n'
20130515 "                    '</div>'\n"
20130515 '                ) \n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div class="ext-cal-evt" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evo">\',\n'
20130515 '                        \'<div class="ext-cal-evm">\',\n'
20130515 '                            \'<div class="ext-cal-evi">\',\n'
20130515 '                                body,\n'
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</div></div>'\n"
20130515 '                );\n'
20130515 '            tpl.compile();\n'
20130515 '            this.eventAllDayTpl = tpl;\n'
20130515 '        }\n'
20130515 '        return this.eventAllDayTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventData : function(evt){\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\n'
20130515 '            data = {},\n'
20130515 "            colorCls = 'x-cal-default',\n"
20130515 '            title = evt[M.Title.name],\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            recurring = evt[M.RRule.name] != '';\n"
20130515 '        \n'
20130515 '        this.getTemplateEventBox(evt);\n'
20130515 '        \n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\n'
20130515 '            if(rec){\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '') + (Ext.isIE || Ext.isOpera ? '-x' : '');\n"
20130515 '        extraClasses.push(colorCls);\n'
20130515 '        \n'
20130515 '        if(this.getEventClass){\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\n'
20130515 '            extraClasses.push(cls);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        data._extraCls = extraClasses.join(' ');\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\n"
20130515 '        \n'
20130515 '        return Ext.applyIf(data, evt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getEventPositionOffsets: function(){\n'
20130515 '        return {\n'
20130515 '            top: 1,\n'
20130515 '            height: -2\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventBox : function(evt){\n'
20130515 '        var heightFactor = this.hourHeight / this.hourIncrement,\n'
20130515 '            start = evt[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '            end = evt[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '            startOffset = Math.max(start.getHours() - this.viewStartHour, 0),\n'
20130515 '            endOffset = Math.min(end.getHours() - this.viewStartHour, this.viewEndHour - this.viewStartHour),\n'
20130515 '            startMins = startOffset * this.hourIncrement,\n'
20130515 '            endMins = endOffset * this.hourIncrement,\n'
20130515 '            viewEndDt = end.clearTime(true).add(Date.HOUR, this.viewEndHour),\n'
20130515 '            evtOffsets = this.getEventPositionOffsets();\n'
20130515 '            \n'
20130515 '        if(start.getHours() >= this.viewStartHour){\n'
20130515 '            // only add the minutes if the start is visible, otherwise it offsets the event incorrectly\n'
20130515 '            startMins += start.getMinutes();\n'
20130515 '        }\n'
20130515 '        if(end <= viewEndDt){\n'
20130515 '            // only add the minutes if the end is visible, otherwise it offsets the event incorrectly\n'
20130515 '            endMins += end.getMinutes();\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        evt._left = 0;\n'
20130515 '        evt._width = 100;\n'
20130515 '        evt._top = startMins * heightFactor + evtOffsets.top;\n'
20130515 '        evt._height = Math.max(((endMins - startMins) * heightFactor), this.minEventHeight) + evtOffsets.height;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        var day = 0, evts = [];\n'
20130515 '        for(; day < this.dayCount; day++){\n'
20130515 '            var ev = emptyCells = skipped = 0, \n'
20130515 '                d = this.eventGrid[0][day],\n'
20130515 '                ct = d ? d.length : 0, \n'
20130515 '                evt;\n'
20130515 '            \n'
20130515 '            for(; ev < ct; ev++){\n'
20130515 '                evt = d[ev];\n'
20130515 '                if(!evt){\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                var item = evt.data || evt.event.data,\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\n'
20130515 '                    ad = item[M.IsAllDay.name] === true,\n'
20130515 '                    span = Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0,\n'
20130515 '                    renderAsAllDay = ad || span;\n'
20130515 '                         \n'
20130515 '                if(renderAsAllDay){\n'
20130515 '                    // this event is already rendered in the header view\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                Ext.apply(item, {\n'
20130515 "                    cls: 'ext-cal-ev',\n"
20130515 '                    _positioned: true\n'
20130515 '                });\n'
20130515 '                evts.push({\n'
20130515 '                    data: this.getTemplateEventData(item),\n'
20130515 '                    date: this.viewStart.add(Date.DAY, day)\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // overlapping event pre-processing loop\n'
20130515 '        var i = j = 0, overlapCols = [], l = evts.length, prevDt;\n'
20130515 '        for(; i<l; i++){\n'
20130515 '            var evt = evts[i].data, \n'
20130515 '                evt2 = null, \n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '            \n'
20130515 '            for(j=0; j<l; j++){\n'
20130515 '                if(i==j)continue;\n'
20130515 '                evt2 = evts[j].data;\n'
20130515 '                if(this.isOverlapping(evt, evt2)){\n'
20130515 '                    evt._overlap = evt._overlap == undefined ? 1 : evt._overlap+1;\n'
20130515 '                    if(i<j){\n'
20130515 '                        if(evt._overcol===undefined){\n'
20130515 '                            evt._overcol = 0;\n'
20130515 '                        }\n'
20130515 '                        evt2._overcol = evt._overcol+1;\n'
20130515 '                        overlapCols[dt] = overlapCols[dt] ? Math.max(overlapCols[dt], evt2._overcol) : evt2._overcol;\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // rendering loop\n'
20130515 '        for(i=0; i<l; i++){\n'
20130515 '            var evt = evts[i].data,\n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '                \n'
20130515 '            if(evt._overlap !== undefined){\n'
20130515 '                var colWidth = 100 / (overlapCols[dt]+1),\n'
20130515 '                    evtWidth = 100 - (colWidth * evt._overlap);\n'
20130515 '                    \n'
20130515 '                evt._width = colWidth;\n'
20130515 '                evt._left = colWidth * evt._overcol;\n'
20130515 '            }\n'
20130515 '            var markup = this.getEventTemplate().apply(evt),\n'
20130515 "                target = this.id+'-day-col-'+evts[i].date.format('Ymd');\n"
20130515 '                \n'
20130515 '            Ext.DomHelper.append(target, markup);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('eventsrendered', this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayEl : function(dt){\n'
20130515 '        return Ext.get(this.getDayId(dt));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayId : function(dt){\n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format('Ymd');\n"
20130515 '        }\n'
20130515 '        return this.id + this.dayColumnElIdDelimiter + dt;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDaySize : function(){\n'
20130515 "        var box = this.el.child('.ext-cal-day-col-inner').getBox();\n"
20130515 '        return {height: box.height, width: box.width};\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayAt : function(x, y){\n'
20130515 "        var sel = '.ext-cal-body-ct',\n"
20130515 "            xoffset = this.el.child('.ext-cal-day-times').getWidth(),\n"
20130515 '            viewBox = this.el.getBox(),\n'
20130515 '            daySize = this.getDaySize(false),\n'
20130515 '            relX = x - viewBox.x - xoffset,\n'
20130515 '            dayIndex = Math.floor(relX / daySize.width), // clicked col index\n'
20130515 '            scroll = this.el.getScroll(),\n'
20130515 "            row = this.el.child('.ext-cal-bg-row'), // first avail row, just to calc size\n"
20130515 '            rowH = row.getHeight() / this.incrementsPerHour,\n'
20130515 '            relY = y - viewBox.y - rowH + scroll.top,\n'
20130515 '            rowIndex = Math.max(0, Math.ceil(relY / rowH)),\n'
20130515 '            mins = rowIndex * (this.hourIncrement / this.incrementsPerHour),\n'
20130515 '            dt = this.viewStart.add(Date.DAY, dayIndex).add(Date.MINUTE, mins).add(Date.HOUR, this.viewStartHour),\n'
20130515 '            el = this.getDayEl(dt),\n'
20130515 '            timeX = x;\n'
20130515 '        \n'
20130515 '        if(el){\n'
20130515 '            timeX = el.getLeft();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return {\n'
20130515 '            date: dt,\n'
20130515 '            el: el,\n'
20130515 '            // this is the box for the specific time block in the day that was clicked on:\n'
20130515 '            timeBox: {\n'
20130515 '                x: timeX,\n'
20130515 '                y: (rowIndex * this.hourHeight / this.incrementsPerHour) + viewBox.y - scroll.top,\n'
20130515 '                width: daySize.width,\n'
20130515 '                height: rowH\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        if(this.dragPending || Ext.ensible.cal.DayBodyView.superclass.onClick.apply(this, arguments)){\n'
20130515 '            // The superclass handled the click already so exit\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        if(e.getTarget('.ext-cal-day-times', 3) !== null){\n"
20130515 '            // ignore clicks on the times-of-day gutter\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        var el = e.getTarget('td', 3);\n"
20130515 '        if(el){\n'
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var dt = this.getDateFromId(el.id, this.dayElIdDelimiter);\n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        var day = this.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(day && day.date){\n'
20130515 '            this.onDayClick(day.date, false, null);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daybodyview', Ext.ensible.cal.DayBodyView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayView\n'
20130515 ' * @extends Ext.Container\n'
20130515 ' * <p>Unlike other calendar views, is not actually a subclass of {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 ' * Instead it is a {@link Ext.Container Container} subclass that internally creates and manages the layouts of\n'
20130515 ' * a {@link Ext.ensible.cal.DayHeaderView DayHeaderView} and a {@link Ext.ensible.cal.DayBodyView DayBodyView}. As such\n'
20130515 ' * DayView accepts any config values that are valid for DayHeaderView and DayBodyView and passes those through\n'
20130515 ' * to the contained views. It also supports the interface required of any calendar view and in turn calls methods\n'
20130515 ' * on the contained views as necessary.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayView = Ext.extend(Ext.Container, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\n"
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddCreateEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddCreateEventText: Ext.ensible.cal.CalendarView.prototype.ddCreateEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddMoveEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddMoveEventText: Ext.ensible.cal.CalendarView.prototype.ddMoveEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 1). Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 1,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEventResize\n'
20130515 "     * True to allow events in the view's scrolling body area to be updated by a resize handle at the \n"
20130515 '     * bottom of the event, false to disallow it (defaults to true). If {@link #readOnly} is true event \n'
20130515 '     * resizing will be disabled automatically.\n'
20130515 '     */\n'
20130515 '    enableEventResize: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} ddIncrement\n'
20130515 '     * <p>The number of minutes between each step during various drag/drop operations in the view (defaults to 30).\n'
20130515 '     * This controls the number of times the dragged object will "snap" to the view during a drag operation, and does\n'
20130515 '     * not have to match with the time boundaries displayed in the view. E.g., the view could be displayed in 30 minute\n'
20130515 '     * increments (the default) but you could configure ddIncrement to 10, which would snap a dragged object to the\n'
20130515 '     * view at 10 minute increments.</p>\n'
20130515 '     * <p>This config currently applies while dragging to move an event, resizing an event by its handle or dragging \n'
20130515 '     * on the view to create a new event.</p>\n'
20130515 '     */\n'
20130515 '    ddIncrement: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} minEventDisplayMinutes\n'
20130515 '     * This is the minimum <b>display</b> height, in minutes, for events shown in the view (defaults to 30). This setting\n'
20130515 '     * ensures that events with short duration are still readable (e.g., by default any event where the start and end\n'
20130515 '     * times were the same would have 0 height). It also applies when calculating whether multiple events should be\n'
20130515 '     * displayed as overlapping. In datetime terms, an event that starts and ends at 9:00 and another event that starts\n'
20130515 '     * and ends at 9:05 do not overlap, but visually the second event would obscure the first in the view. This setting\n'
20130515 '     * provides a way to ensure that such events will still be calculated as overlapping and displayed correctly.\n'
20130515 '     */\n'
20130515 '    minEventDisplayMinutes: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showHourSeparator\n'
20130515 '     * True to display a dotted line that separates each hour block in the scrolling body area at the half-hour mark \n'
20130515 '     * (the default), false to hide it.\n'
20130515 '     */\n'
20130515 '    showHourSeparator: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewStartHour\n'
20130515 "     * The hour of the day at which to begin the scrolling body area's times (defaults to 0, which equals early 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be less than the value of {@link viewEndHour}.\n'
20130515 '     */\n'
20130515 '    viewStartHour: 0,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewEndHour\n'
20130515 "     * The hour of the day at which to end the scrolling body area's times (defaults to 24, which equals late 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be greater than the value of {@link viewStartHour}. \n'
20130515 '     */\n'
20130515 '    viewEndHour: 24,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} scrollStartHour\n'
20130515 '     * The default hour of the day at which to set the body scroll position on view load (defaults to 7, which equals 7am / 07:00).\n'
20130515 '     * Note that if the body is not sufficiently overflowed to allow this positioning this setting will have no effect.\n'
20130515 '     * This setting should be equal to or greater than {@link viewStartHour}.\n'
20130515 '     */\n'
20130515 '    scrollStartHour: 7,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} hourHeight\n'
20130515 '     * <p>The height, in pixels, of each hour block displayed in the scrolling body area of the view (defaults to 42).</p> \n'
20130515 '     * <br><p><b>Important note:</b> While this config can be set to any reasonable integer value, note that it is also used to \n'
20130515 '     * calculate the ratio used when assigning event heights. By default, an hour is 60 minutes and 42 pixels high, so the\n'
20130515 '     * pixel-to-minute ratio is 42 / 60, or 0.7. This same ratio is then used when rendering events. When rendering a \n'
20130515 '     * 30 minute event, the rendered height would be 30 minutes * 0.7 = 21 pixels (as expected).</p>\n'
20130515 '     * <p>This is important to understand when changing this value because some browsers may handle pixel rounding in\n'
20130515 '     * different ways which could lead to inconsistent visual results in some cases. If you have any problems with pixel\n'
20130515 '     * precision in how events are laid out, you might try to stick with hourHeight values that will generate discreet ratios.\n'
20130515 '     * This is easily done by simply multiplying 60 minutes by different discreet ratios (.6, .8, 1.1, etc.) to get the \n'
20130515 '     * corresponding hourHeight pixel values (36, 48, 66, etc.) that will map back to those ratios. By contrast, if you \n'
20130515 '     * chose an hourHeight of 50 for example, the resulting height ratio would be 50 / 60 = .833333... This will work just\n'
20130515 '     * fine, just be aware that browsers may sometimes round the resulting height values inconsistently.\n'
20130515 '     */\n'
20130515 '    hourHeight: 42,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        // day count is only supported between 1 and 7 days\n'
20130515 '        this.dayCount = this.dayCount > 7 ? 7 : (this.dayCount < 1 ? 1 : this.dayCount);\n'
20130515 '        \n'
20130515 '        var cfg = Ext.apply({}, this.initialConfig);\n'
20130515 '        cfg.showTime = this.showTime;\n'
20130515 '        cfg.showTodayText = this.showTodayText;\n'
20130515 '        cfg.todayText = this.todayText;\n'
20130515 '        cfg.dayCount = this.dayCount;\n'
20130515 '        cfg.weekCount = 1;\n'
20130515 '        cfg.readOnly = this.readOnly;\n'
20130515 '        cfg.ddIncrement = this.ddIncrement;\n'
20130515 '        cfg.minEventDisplayMinutes = this.minEventDisplayMinutes;\n'
20130515 '        \n'
20130515 '        var header = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.dayheaderview',\n"
20130515 "            id: this.id+'-hd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        var body = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.daybodyview',\n"
20130515 '            enableEventResize: this.enableEventResize,\n'
20130515 '            showHourSeparator: this.showHourSeparator,\n'
20130515 '            viewStartHour: this.viewStartHour,\n'
20130515 '            viewEndHour: this.viewEndHour,\n'
20130515 '            scrollStartHour: this.scrollStartHour,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            id: this.id+'-bd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        this.items = [header, body];\n'
20130515 "        this.addClass('ext-cal-dayview ext-cal-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayView.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        Ext.ensible.cal.DayView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.header = Ext.getCmp(this.id+'-hd');\n"
20130515 "        this.body = Ext.getCmp(this.id+'-bd');\n"
20130515 "        this.body.on('eventsrendered', this.forceSize, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(){\n'
20130515 "        Ext.ensible.log('refresh (DayView)');\n"
20130515 '        this.header.refresh();\n'
20130515 '        this.body.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: function(){\n'
20130515 "        // The defer call is mainly for good ol' IE, but it doesn't hurt in\n"
20130515 '        // general to make sure that the window resize is good and done first\n'
20130515 '        // so that we can properly calculate sizes.\n'
20130515 '        (function(){\n'
20130515 "            var ct = this.el.up('.x-panel-body'),\n"
20130515 "                hd = this.el.child('.ext-cal-day-header'),\n"
20130515 '                h = ct.getHeight() - hd.getHeight();\n'
20130515 '            \n'
20130515 "            this.el.child('.ext-cal-body-ct').setHeight(h-1);\n"
20130515 '        }).defer(10, this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onResize : function(){\n'
20130515 '        this.forceSize();\n'
20130515 '        this.refresh.defer(1, this); //IE needs the defer\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /*\n'
20130515 '     * We have to "relay" this Component method so that the hidden\n'
20130515 "     * state will be properly reflected when the views' active state changes\n"
20130515 '     */\n'
20130515 '    doHide: function(){\n'
20130515 '        this.header.doHide.apply(this, arguments);\n'
20130515 '        this.body.doHide.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getViewBounds : function(){\n'
20130515 '        return this.header.getViewBounds();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\n'
20130515 '     * to the user use {@link #getViewBounds}.\n'
20130515 '     * @return {Date} The start date\n'
20130515 '     */\n'
20130515 '    getStartDate : function(){\n'
20130515 '        return this.header.getStartDate();\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 '        this.header.setStartDate(dt, true);\n'
20130515 '        this.body.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        this.header.renderItems();\n'
20130515 '        this.body.renderItems();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\n"
20130515 '     * @return {Boolean} True or false\n'
20130515 '     */\n'
20130515 '    isToday : function(){\n'
20130515 '        return this.header.isToday();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to contain the passed date\n'
20130515 '     * @param {Date} dt The date to display\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveTo : function(dt){\n'
20130515 '        this.header.moveTo(dt);\n'
20130515 '        return this.body.moveTo(dt, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the next consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.header.moveNext();\n'
20130515 '        return this.body.moveNext(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the previous consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    movePrev : function(noRefresh){\n'
20130515 '        this.header.movePrev();\n'
20130515 '        return this.body.movePrev(true);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveDays : function(value){\n'
20130515 '        this.header.moveDays(value);\n'
20130515 '        return this.body.moveDays(value, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to show today\n'
20130515 "     * @return {Date} Today's date\n"
20130515 '     */\n'
20130515 '    moveToday : function(){\n'
20130515 '        this.header.moveToday();\n'
20130515 '        return this.body.moveToday(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\n'
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    showEventEditor : function(rec, animateTarget){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.showEventEditor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\n"
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    dismissEventEditor : function(dismissMethod){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.dismissEventEditor.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayview', Ext.ensible.cal.DayView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.MultiDayView\n'
20130515 ' * @extends Ext.ensible.cal.DayView\n'
20130515 ' * <p>Displays a calendar view by day, more than one day at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiDayView = Ext.extend(Ext.ensible.cal.DayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 3).  Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 3,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} startDayIsStatic\n'
20130515 '     * <p>By default, any configuration of a multi-day view that contains fewer than 7 days will have a rolling\n'
20130515 '     * start day. If you view the next or previous views, the dates will be adjusted as needed so that each\n'
20130515 '     * view is contiguous (e.g., if the last day in the current view is Wednesday and you go to the next view\n'
20130515 '     * it will always begin with Thursday, regardless of the value of {@link #startDay}.</p>\n'
20130515 '     * <p>If you set <tt>startDayIsStatic</tt> to <tt>true</tt>, then the view will <em>always</em> begin on\n'
20130515 '     * {@link #startDay}. For any {@link #dayCount} less than 7, days outside the startDay + dayCount range\n'
20130515 '     * will not be viewable. If a date that is not in the viewable range is set into the view it will \n'
20130515 '     * automatically advance to the first viewable date for the current range.  This could be useful for \n'
20130515 '     * creating custom views like a weekday-only or weekend-only view.</p>\n'
20130515 '     * <p>Some example {@link Ext.ensible.cal.CalendarPanel CalendarPanel} configs:</p>\n'
20130515 '     * <pre><code>\n'
20130515 '    // Weekdays only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 5,\n'
20130515 '        startDay: 1,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    // Weekends only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 2,\n'
20130515 '        startDay: 6,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '     * </code></pre>\n'
20130515 '     */\n'
20130515 '    startDayIsStatic: false,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? 7 : this.dayCount, reload);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? -7 : -this.dayCount, reload);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multidayview', Ext.ensible.cal.MultiDayView);/**\n"
20130515 ' * @class Ext.ensible.cal.WeekView\n'
20130515 ' * @extends Ext.ensible.cal.MultiDayView\n'
20130515 ' * <p>Displays a calendar view by week. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\n'
20130515 ' * the week view.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekView = Ext.extend(Ext.ensible.cal.MultiDayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 7)\n'
20130515 '     */\n'
20130515 '    dayCount: 7\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.weekview', Ext.ensible.cal.WeekView);/**\n"
20130515 ' * @class Ext.ensible.cal.MultiWeekView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>Displays a calendar view by week, more than one week at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiWeekView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} weekCount\n'
20130515 '     * The number of weeks to display in the view (defaults to 2)\n'
20130515 '     */\n'
20130515 '    weekCount: 2,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(){\n'
20130515 '        return this.moveWeeks(this.weekCount, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(){\n'
20130515 '        return this.moveWeeks(-this.weekCount, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multiweekview', Ext.ensible.cal.MultiWeekView);/*\r\n"
20130515 ' * This is the view used internally by the panel that displays overflow events in the\r\n'
20130515 ' * month view. Anytime a day cell cannot display all of its events, it automatically displays\r\n'
20130515 ' * a link at the bottom to view all events for that day. When clicked, a panel pops up that\r\n'
20130515 ' * uses this view to display the events for that day.\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthDayDetailView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            eventsrendered: true\r\n'
20130515 '\t\t});\r\n'
20130515 '\t\t\r\n'
20130515 '        if(!this.el){\r\n'
20130515 "            this.el = document.createElement('div');\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        this.tpl = this.getTemplate();\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.MonthDayDetailView.superclass.afterRender.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'click': this.view.onClick,\r\n"
20130515 "\t\t\t'mouseover': this.view.onMouseOver,\r\n"
20130515 "\t\t\t'mouseout': this.view.onMouseOut,\r\n"
20130515 '            scope: this.view\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    getTemplate : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '\t        this.tpl = new Ext.XTemplate(\r\n'
20130515 '                \'<div class="ext-cal-mdv x-unselectable">\',\r\n'
20130515 '\t                \'<table class="ext-cal-mvd-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t\t\t\t\t'<tbody>',\r\n"
20130515 '\t\t\t\t\t\t\t\'<tpl for=".">\',\r\n'
20130515 '\t\t                        \'<tr><td class="ext-cal-ev">{markup}</td></tr>\',\r\n'
20130515 "\t\t\t\t\t\t\t'</tpl>',\r\n"
20130515 "\t                    '</tbody>',\r\n"
20130515 "\t                '</table>',\r\n"
20130515 "                '</div>'\r\n"
20130515 '\t        );\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 '        return this.tpl;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tupdate : function(dt){\r\n'
20130515 '\t\tthis.date = dt;\r\n'
20130515 '\t\tthis.refresh();\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    refresh : function(){\r\n'
20130515 '\t\tif(!this.rendered){\r\n'
20130515 '\t\t\treturn;\r\n'
20130515 '\t\t}\r\n'
20130515 '        var eventTpl = this.view.getEventTemplate(),\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\ttemplateData = [];\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tevts = this.store.queryBy(function(rec){\r\n'
20130515 '\t\t\t\tvar thisDt = this.date.clearTime(true).getTime(),\r\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '\t\t\t\t\trecStart = rec.data[M.StartDate.name].clearTime(true).getTime(),\r\n'
20130515 '\t            \tstartsOnDate = (thisDt == recStart),\r\n'
20130515 '\t\t\t\t\tspansDate = false,\r\n'
20130515 '                    calId = rec.data[M.CalendarId.name],\r\n'
20130515 '                    calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '                    \r\n'
20130515 '                if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '                    // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '                    return false;\r\n'
20130515 '                }\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tif(!startsOnDate){\r\n'
20130515 '\t\t\t\t\tvar recEnd = rec.data[Ext.ensible.cal.EventMappings.EndDate.name].clearTime(true).getTime();\r\n'
20130515 '\t            \tspansDate = recStart < thisDt && recEnd >= thisDt;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t            return startsOnDate || spansDate;\r\n'
20130515 '\t        }, this);\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.CalendarView.prototype.sortEventRecordsForDay.call(this, evts);\r\n'
20130515 '        \r\n'
20130515 '\t\tevts.each(function(evt){\r\n'
20130515 '            var item = evt.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '                \r\n'
20130515 '\t\t\titem._renderAsAllDay = item[M.IsAllDay.name] || Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0;\r\n'
20130515 '            item.spanLeft = Ext.ensible.Date.diffDays(item[M.StartDate.name], this.date) > 0;\r\n'
20130515 '            item.spanRight = Ext.ensible.Date.diffDays(this.date, item[M.EndDate.name]) > 0;\r\n'
20130515 "            item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \r\n"
20130515 "                'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\r\n"
20130515 '\r\n'
20130515 '\t\t\ttemplateData.push({markup: eventTpl.apply(this.getTemplateEventData(item))});\r\n'
20130515 '\t\t}, this);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.tpl.overwrite(this.el, templateData);\r\n'
20130515 "\t\tthis.fireEvent('eventsrendered', this, this.date, evts.getCount());\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tgetTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar data = this.view.getTemplateEventData(evt);\r\n'
20130515 "\t\tdata._elId = 'dtl-'+data._elId;\r\n"
20130515 '\t\treturn data;\r\n'
20130515 '\t}\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthdaydetailview', Ext.ensible.cal.MonthDayDetailView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarPanel\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is the default container for calendar views. It supports day, week, multi-week and month views as well\n'
20130515 ' * as a built-in event edit form. The only requirement for displaying a calendar is passing in a valid\n'
20130515 ' * {@link #Ext.data.Store store} config containing records of type {@link Ext.ensible.cal.EventRecord EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarPanel = Ext.extend(Ext.Panel, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} activeItem\n'
20130515 '     * The 0-based index within the available views to set as the default active view (defaults to undefined). If not \n'
20130515 '     * specified the default view will be set as the last one added to the panel. You can retrieve a reference to the\n'
20130515 '     * active {@link Ext.ensible.cal.CalendarView view} at any time using the {@link #activeView} property.\n'
20130515 '     */\n'
20130515 '    /*\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false, // not currently implemented\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showDayView\n'
20130515 '     * True to include the day view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showDayView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiDayView\n'
20130515 '     * True to include the multi-day view (and toolbar button), false to hide them (defaults to false).\n'
20130515 '     */\n'
20130515 '    showMultiDayView: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showWeekView\n'
20130515 '     * True to include the week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiWeekView\n'
20130515 '     * True to include the multi-week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showMultiWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMonthView\n'
20130515 '     * True to include the month view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     * If all other views are hidden, the month view will show by default even if this config is false.\n'
20130515 '     */\n'
20130515 '    showMonthView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavBar\n'
20130515 '     * True to display the calendar navigation toolbar, false to hide it (defaults to true). Note that\n'
20130515 "     * if you hide the default navigation toolbar you'll have to provide an alternate means of navigating the calendar.\n"
20130515 '     */\n'
20130515 '    showNavBar: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * Text to use for the 'Today' nav bar button.\n"
20130515 '     */\n'
20130515 "    todayText: 'Today',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to show the value of {@link #todayText} instead of today's date in the calendar's current day box,\n"
20130515 '     * false to display the day number(defaults to true).\n'
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time next to the date in the calendar's current day box, false to not show it \n"
20130515 '     * (defaults to true).\n'
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or calendar views from providing CRUD capabilities, false to enable CRUD \n'
20130515 '     * (the default). This option is passed into all views managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    readOnly: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavToday\n'
20130515 '     * True to display the "Today" button in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavToday: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavJump\n'
20130515 '     * True to display the "Jump to:" label in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavJump: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavNextPrev\n'
20130515 "     * True to display the left/right arrow buttons in the calendar panel's navigation header, false to not\n"
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavNextPrev: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} jumpToText\n'
20130515 "     * Text to use for the 'Jump to:' navigation label.\n"
20130515 '     */\n'
20130515 "    jumpToText: 'Jump to:',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} goText\n'
20130515 "     * Text to use for the 'Go' navigation button.\n"
20130515 '     */\n'
20130515 "    goText: 'Go',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} dayText\n'
20130515 "     * Text to use for the 'Day' nav bar button.\n"
20130515 '     */\n'
20130515 "    dayText: 'Day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiDayText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiDayText: '{0} Days',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} weekText\n'
20130515 "     * Text to use for the 'Week' nav bar button.\n"
20130515 '     */\n'
20130515 "    weekText: 'Week',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiWeekText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiWeekText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiWeekText: '{0} Weeks',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} monthText\n'
20130515 "     * Text to use for the 'Month' nav bar button.\n"
20130515 '     */\n'
20130515 "    monthText: 'Month',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} editModal\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\n'
20130515 '     * config will no longer apply. \n'
20130515 '     */\n'
20130515 '    editModal: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEditDetails\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\n'
20130515 '     * link and disable detailed event editing. \n'
20130515 '     */\n'
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\n'
20130515 '     * config), and either can be used interchangeably.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\n'
20130515 '     * the default calendar (and color).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} viewConfig\n'
20130515 '     * A config object that will be applied to all {@link Ext.ensible.cal.CalendarView views} managed by this CalendarPanel. Any\n'
20130515 '     * options on this object that do not apply to any particular view will simply be ignored.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} dayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.DayView DayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiDayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiDayView MultiDayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} weekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.WeekView WeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiWeekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiWeekView MultiWeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} monthViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MonthView MonthView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} editViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.EventEditForm EventEditForm} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * A reference to the {@link Ext.ensible.cal.CalendarView view} that is currently active.\n'
20130515 '     * @type {Ext.ensible.cal.CalendarView}\n'
20130515 '     * @property activeView\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    layoutConfig: {\n'
20130515 '        layoutOnCardChange: true,\n'
20130515 '        deferredRender: true\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private property\n'
20130515 '    startDate: new Date(),\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.tbar = {\n'
20130515 "            cls: 'ext-cal-toolbar',\n"
20130515 '            border: true,\n'
20130515 '            items: []\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.viewCount = 0;\n'
20130515 '        \n'
20130515 '        var multiDayViewCount = (this.multiDayViewCfg && this.multiDayViewCfg.dayCount) || 3,\n'
20130515 '            multiWeekViewCount = (this.multiWeekViewCfg && this.multiWeekViewCfg.weekCount) || 2;\n'
20130515 '        \n'
20130515 '        if(this.showNavToday){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-today', text: this.todayText, handler: this.onTodayClick, scope: this\n"
20130515 '            });\n'
20130515 '        }\n'
20130515 '        if(this.showNavNextPrev){\n'
20130515 '            this.tbar.items.push([\n'
20130515 "                {id: this.id+'-tb-prev', handler: this.onPrevClick, scope: this, iconCls: 'x-tbar-page-prev'},\n"
20130515 "                {id: this.id+'-tb-next', handler: this.onNextClick, scope: this, iconCls: 'x-tbar-page-next'}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        if(this.showNavJump){\n'
20130515 '            this.tbar.items.push([\n'
20130515 '                this.jumpToText,\n'
20130515 "                {id: this.id+'-tb-jump-dt', xtype: 'datefield', showToday: false},\n"
20130515 "                {id: this.id+'-tb-jump', text: this.goText, handler: this.onJumpClick, scope: this}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.tbar.items.push('->');\n"
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-day', text: this.dayText, handler: this.onDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var text = String.format(this.getMultiDayText(multiDayViewCount), multiDayViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiday', text: text, handler: this.onMultiDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-week', text: this.weekText, handler: this.onWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var text = String.format(this.getMultiWeekText(multiWeekViewCount), multiWeekViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiweek', text: text, handler: this.onMultiWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView || this.viewCount == 0){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-month', text: this.monthText, handler: this.onMonthNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '            this.showMonthView = true;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var idx = this.viewCount-1;\n'
20130515 '        this.activeItem = this.activeItem === undefined ? idx : (this.activeItem > idx ? idx : this.activeItem);\n'
20130515 '        \n'
20130515 '        if(this.showNavBar === false){\n'
20130515 '            delete this.tbar;\n'
20130515 "            this.addClass('x-calendar-nonav');\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added to the underlying store\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventdelete\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \n'
20130515 '             * will cancel the delete operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            beforeeventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted by the user.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event viewchange\n'
20130515 '             * Fires after a different calendar view is activated (but not when the event edit form is activated)\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.CalendarView} view The view being activated (any valid {@link Ext.ensible.cal.CalendarView CalendarView} subclass)\n'
20130515 '             * @param {Object} info Extra information about the newly activated view. This is a plain object \n'
20130515 '             * with following properties:<div class="mdetail-params"><ul>\n'
20130515 '             * <li><b><code>activeDate</code></b> : <div class="sub-desc">The currently-selected date</div></li>\n'
20130515 '             * <li><b><code>viewStart</code></b> : <div class="sub-desc">The first date in the new view range</div></li>\n'
20130515 '             * <li><b><code>viewEnd</code></b> : <div class="sub-desc">The last date in the new view range</div></li>\n'
20130515 '             * </ul></div>\n'
20130515 '             */\n'
20130515 '            viewchange: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the selected event in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}). Handling code should hide the active\n'
20130515 '             * event editor and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this The CalendarPanel\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} view The currently active {@link Ext.ensible.cal.CalendarView CalendarView} subclass\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '            \n'
20130515 '            \n'
20130515 '            //\n'
20130515 '            // NOTE: CalendarPanel also relays the following events from contained views as if they originated from this:\n'
20130515 '            //\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * @event eventsrendered\n'
20130515 '             * Fires after events are finished rendering in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this \n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventclick\n'
20130515 '             * <p>Fires after the user clicks on an event element.</p>\n'
20130515 '             * <p><strong>NOTE:</strong> This version of <code>eventclick</code> differs from the same event fired directly by\n'
20130515 '             * {@link Ext.ensible.cal.CalendarView CalendarView} subclasses in that it provides a default implementation (showing\n'
20130515 '             * the default edit window) and is also cancelable (if a handler returns <code>false</code> the edit window will not be shown).\n'
20130515 '             * This event when fired from a view class is simply a notification that an event was clicked and has no default behavior.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event rangeselect\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\n'
20130515 '             * function call (e.g., callback()).\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventover\n'
20130515 '             * Fires anytime the mouse is over an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventout\n'
20130515 '             * Fires anytime the mouse exits an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforedatechange\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\n'
20130515 '             * view change and the setting of the start date.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within a day/week view container and not on an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event datechange\n'
20130515 '             * Fires after the start date of the view changes\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventmove\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the move operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after an event element is dragged by the user and dropped in a new position\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\n'
20130515 '             * updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event initdrag\n'
20130515 '             * Fires when a drag operation is initiated in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayover\n'
20130515 '             * Fires while the mouse is over a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is being moused over\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayout\n'
20130515 '             * Fires when the mouse exits a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is exited\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event and the resize operation is complete. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.layout = 'card'; // do not allow override\n"
20130515 "        this.addClass('x-cal-panel');\n"
20130515 '        \n'
20130515 '        if(this.eventStore){\n'
20130515 '            this.store = this.eventStore;\n'
20130515 '            delete this.eventStore;\n'
20130515 '        }\n'
20130515 '        this.setStore(this.store);\n'
20130515 '        \n'
20130515 '        var sharedViewCfg = {\n'
20130515 '            showToday: this.showToday,\n'
20130515 '            todayText: this.todayText,\n'
20130515 '            showTodayText: this.showTodayText,\n'
20130515 '            showTime: this.showTime,\n'
20130515 '            readOnly: this.readOnly,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            store: this.store,\n'
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            editModal: this.editModal,\n'
20130515 '            enableEditDetails: this.enableEditDetails,\n'
20130515 '            ownerCalendarPanel: this\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            var day = Ext.apply({\n'
20130515 "                xtype: 'extensible.dayview',\n"
20130515 '                title: this.dayText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            day = Ext.apply(Ext.apply(day, this.viewConfig), this.dayViewCfg);\n'
20130515 "            day.id = this.id+'-day';\n"
20130515 '            this.initEventRelay(day);\n'
20130515 '            this.add(day);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var mday = Ext.apply({\n'
20130515 "                xtype: 'extensible.multidayview',\n"
20130515 '                title: this.getMultiDayText(multiDayViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mday = Ext.apply(Ext.apply(mday, this.viewConfig), this.multiDayViewCfg);\n'
20130515 "            mday.id = this.id+'-multiday';\n"
20130515 '            this.initEventRelay(mday);\n'
20130515 '            this.add(mday);\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            var wk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.weekview',\n"
20130515 '                title: this.weekText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            wk = Ext.apply(Ext.apply(wk, this.viewConfig), this.weekViewCfg);\n'
20130515 "            wk.id = this.id+'-week';\n"
20130515 '            this.initEventRelay(wk);\n'
20130515 '            this.add(wk);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var mwk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.multiweekview',\n"
20130515 '                title: this.getMultiWeekText(multiWeekViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mwk = Ext.apply(Ext.apply(mwk, this.viewConfig), this.multiWeekViewCfg);\n'
20130515 "            mwk.id = this.id+'-multiweek';\n"
20130515 '            this.initEventRelay(mwk);\n'
20130515 '            this.add(mwk);\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView){\n'
20130515 '            var month = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.monthview',\n"
20130515 '                title: this.monthText,\n'
20130515 '                listeners: {\n'
20130515 "                    'weekclick': {\n"
20130515 '                        fn: function(vw, dt){\n'
20130515 '                            this.showWeek(dt);\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            month = Ext.apply(Ext.apply(month, this.viewConfig), this.monthViewCfg);\n'
20130515 "            month.id = this.id+'-month';\n"
20130515 '            this.initEventRelay(month);\n'
20130515 '            this.add(month);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        this.add(Ext.applyIf({\n'
20130515 "            xtype: 'extensible.eventeditform',\n"
20130515 "            id: this.id+'-edit',\n"
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            listeners: {\n'
20130515 "                'eventadd':    { scope: this, fn: this.onEventAdd },\n"
20130515 "                'eventupdate': { scope: this, fn: this.onEventUpdate },\n"
20130515 "                'eventdelete': { scope: this, fn: this.onEventDelete },\n"
20130515 "                'eventcancel': { scope: this, fn: this.onEventCancel }\n"
20130515 '            }\n'
20130515 '        }, this.editViewCfg));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initEventRelay: function(cfg){\n'
20130515 '        cfg.listeners = cfg.listeners || {};\n'
20130515 '        cfg.listeners.afterrender = {\n'
20130515 '            fn: function(c){\n'
20130515 '                // relay view events so that app code only has to handle them in one place.\n'
20130515 '                // these events require no special handling by the calendar panel \n'
20130515 "                this.relayEvents(c, ['eventsrendered','eventclick','dayclick','eventover','eventout','beforedatechange',\n"
20130515 "                    'datechange','rangeselect','beforeeventmove','eventmove','initdrag','dayover','dayout','beforeeventresize',\n"
20130515 "                    'eventresize','eventadd','eventupdate','beforeeventdelete','eventdelete','eventcancel']);\n"
20130515 '                \n'
20130515 "                c.on('editdetails', this.onEditDetails, this);\n"
20130515 '            },\n'
20130515 '            scope: this,\n'
20130515 '            single: true\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.afterRender.call(this);\n'
20130515 "        this.body.addClass('x-cal-body');\n"
20130515 '        this.activeView = this.getLayout().activeItem;\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onLayout: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.onLayout.call(this);\n'
20130515 '        if(!this.navInitComplete){\n'
20130515 '            this.updateNavState();\n'
20130515 '            this.navInitComplete = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).\n"
20130515 '     */\n'
20130515 '    getMultiDayText: function(numDays){\n'
20130515 '        return this.multiDayText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).\n"
20130515 '     */\n'
20130515 '    getMultiWeekText: function(numWeeks){\n'
20130515 '        return this.multiWeekText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        var currStore = this.store;\n'
20130515 '        \n'
20130515 '        if(!initial && currStore){\n'
20130515 '            currStore.un("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreAdd : function(ds, recs, index){\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs;\n'
20130515 '        if(rec.phantom){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreUpdate : function(ds, rec, operation){\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.hideEditForm();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onStoreRemove : function(ds, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\n'
20130515 '        switch(action){\n'
20130515 "            case 'create': \n"
20130515 '                this.onStoreAdd(store, rec);\n'
20130515 '                break;\n'
20130515 "            case 'update':\n"
20130515 '                this.onStoreUpdate(store, rec, Ext.data.Record.COMMIT);\n'
20130515 '                break;\n'
20130515 "            case 'destroy':\n"
20130515 '                this.onStoreRemove(store, rec);\n'
20130515 '                break;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetails: function(vw, rec, el){\n'
20130515 "        if(this.fireEvent('editdetails', this, vw, rec, el) !== false){\n"
20130515 '            this.showEditForm(rec);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    save: function(){\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\n"
20130515 '        // method will have already internally caused a save to execute on\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\n'
20130515 "        // otherwise we'll create duplicate transactions.\n"
20130515 '        if(!this.store.autoSave){\n'
20130515 '            this.store.save();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    onEventAdd: function(form, rec){\n'
20130515 '        if(!rec.store){\n'
20130515 '            this.store.add(rec);\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('eventadd', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventUpdate: function(form, rec){\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventDelete: function(form, rec){\n'
20130515 '        this.store.remove(rec);\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventCancel: function(form, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the built-in event edit form for the passed in event record.  This method automatically\n'
20130515 '     * hides the calendar views and navigation toolbar.  To return to the calendar, call {@link #hideEditForm}.\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} record The event record to edit\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    showEditForm: function(rec){\n'
20130515 '        this.preEditView = this.layout.activeItem.id;\n'
20130515 "        this.setActiveView(this.id+'-edit');\n"
20130515 '        this.layout.activeItem.loadRecord(rec);\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Hides the built-in event edit form and returns to the previous calendar view. If the edit form is\n'
20130515 '     * not currently visible this method has no effect.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    hideEditForm: function(){\n'
20130515 '        if(this.preEditView){\n'
20130515 '            this.setActiveView(this.preEditView);\n'
20130515 '            delete this.preEditView;\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    setActiveView: function(id){\n'
20130515 '        var l = this.layout,\n'
20130515 '            tb = this.getTopToolbar();\n'
20130515 '            \n'
20130515 '        l.setActiveItem(id);\n'
20130515 '        this.activeView = l.activeItem;\n'
20130515 '        \n'
20130515 "        if(id == this.id+'-edit'){\n"
20130515 '            if(tb){\n'
20130515 '                tb.hide();\n'
20130515 '            }\n'
20130515 '            this.doLayout();\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(id !== this.preEditView){\n'
20130515 '                l.activeItem.setStartDate(this.startDate, true);\n'
20130515 '            }\n'
20130515 '            if(tb){\n'
20130515 '               tb.show();\n'
20130515 '           }\n'
20130515 '           this.updateNavState();\n'
20130515 '        }\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    fireViewChange: function(){\n'
20130515 '        var info = null, \n'
20130515 '            view = this.layout.activeItem;\n'
20130515 '            \n'
20130515 '        if(view.getViewBounds){\n'
20130515 '            var vb = view.getViewBounds(),\n'
20130515 '            info = {\n'
20130515 '                activeDate: view.getStartDate(),\n'
20130515 '                viewStart: vb.start,\n'
20130515 '                viewEnd: vb.end\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if(view.dismissEventEditor){\n'
20130515 '            view.dismissEventEditor();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('viewchange', this, view, info);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateNavState: function(){\n'
20130515 '        if(this.showNavBar !== false){\n'
20130515 '            var item = this.layout.activeItem,\n'
20130515 "                suffix = item.id.split(this.id+'-')[1];\n"
20130515 '            \n'
20130515 '            if(this.showNavToday){\n'
20130515 "                Ext.getCmp(this.id+'-tb-today').setDisabled(item.isToday());\n"
20130515 '            }\n'
20130515 "            var btn = Ext.getCmp(this.id+'-tb-'+suffix);\n"
20130515 '            btn.toggle(true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date for the currently-active calendar view.\n'
20130515 '     * @param {Date} dt The new start date\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 "        Ext.ensible.log('setStartDate (CalendarPanel');\n"
20130515 '        this.startDate = dt;\n'
20130515 '        this.layout.activeItem.setStartDate(dt, true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    showWeek: function(dt){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '        this.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onTodayClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveToday(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onJumpClick: function(){\n'
20130515 "        var dt = Ext.getCmp(this.id+'-tb-jump-dt').getValue();\n"
20130515 "        if(dt !== ''){\n"
20130515 '            this.startDate = this.layout.activeItem.moveTo(dt, true);\n'
20130515 '            this.updateNavState();\n'
20130515 '            // TODO: check that view actually changed:\n'
20130515 '            this.fireViewChange();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onPrevClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.movePrev(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onNextClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveNext(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-day');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiday');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiweek');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMonthNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-month');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Return the calendar view that is currently active, which will be a subclass of\n'
20130515 '     * {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} The active view\n'
20130515 '     */\n'
20130515 '    getActiveView: function(){\n'
20130515 '        return this.layout.activeItem;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarpanel', Ext.ensible.cal.CalendarPanel);"
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:38 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 5613\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/*\n'
20130515 ' * French (France) locale\n'
20130515 ' * Contributors: devil1591, Alain Deseine, Yannick Torres\n'
20130515 ' */\n'
20130515 '\n'
20130515 'Ext.ensible.Date.use24HourTime = true;\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarView.prototype, {\n'
20130515 '        startDay: 1,\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        defaultEventTitleText: '(Pas de titre)',\n"
20130515 "        ddCreateEventText: 'Cr\xc3\xa9er \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddMoveEventText: 'D\xc3\xa9placer \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddResizeEventText: 'Mettre \xc3\xa0 jour l\\'\xc3\xa9v\xc3\xa9nement au {0}'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthView.prototype, {\n'
20130515 "        moreText: '+{0} autres ...',\n"
20130515 '        getMoreText: function(numEvents){\n'
20130515 "            return '+{0} autres ...';\n"
20130515 '        },\n'
20130515 "        detailsTitleDateFormat: 'd F'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarPanel) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarPanel.prototype, {\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        dayText: 'Jour',\n"
20130515 "        weekText: 'Semaine',\n"
20130515 "        monthText: 'Mois',\n"
20130515 "        jumpToText: 'Aller au :',\n"
20130515 "        goText: 'Ok',\n"
20130515 "        multiDayText: '{0} jours',\n"
20130515 "        multiWeekText: '{0} semaines',\n"
20130515 '        getMultiDayText: function(numDays){\n'
20130515 "            return '{0} jours';\n"
20130515 '        },\n'
20130515 '        getMultiWeekText: function(numWeeks){\n'
20130515 "            return '{0} semaines';\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditWindow) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditWindow.prototype, {\n'
20130515 '        width: 650,\n'
20130515 '        labelWidth: 65,\n'
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        savingMessage: 'Sauvegarde des changements...',\n"
20130515 "        deletingMessage: 'Suppression de l\\'\xc3\xa9v\xc3\xa8nement...',\n"
20130515 "        detailsLinkText: 'D\xc3\xa9tail de l\\'\xc3\xa9v\xc3\xa9nement...',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        calendarLabelText: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditForm) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditForm.prototype, {\n'
20130515 '        labelWidth: 55,\n'
20130515 '        labelWidthRightCol: 80,\n'
20130515 "        title: 'Formulaire \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        reminderLabelText: 'Rappel',\n"
20130515 "        notesLabelText: 'Notes',\n"
20130515 "        locationLabelText: 'Lieu',\n"
20130515 "        webLinkLabelText: 'Lien internet',\n"
20130515 "        calendarLabelText: 'Agenda',\n"
20130515 "        repeatsLabelText: 'R\xc3\xa9p\xc3\xa9ter'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        toText: 'au',\n"
20130515 "        allDayText: 'Toute la journ\xc3\xa9e'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarCombo.prototype, {\n'
20130515 "        fieldLabel: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarList) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarList.prototype, {\n'
20130515 "        title: 'Agendas'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarListMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarListMenu.prototype, {\n'
20130515 "        displayOnlyThisCalendarText: 'N\\'afficher que cet agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.RecurrenceCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.RecurrenceCombo.prototype, {\n'
20130515 "        fieldLabel: 'R\xc3\xa9ccurence',\n"
20130515 '        recurrenceText: {\n'
20130515 "            none: 'Ne pas r\xc3\xa9p\xc3\xa9ter',\n"
20130515 "            daily: 'Quotidien',\n"
20130515 "            weekly: 'Hebdomadaire',\n"
20130515 "            monthly: 'Mensuel',\n"
20130515 "            yearly: 'Annuel'\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.ReminderField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.ReminderField.prototype, {\n'
20130515 "        fieldLabel: 'Rappel',\n"
20130515 "        noneText: 'Aucun',\n"
20130515 "        atStartTimeText: 'au d\xc3\xa9but',\n"
20130515 '        getMinutesText: function(numMinutes){\n'
20130515 "            return numMinutes === 1 ? 'minute' : 'minutes';\n"
20130515 '        },\n'
20130515 '        getHoursText: function(numHours){\n'
20130515 "            return numHours === 1 ? 'heure' : 'heures';\n"
20130515 '        },\n'
20130515 '        getDaysText: function(numDays){\n'
20130515 "            return numDays === 1 ? 'jour' : 'jours';\n"
20130515 '        },\n'
20130515 '        getWeeksText: function(numWeeks){\n'
20130515 "            return numWeeks === 1 ? 'semaine' : 'semaines';\n"
20130515 '        },\n'
20130515 '        reminderValueFormat: \'{0} {1} avant le d\xc3\xa9but\' // e.g. "2 hours before start"\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        dateFormat: 'd/m/Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventContextMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventContextMenu.prototype, {\n'
20130515 "        editDetailsText: '\xc3\x89diter les d\xc3\xa9tails',\n"
20130515 "        deleteText: 'Effacer',\n"
20130515 "        moveToText: 'D\xc3\xa9placer au...'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat: 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DayViewDropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DayViewDropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat : 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.BoxLayoutTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.BoxLayoutTemplate.prototype, {\n'
20130515 "        firstWeekDateFormat: 'D d',\n"
20130515 "        otherWeeksDateFormat: 'd',\n"
20130515 "        singleDayDateFormat: 'l d F Y',\n"
20130515 "        multiDayFirstDayFormat: 'd M Y',\n"
20130515 "        multiDayMonthStartFormat: 'd M'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthViewTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthViewTemplate.prototype, {\n'
20130515 "        dayHeaderFormat: 'D',\n"
20130515 "        dayHeaderTitleFormat: 'l d F Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:38 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21304\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/** ************************************************************\r\n'
20130515 '\tExt.ux.TinyMCE v0.8.5\r\n'
20130515 '\tExtJS form field containing TinyMCE v3.\r\n'
20130515 '\t\r\n'
20130515 '\tAuthor: Andrew Mayorov et al.\r\n'
20130515 '\thttp://blogs.byte-force.com/xor\r\n'
20130515 '  \r\n'
20130515 '\tCopyright (c)2008-2010 BYTE-force\r\n'
20130515 '\twww.byte-force.com\r\n'
20130515 '\t\r\n'
20130515 '\tLicense: LGPLv2.1 or later\r\n'
20130515 '  \r\n'
20130515 '  Modifs by Luc Saffre:\r\n'
20130515 '  \r\n'
20130515 '  disable function sets ``this.disabled = true;`` \r\n'
20130515 '  (enable function the opposite)\r\n'
20130515 '  \r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '(function() {\r\n'
20130515 '\r\n'
20130515 '\tExt.namespace("Ext.ux");\r\n'
20130515 '\r\n'
20130515 '\tvar tmceInitialized = false;\r\n'
20130515 '\r\n'
20130515 '\t// Lazy references to classes. To be filled in the initTinyMCE method.\r\n'
20130515 '\tvar WindowManager;\r\n'
20130515 '\tvar ControlManager;\r\n'
20130515 '\r\n'
20130515 '\t// Create a new Windows Group for the dialogs\r\n'
20130515 '\t/*var windowGroup = new Ext.WindowGroup();\r\n'
20130515 '\twindowGroup.zseed = 12000;*/\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\t/** ----------------------------------------------------------\r\n'
20130515 '\tExt.ux.TinyMCE\r\n'
20130515 '\t*/\r\n'
20130515 '\tExt.ux.TinyMCE = Ext.extend( Ext.form.Field, {\r\n'
20130515 '\r\n'
20130515 '\t\t// TinyMCE Settings specified for this instance of the editor.\r\n'
20130515 '\t\ttinymceSettings: null,\r\n'
20130515 '\r\n'
20130515 '\t\t// Validation properties\r\n'
20130515 '\t\tallowBlank: true,\r\n'
20130515 '\t\tinvalidText: "The value in this field is invalid",\r\n'
20130515 '\t\tinvalidClass: "invalid-content-body",\r\n'
20130515 "\t\tminLengthText : 'The minimum length for this field is {0}',\r\n"
20130515 "\t\tmaxLengthText : 'The maximum length for this field is {0}',\r\n"
20130515 "\t\tblankText : 'This field is required',\r\n"
20130515 '\r\n'
20130515 '\t\t// HTML markup for this field\r\n'
20130515 "\t\thideMode: 'offsets',\r\n"
20130515 '\t\tdefaultAutoCreate: {\r\n'
20130515 '\t\t\ttag: "textarea",\r\n'
20130515 '\t\t\tstyle: "width:1px;height:1px;",\r\n'
20130515 '\t\t\tautocomplete: "off"\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tconstructor: function(cfg) {\r\n'
20130515 '\r\n'
20130515 '\t\t\tvar config = {\r\n'
20130515 '\t\t\t\ttinymceSettings: {\r\n'
20130515 '\t\t\t\t\taccessibility_focus: false\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.apply(config, cfg);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Add events\r\n'
20130515 '\t\t\tthis.addEvents({\r\n'
20130515 '\t\t\t\t"editorcreated": true\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.constructor.call(this, config);\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitComponent: function() {\r\n'
20130515 '\t\t\tthis.tinymceSettings = this.tinymceSettings || {};\r\n'
20130515 "      //~ console.log('initComponent',this.tinymceSettings);\r\n"
20130515 '\t\t\tExt.ux.TinyMCE.initTinyMCE({ language: this.tinymceSettings.language });\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitEvents: function() {\r\n'
20130515 '\t\t\tthis.originalValue = this.getValue();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonRender: function(ct, position) {\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Fix size if it was specified in config\r\n'
20130515 '\t\t\tif (Ext.type(this.width) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.width = this.width;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (Ext.type(this.height) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.height = this.height;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 "\t\t\t//this.el.dom.style.border = '0 none';\r\n"
20130515 "\t\t\tthis.el.dom.setAttribute('tabIndex', -1);\r\n"
20130515 "\t\t\tthis.el.addClass('x-hidden');\r\n"
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Wrap textarea into DIV\r\n'
20130515 '\t\t\tthis.textareaEl = this.el;\r\n'
20130515 '\t\t\tvar wrapElStyle = { overflow: "hidden" };\r\n'
20130515 '\t\t\tif( Ext.isIE ) { // fix IE 1px bogus margin\r\n'
20130515 '\t\t\t\twrapElStyle["margin-top"] = "-1px";\r\n'
20130515 '\t\t\t\twrapElStyle["margin-bottom"] = "-1px";\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tthis.wrapEl = this.el.wrap({ style: wrapElStyle });\r\n'
20130515 '\t\t\tthis.actionMode = "wrapEl"; // Set action element to the new wrapper\r\n'
20130515 '\t\t\tthis.positionEl = this.wrapEl;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar id = this.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Create TinyMCE editor.\r\n'
20130515 '\t\t\tthis.ed = new tinymce.Editor(id, this.tinymceSettings);\r\n'
20130515 '      \r\n'
20130515 '      // LS 20110602\r\n'
20130515 '      //~ this.ed.addShortcut(\'ctrl+c\', "Close editor window", ct.close,this);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Validate value onKeyPress\r\n'
20130515 '\t\t\tvar validateContentTask = new Ext.util.DelayedTask( this.validate, this );\r\n'
20130515 '\t\t\tthis.ed.onKeyPress.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvalidateContentTask.delay( 250 );\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 "\t\t\t// Set up editor events' handlers\r\n"
20130515 '\t\t\tthis.ed.onBeforeRenderUI.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\t// Replace control manager\r\n'
20130515 '\t\t\t\ted.controlManager = new ControlManager(this, ed);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.ed.onPostRender.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvar s = ed.settings;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Modify markup.\r\n'
20130515 '\t\t\t\tvar tbar = Ext.get(Ext.DomQuery.selectNode("#" + this.ed.id + "_tbl td.mceToolbar"));\r\n'
20130515 '\t\t\t\tif( tbar != null ) {\r\n'
20130515 '\t\t\t\t\t// If toolbar is present\r\n'
20130515 '\t\t\t\t\tvar tbars = tbar.select("> table.mceToolbar");\r\n'
20130515 '\t\t\t\t\tExt.DomHelper\r\n'
20130515 '\t\t\t\t\t\t.append( tbar,\r\n'
20130515 '\t\t\t\t\t\t\t{ tag: "div", id: this.ed.id + "_xtbar", style: { overflow: "hidden"} }\r\n'
20130515 '\t\t\t\t\t\t\t, true )\r\n'
20130515 '\t\t\t\t\t\t.appendChild(tbars);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\t// Change window manager\r\n'
20130515 '\t\t\t\ted.windowManager = new WindowManager({\r\n'
20130515 '\t\t\t\t\teditor: this.ed,\r\n'
20130515 '\t\t\t\t\tmanager: this.manager\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t\t// Patch css-style for validation body like ExtJS\r\n'
20130515 "\t\t\t\tExt.get(ed.getContentAreaContainer()).addClass('patch-content-body');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t// Event of focused body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("focus", this.onFocus, this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Event of blur body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("blur", this.onBlur, this,\r\n'
20130515 '\t\t\t\t\t\tthis.inEditor && Ext.isWindows && Ext.isGecko ? { buffer: 10} : null\r\n'
20130515 '\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Set event handler on editor init.\r\n'
20130515 '\t\t\t//this.ed.onInit.add(function() {\r\n'
20130515 '\t\t\t//} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Wire "change" event\r\n'
20130515 '\t\t\tthis.ed.onChange.add(function(ed, l) {\r\n'
20130515 '\t\t\t\tthis.fireEvent("change", ed, l);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Render the editor\r\n'
20130515 '\t\t\tthis.ed.render();\r\n'
20130515 '\t\t\ttinyMCE.add(this.ed);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Fix editor size when control will be visible\r\n'
20130515 '\t\t\t(function fixEditorSize() {\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t\t// If element is not visible yet, wait.\r\n'
20130515 '\t\t\t\tif( !this.isVisible() ) {\r\n'
20130515 '\t\t\t\t\targuments.callee.defer( 50, this );\r\n'
20130515 '\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tvar size = this.getSize();\r\n'
20130515 '\t\t\t\tthis.withEd( function() {\r\n'
20130515 '\t\t\t\t\tthis._setEditorSize( size.width, size.height );\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t\t// Indicate that editor is created\r\n'
20130515 '\t\t\t\t\tthis.fireEvent("editorcreated");\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t}).call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetResizeEl: function() {\r\n'
20130515 '\t\t\treturn this.wrapEl;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t* Returns the name attribute of the field if available\r\n'
20130515 '\t\t* @return {String} name The field name\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetName: function() {\r\n'
20130515 '\t\t\treturn this.rendered && this.textareaEl.dom.name\r\n'
20130515 "\t\t\t\t? this.textareaEl.dom.name : (this.name || '');\r\n"
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif (!this.rendered)\r\n'
20130515 '\t\t\t\tExt.ux.TinyMCE.superclass.initValue.call(this);\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\tif (this.value !== undefined) {\r\n'
20130515 '\t\t\t\t\tthis.setValue(this.value);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse {\r\n'
20130515 '\t\t\t\t\tvar v = this.textareaEl.value; \r\n'
20130515 '\t\t\t\t\tif ( v )\r\n'
20130515 '\t\t\t\t\t\tthis.setValue( v );\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tbeforeDestroy: function() {\r\n'
20130515 '\t\t\tif( this.ed ) tinyMCE.remove( this.ed );\r\n'
20130515 '\t\t\tif( this.wrapEl ) Ext.destroy( this.wrapEl );\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.beforeDestroy.call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetRawValue : function(){\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '\t\t\tif(v === this.emptyText){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '      //~ console.log(v);\r\n'
20130515 '\t\t\tif( v === this.emptyText || v === undefined ){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetRawValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setRawValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t\tthis.validate();\r\n'
20130515 '\t\t\t\t\t//this.ed.resizeToContent();\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tisDirty: function() {\r\n'
20130515 '\t\t\tif (this.disabled || !this.rendered) {\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn this.ed && this.ed.initialized && this.ed.isDirty();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsyncValue: function() {\r\n'
20130515 '\t\t\tif (this.rendered && this.ed.initialized)\r\n'
20130515 '\t\t\t\tthis.ed.save();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetEd: function() {\r\n'
20130515 '\t\t\treturn this.ed;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tdisable: function() {\r\n'
20130515 '      this.disabled = true;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = true;\r\n'
20130515 '        //~ this.ed.setupContentEditable(false);\r\n'
20130515 '        //~ this.ed.controlManager.setDisabled(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = true;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceContentBody')) {\r\n"
20130515 "          //~ console.log('Ext.ux.TinyMCE.disable() 3') \r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceContentBody');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceNonEditable');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.readonly = true;\r\n'
20130515 '\t\t\t\t\t//~ bodyEl.setAttribute("disabled", "disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tenable: function() {\r\n'
20130515 '      this.disabled = false;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = false;\r\n'
20130515 '        //~ this.ed.setupContentEditable(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = false;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceNonEditable')) {\r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceNonEditable');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceContentBody');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.removeAttribute("disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonResize: function(aw, ah) {\r\n'
20130515 '\t\t\tif( Ext.type( aw ) != "number" ){\r\n'
20130515 '\t\t\t\taw = this.getWidth();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif( Ext.type(ah) != "number" ){\r\n'
20130515 '\t\t\t\tah = this.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (aw == 0 || ah == 0)\r\n'
20130515 '\t\t\t\treturn;\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( this.rendered && this.isVisible() ) {\r\n'
20130515 '\t\t\t\tthis.withEd(function() { this._setEditorSize( aw, ah ); });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tSets control size to the given width and height\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\t_setEditorSize: function( width, height ) {\r\n'
20130515 '\t\t  //~ console.log("_setEditorSize",arguments);\r\n'
20130515 '\t\t\t// We currently support only advanced theme resize\r\n'
20130515 '\t\t\tif( !this.ed.theme.AdvancedTheme ) {\r\n'
20130515 '          //~ console.log("We currently support only advanced theme resize, but this.ed.theme is",this.ed.theme);\r\n'
20130515 '          return;\r\n'
20130515 '      }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\t// Minimal width and height for advanced theme\r\n'
20130515 '\t\t\tif( width < 100 ) width = 100;\r\n'
20130515 '\t\t\tif( height < 129 ) height = 129;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Set toolbar div width\r\n'
20130515 '\t\t\tvar edTable = Ext.get(this.ed.id + "_tbl"), \r\n'
20130515 '\t\t\t\tedIframe = Ext.get(this.ed.id + "_ifr"),\r\n'
20130515 '\t\t\t\tedToolbar = Ext.get(this.ed.id + "_xtbar");\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarWidth = width;\r\n'
20130515 '\t\t\tif( edTable ) \r\n'
20130515 '\t\t\t\ttoolbarWidth = width - edTable.getFrameWidth( "lr" );\t\t\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarHeight = 0;\r\n'
20130515 '\t\t\tif( edToolbar ) {\r\n'
20130515 '\t\t\t\ttoolbarHeight = edToolbar.getHeight();\r\n'
20130515 '\t\t\t\tvar toolbarTd = edToolbar.findParent( "td", 5, true );\r\n'
20130515 '\t\t\t\ttoolbarHeight += toolbarTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\tedToolbar.setWidth( toolbarWidth );\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar edStatusbarTd = edTable.child( ".mceStatusbar" );\r\n'
20130515 '\t\t\tvar statusbarHeight = 0;\r\n'
20130515 '\t\t\tif( edStatusbarTd ) {\r\n'
20130515 '\t\t\t\tstatusbarHeight += edStatusbarTd.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar iframeHeight = height - toolbarHeight - statusbarHeight;\r\n'
20130515 '\t\t\tvar iframeTd = edIframe.findParent( "td", 5, true );\r\n'
20130515 '\t\t\tif( iframeTd )\r\n'
20130515 '\t\t\t\tiframeHeight -= iframeTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t// Resize iframe and container\r\n'
20130515 '\t\t\tedTable.setSize( width, height );\r\n'
20130515 '\t\t\tedIframe.setSize( toolbarWidth, iframeHeight );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tfocus: function(selectText, delay) {\r\n'
20130515 '\t\t\tif (delay) {\r\n'
20130515 "\t\t\t\tthis.focus.defer(typeof delay == 'number' ? delay : 10, this, [selectText, false]);\r\n"
20130515 '\t\t\t\treturn;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\tthis.ed.focus();\r\n'
20130515 '\t\t\t\t/*if (selectText === true) {\r\n'
20130515 "\t\t\t\t// TODO: Select editor's content\r\n"
20130515 '\t\t\t\t}*/\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\treturn this;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tprocessValue : function( value ){\r\n'
20130515 '\t\t\treturn Ext.util.Format.stripTags( value );\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tvalidateValue: function( value ) {\r\n'
20130515 '\t\t\tif(Ext.isFunction(this.validator)){\r\n'
20130515 '\t\t\t\tvar msg = this.validator(value);\r\n'
20130515 '\t\t\t\tif(msg !== true){\r\n'
20130515 '\t\t\t\t\tthis.markInvalid(msg);\r\n'
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 "\t\t\tif(value.length < 1 || value === this.emptyText){ // if it's blank\r\n"
20130515 '\t\t\t\t if(this.allowBlank){\r\n'
20130515 '\t\t\t\t\t this.clearInvalid();\r\n'
20130515 '\t\t\t\t\t return true;\r\n'
20130515 '\t\t\t\t }else{\r\n'
20130515 '\t\t\t\t\t this.markInvalid(this.blankText);\r\n'
20130515 '\t\t\t\t\t return false;\r\n'
20130515 '\t\t\t\t }\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length < this.minLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.minLengthText, this.minLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length > this.maxLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.maxLengthText, this.maxLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\t\r\n'
20130515 '\t\t\tif(this.vtype){\r\n'
20130515 '\t\t\t\tvar vt = Ext.form.VTypes;\r\n'
20130515 '\t\t\t\tif(!vt[this.vtype](value, this)){\r\n'
20130515 "\t\t\t\t\tthis.markInvalid(this.vtypeText || vt[this.vtype +'Text']);\r\n"
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(this.regex && !this.regex.test(value)){\r\n'
20130515 '\t\t\t\tthis.markInvalid(this.regexText);\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn true;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\tIf ed (local editor instance) is already initilized, calls\r\n'
20130515 '\t\tspecified function directly. Otherwise - adds it to ed.onInit event.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\twithEd: function(func) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t// If editor is not created yet, reschedule this call.\r\n'
20130515 '\t\t\tif (!this.ed) this.on(\r\n'
20130515 '\t\t\t\t"editorcreated",\r\n'
20130515 '\t\t\t\tfunction() { this.withEd(func); },\r\n'
20130515 '\t\t\t\tthis);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created and initialized\r\n'
20130515 '\t\t\telse if (this.ed.initialized) func.call(this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created but not initialized yet.\r\n'
20130515 '\t\t\telse this.ed.onInit.add(function() { func.defer(10, this); } .createDelegate(this));\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\t// Add static members\r\n'
20130515 '\tExt.apply(Ext.ux.TinyMCE, {\r\n'
20130515 '\r\n'
20130515 '\t\t/**\r\n'
20130515 '\t\tStatic field with all the plugins that should be loaded by TinyMCE.\r\n'
20130515 '\t\tShould be set before first component would be created.\r\n'
20130515 '\t\t@static\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\ttinymcePlugins: "pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template",\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tInits TinyMCE and other necessary dependencies.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitTinyMCE: function(settings) {\r\n'
20130515 '\t\t\tif (!tmceInitialized) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Create lazy classes\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tWindowManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tWindowManager = Ext.extend( tinymce.WindowManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t\tConfig parameters:\r\n'
20130515 '\t\t\t\t\t\teditor - reference to TinyMCE intstance.\r\n'
20130515 '\t\t\t\t\t\tmangager - WindowGroup to use for the popup window. Could be empty.\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function( cfg ) {\r\n'
20130515 '\t\t\t\t\t\tWindowManager.superclass.constructor.call(this, cfg.editor);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Set window group\r\n'
20130515 '\t\t\t\t\t\tthis.manager = cfg.manager;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\talert: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.alert("", txt, function() {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this);\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconfirm: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.confirm("", txt, function(btn) {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this, btn == "yes");\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\topen: function(s, p) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts = s || {};\r\n'
20130515 '\t\t\t\t\t\tp = p || {};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tif (!s.type)\r\n'
20130515 "\t\t\t\t\t\t\tthis.bookmark = this.editor.selection.getBookmark('simple');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts.width = parseInt(s.width || 320);\r\n'
20130515 '\t\t\t\t\t\ts.height = parseInt(s.height || 240) + (tinymce.isIE ? 8 : 0);\r\n'
20130515 '\t\t\t\t\t\ts.min_width = parseInt(s.min_width || 150);\r\n'
20130515 '\t\t\t\t\t\ts.min_height = parseInt(s.min_height || 100);\r\n'
20130515 '\t\t\t\t\t\ts.max_width = parseInt(s.max_width || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.max_height = parseInt(s.max_height || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.movable = true;\r\n'
20130515 '\t\t\t\t\t\ts.resizable = true;\r\n'
20130515 '\t\t\t\t\t\tp.mce_width = s.width;\r\n'
20130515 '\t\t\t\t\t\tp.mce_height = s.height;\r\n'
20130515 '\t\t\t\t\t\tp.mce_inline = true;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tthis.features = s;\r\n'
20130515 '\t\t\t\t\t\tthis.params = p;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar win = new Ext.Window(\r\n'
20130515 '\t\t\t\t\t\t{\r\n'
20130515 '\t\t\t\t\t\t\ttitle: s.name,\r\n'
20130515 '\t\t\t\t\t\t\twidth: s.width,\r\n'
20130515 '\t\t\t\t\t\t\theight: s.height,\r\n'
20130515 '\t\t\t\t\t\t\tminWidth: s.min_width,\r\n'
20130515 '\t\t\t\t\t\t\tminHeight: s.min_height,\r\n'
20130515 '\t\t\t\t\t\t\tresizable: true,\r\n'
20130515 '\t\t\t\t\t\t\tmaximizable: s.maximizable,\r\n'
20130515 '\t\t\t\t\t\t\tminimizable: s.minimizable,\r\n'
20130515 '\t\t\t\t\t\t\tmodal: true,\r\n'
20130515 '\t\t\t\t\t\t\tstateful: false,\r\n'
20130515 '\t\t\t\t\t\t\tconstrain: true,\r\n'
20130515 '\t\t\t\t\t\t\tmanager: this.manager,\r\n'
20130515 '\t\t\t\t\t\t\tlayout: "fit",\r\n'
20130515 '\t\t\t\t\t\t\titems: [\r\n'
20130515 '\t\t\t\t\t\t\t\tnew Ext.BoxComponent({\r\n'
20130515 '\t\t\t\t\t\t\t\t\tautoEl: {\r\n'
20130515 "\t\t\t\t\t\t\t\t\t\ttag: 'iframe',\r\n"
20130515 '\t\t\t\t\t\t\t\t\t\tsrc: s.url || s.file\r\n'
20130515 '\t\t\t\t\t\t\t\t\t},\r\n'
20130515 "\t\t\t\t\t\t\t\t\tstyle : 'border-width: 0px;'\r\n"
20130515 '\t\t\t\t\t\t\t\t})\r\n'
20130515 '\t\t\t\t\t\t\t]\r\n'
20130515 '\t\t\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tp.mce_window_id = win.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\twin.show(null,\r\n'
20130515 '\t\t\t\t\t\t\tfunction() {\r\n'
20130515 '\t\t\t\t\t\t\t\tif (s.left && s.top)\r\n'
20130515 '\t\t\t\t\t\t\t\t\twin.setPagePosition(s.left, s.top);\r\n'
20130515 '\t\t\t\t\t\t\t\tvar pos = win.getPosition();\r\n'
20130515 '\t\t\t\t\t\t\t\ts.left = pos[0];\r\n'
20130515 '\t\t\t\t\t\t\t\ts.top = pos[1];\r\n'
20130515 '\t\t\t\t\t\t\t\tthis.onOpen.dispatch(this, s, p);\r\n'
20130515 '\t\t\t\t\t\t\t},\r\n'
20130515 '\t\t\t\t\t\t\tthis\r\n'
20130515 '\t\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn win;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tclose: function(win) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.close.call(this, win);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tthis.onClose.dispatch(this);\r\n'
20130515 '\t\t\t\t\t\t\tw.close();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tsetTitle: function(win, ti) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.setTitle.call(this, win, ti);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setTitle(ti);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tresizeBy: function(dw, dh, id) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tvar size = w.getSize();\r\n'
20130515 '\t\t\t\t\t\t\tw.setSize(size.width + dw, size.height + dh);\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tfocus: function(id) {\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setActive(true);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tControlManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tControlManager = Ext.extend( tinymce.ControlManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t// Reference to ExtJS control Ext.ux.TinyMCE.\r\n'
20130515 '\t\t\t\t\tcontrol: null,\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function(control, ed, s) {\r\n'
20130515 '\t\t\t\t\t\tthis.control = control;\r\n'
20130515 '\t\t\t\t\t\tControlManager.superclass.constructor.call(this, ed, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateDropMenu: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createDropMenu.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(\'menu_\' + this.id).setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateColorSplitButton: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createColorSplitButton.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(this.id + \'_menu\').setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Init TinyMCE\r\n'
20130515 '\t\t\t\tvar s = {\r\n'
20130515 '\t\t\t\t\tmode: "none",\r\n'
20130515 '\t\t\t\t\tplugins: Ext.ux.TinyMCE.tinymcePlugins,\r\n'
20130515 '\t\t\t\t\ttheme: "advanced"\r\n'
20130515 '\t\t\t\t};\r\n'
20130515 '\t\t\t\tExt.apply(s, settings);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\tif (!tinymce.dom.Event.domLoaded)\r\n'
20130515 '\t\t\t\t\ttinymce.dom.Event._pageInit();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\ttinyMCE.init(s);\r\n'
20130515 '\t\t\t\ttmceInitialized = true;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\tExt.ComponentMgr.registerType("tinymce", Ext.ux.TinyMCE);\r\n'
20130515 '\r\n'
20130515 '})();'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:38 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21047\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '// vim: ts=4:sw=4:nu:fdc=4:nospell\r\n'
20130515 '/*global Ext */\r\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ux.form.DateTime\r\n'
20130515 ' * @extends Ext.form.Field\r\n'
20130515 ' *\r\n'
20130515 ' * DateTime field, combination of DateField and TimeField\r\n'
20130515 ' *\r\n'
20130515 ' * @author      Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @copyright (c) 2008, Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @version   2.0\r\n'
20130515 ' * @revision  $Id: Ext.ux.form.DateTime.js 813 2010-01-29 23:32:36Z jozo $\r\n'
20130515 ' *\r\n'
20130515 ' * @license Ext.ux.form.DateTime is licensed under the terms of\r\n'
20130515 ' * the Open Source LGPL 3.0 license.  Commercial use is permitted to the extent\r\n'
20130515 ' * that the code/component(s) do NOT become part of another Open Source or Commercially\r\n'
20130515 ' * licensed development library or toolkit without explicit permission.\r\n'
20130515 ' * \r\n'
20130515 ' * <p>License details: <a href="http://www.gnu.org/licenses/lgpl.html"\r\n'
20130515 ' * target="_blank">http://www.gnu.org/licenses/lgpl.html</a></p>\r\n'
20130515 ' *\r\n'
20130515 ' * @forum      22661\r\n'
20130515 ' *\r\n'
20130515 ' * @donate\r\n'
20130515 ' * <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">\r\n'
20130515 ' * <input type="hidden" name="cmd" value="_s-xclick">\r\n'
20130515 ' * <input type="hidden" name="hosted_button_id" value="3430419">\r\n'
20130515 ' * <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" \r\n'
20130515 ' * border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">\r\n'
20130515 ' * <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">\r\n'
20130515 ' * </form>\r\n'
20130515 ' */\r\n'
20130515 '\r\n'
20130515 "Ext.ns('Ext.ux.form');\r\n"
20130515 '\r\n'
20130515 '/**\r\n'
20130515 ' * Creates new DateTime\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config A config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ux.form.DateTime = Ext.extend(Ext.form.Field, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} dateValidator A custom validation function to be called during date field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '     dateValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String/Object} defaultAutoCreate DomHelper element spec\r\n'
20130515 '     * Let superclass to create hidden field instead of textbox. Hidden will be submittend to server\r\n'
20130515 '     */\r\n'
20130515 "    ,defaultAutoCreate:{tag:'input', type:'hidden'}\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dtSeparator Date - Time separator. Used to split date and time (defaults to ' ' (space))\r\n"
20130515 '     */\r\n'
20130515 "    ,dtSeparator:' '\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} hiddenFormat Format of datetime used to store value in hidden field\r\n'
20130515 "     * and submitted to server (defaults to 'Y-m-d H:i:s' that is mysql format)\r\n"
20130515 '     */\r\n'
20130515 "    ,hiddenFormat:'Y-m-d H:i:s'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} otherToNow Set other field to now() if not explicly filled in (defaults to true)\r\n'
20130515 '     */\r\n'
20130515 '    ,otherToNow:true\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} emptyToNow Set field value to now on attempt to set empty value.\r\n'
20130515 '     * If it is true then setValue() sets value of field to current date and time (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timePosition Where the time field should be rendered. 'right' is suitable for forms\r\n"
20130515 "     * and 'below' is suitable if the field is used as the grid editor (defaults to 'right')\r\n"
20130515 '     */\r\n'
20130515 "    ,timePosition:'right' // valid values:'below', 'right'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} timeValidator A custom validation function to be called during time field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} timeWidth Width of time field in pixels (defaults to 100)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeWidth:100\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dateFormat Format of DateField. Can be localized. (defaults to 'm/y/d')\r\n"
20130515 '     */\r\n'
20130515 "    ,dateFormat:'m/d/y'\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timeFormat Format of TimeField. Can be localized. (defaults to 'g:i A')\r\n"
20130515 '     */\r\n'
20130515 "    ,timeFormat:'g:i A'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} dateConfig Config for DateField constructor.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} timeConfig Config for TimeField constructor.\r\n'
20130515 '     */\r\n'
20130515 '\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * creates DateField and TimeField and installs the necessary event handlers\r\n'
20130515 '     */\r\n'
20130515 '    ,initComponent:function() {\r\n'
20130515 '        // call parent initComponent\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.initComponent.call(this);\r\n'
20130515 '\r\n'
20130515 '        // create DateField\r\n'
20130515 '        var dateConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-date'\r\n"
20130515 '            ,format:this.dateFormat || Ext.form.DateField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.dateValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.dateConfig);\r\n'
20130515 '        this.df = new Ext.form.DateField(dateConfig);\r\n'
20130515 '        this.df.ownerCt = this;\r\n'
20130515 '        delete(this.dateFormat);\r\n'
20130515 '\r\n'
20130515 '        // create TimeField\r\n'
20130515 '        var timeConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-time'\r\n"
20130515 '            ,format:this.timeFormat || Ext.form.TimeField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.timeValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.timeConfig);\r\n'
20130515 '        this.tf = new Ext.form.TimeField(timeConfig);\r\n'
20130515 '        this.tf.ownerCt = this;\r\n'
20130515 '        delete(this.timeFormat);\r\n'
20130515 '\r\n'
20130515 '        // relay events\r\n'
20130515 "        this.relayEvents(this.df, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 "        this.relayEvents(this.tf, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 '\r\n'
20130515 "        this.on('specialkey', this.onSpecialKey, this);\r\n"
20130515 '\r\n'
20130515 '    } // eo function initComponent\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Renders underlying DateField and TimeField and provides a workaround for side error icon bug\r\n'
20130515 '     */\r\n'
20130515 '    ,onRender:function(ct, position) {\r\n'
20130515 "        // don't run more than once\r\n"
20130515 '        if(this.isRendered) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // render underlying hidden field\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '        // render DateField and TimeField\r\n'
20130515 '        // create bounding table\r\n'
20130515 '        var t;\r\n'
20130515 "        if('below' === this.timePosition || 'bellow' === this.timePosition) {\r\n"
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                 {tag:'tr',children:[{tag:'td', style:'padding-bottom:1px', cls:'ux-datetime-date'}]}\r\n"
20130515 "                ,{tag:'tr',children:[{tag:'td', cls:'ux-datetime-time'}]}\r\n"
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                {tag:'tr',children:[\r\n"
20130515 "                    {tag:'td',style:'padding-right:4px', cls:'ux-datetime-date'},{tag:'td', cls:'ux-datetime-time'}\r\n"
20130515 '                ]}\r\n'
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.tableEl = t;\r\n'
20130515 "        this.wrap = t.wrap({cls:'x-form-field-wrap'});\r\n"
20130515 '//        this.wrap = t.wrap();\r\n'
20130515 '        this.wrap.on("mousedown", this.onMouseDown, this, {delay:10});\r\n'
20130515 '\r\n'
20130515 '        // render DateField & TimeField\r\n'
20130515 "        this.df.render(t.child('td.ux-datetime-date'));\r\n"
20130515 "        this.tf.render(t.child('td.ux-datetime-time'));\r\n"
20130515 '\r\n'
20130515 '        // workaround for IE trigger misalignment bug\r\n'
20130515 '        // see http://extjs.com/forum/showthread.php?p=341075#post341075\r\n'
20130515 '//        if(Ext.isIE && Ext.isStrict) {\r\n'
20130515 "//            t.select('input').applyStyles({top:0});\r\n"
20130515 '//        }\r\n'
20130515 '\r\n'
20130515 "        this.df.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 "        this.tf.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 '\r\n'
20130515 '        // create icon for side invalid errorIcon\r\n'
20130515 "        if('side' === this.msgTarget) {\r\n"
20130515 "            var elp = this.el.findParent('.x-form-element', 10, true);\r\n"
20130515 '            if(elp) {\r\n'
20130515 "                this.errorIcon = elp.createChild({cls:'x-form-invalid-icon'});\r\n"
20130515 '            }\r\n'
20130515 '\r\n'
20130515 '            var o = {\r\n'
20130515 '                 errorIcon:this.errorIcon\r\n'
20130515 "                ,msgTarget:'side'\r\n"
20130515 '                ,alignErrorIcon:this.alignErrorIcon.createDelegate(this)\r\n'
20130515 '            };\r\n'
20130515 '            Ext.apply(this.df, o);\r\n'
20130515 '            Ext.apply(this.tf, o);\r\n'
20130515 '//            this.df.errorIcon = this.errorIcon;\r\n'
20130515 '//            this.tf.errorIcon = this.errorIcon;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // setup name for submit\r\n'
20130515 '        this.el.dom.name = this.hiddenName || this.name || this.id;\r\n'
20130515 '\r\n'
20130515 '        // prevent helper fields from being submitted\r\n'
20130515 '        this.df.el.dom.removeAttribute("name");\r\n'
20130515 '        this.tf.el.dom.removeAttribute("name");\r\n'
20130515 '\r\n'
20130515 "        // we're rendered flag\r\n"
20130515 '        this.isRendered = true;\r\n'
20130515 '\r\n'
20130515 '        // update hidden field\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '    } // eo function onRender\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,adjustSize:Ext.BoxComponent.prototype.adjustSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,alignErrorIcon:function() {\r\n'
20130515 "        this.errorIcon.alignTo(this.tableEl, 'tl-tr', [2, 0]);\r\n"
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private initializes internal dateValue\r\n'
20130515 '     */\r\n'
20130515 '    ,initDateValue:function() {\r\n'
20130515 '        this.dateValue = this.otherToNow ? new Date() : new Date(1970, 0, 1, 0, 0, 0);\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls clearInvalid on the DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,clearInvalid:function(){\r\n'
20130515 '        this.df.clearInvalid();\r\n'
20130515 '        this.tf.clearInvalid();\r\n'
20130515 '    } // eo function clearInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls markInvalid on both DateField and TimeField\r\n'
20130515 '     * @param {String} msg Invalid message to display\r\n'
20130515 '     */\r\n'
20130515 '    ,markInvalid:function(msg){\r\n'
20130515 '        this.df.markInvalid(msg);\r\n'
20130515 '        this.tf.markInvalid(msg);\r\n'
20130515 '    } // eo function markInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * called from Component::destroy. \r\n'
20130515 "     * Destroys all elements and removes all listeners we've created.\r\n"
20130515 '     */\r\n'
20130515 '    ,beforeDestroy:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '//            this.removeAllListeners();\r\n'
20130515 '            this.wrap.removeAllListeners();\r\n'
20130515 '            this.wrap.remove();\r\n'
20130515 '            this.tableEl.remove();\r\n'
20130515 '            this.df.destroy();\r\n'
20130515 '            this.tf.destroy();\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function beforeDestroy\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Disable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,disable:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '            this.df.disabled = this.disabled;\r\n'
20130515 '            this.df.onDisable();\r\n'
20130515 '            this.tf.onDisable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = true;\r\n'
20130515 '        this.df.disabled = true;\r\n'
20130515 '        this.tf.disabled = true;\r\n'
20130515 '        this.fireEvent("disable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function disable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,enable:function() {\r\n'
20130515 '        if(this.rendered){\r\n'
20130515 '            this.df.onEnable();\r\n'
20130515 '            this.tf.onEnable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = false;\r\n'
20130515 '        this.df.disabled = false;\r\n'
20130515 '        this.tf.disabled = false;\r\n'
20130515 '        this.fireEvent("enable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function enable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Focus date filed\r\n'
20130515 '     */\r\n'
20130515 '    ,focus:function() {\r\n'
20130515 '        this.df.focus();\r\n'
20130515 '    } // eo function focus\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getPositionEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getResizeEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Date/String} Returns value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,getValue:function() {\r\n'
20130515 '        // create new instance of date\r\n'
20130515 "        return this.dateValue ? new Date(this.dateValue) : '';\r\n"
20130515 '    } // eo function getValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * @private Calls isValid methods of underlying DateField and TimeField and returns the result\r\n'
20130515 '     */\r\n'
20130515 '    ,isValid:function() {\r\n'
20130515 '        return this.df.isValid() && this.tf.isValid();\r\n'
20130515 '    } // eo function isValid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns true if this component is visible\r\n'
20130515 '     * @return {boolean} \r\n'
20130515 '     */\r\n'
20130515 '    ,isVisible : function(){\r\n'
20130515 '        return this.df.rendered && this.df.getActionEl().isVisible();\r\n'
20130515 '    } // eo function isVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Handles blur event\r\n'
20130515 '     */\r\n'
20130515 '    ,onBlur:function(f) {\r\n'
20130515 '        // called by both DateField and TimeField blur events\r\n'
20130515 '\r\n'
20130515 '        // revert focus to previous field if clicked in between\r\n'
20130515 '        if(this.wrapClick) {\r\n'
20130515 '            f.focus();\r\n'
20130515 '            this.wrapClick = false;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // update underlying value\r\n'
20130515 '        if(f === this.df) {\r\n'
20130515 '            this.updateDate();\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.updateTime();\r\n'
20130515 '        }\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        this.validate();\r\n'
20130515 '\r\n'
20130515 '        // fire events later\r\n'
20130515 '        (function() {\r\n'
20130515 '            if(!this.df.hasFocus && !this.tf.hasFocus) {\r\n'
20130515 '                var v = this.getValue();\r\n'
20130515 '                if(String(v) !== String(this.startValue)) {\r\n'
20130515 '                    this.fireEvent("change", this, v, this.startValue);\r\n'
20130515 '                }\r\n'
20130515 '                this.hasFocus = false;\r\n'
20130515 "                this.fireEvent('blur', this);\r\n"
20130515 '            }\r\n'
20130515 '        }).defer(100, this);\r\n'
20130515 '\r\n'
20130515 '    } // eo function onBlur\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Handles focus event\r\n'
20130515 '     */\r\n'
20130515 '    ,onFocus:function() {\r\n'
20130515 '        if(!this.hasFocus){\r\n'
20130515 '            this.hasFocus = true;\r\n'
20130515 '            this.startValue = this.getValue();\r\n'
20130515 '            this.fireEvent("focus", this);\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Just to prevent blur event when clicked in the middle of fields\r\n'
20130515 '     */\r\n'
20130515 '    ,onMouseDown:function(e) {\r\n'
20130515 '        if(!this.disabled) {\r\n'
20130515 "            this.wrapClick = 'td' === e.target.nodeName.toLowerCase();\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Handles Tab and Shift-Tab events\r\n'
20130515 '     */\r\n'
20130515 '    ,onSpecialKey:function(t, e) {\r\n'
20130515 '        var key = e.getKey();\r\n'
20130515 '        if(key === e.TAB) {\r\n'
20130515 '            if(t === this.df && !e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.tf.focus();\r\n'
20130515 '            }\r\n'
20130515 '            if(t === this.tf && e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.df.focus();\r\n'
20130515 '            }\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '        // otherwise it misbehaves in editor grid\r\n'
20130515 '        if(key === e.ENTER) {\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '    } // eo function onSpecialKey\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Resets the current field value to the originally loaded value \r\n'
20130515 '     * and clears any validation messages. See Ext.form.BasicForm.trackResetOnLoad\r\n'
20130515 '     */\r\n'
20130515 '    ,reset:function() {\r\n'
20130515 '        this.df.setValue(this.originalValue);\r\n'
20130515 '        this.tf.setValue(this.originalValue);\r\n'
20130515 '    } // eo function reset\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Sets the value of DateField\r\n'
20130515 '     */\r\n'
20130515 '    ,setDate:function(date) {\r\n'
20130515 '        this.df.setValue(date);\r\n'
20130515 '    } // eo function setDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Sets the value of TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,setTime:function(date) {\r\n'
20130515 '        this.tf.setValue(date);\r\n'
20130515 '    } // eo function setTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Sets correct sizes of underlying DateField and TimeField\r\n'
20130515 '     * With workarounds for IE bugs\r\n'
20130515 '     */\r\n'
20130515 '    ,setSize:function(w, h) {\r\n'
20130515 '        if(!w) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if('below' === this.timePosition) {\r\n"
20130515 '            this.df.setSize(w, h);\r\n'
20130515 '            this.tf.setSize(w, h);\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w);\r\n"
20130515 "                this.tf.el.up('td').setWidth(w);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.df.setSize(w - this.timeWidth - 4, h);\r\n'
20130515 '            this.tf.setSize(this.timeWidth, h);\r\n'
20130515 '\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w - this.timeWidth - 4);\r\n"
20130515 "                this.tf.el.up('td').setWidth(this.timeWidth);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function setSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @param {Mixed} val Value to set\r\n'
20130515 '     * Sets the value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,setValue:function(val) {\r\n'
20130515 '        if(!val && true === this.emptyToNow) {\r\n'
20130515 '            this.setValue(new Date());\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        else if(!val) {\r\n'
20130515 "            this.setDate('');\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '            this.updateValue();\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if ('number' === typeof val) {\r\n"
20130515 '          val = new Date(val);\r\n'
20130515 '        }\r\n'
20130515 "        else if('string' === typeof val && this.hiddenFormat) {\r\n"
20130515 '            val = Date.parseDate(val, this.hiddenFormat);\r\n'
20130515 '        }\r\n'
20130515 '        val = val ? val : new Date(1970, 0 ,1, 0, 0, 0);\r\n'
20130515 '        var da;\r\n'
20130515 '        if(val instanceof Date) {\r\n'
20130515 '            this.setDate(val);\r\n'
20130515 '            this.setTime(val);\r\n'
20130515 '            this.dateValue = new Date(Ext.isIE ? val.getTime() : val);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            da = val.split(this.dtSeparator);\r\n'
20130515 '            this.setDate(da[0]);\r\n'
20130515 '            if(da[1]) {\r\n'
20130515 '                if(da[2]) {\r\n'
20130515 '                    // add am/pm part back to time\r\n'
20130515 '                    da[1] += da[2];\r\n'
20130515 '                }\r\n'
20130515 '                this.setTime(da[1]);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.updateValue();\r\n'
20130515 '    } // eo function setValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Hide or show this component by boolean\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,setVisible: function(visible){\r\n'
20130515 '        if(visible) {\r\n'
20130515 '            this.df.show();\r\n'
20130515 '            this.tf.show();\r\n'
20130515 '        }else{\r\n'
20130515 '            this.df.hide();\r\n'
20130515 '            this.tf.hide();\r\n'
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function setVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,show:function() {\r\n'
20130515 '        return this.setVisible(true);\r\n'
20130515 '    } // eo function show\r\n'
20130515 '    //}}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,hide:function() {\r\n'
20130515 '        return this.setVisible(false);\r\n'
20130515 '    } // eo function hide\r\n'
20130515 '    //}}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the date part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateDate:function() {\r\n'
20130515 '\r\n'
20130515 '        var d = this.df.getValue();\r\n'
20130515 '        if(d) {\r\n'
20130515 '            if(!(this.dateValue instanceof Date)) {\r\n'
20130515 '                this.initDateValue();\r\n'
20130515 '                if(!this.tf.getValue()) {\r\n'
20130515 '                    this.setTime(this.dateValue);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            this.dateValue.setMonth(0); // because of leap years\r\n'
20130515 '            this.dateValue.setFullYear(d.getFullYear());\r\n'
20130515 '            this.dateValue.setMonth(d.getMonth(), d.getDate());\r\n'
20130515 '//            this.dateValue.setDate(d.getDate());\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            this.dateValue = '';\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '        }\r\n'
20130515 '    } // eo function updateDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Updates the time part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateTime:function() {\r\n'
20130515 '        var t = this.tf.getValue();\r\n'
20130515 '        if(t && !(t instanceof Date)) {\r\n'
20130515 '            t = Date.parseDate(t, this.tf.format);\r\n'
20130515 '        }\r\n'
20130515 '        if(t && !this.df.getValue()) {\r\n'
20130515 '            this.initDateValue();\r\n'
20130515 '            this.setDate(this.dateValue);\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dateValue instanceof Date) {\r\n'
20130515 '            if(t) {\r\n'
20130515 '                this.dateValue.setHours(t.getHours());\r\n'
20130515 '                this.dateValue.setMinutes(t.getMinutes());\r\n'
20130515 '                this.dateValue.setSeconds(t.getSeconds());\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.dateValue.setHours(0);\r\n'
20130515 '                this.dateValue.setMinutes(0);\r\n'
20130515 '                this.dateValue.setSeconds(0);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function updateTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the underlying hidden field value\r\n'
20130515 '     */\r\n'
20130515 '    ,updateHidden:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 "            var value = this.dateValue instanceof Date ? this.dateValue.format(this.hiddenFormat) : '';\r\n"
20130515 '            this.el.dom.value = value;\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates all of Date, Time and Hidden\r\n'
20130515 '     */\r\n'
20130515 '    ,updateValue:function() {\r\n'
20130515 '\r\n'
20130515 '        this.updateDate();\r\n'
20130515 '        this.updateTime();\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        return;\r\n'
20130515 '    } // eo function updateValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * calls validate methods of DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,validate:function() {\r\n'
20130515 '        return this.df.validate() && this.tf.validate();\r\n'
20130515 '    } // eo function validate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns renderer suitable to render this field\r\n'
20130515 '     * @param {Object} Column model config\r\n'
20130515 '     */\r\n'
20130515 '    ,renderer: function(field) {\r\n'
20130515 '        var format = field.editor.dateFormat || Ext.ux.form.DateTime.prototype.dateFormat;\r\n'
20130515 "        format += ' ' + (field.editor.timeFormat || Ext.ux.form.DateTime.prototype.timeFormat);\r\n"
20130515 '        var renderer = function(val) {\r\n'
20130515 '            var retval = Ext.util.Format.date(val, format);\r\n'
20130515 '            return retval;\r\n'
20130515 '        };\r\n'
20130515 '        return renderer;\r\n'
20130515 '    } // eo function renderer\r\n'
20130515 '    // }}}\r\n'
20130515 '\r\n'
20130515 '}); // eo extend\r\n'
20130515 '\r\n'
20130515 '// register xtype\r\n'
20130515 "Ext.reg('xdatetime', Ext.ux.form.DateTime);\r\n"
20130515 '\r\n'
20130515 '// eof'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:38 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 15 May 2013 08:45:09 GMT\r\nContent-Length: 2000115\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\n'
20130515 ' Copyright 2009-2013 Luc Saffre\n'
20130515 ' This file is part of the Lino project.\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \n'
20130515 ' it under the terms of the GNU General Public License as published by\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\n'
20130515 ' (at your option) any later version.\n'
20130515 ' Lino is distributed in the hope that it will be useful, \n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \n'
20130515 ' GNU General Public License for more details.\n'
20130515 ' You should have received a copy of the GNU General Public License\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\n'
20130515 '*/\n'
20130515 '\n'
20130515 '// lino.js --- generated Wed May 15 11:45:07 2013 by Lino version 1.6.7.\n'
20130515 "Ext.BLANK_IMAGE_URL = 'http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif';\n"
20130515 'LANGUAGE_CHOICES = [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ];\n'
20130515 'MEDIA_URL = "/media";\n'
20130515 '\n'
20130515 '/* MonthPickerPlugin: thanks to keypoint @ sencha forum\n'
20130515 '   http://www.sencha.com/forum/showthread.php?74002-3.x-Ext.ux.MonthMenu&p=356860#post356860\n'
20130515 '*/\n'
20130515 "Ext.namespace('Ext.ux'); \n"
20130515 '\n'
20130515 'Ext.ux.MonthPickerPlugin = function() { \n'
20130515 '    var picker; \n'
20130515 '    var oldDateDefaults; \n'
20130515 '\n'
20130515 '    this.init = function(pk) { \n'
20130515 '        picker = pk; \n'
20130515 '        picker.onTriggerClick = picker.onTriggerClick.createSequence(onClick); \n'
20130515 '        picker.getValue = picker.getValue.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '        picker.beforeBlur = picker.beforeBlur.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '    }; \n'
20130515 '\n'
20130515 '    function setDefaultMonthDay() { \n'
20130515 '        oldDateDefaults = Date.defaults.d; \n'
20130515 '        Date.defaults.d = 1; \n'
20130515 '        return true; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function restoreDefaultMonthDay(ret) { \n'
20130515 '        Date.defaults.d = oldDateDefaults; \n'
20130515 '        return ret; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function onClick(e, el, opt) { \n'
20130515 '        var p = picker.menu.picker; \n'
20130515 '        p.activeDate = p.activeDate.getFirstDateOfMonth(); \n'
20130515 '        if (p.value) { \n'
20130515 '            p.value = p.value.getFirstDateOfMonth(); \n'
20130515 '        } \n'
20130515 '\n'
20130515 '        p.showMonthPicker(); \n'
20130515 '         \n'
20130515 '        if (!p.disabled) { \n'
20130515 '            p.monthPicker.stopFx(); \n'
20130515 '            p.monthPicker.show(); \n'
20130515 '\n'
20130515 "            p.mun(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mun(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '            p.onMonthClick = p.onMonthClick.createSequence(pickerClick); \n'
20130515 '            p.onMonthDblClick = p.onMonthDblClick.createSequence(pickerDblclick); \n'
20130515 "            p.mon(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mon(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerClick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 "        if (el.is('button.x-date-mp-cancel')) { \n"
20130515 '            picker.menu.hide(); \n'
20130515 "        } else if(el.is('button.x-date-mp-ok')) { \n"
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerDblclick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 '        if (el.parent() \n'
20130515 "            && (el.parent().is('td.x-date-mp-month') \n"
20130515 "            || el.parent().is('td.x-date-mp-year'))) { \n"
20130515 '\n'
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '}; \n'
20130515 '\n'
20130515 "Ext.preg('monthPickerPlugin', Ext.ux.MonthPickerPlugin);  \n"
20130515 '\n'
20130515 '//~ /* \n'
20130515 '  //~ http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/\n'
20130515 '//~ */\n'
20130515 '//~ /**\n'
20130515 ' //~ * This submit action is basically the same as the normal submit action,\n'
20130515 ' //~ * only that it uses the fields getSubmitValue() to compose the values to submit,\n'
20130515 ' //~ * instead of looping over the input-tags in the form-tag of the form.\n'
20130515 ' //~ *\n'
20130515 ' //~ * To use it, just use the OOSubmit-plugin on either a FormPanel or a BasicForm,\n'
20130515 " //~ * or explicitly call form.doAction('oosubmit');\n"
20130515 ' //~ *\n'
20130515 ' //~ * @param {Object} form\n'
20130515 ' //~ * @param {Object} options\n'
20130515 ' //~ */\n'
20130515 '//~ Ext.ux.OOSubmitAction = function(form, options){\n'
20130515 '    //~ Ext.ux.OOSubmitAction.superclass.constructor.call(this, form, options);\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.extend(Ext.ux.OOSubmitAction, Ext.form.Action.Submit, {\n'
20130515 '    //~ /**\n'
20130515 "    //~ * @cfg {boolean} clientValidation Determines whether a Form's fields are validated\n"
20130515 '    //~ * in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission.\n'
20130515 "    //~ * Pass <tt>false</tt> in the Form's submit options to prevent this. If not defined, pre-submission field validation\n"
20130515 '    //~ * is performed.\n'
20130515 '    //~ */\n'
20130515 "    //~ type : 'oosubmit',\n"
20130515 '\n'
20130515 '    //~ // private\n'
20130515 '    //~ /**\n'
20130515 '     //~ * This is nearly a copy of the original submit action run method\n'
20130515 '     //~ */\n'
20130515 '    //~ run : function(){\n'
20130515 '        //~ var o = this.options;\n'
20130515 '        //~ var method = this.getMethod();\n'
20130515 "        //~ var isPost = method == 'POST';\n"
20130515 '\n'
20130515 '        //~ var params = this.options.params || {};\n'
20130515 '        //~ if (isPost) Ext.applyIf(params, this.form.baseParams);\n'
20130515 '\n'
20130515 '        //~ //now add the form parameters\n'
20130515 '        //~ this.form.items.each(function(field)\n'
20130515 '        //~ {\n'
20130515 '            //~ if (!field.disabled)\n'
20130515 '            //~ {\n'
20130515 '                //~ //check if the form item provides a specialized getSubmitValue() and use that if available\n'
20130515 '                //~ if (typeof field.getSubmitValue == "function")\n'
20130515 '                    //~ params[field.getName()] = field.getSubmitValue();\n'
20130515 '                //~ else\n'
20130515 '                    //~ params[field.getName()] = field.getValue();\n'
20130515 '            //~ }\n'
20130515 '        //~ });\n'
20130515 '\n'
20130515 '        //~ //convert params to get style if we are not post\n'
20130515 '        //~ if (!isPost) params=Ext.urlEncode(params);\n'
20130515 '\n'
20130515 '        //~ if(o.clientValidation === false || this.form.isValid()){\n'
20130515 '            //~ Ext.Ajax.request(Ext.apply(this.createCallback(o), {\n'
20130515 '                //~ url:this.getUrl(!isPost),\n'
20130515 '                //~ method: method,\n'
20130515 '                //~ params:params, //add our values\n'
20130515 '                //~ isUpload: this.form.fileUpload\n'
20130515 '            //~ }));\n'
20130515 '\n'
20130515 '        //~ }else if (o.clientValidation !== false){ // client validation failed\n'
20130515 '            //~ this.failureType = Ext.form.Action.CLIENT_INVALID;\n'
20130515 '            //~ this.form.afterAction(this, false);\n'
20130515 '        //~ }\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '//~ });\n'
20130515 '//~ //add our action to the registry of known actions\n'
20130515 "//~ Ext.form.Action.ACTION_TYPES['oosubmit'] = Ext.ux.OOSubmitAction;\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/**\n'
20130515 'JC Watsons solution (adapted to ExtJS 3.3.1 by LS) is elegant and simple:\n'
20130515 '`A "fix" for unchecked checkbox submission  behaviour\n'
20130515 '<http://www.sencha.com/forum/showthread.php?28449>`_\n'
20130515 '\n'
20130515 'Added special handling for checkbox inputs. \n'
20130515 'ExtJS defines disabled checkboxes `readonly`, not `disabled` as for other inputs.\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Ext.lib.Ajax.serializeForm = function(form) {\n'
20130515 "    //~ console.log('20120203 linolib.js serializeForm',form);\n"
20130515 '    var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements, \n'
20130515 '        hasSubmit = false, \n'
20130515 '        encoder = encodeURIComponent, \n'
20130515 '        name, \n'
20130515 "        data = '', \n"
20130515 '        type, \n'
20130515 '        hasValue;\n'
20130515 '\n'
20130515 '    Ext.each(fElements, function(element){\n'
20130515 '        name = element.name;\n'
20130515 '        type = element.type;\n'
20130515 '\n'
20130515 "        if (!element.disabled && name && !(type == 'checkbox' && element.readonly)) {\n"
20130515 '            if (/select-(one|multiple)/i.test(type)) {\n'
20130515 '                Ext.each(element.options, function(opt){\n'
20130515 '                    if (opt.selected) {\n'
20130515 "                        hasValue = opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified;\n"
20130515 '                        data += String.format("{0}={1}&", encoder(name), encoder(hasValue ? opt.value : opt.text));\n'
20130515 '                    }\n'
20130515 '                });\n'
20130515 '            } else if (!(/file|undefined|reset|button/i.test(type))) {\n'
20130515 "                //~ if (!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)) {\n"
20130515 "                if (!(type == 'submit' && hasSubmit)) {\n"
20130515 "                    if (type == 'checkbox') {\n"
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&');\n"
20130515 "                        data += encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&';\n"
20130515 '                    } else {\n'
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + encoder(element.value) + '&');\n"
20130515 "                        data += encoder(name) + '=' + encoder(element.value) + '&';\n"
20130515 '                    }\n'
20130515 '                    hasSubmit = /submit/i.test(type);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        //~ } else {\n'
20130515 '            //~ console.log(name,type,element.readonly);\n'
20130515 '        }\n'
20130515 '    });\n'
20130515 '    return data.substr(0, data.length - 1);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Set a long timeout of fifteen minutes. \n'
20130515 'See /blog/2012/0307\n'
20130515 '*/\n'
20130515 'Ext.Ajax.timeout = 15 * 60 * 1000; \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'My fix for the "Cannot set QuickTips dismissDelay to 0" bug,\n'
20130515 'see http://www.sencha.com/forum/showthread.php?183515 \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.QuickTip,{\n'
20130515 '  showAt : function(xy){\n'
20130515 '        var t = this.activeTarget;\n'
20130515 '        //~ console.log("20120224 QuickTip.showAt",this.title,this.dismissDelay,t.dismissDelay);\n'
20130515 '        if(t){\n'
20130515 '            if(!this.rendered){\n'
20130515 '                this.render(Ext.getBody());\n'
20130515 '                this.activeTarget = t;\n'
20130515 '            }\n'
20130515 '            if(t.width){\n'
20130515 '                this.setWidth(t.width);\n'
20130515 '                this.body.setWidth(this.adjustBodyWidth(t.width - this.getFrameWidth()));\n'
20130515 '                this.measureWidth = false;\n'
20130515 '            } else{\n'
20130515 '                this.measureWidth = true;\n'
20130515 '            }\n'
20130515 "            this.setTitle(t.title || '');\n"
20130515 '            this.body.update(t.text);\n'
20130515 '            this.autoHide = t.autoHide;\n'
20130515 '            // bugfix by Luc 20120226\n'
20130515 '            if (t.dismissDelay != undefined) this.dismissDelay = t.dismissDelay;\n'
20130515 '            //~ this.dismissDelay = t.dismissDelay || this.dismissDelay;\n'
20130515 '            if(this.lastCls){\n'
20130515 '                this.el.removeClass(this.lastCls);\n'
20130515 '                delete this.lastCls;\n'
20130515 '            }\n'
20130515 '            if(t.cls){\n'
20130515 '                this.el.addClass(t.cls);\n'
20130515 '                this.lastCls = t.cls;\n'
20130515 '            }\n'
20130515 '            if(this.anchor){\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else if(t.align){ \n'
20130515 '                xy = this.el.getAlignToXY(t.el, t.align);\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else{\n'
20130515 '                this.constrainPosition = true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.QuickTip.superclass.showAt.call(this, xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Another hack. See /docs/blog/2012/0228\n'
20130515 '*/\n'
20130515 'Ext.Element.addMethods(\n'
20130515 '    function() {\n'
20130515 '        var VISIBILITY      = "visibility",\n'
20130515 '            DISPLAY         = "display",\n'
20130515 '            HIDDEN          = "hidden",\n'
20130515 '            NONE            = "none",\n'
20130515 '            XMASKED         = "x-masked",\n'
20130515 '            XMASKEDRELATIVE = "x-masked-relative",\n'
20130515 '            data            = Ext.Element.data;\n'
20130515 '\n'
20130515 '        return {\n'
20130515 '            \n'
20130515 '            mask : function(msg, msgCls) {\n'
20130515 '                var me  = this,\n'
20130515 '                    dom = me.dom,\n'
20130515 '                    dh  = Ext.DomHelper,\n'
20130515 '                    EXTELMASKMSG = "ext-el-mask-msg",\n'
20130515 '                    el,\n'
20130515 '                    mask;\n'
20130515 '                // removed the following lines. See /docs/blog/2012/0228\n'
20130515 "                //~ if (!(/^body/i.test(dom.tagName) && me.getStyle('position') == 'static')) {\n"
20130515 '                    //~ console.log(20120228,dom.tagName,me);\n'
20130515 '                    //~ me.addClass(XMASKEDRELATIVE); \n'
20130515 '                //~ }\n'
20130515 "                if (el = data(dom, 'maskMsg')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 "                if (el = data(dom, 'mask')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 '\n'
20130515 '                mask = dh.append(dom, {cls : "ext-el-mask"}, true);\n'
20130515 "                data(dom, 'mask', mask);\n"
20130515 '\n'
20130515 '                me.addClass(XMASKED);\n'
20130515 '                mask.setDisplayed(true);\n'
20130515 '                \n'
20130515 "                if (typeof msg == 'string') {\n"
20130515 "                    var mm = dh.append(dom, {cls : EXTELMASKMSG, cn:{tag:'div'}}, true);\n"
20130515 "                    data(dom, 'maskMsg', mm);\n"
20130515 '                    mm.dom.className = msgCls ? EXTELMASKMSG + " " + msgCls : EXTELMASKMSG;\n'
20130515 '                    mm.dom.firstChild.innerHTML = msg;\n'
20130515 '                    mm.setDisplayed(true);\n'
20130515 '                    mm.center(me);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                \n'
20130515 "                if (Ext.isIE && !(Ext.isIE7 && Ext.isStrict) && me.getStyle('height') == 'auto') {\n"
20130515 '                    mask.setSize(undefined, me.getHeight());\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                return mask;\n'
20130515 '            }\n'
20130515 '\n'
20130515 '            \n'
20130515 '        };\n'
20130515 '    }()\n'
20130515 ');\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 "Ext.namespace('Lino');\n"
20130515 '    \n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.subst_user_field = new Ext.form.ComboBox({});\n'
20130515 '//~ Lino.subst_user = null;\n'
20130515 'Lino.insert_subst_user = function(p){\n'
20130515 "    //~ console.log('20120714 insert_subst_user',Lino.subst_user,p);\n"
20130515 '    //~ if (Lino.subst_user_field.getValue()) {\n'
20130515 '    if (p.su) return;\n'
20130515 '    if (Lino.subst_user) {\n'
20130515 '        //~ p.su = Lino.subst_user_field.getValue();\n'
20130515 '        p.su = Lino.subst_user;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ delete p.su;\n'
20130515 '    }\n'
20130515 "    //~ console.log('20120714 insert_subst_user -->',Lino.subst_user,p);\n"
20130515 '}\n'
20130515 '\n'
20130515 'Lino.login_window = null;\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_login_window = function() {\n'
20130515 "  //~ console.log('20121103 show_login_window',arguments);\n"
20130515 '  //~ var current_window = Lino.current_window;\n'
20130515 '  if (Lino.login_window == null) {\n'
20130515 '    \n'
20130515 '      function do_login() { \n'
20130515 '            Lino.viewport.loadMask.show()\n'
20130515 '            //~ Lino.body_loadMask.show()\n'
20130515 '            login_panel.getForm().submit({ \n'
20130515 "                method:'POST', \n"
20130515 "                waitTitle:'Connecting', \n"
20130515 "                waitMsg:'Sending data...',\n"
20130515 '                success:function(){ \n'
20130515 "                  //~ console.log('20121104 logged in',arguments);\n"
20130515 '                  Lino.login_window.hide();\n'
20130515 '                  Lino.close_all_windows();\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                },\n'
20130515 '                failure: function(form,action) { \n'
20130515 '                  //~ this.loadMask.hide();\n'
20130515 '                  Lino.on_submit_failure(form,action);\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                  //~ if (Lino.current_window) Lino.current_window.main_item.loadMask.hide()\n'
20130515 '                }\n'
20130515 '                //~ failure:function(form, action){ \n'
20130515 '                    //~ alert_msg\n'
20130515 "                    //~ if(action.failureType == 'server'){ \n"
20130515 '                        //~ obj = Ext.util.JSON.decode(action.response.responseText); \n'
20130515 "                        //~ Ext.Msg.alert('Login Failed!', obj.errors.reason); \n"
20130515 '                    //~ }else{ \n'
20130515 "                        //~ Ext.Msg.alert('Warning!', 'Authentication server is unreachable : ' + action.response.responseText); \n"
20130515 '                    //~ } \n'
20130515 '                    //~ Lino.login_panel.getForm().reset(); \n'
20130515 '                //~ } \n'
20130515 '            }); \n'
20130515 '      };\n'
20130515 '    \n'
20130515 '      var login_button = new Ext.Button({ \n'
20130515 '        text:"Log in",\n'
20130515 '        formBind: true,\t \n'
20130515 '        // Function that fires when user clicks the button \n'
20130515 '        handler: do_login});\n'
20130515 '    \n'
20130515 '      var login_panel = new Ext.FormPanel({ \n'
20130515 '        //~ inspired by http://www.sencha.com/learn/a-basic-login/\n'
20130515 '        autoHeight:true,\n'
20130515 '        labelWidth:90,\n'
20130515 "        url:'/auth', \n"
20130515 '        frame:true, \n'
20130515 "        defaultType:'textfield',\n"
20130515 '        monitorValid:true,\n'
20130515 '        items:[{ \n'
20130515 '            fieldLabel:"Username", \n'
20130515 "            id: 'username',\n"
20130515 "            name:'username', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        },{ \n'
20130515 '            fieldLabel:"Password", \n'
20130515 "            name:'password', \n"
20130515 "            inputType:'password', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        }],        \n'
20130515 '        buttons:[ login_button ]});\n'
20130515 '        \n'
20130515 '      Lino.login_window = new Ext.Window({\n'
20130515 "          layout:'fit',\n"
20130515 "          defaultButton: 'username',\n"
20130515 '          width:300,\n'
20130515 '          title:"Log in", \n'
20130515 '          autoHeight:true,\n'
20130515 '          modal: true,\n'
20130515 '          closeAction: "hide",\n'
20130515 '          keys: {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            fn: function() { do_login()}\n'
20130515 '          },\n'
20130515 '          //~ defaultButton: login_button,\n'
20130515 "          //~ height:'auto',\n"
20130515 '          //~ closable: false,\n'
20130515 '          //~ resizable: false,\n'
20130515 '          //~ plain: true,\n'
20130515 '          //~ border: false,\n'
20130515 '          items: [login_panel] });\n'
20130515 '  };\n'
20130515 '  Lino.login_window.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.logout = function(id,name) {\n'
20130515 "    //~ console.log('20121104 gonna log out',arguments);\n"
20130515 '    //~ Lino.do_action\n'
20130515 "    Lino.call_ajax_action(Lino.viewport,'GET','/auth',{},'logout',undefined,undefined,function(){\n"
20130515 "        //~ console.log('20121104 logged out',arguments);\n"
20130515 '        //~ Lino.login_window.hide();\n'
20130515 '        Lino.close_all_windows();\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.set_subst_user = function(id,name) {\n'
20130515 "    //~ console.log(20120714,'Lino.set_subst_user',id,name);\n"
20130515 '    Lino.subst_user = id;\n'
20130515 '\n'
20130515 '    if(id) {\n'
20130515 '        Lino.eventStore.setBaseParam("su",id);\n'
20130515 '    } else {\n'
20130515 "      delete Lino.eventStore.baseParams['su'];\n"
20130515 '    }\n'
20130515 '\n'
20130515 '    if (Lino.current_window) \n'
20130515 '        Lino.current_window.main_item.set_base_param("su",id);\n'
20130515 '    if (Lino.viewport) Lino.permalink_handler(Lino.current_window)();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.select_subst_user = function(cmp,rec,value){\n'
20130515 '    //~ Lino.subst_user=value;\n'
20130515 '    //~ console.log(20120713,rec);\n'
20130515 '//~ }\n'
20130515 '    \n'
20130515 'Lino.current_window = null;\n'
20130515 'Lino.window_history = Array();\n'
20130515 '    \n'
20130515 'Lino.chars2width = function(cols) {  return cols * 9; }\n'
20130515 'Lino.rows2height = function(cols) {  return cols * 20; }\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Viewport = Ext.extend(Ext.Viewport,{\n'
20130515 '  layout:"fit"\n'
20130515 '  ,initComponent : function(){\n'
20130515 '    Lino.Viewport.superclass.initComponent.call(this);\n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.el,{msg:"Please wait..."});\n'
20130515 '      //~ console.log("20121118 Lino.viewport.loadMask",this.loadMask);\n'
20130515 '    },this);\n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,refresh : function() {\n'
20130515 '      var caller = this;\n'
20130515 '      console.log("20121120 Lino.Viewport.refresh()");\n'
20130515 '      if (caller.loadMask) caller.loadMask.show();\n'
20130515 '      var success = function(response) {\n'
20130515 '        if (caller.loadMask) caller.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '          if (result.html) {\n'
20130515 "              Ext.getCmp('main_area').update(result.html);\n"
20130515 '          }\n'
20130515 '          if (result.message) {\n'
20130515 '              if (result.alert) {\n'
20130515 "                  //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "                  Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '              } else {\n'
20130515 '                  Lino.notify(result.message);\n'
20130515 '              }\n'
20130515 '          }\n'
20130515 '          \n'
20130515 '          if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '          if (result.js_code) { \n'
20130515 '            var jsr = result.js_code(caller);\n'
20130515 "            //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '          };\n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      var action = {\n'
20130515 "        url : '/api/main_html',\n"
20130515 '        waitMsg: "Please wait...",\n'
20130515 '        failure: Lino.ajax_error_handler(caller),\n'
20130515 '        success: success,\n'
20130515 "        method: 'GET',\n"
20130515 '        params: {}\n'
20130515 '      };\n'
20130515 '      Lino.insert_subst_user(action.params);\n'
20130515 '      Ext.Ajax.request(action);\n'
20130515 '    \n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.open_window = function(win,st,requesting_panel) {\n'
20130515 '  //~ console.log("20120918 Lino.open_window()",win,st);\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  if (cw) {\n'
20130515 '    //~ console.log("20120918 Lino.open_window() save current status",cw.main_item.get_status());\n'
20130515 '    Lino.window_history.push({\n'
20130515 '      window:cw,\n'
20130515 '      status:cw.main_item.get_status()\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '  Lino.current_window = win;\n'
20130515 '  //~ if (st.su) \n'
20130515 '      //~ Lino.subst_user_field.setValue(st.su);\n'
20130515 '  win.main_item.set_status(st,requesting_panel);\n'
20130515 '  win.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.load_url = function(url) {\n'
20130515 '    //~ foo.bar.baz = 2; \n'
20130515 '    //~ console.log("20121120 Lino.load_url()");\n'
20130515 '    //~ Lino.body_loadMask.show();\n'
20130515 '    Lino.viewport.loadMask.show();\n'
20130515 '    //~ location.replace(url);\n'
20130515 '    document.location = url;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.close_window = function(status_update) {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  var ww = Lino.window_history.pop();\n'
20130515 '  if (ww) {\n'
20130515 '    //~ if (status_update) Ext.apply(ww.status,status_update);\n'
20130515 '    if (status_update) status_update(ww);\n'
20130515 '    ww.window.main_item.set_status(ww.status);\n'
20130515 '    Lino.current_window = ww.window;\n'
20130515 '  } else {\n'
20130515 '    Lino.current_window = null;\n'
20130515 '  }\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.close_all_windows = function() {\n'
20130515 '  if (Lino.window_history.length == 0) {\n'
20130515 '      //~ Lino.viewport.refresh();\n'
20130515 '      var url =  "/"\n'
20130515 '      //~ console.log("20121120 Lino.close_all_windows() : no window_history");\n'
20130515 '      //~ if (ADMIN_URL) \n'
20130515 '      var p = {};\n'
20130515 '      Lino.insert_subst_user(p)\n'
20130515 '      if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '      Lino.load_url(url);\n'
20130515 '  } else {\n'
20130515 '    //~ console.log("20121120 Lino.close_all_windows() with window_history");\n'
20130515 '    while (Lino.window_history.length > 0) {\n'
20130515 '      Lino.close_window();\n'
20130515 '      //~ Lino.window_history.pop().hide_really();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '  //~ Lino.current_window = null;\n'
20130515 '  //~ Lino.close_window();\n'
20130515 '  //~ var ww = \n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.kill_current_window = function() {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  Lino.current_window = null;\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.calling_window = function() {\n'
20130515 '    if (Lino.window_history.length) return Lino.window_history[Lino.window_history.length-1];\n'
20130515 '}\n'
20130515 '\n'
20130515 '//~ Lino.WindowAction = function(mainItemClass,windowConfig,mainConfig,ppf) {\n'
20130515 'Lino.WindowAction = function(windowConfig,main_item_fn) {\n'
20130515 '    //~ if(!mainConfig) mainConfig = {};\n'
20130515 '    //~ mainConfig.is_main_window = true;\n'
20130515 '    this.windowConfig = windowConfig;\n'
20130515 '    this.main_item_fn = main_item_fn;\n'
20130515 '    //~ if (ppf) mainConfig.params_panel.fields = ppf;\n'
20130515 '    //~ this.mainConfig = mainConfig;\n'
20130515 '    //~ this.mainItemClass = mainItemClass;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.WindowAction = Ext.extend(Lino.WindowAction,{\n'
20130515 '    window : null,\n'
20130515 '    //~ mainItemClass: null,\n'
20130515 '    get_window : function() {\n'
20130515 '      //~ if(mainConfig) Ext.apply(this.mainConfig,mainConfig);\n'
20130515 '      if (this.window == null)  {\n'
20130515 '          //~ this.windowConfig.main_item = new this.mainItemClass(this.mainConfig);\n'
20130515 '          this.windowConfig.main_item = this.main_item_fn();\n'
20130515 '          this.window = new Lino.Window(this.windowConfig);\n'
20130515 '      }\n'
20130515 '      return this.window;\n'
20130515 '    },\n'
20130515 '    run : function(requesting_panel,status) {\n'
20130515 "      //~ console.log('20120625 window_action.run()',this)\n"
20130515 '      Lino.open_window(this.get_window(),status,requesting_panel);\n'
20130515 '    }\n'
20130515 '  \n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.PanelMixin = {\n'
20130515 '  get_containing_window : function (){\n'
20130515 '      if (this.containing_window) return this.containing_window;\n'
20130515 '      return this.containing_panel.get_containing_window();\n'
20130515 '  }\n'
20130515 '  ,set_window_title : function(title) {\n'
20130515 '    //~ this.setTitle(title);\n'
20130515 '    var cw = this.get_containing_window();\n'
20130515 '\n'
20130515 '    //~ if (cw) {\n'
20130515 '    //~ if (cw && cw.closable) {\n'
20130515 '    if (cw && !cw.main_item.hide_window_title) {\n'
20130515 "      //~ console.log('20111202 set_window_title(',title,') for',this.containing_window);\n"
20130515 '      //~ if (! this.containing_window.rendered) console.log("WARNING: not rendered!");\n'
20130515 '      cw.setTitle(title);\n'
20130515 '    //~ } else {\n'
20130515 '      //~ document.title = title;\n'
20130515 '    }\n'
20130515 "    //~ else console.log('20111202 not set_window_title(',title,') for',this);\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 "Lino.status_bar = new Ext.ux.StatusBar({defaultText:'Lino version 1.6.7.'});\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.edit_tinymce_text = function(panel,options) {\n'
20130515 '  // `panel` is the RichTextPanel\n'
20130515 '  //~ console.log(20111220,panel);\n'
20130515 '  //~ var rec = panel.get_current_record();\n'
20130515 '  var rec = panel.containing_panel.get_current_record();\n'
20130515 "  var value = rec ? rec.data[panel.editor.name] : '';\n"
20130515 '  var saving = false;\n'
20130515 '  var todo_after_save = false;\n'
20130515 '  var discard_changes = false;\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  function save() {\n'
20130515 "    //~ if (todo_after_save) {alert('tried to save again'); return; }\n"
20130515 "    if (saving) {alert('tried to save again'); return; }\n"
20130515 '    //~ var url = panel.containing_window.main_item.get_record_url(rec.id);\n'
20130515 '    var url = panel.containing_panel.get_record_url(rec.id);\n'
20130515 '    var params = Ext.apply({},panel.containing_panel.get_base_params());\n'
20130515 '    params[panel.editor.name] = editor.getValue();\n'
20130515 '    //~ params.su = Lino.subst_user;\n'
20130515 '    //~ Lino.insert_subst_user(params);\n'
20130515 '    var a = { \n'
20130515 '      params: params, \n'
20130515 "      method: 'PUT',\n"
20130515 '      url: url,\n'
20130515 '      failure: function() {\n'
20130515 '          //~ if (editor.ed.getContainer()) \n'
20130515 '          editor.ed.setProgressState(0);\n'
20130515 '          todo_after_save = false;\n'
20130515 '          saving = false;\n'
20130515 "          console.log('tinymce.save() failed. sorry.',arguments);\n"
20130515 '        },\n'
20130515 '      success: function() {\n'
20130515 '        saving = false;\n'
20130515 '        //~ if (editor.ed.getContainer()) \n'
20130515 '        editor.ed.setProgressState(0);\n'
20130515 '        rec.data[panel.editor.name] = editor.getValue();\n'
20130515 '        if(todo_after_save) {\n'
20130515 '            var fn = todo_after_save;\n'
20130515 '            todo_after_save = false;\n'
20130515 '            fn();\n'
20130515 '        }\n'
20130515 '        //~ panel.containing_window.set_current_record(rec);\n'
20130515 '        panel.refresh();\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    //~ if (editor.ed.getContainer()) \n'
20130515 '    editor.ed.setProgressState(1); // Show progress\n'
20130515 '    saving = true;\n'
20130515 '    //~ console.log(a);\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '  };\n'
20130515 '  function save_callback() {\n'
20130515 '      save();\n'
20130515 '      //~ save(function(){editor.ed.setDirty(false);})\n'
20130515 '      /* return true have the save button disabled.  \n'
20130515 "      That's not perfect because the PUT is asynchronous \n"
20130515 '      and the response is not yet known.\n'
20130515 '      */\n'
20130515 '      return true;\n'
20130515 '  }\n'
20130515 '  //~ var actions = [\n'
20130515 '    //~ {text:"Save",handler:save}\n'
20130515 '  //~ ]; \n'
20130515 '  //~ console.log(20110610,panel.editor.disabled);\n'
20130515 '  var settings = {};\n'
20130515 '  Ext.apply(settings,{\n'
20130515 '        readonly: panel.editor.disabled,\n'
20130515 '        //~ language: "de",\n'
20130515 '        plugins : "save,emotions,spellchecker,advhr,insertdatetime,preview,table,searchreplace,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "save,cancel,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect,|,search,replace",\n'
20130515 '        theme_advanced_buttons2 : "cut,copy,paste,template,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,|,code,preview,|,forecolor,backcolor",\n'
20130515 '        theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions,|,tablecontrols",      \n'
20130515 '        theme_advanced_resizing : false,\n'
20130515 '        convert_urls : false,\n'
20130515 '        save_onsavecallback : save_callback,\n'
20130515 '        save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '  });\n'
20130515 '  Ext.apply(settings,options);\n'
20130515 '  var editor = new Ext.ux.TinyMCE({\n'
20130515 '      value : value,\n'
20130515 '      tinymceSettings: settings\n'
20130515 '    });\n'
20130515 '  var win = new Ext.Window({\n'
20130515 '    title: rec.title, \n'
20130515 '    //~ bbar: actions,\n'
20130515 "    layout: 'fit',\n"
20130515 '    items: editor,\n'
20130515 '    width: 600, \n'
20130515 '    height:500,\n'
20130515 '    minWidth: 100,\n'
20130515 '\t\tminHeight: 100,\n'
20130515 '    modal: true,\n'
20130515 '    resizable: true,\n'
20130515 '    maximizable: true,\n'
20130515 '    //~ maximized: true,\n'
20130515 '    //~ closeAction: "close"\n'
20130515 '    closeAction: "hide"\n'
20130515 '    //~ hideMode: "offsets",\n'
20130515 '    //~ constrainHeader: true,\n'
20130515 "    //~ bodyStyle: 'padding: 10px'\n"
20130515 '  });\n'
20130515 '\n'
20130515 "  //~ win.on('beforeclose',function() {\n"
20130515 "  win.on('beforehide',function() {\n"
20130515 '    if (todo_after_save) return false;\n'
20130515 '    if (discard_changes) return true;\n'
20130515 '    if (editor.isDirty()) {\n'
20130515 '        //~ var ok = false;\n'
20130515 '        //~ var allowClose = true;\n'
20130515 '        var config = {title:"Confirmation"};\n'
20130515 '        config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        config.msg = "Save changes to text ?";\n'
20130515 '        config.modal = true;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 "          //~ console.log('do_when_clean',buttonId)\n"
20130515 '          if (buttonId == "yes") {\n'
20130515 "              /* we cancel this close, but save()'s onSuccess will call again.*/\n"
20130515 '              //~ allowClose = false;\n'
20130515 '              todo_after_save = function(){win.hide();}\n'
20130515 "              editor.ed.execCommand('mceSave');\n"
20130515 '              //~ editor.ed.save(function(){win.close();});\n'
20130515 '          } else if (buttonId == "no") { \n'
20130515 '              discard_changes = true;\n'
20130515 '              win.hide()\n'
20130515 '          //~ } else if (buttonId == "cancel") { \n'
20130515 '            //~ ok = true;\n'
20130515 '              //~ allowClose = false;\n'
20130515 '          //~ } else { \n'
20130515 "            //~ console.log('unknwon buttonId:',buttonId);\n"
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return false;\n'
20130515 '        //~ return allowClose;\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '  win.show();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/* \n'
20130515 '  Originally copied from Ext JS Library 3.3.1\n'
20130515 '  Modifications by Luc Saffre : \n'
20130515 '  - rendering of phantom records\n'
20130515 '  - fire afteredit event\n'
20130515 '  - react on dblclcik, not on single click\n'
20130515 '\n'
20130515 ' */\n'
20130515 'Lino.CheckColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 '\n'
20130515 '    processEvent : function(name, e, grid, rowIndex, colIndex){\n'
20130515 "        //~ console.log('20110713 Lino.CheckColumn.processEvent',name)\n"
20130515 "        if (name == 'click') {\n"
20130515 "        //~ if (name == 'mousedown') {\n"
20130515 "        //~ if (name == 'dblclick') {\n"
20130515 '            return this.toggleValue(grid, rowIndex, colIndex);\n'
20130515 '        } else {\n'
20130515 '            return Ext.grid.ActionColumn.superclass.processEvent.apply(this, arguments);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    toggleValue : function (grid,rowIndex,colIndex) {\n'
20130515 '        var record = grid.store.getAt(rowIndex);\n'
20130515 '        var dataIndex = grid.colModel.getDataIndex(colIndex);\n'
20130515 '        // 20120514\n'
20130515 '        //~ if(record.data.disabled_fields && record.data.disabled_fields[dataIndex]) {\n'
20130515 '          //~ Lino.notify("This field is disabled");\n'
20130515 '          //~ return false;\n'
20130515 '        //~ }\n'
20130515 '      \n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("This field is disabled.");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        var startValue = record.data[dataIndex];\n'
20130515 '        var value = !startValue;\n'
20130515 '        //~ record.set(this.dataIndex, value);\n'
20130515 '        var e = {\n'
20130515 '            grid: grid,\n'
20130515 '            record: record,\n'
20130515 '            field: dataIndex,\n'
20130515 '            originalValue: startValue,\n'
20130515 '            value: value,\n'
20130515 '            row: rowIndex,\n'
20130515 '            column: colIndex,\n'
20130515 '            cancel: false\n'
20130515 '        };\n'
20130515 '        if(grid.fireEvent("beforeedit", e) !== false && !e.cancel){\n'
20130515 '        //~ if(grid.fireEvent("validateedit", e) !== false && !e.cancel){\n'
20130515 '            record.set(dataIndex, value);\n'
20130515 '            delete e.cancel;\n'
20130515 '            grid.fireEvent("afteredit", e);\n'
20130515 '        }\n'
20130515 '        return false; // Cancel event propagation\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    renderer : function(v, p, record){\n'
20130515 "        if (record.phantom) return '';\n"
20130515 "        p.css += ' x-grid3-check-col-td'; \n"
20130515 '        return String.format(\'<div class="x-grid3-check-col{0}">&#160;</div>\', v ? \'-on\' : \'\');\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // Deprecate use as a plugin. Remove in 4.0\n'
20130515 '    // init: Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 '// register ptype. Deprecate. Remove in 4.0\n'
20130515 "// Ext.preg('checkcolumn', Lino.CheckColumn);\n"
20130515 '\n'
20130515 '// backwards compat. Remove in 4.0\n'
20130515 '// Ext.grid.CheckColumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '// register Column xtype\n'
20130515 'Ext.grid.Column.types.checkcolumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '\n'
20130515 '/* 20110725 : \n'
20130515 'Lino.on_tab_activate is necessary \n'
20130515 'in contacts.Person.2.dtl \n'
20130515 "(but don't ask me why...)\n"
20130515 '*/\n'
20130515 'Lino.on_tab_activate = function(item) {\n'
20130515 "  //~ console.log('activate',item); \n"
20130515 '  if (item.rendered && item.doLayout) item.doLayout();\n'
20130515 '  //~ if (item.rendered) item.doLayout();\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.TimeField = Ext.extend(Ext.form.TimeField,{\n'
20130515 "  format: 'H:i',\n"
20130515 '  increment: 15\n'
20130515 '  });\n'
20130515 'Lino.DateField = Ext.extend(Ext.form.DateField,{\n'
20130515 '  boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  });\n'
20130515 'Lino.DatePickerField = Ext.extend(Ext.DatePicker,{\n'
20130515 '  //~ boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  //~ altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  formatDate : function(date){\n'
20130515 '      console.log("20121203 formatDate",this.name,date);\n'
20130515 '      return Ext.isDate(date) ? date.dateFormat(this.format) : date;\n'
20130515 '  }\n'
20130515 '  });\n'
20130515 'Lino.DateTimeField = Ext.extend(Ext.ux.form.DateTime,{\n'
20130515 "  dateFormat: 'd.m.Y',\n"
20130515 "  timeFormat: 'H:i',\n"
20130515 "  //~ hiddenFormat: 'd.m.Y H:i'\n"
20130515 '  });\n'
20130515 'Lino.URLField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 "  //~ triggerClass : 'x-form-world-trigger',\n"
20130515 "  vtype: 'url',\n"
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    window.open(this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 'Lino.IncompleteDateField = Ext.extend(Ext.form.TextField,{\n'
20130515 '  //~ regex: /^-?\\d+-[01]\\d-[0123]\\d$/,\n'
20130515 '  //~ regex: /^[0123]\\d\\.[01]\\d\\.-?\\d+$/,\n'
20130515 '  maxLength: 10,\n'
20130515 '  boxMinWidth: Lino.chars2width(10),\n'
20130515 '  regex: /^[0123]?\\d\\.[01]?\\d\\.-?\\d+$/,\n'
20130515 "  regexText: 'Enter a date in format YYYY-MM-DD (use zeroes for unknown parts).'\n"
20130515 '  });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.make_dropzone = function(cmp) {\n'
20130515 "    //~ cmp.on('render', function(ct, position){\n"
20130515 '      //~ ct.el.on({\n'
20130515 '        //~ dragenter:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,dragover:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ event.stopEvent();\n'
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,drop:{\n'
20130515 '          //~ scope:this\n'
20130515 '          //~ ,fn:function(event){\n'
20130515 '            //~ event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            //~ var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            //~ if(files === undefined){\n'
20130515 '              //~ return true;\n'
20130515 '            //~ }\n'
20130515 '            //~ var len = files.length;\n'
20130515 '            //~ while(--len >= 0){\n'
20130515 '              //~ console.log(files[len]);\n'
20130515 '              //~ // this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            //~ }\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ });\n'
20130515 '    //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.FileUploadField = Ext.ux.form.FileUploadField;\n'
20130515 '\n'
20130515 'Lino.FileUploadField = Ext.extend(Ext.ux.form.FileUploadField,{\n'
20130515 '    onRender : function(ct, position){\n'
20130515 '      Lino.FileUploadField.superclass.onRender.call(this, ct, position);\n'
20130515 '      this.el.on({\n'
20130515 '        dragenter:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,dragover:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          event.stopEvent();\n'
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,drop:{\n'
20130515 '          scope:this\n'
20130515 '          ,fn:function(event){\n'
20130515 '            event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            if(files === undefined){\n'
20130515 '              return true;\n'
20130515 '            }\n'
20130515 '            var len = files.length;\n'
20130515 '            while(--len >= 0){\n'
20130515 '              console.log(files[len]);\n'
20130515 '              //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.FileField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 '  editable: false,\n'
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    if (this.getValue()) window.open(MEDIA_URL + '/'+this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.file_field_handler = function(panel,config) {\n'
20130515 '  //~ if (instanceof Lino.DetailWrapper) {\n'
20130515 "  if (panel.action_name == 'insert') {\n"
20130515 '  //~ if (panel.get_current_record().phantom) {\n'
20130515 '      panel.has_file_upload = true;\n'
20130515 '\n'
20130515 '      var f = new Lino.FileUploadField(config);\n'
20130515 '      //~ Lino.make_dropzone(f);\n'
20130515 '      return f;\n'
20130515 '      //~ return new Ext.ux.form.FileUploadField(config);\n'
20130515 '      //~ return new Lino.FileField(config);\n'
20130515 '      \n'
20130515 '  } else {\n'
20130515 '      //~ return new Lino.URLField(config);\n'
20130515 '      return new Lino.FileField(config);\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.VBorderPanel = Ext.extend(Ext.Panel,{\n'
20130515 '    constructor : function(config) {\n'
20130515 "      config.layout = 'border';\n"
20130515 '      delete config.layoutConfig;\n'
20130515 '      Lino.VBorderPanel.superclass.constructor.call(this,config);\n'
20130515 '      for(var i=0; i < this.items.length;i++) {\n'
20130515 '        var item = this.items.get(i);\n'
20130515 '        if (this.isVertical(item) && item.collapsible) {\n'
20130515 "          item.on('collapse',this.onBodyResize,this);\n"
20130515 "          item.on('expand',this.onBodyResize,this);\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '    },\n'
20130515 '    isVertical : function(item) {\n'
20130515 "       return (item.region == 'north' || item.region == 'south' || item.region == 'center');\n"
20130515 '    },\n'
20130515 '    onBodyResize: function(w, h){\n'
20130515 "        //~ console.log('VBorderPanel.onBodyResize',this.title)\n"
20130515 '      if (this.isVisible()) { // to avoid "Uncaught TypeError: Cannot call method \'getHeight\' of undefined."\n'
20130515 '        var sumflex = 0;\n'
20130515 '        var availableHeight = this.getInnerHeight();\n'
20130515 '        var me = this;\n'
20130515 '        this.items.each(function(item){\n'
20130515 '          if (me.isVertical(item)) {\n'
20130515 '              if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  if (item.rendered) availableHeight -= item.getHeight();\n'
20130515 '              } else {\n'
20130515 '                  sumflex += item.flex;\n'
20130515 '              }\n'
20130515 '          } \n'
20130515 '          \n'
20130515 '        });\n'
20130515 '        //~ for(var i=0; i < this.items.length;i++) {\n'
20130515 '          //~ var item = this.items.get(i);\n'
20130515 '          //~ // if (this.isVertical(item) && item.getResizeEl()) {\n'
20130515 '          //~ if (this.isVertical(item)) {\n'
20130515 '              //~ if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  //~ // item.syncSize()\n'
20130515 '                  //~ // item.doLayout()\n'
20130515 '                  //~ // if (item.region == "north") console.log(\'region north\',item.getHeight(),item.id, item);\n'
20130515 "                  //~ // if (item.getHeight() == 0) console.log(20100921,'both flex and getHeight() are 0!');\n"
20130515 '                  //~ availableHeight -= item.getHeight();\n'
20130515 '              //~ } else {\n'
20130515 '                  //~ sumflex += item.flex;\n'
20130515 '                  //~ // console.log(item.flex);\n'
20130515 '              //~ }\n'
20130515 '          //~ } \n'
20130515 "          //~ // else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        //~ }\n'
20130515 '        var hunit = availableHeight / sumflex;\n'
20130515 "        //~ console.log('sumflex=',sumflex,'hunit=',hunit, 'availableHeight=',availableHeight);\n"
20130515 '        for(var i=0; i < this.items.length;i++) {\n'
20130515 '          var item = this.items.get(i);\n'
20130515 '          if (this.isVertical(item)) {\n'
20130515 '              if (item.flex != 0 && ! item.collapsed) {\n'
20130515 '                  item.setHeight(hunit * item.flex);\n'
20130515 "                  //~ console.log(item.region,' : height set to',item.getHeight());\n"
20130515 '              }\n'
20130515 '          }\n'
20130515 "          //~ else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '      Lino.VBorderPanel.superclass.onBodyResize.call(this, w, h);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 '  modifications to the standard behaviour of a CellSelectionModel:\n'
20130515 '  \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.grid.CellSelectionModel, {\n'
20130515 '//~ var dummy = {\n'
20130515 '\n'
20130515 '    handleKeyDown : function(e){\n'
20130515 "        /* removed because F2 wouldn't pass\n"
20130515 '        if(!e.isNavKeyPress()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        */\n'
20130515 "        //~ console.log('handleKeyDown',e)\n"
20130515 '        var k = e.getKey(),\n'
20130515 '            g = this.grid,\n'
20130515 '            s = this.selection,\n'
20130515 '            sm = this,\n'
20130515 '            walk = function(row, col, step){\n'
20130515 '                return g.walkCells(\n'
20130515 '                    row,\n'
20130515 '                    col,\n'
20130515 '                    step,\n'
20130515 '                    g.isEditor && g.editing ? sm.acceptsNav : sm.isSelectable, \n'
20130515 '                    sm\n'
20130515 '                );\n'
20130515 '            },\n'
20130515 '            cell, newCell, r, c, ae;\n'
20130515 '\n'
20130515 '        switch(k){\n'
20130515 '            case e.ESC:\n'
20130515 '            case e.PAGE_UP:\n'
20130515 '            case e.PAGE_DOWN:\n'
20130515 '                break;\n'
20130515 '            default:\n'
20130515 "                // e.stopEvent(); // removed because Browser keys like Alt-Home, Ctrl-R wouldn't work\n"
20130515 '                break;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        if(!s){\n'
20130515 '            cell = walk(0, 0, 1); \n'
20130515 '            if(cell){\n'
20130515 '                this.select(cell[0], cell[1]);\n'
20130515 '            }\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        cell = s.cell;  \n'
20130515 '        r = cell[0];    \n'
20130515 '        c = cell[1];    \n'
20130515 '        \n'
20130515 '        switch(k){\n'
20130515 '            case e.TAB:\n'
20130515 '                if(e.shiftKey){\n'
20130515 '                    newCell = walk(r, c - 1, -1);\n'
20130515 '                }else{\n'
20130515 '                    newCell = walk(r, c + 1, 1);\n'
20130515 '                }\n'
20130515 '                break;\n'
20130515 '            case e.HOME:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  if (!e.hasModifier()){\n'
20130515 '                      newCell = [r, 0];\n'
20130515 "                      //~ console.log('home',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '                      if (activePage > 1) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          t.moveFirst();\n'
20130515 '                          return;\n'
20130515 '                      }\n'
20130515 '                      newCell = [0, c];\n'
20130515 '                      break;\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.END:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  c = g.colModel.getColumnCount()-1;\n'
20130515 '                  if (!e.hasModifier()) {\n'
20130515 '                      newCell = [r, c];\n'
20130515 "                      //~ console.log('end',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var d = t.getPageData();\n'
20130515 '                      if (d.activePage < d.pages) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          var self = this;\n'
20130515 "                          t.on('change',function(tb,pageData) {\n"
20130515 '                              var r = g.store.getCount()-2;\n'
20130515 '                              self.select(r, c);\n'
20130515 "                              //~ console.log('change',r,c);\n"
20130515 '                          },this,{single:true});\n'
20130515 '                          t.moveLast();\n'
20130515 '                          return;\n'
20130515 '                      } else {\n'
20130515 '                          newCell = [g.store.getCount()-1, c];\n'
20130515 "                          //~ console.log('ctrl-end',newCell);\n"
20130515 '                          break;\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.DOWN:\n'
20130515 '                newCell = walk(r + 1, c, 1);\n'
20130515 '                break;\n'
20130515 '            case e.UP:\n'
20130515 '                newCell = walk(r - 1, c, -1);\n'
20130515 '                break;\n'
20130515 '            case e.RIGHT:\n'
20130515 '                newCell = walk(r, c + 1, 1);\n'
20130515 '                break;\n'
20130515 '            case e.LEFT:\n'
20130515 '                newCell = walk(r, c - 1, -1);\n'
20130515 '                break;\n'
20130515 '            case e.F2:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.isEditor && !g.editing) {\n'
20130515 '                        g.startEditing(r, c);\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.INSERT:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.ls_insert_handler && !g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.show_insert(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.DELETE:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (!g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.delete_selected(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.ENTER:\n'
20130515 '                e.stopEvent();\n'
20130515 '                g.onCellDblClick(r,c);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '\n'
20130515 '        if(newCell){\n'
20130515 '          e.stopEvent();\n'
20130515 '          r = newCell[0];\n'
20130515 '          c = newCell[1];\n'
20130515 '          this.select(r, c); \n'
20130515 '          if(g.isEditor && g.editing){ \n'
20130515 '            ae = g.activeEditor;\n'
20130515 '            if(ae && ae.field.triggerBlur){\n'
20130515 '                ae.field.triggerBlur();\n'
20130515 '            }\n'
20130515 '            g.startEditing(r, c);\n'
20130515 '          }\n'
20130515 '        //~ } else if (g.isEditor && !g.editing && e.charCode) {\n'
20130515 '        //~ // } else if (!e.isSpecialKey() && g.isEditor && !g.editing) {\n'
20130515 '            //~ g.set_start_value(String.fromCharCode(e.charCode));\n'
20130515 '            //~ // g.set_start_value(String.fromCharCode(k));\n'
20130515 '            //~ // g.set_start_value(e.charCode);\n'
20130515 '            //~ g.startEditing(r, c);\n'
20130515 '            //~ // e.stopEvent();\n'
20130515 '            //~ return;\n'
20130515 '        // } else {\n'
20130515 "          // console.log('20120513',e,g);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ };\n'
20130515 '});\n'
20130515 '\n'
20130515 ' \n'
20130515 '\n'
20130515 'function PseudoConsole() {\n'
20130515 '    this.log = function() {};\n'
20130515 '};\n'
20130515 "if (typeof(console) == 'undefined') console = new PseudoConsole();\n"
20130515 '\n'
20130515 'Lino.notify = function(msg) {\n'
20130515 "  if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg);\n"
20130515 '  Lino.status_bar.setStatus({\n'
20130515 '    text: msg,\n'
20130515 "    iconCls: 'ok-icon',\n"
20130515 '    clear: true // auto-clear after a set interval\n'
20130515 '  });\n'
20130515 "  //~ Ext.getCmp('konsole').setTitle(msg.replace(/\\n/g,'<br/>'));\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg.replace(/\\n/g,'<br/>'));\n"
20130515 '};\n'
20130515 'Lino.alert = function(msg) {\n'
20130515 "  //~ if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  Ext.MessageBox.alert('Notify',msg);\n"
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.show_about = function() {\n'
20130515 '  //~ new Ext.Window({\n'
20130515 '    //~ width: 400, height: 400,\n'
20130515 '    //~ title: "About",\n'
20130515 '    //~ html: \'<a href="http://www.extjs.com" target="_blank">ExtJS</a> version \' + Ext.version\n'
20130515 '  //~ }).show();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'function obj2str(o) {\n'
20130515 "  if (typeof o != 'object') return String(o);\n"
20130515 "  var s = '';\n"
20130515 '  for (var p in o) {\n'
20130515 "    s += p + ': ' + obj2str(o[p]) + '\\n';\n"
20130515 '  }\n'
20130515 '  return s;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.on_store_exception = function (store,type,action,options,response,arg) {\n'
20130515 '  //~ throw response;\n'
20130515 '  console.log("on_store_exception: store=",store,\n'
20130515 '    "type=",type,\n'
20130515 '    "action=",action,\n'
20130515 '    "options=",options,\n'
20130515 '    "response=",response,\n'
20130515 '    "arg=",arg);\n'
20130515 '  if (arg) { console.log(arg.stack)};\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.on_submit_success = function(form, action) {\n'
20130515 '   //~ Lino.notify(action.result.message);\n'
20130515 '   //~ this.close();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.on_submit_failure = function(form, action) {\n'
20130515 '    //~ Lino.notify();\n'
20130515 '  // action may be undefined\n'
20130515 '    switch (action.failureType) {\n'
20130515 '        case Ext.form.Action.CLIENT_INVALID:\n'
20130515 "            Ext.Msg.alert('Client-side failure', 'Form fields may not be submitted with invalid values');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.CONNECT_FAILURE:\n'
20130515 "            Ext.Msg.alert('Connection failure', 'Ajax communication failed');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.SERVER_INVALID:\n'
20130515 "            Ext.Msg.alert('Server-side failure', action.result.message);\n"
20130515 '   }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Lino.save_wc_handler = function(ww) {\n'
20130515 '  return function(event,toolEl,panel,tc) {\n'
20130515 '    var pos = panel.getPosition();\n'
20130515 '    var size = panel.getSize();\n'
20130515 '    wc = ww.get_window_config();\n'
20130515 '    Ext.applyIf(wc,{ \n'
20130515 '      x:pos[0],y:pos[1],height:size.height,width:size.width,\n'
20130515 '      maximized:panel.maximized});\n'
20130515 "    Lino.do_action(ww,{url:'/window_configs/'+ww.config.permalink_name,params:wc,method:'POST'});\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '*/\n'
20130515 '\n'
20130515 'Lino.show_in_own_window_button = function(handler) {\n'
20130515 '  return {\n'
20130515 '    qtip: "Show this panel in own window", \n'
20130515 '    id: "up",\n'
20130515 '    handler: function(event,toolEl,panel, tc) {\n'
20130515 "      //~ console.log('20111206 report_window_button',panel,handler);\n"
20130515 '      //~ var bp = ww.get_master_params();\n'
20130515 '      //~ panel.containing_window = ww; // for HtmlBox. see blog/2010/1022\n'
20130515 '      //~ handler(panel,{base_params:bp});\n'
20130515 '      //~ handler(panel,{base_params:panel.get_master_params()});\n'
20130515 '      handler.run(null,{base_params:panel.containing_panel.get_master_params()});\n'
20130515 '      //~ handler(panel,{master_panel:panel.containing_window.main_item});\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.delete_selected = function(panel) {\n'
20130515 '  //~ console.log("Lino.delete_selected",panel);\n'
20130515 '  var recs1 = panel.get_selected();\n'
20130515 '  var recs = [];\n'
20130515 '  for ( var i=0; i < recs1.length; i++ ) { if (! recs1[i].phantom) recs.push(recs1[i]); }\n'
20130515 '  if (recs.length == 0) {\n'
20130515 '    Lino.notify("Please select at least one record.");\n'
20130515 '    return;\n'
20130515 '  };\n'
20130515 '  if (recs.length == 1) {\n'
20130515 '      if (recs[0].disable_delete) {\n'
20130515 '        Lino.alert(recs[0].disable_delete);\n'
20130515 '        return;\n'
20130515 '      }\n'
20130515 '  };\n'
20130515 '  //~ console.log(recs);\n'
20130515 '  Ext.MessageBox.show({\n'
20130515 '    title: "Confirmation",\n'
20130515 '    msg: String.format("Delete {0} rows. Are you sure?",String(recs.length)),\n'
20130515 '    //~ msg: "Delete " + String(recs.length) + " rows. Are you sure?",\n'
20130515 '    //~ buttons: Ext.MessageBox.YESNOCANCEL,\n'
20130515 '    buttons: Ext.MessageBox.YESNO,\n'
20130515 '    fn: function(btn) {\n'
20130515 "      if (btn == 'yes') {\n"
20130515 '        for ( var i=0; i < recs.length; i++ ) {\n'
20130515 '          Lino.do_action(panel,{\n'
20130515 "              method:'DELETE',\n"
20130515 "              url:  '/api' + panel.ls_url + '/' + recs[i].id,\n"
20130515 '              after_success: panel.after_delete.createDelegate(panel)\n'
20130515 '          })\n'
20130515 '        }\n'
20130515 '        //~ caller.after_delete();\n'
20130515 '      }\n'
20130515 '      else Lino.notify("Dann eben nicht.");\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.action_handler = function (panel,on_success,on_confirm) {\n'
20130515 '  return function (response) {\n'
20130515 '    //~ console.log(20120608,panel);\n'
20130515 '    if (panel instanceof Lino.GridPanel) {\n'
20130515 '        //~ gridmode = false;\n'
20130515 '        gridmode = true;\n'
20130515 "        //~ console.log('20120608 yes');\n"
20130515 '    } else {\n'
20130515 '        gridmode = false;\n'
20130515 "        //~ console.log('20120608 no');\n"
20130515 '    }\n'
20130515 '    panel.loadMask.hide(); // 20120211\n'
20130515 '    if (!response.responseText) return ;\n'
20130515 '    var result = Ext.decode(response.responseText);\n'
20130515 "    //~ console.log('Lino.action_handler()','result is',result,'on_confirm is',on_confirm);\n"
20130515 '    \n'
20130515 '    if (result.eval_js) {\n'
20130515 '        //~ console.log(20120618,result.eval_js);\n'
20130515 '        eval(result.eval_js);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.xcallback) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        var config = {title:result.xcallback.title};\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        config.buttons = result.xcallback.buttons;\n'
20130515 '        config.msg = result.message;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 '          panel.loadMask.show(); \n'
20130515 '          //~ Lino.insert_subst_user(p);\n'
20130515 '          Ext.Ajax.request({\n'
20130515 "            method: 'GET',\n"
20130515 "            url: '/callbacks/'+result.xcallback.id + '/' + buttonId,\n"
20130515 '            //~ params: {bi: buttonId},\n'
20130515 '            success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '          });\n'
20130515 "          //~ Lino.call_ajax_action(panel,'GET',)\n"
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (on_success && result.success) on_success(result);\n'
20130515 '    \n'
20130515 '    //~ if (on_confirm && result.confirm_message) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        //~ // config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        //~ config.msg = result.confirm_message;\n'
20130515 '        //~ config.fn = function(buttonId,text,opt) {\n'
20130515 '          //~ if (buttonId == "yes") {\n'
20130515 '              //~ on_confirm(panel,undefined,result.step);\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '        //~ Ext.MessageBox.show(config);\n'
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    //~ if (result.dialog_fn) {\n'
20130515 "        //~ console.log('20120928 TODO',result.dialog_fn);\n"
20130515 '    //~ }\n'
20130515 '    if (result.message) {\n'
20130515 '        //~ if (result.alert && ! gridmode) {\n'
20130515 '        if (result.alert) { // 20120628b \n'
20130515 "            //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '            if (result.alert === true) result.alert = "Alert";\n'
20130515 '            Ext.MessageBox.alert(result.alert,result.message);\n'
20130515 '        } else {\n'
20130515 '            Lino.notify(result.message);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    // \n'
20130515 '    if (result.data_record && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 '        panel.set_status({data_record:result.data_record});\n'
20130515 '    }\n'
20130515 '    else if (result.new_status && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.set_status(result.new_status);\n'
20130515 '    }\n'
20130515 '    else if (result.goto_record_id != undefined && ! gridmode) {\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.load_record_id(result.goto_record_id);\n'
20130515 '    }\n'
20130515 '    else if (result.refresh_all) {\n'
20130515 '        var cw = panel.get_containing_window();\n'
20130515 '        //~ console.log("20120123 refresh_all");\n'
20130515 '        if (cw) {\n'
20130515 '          cw.main_item.refresh();\n'
20130515 '        }\n'
20130515 '        else console.log("20120123 cannot refresh_all",panel);\n'
20130515 '    } else {\n'
20130515 '        //~ console.log("20121212 b gonna refresh",panel);\n'
20130515 '        if (result.refresh) panel.refresh();\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.open_url) {\n'
20130515 '        //~ console.log(20111126,result.open_url);\n'
20130515 '        //~ if (!result.message)\n'
20130515 '            //~ Lino.notify(\'Open new window <a href="\'+result.open_url+\'" target="_blank">\'+result.open_url+\'</a>\');\n'
20130515 '        window.open(result.open_url,\'foo\',"");\n'
20130515 '        //~ document.location = result.open_url;\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.do_action = function(caller,action) {\n'
20130515 '  action.success = function(response) {\n'
20130515 '    if (caller.loadMask) caller.loadMask.hide();\n'
20130515 "    //~ console.log('Lino.do_action()',action,'action success',response);\n"
20130515 '    if (action.after_success) {\n'
20130515 "        //~ console.log('Lino.do_action() calling after_success');\n"
20130515 '        action.after_success();\n'
20130515 '    }\n'
20130515 '    if (response.responseText) {\n'
20130515 '      var result = Ext.decode(response.responseText);\n'
20130515 "      //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '      if (result.message) {\n'
20130515 '          if (result.alert) {\n'
20130515 "              //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "              Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '          } else {\n'
20130515 '              Lino.notify(result.message);\n'
20130515 '          }\n'
20130515 '      }\n'
20130515 '      \n'
20130515 "      //~ if (result.alert_msg) Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '      //~ if (result.message) Lino.notify(result.message);\n'
20130515 '      if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '      if (result.js_code) { \n'
20130515 "        //~ console.log('Lino.do_action()',action,'gonna call js_code in',result);\n"
20130515 '        var jsr = result.js_code(caller);\n'
20130515 "        //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '        if (action.after_js_code) {\n'
20130515 "          //~ console.log('Lino.do_action()',action,'gonna call after_js_code');\n"
20130515 '          action.after_js_code(jsr);\n'
20130515 "          //~ console.log('Lino.do_action()',action,'returned from after_js_code');\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('Lino.do_action()',action,' : after_js_code is false');\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '    }\n'
20130515 '  };\n'
20130515 '  Ext.applyIf(action,{\n'
20130515 '    waitMsg: "Please wait...",\n'
20130515 '    failure: Lino.ajax_error_handler(caller),\n'
20130515 '    params: {}\n'
20130515 '  });\n'
20130515 '  //~ action.params.su = Lino.subst_user;\n'
20130515 '  Lino.insert_subst_user(action.params);\n'
20130515 '  \n'
20130515 '  Ext.Ajax.request(action);\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gup = function( name )\n'
20130515 '//~ {\n'
20130515 '  //~ // Thanks to http://www.netlobo.com/url_query_string_javascript.html\n'
20130515 '  //~ name = name.replace(/[\\[]/,"\\\\\\[").replace(/[\\]]/,"\\\\\\]");\n'
20130515 '  //~ var regexS = "[\\\\?&]"+name+"=([^&#]*)";\n'
20130515 '  //~ var regex = new RegExp( regexS );\n'
20130515 '  //~ var results = regex.exec( window.location.href );\n'
20130515 '  //~ if( results == null )\n'
20130515 '    //~ return "";\n'
20130515 '  //~ else\n'
20130515 '    //~ return results[1];\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.refresh_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 "      //~ console.log('refresh',ww);\n"
20130515 '      //~ ww.main_item.doLayout(false,true);\n'
20130515 '      //~ ww.main_item.syncSize();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.tools_close_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 '      //~ ww.close();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 'Lino.permalink_handler = function (ww) {\n'
20130515 '  return function() { \n'
20130515 '    //~ console.log(20100923,ww.get_permalink());\n'
20130515 '    //~ document.location = ww.main_item.get_permalink();\n'
20130515 '    Lino.load_url(ww.main_item.get_permalink());\n'
20130515 '    //~ console.log(20120715, ww.main_item.get_permalink());\n'
20130515 '    //~ document.location = "?permalink=" + ww.get_permalink();\n'
20130515 '    //~ document.location = "?permalink=" + ww.config.permalink_name +\'()\';\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '//~ Lino.run_permalink = function() {\n'
20130515 "  //~ var plink = Lino.gup('permalink');\n"
20130515 "  //~ if(plink) { eval('Lino.'+plink); }\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.MainPanel = {\n'
20130515 '  is_home_page : false,\n'
20130515 '  setting_param_values : false,\n'
20130515 '  config_containing_window : function(wincfg) { }\n'
20130515 '  ,init_containing_window : function(win) { }\n'
20130515 '  ,is_loading : function() { return true; } // overridden by subclasses\n'
20130515 '  ,do_when_clean : function(auto_save,todo) { todo() }\n'
20130515 '  ,get_master_params : function() {\n'
20130515 '    var p = {}\n'
20130515 "    p['mt'] = this.content_type; \n"
20130515 '    rec = this.get_current_record()\n'
20130515 '    if (rec) {\n'
20130515 '      if (rec.phantom) {\n'
20130515 "          p['mk'] = undefined; \n"
20130515 '      }else{\n'
20130515 "          p['mk'] = rec.id; \n"
20130515 '      }\n'
20130515 '    } else {\n'
20130515 "      p['mk'] = undefined;\n"
20130515 '    }\n'
20130515 "    //~ console.log('get_master_params returns',p,'using record',rec);\n"
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,get_permalink : function() {\n'
20130515 '    //~ var p = this.main_item.get_base_params() || {};\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    delete p.fmt;\n'
20130515 '    //~ if (p.fmt) delete p.fmt;\n'
20130515 '    Ext.apply(p,this.get_permalink_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "     //~ p.fmt = 'html';\n"
20130515 "    //~ console.log('get_permalink',p,this.get_permalink_params());\n"
20130515 '    if (this.is_home_page)\n'
20130515 "        //~ var url = '';\n"
20130515 "        var url = '/';\n"
20130515 '    else \n'
20130515 '        var url = this.get_permalink_url();\n'
20130515 '    if (p.su == null) \n'
20130515 '        delete p.su;\n'
20130515 '    if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '    return url;\n'
20130515 '  }\n'
20130515 '  ,get_record_url : function(record_id) {\n'
20130515 "      var url = '/api' + this.ls_url\n"
20130515 '      //~ var url = this.containing_window.config.url_data; // ls_url;\n'
20130515 "      url += '/' + (record_id === undefined ? '-99999' : String(record_id));\n"
20130515 "      //~ if (record_id !== undefined) url += '/' + String(record_id);\n"
20130515 "      //~ url += '/' + String(record_id);\n"
20130515 '      return url;\n'
20130515 '  }\n'
20130515 '  ,get_permalink_url : function() {\n'
20130515 "      return '/api' + this.ls_url;\n"
20130515 '  }\n'
20130515 '  ,get_permalink_params : function() {\n'
20130515 "      //~ return {an:'grid'};\n"
20130515 '      var p = {};\n'
20130515 '      if (this.action_name)\n'
20130515 '          p.an = this.action_name;\n'
20130515 '      this.add_param_values(p)\n'
20130515 '      return p;\n'
20130515 '  }\n'
20130515 '  ,set_status : function(status) {}\n'
20130515 '  ,get_status : function() { return {}}\n'
20130515 '  ,refresh : function() {}\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,add_params_panel : function (tbar) {\n'
20130515 '      if (this.params_panel) {\n'
20130515 '        tbar = tbar.concat([{ scope:this, \n'
20130515 '          //~ text: "$_("[parameters]")", // gear\n'
20130515 "          iconCls: 'x-tbar-parameters',\n"
20130515 '          tooltip:"Show or hide the table parameters panel",\n'
20130515 '          enableToggle: true,\n'
20130515 '          //~ pressed: ! this.params_panel.hidden,\n'
20130515 '          pressed: ! this.params_panel_hidden,\n'
20130515 '          toggleHandler: function(btn,state) { \n'
20130515 '            //~ if (this.params_panel.isVisible()) \n'
20130515 '                //~ this.params_panel.hide();\n'
20130515 '            //~ else\n'
20130515 '                //~ this.params_panel.show();\n'
20130515 '            //~ console.log("20120210 add_params_panel",state,this.params_panel);\n'
20130515 '            if (state) {\n'
20130515 '              this.params_panel.show();\n'
20130515 '              this.params_panel.doLayout();\n'
20130515 '            } else this.params_panel.hide();\n'
20130515 '            this.get_containing_window().doLayout();\n'
20130515 '          }\n'
20130515 '        }]);\n'
20130515 '        var t = this;\n'
20130515 '        var refresh = function() {if (!t.setting_param_values) t.refresh();}\n'
20130515 '        Ext.each(this.params_panel.fields,function(f) {\n'
20130515 "          //~ f.on('valid',function() {t.refresh()});\n"
20130515 '          if (f instanceof Ext.form.Checkbox) {\n'
20130515 "              f.on('check',refresh);\n"
20130515 '          } else if (f instanceof Ext.DatePicker) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 '          } else if (f instanceof Ext.form.TriggerField) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 "              //~ f.on('change',refresh);\n"
20130515 "              //~ f.on('valid',refresh);\n"
20130515 '          } else {\n'
20130515 '              if (! f.on) \n'
20130515 '                  console.log("20121010 no method \'on\'",f);\n'
20130515 '              else\n'
20130515 "                  f.on('change',refresh);\n"
20130515 '            }\n'
20130515 '          });\n'
20130515 '      }\n'
20130515 '      return tbar;\n'
20130515 '  }\n'
20130515 '  ,add_param_values : function (p) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 '      /* \n'
20130515 '      20120918 add param_values to the request string \n'
20130515 '      *only if the params_form is dirty*.\n'
20130515 '      Otherwise Actor.default_params() would never be used.\n'
20130515 '      \n'
20130515 '      20121023 But IntegClients.params_default has non-empty default values. \n'
20130515 '      Users must have the possibility to make them empty.\n'
20130515 '      */\n'
20130515 '      if (this.params_panel.form.isDirty()) {\n'
20130515 '        p.pv = this.get_param_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_param_values) \n'
20130515 '          p.pv = Lino.fields2array(\n'
20130515 '            this.params_panel.fields,this.status_param_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.params_panel.form.isDirty()) return;\n'
20130515 '      //~ p.pv = this.get_param_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  get_param_values : function() { // similar to get_field_values()\n'
20130515 '      return Lino.fields2array(this.params_panel.fields);\n'
20130515 '  },\n'
20130515 '  set_param_values : function(pv) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_param_values = pv;\n'
20130515 '      //~ this.params_panel.form.suspendEvents(false);\n'
20130515 '      this.setting_param_values = true;\n'
20130515 '      if (pv) { \n'
20130515 '          this.params_panel.form.my_loadRecord(pv);\n'
20130515 '      } else { \n'
20130515 '        this.params_panel.form.reset(); \n'
20130515 '      }\n'
20130515 '      this.setting_param_values = false;\n'
20130515 '      //~ this.params_panel.form.resumeEvents();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ajax_error_handler = function(panel) {\n'
20130515 '  return function(response,options) {\n'
20130515 "    console.log('Ajax failure:',response,options);\n"
20130515 '    if (panel.loadMask) panel.loadMask.hide();\n'
20130515 '    if (response.responseText) {\n'
20130515 "      var lines = response.responseText.split('\\n');\n"
20130515 '      if (lines.length > 10) {\n'
20130515 '          line = lines.splice(5,lines.length-10,"(...)");\n'
20130515 '      }\n'
20130515 '      Ext.MessageBox.alert(\n'
20130515 '        response.statusText,\n'
20130515 "        lines.join('<br/>')\n"
20130515 "        //~ response.responseText.replace(/\\n/g,'<br/>'))\n"
20130515 '      )\n'
20130515 '    } else {\n'
20130515 "      Ext.MessageBox.alert('Action failed',\n"
20130515 "        'Lino server did not respond to Ajax request');\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 "// Ext.Ajax.on('requestexception',Lino.ajax_error_handler)\n"
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 'Ext.QuickTips.init();\n'
20130515 '\n'
20130515 '/* setting QuickTips dismissDelay to 0 */\n'
20130515 '// Apply a set of config properties to the singleton\n'
20130515 '//~ Ext.apply(Ext.QuickTips.getQuickTip(), {\n'
20130515 '//~ Ext.apply(Ext.ToolTip, {\n'
20130515 '    //~ dismissDelay: 0\n'
20130515 '    //~ autoHide: false,\n'
20130515 '    //~ closable: true,\n'
20130515 '    //~ maxWidth: 200,\n'
20130515 '    //~ minWidth: 100,\n'
20130515 '    //~ showDelay: 50      // Show 50ms after entering target\n'
20130515 '    //~ ,trackMouse: true\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Ext.apply(Ext.QuickTip, {\n'
20130515 '    //~ dismissDelay: 0,\n'
20130515 '//~ });\n'
20130515 '  \n'
20130515 'Lino.quicktip_renderer = function(title,body) {\n'
20130515 '  return function(c) {\n'
20130515 '    //~ if (c instanceof Ext.Panel) var t = c.bwrap; else // 20130129\n'
20130515 '    if (c instanceof Ext.Panel) var t = c.header; else // 20130129\n'
20130515 '    var t = c.getEl();\n'
20130515 '    //~ console.log(20130129,t,title,body);\n'
20130515 '    //~ t.dismissDelay = 0;\n'
20130515 '    Ext.QuickTips.register({\n'
20130515 '      target: t,\n'
20130515 "      //~ cls: 'lino-quicktip-classical',\n"
20130515 '      dismissDelay: 0,\n'
20130515 '      //~ autoHide: false,\n'
20130515 '      showDelay: 50,      // Show 50ms after entering target\n'
20130515 '      //~ title: title,\n'
20130515 '      text: body\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '  \n'
20130515 'Lino.help_text_editor = function() {\n'
20130515 '  //~ var bp = {\n'
20130515 '      //~ mk:this.content_type,\n'
20130515 '      //~ mt:1\n'
20130515 '    //~ };\n'
20130515 '    //~ console.log(20120202,bp);\n'
20130515 '  //~ Lino.lino.ContentTypes.detail({},{base_params:bp});\n'
20130515 '  //~ Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '  Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '}\n'
20130515 '\n'
20130515 '// Path to the blank image should point to a valid location on your server\n'
20130515 "//~ Ext.BLANK_IMAGE_URL = MEDIA_URL + '/extjs/resources/images/default/s.gif'; \n"
20130515 '\n'
20130515 '\n'
20130515 '// used as Ext.grid.Column.renderer for id columns in order to hide the special id value -99999\n'
20130515 'Lino.id_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.raw_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.text_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return "not implemented"; \n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.NullNumberColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 "    align : 'right', \n"
20130515 "    format : '0,00/i', \n"
20130515 '    renderer : function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '        //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "        if (value === null) return '';\n"
20130515 '        return Ext.util.Format.number(value, this.format);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.NullNumberColumn = Ext.extend(Ext.grid.NumberColumn, {\n'
20130515 "    //~ align : 'right', \n"
20130515 '    //~ constructor: function(cfg){\n'
20130515 '        //~ Ext.grid.NumberColumn.superclass.constructor.call(this, cfg);\n'
20130515 '        //~ var t = this;\n'
20130515 '        //~ this.renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '          //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "          //~ if (value === null) return '';\n"
20130515 '          //~ return Ext.util.Format.number(value, t.format);\n'
20130515 '      //~ };\n'
20130515 '    //~ }\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.cell_button_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return \'<input type="button" onclick="alert(value)" value=" ? ">\' ;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.default_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  //~ return value;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.fk_renderer = function(fkname,handlername) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    //~ if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'.run(null,{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.lfk_renderer = function(panel,fkname) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 "  var handlername = 'console.log';\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'({},{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gfk_renderer = function() {\n'
20130515 '  //~ return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ if (record.phantom) return '';\n"
20130515 "    //~ console.log('Lino.gfk_renderer',value,colIndex,record,metaData,store);\n"
20130515 '    //~ return value;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.build_buttons = function(panel,actions) {\n'
20130515 '  //~ console.log("20121006 Lino.build_buttons",actions);\n'
20130515 '  if (actions) {\n'
20130515 '    var buttons = Array(actions.length);\n'
20130515 '    var cmenu = Array(actions.length);\n'
20130515 '    for (var i=0; i < actions.length; i++) { \n'
20130515 '      buttons[i] = new Ext.Toolbar.Button(actions[i]);\n'
20130515 '      cmenu[i] = actions[i]\n'
20130515 '      cmenu[i].text = actions[i].menu_item_text;\n'
20130515 '      if (actions[i].panel_btn_handler) {\n'
20130515 '          var h = actions[i].panel_btn_handler.createCallback(panel,buttons[i]);\n'
20130515 '          //~ if (actions[i].must_save) {\n'
20130515 '          if (actions[i].auto_save == true) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[true,h]));\n"
20130515 '          } else if (actions[i].auto_save == null) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[false,h]));\n"
20130515 '          } else if (actions[i].auto_save == false) {\n'
20130515 "              buttons[i].on('click',h);\n"
20130515 '          } else {\n'
20130515 '              console.log("20120703 unhandled auto_save value",actions[i])\n'
20130515 '          }\n'
20130515 '          cmenu[i].handler = actions[i].panel_btn_handler.createCallback(panel,cmenu[i]);\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    return {bbar:buttons, cmenu:new Ext.menu.Menu(cmenu)};\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.do_when_visible = function(cmp,todo) {\n'
20130515 '  //~ if (cmp.el && cmp.el.dom) \n'
20130515 '  if (cmp.isVisible()) { \n'
20130515 "    // 'visible' means 'rendered and not hidden'\n"
20130515 "    //~ console.log(cmp.title,'-> cmp is visible now');\n"
20130515 '    todo(); \n'
20130515 '  //~ } else {\n'
20130515 "      //~ cmp.on('resize',todo,cmp,{single:true});\n"
20130515 '  //~ }\n'
20130515 '  //~ if (false) { // 20120213\n'
20130515 '  } else { \n'
20130515 "    //~ console.log('Lino.do_when_visible() must defer because not isVisible()',todo,cmp);\n"
20130515 '    if (cmp.rendered) {\n'
20130515 "      //~ console.log(cmp,'-> cmp is rendered but not visible: and now?');\n"
20130515 "      //~ console.log(cmp.title,'-> cmp is rendered but not visible: try again in a moment...');\n"
20130515 '      //~ var fn = function() {Lino.do_when_visible(cmp,todo)};\n'
20130515 '      //~ fn.defer(100);\n'
20130515 '      \n'
20130515 '      Lino.do_when_visible.defer(50,this,[cmp,todo]);\n'
20130515 '      //~ Lino.do_when_visible.defer(100,this,[cmp,todo]);\n'
20130515 '      \n'
20130515 '    } else {\n'
20130515 "      //~ console.log(cmp.title,'-> after render');\n"
20130515 "      cmp.on('afterrender',todo,cmp,{single:true});\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '};    \n'
20130515 '\n'
20130515 '/*\n'
20130515 '*/\n'
20130515 'Lino.do_on_current_record = function(panel,fn,phantom_fn) {\n'
20130515 '  var rec = panel.get_current_record();\n'
20130515 '  if (rec == undefined) {\n'
20130515 '    Lino.notify("There\'s no selected record.");\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  // 20120307 A VirtualTable with a Detail (lino.Models) has only "phantom" records.\n'
20130515 '  if (rec.phantom) {\n'
20130515 '    //~ if (!panel.editable) { console.log("20120312 not editable:",panel)}\n'
20130515 '    if (phantom_fn) {\n'
20130515 '      phantom_fn(panel);\n'
20130515 '    } else {\n'
20130515 '      Lino.notify("Action not available on phantom record.");\n'
20130515 '    }\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  return fn(rec);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.call_ajax_action = function(panel,method,url,p,actionName,step,on_confirm,on_success) {\n'
20130515 '  p.an = actionName;\n'
20130515 '  if (!panel) panel = Lino.viewport;\n'
20130515 '  Ext.apply(p,panel.get_base_params());\n'
20130515 '  //~ console.log("20121212 Lino.call_ajax_action",panel);\n'
20130515 '  panel.loadMask.show(); \n'
20130515 '  //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 '  //~ Lino.insert_subst_user(p);\n'
20130515 '    \n'
20130515 "  //~ if (step) p['$ext_requests.URL_PARAM_ACTION_STEP'] = step;\n"
20130515 '  //~ if (pp) pp(p); // "parameter processor" : first used for read beid card\n'
20130515 '  Ext.Ajax.request({\n'
20130515 '    method: method,\n'
20130515 '    url: url,\n'
20130515 '    params: p,\n'
20130515 '    success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.row_action_handler = function(actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      if (pp) { p = pp(); if (! p) return; }\n'
20130515 '      Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '          //~ console.log(panel);\n'
20130515 '          //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '          Lino.call_ajax_action(panel,hm,panel.get_record_url(rec.id),p,actionName,step,fn);\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.list_action_handler = function(ls_url,actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 "  var url = '/api' + ls_url\n"
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      //~ console.log("20121210 Lino.list_action_handler",arguments);\n'
20130515 "      //~ var url = ADMIN_URL + '/api' + panel.ls_url\n"
20130515 '      if (pp) { p = pp();  if (! p) return; }\n'
20130515 '      Lino.call_ajax_action(panel,hm,url,p,actionName,step,fn);\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.param_action_handler = function(window_action) { // 20121012\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '      //~ console.log(panel);\n'
20130515 '      //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '      window_action.run(panel.getId(),{}); \n'
20130515 '    });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.run_row_action = function(requesting_panel,url,pk,actionName,pp) {\n'
20130515 '  //~ var panel = action.get_window().main_item;\n'
20130515 "  url = '/api' + url  + '/' + pk;\n"
20130515 '  var panel = Ext.getCmp(requesting_panel);\n'
20130515 '  if (pp) var p = pp(); else var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    //~ 20120723 Lino.call_ajax_action(panel,pk,actionName,step,fn);\n'
20130515 "    Lino.call_ajax_action(panel,'GET',url,p,actionName,step,fn);\n"
20130515 '  }\n'
20130515 '  fn(panel,null,null);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_detail = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel, \n'
20130515 '    function(rec) {\n'
20130515 '      //~ panel.loadMask.show();\n'
20130515 '      var bp = panel.get_base_params();\n'
20130515 '      //~ var bp = {};\n'
20130515 '      panel.add_param_values(bp); // 20120918\n'
20130515 '      var status = {\n'
20130515 '        record_id:rec.id,\n'
20130515 '        base_params:bp\n'
20130515 '        //~ param_values: pv.$ext_requests.URL_PARAM_PARAM_VALUES\n'
20130515 '      }\n'
20130515 '      //~ console.log("20120918 Lino.show_detail",status);\n'
20130515 '      panel.ls_detail_handler.run(null,status);\n'
20130515 '      //~ panel.loadMask.hide();\n'
20130515 '      //~ panel.containing_window.window.hideMask();\n'
20130515 '      //~ panel.el.unmask();\n'
20130515 '    },\n'
20130515 '    Lino.show_insert\n'
20130515 '  );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_fk_detail = function(combo,detail_action) {\n'
20130515 '    //~ console.log("Lino.show_fk_detail",combo,handler);\n'
20130515 '    pk = combo.getValue();\n'
20130515 '    if (pk) {\n'
20130515 '        detail_action.run(null,{record_id: pk})\n'
20130515 '      } else {\n'
20130515 '        Lino.notify("Cannot show detail for empty foreign key.");\n'
20130515 '      }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert = function(panel,btn) {\n'
20130515 '  var bp = panel.get_base_params();\n'
20130515 "  //~ console.log('20120125 Lino.show_insert',bp)\n"
20130515 '  //~ panel.ls_insert_handler.run(null,{record_id:-99999,base_params:bp});\n'
20130515 '  panel.ls_insert_handler.run(panel.getId(),{record_id:-99999,base_params:bp});\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert_duplicate = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel,\n'
20130515 '    function(rec) {\n'
20130515 '      var newRec = {};\n'
20130515 '      Ext.apply(newRec,rec);\n'
20130515 '      newRec.id = -99999;\n'
20130515 '      panel.ls_insert_handler.run(null,{data_record:rec});\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.update_row_handler = function(action_name) {\n'
20130515 '  //~ return function(panel,btn) {\n'
20130515 '    //~ Lino.notify("Sorry, " + action_name + " is not implemented.");\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'if (Ext.ux.grid !== undefined) {\n'
20130515 '    Lino.GridFilters = Ext.extend(Ext.ux.grid.GridFilters,{\n'
20130515 '      encode:true,\n'
20130515 '      local:false\n'
20130515 '    });\n'
20130515 '} else {\n'
20130515 '    Lino.GridFilters = function() {}; // dummy\n'
20130515 '    Ext.override(Lino.GridFilters,{\n'
20130515 '      init : function() {}\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.TextField,{\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.Field,{\n'
20130515 '    //~ editable : false,\n'
20130515 '    //~ constructor : function(ww,config,params){\n'
20130515 '      //~ this.containing_window = ww;\n'
20130515 '      //~ if (params) Ext.apply(config,params);\n'
20130515 '      //~ Lino.ButtonField.superclass.constructor.call(this, config);\n'
20130515 '    //~ },\n'
20130515 '    //~ setButtons : function(buttons){\n'
20130515 "      //~ console.log('setButtons',buttons);\n"
20130515 '    //~ },\n'
20130515 '    //~ onRender : function(ct, position){\n'
20130515 '        //~ if(!this.el){\n'
20130515 '            //~ this.panel = new Ext.Container({items:[\n'
20130515 "              //~ {xtype:'button',text:'upload'},\n"
20130515 "              //~ {xtype:'button',text:'show'},\n"
20130515 "              //~ {xtype:'button',text:'edit'}\n"
20130515 '            //~ ]});\n'
20130515 '            //~ this.panel.ownerCt = this;\n'
20130515 '            //~ this.el = this.panel.getEl();\n'
20130515 '\n'
20130515 '        //~ }\n'
20130515 '        //~ Lino.ButtonField.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '  \n'
20130515 '//~ });\n'
20130515 '\n'
20130515 'Lino.FieldBoxMixin = {\n'
20130515 '  before_init : function(config,params) {\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    if (actions) config.bbar = actions.bbar;\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.containing_window = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  do_when_clean : function(auto_save,todo) { todo() },\n'
20130515 '  //~ format_data : function(html) { return \'<div class="htmlText">\' + html + \'</div>\' },\n'
20130515 '  format_data : function(html) { return html },\n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '    //~ if (p.param_values) this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,{\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  constructor : function(config,params) {\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    Lino.HtmlBoxPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.constructor.call(this, ww,config,params);\n'
20130515 '  //~ },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  //~ disable : function() { var tb = this.getBottomToolbar(); if(tb) tb.disable()},\n'
20130515 '  //~ enable : function() { var tb = this.getBottomToolbar(); if(tb) tb.enable()},\n'
20130515 '  onRender : function(ct, position){\n'
20130515 '    Lino.HtmlBoxPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ console.log(20111125,this.containing_window);\n'
20130515 '    if (this.containing_panel) {\n'
20130515 "      this.containing_panel.on('enable',this.enable,this);\n"
20130515 "      this.containing_panel.on('disable',this.disable,this);\n"
20130515 '    }\n'
20130515 '    this.el.on({\n'
20130515 '      dragenter:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,dragover:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        event.stopEvent();\n'
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,drop:{\n'
20130515 '        scope:this\n'
20130515 '        ,fn:function(event){\n'
20130515 '          event.stopEvent();\n'
20130515 '          //~ console.log(20110516);\n'
20130515 '          var files = event.browserEvent.dataTransfer.files;\n'
20130515 '          if(files === undefined){\n'
20130515 '            return true;\n'
20130515 '          }\n'
20130515 '          var len = files.length;\n'
20130515 '          while(--len >= 0){\n'
20130515 '            console.log(files[len]);\n'
20130515 '            //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '          }\n'
20130515 '          Lino.show_insert(this);\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '      var record = this.containing_panel.get_current_record();\n'
20130515 "      //~ console.log('HtmlBox.refresh()',this.title,record,record.title);\n"
20130515 '      var box = this.items.get(0);\n'
20130515 '      var todo = function() {\n'
20130515 '        if (this.disabled) return;\n'
20130515 '        //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '        var el = box.getEl();\n'
20130515 '        if (el) {\n'
20130515 "          el.update(record ? this.format_data(record.data[this.name]) : '');\n"
20130515 "          //~ console.log('HtmlBox.refresh()',this.name);\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('HtmlBox.refresh() failed for',this.name);\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '      Lino.do_when_visible(box,todo.createDelegate(this));\n'
20130515 '    //~ }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.RichTextPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,{\n'
20130515 '    \n'
20130515 '  //~ initComponent : function(){\n'
20130515 '    //~ Lino.RichTextPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ },\n'
20130515 '  constructor : function(config,params) {\n'
20130515 "    //~ console.log('Lino.RichTextPanel.initComponent',this);\n"
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + String(rec.id) + "/" + config.name;\n'
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + config.name;\n'
20130515 '    var t = this;\n'
20130515 '    var tinymce_options = {\n'
20130515 '        theme : "advanced",\n'
20130515 "        content_css: '/media/lino/extjs/lino.css',\n"
20130515 "        language: 'de',\n"
20130515 '        //~ template_external_list_url : url,\n'
20130515 '        theme_advanced_toolbar_location : "top",\n'
20130515 '        theme_advanced_toolbar_align : "left",\n'
20130515 '        theme_advanced_statusbar_location : "bottom",\n'
20130515 '        template_popup_width : 700,\n'
20130515 '        template_popup_height : 500,\n'
20130515 '        template_replace_values : { \n'
20130515 '            data_field : function(element){ \n'
20130515 '                //~ console.log(20110722,fieldName,t.containing_window.get_current_record()); \n'
20130515 '                var fieldName = element.innerHTML;\n'
20130515 '                element.innerHTML = t.containing_panel.get_current_record().data[fieldName];\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '    var editorConfig = {\n'
20130515 '      tinymceSettings: {\n'
20130515 '        plugins : "noneditable,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,template",\n'
20130515 '        theme_advanced_buttons2 : "",\n'
20130515 '        theme_advanced_buttons3 : "", // ,|,sub,sup,|,charmap",      \n'
20130515 '        theme_advanced_resizing : false\n'
20130515 '        //~ save_onsavecallback : save_callback,\n'
20130515 '        //~ save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '        \n'
20130515 '    }};\n'
20130515 '    Ext.apply(editorConfig.tinymceSettings,tinymce_options);\n'
20130515 '    //~ editorConfig.name = config.action_name;\n'
20130515 '    editorConfig.name = config.name;\n'
20130515 '    delete config.name;\n'
20130515 '    //~ config.title = config.label;\n'
20130515 '    //~ delete config.label;\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    \n'
20130515 '    this.editor = new Ext.ux.TinyMCE(editorConfig);\n'
20130515 '    var t = this;\n'
20130515 '    config.tools = [{\n'
20130515 '                      qtip: "Edit text in own window", \n'
20130515 '                      id: "up",\n'
20130515 '                      handler: function(){\n'
20130515 '                        if(t.editor.isDirty()) {\n'
20130515 '                            var record = t.containing_panel.get_current_record();\n'
20130515 '                            record.data[t.editor.name] = t.editor.getValue();\n'
20130515 '                        }\n'
20130515 '                        Lino.edit_tinymce_text(t,tinymce_options)\n'
20130515 '                      }\n'
20130515 '                    }];\n'
20130515 '    \n'
20130515 '    config.items = this.editor;\n'
20130515 '    config.layout = "fit";\n'
20130515 '    Lino.RichTextPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    var record = this.containing_panel.get_current_record();\n'
20130515 "    //~ console.log('RichTextPanel.refresh()',this.title,record.title,record);\n"
20130515 '    var todo = function() {\n'
20130515 '      //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '      if (record) {\n'
20130515 '        var url = \'/templates\' + this.containing_panel.ls_url + "/" \n'
20130515 '            + String(record.id) + "/" + this.editor.name;\n'
20130515 "        //~ console.log('RichTextPanel.refresh()',url);\n"
20130515 '        if (this.editor.ed) this.editor.ed.settings.template_external_list_url = url;\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 "        //~ var v = record ? this.format_data(record.data[this.editor.name]) : ''\n"
20130515 '        var v = this.format_data(record.data[this.editor.name])\n'
20130515 '        this.editor.setValue(v);\n'
20130515 '      } else {\n'
20130515 "        this.editor.setValue('(no data)');\n"
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.PanelMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 "  //~ layout:'fit'\n"
20130515 '  //~ ,autoHeight: true\n'
20130515 '  //~ ,frame: true\n'
20130515 '  window_title: "Action Parameters",\n'
20130515 '  constructor : function(config){\n'
20130515 '    config.bbar = [\n'
20130515 "        {text:'OK',handler:this.on_ok,scope:this},\n"
20130515 "        {text:'Cancel',handler:this.on_cancel,scope:this}\n"
20130515 '    ];\n'
20130515 '    //~ config.items = config.params_panel;\n'
20130515 '    Lino.ActionFormPanel.superclass.constructor.call(this, config);\n'
20130515 '  }\n'
20130515 '  //~ ,initComponent : function(){\n'
20130515 '    //~ Lino.ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '    //~ var rp = this.requesting_panel;\n'
20130515 '    //~ console.log("on_ok",this.requesting_panel,arguments);\n'
20130515 '    //~ Lino.row_action_handler()\n'
20130515 '    var panel = this.requesting_panel;\n'
20130515 '    var actionName = this.action_name;\n'
20130515 '    var rec = panel.get_current_record();\n'
20130515 '    var self = this;\n'
20130515 '    function on_success() { self.get_containing_window().close(); };\n'
20130515 '    var fn = function(panel,btn,step) {\n'
20130515 '      var p = {};\n'
20130515 '      self.add_field_values(p)\n'
20130515 "      Lino.call_ajax_action(panel,'GET',panel.get_record_url(rec.id),p,actionName,step,fn,on_success);\n"
20130515 '    }\n'
20130515 '    fn(panel,null,null);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '  }\n'
20130515 '  ,set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 ActionFormPanel.set_status()',status,rp,this.requesting_panel);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_field_values(status.field_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,add_field_values : function (p) { // similar to add_param_values()\n'
20130515 '      //~ 20121023 \n'
20130515 '      if (this.form.isDirty()) {\n'
20130515 '        p.fv = this.get_field_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_field_values) \n'
20130515 '          p.fv = Lino.fields2array(this.fields,this.status_field_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.form.isDirty()) return;\n'
20130515 '      //~ p.$ext_requests.URL_PARAM_FIELD_VALUES = this.get_field_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '  }\n'
20130515 '  ,get_field_values : function() {\n'
20130515 '      return Lino.fields2array(this.fields);\n'
20130515 '  }\n'
20130515 '  ,set_field_values : function(pv) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_field_values = pv;\n'
20130515 '      if (pv) this.form.my_loadRecord(pv);\n'
20130515 '      else this.form.reset(); \n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.title = this.window_title;\n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.fields2array = function(fields,values) {\n'
20130515 "    //~ console.log('20120116 gonna loop on', fields);\n"
20130515 '    var pv = Array(fields.length);\n'
20130515 '    for(var i=0; i < fields.length;i++) {\n'
20130515 '        var f = fields[i]\n'
20130515 '        if (values) \n'
20130515 '          var v = values[f.name];\n'
20130515 '        else \n'
20130515 '          var v = f.getValue();\n'
20130515 '        if (f.formatDate) {\n'
20130515 '            pv[i] = f.formatDate(v); \n'
20130515 '        } else {\n'
20130515 '            pv[i] = v; // f.getValue(); \n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    return pv;\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.FormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,Lino.PanelMixin);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  //~ base_params : {},\n'
20130515 '  //~ trackResetOnLoad : true,\n'
20130515 '  //~ query_params : {},\n'
20130515 "  //~ 20110119b quick_search_text : '',\n"
20130515 '  constructor : function(config,params){\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    this.base_params = {};\n'
20130515 "    //~ ww.config.base_params.query = ''; // 20111018\n"
20130515 '    //~ console.log(config);\n'
20130515 "    //~ console.log('FormPanel.constructor() 1',config)\n"
20130515 '    //~ Ext.applyIf(config,{base_params:{}});\n'
20130515 "    //~ console.log('FormPanel.constructor() 2',config)\n"
20130515 '      \n'
20130515 '    config.trackResetOnLoad = true;\n'
20130515 '    \n'
20130515 '    Lino.FormPanel.superclass.constructor.call(this, config);\n'
20130515 '      \n'
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',null); // 20111018\n"
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',''); // 20111018\n"
20130515 '      \n'
20130515 '  },\n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    //~ console.log("20111201 containing_window",this.containing_window,this);\n'
20130515 '    \n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    if (actions) {\n'
20130515 '        this.bbar = actions.bbar;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ this.bbar = [];\n'
20130515 '    }\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ var config = this;\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window instanceof Lino.DetailWrapper) {\n'
20130515 '    \n'
20130515 "    //~ console.log('20120121 initComponent', this.action_name);\n"
20130515 "    //~ if (this.action_name == 'detail' | this.action_name == 'show') {\n"
20130515 "    //~ if (this.action_name != 'insert') {\n"
20130515 '    if (! this.hide_top_toolbar) {\n'
20130515 '      this.tbar = [];\n'
20130515 '      // 20111015    \n'
20130515 '      if (! this.hide_navigator) {\n'
20130515 '        this.record_selector = new Lino.RemoteComboFieldElement({\n'
20130515 '          store: new Lino.ComplexRemoteComboStore({\n'
20130515 '            //~ baseParams: this.containing_window.config.base_params,\n'
20130515 '            baseParams: this.get_base_params(),\n'
20130515 '            //~ value: this.containing_window.config.base_params.query,\n'
20130515 '            proxy: new Ext.data.HttpProxy({\n'
20130515 "              url: '/choices' + this.ls_url,\n"
20130515 "              method:'GET'\n"
20130515 '            })\n'
20130515 '          }),\n'
20130515 '          pageSize:25,\n'
20130515 '          listeners: { \n'
20130515 '            scope:this, \n'
20130515 '            select:function(combo,record,index) {\n'
20130515 "              //~ console.log('jumpto_select',arguments);\n"
20130515 '              this.goto_record_id(record.id);\n'
20130515 '            }\n'
20130515 '          },\n'
20130515 '          emptyText: "Go to record"\n'
20130515 '        })\n'
20130515 '        this.tbar = this.tbar.concat([this.record_selector]);\n'
20130515 '        \n'
20130515 '        this.tbar = this.tbar.concat([\n'
20130515 '          this.first = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"First",disabled:true,handler:this.moveFirst,scope:this,iconCls:\'x-tbar-page-first\'}),\n'
20130515 '          this.prev = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Previous",disabled:true,handler:this.movePrev,scope:this,iconCls:\'x-tbar-page-prev\'}),\n'
20130515 '          this.next = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Next",disabled:true,handler:this.moveNext,scope:this,iconCls:\'x-tbar-page-next\'}),\n'
20130515 '          this.last = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Last",disabled:true,handler:this.moveLast,scope:this,iconCls:\'x-tbar-page-last\'})\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      this.tbar = this.add_params_panel(this.tbar);\n'
20130515 '      \n'
20130515 '      //~ console.log(20101117,this.containing_window.refresh);\n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 '        {\n'
20130515 "          //~ text:'Refresh',\n"
20130515 '          handler:function(){ this.do_when_clean(true,this.refresh.createDelegate(this)) },\n'
20130515 "          iconCls: 'x-tbar-loading',\n"
20130515 '          tooltip:"Reload current record",\n'
20130515 '          scope:this}\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '      if (this.bbar) { // since 20121016\n'
20130515 '        if (this.tbar) {\n'
20130515 "            this.tbar = this.tbar.concat(['-']) ;\n"
20130515 '        } else {\n'
20130515 '          this.tbar = [];\n'
20130515 '        }\n'
20130515 '        this.tbar = this.tbar.concat(this.bbar) ;\n'
20130515 '        this.bbar = undefined;\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 "          '->',\n"
20130515 '          this.displayItem = new Ext.Toolbar.TextItem({})\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '    }\n'
20130515 "    //~ if (this.content_type && this.action_name != 'insert') {\n"
20130515 '      //~ this.bbar = this.bbar.concat([\n'
20130515 "        //~ '->',\n"
20130515 '        //~ { text: "[$_(\'Help Text Editor\')]",\n'
20130515 '          //~ handler: Lino.help_text_editor,\n'
20130515 '          //~ qtip: "$_(\'Edit help texts for fields on this model.\')",\n'
20130515 '          //~ scope: this}\n'
20130515 '      //~ ])\n'
20130515 '    //~ }\n'
20130515 '    //~ this.before_row_edit = config.before_row_edit.createDelegate(this);\n'
20130515 '      \n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '        //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '    //~ }\n'
20130515 '      \n'
20130515 '    Lino.FormPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.bwrap,{msg:"Please wait..."});\n'
20130515 '    },this);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.cascade(function(cmp){\n'
20130515 '      //~ // var active_field = false;\n'
20130515 '      //~ for (i = 0; i < this_.active_fields.length; i++) {\n'
20130515 '        //~ if (cmp.name == this_.active_fields[i]) {\n'
20130515 '            //~ // active_field = true; break;\n'
20130515 '            //~ cmp.on("change",function() {this_.save()});\n'
20130515 '        //~ }\n'
20130515 '      //~ };\n'
20130515 '      //~ if (active_field) {\n'
20130515 '      // if (cmp instanceof Lino.GridPanel) {\n'
20130515 '          //~ cmp.on("change",function() {this_.save()});\n'
20130515 '      //~ }\n'
20130515 '    //~ });\n'
20130515 '    \n'
20130515 "    if (this.action_name == 'insert') {\n"
20130515 '      this.cascade(function(cmp){\n'
20130515 "        // console.log('20110613 cascade',cmp);\n"
20130515 '        if (cmp.disabled_in_insert_window) {\n'
20130515 '            //~ cmp.disable();\n'
20130515 '            cmp.hide();\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    if (this.current_record == null) return true; \n'
20130515 '    var loading = false;\n'
20130515 '    this.cascade(function(cmp){\n'
20130515 '        if (cmp instanceof Lino.GridPanel && cmp.is_loading()) {\n'
20130515 "            //~ console.log(cmp.title,'is loading');\n"
20130515 '            loading = true;\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    return loading;\n'
20130515 '    //~ var a = this.findByType(Lino.GridPanel);\n'
20130515 '    //~ for (i=0;i<a.length;i++) {\n'
20130515 '        //~ if (a[i].is_loading()) return true;\n'
20130515 '    //~ }\n'
20130515 '    //~ return false;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '      var st = {\n'
20130515 '        base_params: this.get_base_params(),\n'
20130515 '        data_record : this.get_current_record()\n'
20130515 '        }\n'
20130515 '      var tp = this.items.get(0);\n'
20130515 '      if (tp instanceof Ext.TabPanel) {\n'
20130515 '        st.active_tab = tp.getActiveTab();\n'
20130515 '      }\n'
20130515 '      st.param_values = this.status_param_values;\n'
20130515 '      return st;\n'
20130515 '  },\n'
20130515 '  set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 FormPanel.set_status()',status);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '    var tp = this.items.get(0);\n'
20130515 '    if (tp instanceof Ext.TabPanel) {\n'
20130515 '      if (status.active_tab) {\n'
20130515 "        //~ console.log('20111201 active_tab',this.active_tab,this.items.get(0));\n"
20130515 '        //~ tp.activeTab = status.active_tab;\n'
20130515 '        tp.setActiveTab(status.active_tab);\n'
20130515 '        //~ this.main_item.items.get(0).activate(status.active_tab);\n'
20130515 '      } else {\n'
20130515 '        tp.setActiveTab(0);\n'
20130515 '      }\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '    if (status.data_record) {\n'
20130515 "      //~ console.log('20111201 Lino.FormPanel with data_record',this.data_record.title,this.containing_window);\n"
20130515 '      //~ this.main_item.on_master_changed.defer(2000,this.main_item,[status.data_record]);\n'
20130515 '      //~ Lino.do_when_visible(this.main_item,function(){this.on_master_changed(status.data_record)});\n'
20130515 "      //~ this.main_item.on('afterrender',function(){\n"
20130515 '      //~   this.main_item.on_master_changed(status.data_record)},this,{single:true});\n'
20130515 "      /* must defer because because set_window_title() didn't work otherwise */\n"
20130515 '      this.set_current_record.createDelegate(this,[status.data_record]).defer(100);\n'
20130515 '      //~ this.set_current_record(this.data_record);\n'
20130515 '      //~ return;\n'
20130515 '    } else if (status.record_id != undefined) { \n'
20130515 '      /* possible values include 0 and null, 0 being a valid record id, \n'
20130515 '      null the equivalent of undefined\n'
20130515 '      */\n'
20130515 '      //~ this.main_item.goto_record_id(this.status.record_id);\n'
20130515 '      this.load_record_id(status.record_id);\n'
20130515 '    } else {\n'
20130515 '      this.set_current_record(undefined);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '    \n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert_action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.base_params;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 "    delete p['query'] // 20120725\n"
20130515 '    Ext.apply(this.base_params,p);\n'
20130515 '    if (this.record_selector) {\n'
20130515 '        var store = this.record_selector.getStore();\n'
20130515 '        for (k in p) store.setBaseParam(k,p[k]);\n'
20130515 '        delete this.record_selector.lastQuery;\n'
20130515 '        //~ console.log("20120725 record_selector.setBaseParam",p)\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '        \n'
20130515 '      //~ if (this.record_selector) {\n'
20130515 '          //~ var store = this.record_selector.getStore();\n'
20130515 '          //~ for (k in store.baseParams) store.setBaseParam(k,undefined);\n'
20130515 '          //~ delete this.record_selector.lastQuery;\n'
20130515 '          //~ console.log("20120725 record_selector.getBaseParams() -->",store.baseParams)\n'
20130515 '      //~ }\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '    //~ if (this.record_selector) {\n'
20130515 '        //~ this.record_selector.getStore().setBaseParam(k,v);\n'
20130515 '        //~ delete this.record_selector.lastQuery;\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  after_delete : function() {\n'
20130515 '    if (this.current_record.navinfo.next)\n'
20130515 '      this.moveNext();\n'
20130515 '    else if (this.current_record.navinfo.prev)\n'
20130515 '      this.movePrev();\n'
20130515 '    else \n'
20130515 '      this.abandon();\n'
20130515 '  },\n'
20130515 '  moveFirst : function() {this.goto_record_id(this.current_record.navinfo.first)},\n'
20130515 '  movePrev : function() {this.goto_record_id(this.current_record.navinfo.prev)},\n'
20130515 '  moveNext : function() {this.goto_record_id(this.current_record.navinfo.next)},\n'
20130515 '  moveLast : function() {this.goto_record_id(this.current_record.navinfo.last)},\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ console.log('20120121 Lino.FormPanel.refresh()',this);\n"
20130515 '    if (this.current_record) {\n'
20130515 '        this.load_record_id(this.current_record.id,after);\n'
20130515 '    } else {\n'
20130515 '        this.set_current_record(undefined,after);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  do_when_clean : function(auto_save,todo) {\n'
20130515 '    var this_ = this;\n'
20130515 '    if (this.form.isDirty()) {\n'
20130515 '        if (auto_save) {\n'
20130515 '            this_.save(todo);\n'
20130515 '        } else {\n'
20130515 "          //~ console.log('20111217 do_when_clean() form is dirty',this.form);\n"
20130515 '          var config = {title:"Confirmation"};\n'
20130515 '          config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '          config.msg = "Save changes to current record ?";\n'
20130515 '          config.fn = function(buttonId,text,opt) {\n'
20130515 "            //~ console.log('do_when_clean',buttonId)\n"
20130515 '            if (buttonId == "yes") {\n'
20130515 '                //~ Lino.submit_detail(this_,undefined,todo);\n'
20130515 '                //~ this_.containing_window.save(todo);\n'
20130515 '                this_.save(todo);\n'
20130515 '            } else if (buttonId == "no") { \n'
20130515 '              todo();\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '    }else{\n'
20130515 "      //~ console.log('do_when_clean : now!')\n"
20130515 '      todo();\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  goto_record_id : function(record_id) {\n'
20130515 "    //~ console.log('20110701 Lino.FormPanel.goto_record_id()',record_id);\n"
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.do_when_clean(function() { this_.load_record_id(record_id) }\n'
20130515 '    this.do_when_clean(true,this.load_record_id.createDelegate(this,[record_id]));\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  load_record_id : function(record_id,after) {\n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var p = { fmt: this.containing_window.config.action_name};\n'
20130515 '    //~ var p = Ext.apply({},this.containing_window.config.base_params);\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "    //~ console.log('20110713 action_name=',this.containing_window.config.action_name,\n"
20130515 "      //~ 'base_params=',this.containing_window.config.base_params);\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ p.an = this.action_name;\n'
20130515 '    //~ p.an = this.containing_window.config.action_name;\n'
20130515 "    //~ p.fmt = 'json';\n"
20130515 "    //~ p.fmt = '$ext_requests.URL_FORMAT_JSON';\n"
20130515 '    p.rp = this.getId();\n'
20130515 '    //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 "    p.fmt = 'json';\n"
20130515 "    //~ 20110119b p['$URL_PARAM_FILTER'] = this.quick_search_text;\n"
20130515 '    //~ Ext.apply(p,this.query_params);\n'
20130515 '    this.add_param_values(p);\n'
20130515 "    //~ console.log('20121120 FormPanel.load_record_id',record_id,p);\n"
20130515 '    if (this.loadMask) this.loadMask.show();\n'
20130515 '    Ext.Ajax.request({ \n'
20130515 "      waitMsg: 'Loading record...',\n"
20130515 "      method: 'GET',\n"
20130515 '      params: p,\n'
20130515 '      scope: this,\n'
20130515 '      url: this.get_record_url(record_id),\n'
20130515 '      success: function(response) {   \n'
20130515 '        // todo: convert to Lino.action_handler.... but result \n'
20130515 '        if (this.loadMask) this.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var rec = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('20120918 goto_record_id success',rec);\n"
20130515 '          this.set_param_values(rec.param_values);\n'
20130515 '          this.set_current_record(rec,after);\n'
20130515 '        }\n'
20130515 '      },\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  abandon : function () {\n'
20130515 "    Ext.MessageBox.alert('Note',\n"
20130515 '      "No more records to display. Detail window has been closed.");\n'
20130515 '    Lino.close_window();\n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ this.containing_window.hide();\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_current_record : function(record,after) {\n'
20130515 "    //~ console.log('20120722 Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    if (this.record_selector) {\n'
20130515 '        this.record_selector.clearValue();\n'
20130515 "        // e.g. InsertWrapper FormPanel doesn't have a record_selector\n"
20130515 '    }\n'
20130515 '    this.current_record = record;\n'
20130515 '    //~ if (record) \n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    //~ else\n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record);\n"
20130515 '    //~ this.config.main_panel.form.load(record);    \n'
20130515 '    if (record) {\n'
20130515 '      this.enable();\n'
20130515 '      this.form.my_loadRecord(record.data);\n'
20130515 '      this.set_window_title(record.title);\n'
20130515 '      //~ this.getBottomToolbar().enable();\n'
20130515 '      var da = record.data.disabled_actions;\n'
20130515 '      if (da) {\n'
20130515 "          //~ console.log('20120528 disabled_actions =',da,this.getBottomToolbar());\n"
20130515 '          //~ 20121016 this.getBottomToolbar().items.each(function(item,index,length){\n'
20130515 '          var tb = this.getTopToolbar();\n'
20130515 '          if (tb) tb.items.each(function(item,index,length){\n'
20130515 "              //~ console.log('20120528 ',item.itemId,'-->',da[item.itemId]);\n"
20130515 '              if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '          });\n'
20130515 '      };\n'
20130515 '      if (this.disable_editing | record.data.disable_editing) {\n'
20130515 '          //~ console.log("20120202 disable_editing",record.title);\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            if (!cmp.always_enabled) cmp.disable();\n'
20130515 '          },this);\n'
20130515 '      } else {\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            //~ console.log("20120202",cmp);\n'
20130515 '            if (record.data.disabled_fields[cmp.name]) cmp.disable();\n'
20130515 '            else cmp.enable();\n'
20130515 '          },this);\n'
20130515 '        \n'
20130515 '          //~ if (record.data.disabled_fields) {\n'
20130515 '              //~ for (i = 0; i < record.data.disabled_fields.length; i++) {\n'
20130515 "                  //~ var flds = this.find('name',record.data.disabled_fields[i]);\n"
20130515 '                  //~ if (flds.length == 1) { \n'
20130515 '                    //~ flds[0].disable(); \n'
20130515 '                  //~ }\n'
20130515 '              //~ }\n'
20130515 '          //~ }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '      if (record.navinfo && ! this.hide_top_toolbar && ! this.hide_navigator) {\n'
20130515 '        //~ if (record.navinfo.recno == 0) {\n'
20130515 '            //~ this.first.setDisabled(true);\n'
20130515 '            //~ this.prev.setDisabled(true);\n'
20130515 '            //~ this.next.setDisabled(true);\n'
20130515 '            //~ this.last.setDisabled(true);\n'
20130515 '        //~ } else {\n'
20130515 '            this.first.setDisabled(!record.navinfo.first);\n'
20130515 '            this.prev.setDisabled(!record.navinfo.prev);\n'
20130515 '            this.next.setDisabled(!record.navinfo.next);\n'
20130515 '            this.last.setDisabled(!record.navinfo.last);\n'
20130515 '        //~ }\n'
20130515 '        this.displayItem.setText(record.navinfo.message);\n'
20130515 '      }\n'
20130515 '    } else {\n'
20130515 '      if (this.form.rendered) \n'
20130515 '        this.form.reset(); /* FileUploadField would fail when resetting a non-rendered form */\n'
20130515 '      //~ this.disable();\n'
20130515 '      //~ this.getBottomToolbar().disable();\n'
20130515 '      this.form.items.each(function(cmp){\n'
20130515 '        cmp.disable();\n'
20130515 '      },this);\n'
20130515 '      this.set_window_title(this.empty_title);\n'
20130515 '      //~ this.containing_window.window.setTitle(this.empty_title);\n'
20130515 '      if (!this.hide_navigator) {\n'
20130515 '        this.first.disable();\n'
20130515 '        this.prev.disable();\n'
20130515 '        this.next.disable();\n'
20130515 '        this.last.disable();\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 "    //~ console.log('20100531 Lino.DetailMixin.on_load_master_record',this.main_form);\n"
20130515 '    this.before_row_edit(record);\n'
20130515 '    if (after) after();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_selected : function() { return [ this.current_record ] },\n'
20130515 '  get_current_record : function() {  \n'
20130515 '    //~ console.log(20100714,this.current_record);\n'
20130515 '    return this.current_record \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_permalink_url : function() {\n'
20130515 '      var rec = this.get_current_record();\n'
20130515 '      if (rec && ! rec.phantom && rec.id != -99998)\n'
20130515 "          return '/api' + this.ls_url + '/' + rec.id;\n"
20130515 "      return '/api' + this.ls_url;\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  get_permalink_params : function() {\n'
20130515 '    var p = {};\n'
20130515 "    //~ var p = {an:'detail'};\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ var p = {an:this.action_name};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.activeTab) {\n'
20130515 '      var tab = main.items.indexOf(main.activeTab);\n'
20130515 "      //~ console.log('main.activeTab',tab,main.activeTab);\n"
20130515 '      if (tab) p.tab = tab;\n'
20130515 '    }\n'
20130515 '    this.add_param_values(p)\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.FormPanel.save() \n'
20130515 '  */\n'
20130515 '  save : function(after,switch_to_detail,action_name) {\n'
20130515 '    //~ var panel = this;\n'
20130515 "    //~ console.log('20121120 FormPanel.save');\n"
20130515 '    this.loadMask.show();\n'
20130515 '    var rec = this.get_current_record();\n'
20130515 '    if (this.has_file_upload) this.form.fileUpload = true;\n'
20130515 "    //~ console.log('FormPanel.save()',rec);\n"
20130515 '    if (!action_name) action_name = this.action_name;\n'
20130515 '    if (rec) {\n'
20130515 '      var p = {};\n'
20130515 '      Ext.apply(p,this.get_base_params());\n'
20130515 '      p.rp = this.getId();\n'
20130515 '      //~ if (this.action_name) \n'
20130515 '          //~ p.$ext_requests.URL_PARAM_ACTION_NAME = this.action_name;\n'
20130515 '      p.an = action_name;\n'
20130515 '      if (rec.phantom) {\n'
20130515 "        //~ if (this.action_name != 'insert') \n"
20130515 '            //~ console.log("Warning: phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url,\n"
20130515 "          method: 'POST',\n"
20130515 '          params: p, \n'
20130515 '          scope: this,\n'
20130515 '          success: function(form, action) {\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            /***\n'
20130515 '            Close this window, but update the status of the \n'
20130515 '            calling window.\n'
20130515 '            If the calling window is a detail on the same table,\n'
20130515 '            then it should skip to the new record. But only then.\n'
20130515 '            A successful response usually has a data_record,\n'
20130515 '            except if it is a fileupload form where some mysterious \n'
20130515 '            decoding problems (20120209) force us to return a record_id \n'
20130515 '            which will lead to an additional GET.\n'
20130515 '            ***/\n'
20130515 '            var url = this.ls_url;\n'
20130515 '            var ww = Lino.calling_window();\n'
20130515 '            if (ww && ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                   && ww.window.main_item.ls_url == this.ls_url) {\n'
20130515 '                //~ console.log("20120217 case 1");\n'
20130515 '                ww.status.record_id = action.result.record_id;\n'
20130515 '                ww.status.data_record = action.result.data_record;\n'
20130515 '                Lino.close_window();\n'
20130515 '            } else if (this.ls_detail_handler && switch_to_detail) {\n'
20130515 '                //~ console.log("20120217 case 2");\n'
20130515 '                Lino.kill_current_window();\n'
20130515 '                this.ls_detail_handler.run(null,{\n'
20130515 '                    record_id:action.result.record_id,\n'
20130515 '                    data_record: action.result.data_record,\n'
20130515 '                    base_params:this.get_base_params()\n'
20130515 '                });\n'
20130515 '            } else {\n'
20130515 '                //~ console.log("20120217 case 3");\n'
20130515 '                Lino.close_window();\n'
20130515 '            }\n'
20130515 '            //~ Lino.close_window(function(ww){\n'
20130515 '                //~ if (ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                    //~ && ww.window.main_item.ls_url == url) {\n'
20130515 '                  //~ ww.status.record_id = action.result.record_id,\n'
20130515 '                  //~ ww.status.data_record = action.result.data_record\n'
20130515 '                //~ }\n'
20130515 '            //~ });\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action);\n'
20130515 '          },\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      } else {\n'
20130515 "        //~ if (this.action_name != 'detail') \n"
20130515 '            //~ console.log("Warning: non-phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url + '/' + rec.id,\n"
20130515 "          method: 'PUT',\n"
20130515 "          //~ headers: { 'HTTP_X_REQUESTED_WITH' : 'XMLHttpRequest'},\n"
20130515 '          scope: this,\n'
20130515 '          params: p, \n'
20130515 '          success: function(form, action) {\n'
20130515 '            //~ panel.form.setValues(rec.data);\n'
20130515 '            //~ 20110701 panel.form.my_loadRecord(rec);\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            if (action.result.data_record)\n'
20130515 '                this.set_current_record(action.result.data_record,after);\n'
20130515 '            else\n'
20130515 '                console.log("Warning: no data_record in response to FormPanel.PUT")\n'
20130515 '            //~ this.refresh_with_after(after);\n'
20130515 '            //~ if (after) after(); else panel.refresh();\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action)},\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      }\n'
20130515 '    } else Lino.notify("Sorry, no current record.");\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '      this.save(null,true);\n'
20130515 '      //~ var rec = this.get_current_record();\n'
20130515 '      //~ if (rec && rec.phantom)\n'
20130515 '          //~ this.do_when_clean(true,function() { Lino.close_window(); });\n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok, scope:this }\n'
20130515 '        ,{ key: Ext.EventObject.ESCAPE, fn: this.on_cancel, scope:this }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  /* not used (no longer possible without .dtl files)\n'
20130515 '  , edit_detail_config : function () {\n'
20130515 '    var active_tab = {};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.getActiveTab !== undefined) {\n'
20130515 '      var tabitem = main.getActiveTab();\n'
20130515 '      Ext.apply(active_tab,{$ext_requests.URL_PARAM_TAB : main.items.indexOf(tabitem)});\n'
20130515 '    }\n'
20130515 '    var editor = new Ext.form.TextArea();\n'
20130515 '    var close = function() { win.close(); }\n'
20130515 '    var _this = this;\n'
20130515 '    var save = function() { \n'
20130515 '      //~ console.log(20110609,arguments); \n'
20130515 '      var params = {desc: editor.getValue()};\n'
20130515 '      Ext.apply(params,active_tab);\n'
20130515 '      var a = { \n'
20130515 '        params: params, \n'
20130515 "        method: 'PUT',\n"
20130515 "        url: ADMIN_URL + '/detail_config' + _this.ls_url,\n"
20130515 '        failure : Lino.ajax_error_handler(this),\n'
20130515 '        success: Lino.action_handler( _this, function(result) {\n'
20130515 "          //~ console.log('detail_config/save success',result);\n"
20130515 '          win.close();\n'
20130515 '          document.location = _this.get_permalink();\n'
20130515 '        })\n'
20130515 '      };\n'
20130515 "      //~ console.log('detail_config/save sent',a);\n"
20130515 '      _this.loadMask.show(); // 20120211\n'
20130515 '      Ext.Ajax.request(a);\n'
20130515 '    }\n'
20130515 "    var save_btn = new Ext.Button({text:'Save',handler:save,disabled:true});\n"
20130515 "    var win = new Ext.Window({title:'Detail Layout',\n"
20130515 "      items:editor, layout:'fit',\n"
20130515 '      width:500,height:500,\n'
20130515 "      bbar:[{text:'Cancel',handler:close},save_btn]});\n"
20130515 '    var a = { \n'
20130515 '      params:active_tab, \n'
20130515 "      method:'GET',\n"
20130515 "      url:ADMIN_URL+'/detail_config'+_this.ls_url,\n"
20130515 '      success : function(response) {\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 '          if (result.success) {\n'
20130515 '            editor.setValue(result.desc);\n'
20130515 '            save_btn.enable();\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    win.show();\n'
20130515 '  }\n'
20130515 '  */\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.getRowClass = function(record, rowIndex, rowParams, store) {\n'
20130515 '  if (record.phantom) {\n'
20130515 '    //~ console.log(20101009,record);\n'
20130515 '    //~ rowParams.bodyStyle = "color:red;background-color:blue";\n'
20130515 "    return 'lino-phantom-row';\n"
20130515 '    }\n'
20130515 "  //~ console.log('20101009 not a phantom:',record);\n"
20130515 "  return '';\n"
20130515 '}\n'
20130515 '\n'
20130515 '//~ FOO = 0;\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.GridStore = Ext.extend(Ext.data.ArrayStore,{ \n'
20130515 '  autoLoad: false\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    if (!options) options = {};\n'
20130515 '    if (!options.params) options.params = {};\n'
20130515 "    options.params.fmt = 'json';\n"
20130515 '    options.params.rp = this.grid_panel.getId();\n'
20130515 '    Lino.insert_subst_user(options.params); // since 20121016\n'
20130515 '      \n'
20130515 '    \n'
20130515 '    if (this.grid_panel.hide_top_toolbar) {\n'
20130515 '        //~ console.log("20120206 GridStore.load() toolbar is hidden");\n'
20130515 '        options.params.start = 0;\n'
20130515 '        if (this.grid_panel.preview_limit) {\n'
20130515 '          options.params.limit = this.grid_panel.preview_limit;\n'
20130515 '        }\n'
20130515 '    } else {\n'
20130515 '        var ps = this.grid_panel.calculatePageSize();\n'
20130515 '        if (!ps) {\n'
20130515 "            //~ this.gridpanel.on('render',this.load())\n"
20130515 '          //~ console.log("20120814 GridStore.load() failed to calculate pagesize");\n'
20130515 '          return false;\n'
20130515 '            //~ params.$URL_PARAM_LIMIT = 1;\n'
20130515 "            //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '            //~ return;\n'
20130515 '        } \n'
20130515 '        options.params.limit = ps;\n'
20130515 '      \n'
20130515 '        //~ options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '        //~ if (this.grid_panel.getTopToolbar().pageSize !=  ps) {\n'
20130515 '          //~ console.log("20120206 abort load because toolbar says pagesize",\n'
20130515 '            //~ this.grid_panel.getTopToolbar().pageSize,\n'
20130515 '            //~ "while actual pagesize is",ps);\n'
20130515 '            //~ return;\n'
20130515 '        //~ }\n'
20130515 '        \n'
20130515 '        this.grid_panel.getTopToolbar().pageSize =  ps;\n'
20130515 '        if (options.params.start == undefined)\n'
20130515 '            options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    this.grid_panel.add_param_values(options.params);\n'
20130515 '    //~ Lino.insert_subst_user(options.params);\n'
20130515 '    //~ console.log("20120814 GridStore.load()",options.params,this.baseParams);\n'
20130515 '    //~ if (FOO > 0) {\n'
20130515 '        //~ foo.bar = baz;\n'
20130515 '    //~ } else FOO += 1;\n'
20130515 '    return Lino.GridStore.superclass.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '    \n'
20130515 'Lino.GridPanel = Ext.extend(Ext.grid.EditorGridPanel,Lino.MainPanel);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,Lino.PanelMixin);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 "  quick_search_text : '',\n"
20130515 '  is_searching : false,\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  clicksToEdit:2,\n'
20130515 '  enableColLock: false,\n'
20130515 '  autoHeight: false,\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  preview_limit : undefined, \n'
20130515 '  //~ loadMask: true,\n'
20130515 '  //~ viewConfig: {\n'
20130515 '          //~ getRowClass: Lino.getRowClass,\n'
20130515 '          //~ emptyText:"$_(\'No data to display.\')"\n'
20130515 '        //~ },\n'
20130515 '  loadMask: {msg:"Please wait..."},\n'
20130515 '  \n'
20130515 '  constructor : function(config){\n'
20130515 '\n'
20130515 '    config.plugins = [new Lino.GridFilters()];\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ console.log("20111206 install refresh");\n'
20130515 "        //~ this.containing_window.on('show',this.refresh,this);\n"
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    //~ return this.store.getCount() > 0; \n'
20130515 '    return !this.loadMask.disabled; \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_config_containing_window : function(wincfg) { \n'
20130515 '      //~ temporarily remove save_grid_config button (see /blog(2012/1107)\n'
20130515 '      if (wincfg.tools != undefined) \n'
20130515 '        wincfg.tools = [\n'
20130515 '          //~ {handler:this.save_grid_data,\n'
20130515 '            //~ qtip:"$_("Save Grid Data")",\n'
20130515 '            //~ scope:this, id:"save_data"}, // 20120814\n'
20130515 '          {handler:this.save_grid_config,\n'
20130515 '            qtip:"Save Grid Configuration",\n'
20130515 '            scope:this, id:"save"}\n'
20130515 '        ].concat(wincfg.tools);\n'
20130515 '      //~ wincfg.listeners = { show: ... };\n'
20130515 '  },\n'
20130515 '  init_containing_window : function(win) { \n'
20130515 '    //~ console.log("20111206 install refresh");\n'
20130515 "    //~ win.on('show',this.refresh,this);\n"
20130515 '  },\n'
20130515 '  \n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    /* \n'
20130515 '    Problem 20111206:\n'
20130515 "    When a GridPanel is the main item of the window, then it doesn't \n"
20130515 "    have it's own header but uses the window's header bar.\n"
20130515 '    We must do this in initComponent because e.g. in beforerender \n'
20130515 "    it's already to late: a header element has been created because \n"
20130515 '    there was a title.\n'
20130515 '    But Lino.Window adds itself as `this.containing_window` \n'
20130515 '    only after the GridPanel has been initialized.\n'
20130515 '    Workaround is to generate a line "params.containing_window = true;" \n'
20130515 '    in the handler function.\n'
20130515 '    */ \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '    if (this.is_main_window) {\n'
20130515 "        //~ console.log(20111206, 'delete title',this.title,'from',this);\n"
20130515 '        //~ delete this.title;\n'
20130515 '        this.tools = undefined;  \n'
20130515 '        this.title = undefined;  /* simply deleting it \n'
20130515 "          isn't enough because that would only \n"
20130515 '          unhide the title defined in some base class. */\n'
20130515 '    } \n'
20130515 "    //~ else console.log(20111206, 'dont delete title',this.title,'from',this);\n"
20130515 '    \n'
20130515 '    /* e.g. when slave gridwindow called from a permalink */\n'
20130515 '    //~ if (this.base_params) Ext.apply(bp,this.base_params);  \n'
20130515 "    //~ bp['fmt'] = 'json';\n"
20130515 '    \n'
20130515 '    //~ function on_proxy_write( proxy, action,data, response,rs,options) {\n'
20130515 "      //~ console.log('20120814 on_proxy_write',action,data,response)\n"
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '    //~ }\n'
20130515 '    //~ function on_proxy_load( proxy, transactionObject, callbackOptions ) {\n'
20130515 "      //~ console.log('on_proxy_load',transactionObject)\n"
20130515 '    //~ }\n'
20130515 '    var proxy = new Ext.data.HttpProxy({ \n'
20130515 '      // 20120814 \n'
20130515 "      url: '/api' + this.ls_url\n"
20130515 '      ,method: "GET"\n'
20130515 "      //~ ,url: ADMIN_URL + '/restful' + this.ls_url\n"
20130515 '      //~ ,restful: true \n'
20130515 '      //~ ,listeners: {load:on_proxy_load} \n'
20130515 '      //~ ,listeners: {write:on_proxy_write} \n'
20130515 '    });\n'
20130515 '    //~ config.store = new Ext.data.JsonStore({ \n'
20130515 '    //~ this.store = new Ext.data.ArrayStore({ \n'
20130515 '    this.store = new Lino.GridStore({ \n'
20130515 '      grid_panel: this\n'
20130515 '      ,listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,remoteSort: true\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      //~ ,id: "id" \n'
20130515 '      ,proxy: proxy\n'
20130515 '      //~ autoLoad: this.containing_window ? true : false\n'
20130515 '      ,idIndex: this.pk_index\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,fields: this.ls_store_fields\n'
20130515 '      ,idProperty: this.ls_id_property \n'
20130515 '      // 20120814\n'
20130515 '      //~ ,writer : new Ext.data.JsonWriter({\n'
20130515 '        //~ writeAllFields: false\n'
20130515 '        //~ ,listful: true\n'
20130515 '      //~ })\n'
20130515 '      //~ ,restful : true\n'
20130515 '    });\n'
20130515 '      \n'
20130515 "    //~ console.log('config.pk_index',config.pk_index,config.store),\n"
20130515 '    delete this.ls_store_fields;\n'
20130515 '      \n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var grid = this;\n'
20130515 "    this.store.on('load', function() {\n"
20130515 "        //~ console.log('20120814 GridStore.on(load)',this_.store);\n"
20130515 '        //~ var da = this_.store.reader.arrayData.disabled_actions;\n'
20130515 '        //~ if (da) {\n'
20130515 '            //~ this.cmenu.cascade(function(item){ \n'
20130515 '              //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '              //~ if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '            //~ });\n'
20130515 '        //~ };\n'
20130515 '        this_.set_param_values(this_.store.reader.arrayData.param_values);\n'
20130515 '        //~ this_.set_status(this_.store.reader.arrayData.status);\n'
20130515 '        //~ 20120918\n'
20130515 '        if (this_.store.reader.arrayData.no_data_text) {\n'
20130515 '            //~ this.viewConfig.emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().refresh();\n'
20130515 '        }\n'
20130515 '        if (this_.containing_window)\n'
20130515 '            this_.set_window_title(this_.store.reader.arrayData.title);\n'
20130515 '            //~ this_.containing_window.setTitle(this_.store.reader.arrayData.title);\n'
20130515 '        if (!this.is_searching) { // disabled 20121025: quick_search_field may not lose focus\n'
20130515 '          this.is_searching = false;\n'
20130515 '          if (this_.selModel.getSelectedCell){\n'
20130515 '              if (this_.getStore().getCount()) // there may be no data\n'
20130515 '                  this_.selModel.select(0,0); \n'
20130515 '          } else {\n'
20130515 '              this_.selModel.selectFirstRow();\n'
20130515 '              this_.getView().focusEl.focus();\n'
20130515 '          }\n'
20130515 '        } \n'
20130515 '        //~ else console.log("is_searching -> no focussing");\n'
20130515 '        //~ var t = this.getTopToolbar();\n'
20130515 '        //~ var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '        //~ this.quick_search_field.focus(); // 20121024\n'
20130515 '      }, this\n'
20130515 '    );\n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar, this.cmenu = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ this.cmenu = new Ext.menu.Menu({items: config.bbar});\n'
20130515 '    delete this.ls_bbar_actions\n'
20130515 '    if (actions) {\n'
20130515 '        this.cmenu = actions.cmenu;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (!this.hide_top_toolbar) {  \n'
20130515 '      var tbar = [ \n'
20130515 '        this.quick_search_field = new Ext.form.TextField({ \n'
20130515 '          //~ fieldLabel: "Search"\n'
20130515 '          listeners: { \n'
20130515 '            scope:this_\n'
20130515 '            //~ ,change:this_.search_change\n'
20130515 '            \n'
20130515 '            ,render: Lino.quicktip_renderer("Quick Search","Enter a text to use as quick search filter")\n'
20130515 '            \n'
20130515 '            //~ ,keypress: this.search_keypress \n'
20130515 '            ,blur: function() { this.is_searching = false}\n'
20130515 '          }\n'
20130515 '          ,validator:function(value) { return this_.search_validate(value) }\n'
20130515 '          //~ ,tooltip: "Enter a quick search text, then press TAB"\n'
20130515 '          //~ value: text\n'
20130515 '          //~ scope:this, \n'
20130515 '          //~ ,enableKeyEvents: true\n'
20130515 '          //~ listeners: { keypress: this.search_keypress }, \n'
20130515 '          //~ id: "seachString" \n'
20130515 '      })];\n'
20130515 '      tbar = this.add_params_panel(tbar);\n'
20130515 '      tbar = tbar.concat([\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[csv]", \n'
20130515 '          tooltip: "Export this table to a .csv file", \n'
20130515 "          iconCls: 'x-tbar-csv',\n"
20130515 '          handler: function() { \n'
20130515 '            //~ 20130116 var p = Ext.apply({},this.get_base_params());\n'
20130515 "            //~ 20130116 p.fmt = 'csv';\n"
20130515 '            //~ url += "?" + Ext.urlEncode(p);\n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "csv";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            \n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        //~ { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          //~ handler: function() { \n'
20130515 '            //~ var p = this.get_current_grid_config();\n'
20130515 '            //~ Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PRINTER";\n'
20130515 '            //~ this.add_param_values(p);\n'
20130515 '            //~ window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          //~ } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          tooltip: "Show this table in plain html", \n'
20130515 "          iconCls: 'x-tbar-html',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ since 20121226 p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PLAIN";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            //~ since 20121226 window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '            window.open(\'/plain\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[pdf]", \n'
20130515 '          tooltip: "Show this table as a pdf document", \n'
20130515 "          iconCls: 'x-tbar-pdf',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "pdf";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } }\n'
20130515 '      ]);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      var menu = [];\n'
20130515 '      var set_gc = function(index) {\n'
20130515 '        return function() {\n'
20130515 "          //~ console.log('set_gc() 20100812');\n"
20130515 '          this.getColumnModel().setConfig(\n'
20130515 '              this.apply_grid_config(index,this.ls_grid_configs,this.ls_columns));\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      for (var i = 0; i < this.ls_grid_configs.length;i++) {\n'
20130515 '        var gc = this.ls_grid_configs[i];\n'
20130515 '        menu.push({text:gc.label,handler:set_gc(i),scope:this})\n'
20130515 '      }\n'
20130515 '      if(menu.length > 1) {\n'
20130515 '        tbar = tbar.concat([\n'
20130515 '          { text:"View",\n'
20130515 '            menu: menu,\n'
20130515 '            tooltip:"Select another view of this report"\n'
20130515 '          }\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      if (actions) {\n'
20130515 '        tbar = tbar.concat(actions.bbar);\n'
20130515 '          //~ this.bbar = actions.bbar;\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      this.tbar = new Ext.PagingToolbar({ \n'
20130515 '        store: this.store, \n'
20130515 '        prependButtons: true, \n'
20130515 '        //~ pageSize: this.page_length, \n'
20130515 '        pageSize: 1, \n'
20130515 '        displayInfo: true, \n'
20130515 '        beforePageText: "Page",\n'
20130515 '        afterPageText: "of {0}",\n'
20130515 '        displayMsg: "Displaying {0} - {1} of {2}",\n'
20130515 '        firstText: "Premi\xc3\xa8re page",\n'
20130515 '        lastText: "Derni\xc3\xa8re page",\n'
20130515 '        prevText: "Page pr\xc3\xa9c\xc3\xa9dente",\n'
20130515 '        nextText: "Page suivante",\n'
20130515 '        items: tbar\n'
20130515 '      });\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ var ps = this.calculatePageSize();\n'
20130515 '          //~ if (ps && ps != this.getTopToolbar().pageSize) {\n'
20130515 "              //~ // console.log('20120203 resize : pageSize',this.getTopToolbar().pageSize,'->',ps);\n"
20130515 '              //~ // this.getTopToolbar().pageSize =  ps;\n'
20130515 '              //~ cmp.refresh();\n'
20130515 '              //~ // this.getTopToolbar().doRefresh();\n'
20130515 '          //~ }\n'
20130515 '        //~ }, this);\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ cmp.getTopToolbar().pageSize = this.calculatePageSize(aw,ah,rw,rh) || 10;\n'
20130515 '          //~ cmp.refresh();\n'
20130515 '        //~ }, this, {delay:500});\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ delete this.page_length\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      \n'
20130515 '    if (this.ls_quick_edit) {\n'
20130515 '      this.selModel = new Ext.grid.CellSelectionModel()\n'
20130515 '      this.get_selected = function() {\n'
20130515 '        //~ console.log(this.getSelectionModel().selection);\n'
20130515 '        if (this.selModel.selection)\n'
20130515 '            return [ this.selModel.selection.record ];\n'
20130515 '        return [this.store.getAt(0)];\n'
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        if (this.getSelectionModel().selection) \n'
20130515 '          return this.selModel.selection.record;\n'
20130515 '        return this.store.getAt(0);\n'
20130515 '      };\n'
20130515 '    } else { \n'
20130515 '      this.selModel = new Ext.grid.RowSelectionModel() \n'
20130515 '      this.get_selected = function() {\n'
20130515 '        var sels = this.selModel.getSelections();\n'
20130515 '        if (sels.length == 0) sels = [this.store.getAt(0)];\n'
20130515 '        return sels\n'
20130515 '        //~ var sels = this.getSelectionModel().getSelections();\n'
20130515 "        //~ return Ext.pluck(sels,'id');\n"
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        var rec = this.selModel.getSelected();\n'
20130515 '        if (rec == undefined) rec = this.store.getAt(0);\n'
20130515 '        return rec\n'
20130515 '      };\n'
20130515 '    };\n'
20130515 '    delete this.ls_quick_edit;\n'
20130515 '    \n'
20130515 '    this.columns  = this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns);\n'
20130515 '    \n'
20130515 '    //~ var grid = this;\n'
20130515 '    //~ this.colModel = new Ext.grid.ColumnModel({\n'
20130515 '      //~ columns: this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns),\n'
20130515 '      //~ isCellEditable: function(col, row) {\n'
20130515 '        //~ var record = grid.store.getAt(row);\n'
20130515 "        //~ console.log('20120514',col,record); // dataIndex\n"
20130515 '        //~ var dataIndex = grid.colModel.getDataIndex(col);\n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("$_("This field is disabled")");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        //~ return Ext.grid.ColumnModel.prototype.isCellEditable.call(this, col, row);\n'
20130515 '      //~ }\n'
20130515 '    //~ });    \n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) \n'
20130515 "        //~ this.on('afterlayout', this.refresh, this);\n"
20130515 "        //~ this.on('afterrender', this.refresh,this);\n"
20130515 '    //~ else\n'
20130515 "        //~ this.on('show', this.refresh,this);\n"
20130515 "    //~ this.on('afterlayout', function() {\n"
20130515 '      //~ if (this.id == "ext-comp-1157") \n'
20130515 '        //~ console.log("20120213 afterlayout",this); \n'
20130515 '      //~ // this.refresh();\n'
20130515 '      //~ },this);\n'
20130515 "    //~ this.on('afterrender', this.refresh);\n"
20130515 "    //~ this.on('resize', this.refresh,this,{delay:500});\n"
20130515 '    //~ this.on(\'resize\', function(){console.log("20120213 resize",arguments)},this);\n'
20130515 "    this.on('resize', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments)\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('viewready', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments);\n'
20130515 '      this.view_is_ready = true;\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('afteredit', this.on_afteredit); // 20120814\n"
20130515 "    //~ this.on('afteredit', this.new_on_afteredit);\n"
20130515 "    this.on('beforeedit', this.on_beforeedit);\n"
20130515 "    this.on('beforeedit',function(e) { this.before_row_edit(e.record)},this);\n"
20130515 "    this.on('cellcontextmenu', Lino.cell_context_menu, this);\n"
20130515 "    //~ this.on('contextmenu', Lino.grid_context_menu, this);\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ if (this.id == "ext-comp-1157") captureEvents(this);    \n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ onResize : function(){\n'
20130515 '      //~ console.log("20120206 GridPanel.onResize",arguments);\n'
20130515 '      //~ Lino.GridPanel.superclass.onResize.apply(this, arguments);\n'
20130515 '      //~ this.refresh();\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '    var st = { base_params : this.get_base_params()};\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '        st.current_page = this.getTopToolbar().current;\n'
20130515 '    }\n'
20130515 '    st.param_values = this.status_param_values;\n'
20130515 '    //~ console.log("20120213 GridPanel.get_status",st);\n'
20130515 '    return st;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.GridPanel.set_status() \n'
20130515 '  */\n'
20130515 '  set_status : function(status){\n'
20130515 '    //~ console.log("20120918 GridPanel.set_status",status);\n'
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) { \n'
20130515 '      this.set_base_params(status.base_params);\n'
20130515 '    }\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '      //~ console.log("20120213 GridPanel.getTopToolbar().changePage",\n'
20130515 '          //~ status.current_page || 1);\n'
20130515 '      this.getTopToolbar().changePage(status.current_page || 1);\n'
20130515 '    }\n'
20130515 "    //~ this.fireEvent('resize');\n"
20130515 '    //~ this.refresh.defer(100,this); \n'
20130515 '    //~ this.onResize.defer(100,this); \n'
20130515 '    //~ this.refresh(); \n'
20130515 '    //~ this.doLayout(); \n'
20130515 '    //~ this.onResize(); \n'
20130515 '    //~ this.store.load();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '    this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ Lino.notify('20120204 Lino.GridPanel.refresh');\n"
20130515 "    //~ Lino.notify('Lino.GridPanel.refresh '+this.store.proxy.url);\n"
20130515 "    //~ var bp = { fmt:'json' }\n"
20130515 '    if (this.containing_panel) {\n'
20130515 '        //~ Ext.apply(p,this.master_panel.get_master_params());\n'
20130515 '        //~ Ext.apply(options.params,this.containing_panel.get_master_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (! this.view_is_ready) return;\n'
20130515 '    \n'
20130515 '    var options = {};\n'
20130515 '    if (after) {\n'
20130515 '        options.callback = function(r,options,success) {if(success) after()}\n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    //~ if (!this.rendered) {\n'
20130515 '        //~ console.log("20120206 GridPanel.refresh() must wait until rendered",options);\n'
20130515 "        //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    this.store.load(options);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* pageSize depends on grid height (Trying to remove scrollbar)\n'
20130515 '  Thanks to \n'
20130515 '  - Christophe Badoit on http://www.sencha.com/forum/showthread.php?82647\n'
20130515 '  - http://www.sencha.com/forum/archive/index.php/t-37231.html\n'
20130515 '  */\n'
20130515 '  calculatePageSize : function(second_attempt) {\n'
20130515 '    //~ if (!this.rendered) { \n'
20130515 '    if (!this.view_is_ready) { \n'
20130515 "      //~ console.log('Cannot calculatePageSize() : not rendered');\n"
20130515 '      return false; }\n'
20130515 '    //~ if (!this.isVisible()) { \n'
20130515 "      //~ console.log('calculatePageSize : not visible');\n"
20130515 '      //~ return false; }\n'
20130515 '      \n'
20130515 "    //~ console.log('getFrameHeight() is',this.getFrameHeight());\n"
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('mainBody.getHeight() is',this.getView().mainBody.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() is',this.getInnerHeight());\n"
20130515 "    //~ console.log('getHeight() is',this.getHeight());\n"
20130515 "    //~ console.log('el.getHeight() is',this.getEl().getHeight());\n"
20130515 "    //~ console.log('getGridEl().getHeight() is',this.getGridEl().getHeight());\n"
20130515 "    //~ console.log('getOuterSize().height is',this.getOuterSize().height);\n"
20130515 "    //~ console.log('getBox().height is',this.getBox().height);\n"
20130515 "    //~ console.log('getResizeEl.getHeight() is',this.getResizeEl().getHeight());\n"
20130515 "    //~ console.log('getLayoutTarget().getHeight() is',this.getLayoutTarget().getHeight());\n"
20130515 '      \n'
20130515 '    var rowHeight = this.getFrameHeight();\n'
20130515 '    //~ var rowHeight = 52; // experimental value\n'
20130515 '    var row = this.view.getRow(0);\n'
20130515 '    if (row) {\n'
20130515 "      //~ console.log('20120213 yes');\n"
20130515 '      rowHeight = Ext.get(row).getHeight();\n'
20130515 '    }\n'
20130515 "    //~ console.log('rowHeight is ',rowHeight,this,caller);\n"
20130515 '    //~ this.getView().syncScroll();\n'
20130515 '    //~ this.getView().initTemplates();\n'
20130515 '    var height = this.getView().scroller.getHeight();\n'
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() - getFrameHeight() is',\n"
20130515 "      //~ this.getInnerHeight(), '-',\n"
20130515 "      //~ this.getFrameHeight(), '=',\n"
20130515 '      //~ this.getInnerHeight() - this.getFrameHeight());\n'
20130515 '    //~ var height = this.getView().mainBody.getHeight();\n'
20130515 '    //~ var height = this.getView().mainWrap.getHeight();\n'
20130515 '    //~ var height = this.getView().resizeMarker.getHeight();\n'
20130515 '    //~ this.syncSize();\n'
20130515 '    //~ var height = this.getInnerHeight() - this.getFrameHeight();\n'
20130515 '    //~ var height = this.getHeight() - this.getFrameHeight();\n'
20130515 '    height -= Ext.getScrollBarWidth(); // leave room for a possible horizontal scrollbar... \n'
20130515 '    //~ height -= this.getView().scrollOffset;\n'
20130515 '    var ps = Math.floor(height / rowHeight);\n'
20130515 "    //~ console.log('20120203 calculatePageSize():',height,'/',rowHeight,'->',ps);\n"
20130515 '    ps -= 1; // leave room for a possible phantom row\n'
20130515 '    //~ return (ps > 1 ? ps : false);\n'
20130515 '    if (ps > 1) return ps;\n'
20130515 "    //~ console.log('calculatePageSize() found less than 1 row:',height,'/',rowHeight,'->',ps);\n"
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    return 5; // preview_limit\n'
20130515 '    //~ if (second_attempt) {\n'
20130515 "        //~ console.log('calculatePageSize() abandons after second attempt:',\n"
20130515 "          //~ height,'/',rowHeight,'->',ps);\n"
20130515 '      //~ return 5;\n'
20130515 '    //~ }\n'
20130515 '    //~ return this.calculatePageSize.defer(500,this,[true]);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  onCellDblClick : function(grid, row, col){\n'
20130515 '      //~ console.log("20120307 onCellDblClick",this,grid, row, col);\n'
20130515 '      if (this.ls_detail_handler) {\n'
20130515 "          //~ Lino.notify('show detail');\n"
20130515 '          Lino.show_detail(this);\n'
20130515 '          return false;\n'
20130515 '      }else{\n'
20130515 "        //~ console.log('startEditing');\n"
20130515 '        this.startEditing(row,col);\n'
20130515 '      }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_base_params : function() {\n'
20130515 '    //~ return this.containing_window.config.base_params;\n'
20130515 '    //~ console.log(20120717,this.store.baseParams);\n'
20130515 '    var p = Ext.apply({},this.store.baseParams);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    //~ console.log("20120717 GRidPanel.get_base_params() returns",p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.store.baseParams;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 "    //~ console.log('GridPanel.set_base_params',p)\n"
20130515 '    for (k in p) this.store.setBaseParam(k,p[k]);\n'
20130515 '    //~ this.store.baseParams = p;\n'
20130515 '    if (p.query) \n'
20130515 '        this.quick_search_field.setValue(p.query);\n'
20130515 '    //~ if (p.param_values) \n'
20130515 '        //~ this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.store.baseParams = {};\n'
20130515 '      Lino.insert_subst_user(this.store.baseParams);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.store.setBaseParam(k,v);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ get_permalink_params : function() {\n'
20130515 '    //~ var p = {};\n'
20130515 '    //~ return p;\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '    \n'
20130515 '  //~ search_keypress : function(){\n'
20130515 '    //~ console.log("2012124 search_keypress",arguments);\n'
20130515 '  //~ },\n'
20130515 '  search_validate : function(value) {\n'
20130515 '    if (value == this.quick_search_text) return true;\n'
20130515 '    this.is_searching = true;\n'
20130515 "    //~ console.log('search_validate',value)\n"
20130515 '    this.quick_search_text = value;\n'
20130515 "    this.set_base_param('query',value); \n"
20130515 '    //~ this.getTopToolbar().changePage(1);\n'
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '    return true;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  apply_grid_config : function(index,grid_configs,rpt_columns) {\n'
20130515 '    //~ var rpt_columns = this.ls_columns;\n'
20130515 '    var gc = grid_configs[index];    \n'
20130515 "    //~ console.log('apply_grid_config() 20100812',name,gc);\n"
20130515 '    this.gc_name = index;\n'
20130515 '    if (gc == undefined) {\n'
20130515 '      return rpt_columns;\n'
20130515 '      //~ config.columns = config.ls_columns;\n'
20130515 '      //~ return;\n'
20130515 '    } \n'
20130515 '    //~ delete config.ls_filters\n'
20130515 '    \n'
20130515 '    //~ console.log(20100805,config.ls_columns);\n'
20130515 '    var columns = Array(gc.columns.length);\n'
20130515 '    for (var j = 0; j < rpt_columns.length;j++) {\n'
20130515 '      var col = rpt_columns[j];\n'
20130515 '      for (var i = 0; i < gc.columns.length; i++) {\n'
20130515 '        if (col.dataIndex == gc.ci[i]) {\n'
20130515 '          col.width = gc.cw[i];\n'
20130515 '          col.hidden = gc.ch[i];\n'
20130515 '          columns[i] = col;\n'
20130515 '          break;\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ var columns = Array(rpt_columns.length);\n'
20130515 '    //~ for (var i = 0; i < rpt_columns.length; i++) {\n'
20130515 '      //~ columns[i] = rpt_columns[gc.columns[i]];\n'
20130515 '      //~ columns[i].width = gc.widths[i];\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    //~ if (gc.hidden_cols) {\n'
20130515 '      //~ for (var i = 0; i < gc.hidden_cols.length; i++) {\n'
20130515 '        //~ var hc = gc.hidden_cols[i];\n'
20130515 '        //~ for (var j = 0; j < columns.length;j++) {\n'
20130515 '          //~ var col = columns[j];\n'
20130515 '          //~ if (col.dataIndex == hc) {\n'
20130515 '            //~ col.hidden = true;\n'
20130515 '            //~ break\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '    if (gc.filters) {\n'
20130515 "      //~ console.log(20100811,'config.ls_filters',config.ls_filters);\n"
20130515 "      //~ console.log(20100811,'config.ls_grid_config.filters',config.ls_grid_config.filters);\n"
20130515 '      for (var i = 0; i < gc.filters.length; i++) {\n'
20130515 '        var fv = gc.filters[i];\n'
20130515 '        for (var j = 0; j < columns.length;j++) {\n'
20130515 '          var col = columns[j];\n'
20130515 '          if (col.dataIndex == fv.field) {\n'
20130515 "            //~ console.log(20100811, f,' == ',fv);\n"
20130515 "            if (fv.type == 'string') {\n"
20130515 '              col.filter.value = fv.value;\n'
20130515 '              //~ if (fv.comparison !== undefined) f.comparison = fv.comparison;\n'
20130515 '            } else {\n'
20130515 '              //~ console.log(20100811, fv);\n'
20130515 '              col.filter.value = {};\n'
20130515 '              col.filter.value[fv.comparison] = fv.value;\n'
20130515 '            }\n'
20130515 '            break;\n'
20130515 '          }\n'
20130515 '        };\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    return columns;\n'
20130515 '    //~ config.columns = cols;\n'
20130515 '    //~ delete config.ls_columns\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_current_grid_config : function () {\n'
20130515 '    var cm = this.getColumnModel();\n'
20130515 '    var widths = Array(cm.config.length);\n'
20130515 '    var hiddens = Array(cm.config.length);\n'
20130515 '    //~ var hiddens = Array(cm.config.length);\n'
20130515 '    var columns = Array(cm.config.length);\n'
20130515 '    //~ var columns = Array(cm.config.length);\n'
20130515 '    //~ var hidden_cols = [];\n'
20130515 '    //~ var filters = this.filters.getFilterValues();\n'
20130515 '    var p = this.filters.buildQuery(this.filters.getFilterData())\n'
20130515 '    for (var i = 0; i < cm.config.length; i++) {\n'
20130515 '      var col = cm.config[i];\n'
20130515 '      columns[i] = col.dataIndex;\n'
20130515 '      //~ hiddens[i] = col.hidden;\n'
20130515 '      widths[i] = col.width;\n'
20130515 '      hiddens[i] = col.hidden;\n'
20130515 '      //~ if (col.hidden) hidden_cols.push(col.dataIndex);\n'
20130515 '    }\n'
20130515 "    //~ p['hidden_cols'] = hidden_cols;\n"
20130515 '    p.cw = widths;\n'
20130515 '    p.ch = hiddens;\n'
20130515 '    p.ci = columns;\n'
20130515 "    //~ p['widths'] = widths;\n"
20130515 "    //~ p['hiddens'] = hiddens;\n"
20130515 "    //~ p['columns'] = columns;\n"
20130515 "    p['name'] = this.gc_name;\n"
20130515 '    //~ var gc = this.ls_grid_configs[this.gc_name];\n'
20130515 '    //~ if (gc !== undefined) \n'
20130515 "        //~ p['label'] = gc.label\n"
20130515 "    //~ console.log('20100810 save_grid_config',p);\n"
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_manage_grid_configs : function() {\n'
20130515 '    var data = [];\n'
20130515 '    for (k in this.ls_grid_configs) {\n'
20130515 '      var v = this.ls_grid_configs[k];\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i)\n'
20130515 '    }\n'
20130515 '    if (this.ls_grid_configs[this.gc_name] == undefined) {\n'
20130515 '      var v = this.get_current_grid_config();\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i);\n'
20130515 '    }\n'
20130515 '    //~ console.log(20100811, data);\n'
20130515 '    var main = new Ext.grid.GridPanel({\n'
20130515 '      store: new Ext.data.ArrayStore({\n'
20130515 '        idIndex:0,\n'
20130515 "        fields:['name','columns','hidden_cols','filters'],\n"
20130515 '        autoDestroy:true,\n'
20130515 '        data: data}),\n'
20130515 '      //~ autoHeight:true,\n'
20130515 '      selModel: new Ext.grid.RowSelectionModel(),\n'
20130515 '      listeners: { \n'
20130515 '        rowdblclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row doubleclicked',grid, rowIndex,e);\n"
20130515 '        },\n'
20130515 '        rowclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row clicked',grid, rowIndex,e);\n"
20130515 '        }\n'
20130515 '      },\n'
20130515 '      columns: [ \n'
20130515 "        {dataIndex:'name',header:'Name'}, \n"
20130515 "        {dataIndex:'columns',header:'columns'}, \n"
20130515 "        {dataIndex:'hidden_cols',header:'hidden columns'}, \n"
20130515 "        {dataIndex:'filters',header:'filters'} \n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 "    var win = new Ext.Window({title:'GridConfigs Manager',layout:'fit',items:main,height:200});\n"
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_edit_grid_config : function(name) {\n'
20130515 '    gc = this.ls_grid_configs[name];\n'
20130515 '    var win = new Ext.Window({\n'
20130515 "      title:'Edit Grid Config',layout:'vbox', \n"
20130515 "      //~ layoutConfig:'stretch'\n"
20130515 '      items:[\n'
20130515 "        {xtype:'text', value: gc.name},\n"
20130515 "        {xtype:'text', value: gc.columns},\n"
20130515 "        {xtype:'text', value: gc.hidden_cols},\n"
20130515 "        {xtype:'text', value: gc.filters}\n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  save_grid_config : function () {\n'
20130515 "    //~ console.log('TODO: save_grid_config',this);\n"
20130515 "    //~ p.column_widths = Ext.pluck(this.colModel.columns,'width');\n"
20130515 '    var a = { \n'
20130515 '      params:this.get_current_grid_config(), \n'
20130515 "      method:'PUT',\n"
20130515 "      url:'/grid_config' + this.ls_url,\n"
20130515 '      success: Lino.action_handler(this),\n'
20130515 '      scope: this,\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    //~ Lino.do_action(this,a);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_beforeedit : function(e) {\n'
20130515 "    //~ console.log('20130128 GridPanel.on_beforeedit()',e,e.record.data.disable_editing);\n"
20130515 '    if(this.disable_editing | e.record.data.disable_editing) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This record is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    if(e.record.data.disabled_fields && e.record.data.disabled_fields[e.field]) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This field is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    //~ if (e.record.data.disabled_fields) {\n'
20130515 '      //~ for (i in e.record.data.disabled_fields) {\n'
20130515 '        //~ if(e.record.data.disabled_fields[i] == e.field) {\n'
20130515 '          //~ e.cancel = true;\n'
20130515 '          //~ Lino.notify(String.format(\'Field "{0}" is disabled for this record\',e.field));\n'
20130515 '          //~ return\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  save_grid_data : function() {\n'
20130515 '      //~ console.log("20120814 save_grid_data");\n'
20130515 '      this.getStore().commitChanges();\n'
20130515 '  },\n'
20130515 '  new_on_afteredit : function(e) {\n'
20130515 '      //~ this.getStore().commitChanges();\n'
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '      console.log("20120814 new_on_afteredit",e);\n'
20130515 '  },\n'
20130515 '  on_afteredit : function(e) {\n'
20130515 '    /*\n'
20130515 '    e.grid - The grid that fired the event\n'
20130515 '    e.record - The record being edited\n'
20130515 '    e.field - The field name being edited\n'
20130515 '    e.value - The value being set\n'
20130515 '    e.originalValue - The original value for the field, before the edit.\n'
20130515 '    e.row - The grid row index\n'
20130515 '    e.column - The grid column index\n'
20130515 '    */\n'
20130515 '    var p = {};\n'
20130515 "    //~ console.log('20101130 modified: ',e.record.modified);\n"
20130515 "    //~ console.log('20101130 value: ',e.value);\n"
20130515 '    //~ var p = e.record.getChanges();\n'
20130515 "    //~ console.log('20101130 getChanges: ',e.record.getChanges());\n"
20130515 '    //~ this.before_row_edit(e.record);\n'
20130515 '    for(k in e.record.getChanges()) {\n'
20130515 '        var v = e.record.get(k);\n'
20130515 '    //~ for(k in e.record.modified) {\n'
20130515 "        //~ console.log('20101130',k,'=',v);\n"
20130515 '        //~ var cm = e.grid.getColumnModel();\n'
20130515 '        //~ var di = cm.getDataIndex(k);\n'
20130515 '        var f = e.record.fields.get(k);\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 '        //~ var v = e.record.get(di);\n'
20130515 "        if (f.type.type == 'date') {\n"
20130515 '            p[k] = Ext.util.Format.date(v, f.dateFormat);\n'
20130515 '        }else{\n'
20130515 '            p[k] = v;\n'
20130515 "            var v = e.record.get(k+'Hidden');\n"
20130515 '            if (v !== undefined) {\n'
20130515 "              p[k+'Hidden'] = v;\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        //~ var i = cm.findColumnIndex(k);\n'
20130515 '        //~ var r = cm.getRenderer(i);\n'
20130515 '        //~ var editor = cm.getCellEditor(i,e.row);\n'
20130515 '        //~ var col = e.grid.getColumnModel().getColumnById(k);\n'
20130515 "        //~ console.log('20101130 r = ',r(v));\n"
20130515 '        //~ var f = e.record.fields[k];\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 "        //~ console.log('20101130 editor = ',editor);\n"
20130515 '        //~ p[k] = f.getValue();\n'
20130515 '        //~ p[k] = r(v);\n'
20130515 '    }\n'
20130515 "    //~ console.log('20101130 p:',p);\n"
20130515 '    //~ var cm = e.grid.getColumnModel();\n'
20130515 '    //~ var di = cm.getDataIndex(e.column);\n'
20130515 '    //~ var f = e.record.fields.get(di);\n'
20130515 "    //~ console.log('20101130 f = ',f);\n"
20130515 "    //~ if (f.type.type == 'date') e.record.set(di,Ext.util.Format.date(e.value, f.dateFormat));\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var p = e.record.data;\n'
20130515 '    \n'
20130515 '    // var p = {};\n'
20130515 "    //~ p['grid_afteredit_colname'] = e.field;\n"
20130515 '    //~ p[e.field] = e.value;\n'
20130515 "    //~ console.log('20100723 GridPanel.on_afteredit()',e);\n"
20130515 '    // add value used by ForeignKeyStoreField CHOICES_HIDDEN_SUFFIX\n'
20130515 '    // not sure whether this is still needed:\n'
20130515 "    p[e.field+'Hidden'] = e.value;\n"
20130515 '    //~ p.su = Lino.subst_user;\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    // this one is needed so that this field can serve as choice context:\n'
20130515 "    e.record.data[e.field+'Hidden'] = e.value;\n"
20130515 '    // p[pk] = e.record.data[pk];\n'
20130515 '    // console.log("grid_afteredit:",e.field,\'=\',e.value);\n'
20130515 '    Ext.apply(p,this.get_base_params()); // needed for POST, ignored for PUT\n'
20130515 '    //~ Ext.apply(p,this.containing_window.config.base_params);\n'
20130515 "    //~ 20121109 p['$ext_requests.URL_PARAM_ACTION_NAME'] = 'grid';\n"
20130515 '    var self = this;\n'
20130515 '    var req = {\n'
20130515 '        params:p,\n'
20130515 "        waitMsg: 'Saving your data...',\n"
20130515 '        success: Lino.action_handler( this, function(result) {\n'
20130515 '          //~ if (result.data_record) {\n'
20130515 '          if (result.refresh_all) {\n'
20130515 '              var cw = self.get_containing_window();\n'
20130515 '              if (cw) {\n'
20130515 '                  cw.main_item.refresh();\n'
20130515 '              }\n'
20130515 '              else console.log("20120123 cannot refresh_all",self);\n'
20130515 '          } else if (result.rows) {\n'
20130515 '              //~ self.getStore().loadData(result,true);\n'
20130515 '              var r = self.getStore().reader.readRecords(result);\n'
20130515 '              if (e.record.phantom) {\n'
20130515 '                  //~ console.log("20120816 afteredit.success POST",r);\n'
20130515 '                  self.getStore().insert(e.row,r.records);\n'
20130515 '              }else{\n'
20130515 '                  //~ console.log("20120816 afteredit.success PUT",r);\n'
20130515 '                  self.getStore().doUpdate(r.records[0]);\n'
20130515 '              }\n'
20130515 '              self.getStore().rejectChanges(); /* \n'
20130515 '              get rid of the red triangles without saving the record again\n'
20130515 '              */\n'
20130515 '              //~ self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '          } else {\n'
20130515 '              self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '              self.getStore().reload();        // reload our datastore.\n'
20130515 '          }\n'
20130515 '          }),\n'
20130515 '        scope: this,\n'
20130515 '        failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    if (e.record.phantom) {\n'
20130515 "      req.params.an = 'post'; // SubmitInsert.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'POST',\n"
20130515 "        url: '/api' + this.ls_url\n"
20130515 '      });\n'
20130515 '    } else {\n'
20130515 "      req.params.an = 'put'; // SubmitDetail.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'PUT',\n"
20130515 "        url: '/api' + this.ls_url + '/' + e.record.id\n"
20130515 '      });\n'
20130515 '    }\n'
20130515 "    //~ console.log('20110406 on_afteredit',req);\n"
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(req);\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  afterRender : function() {\n'
20130515 '    Lino.GridPanel.superclass.afterRender.call(this);\n'
20130515 '    // this.getView().mainBody.focus();\n'
20130515 '    // console.log(20100114,this.getView().getRows());\n'
20130515 '    // if (this.getView().getRows().length > 0) {\n'
20130515 '    //  this.getView().focusRow(1);\n'
20130515 '    // }\n'
20130515 '    //~ this.my_load_mask = new Ext.LoadMask(this.getEl(), {\n'
20130515 '        //~ msg:\'$_("Please wait...")\',\n'
20130515 '        //~ store:this.store});\n'
20130515 '      \n'
20130515 '    var tbar = this.getTopToolbar();\n'
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 "    // tbar.on('change',function() {this.getSelectionModel().selectFirstRow();this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 '    this.nav = new Ext.KeyNav(this.getEl(),{\n'
20130515 '      pageUp: function() {tbar.movePrevious(); },\n'
20130515 '      pageDown: function() {tbar.moveNext(); },\n'
20130515 '      home: function() {tbar.moveFirst(); },\n'
20130515 '      end: function() {tbar.moveLast(); },\n'
20130515 '      scope: this\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  after_delete : function() {\n'
20130515 "    //~ console.log('Lino.GridPanel.after_delete');\n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  add_row_listener : function(fn,scope) {\n'
20130515 "    this.getSelectionModel().addListener('rowselect',fn,scope);\n"
20130515 '  },\n'
20130515 '  postEditValue : function(value, originalValue, r, field){\n'
20130515 '    value = Lino.GridPanel.superclass.postEditValue.call(this,value,originalValue,r,field);\n'
20130515 "    //~ console.log('GridPanel.postEdit()',value, originalValue, r, field);\n"
20130515 '    return value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_start_value : function(v) {\n'
20130515 '      this.start_value = v;\n'
20130515 '  },\n'
20130515 '  preEditValue : function(r, field){\n'
20130515 '      if (this.start_value) {\n'
20130515 '        var v = this.start_value;\n'
20130515 '        delete this.start_value;\n'
20130515 '        this.activeEditor.selectOnFocus = false;\n'
20130515 '        return v;\n'
20130515 '      }\n'
20130515 '      var value = r.data[field];\n'
20130515 '      return this.autoEncode && Ext.isString(value) ? Ext.util.Format.htmlDecode(value) : value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_master_changed : function() {\n'
20130515 '    //~ if (! this.enabled) return;\n'
20130515 '    //~ cmp = this;\n'
20130515 "    //~ console.log('Lino.GridPanel.on_master_changed()',this.title);\n"
20130515 '    if (! this.rendered) return; // 20120213\n'
20130515 '    var todo = function() {\n'
20130515 '      if (this.disabled) return;\n'
20130515 '      //~ if (this.disabled) return;\n'
20130515 '      //~ if (this.enabled) {\n'
20130515 '          //~ var src = caller.config.url_data + "/" + record.id + ".jpg"\n'
20130515 '          //~ console.log(20111125, this.containing_window);\n'
20130515 '          //~ for (k in p) this.getStore().setBaseParam(k,p[k]);\n'
20130515 "          //~ console.log('Lino.GridPanel.on_master_changed()',this.title,p);\n"
20130515 '          this.refresh();\n'
20130515 '          //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '          //~ this.getStore().load(); \n'
20130515 '      //~ }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '  \n'
20130515 '\n'
20130515 '//~ Lino.MainPanelMixin = {\n'
20130515 '  //~ tbar_items : function() {\n'
20130515 '      //~ return ;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.override(Lino.GridPanel,Lino.MainPanelMixin);\n'
20130515 '//~ Ext.override(Lino.FormPanel,Lino.MainPanelMixin);\n'
20130515 '\n'
20130515 '//~ Lino.grid_context_menu = function(e) {\n'
20130515 "  //~ console.log('contextmenu',arguments);\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.cell_context_menu = function(grid,row,col,e) {\n'
20130515 "  //~ console.log('20120531 cellcontextmenu',grid,row,col,e,grid.store.reader.arrayData.rows[row]);\n"
20130515 '  e.stopEvent();\n'
20130515 '  //~ grid.getView().focusCell(row,col);\n'
20130515 '  grid.getSelectionModel().select(row,col);\n'
20130515 '  //~ console.log(grid.store.getAt(row));\n'
20130515 '  //~ grid.getView().focusRow(row);\n'
20130515 '  //~ return;\n'
20130515 '  if(!grid.cmenu.el){grid.cmenu.render(); }\n'
20130515 '  //~ if(e.record.data.disabled_fields) {\n'
20130515 '  \n'
20130515 '  var da = grid.store.reader.arrayData.rows[row][grid.disabled_actions_index];\n'
20130515 '  if (da) {\n'
20130515 '      this.cmenu.cascade(function(item){ \n'
20130515 '        //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '        if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  \n'
20130515 '  var xy = e.getXY();\n'
20130515 '  xy[1] -= grid.cmenu.el.getHeight();\n'
20130515 '  grid.cmenu.showAt(xy);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.load_main_menu = function() {\n'
20130515 '  //~ Ext.Ajax.request({\n'
20130515 "    //~ waitMsg: 'Loading main menu...',\n"
20130515 "    //~ method: 'GET',\n"
20130515 "    //~ url: '/menu',\n"
20130515 '    //~ success: Lino.on_load_menu,\n'
20130515 '    //~ failure: Lino.ajax_error_handler\n'
20130515 '  //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.SlavePlugin = function(caller) {\n'
20130515 '  //~ this.caller = caller;\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.chooser_handler = function(combo,name) {\n'
20130515 '  return function(cmp,newValue,oldValue) {\n'
20130515 "    //~ console.log('Lino.chooser_handler()',cmp,oldValue,newValue);\n"
20130515 '    combo.setContextValue(name,newValue);\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ComboBox = Ext.extend(Ext.form.ComboBox,{\n'
20130515 '  forceSelection: true,\n'
20130515 "  triggerAction: 'all',\n"
20130515 '  minListWidth:230,\n'
20130515 '  autoSelect: false,\n'
20130515 '  selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  submitValue: true,\n'
20130515 "  displayField: 'text', // 'text', \n"
20130515 "  valueField: 'value', // 'value',\n"
20130515 '  \n'
20130515 '  //~ initComponent : Ext.form.ComboBox.prototype.initComponent.createSequence(function() {\n'
20130515 '  initComponent : function(){\n'
20130515 '      this.contextParams = {};\n'
20130515 '      //~ Ext.form.ComboBox.initComponent(this);\n'
20130515 '      Lino.ComboBox.superclass.initComponent.call(this);\n'
20130515 '  },\n'
20130515 '  setValue : function(v,record_data){\n'
20130515 '      /*\n'
20130515 '      Based on feature request developed in http://extjs.net/forum/showthread.php?t=75751\n'
20130515 '      */\n'
20130515 '      /* `record_data` is used to get the text corresponding to this value */\n'
20130515 "      //~ if(this.name == 'city') \n"
20130515 "      //~ console.log('20120203', this.name,'.setValue(', v ,') this=', this,'record_data=',record_data);\n"
20130515 '      var text = v;\n'
20130515 '      if(this.valueField){\n'
20130515 "        if(v == null || v == '') { \n"
20130515 "            //~ if (this.name == 'birth_country') \n"
20130515 "                //~ console.log(this.name,'.setValue',v,'no lookup needed, value is empty');\n"
20130515 '            //~ v = undefined;\n'
20130515 "            v = '';\n"
20130515 "            //~ text = '';\n"
20130515 '        } else if (Ext.isDefined(record_data)) {\n'
20130515 '          text = record_data[this.name];\n'
20130515 "          //~ if (this.name == 'birth_country') \n"
20130515 "            //~ console.log(this.name,'.setValue',v,'got text ',text,' from record ',record);\n"
20130515 '        } else {\n'
20130515 "          // if(this.mode == 'remote' && !Ext.isDefined(this.store.totalLength)){\n"
20130515 "          if(this.mode == 'remote' && ( this.lastQuery === null || (!Ext.isDefined(this.store.totalLength)))){\n"
20130515 "              //~ if (this.name == 'birth_country') console.log(this.name,'.setValue',v,'store not yet loaded');\n"
20130515 "              this.store.on('load', this.setValue.createDelegate(this, arguments), null, {single: true});\n"
20130515 '              if(this.store.lastOptions === null || this.lastQuery === null){\n'
20130515 '                  var params;\n'
20130515 '                  if(this.valueParam){\n'
20130515 '                      params = {};\n'
20130515 '                      params[this.valueParam] = v;\n'
20130515 '                  }else{\n'
20130515 '                      var q = this.allQuery;\n'
20130515 '                      this.lastQuery = q;\n'
20130515 '                      this.store.setBaseParam(this.queryParam, q);\n'
20130515 '                      params = this.getParams(q);\n'
20130515 '                  }\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : call load() with params ',params);\n"
20130515 '                  this.store.load({params: params});\n'
20130515 '              //~ }else{\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : but store is loading',this.store.lastOptions);\n"
20130515 '              }\n'
20130515 '              return;\n'
20130515 '          //~ }else{\n'
20130515 "              //~ if (this.name == 'birth_country') \n"
20130515 '                //~ console.log(this.name,\'.setValue\',v,\' : store is loaded, lastQuery is "\',this.lastQuery,\'"\');\n'
20130515 '          }\n'
20130515 '          var r = this.findRecord(this.valueField, v);\n'
20130515 '          if(r){\n'
20130515 '              text = r.data[this.displayField];\n'
20130515 '          }else if(this.valueNotFoundText !== undefined){\n'
20130515 '              text = this.valueNotFoundText;\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      this.lastSelectionText = text;\n'
20130515 '      //~ this.lastSelectionText = v;\n'
20130515 '      if(this.hiddenField){\n'
20130515 '          //~ this.hiddenField.originalValue = v;\n'
20130515 '          this.hiddenField.value = v;\n'
20130515 '      }\n'
20130515 '      Ext.form.ComboBox.superclass.setValue.call(this, text);\n'
20130515 '      this.value = v; // needed for grid.afteredit\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  getParams : function(q){\n'
20130515 '    // p = Ext.form.ComboBox.superclass.getParams.call(this, q);\n'
20130515 '    // causes "Ext.form.ComboBox.superclass.getParams is undefined"\n'
20130515 '    var p = {};\n'
20130515 '    //p[this.queryParam] = q;\n'
20130515 '    if(this.pageSize){\n'
20130515 '        //~ p.start = 0;\n'
20130515 '        //~ p.limit = this.pageSize;\n'
20130515 "        p['start'] = 0;\n"
20130515 "        p['limit'] = this.pageSize;\n"
20130515 '    }\n'
20130515 '    // now my code:\n'
20130515 '    if(this.contextParams) Ext.apply(p,this.contextParams);\n'
20130515 '    //~ if(this.contextParams && this.contextValues) {\n'
20130515 '      //~ for(i = 0; i <= this.contextParams.length; i++)\n'
20130515 '        //~ p[this.contextParams[i]] = this.contextValues[i];\n'
20130515 '    //~ }\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  setContextValue : function(name,value) {\n'
20130515 "    //~ console.log('setContextValue',this,this.name,':',name,'=',value);\n"
20130515 '    //~ if (this.contextValues === undefined) {\n'
20130515 '        //~ this.contextValues = Array(); // this.contextParams.length);\n'
20130515 '    //~ }\n'
20130515 '    if (this.contextParams[name] != value) {\n'
20130515 "      //~ console.log('setContextValue 1',this.contextParams);\n"
20130515 '      this.contextParams[name] = value;\n'
20130515 '      this.lastQuery = null;\n'
20130515 "      //~ console.log('setContextValue 2',this.contextParams);\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ChoicesFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'local'\n"
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  forceSelection: true,\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.SimpleRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value' ], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ComplexRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.ComplexRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value','text'], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.RemoteComboFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'remote',\n"
20130515 '  //~ forceSelection:false,\n'
20130515 '  minChars: 2, // default 4 is too much\n'
20130515 '  queryDelay: 300, // default 500 is maybe slow\n'
20130515 "  queryParam: 'query', \n"
20130515 '  //~ typeAhead: true,\n'
20130515 '  //~ selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  resizable: true\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Thanks to Animal for posting the basic idea:\n'
20130515 'http://www.sencha.com/forum/showthread.php?15842-2.0-SOLVED-Combobox-twintrigger-clear&p=76130&viewfull=1#post76130\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Lino.TwinCombo = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "    trigger2Class : 'x-form-search-trigger',\n"
20130515 "    //~ trigger2Class : 'x-tbar-detail',\n"
20130515 '    initComponent : function() {\n'
20130515 '        //~ Lino.TwinCombo.superclass.initComponent.call(this);\n'
20130515 '        Lino.ComboBox.prototype.initComponent.call(this);\n'
20130515 '        Ext.form.TwinTriggerField.prototype.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    onTrigger2Click : function() {\n'
20130515 "        //~ console.log('onTrigger2Click',this,arguments);\n"
20130515 '    }\n'
20130515 '  });\n'
20130515 '//~ Lino.TwinCombo.prototype.initComponent = Ext.form.TwinTriggerField.prototype.initComponent;\n'
20130515 'Lino.TwinCombo.prototype.getTrigger = Ext.form.TwinTriggerField.prototype.getTrigger;\n'
20130515 'Lino.TwinCombo.prototype.getOuterSize = Ext.form.TwinTriggerField.prototype.getOuterSize;\n'
20130515 'Lino.TwinCombo.prototype.initTrigger = Ext.form.TwinTriggerField.prototype.initTrigger;\n'
20130515 'Lino.TwinCombo.prototype.onTrigger1Click = Ext.form.ComboBox.prototype.onTriggerClick;\n'
20130515 '//~ Lino.TwinCombo.prototype.onTrigger2Click = function() {\n'
20130515 "    //~ console.log('onTrigger2Click',arguments);\n"
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboFieldElement = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "  displayField: 'value', \n"
20130515 '  valueField: null,\n'
20130515 '  forceSelection: false\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Window = Ext.extend(Ext.Window,{\n'
20130515 '  //~ layout: "fit", \n'
20130515 "  closeAction : 'hide',\n"
20130515 "  renderTo: 'main_area', \n"
20130515 '  constrain: true,\n'
20130515 '  maximized: true,\n'
20130515 '  draggable: false,\n'
20130515 '  width: 700,\n'
20130515 '  height: 500,\n'
20130515 '  maximizable: false,\n'
20130515 '  constructor : function (config) {\n'
20130515 '    if (config.main_item.params_panel) {\n'
20130515 "        config.layout = 'border';\n"
20130515 "        config.main_item.region = 'center';\n"
20130515 "        config.main_item.params_panel.region = 'north';\n"
20130515 '        config.main_item.params_panel.hidden = config.main_item.params_panel_hidden;\n'
20130515 '        config.items = [config.main_item.params_panel, config.main_item];\n'
20130515 '    } else {\n'
20130515 "        config.layout = 'fit';\n"
20130515 '        config.items = config.main_item;\n'
20130515 '    }\n'
20130515 '    this.main_item = config.main_item; \n'
20130515 '    \n'
20130515 '    delete config.main_item;\n'
20130515 '    //~ delete config.params_item;\n'
20130515 '    \n'
20130515 '    //~ this.main_item = config.items.get(0);\n'
20130515 '    this.main_item.containing_window = this;\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 1');\n"
20130515 '    //~ if (Lino.current_window) { // all windows except the top are closable\n'
20130515 '    if (this.main_item.hide_window_title) { \n'
20130515 '      config.closable = false;\n'
20130515 '      config.frame = false;\n'
20130515 '      config.shadow = false;\n'
20130515 '      //~ config.border = true;\n'
20130515 '      //~ config.title = undefined;\n'
20130515 '      //~ config.tools = null;\n'
20130515 '      delete config.title;\n'
20130515 '      delete config.tools;\n'
20130515 '    } else {\n'
20130515 '      config.title = this.main_item.empty_title;\n'
20130515 '      config.closable = true;\n'
20130515 '      config.tools = [ \n'
20130515 '        { qtip: \'permalink\', handler: Lino.permalink_handler(this), id: "pin" }\n'
20130515 '      ];\n'
20130515 "      if (this.main_item.content_type && this.main_item.action_name != 'insert') {\n"
20130515 '        config.tools = [ {\n'
20130515 '          handler: Lino.help_text_editor,\n'
20130515 '          qtip: "Edit help texts for fields on this model.",\n'
20130515 '          scope: this.main_item,\n'
20130515 '          id: "gear"\n'
20130515 '        }].concat(config.tools);\n'
20130515 '      }\n'
20130515 '        \n'
20130515 '    //~ { qtip: \'\', handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: this.config.qtip, handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: \'Call doLayout() on main Container.\', handler: Lino.refresh_handler(this), id: "refresh" },\n'
20130515 '    //~ if (this.main_item.params_panel) {\n'
20130515 '        //~ config.tools = config.tools.concat([ \n'
20130515 '          //~ { qtip: \'Show/hide parameter panel\', handler: this.toggle_params_panel, id: "gear", scope:this } \n'
20130515 '        //~ ]);\n'
20130515 '    //~ }\n'
20130515 '    //~ if (config.closable !== false) {\n'
20130515 '      // if undefined, will take default behaviour\n'
20130515 '      //~ config.tools = config.tools.concat([ \n'
20130515 '        //~ { qtip: \'close\', handler: this.hide, id: "close", scope:this } \n'
20130515 '      //~ ]);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    this.main_item.config_containing_window(config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 2');\n"
20130515 '    Lino.Window.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 3');\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.main_item.init_containing_window(this);\n'
20130515 '    Lino.Window.superclass.initComponent.call(this);\n'
20130515 '  \n'
20130515 '  },\n'
20130515 '  hide : function() { \n'
20130515 '      this.main_item.do_when_clean(false,function() { \n'
20130515 '        Lino.close_window(); });\n'
20130515 '  },\n'
20130515 '  hide_really : function() { \n'
20130515 '    Lino.Window.superclass.hide.call(this);\n'
20130515 '  },\n'
20130515 '  onRender : function(ct, position){\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 1');\n"
20130515 '    Lino.Window.superclass.onRender.call(this, ct, position);\n'
20130515 "    var main_area = Ext.getCmp('main_area')\n"
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 2');\n"
20130515 '  \n'
20130515 "    this.on('show', function(win) {\n"
20130515 "        //~ console.log('20120110 Lino.Window.on show 1');\n"
20130515 "        main_area.on('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    this.on('hide', function(win) {\n"
20130515 "        main_area.un('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 3');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.unused_ParamWindow = Ext.extend(Lino.Window,{\n'
20130515 '  //~ layout: "border", \n'
20130515 '  constructor : function (config) {\n'
20130515 '    Lino.ParamWindow.superclass.constructor.call(this,config);\n'
20130515 '    this.main_item = config.items; // `items` must be a single component\n'
20130515 "    config.layout = 'border';\n"
20130515 "    this.main_item.region = 'center';\n"
20130515 "    config.params.region = 'north';\n"
20130515 '    config.items = [config.params, config.items];\n'
20130515 '    //~ delete config.params;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '(function(){\n'
20130515 "    var ns = Ext.ns('Ext.ux.plugins');\n"
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @class Ext.ux.plugins.DefaultButton\n'
20130515 '     * @extends Object\n'
20130515 '     *\n'
20130515 '     * Plugin for Button that will click() the button if the user presses ENTER while\n'
20130515 "     * a component in the button's form has focus.\n"
20130515 '     *\n'
20130515 '     * @author Stephen Friedrich\n'
20130515 '     * @date 09-DEC-2009\n'
20130515 '     * @version 0.1\n'
20130515 '     *\n'
20130515 '     */\n'
20130515 '    ns.DefaultButton =  Ext.extend(Object, {\n'
20130515 '        init: function(button) {\n'
20130515 "            button.on('afterRender', setupKeyListener, button);\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '\n'
20130515 '    function setupKeyListener() {\n'
20130515 "        var formPanel = this.findParentByType('form');\n"
20130515 '        new Ext.KeyMap(formPanel.el, {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            shift: false,\n'
20130515 '            alt: false,\n'
20130515 '            fn: function(keyCode, e){\n'
20130515 "                if(e.target.type === 'textarea' && !e.ctrlKey) {\n"
20130515 '                    return true;\n'
20130515 '                }\n'
20130515 '\n'
20130515 "                this.el.select('button').item(0).dom.click();\n"
20130515 '                return false;\n'
20130515 '            },\n'
20130515 '            scope: this\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '\n'
20130515 "    Ext.ComponentMgr.registerPlugin('defaultButton', ns.DefaultButton);\n"
20130515 '\n'
20130515 '})(); \n'
20130515 '\n'
20130515 'Ext.override(Ext.form.BasicForm,{\n'
20130515 '    my_loadRecord : function(values){\n'
20130515 '    //~ loadRecord : function(record){\n'
20130515 "        /* Same as ExtJS's loadRecord() (setValues()), except that we \n"
20130515 '        forward also the record to field.setValue() so that Lino.Combobox \n'
20130515 '        can use it. \n'
20130515 '        */\n'
20130515 "        //~ console.log('20120918 my_loadRecord',values)\n"
20130515 '        if(Ext.isArray(values)){ \n'
20130515 '            for(var i = 0, len = values.length; i < len; i++){\n'
20130515 '                var v = values[i];\n'
20130515 '                var f = this.findField(v.id);\n'
20130515 '                if(f){\n'
20130515 '                    f.setValue(v.value,values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        f.originalValue = f.getValue();\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }else{ \n'
20130515 '            var field, id;\n'
20130515 '            for(id in values){\n'
20130515 '                if(!Ext.isFunction(values[id]) && (field = this.findField(id))){\n'
20130515 '                    field.setValue(values[id],values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        field.originalValue = field.getValue();\n'
20130515 '                        //~ if (field.hiddenField) {\n'
20130515 '                          //~ field.hiddenField.originalValue = field.hiddenField.value;\n'
20130515 '                        //~ }\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'function initializeFooBarDropZone(cmp) {\n'
20130515 "    //~ console.log('initializeFooBarDropZone',cmp);\n"
20130515 '    cmp.dropTarget = new Ext.dd.DropTarget(cmp.bwrap, {\n'
20130515 "      //~ ddGroup     : 'gridDDGroup',\n"
20130515 '      notifyEnter : function(ddSource, e, data) {\n'
20130515 "        console.log('notifyEnter',ddSource,e,data);\n"
20130515 '        //Add some flare to invite drop.\n'
20130515 '        cmp.body.stopFx();\n'
20130515 '        cmp.body.highlight();\n'
20130515 '      },\n'
20130515 '      notifyDrop  : function(ddSource, e, data){\n'
20130515 "        console.log('notifyDrop',ddSource,e,data);\n"
20130515 '        // Reference the record (single selection) for readability\n'
20130515 '        //~ var selectedRecord = ddSource.dragData.selections[0];\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Load the record into the form\n'
20130515 '        //~ formPanel.getForm().my_loadRecord(selectedRecord);\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Delete record from the grid.  not really required.\n'
20130515 '        //~ ddSource.grid.store.remove(selectedRecord);\n'
20130515 '\n'
20130515 '        return(true);\n'
20130515 '      }\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_mti_child = function(fieldname,detail_handler) {\n'
20130515 "  //~ console.log('show_mti_child',this);\n"
20130515 '  //~ console.log(\'show_mti_child\',panel.find("main_area"));\n'
20130515 '  rec = Lino.current_window.main_item.get_current_record();\n'
20130515 '  //~ rec = panel.get_current_record();\n'
20130515 '  if (rec) {\n'
20130515 "    //~ console.log('show_mti_child',Lino.current_window,rec);\n"
20130515 '    if (rec.phantom) {\n'
20130515 "      Lino.notify('Not allowed on phantom record.');\n"
20130515 '    }else if (rec.data[fieldname]) {\n'
20130515 "      //~ console.log('show_mti_child',rec.id);\n"
20130515 '      //~ detail_handler(Lino.current_window.main_item,{},{record_id:rec.id});\n'
20130515 '      detail_handler.run(null,{record_id:rec.id});\n'
20130515 "      //~ window.open(urlroot + '/' + rec.id);\n"
20130515 "      //~ document.location = urlroot + '/' + rec.id;\n"
20130515 "      //~ window.open(urlroot + '/' + rec.id,'_blank');\n"
20130515 '    } else {\n'
20130515 '      Lino.alert("Cannot show MTI child if checkbox is off.");\n'
20130515 '    }\n'
20130515 '  } else {\n'
20130515 "    Lino.notify('No current record.');\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelCalendars\n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelCalendars.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID',       mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'babel_name', type: 'string'},\n"
20130515 "    Description:  {name:'Desc',     mapping: 'description', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color',    mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden',   mapping: 'is_hidden', type: 'boolean'},    \n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();  \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelEvents \n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelEvents.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID',        mapping: 'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID',     mapping: 'calendarHidden', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle',  mapping: 'summary'},\n"
20130515 "    StartDate:   {name: 'StartDt',   mapping: 'start_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s" },\n'
20130515 "    EndDate:     {name: 'EndDt',     mapping: 'end_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s"},\n'
20130515 "    RRule:       {name: 'RecurRule', mapping: 'rsetHidden'},\n"
20130515 "    Location:    {name: 'Location',  mapping: 'placeHidden'},\n"
20130515 "    Notes:       {name: 'Desc',      mapping: 'description'},\n"
20130515 "    Url:         {name: 'LinkUrl',   mapping: 'url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay',    mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder',  mapping: 'reminder'}\n"
20130515 '    \n'
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.on_eventclick = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventclick",arguments);\n'
20130515 '  //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '  Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_editdetails = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_editdetails",arguments);\n'
20130515 '  if (rec.data.ID)\n'
20130515 '      //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '      Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.format_time = function(dt) {\n'
20130515 "    return dt.getHours() + ':' + dt.getMinutes();\n"
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventdelete = function() {\n'
20130515 '  //~ console.log("Lino.on_eventdelete",arguments);\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.on_eventadd  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventadd ",arguments);\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventresize  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventresize ",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventupdate  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventupdate",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.eventStore = new Ext.ensible.cal.EventStore({ \n'
20130515 '//~ Lino.eventStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.eventStore = new Ext.data.JsonStore({ \n'
20130515 '  listeners: { exception: Lino.on_store_exception }\n'
20130515 "  ,url: '/restful/cal/PanelEvents'\n"
20130515 '  ,restful : true\n'
20130515 '  ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "      url: '/restful/cal/PanelEvents', \n"
20130515 '      disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '      //~ disableCaching:true,\n'
20130515 '  })\n'
20130515 '  ,fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '  ,totalProperty: "count"\n'
20130515 '  ,root: "rows"\n'
20130515 '  ,idProperty: Ext.ensible.cal.EventMappings.EventId.mapping\n'
20130515 '  ,writer : new Ext.data.JsonWriter({\n'
20130515 '    writeAllFields: false\n'
20130515 '  })\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '      if (!options) options = {};\n'
20130515 '      if (!options.params) options.params = {};\n'
20130515 '      //~ options.params.$ext_requests.URL_PARAM_TEAM_VIEW = Lino.calendar_app.team_view_button.pressed;\n'
20130515 '      \n'
20130515 '      var view = this.cal_panel.getActiveView();\n'
20130515 '      var bounds = view.getViewBounds();\n'
20130515 "      //~ var p = {sd:'05.02.2012',ed:'11.02.2012'};\n"
20130515 '      //~ var p = {};\n'
20130515 '      options.params[view.dateParamStart] = bounds.start.format(view.dateParamFormat);\n'
20130515 '      options.params[view.dateParamEnd] = bounds.end.format(view.dateParamFormat);\n'
20130515 '      Lino.insert_subst_user(options.params);\n'
20130515 '      //~ Ext.apply(options.params,p)\n'
20130515 "      //~ console.log('20120710 eventStore.load()',this.baseParams,options);\n"
20130515 '    \n'
20130515 '    return Ext.data.JsonStore.prototype.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.calendarStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.calendarStore = new Ext.data.JsonStore({ \n'
20130515 '      listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,restful : true\n'
20130515 '      ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "          url: '/restful/cal/PanelCalendars?fmt=json', \n"
20130515 '          disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '          //~ restful : true\n'
20130515 '          //~ method: "GET"\n'
20130515 '      })\n'
20130515 '      //~ ,autoLoad: true\n'
20130515 '      //~ ,remoteSort: true\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      ,fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '      ,idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '      //~ ,idIndex: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '    });\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarCfg = {\n'
20130515 "    dateParamFormat: 'd.m.Y',\n"
20130515 "    dateParamStart:'sd',\n"
20130515 "    dateParamEnd:'ed'\n"
20130515 '};\n'
20130515 '//~ 20120704 Lino.CalendarPanel = Ext.extend(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 '//~ Lino.CalendarPanel = Ext.extend(Lino.CalendarPanel,{\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 '  ,activeItem: 1 // 0: day, 1: week\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  //~ ,disableCaching:true\n'
20130515 '  ,eventStore: Lino.eventStore\n'
20130515 '  ,calendarStore: Lino.calendarStore\n'
20130515 '  ,listeners: { \n'
20130515 '    editdetails: Lino.on_editdetails\n'
20130515 '    ,eventclick: Lino.on_eventclick\n'
20130515 '    //~ ,eventadd: Lino.on_eventadd\n'
20130515 '    //~ ,eventdelete: Lino.on_eventdelete\n'
20130515 '    //~ ,eventresize: Lino.on_eventresize\n'
20130515 '    ,afterrender : function(config) {\n'
20130515 '      //~ console.log("20120704 afterrender");\n'
20130515 '      Lino.calendarStore.load();\n'
20130515 '      //~ console.log("20120704 afterrender calls eventStore.load()",p);\n'
20130515 '      Lino.eventStore.cal_panel = this;\n'
20130515 '      //~ Lino.eventStore.load({params:p});\n'
20130515 '      Lino.eventStore.load();\n'
20130515 '      //~ Lino.CalendarPanel.superclass.constructor.call(this, config);\n'
20130515 '      //~ console.log(20120118, config,this);\n'
20130515 '    }\n'
20130515 '    }\n'
20130515 '  ,enableEditDetails: false\n'
20130515 '  //~ ,monthViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,weekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiDayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiWeekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,dayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,initComponent : function() {\n'
20130515 "    //~ // this.on('eventadd',Lino.on_eventadd);\n"
20130515 '    //~ Lino.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Ext.Panel,Lino.MainPanel);\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Lino.CalendarAppPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  ,set_status : function(status) { this.refresh();}\n'
20130515 '  ,refresh : function() {Lino.eventStore.reload();}\n'
20130515 "  ,layout: 'fit'\n"
20130515 '  ,is_loading : function() { \n'
20130515 '      var loading = Lino.calendarStore.getCount() == 0 | Lino.eventStore.getCount() == 0\n'
20130515 '      //~ console.log("CalendarPanel loading:",loading);\n'
20130515 '      return loading; \n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() {\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '  }\n'
20130515 '  ,clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  }\n'
20130515 '  ,set_base_param : function(k,v) {\n'
20130515 '      if (!this.base_params) this.base_params = {};\n'
20130515 '      this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.calendar_app = function() { return {\n'
20130515 '  get_main_panel : function() {\n'
20130515 '      return new Lino.CalendarAppPanel({ items : \n'
20130515 '        //~ [{\n'
20130515 "          //~ id: 'app-header',\n"
20130515 "          //~ region: 'north',\n"
20130515 '          //~ height: 35,\n'
20130515 '          //~ border: false,\n'
20130515 "          // contentEl: 'app-header-content'\n"
20130515 '        //~ },\n'
20130515 '      {\n'
20130515 "          id: 'app-center',\n"
20130515 "          title: '...', // will be updated to the current view's date range\n"
20130515 "          region: 'center',\n"
20130515 "          layout: 'border',\n"
20130515 '          listeners: {\n'
20130515 "              'afterrender': function(){\n"
20130515 "                  Ext.getCmp('app-center').header.addClass('app-center-header');\n"
20130515 '              }\n'
20130515 '          },\n'
20130515 '          items: [{\n'
20130515 "              id:'app-west',\n"
20130515 "              region: 'west',\n"
20130515 '              width: 176,\n'
20130515 '              border: false,\n'
20130515 '              items: [{\n'
20130515 "                  xtype: 'datepicker',\n"
20130515 "                  id: 'app-nav-picker',\n"
20130515 "                  cls: 'ext-cal-nav-picker',\n"
20130515 '                  listeners: {\n'
20130515 "                      'select': {\n"
20130515 '                          fn: function(dp, dt){\n'
20130515 '                              Lino.calendarPanel.setStartDate(dt);\n'
20130515 '                          },\n'
20130515 '                          scope: this\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '              //~ },{ \n'
20130515 "                //~ layout:'fit',\n"
20130515 '                //~ items: [\n'
20130515 '                  //~ new Ext.form.Checkbox({\n'
20130515 '                    //~ boxLabel:"$_(\'Team view\')",\n'
20130515 '                    //~ hideLabel:true\n'
20130515 '                    //~ listeners: { click: }\n'
20130515 '                  //~ })\n'
20130515 '                //~ ]\n'
20130515 '              },{ \n'
20130515 "                layout:'form',\n"
20130515 '                items: [\n'
20130515 '                  this.team_view_button = new Ext.Button({\n'
20130515 '                    text:"Team view",\n'
20130515 '                    enableToggle:true,\n'
20130515 '                    pressed:false,\n'
20130515 '                    toggleHandler: function(btn,state) { \n'
20130515 "                      //~ console.log('20120716 teamView.toggle()');\n"
20130515 "                      Lino.eventStore.setBaseParam('tv',state);\n"
20130515 '                      Lino.eventStore.load();\n'
20130515 '                      //~ Lino.eventStore.load({params:{$ext_requests.URL_PARAM_TEAM_VIEW:state}});\n'
20130515 '                      //~ console.log("team view",state);\n'
20130515 '                    }\n'
20130515 '                  })\n'
20130515 '                ]\n'
20130515 '              },{\n'
20130515 "                  xtype: 'extensible.calendarlist',\n"
20130515 '                  store: Lino.calendarStore,\n'
20130515 '                  border: false,\n'
20130515 '                  width: 175\n'
20130515 '              }]\n'
20130515 '          },{\n'
20130515 "              xtype: 'extensible.calendarpanel',\n"
20130515 '              eventStore: Lino.eventStore,\n'
20130515 '              calendarStore: Lino.calendarStore,\n'
20130515 '              border: false,\n'
20130515 "              id:'app-calendar',\n"
20130515 "              region: 'center',\n"
20130515 '              //~ activeItem: 3, // month view\n'
20130515 '              \n'
20130515 '              // Any generic view options that should be applied to all sub views:\n'
20130515 '              viewConfig: {\n'
20130515 '                  // Lino.CalendarCfg\n'
20130515 "                  dateParamFormat: 'd.m.Y',\n"
20130515 "                  dateParamStart:'sd',\n"
20130515 "                  dateParamEnd:'ed',\n"
20130515 '                \n'
20130515 '                  //enableFx: false,\n'
20130515 '                  //ddIncrement: 10, //only applies to DayView and subclasses, but convenient to put it here\n'
20130515 '                  viewStartHour: 8,\n'
20130515 '                  viewEndHour: 18\n'
20130515 '                  //minEventDisplayMinutes: 15\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // View options specific to a certain view (if the same options exist in viewConfig\n'
20130515 '              // they will be overridden by the view-specific config):\n'
20130515 '              monthViewCfg: {\n'
20130515 '                  showHeader: true,\n'
20130515 '                  showWeekLinks: true,\n'
20130515 '                  showWeekNumbers: true,\n'
20130515 "                  eventBodyMarkup: ['{Title}',\n"
20130515 '                    //~ \'<tpl if="url">\',\n'
20130515 '                        //~ \'<a href="{url}">XX</a>\',\n'
20130515 "                    //~ '</tpl>',\n"
20130515 '                    \'<tpl if="_isReminder">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="_isRecurring">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanLeft">\',\n'
20130515 '                        \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanRight">\',\n'
20130515 '                        \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "                    '</tpl>'\n"
20130515 "                ].join('')\n"
20130515 '              },\n'
20130515 '              \n'
20130515 '              multiWeekViewCfg: {\n'
20130515 '                  //weekCount: 3\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // Some optional CalendarPanel configs to experiment with:\n'
20130515 '              //readOnly: true,\n'
20130515 '              //showDayView: false,\n'
20130515 '              //showMultiDayView: true,\n'
20130515 '              //showWeekView: false,\n'
20130515 '              //showMultiWeekView: false,\n'
20130515 '              //showMonthView: false,\n'
20130515 '              //showNavBar: false,\n'
20130515 '              //showTodayText: false,\n'
20130515 '              //showTime: false,\n'
20130515 '              //editModal: true,\n'
20130515 '              //enableEditDetails: false,\n'
20130515 "              //title: 'My Calendar', // the header of the calendar, could be a subtitle for the app\n"
20130515 '              \n'
20130515 '              // Once this component inits it will set a reference to itself as an application\n'
20130515 '              // member property for easy reference in other functions within App.\n'
20130515 '              initComponent: function() {\n'
20130515 '                  Lino.calendarPanel = this;\n'
20130515 '                  this.constructor.prototype.initComponent.apply(this, arguments);\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              listeners: {\n'
20130515 "                  //~ 'eventclick': {\n"
20130515 '                      //~ fn: function(vw, rec, el){\n'
20130515 '                          //~ this.clearMsg();\n'
20130515 '                      //~ },\n'
20130515 '                      //~ scope: this\n'
20130515 '                  //~ },\n'
20130515 "                  'eventover': function(vw, rec, el){\n"
20130515 "                      //console.log('Entered evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventout': function(vw, rec, el){\n"
20130515 "                      //console.log('Leaving evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]+', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventadd': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was added');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventupdate': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          //this.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventcancel': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          // edit canceled\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'viewchange': {\n"
20130515 '                      fn: function(p, vw, dateInfo){\n'
20130515 '                          if(this.editWin){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          };\n'
20130515 '                          if(dateInfo !== null){\n'
20130515 '                              // will be null when switching to the event edit form so ignore\n'
20130515 "                              Ext.getCmp('app-nav-picker').setValue(dateInfo.activeDate);\n"
20130515 '                              this.updateTitle(dateInfo.viewStart, dateInfo.viewEnd);\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'dayclick': {\n"
20130515 '                      fn: function(vw, dt, ad, el){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'rangeselect': {\n"
20130515 '                      fn: function(vw, dates, onComplete){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventmove': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          var time = rec.data[Ext.ensible.cal.EventMappings.IsAllDay.name] ? '' : ' \\\\a\\\\t g:i a';\n"
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was moved to '+\n"
20130515 "                              rec.data[Ext.ensible.cal.EventMappings.StartDate.name].format('F jS'+time));\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventresize': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(win, rec){\n'
20130515 '                          Lino.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'initdrag': {\n"
20130515 '                      fn: function(vw){\n'
20130515 '                          if(this.editWin && this.editWin.isVisible()){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  }\n'
20130515 '              }\n'
20130515 '          }]\n'
20130515 '        }\n'
20130515 '        //~ ]\n'
20130515 '        \n'
20130515 '      });\n'
20130515 '      \n'
20130515 '  }\n'
20130515 '  ,updateTitle: function(startDt, endDt){\n'
20130515 "      var p = Ext.getCmp('app-center');\n"
20130515 '      \n'
20130515 '      if(startDt.clearTime().getTime() == endDt.clearTime().getTime()){\n'
20130515 "          p.setTitle(startDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '      else if(startDt.getFullYear() == endDt.getFullYear()){\n'
20130515 '          if(startDt.getMonth() == endDt.getMonth()){\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('j, Y'));\n"
20130515 '          }\n'
20130515 '          else{\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '          }\n'
20130515 '      }\n'
20130515 '      else{\n'
20130515 "          p.setTitle(startDt.format('F j, Y') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '  }\n'
20130515 '  // This is an application-specific way to communicate CalendarPanel event messages back to the user.\n'
20130515 '  // This could be replaced with a function to do "toast" style messages, growl messages, etc. This will\n'
20130515 "  // vary based on application requirements, which is why it's not baked into the CalendarPanel.\n"
20130515 '  ,showMsg: function(msg){\n'
20130515 '      Lino.notify(msg);\n'
20130515 "      //~ Ext.fly('app-msg').update(msg).removeClass('x-hidden');\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,clearMsg: function(){\n'
20130515 "      Lino.notify('');\n"
20130515 "      //~ Ext.fly('app-msg').update('').addClass('x-hidden');\n"
20130515 '  }\n'
20130515 '}\n'
20130515 '}();\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'captureEvents utility by Aaron Conran\n'
20130515 '<http://www.sencha.com/learn/grid-faq/>\n'
20130515 '\n'
20130515 'Ext.onReady(function(){\n'
20130515 '    var grid = new Ext.grid.GridPanel({\n'
20130515 '        ... \n'
20130515 '    });\n'
20130515 '    captureEvents(grid);\n'
20130515 '});\n'
20130515 '*/\n'
20130515 'function captureEvents(observable) {\n'
20130515 '    Ext.util.Observable.capture(\n'
20130515 '        observable,\n'
20130515 '        function(eventName) {\n'
20130515 '            console.info(eventName);\n'
20130515 '        },\n'
20130515 '        this\n'
20130515 '    );\t\t\n'
20130515 '}\n'
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.main_menu = [ { "menu": { "items": [ { "text": "Personnes", "handler": function() {Lino.contacts.Persons.grid.run(null)} }, { "text": " \\u25b6 Clients", "handler": function() {Lino.pcsw.Clients.grid.run(null)} }, { "text": "Organisations", "handler": function() {Lino.contacts.Companies.grid.run(null)} }, { "text": "M\\u00e9nages", "handler": function() {Lino.households.Households.grid.run(null)} }, "-", { "text": "Partenaires (tous)", "handler": function() {Lino.contacts.Partners.grid.run(null)} } ] }, "text": "Contacts" }, { "menu": { "items": [ { "text": "Mon courrier sortant", "handler": function() {Lino.outbox.MyOutbox.grid.run(null)} }, { "menu": { "items": [ { "text": "Mes Envois postaux", "handler": function() {Lino.postings.MyPostings.grid.run(null)} }, { "text": "Envois postaux \\u00e0 imprimer", "handler": function() {Lino.postings.PostingsReady.grid.run(null)} }, { "text": "Envois postaux imprim\\u00e9s", "handler": function() {Lino.postings.PostingsPrinted.grid.run(null)} }, { "text": "Envois postaux envoy\\u00e9s", "handler": function() {Lino.postings.PostingsSent.grid.run(null)} } ] }, "text": "Envois postaux" }, { "text": "Mes notes", "handler": function() {Lino.notes.MyNotes.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Calendrier", "iconCls": "x-tbar-calendar", "handler": function() {Lino.cal.CalendarPanel.grid.run(null)} }, { "text": "Events", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my calendar events.") }, "handler": function() {Lino.cal.MyEvents.grid.run(null)} }, "-", { "text": "Mes T\\u00e2ches", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my tasks.") }, "handler": function() {Lino.cal.MyTasks.grid.run(null)} }, { "text": "To-do list", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of my tasks marked \'to do\'.") }, "handler": function() {Lino.cal.MyTasksToDo.grid.run(null)} }, "-", { "text": "Mes pr\\u00e9sences", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows all my presences in calendar events, independently of their state.") }, "handler": function() {Lino.cal.MyPresences.grid.run(null)} }, { "text": "Mes invitations re\\u00e7ues", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows received invitations which I must accept or reject.") }, "handler": function() {Lino.cal.MyPendingInvitations.grid.run(null)} } ] }, "text": "Calendrier" }, { "menu": { "items": [ { "text": "Clients", "listeners": { "render": Lino.quicktip_renderer("Foo","Wie Kontakte \\u25b8 Klienten, aber mit DSBE-spezifischen Kolonnen und Filterparametern.") }, "handler": function() {Lino.pcsw.IntegClients.grid.run(null)} }, { "text": "PIISs", "handler": function() {Lino.isip.MyContracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.MyContracts.grid.run(null)} }, { "text": "Employants", "handler": function() {Lino.jobs.JobProviders.grid.run(null)} }, { "text": "Emplois", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    Eine Stelle ist ein Arbeitsplatz bei einem Stellenabieter. \\n    ") }, "handler": function() {Lino.jobs.Jobs.grid.run(null)} }, { "text": "Offres d\'emploi", "handler": function() {Lino.jobs.Offers.grid.run(null)} }, { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.NewJobsOverview.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Int\\u00e9gration" }, { "menu": { "items": [ { "text": "Organisateurs de cours", "handler": function() {Lino.courses.CourseProviders.grid.run(null)} }, { "text": "Offres de cours", "handler": function() {Lino.courses.CourseOffers.grid.run(null)} }, { "text": "Demandes de cours ouvertes", "handler": function() {Lino.courses.PendingCourseRequests.grid.run(null)} } ] }, "text": "Cours" }, { "menu": { "items": [ { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.JobsOverview.show.run(null,{ "record_id": -99998 })} }, { "text": "Agents et leurs clients", "handler": function() {Lino.pcsw.UsersWithClients.grid.run(null)} } ] }, "text": "Listings" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "Mes Text Field Templates", "handler": function() {Lino.ui.MyTextFieldTemplates.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Pays", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    A country is a geographic entity considered a \\"nation\\".\\n    ") }, "handler": function() {Lino.countries.Countries.grid.run(null)} }, { "text": "Langues", "handler": function() {Lino.countries.Languages.grid.run(null)} } ] }, "text": "Contacts" } ] }, "text": "Configuration" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "PIISs", "handler": function() {Lino.isip.Contracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.Contracts.grid.run(null)} } ] }, "text": "Int\\u00e9gration" } ] }, "text": "Explorateur" }, { "menu": { "items": [ { "text": "About", "listeners": { "render": Lino.quicktip_renderer("Foo","Show information about this site.") }, "handler": function() {Lino.about.About.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Site" }, { "text": "D\\u00e9part", "handler": function() {Lino.close_all_windows()} } ];\n'
20130515 "Ext.namespace('Lino.ui.SiteConfigs')\n"
20130515 "Ext.namespace('Lino.ui.ContentTypes')\n"
20130515 "Ext.namespace('Lino.ui.HelpTexts')\n"
20130515 "Ext.namespace('Lino.ui.TextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.Users')\n"
20130515 "Ext.namespace('Lino.users.MySettings')\n"
20130515 "Ext.namespace('Lino.users.UsersOverview')\n"
20130515 "Ext.namespace('Lino.users.Teams')\n"
20130515 "Ext.namespace('Lino.users.Memberships')\n"
20130515 "Ext.namespace('Lino.users.Authorities')\n"
20130515 "Ext.namespace('Lino.changes.Changes')\n"
20130515 "Ext.namespace('Lino.countries.Languages')\n"
20130515 "Ext.namespace('Lino.countries.Countries')\n"
20130515 "Ext.namespace('Lino.countries.Cities')\n"
20130515 "Ext.namespace('Lino.properties.PropGroups')\n"
20130515 "Ext.namespace('Lino.properties.PropTypes')\n"
20130515 "Ext.namespace('Lino.properties.Properties')\n"
20130515 "Ext.namespace('Lino.properties.PropChoices')\n"
20130515 "Ext.namespace('Lino.contacts.CompanyTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Partners')\n"
20130515 "Ext.namespace('Lino.contacts.Companies')\n"
20130515 "Ext.namespace('Lino.contacts.RoleTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Roles')\n"
20130515 "Ext.namespace('Lino.postings.Postings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByState')\n"
20130515 "Ext.namespace('Lino.postings.PostingsReady')\n"
20130515 "Ext.namespace('Lino.postings.PostingsPrinted')\n"
20130515 "Ext.namespace('Lino.postings.PostingsSent')\n"
20130515 "Ext.namespace('Lino.outbox.Recipients')\n"
20130515 "Ext.namespace('Lino.outbox.Mails')\n"
20130515 "Ext.namespace('Lino.outbox.Attachments')\n"
20130515 "Ext.namespace('Lino.cal.Calendars')\n"
20130515 "Ext.namespace('Lino.cal.Subscriptions')\n"
20130515 "Ext.namespace('Lino.cal.Places')\n"
20130515 "Ext.namespace('Lino.cal.Priorities')\n"
20130515 "Ext.namespace('Lino.cal.Events')\n"
20130515 "Ext.namespace('Lino.cal.MyEvents')\n"
20130515 "Ext.namespace('Lino.cal.MyUnclearEvents')\n"
20130515 "Ext.namespace('Lino.cal.EventsAssignedToMe')\n"
20130515 "Ext.namespace('Lino.cal.MyEventsToday')\n"
20130515 "Ext.namespace('Lino.cal.Tasks')\n"
20130515 "Ext.namespace('Lino.cal.GuestRoles')\n"
20130515 "Ext.namespace('Lino.cal.Guests')\n"
20130515 "Ext.namespace('Lino.cal.PanelCalendars')\n"
20130515 "Ext.namespace('Lino.cal.PanelEvents')\n"
20130515 "Ext.namespace('Lino.uploads.UploadTypes')\n"
20130515 "Ext.namespace('Lino.uploads.Uploads')\n"
20130515 "Ext.namespace('Lino.households.Types')\n"
20130515 "Ext.namespace('Lino.households.Households')\n"
20130515 "Ext.namespace('Lino.households.Roles')\n"
20130515 "Ext.namespace('Lino.households.Members')\n"
20130515 "Ext.namespace('Lino.accounts.Charts')\n"
20130515 "Ext.namespace('Lino.accounts.Groups')\n"
20130515 "Ext.namespace('Lino.accounts.Accounts')\n"
20130515 "Ext.namespace('Lino.notes.NoteTypes')\n"
20130515 "Ext.namespace('Lino.notes.EventTypes')\n"
20130515 "Ext.namespace('Lino.notes.Notes')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledges')\n"
20130515 "Ext.namespace('Lino.cv.PersonProperties')\n"
20130515 "Ext.namespace('Lino.contacts.Persons')\n"
20130515 "Ext.namespace('Lino.pcsw.Clients')\n"
20130515 "Ext.namespace('Lino.pcsw.DebtsClients')\n"
20130515 "Ext.namespace('Lino.pcsw.IntegClients')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsTest')\n"
20130515 "Ext.namespace('Lino.pcsw.PersonGroups')\n"
20130515 "Ext.namespace('Lino.pcsw.Activities')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Exclusions')\n"
20130515 "Ext.namespace('Lino.pcsw.AidTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.OverlappingContracts')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContactTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContacts')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Coachings')\n"
20130515 "Ext.namespace('Lino.isip.ContractTypes')\n"
20130515 "Ext.namespace('Lino.isip.ExamPolicies')\n"
20130515 "Ext.namespace('Lino.isip.ContractEndings')\n"
20130515 "Ext.namespace('Lino.isip.Contracts')\n"
20130515 "Ext.namespace('Lino.isip.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Schedules')\n"
20130515 "Ext.namespace('Lino.jobs.Regimes')\n"
20130515 "Ext.namespace('Lino.jobs.JobProviders')\n"
20130515 "Ext.namespace('Lino.jobs.ContractTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Sectors')\n"
20130515 "Ext.namespace('Lino.jobs.Functions')\n"
20130515 "Ext.namespace('Lino.jobs.Contracts')\n"
20130515 "Ext.namespace('Lino.jobs.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Offers')\n"
20130515 "Ext.namespace('Lino.jobs.StudyTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Studies')\n"
20130515 "Ext.namespace('Lino.jobs.Experiences')\n"
20130515 "Ext.namespace('Lino.jobs.Candidatures')\n"
20130515 "Ext.namespace('Lino.jobs.Jobs')\n"
20130515 "Ext.namespace('Lino.jobs.JobTypes')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsSearch')\n"
20130515 "Ext.namespace('Lino.courses.CourseProviders')\n"
20130515 "Ext.namespace('Lino.courses.CourseContents')\n"
20130515 "Ext.namespace('Lino.courses.Courses')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffers')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequests')\n"
20130515 "Ext.namespace('Lino.courses.PendingCourseRequests')\n"
20130515 "Ext.namespace('Lino.newcomers.Brokers')\n"
20130515 "Ext.namespace('Lino.newcomers.Faculties')\n"
20130515 "Ext.namespace('Lino.newcomers.Competences')\n"
20130515 "Ext.namespace('Lino.newcomers.NewClients')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoaches')\n"
20130515 "Ext.namespace('Lino.debts.Budgets')\n"
20130515 "Ext.namespace('Lino.debts.Actors')\n"
20130515 "Ext.namespace('Lino.debts.Entries')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByType')\n"
20130515 "Ext.namespace('Lino.cbss.Sectors')\n"
20130515 "Ext.namespace('Lino.cbss.Purposes')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.sessions.SessionTable')\n"
20130515 "Ext.namespace('Lino.ui.MyTextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.MembershipsByUser')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesGiven')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesTaken')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCity')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCountry')\n"
20130515 "Ext.namespace('Lino.properties.PropsByGroup')\n"
20130515 "Ext.namespace('Lino.properties.PropsByType')\n"
20130515 "Ext.namespace('Lino.properties.ChoicesByType')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCity')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCountry')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByCompany')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByPerson')\n"
20130515 "Ext.namespace('Lino.postings.MyPostings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByPartner')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientsByMail')\n"
20130515 "Ext.namespace('Lino.outbox.MyOutbox')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByUser')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.SentByPartner')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByMail')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByUser')\n"
20130515 "Ext.namespace('Lino.cal.EventsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.EventsByPlace')\n"
20130515 "Ext.namespace('Lino.cal.EventsByProject')\n"
20130515 "Ext.namespace('Lino.cal.TasksByUser')\n"
20130515 "Ext.namespace('Lino.cal.MyTasks')\n"
20130515 "Ext.namespace('Lino.cal.MyTasksToDo')\n"
20130515 "Ext.namespace('Lino.cal.TasksByProject')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByEvent')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByRole')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByPartner')\n"
20130515 "Ext.namespace('Lino.cal.MyPresences')\n"
20130515 "Ext.namespace('Lino.cal.MyPendingInvitations')\n"
20130515 "Ext.namespace('Lino.uploads.MyUploads')\n"
20130515 "Ext.namespace('Lino.households.HouseholdsByType')\n"
20130515 "Ext.namespace('Lino.households.MembersByHousehold')\n"
20130515 "Ext.namespace('Lino.households.MembersByPerson')\n"
20130515 "Ext.namespace('Lino.households.MembersByRole')\n"
20130515 "Ext.namespace('Lino.accounts.GroupsByChart')\n"
20130515 "Ext.namespace('Lino.accounts.AccountsByGroup')\n"
20130515 "Ext.namespace('Lino.notes.MyNotes')\n"
20130515 "Ext.namespace('Lino.notes.NotesByType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByEventType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByProject')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledgesByPerson')\n"
20130515 "Ext.namespace('Lino.cv.KnowledgesByLanguage')\n"
20130515 "Ext.namespace('Lino.cv.PropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.PersonPropsByProp')\n"
20130515 "Ext.namespace('Lino.cv.ConfiguredPropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SoftSkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.ObstaclesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsByNationality')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionsByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ContactsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByUser')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByCompany')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.FunctionsBySector')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByJob')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByRegime')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsBySchedule')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCountry')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCity')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesBySector')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByJob')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByType')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverviewByType')\n"
20130515 "Ext.namespace('Lino.courses.CoursesByOffer')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByProvider')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByContent')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByContent')\n"
20130515 "Ext.namespace('Lino.courses.RequestsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.ParticipantsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.CandidatesByCourse')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByUser')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.MyCompetences')\n"
20130515 "Ext.namespace('Lino.newcomers.ClientsByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoachesByClient')\n"
20130515 "Ext.namespace('Lino.debts.MyBudgets')\n"
20130515 "Ext.namespace('Lino.debts.BudgetsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.IncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.LiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.AssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DistByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.MyIdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyRetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.uploads.UploadsByController')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByController')\n"
20130515 "Ext.namespace('Lino.cal.TasksByController')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByController')\n"
20130515 "Ext.namespace('Lino.changes.ChangesByMaster')\n"
20130515 "Ext.namespace('Lino.ui.HelpTextsByModel')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByController')\n"
20130515 "Ext.namespace('Lino.cal.EventsByController')\n"
20130515 "Ext.namespace('Lino.about.Models')\n"
20130515 "Ext.namespace('Lino.about.FieldsByModel')\n"
20130515 "Ext.namespace('Lino.about.Inspector')\n"
20130515 "Ext.namespace('Lino.about.SourceFiles')\n"
20130515 "Ext.namespace('Lino.pcsw.UsersWithClients')\n"
20130515 "Ext.namespace('Lino.debts.PrintEntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintIncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintLiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintAssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.SummaryTable')\n"
20130515 "Ext.namespace('Lino.debts.ResultByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DebtsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.BailiffDebtsByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonResult')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsResult')\n"
20130515 "Ext.namespace('Lino.ui.Home')\n"
20130515 "Ext.namespace('Lino.about.About')\n"
20130515 "Ext.namespace('Lino.cal.CalendarPanel')\n"
20130515 "Ext.namespace('Lino.lino.Home')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverview')\n"
20130515 "Ext.namespace('Lino.jobs.NewJobsOverview')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestStates')\n"
20130515 "Ext.namespace('Lino.postings.PostingStates')\n"
20130515 "Ext.namespace('Lino.cal.DurationUnits')\n"
20130515 "Ext.namespace('Lino.cal.TaskStates')\n"
20130515 "Ext.namespace('Lino.cal.Weekdays')\n"
20130515 "Ext.namespace('Lino.lino.UserLevels')\n"
20130515 "Ext.namespace('Lino.lino.UserProfiles')\n"
20130515 "Ext.namespace('Lino.cal.EventStates')\n"
20130515 "Ext.namespace('Lino.accounts.AccountTypes')\n"
20130515 "Ext.namespace('Lino.cv.CefLevel')\n"
20130515 "Ext.namespace('Lino.properties.HowWell')\n"
20130515 "Ext.namespace('Lino.jobs.CandidatureStates')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientType')\n"
20130515 "Ext.namespace('Lino.countries.CityTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.BeIdCardTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.CivilState')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientStates')\n"
20130515 "Ext.namespace('Lino.cal.GuestStates')\n"
20130515 "Ext.namespace('Lino.properties.DoYouLike')\n"
20130515 "Ext.namespace('Lino.cbss.RequestLanguages')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAction')\n"
20130515 "Ext.namespace('Lino.pcsw.RefusalReasons')\n"
20130515 "Ext.namespace('Lino.lino.UserGroups')\n"
20130515 "Ext.namespace('Lino.cbss.RequestStates')\n"
20130515 "Ext.namespace('Lino.lino.ChangeTypes')\n"
20130515 "Ext.namespace('Lino.cal.AccessClasses')\n"
20130515 "Ext.namespace('Lino.cbss.QueryRegister')\n"
20130515 "Ext.namespace('Lino.lino.Genders')\n"
20130515 "Ext.namespace('Lino.pcsw.ResidenceType')\n"
20130515 '\n'
20130515 '// ChoiceLists: \n'
20130515 'Lino.courses.CourseRequestStates = [ [ "10", "Open" ], [ "20", "Registered" ], [ "30", "R\\u00e9ussi" ], [ "40", "Bien r\\u00e9ussi" ], [ "50", "echec" ], [ "60", "Abandonn\\u00e9" ], [ "70", "Inactif" ] ];\n'
20130515 'Lino.postings.PostingStates = [ [ "10", "Ouvert" ], [ "20", "Pr\\u00e8t \\u00e0 imprimer" ], [ "30", "Imprim\\u00e9" ], [ "40", "Ex\\u00e9cut\\u00e9" ], [ "50", "Retour" ] ];\n'
20130515 'Lino.cal.DurationUnits = [ [ "s", "secondes" ], [ "m", "minutes" ], [ "h", "heures" ], [ "D", "jours" ], [ "W", "semaines" ], [ "M", "mois" ], [ "Y", "ann\\u00e9es" ] ];\n'
20130515 'Lino.cal.TaskStates = [ [ "10", "\\u00e0 faire" ], [ "20", "Started" ], [ "30", "accomplie" ], [ "50", "Annul\\u00e9" ] ];\n'
20130515 'Lino.cal.Weekdays = [ [ "1", "Lundi" ], [ "2", "Mardi" ], [ "3", "Mercredit" ], [ "4", "Jeudi" ], [ "5", "Vendredi" ], [ "6", "Samedi" ], [ "7", "Dimanche" ] ];\n'
20130515 'Lino.lino.UserLevels = [ [ "10", "Guest" ], [ "20", "Secr\\u00e9taire" ], [ "30", "Utilisateur" ], [ "40", "Manager" ], [ "50", "Administrateur" ], [ "90", "Expert" ] ];\n'
20130515 'Lino.lino.UserProfiles = [ [ "000", "000 (Anonyme)" ], [ "100", "100 (Agent d\'insertion)" ], [ "110", "110 (Agent d\'insertion (chef de service))" ], [ "200", "200 (Consultat nouveaux clients)" ], [ "300", "300 (Consultate m\\u00e9diateur dettes)" ], [ "500", "500 (BCSS seulement)" ], [ "900", "900 (Administrateur)" ] ];\n'
20130515 'Lino.cal.EventStates = [ [ "10", "Propos\\u00e9" ], [ "20", "Draft" ], [ "30", "Communiqu\\u00e9" ], [ "40", "Planif\\u00e9" ], [ "50", "a eu lieu" ], [ "60", "D\\u00e9plac\\u00e9" ], [ "70", "Annul\\u00e9" ], [ "80", "Absent" ] ];\n'
20130515 'Lino.accounts.AccountTypes = [ [ "A", "Actifs" ], [ "L", "Obligations" ], [ "I", "Revenus" ], [ "E", "D\\u00e9penses" ], [ "C", "Capital" ], [ "B", "Bank accounts" ] ];\n'
20130515 'Lino.cv.CefLevel = [ [ "A1", "A1 (basic language skills)" ], [ "A2", "A2 (basic language skills)" ], [ "A2+", "A2+ (basic language skills)" ], [ "B1", "B1 (independent use of language)" ], [ "B2", "B2 (independent use of language)" ], [ "B2+", "B2+ (independent use of language)" ], [ "C1", "C1 (proficient use of language)" ], [ "C2", "C2 (proficient use of language)" ], [ "C2+", "C2+ (proficient use of language)" ] ];\n'
20130515 'Lino.properties.HowWell = [ [ "0", "not at all" ], [ "1", "a bit" ], [ "2", "moderate" ], [ "3", "quite well" ], [ "4", "very well" ] ];\n'
20130515 'Lino.jobs.CandidatureStates = [ [ "10", "Active" ], [ "20", "p\\u00e9riode d\'essai" ], [ "25", "Probation failed" ], [ "27", "Travaille" ], [ "30", "Inactive" ] ];\n'
20130515 'Lino.outbox.RecipientType = [ [ "to", "to" ], [ "cc", "cc" ], [ "bcc", "bcc" ] ];\n'
20130515 'Lino.countries.CityTypes = [ [ "10", "Member State" ], [ "11", "Division" ], [ "12", "Region" ], [ "13", "Community" ], [ "14", "Territory" ], [ "20", "County" ], [ "21", "Province" ], [ "22", "Shire" ], [ "23", "Subregion" ], [ "24", "Department" ], [ "25", "Arrondissement" ], [ "26", "Prefecture" ], [ "27", "District" ], [ "28", "Secteur" ], [ "50", "Ville" ], [ "51", "Town" ], [ "52", "Municipality" ], [ "54", "Parish" ], [ "55", "Township" ], [ "56", "Quarter" ], [ "61", "Borough" ], [ "62", "Small borough" ], [ "70", "Village" ] ];\n'
20130515 'Lino.pcsw.BeIdCardTypes = [ [ "1", "Registre national" ], [ "6", "Kids card (< 12 year)" ], [ "11", "Foreigner card A" ], [ "12", "Foreigner card B" ], [ "13", "Foreigner card C" ], [ "14", "Foreigner card D" ], [ "15", "Foreigner card E" ], [ "16", "Foreigner card E+" ], [ "17", "Foreigner card F" ], [ "18", "Foreigner card F+" ] ];\n'
20130515 'Lino.pcsw.CivilState = [ [ "10", "c\\u00e9libataire" ], [ "13", "C\\u00e9libateire cohabitant" ], [ "18", "C\\u00e9libataire avec enfant" ], [ "20", "mari\\u00e9" ], [ "21", "Mari\\u00e9 (habitant seul)" ], [ "22", "Mari\\u00e9 (vivant avec autre partenaire)" ], [ "30", "veuf/veuve" ], [ "33", "Veuf cohabitant" ], [ "40", "divorc\\u00e9" ], [ "50", "s\\u00e9par\\u00e9" ] ];\n'
20130515 'Lino.pcsw.ClientStates = [ [ "10", "Nouveau" ], [ "20", "Refus\\u00e9" ], [ "30", "Accompagn\\u00e9" ], [ "50", "Ancien" ] ];\n'
20130515 'Lino.cal.GuestStates = [ [ "10", "Invit\\u00e9" ], [ "20", "Accept\\u00e9" ], [ "30", "Rejet\\u00e9" ], [ "40", "Pr\\u00e9sent" ], [ "50", "Absent" ] ];\n'
20130515 'Lino.properties.DoYouLike = [ [ "0", "certainly not" ], [ "1", "rather not" ], [ "2", "normally" ], [ "3", "quite much" ], [ "4", "very much" ] ];\n'
20130515 'Lino.cbss.RequestLanguages = [ [ "nl", "Dutch" ], [ "fr", "French" ], [ "de", "German" ] ];\n'
20130515 'Lino.cbss.ManageAction = [ [ "1", "Int\\u00e9grer" ], [ "2", "Annuler int\\u00e9gration" ], [ "3", "Listing" ] ];\n'
20130515 'Lino.pcsw.RefusalReasons = [ [ "10", "Information request (No coaching needed)" ], [ "20", "CPAS n\'est pas comp\\u00e9tent" ], [ "30", "Client n\'est plus revenu" ] ];\n'
20130515 'Lino.lino.UserGroups = [ [ "office", "office (Office)" ], [ "accounting", "accounting (Comptabilit\\u00e9)" ], [ "integ", "integ (Int\\u00e9gration)" ], [ "newcomers", "newcomers (Nouvelles demandes)" ], [ "debts", "debts (M\\u00e9diation de dettes)" ], [ "cbss", "cbss (BCSS)" ] ];\n'
20130515 'Lino.cbss.RequestStates = [ [ "10", "Ex\\u00e9cut\\u00e9" ], [ "20", "echec" ], [ "25", "Valid\\u00e9" ], [ "30", "OK" ], [ "40", "Avertissements" ], [ "50", "Erreurs" ] ];\n'
20130515 'Lino.lino.ChangeTypes = [ [ "C", "Cr\\u00e9er" ], [ "U", "Update" ], [ "D", "Supprimer" ], [ "R", "Remove child" ], [ "A", "Add child" ], [ "M", "Merge" ] ];\n'
20130515 'Lino.cal.AccessClasses = [ [ "10", "Priv\\u00e9" ], [ "20", "Montrer \\"occup\\u00e9\\"" ], [ "30", "Public" ] ];\n'
20130515 'Lino.cbss.QueryRegister = [ [ "1", "Primaire" ], [ "2", "Secondaire" ], [ "3", "Tous" ] ];\n'
20130515 'Lino.lino.Genders = [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ];\n'
20130515 'Lino.pcsw.ResidenceType = [ [ "1", "Registre national" ], [ "2", "Registre des \\u00e9trangers" ], [ "3", "Registre d\'attente " ] ];\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1534 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1535 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1536 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1537 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1538 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1539 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1534, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1535, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1536, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1537, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1538, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1539, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1534, type1535, show_past1536, show_active1537, show_coming1538, today1539 ];\n'
20130515 '    Lino.jobs.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client_state1776 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1777 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1778 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1779 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1780 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var also_obsolete1781 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1782 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1776, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1777, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1778, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1779, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1780, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var aged_from1789 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1790 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1791 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var nationality1792 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1793 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1789, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1790, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1791, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1792, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var language1798 = new Lino.TwinCombo({ "fieldLabel": "Connaissance de langue", "name": "language", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Languages.detail)}, "emptyText": "Choisir Langue...", "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/language", "method": "GET" }) }) });\n'
20130515 '    var wanted_property1799 = new Lino.TwinCombo({ "fieldLabel": "Comp\\u00e9tence requise", "name": "wanted_property", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.properties.Properties.detail)}, "emptyText": "Choisir Propri\\u00e9t\\u00e9...", "selectOnFocus": true, "hiddenName": "wanted_propertyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/wanted_property", "method": "GET" }) }) });\n'
20130515 '    var group1800 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/group", "method": "GET" }) }) });\n'
20130515 '    var only_active1801 = new Ext.form.Checkbox({ "boxLabel": "Clients actifs seulement", "listeners": { "render": Lino.quicktip_renderer("Clients actifs seulement","Show only clients in \'active\' integration phases") }, "hideLabel": true, "checked": false, "name": "only_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_3_panel1802 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1798, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": wanted_property1799, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1800, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_active1801, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1782, main_2_panel1793, main_3_panel1802 ];\n'
20130515 '    this.fields = [ client_state1776, coached_by1777, and_coached_by1778, coached_on1779, only_primary1780, also_obsolete1781, aged_from1789, aged_to1790, gender1791, nationality1792, language1798, wanted_property1799, group1800, only_active1801 ];\n'
20130515 '    Lino.pcsw.IntegClients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2454 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2455 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var job_type2456 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    this.items = [ { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2454, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2455, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2456, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2454, date2455, job_type2456 ];\n'
20130515 '    Lino.jobs.JobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from1753 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1754 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1755 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1756 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1757 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1753, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1754, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1755, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1756, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state1762 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1763 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1764 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1765 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1766 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality1767 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1768 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1762, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1763, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1764, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1765, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1766, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1767, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1757, main_2_panel1768 ];\n'
20130515 '    this.fields = [ aged_from1753, aged_to1754, gender1755, also_obsolete1756, client_state1762, coached_by1763, and_coached_by1764, coached_on1765, only_primary1766, nationality1767 ];\n'
20130515 '    Lino.pcsw.Clients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1427 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1428 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1429 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1430 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1431 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1432 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1427, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1428, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1429, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1430, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1431, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1432, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1427, type1428, show_past1429, show_active1430, show_coming1431, today1432 ];\n'
20130515 '    Lino.isip.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var dates_from836 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Date du","Nur Termine ab diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date du</span>", "anchor": "-20", "name": "dates_from" });\n'
20130515 '    var dates_to837 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("au ","Nur Termine bis zu diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">au </span>", "anchor": "-20", "name": "dates_to" });\n'
20130515 '    var user838 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Responsible user</span>", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Responsible user","Nur Termine dieses Benutzers.") }, "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to839 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Attribu\\u00e9 \\u00e0</span>", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Attribu\\u00e9 \\u00e0","Nur Termine, die diesem Benutzer zugewiesen sind.") }, "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var state840 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "state", "hiddenName": "stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Termine in diesem Bearbeitungszustand.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.EventStates });\n'
20130515 '    var unclear841 = new Ext.form.Checkbox({ "boxLabel": "Mes rendez-vous \\u00e0 clarifier", "hideLabel": true, "checked": false, "name": "unclear", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel842 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 252, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_from836, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_to837, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user838, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to839, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state840, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unclear841, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel842 ];\n'
20130515 '    this.fields = [ dates_from836, dates_to837, user838, assigned_to839, state840, unclear841 ];\n'
20130515 '    Lino.cal.MyEvents.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 126,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var job_type2463 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/NewJobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    var today2464 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2463, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today2464, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ job_type2463, today2464 ];\n'
20130515 '    Lino.jobs.NewJobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from2128 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to2129 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender2130 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete2131 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel2132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from2128, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to2129, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2130, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete2131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state2137 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by2138 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by2139 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on2140 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary2141 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality2142 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2143 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state2137, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by2138, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by2139, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on2140, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary2141, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality2142, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var request_state2150 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "name": "request_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "hiddenName": "request_stateHidden" });\n'
20130515 '    var course_content2151 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "name": "course_content", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "course_contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_content", "method": "GET" }) }) });\n'
20130515 '    var course_provider2152 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "name": "course_provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "course_providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_provider", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel2153 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": request_state2150, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_content2151, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_provider2152, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel2132, main_2_panel2143, main_3_panel2153 ];\n'
20130515 '    this.fields = [ aged_from2128, aged_to2129, gender2130, also_obsolete2131, client_state2137, coached_by2138, and_coached_by2139, coached_on2140, only_primary2141, nationality2142, request_state2150, course_content2151, course_provider2152 ];\n'
20130515 '    Lino.courses.PendingCourseRequests.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2420 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverviewByType/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2421 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2420, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2421, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2420, date2421 ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var gender1098 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1099 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1100 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 47, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1098, "labelAlign": "top" }, { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1099, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1100 ];\n'
20130515 '    this.fields = [ gender1098, also_obsolete1099 ];\n'
20130515 '    Lino.contacts.Persons.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 90,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Refuser",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var reason13 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "reason", "allowBlank": false, "hiddenName": "reasonHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "name": "reason" });\n'
20130515 '    var remark14 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    this.items = [ { "items": reason13, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": remark14, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ];\n'
20130515 '    this.fields = [ reason13, remark14 ];\n'
20130515 '    Lino.pcsw.Clients.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 387,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Rejeter",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var notify_subject6 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "notify_subject" });\n'
20130515 '    var notify_body7 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "notify_body" });\n'
20130515 '    var notify_silent8 = new Ext.form.Checkbox({ "boxLabel": "Don\'t send email notification", "hideLabel": true, "checked": false, "name": "notify_silent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    this.items = [ { "items": notify_subject6, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": notify_body7, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, { "items": notify_silent8, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ notify_subject6, notify_body7, notify_silent8 ];\n'
20130515 '    Lino.cal.GuestsByEvent.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to18 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/pcsw/Clients/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var pcsw_Coaching19 = new Ext.form.Checkbox({ "boxLabel": "Accompagnements", "hideLabel": true, "checked": false, "name": "pcsw_Coaching", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var cv_LanguageKnowledge20 = new Ext.form.Checkbox({ "boxLabel": "Connaissances de langue", "hideLabel": true, "checked": false, "name": "cv_LanguageKnowledge", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_1_panel21 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": pcsw_Coaching19, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cv_LanguageKnowledge20, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var properties_PersonProperty24 = new Ext.form.Checkbox({ "boxLabel": "Propri\\u00e9t\\u00e9s", "hideLabel": true, "checked": false, "name": "properties_PersonProperty", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_panel25 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Auch verg\\u00e4ngliche verkn\\u00fcpfte Objekte \\u00fcberweisen", "items": [ keep_volatiles_1_panel21, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": properties_PersonProperty24, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var reason27 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to18, "anchor": "-20", "labelAlign": "top" }, keep_volatiles_panel25, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason27, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to18, pcsw_Coaching19, cv_LanguageKnowledge20, properties_PersonProperty24, reason27 ];\n'
20130515 '    Lino.pcsw.Clients.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to1 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/contacts/Companies/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var reason2 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to1, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason2, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to1, reason2 ];\n'
20130515 '    Lino.contacts.Companies.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var start_date818 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time819 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel820 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date818, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date823 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time824 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel825 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date823, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time824, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var main_2_panel828 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ start_panel820, end_panel825 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var calendar829 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var project830 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel831 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar829, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project830, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel834 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary817, "anchor": "-20", "labelAlign": "top" }, main_2_panel828, main_3_panel831 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel834;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1608 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var job1609 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var main_panel1610 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1608, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1609, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1610;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1609.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1440 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1441 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1442 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1443 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1444 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var general_1_panel1445 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1440, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1441, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1442, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1443, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1444, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type1451 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1452 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1453 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1454 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel1455 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1451, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1452, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1453, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1454, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1460 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var applies_until1461 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1462 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var general_3_panel1463 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1460, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1461, "labelAlign": "top" }, { "flex": 55, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1462, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1467 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1468 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1469 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1470 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var general_4_panel1471 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1467, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1468, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1469, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1470, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid1476 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 47 });\n'
20130515 '    var cal_EventsByController_grid1483 = new Lino.cal.EventsByController.GridPanel({ "flex": 52, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ], "master_panel": this });\n'
20130515 '    var general_5_panel1484 = new Ext.Panel({ "flex": 55, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ cal_TasksByController_grid1476, cal_EventsByController_grid1483 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1485 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1445, general_2_panel1455, general_3_panel1463, general_4_panel1471, general_5_panel1484 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var stages1486 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "stages", "title": "stages" });\n'
20130515 '    var goals1487 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "goals", "title": "buts" });\n'
20130515 '    var isip_1_panel1488 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ stages1486, goals1487 ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_asd1489 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_asd", "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1490 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_dsbe", "title": "devois ISP" });\n'
20130515 '    var isip_2_panel1491 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_asd1489, duties_dsbe1490 ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_company1492 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_company", "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1493 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_person", "title": "Devoirs personne" });\n'
20130515 '    var isip_3_panel1494 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_company1492, duties_person1493 ], "region": "south", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var isip_panel1495 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "PIIS", "hideCheckBoxLabels": true, "items": [ isip_1_panel1488, isip_2_panel1491, isip_3_panel1494 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1496 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1485, isip_panel1495 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1496;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1453.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      cal_TasksByController_grid1476.on_master_changed();\n'
20130515 '      cal_EventsByController_grid1483.on_master_changed();\n'
20130515 '      stages1486.refresh();\n'
20130515 '      goals1487.refresh();\n'
20130515 '      duties_asd1489.refresh();\n'
20130515 '      duties_dsbe1490.refresh();\n'
20130515 '      duties_company1492.refresh();\n'
20130515 '      duties_person1493.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1452.on('change',Lino.chooser_handler(contact_person1453,'company'));\n"
20130515 '      Lino.isip.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1452.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1497 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var type1498 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1499 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1500 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1498, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1499, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1503 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1497, "anchor": "-20", "labelAlign": "top" }, main_2_panel1500 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1499.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name2378 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2379 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2380 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2381 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2379, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2380, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2384 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2378, "anchor": "-20", "labelAlign": "top" }, main_2_panel2381 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2384;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var subject673 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project674 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var date675 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date","\\n        The official date to be printed on the document.\\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date</span>", "name": "date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel676 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject673, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project674, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date675, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var user680 = new Lino.TwinCombo({ "fieldLabel": "exp\\u00e9diteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/user", "method": "GET" }) }) });\n'
20130515 '    var sent681 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "sent", "anchor": "-20", "value": "<br>", "name": "sent" });\n'
20130515 '    var id682 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var owner_disp683 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_2_panel684 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user680, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent681, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id682, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp683, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var RecipientsByMail_grid695 = new Lino.outbox.RecipientsByMail.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.RecipientsByMail.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var AttachmentsByMail_htmlbox696 = new Lino.HtmlBoxPanel({ "flex": 22, "layout": "fit", "name": "AttachmentsByMail", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Pi\\u00e8ces jointes", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.outbox.AttachmentsByMail.grid) ] });\n'
20130515 '    var UploadsByController_htmlbox697 = new Lino.HtmlBoxPanel({ "flex": 22, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel698 = new Ext.Panel({ "flex": 29, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ RecipientsByMail_grid695, AttachmentsByMail_htmlbox696, UploadsByController_htmlbox697 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var body699 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 58, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel700 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel676, main_2_panel684, main_3_panel698, body699 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel700;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      RecipientsByMail_grid695.on_master_changed();\n'
20130515 '      AttachmentsByMail_htmlbox696.refresh();\n'
20130515 '      UploadsByController_htmlbox697.refresh();\n'
20130515 '      body699.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date636 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var event_type637 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type638 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var left_1_panel639 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date636, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type637, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type638, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var subject643 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project644 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company645 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var left_3_panel646 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project644, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company645, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var id649 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var user650 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/user", "method": "GET" }) }) });\n'
20130515 '    var language651 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var build_time652 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var left_4_panel653 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id649, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user650, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language651, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time652, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var body658 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 55, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var left_panel659 = new Ext.Panel({ "flex": 66, "layout": "vbox", "items": [ left_1_panel639, { "items": subject643, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, left_3_panel646, left_4_panel653, body658 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox661 = new Lino.HtmlBoxPanel({ "flex": 16, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var outbox_MailsByController_grid707 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var postings_PostingsByController_grid718 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var cal_TasksByController_grid724 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var right_panel725 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ UploadsByController_htmlbox661, outbox_MailsByController_grid707, postings_PostingsByController_grid718, cal_TasksByController_grid724 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel726 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ left_panel659, right_panel725 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel727 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel726 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel727;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body658.refresh();\n'
20130515 '      UploadsByController_htmlbox661.refresh();\n'
20130515 '      outbox_MailsByController_grid707.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid718.on_master_changed();\n'
20130515 '      cal_TasksByController_grid724.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var preview_htmlbox2461 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "preview", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2462 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ preview_htmlbox2461 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2462;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      preview_htmlbox2461.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.NewJobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name550 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id551 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language552 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel553 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix549, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name550, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id551, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language552, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity559 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }) });\n'
20130515 '    var type560 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel561 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id558, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity559, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type560, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account1565 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete567 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel568 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1565, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2566, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete567, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel572 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel553, intro_box_2_panel561, intro_box_3_panel568 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country573 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }) });\n'
20130515 '    var region574 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel575 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country573, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region574, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city578 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code579 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel580 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city578, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code579, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix583 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street584 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no585 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box586 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel587 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix583, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street584, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no585, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box586, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2592 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel593 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel575, box3_2_panel580, box3_3_panel587, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2592, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email595 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url596 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone597 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm598 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel599 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email595, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url596, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone597, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm598, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel604 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel593, box4_panel599 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks605 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var is_courseprovider606 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un organisateur de cours (<a href=\\"javascript:Lino.show_mti_child(\'is_courseprovider\',Lino.courses.CourseProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_courseprovider" });\n'
20130515 '    var is_jobprovider607 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est Employant (<a href=\\"javascript:Lino.show_mti_child(\'is_jobprovider\',Lino.jobs.JobProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_jobprovider" });\n'
20130515 '    var client_contact_type608 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de contact client", "name": "client_contact_type", "pageSize": 20, "emptyText": "Choisir Type de contact client...", "selectOnFocus": true, "hiddenName": "client_contact_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }) });\n'
20130515 '    var box5_2_panel609 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 261, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_courseprovider606, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_jobprovider607, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_contact_type608, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var box5_panel613 = new Ext.Panel({ "flex": 57, "layout": "vbox", "items": [ { "items": remarks605, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 }, box5_2_panel609 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByCompany_grid619 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel620 = new Ext.Panel({ "flex": 46, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box5_panel613, contacts_RolesByCompany_grid619 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel621 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel572, address_box_panel604, bottom_box_panel620 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid741 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var main_panel742 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel621, pcsw_NotesByCompany_grid741 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel742;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region574.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid619.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid741.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country573.on('change',Lino.chooser_handler(region574,'country'));\n"
20130515 "      country573.on('change',Lino.chooser_handler(city578,'country'));\n"
20130515 "      region574.on('change',Lino.chooser_handler(city578,'region'));\n"
20130515 '      Lino.contacts.Companies.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name504 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language505 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email506 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel507 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language505, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email506, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel510 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name504, "anchor": "-20", "labelAlign": "top" }, main_2_panel507 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel510;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var title1085 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var first_name1086 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1087 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1085, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1086, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1087, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1092 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1093 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_2_panel1094 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1092, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1093, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1097 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel1088, main_2_panel1094 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1097;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2212 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2213 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var main_1_panel2214 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2212, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2213, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2217 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2218 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2220 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2217, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2218, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2219, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2224 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2225 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2226 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2227 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2224, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2225, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2226, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2231 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2220, p2_2_panel2227 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2232 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel2214, p2_panel2231 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2232;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2212.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.lino.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2445 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var welcome_htmlbox2446 = new Lino.HtmlBoxPanel({ "flex": 10, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var UsersWithClients_htmlbox2447 = new Lino.HtmlBoxPanel({ "flex": 28, "layout": "fit", "name": "UsersWithClients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Agents et leurs clients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.pcsw.UsersWithClients.grid) ] });\n'
20130515 '    var coming_reminders_htmlbox2448 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "coming_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels \\u00e0 venir", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var missed_reminders_htmlbox2449 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "missed_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels rat\\u00e9s", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_4_panel2450 = new Ext.Panel({ "flex": 57, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ coming_reminders_htmlbox2448, missed_reminders_htmlbox2449 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2451 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2445, welcome_htmlbox2446, UsersWithClients_htmlbox2447, main_4_panel2450 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2451;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2445.refresh();\n'
20130515 '      welcome_htmlbox2446.refresh();\n'
20130515 '      UsersWithClients_htmlbox2447.refresh();\n'
20130515 '      coming_reminders_htmlbox2448.refresh();\n'
20130515 '      missed_reminders_htmlbox2449.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.lino.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var start_date107 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var due_date108 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Due date", "anchor": "-20", "name": "due_date" });\n'
20130515 '    var id109 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var workflow_buttons_disp110 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var main_1_panel111 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date107, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": due_date108, "labelAlign": "top" }, { "flex": 9, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id109, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp110, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var summary116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user117 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project118 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel119 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user117, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project118, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var calendar122 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/calendar", "method": "GET" }) }) });\n'
20130515 '    var owner_disp123 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var created124 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified125 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var main_4_panel126 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar122, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp123, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created124, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified125, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description131 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var main_panel132 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ main_1_panel111, { "items": summary116, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, main_3_panel119, main_4_panel126, description131 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel132;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description131.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2318 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2319 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2320 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2321 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2322 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2323 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2324 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2325 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2318, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2319, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2320, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2321, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2322, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2323, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2324, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2333 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2334 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var history2335 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var parameters_panel2336 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2333, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2334, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2335, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 99, "border": false, "labelAlign": "top" });\n'
20130515 '    var cbss_RetrieveTIGroupsResult_grid2345 = new Lino.cbss.RetrieveTIGroupsResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.RetrieveTIGroupsResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var request_panel2346 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2325, parameters_panel2336, cbss_RetrieveTIGroupsResult_grid2345 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2347 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2348 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2349 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2350 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2347, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2348, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2349, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2354 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2346, technical_panel2350 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2354;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cbss_RetrieveTIGroupsResult_grid2345.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 72,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix1808 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name1809 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id1810 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1811 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel1812 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix1808, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1809, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1810, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1811, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id1817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity1818 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type1819 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel1820 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id1817, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1818, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11824 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21825 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1826 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel1827 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11824, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21825, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1826, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel1831 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel1812, intro_box_2_panel1820, intro_box_3_panel1827 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country1832 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region1833 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel1834 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1832, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1833, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city1837 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1838 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel1839 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1837, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1838, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1842 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1843 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1844 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1845 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel1846 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1842, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1843, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1844, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1845, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21851 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel1852 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel1834, box3_2_panel1839, box3_3_panel1846, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21851, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email1854 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1855 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1856 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1857 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel1858 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1854, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1855, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1856, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1857, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel1863 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel1852, box4_panel1858 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1864 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid1865 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel1866 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1864, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid1865 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1868 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel1831, address_box_panel1863, bottom_box_panel1866 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid1869 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var JobsByProvider_grid1943 = new Lino.jobs.JobsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.jobs.JobsByProvider.grid) ], "master_panel": this });\n'
20130515 '    var ContractsByProvider_grid1972 = new Lino.jobs.ContractsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByProvider.grid) ] });\n'
20130515 '    var jobs_panel1973 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Emplois", "hideCheckBoxLabels": true, "items": [ JobsByProvider_grid1943, ContractsByProvider_grid1972 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1974 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1868, pcsw_NotesByCompany_grid1869, jobs_panel1973 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1974;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1833.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid1865.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid1869.on_master_changed();\n'
20130515 '      JobsByProvider_grid1943.on_master_changed();\n'
20130515 '      ContractsByProvider_grid1972.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1832.on('change',Lino.chooser_handler(region1833,'country'));\n"
20130515 "      country1832.on('change',Lino.chooser_handler(city1837,'country'));\n"
20130515 "      region1833.on('change',Lino.chooser_handler(city1837,'region'));\n"
20130515 '      Lino.jobs.JobProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var project701 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var subject702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var body703 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 71, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel704 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "items": project701, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": subject702, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, body703 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel704;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body703.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var first_name1740 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1741 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1742 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1740, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1741, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id1745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var gender1746 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1747 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_3_panel1748 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1746, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1747, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1751 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ main_1_panel1742, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1745, "anchor": "-20", "labelAlign": "top" }, main_3_panel1748 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1751;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name1104 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name1105 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var title1106 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var box1_1_panel1107 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1104, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1105, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1106, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1111 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/country", "method": "GET" }) }) });\n'
20130515 '    var city1112 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1113 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_2_panel1114 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1111, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1112, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1113, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1118 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1119 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1120 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1121 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_3_panel1122 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1118, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1119, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1120, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1121, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21127 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box1_panel1128 = new Ext.form.FieldSet({ "flex": 61, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ box1_1_panel1107, box1_2_panel1114, box1_3_panel1122, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21127, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1130 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1131 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box2_1_panel1132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1130, "labelAlign": "top" }, { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var phone1136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var fax1137 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var box2_3_panel1138 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1136, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1137, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 90, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gsm1141 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box2_panel1142 = new Ext.form.FieldSet({ "flex": 38, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ box2_1_panel1132, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1135, "anchor": "-20", "labelAlign": "top" }, box2_3_panel1138, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1141, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 63, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1145 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1128, box2_panel1142 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1146 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var birth_date1147 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var age_disp1148 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "\\u00e2ge", "name": "age", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state1149 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Etat civil", "name": "civil_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.CivilState, "hiddenName": "civil_stateHidden" });\n'
20130515 '    var noble_condition1150 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Titre de noblesse","The eventual noble condition of this person. Imported from TIM.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Titre de noblesse</span>", "name": "noble_condition", "maxLength": 50, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_1_panel1151 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1146, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date1147, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": age_disp1148, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": civil_state1149, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": noble_condition1150, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_country1157 = new Lino.TwinCombo({ "fieldLabel": "Pays de naissance", "name": "birth_country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "birth_countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/birth_country", "method": "GET" }) }) });\n'
20130515 '    var birth_place1158 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Lieu de naissance", "anchor": "-20", "name": "birth_place" });\n'
20130515 '    var nationality1159 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var national_id1160 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var box3_2_panel1161 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_country1157, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_place1158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1159, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1160, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel1166 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Naissance", "items": [ box3_1_panel1151, box3_2_panel1161 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var card_number1167 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20, "fieldLabel": "n\\u00b0", "anchor": "-20", "name": "card_number" });\n'
20130515 '    var card_valid_from1168 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "valide de", "anchor": "-20", "name": "card_valid_from" });\n'
20130515 '    var card_valid_until1169 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "card_valid_until" });\n'
20130515 '    var card_issuer1170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50, "fieldLabel": "\\u00e9mise par", "anchor": "-20", "name": "card_issuer" });\n'
20130515 '    var card_type1171 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de carte eID", "name": "card_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.BeIdCardTypes, "hiddenName": "card_typeHidden" });\n'
20130515 '    var eid_panel_1_panel1172 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Carte eID", "bodyBorder": true, "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_number1167, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_from1168, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_until1169, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_issuer1170, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_type1171, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created1178 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1179 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box4_3_panel1180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1178, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box4_panel1183 = new Ext.Panel({ "flex": 82, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box3_panel1166, eid_panel_1_panel1172, box4_3_panel1180 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var image_htmlbox1184 = new Lino.HtmlBoxPanel({ "flex": 17, "layout": "fit", "name": "image", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var general_2_panel1185 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ box4_panel1183, image_htmlbox1184 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 0, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var general_panel1186 = new Ext.Panel({ "autoHeight": true, "layout": "form", "title": "Personne", "items": [ general_1_panel1145, general_2_panel1185 ], "frame": true, "bodyBorder": false, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "labelAlign": "top" });\n'
20130515 '    var in_belgium_since1187 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("en Belgique depuis","Since when this person in Belgium lives.\\n<b>Important:</b> help_text can be formatted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">en Belgique depuis</span>", "anchor": "-20", "name": "in_belgium_since" });\n'
20130515 '    var residence_type1188 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de s\\u00e9jour", "name": "residence_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ResidenceType, "hiddenName": "residence_typeHidden" });\n'
20130515 '    var gesdos_id1189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "N\\u00b0 GesDos", "anchor": "-20", "name": "gesdos_id" });\n'
20130515 '    var status_1_panel1190 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": in_belgium_since1187, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_type1188, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gesdos_id1189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11194 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var status_2_panel1196 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11194, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21195, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var job_agents1199 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Agences de travail", "anchor": "-20", "name": "job_agents" });\n'
20130515 '    var group1200 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/group", "method": "GET" }) }) });\n'
20130515 '    var status_3_panel1201 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_agents1199, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1200, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var status_panel1204 = new Ext.Panel({ "flex": 68, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ status_1_panel1190, status_2_panel1196, status_3_panel1201 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var aid_type1205 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'aide sociale", "name": "aid_type", "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale...", "selectOnFocus": true, "hiddenName": "aid_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }) });\n'
20130515 '    var income_ag1206 = new Ext.form.Checkbox({ "boxLabel": "allocation de ch\\u00f4mage", "hideLabel": true, "checked": false, "name": "income_ag", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_wg1207 = new Ext.form.Checkbox({ "boxLabel": "waiting pay", "hideLabel": true, "checked": false, "name": "income_wg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_2_panel1208 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_ag1206, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_wg1207, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_kg1211 = new Ext.form.Checkbox({ "boxLabel": "indemnisation maladie", "hideLabel": true, "checked": false, "name": "income_kg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_rente1212 = new Ext.form.Checkbox({ "boxLabel": "persone de retraite", "hideLabel": true, "checked": false, "name": "income_rente", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_3_panel1213 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_kg1211, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_rente1212, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_misc1216 = new Ext.form.Checkbox({ "boxLabel": "autres revenus", "hideLabel": true, "checked": false, "name": "income_misc", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_panel1217 = new Ext.Panel({ "flex": 31, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": aid_type1205, "anchor": "-20", "labelAlign": "top" }, income_2_panel1208, income_3_panel1213, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_misc1216, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 180, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_1_panel1220 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ status_panel1204, income_panel1217 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_seeking1221 = new Ext.form.Checkbox({ "boxLabel": "cherche du travail", "hideLabel": true, "checked": false, "name": "is_seeking", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var unemployed_since1222 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Cherche du travail depuis", "anchor": "-20", "name": "unemployed_since" });\n'
20130515 '    var work_permit_suspended_until1223 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "suspendu jusque", "anchor": "-20", "name": "work_permit_suspended_until" });\n'
20130515 '    var suche_1_panel1224 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_seeking1221, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unemployed_since1222, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_suspended_until1223, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var unavailable_until1228 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Indidponible jusque", "anchor": "-20", "name": "unavailable_until" });\n'
20130515 '    var unavailable_why1229 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "raison", "anchor": "-20", "name": "unavailable_why" });\n'
20130515 '    var suche_2_panel1230 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_until1228, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_why1229, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ExclusionsByPerson_grid1238 = new Lino.pcsw.ExclusionsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ExclusionsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var suche_panel1239 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Recherche de travail", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ suche_1_panel1224, suche_2_panel1230, pcsw_ExclusionsByPerson_grid1238 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var needs_residence_permit1240 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de s\\u00e9jour", "hideLabel": true, "checked": false, "name": "needs_residence_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var needs_work_permit1241 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de travail", "hideLabel": true, "checked": false, "name": "needs_work_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var papers_1_panel1242 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 288, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_residence_permit1240, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_work_permit1241, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var residence_permit_disp1245 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de s\\u00e9jour", "name": "residence_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var work_permit_disp1246 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de travail", "name": "work_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var driving_licence_disp1247 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "permis de conduire", "name": "driving_licence", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var papers_2_panel1248 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_permit_disp1245, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_disp1246, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": driving_licence_disp1247, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox1252 = new Lino.HtmlBoxPanel({ "flex": 42, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var papers_panel1253 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Papiers", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ papers_1_panel1242, papers_2_panel1248, UploadsByController_htmlbox1252 ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_2_panel1254 = new Ext.Panel({ "flex": 63, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ suche_panel1239, papers_panel1253 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_panel1255 = new Ext.Panel({ "layout": "vbox", "title": "Statut", "items": [ status_tab_1_panel1220, status_tab_2_panel1254 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var workflow_buttons_disp1256 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker1257 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Interm\\u00e9diaire ", "name": "broker", "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ...", "selectOnFocus": true, "hiddenName": "brokerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/broker", "method": "GET" }) }) });\n'
20130515 '    var faculty1258 = new Lino.TwinCombo({ "fieldLabel": "Sp\\u00e9cificit\\u00e9", "name": "faculty", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.newcomers.Faculties.detail)}, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9...", "selectOnFocus": true, "hiddenName": "facultyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/faculty", "method": "GET" }) }) });\n'
20130515 '    var newcomers_left_panel1259 = new Ext.Panel({ "flex": 33, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp1256, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": broker1257, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": faculty1258, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var coaching_1_panel1278 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ newcomers_left_panel1259 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ContactsByClient_grid1286 = new Lino.pcsw.ContactsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ContactsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var pcsw_CoachingsByClient_grid1294 = new Lino.pcsw.CoachingsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var coaching_2_panel1295 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ pcsw_ContactsByClient_grid1286, pcsw_CoachingsByClient_grid1294 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var coaching_panel1296 = new Ext.Panel({ "layout": "vbox", "title": "Accompagnement", "items": [ coaching_1_panel1278, coaching_2_panel1295 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_StudiesByPerson_grid1309 = new Lino.jobs.StudiesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "master_panel": this, "listeners": { "render": Lino.quicktip_renderer("\\u00c9tudes & formations","List of studies for a given person.") }, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByPerson.grid) ] });\n'
20130515 '    var jobs_ExperiencesByPerson_grid1319 = new Lino.jobs.ExperiencesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var education_panel1320 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Formation", "hideCheckBoxLabels": true, "items": [ jobs_StudiesByPerson_grid1309, jobs_ExperiencesByPerson_grid1319 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_LanguageKnowledgesByPerson_grid1327 = new Lino.cv.LanguageKnowledgesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.cv.LanguageKnowledgesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var courses_CourseRequestsByPerson_grid1363 = new Lino.courses.CourseRequestsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseRequestsByPerson.grid) ], "master_panel": this });\n'
20130515 '    var languages_panel1364 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Langues", "hideCheckBoxLabels": true, "items": [ cv_LanguageKnowledgesByPerson_grid1327, courses_CourseRequestsByPerson_grid1363 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_SkillsByPerson_grid1371 = new Lino.cv.SkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var cv_SoftSkillsByPerson_grid1378 = new Lino.cv.SoftSkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SoftSkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var skills1379 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Autres talents", "anchor": "-20 -10", "growMax": 2000, "name": "skills" });\n'
20130515 '    var competences_1_panel1380 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_SkillsByPerson_grid1371, cv_SoftSkillsByPerson_grid1378, { "items": skills1379, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 28 } ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 135, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var cv_ObstaclesByPerson_grid1388 = new Lino.cv.ObstaclesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.ObstaclesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var obstacles1389 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Obstacles", "anchor": "-20 -10", "growMax": 2000, "name": "obstacles" });\n'
20130515 '    var competences_2_panel1390 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_ObstaclesByPerson_grid1388, { "items": obstacles1389, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 44 } ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 90, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var competences_panel1392 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Comp\\u00e9tences", "hideCheckBoxLabels": true, "items": [ competences_1_panel1380, competences_2_panel1390 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_CandidaturesByPerson_grid1401 = new Lino.jobs.CandidaturesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Demandes d\'emploi", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var isip_ContractsByPerson_grid1505 = new Lino.isip.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.isip.ContractsByPerson.grid) ] });\n'
20130515 '    var jobs_ContractsByPerson_grid1613 = new Lino.jobs.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByPerson.grid) ] });\n'
20130515 '    var contracts_panel1614 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Contrats", "hideCheckBoxLabels": true, "items": [ isip_ContractsByPerson_grid1505, jobs_ContractsByPerson_grid1613 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByPerson_grid1629 = new Lino.pcsw.NotesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Historique", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var cal_EventsByProject_grid1655 = new Lino.cal.EventsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByProject.grid) ] });\n'
20130515 '    var cal_TasksByProject_grid1678 = new Lino.cal.TasksByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByProject.grid) ], "master_panel": this });\n'
20130515 '    var calendar_panel1679 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_EventsByProject_grid1655, cal_TasksByProject_grid1678 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByProject_grid1691 = new Lino.outbox.MailsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByProject.grid) ], "master_panel": this });\n'
20130515 '    var postings_PostingsByProject_grid1702 = new Lino.postings.PostingsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByProject.grid) ], "master_panel": this });\n'
20130515 '    var outbox_panel1703 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Correspondence", "hideCheckBoxLabels": true, "items": [ outbox_MailsByProject_grid1691, postings_PostingsByProject_grid1702 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var activity1704 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/activity", "method": "GET" }) }) });\n'
20130515 '    var client_state1705 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "client_stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates, "name": "client_state" });\n'
20130515 '    var refusal_reason1706 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "refusal reason", "name": "refusal_reason", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "hiddenName": "refusal_reasonHidden" });\n'
20130515 '    var misc_1_panel1707 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1704, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1705, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refusal_reason1706, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_cpas1711 = new Ext.form.Checkbox({ "boxLabel": "client CPAS", "hideLabel": true, "checked": false, "name": "is_cpas", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_senior1712 = new Ext.form.Checkbox({ "boxLabel": "retrait\\u00e9", "hideLabel": true, "checked": false, "name": "is_senior", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_obsolete1713 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var misc_2_panel1714 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_cpas1711, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_senior1712, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1713, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1718 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var remarks21719 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque (Bureau Social)", "anchor": "-20 -10", "growMax": 2000, "name": "remarks2" });\n'
20130515 '    var misc_3_panel1720 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 225, "hideCheckBoxLabels": true, "items": [ { "items": remarks1718, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 }, { "items": remarks21719, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 } ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByPerson_grid1723 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var households_MembersByPerson_grid1724 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var misc_4_panel1725 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_RolesByPerson_grid1723, households_MembersByPerson_grid1724 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var misc_panel1726 = new Ext.Panel({ "layout": "vbox", "title": "Divers", "items": [ misc_1_panel1707, misc_2_panel1714, misc_3_panel1720, misc_4_panel1725 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cbss_identify_person_disp1727 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates IdentifyPerson", "name": "cbss_identify_person", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_manage_access_disp1728 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates ManageAccess", "name": "cbss_manage_access", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_retrieve_ti_groups_disp1729 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates Tx25", "name": "cbss_retrieve_ti_groups", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_1_panel1730 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_identify_person_disp1727, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_manage_access_disp1728, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_retrieve_ti_groups_disp1729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cbss_summary_htmlbox1734 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "cbss_summary", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Sommaire BCSS", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var cbss_panel1735 = new Ext.Panel({ "layout": "vbox", "title": "BCSS", "items": [ cbss_1_panel1730, cbss_summary_htmlbox1734 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 126, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1739 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1186, status_tab_panel1255, coaching_panel1296, education_panel1320, languages_panel1364, competences_panel1392, jobs_CandidaturesByPerson_grid1401, contracts_panel1614, pcsw_NotesByPerson_grid1629, calendar_panel1679, outbox_panel1703, misc_panel1726, cbss_panel1735 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1112.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1112.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      image_htmlbox1184.refresh();\n'
20130515 '      pcsw_ExclusionsByPerson_grid1238.on_master_changed();\n'
20130515 '      UploadsByController_htmlbox1252.refresh();\n'
20130515 '      pcsw_ContactsByClient_grid1286.on_master_changed();\n'
20130515 '      pcsw_CoachingsByClient_grid1294.on_master_changed();\n'
20130515 '      jobs_StudiesByPerson_grid1309.on_master_changed();\n'
20130515 '      jobs_ExperiencesByPerson_grid1319.on_master_changed();\n'
20130515 '      cv_LanguageKnowledgesByPerson_grid1327.on_master_changed();\n'
20130515 '      courses_CourseRequestsByPerson_grid1363.on_master_changed();\n'
20130515 '      cv_SkillsByPerson_grid1371.on_master_changed();\n'
20130515 '      cv_SoftSkillsByPerson_grid1378.on_master_changed();\n'
20130515 '      cv_ObstaclesByPerson_grid1388.on_master_changed();\n'
20130515 '      jobs_CandidaturesByPerson_grid1401.on_master_changed();\n'
20130515 '      isip_ContractsByPerson_grid1505.on_master_changed();\n'
20130515 '      jobs_ContractsByPerson_grid1613.on_master_changed();\n'
20130515 '      pcsw_NotesByPerson_grid1629.on_master_changed();\n'
20130515 '      cal_EventsByProject_grid1655.on_master_changed();\n'
20130515 '      cal_TasksByProject_grid1678.on_master_changed();\n'
20130515 '      outbox_MailsByProject_grid1691.on_master_changed();\n'
20130515 '      postings_PostingsByProject_grid1702.on_master_changed();\n'
20130515 '      contacts_RolesByPerson_grid1723.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1724.on_master_changed();\n'
20130515 '      cbss_summary_htmlbox1734.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1111.on('change',Lino.chooser_handler(city1112,'country'));\n"
20130515 '      Lino.pcsw.Clients.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var event_type728 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type729 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel730 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type728, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var subject733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project734 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company735 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel736 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project734, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company735, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel739 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 72, "autoScroll": false, "items": [ main_1_panel730, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject733, "anchor": "-20", "labelAlign": "top" }, main_3_panel736 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2355 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2357 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var main_2_panel2358 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 70, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2356, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2357, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var history2361 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_panel2362 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2355, "anchor": "-20", "labelAlign": "top" }, main_2_panel2358, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2361, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 69,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1881 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var provider1882 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }) });\n'
20130515 '    var contract_type1883 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }) });\n'
20130515 '    var type1884 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }) });\n'
20130515 '    var id1885 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel1886 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1881, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1882, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type1883, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1884, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1885, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var sector1892 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }) });\n'
20130515 '    var function1893 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }) });\n'
20130515 '    var capacity1894 = new Ext.form.NumberField({ "fieldLabel": "Capacit\\u00e9", "name": "capacity", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var hourly_rate1895 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var main_2_panel1896 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1892, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1893, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": capacity1894, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1895, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1901 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var CandidaturesByJob_grid1910 = new Lino.jobs.CandidaturesByJob.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByJob.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var main_3_panel1911 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1901, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 33 }, CandidaturesByJob_grid1910 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var ContractsByJob_grid1941 = new Lino.jobs.ContractsByJob.GridPanel({ "flex": 41, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByJob.grid) ], "master_panel": this });\n'
20130515 '    var main_panel1942 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1886, main_2_panel1896, main_3_panel1911, ContractsByJob_grid1941 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1942;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1893.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      CandidaturesByJob_grid1910.on_master_changed();\n'
20130515 '      ContractsByJob_grid1941.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1892.on('change',Lino.chooser_handler(function1893,'sector'));\n"
20130515 '      Lino.jobs.Jobs.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Jobs.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name297 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var country298 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }) });\n'
20130515 '    var region299 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }) });\n'
20130515 '    var city300 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code301 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel302 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country298, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region299, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city300, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code301, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr1307 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix308 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street309 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no310 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box311 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel312 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix308, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street309, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no310, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box311, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2317 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel318 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name297, "anchor": "-20", "labelAlign": "top" }, address_box_2_panel302, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr1307, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel312, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2317, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id322 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language323 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel324 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id322, "labelAlign": "top" }, { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language323, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email327 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url328 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone329 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm330 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax331 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel332 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm330, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax331, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel335 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel324, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email327, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url328, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone329, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel332 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel339 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel318, contact_box_panel335 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks340 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var activity341 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1342 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2343 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete344 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_2_panel345 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity341, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1342, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2343, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete344, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_person350 = new Ext.form.Checkbox({ "boxLabel": "est une Personne (<a href=\\"javascript:Lino.show_mti_child(\'is_person\',Lino.contacts.Persons.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Personne","Si ce partenaire est \\u00e9galement une personne.") }, "hideLabel": true, "name": "is_person", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_company351 = new Ext.form.Checkbox({ "boxLabel": "est une Organisation (<a href=\\"javascript:Lino.show_mti_child(\'is_company\',Lino.contacts.Companies.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Organisation","Si ce partenaire est \\u00e9galement une organisation.") }, "hideLabel": true, "name": "is_company", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_household352 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un m\\u00e9nage (<a href=\\"javascript:Lino.show_mti_child(\'is_household\',Lino.households.Households.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_household" });\n'
20130515 '    var created353 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified354 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_3_panel355 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_person350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_company351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_household352, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created353, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified354, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel361 = new Ext.Panel({ "flex": 58, "layout": "vbox", "items": [ { "items": remarks340, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, bottom_box_2_panel345, bottom_box_3_panel355 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_panel363 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel339, bottom_box_panel361 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var changes_ChangesByMaster_grid388 = new Lino.changes.ChangesByMaster.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Changes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.changes.ChangesByMaster.grid) ], "master_panel": this });\n'
20130515 '    var main_panel503 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel363, changes_ChangesByMaster_grid388 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region299.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      changes_ChangesByMaster_grid388.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country298.on('change',Lino.chooser_handler(region299,'country'));\n"
20130515 "      country298.on('change',Lino.chooser_handler(city300,'country'));\n"
20130515 "      region299.on('change',Lino.chooser_handler(city300,'region'));\n"
20130515 '      Lino.contacts.Partners.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 76,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2099 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var start_date2100 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var offer2101 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/Courses/offer", "method": "GET" }) }), "name": "offer" });\n'
20130515 '    var title2102 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Name", "anchor": "-20", "name": "title" });\n'
20130515 '    var main_1_panel2103 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2099, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2100, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer2101, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2102, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark2108 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Remarque", "anchor": "-20", "name": "remark" });\n'
20130515 '    var courses_ParticipantsByCourse_grid2114 = new Lino.courses.ParticipantsByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.ParticipantsByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var courses_CandidatesByCourse_grid2121 = new Lino.courses.CandidatesByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.CandidatesByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var main_panel2122 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel2103, { "items": remark2108, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, courses_ParticipantsByCourse_grid2114, courses_CandidatesByCourse_grid2121 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2122;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      courses_ParticipantsByCourse_grid2114.on_master_changed();\n'
20130515 '      courses_CandidatesByCourse_grid2121.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CoursesByOffer.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var body_htmlbox2452 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "body", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2453 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ body_htmlbox2452 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2453;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body_htmlbox2452.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user135 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project136 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel137 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user135, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project136, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel140 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary134, "anchor": "-20", "labelAlign": "top" }, main_2_panel137 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel140;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var isocode204 = new Ext.form.TextField({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">ISO code</span>", "name": "isocode", "boxMinWidth": Lino.chars2width(4), "listeners": { "render": Lino.quicktip_renderer("ISO code","        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.") }, "maxLength": 4, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name205 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr206 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl207 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var short_code208 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Short code","A short abbreviation for regional usage. Obsolete.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Short code</span>", "name": "short_code", "maxLength": 4, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var inscode209 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this country used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20" });\n'
20130515 '    var main_1_panel210 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": isocode204, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name205, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr206, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl207, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": short_code208, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode209, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var countries_CitiesByCountry_grid533 = new Lino.countries.CitiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 48 });\n'
20130515 '    var jobs_StudiesByCountry_grid546 = new Lino.jobs.StudiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 51 });\n'
20130515 '    var main_2_panel547 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ countries_CitiesByCountry_grid533, jobs_StudiesByCountry_grid546 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel548 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel210, main_2_panel547 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel548;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      countries_CitiesByCountry_grid533.on_master_changed();\n'
20130515 '      jobs_StudiesByCountry_grid546.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Countries.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name226 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr227 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl228 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var country229 = new Lino.TwinCombo({ "fieldLabel": "Pays", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/country", "method": "GET" }) }), "name": "country" });\n'
20130515 '    var inscode230 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this place used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 5, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "anchor": "-20" });\n'
20130515 '    var main_1_panel231 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name226, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr227, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl228, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country229, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode230, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var parent237 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Part of</span>", "name": "parent", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "listeners": { "render": Lino.quicktip_renderer("Part of","The superordinate geographic place of which this place is a part.") }, "selectOnFocus": true, "hiddenName": "parentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/parent", "method": "GET" }) }) });\n'
20130515 '    var type238 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Place Type", "name": "type", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/type", "method": "GET" }) }), "hiddenName": "typeHidden" });\n'
20130515 '    var id239 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel240 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": parent237, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type238, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id239, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var CitiesByCity_grid528 = new Lino.countries.CitiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var contacts_PartnersByCity_grid529 = new Lino.contacts.PartnersByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.PartnersByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var jobs_StudiesByCity_grid530 = new Lino.jobs.StudiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel531 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_PartnersByCity_grid529, jobs_StudiesByCity_grid530 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel532 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel231, main_2_panel240, CitiesByCity_grid528, main_4_panel531 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel532;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type238.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '      CitiesByCity_grid528.on_master_changed();\n'
20130515 '      contacts_PartnersByCity_grid529.on_master_changed();\n'
20130515 '      jobs_StudiesByCity_grid530.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country229.on('change',Lino.chooser_handler(type238,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.countries.CitiesByCity.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.About.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var main_panel2444 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ { "html": "<div class=\\"htmlText\\"><span>This is <a href=\\"http://welfare.lino-framework.org\\" target=\\"_blank\\">Lino Welfare</a> 1.1.4 using <a href=\\"http://site.lino-framework.org\\" target=\\"_blank\\">djangosite</a> 0.1.4, <a href=\\"http://www.python.org/\\" target=\\"_blank\\">Python</a> 2.7.3, <a href=\\"http://www.djangoproject.com\\" target=\\"_blank\\">Django</a> 1.5.1, <a href=\\"http://babel.edgewall.org/\\" target=\\"_blank\\">Babel</a> 1.0dev-r661, <a href=\\"http://www.lino-framework.org\\" target=\\"_blank\\">Lino</a> 1.6.7, <a href=\\"http://jinja.pocoo.org/\\" target=\\"_blank\\">Jinja</a> 2.6, <a href=\\"http://sphinx-doc.org/\\" target=\\"_blank\\">Sphinx</a> 1.2b1, <a href=\\"http://labix.org/python-dateutil\\" target=\\"_blank\\">python-dateutil</a> 2.1, <a href=\\"http://pypi.python.org/pypi/odfpy\\" target=\\"_blank\\">OdfPy</a> ODFPY/0.9.6, <a href=\\"http://docutils.sourceforge.net/\\" target=\\"_blank\\">docutils</a> 0.10, <a href=\\"https://fedorahosted.org/suds/\\" target=\\"_blank\\">suds</a> 0.4, <a href=\\"http://pyyaml.org/\\" target=\\"_blank\\">PyYaml</a> 3.10, <a href=\\"http://appyframework.org/pod.html\\" target=\\"_blank\\">Appy</a> 0.8.3 (2013/02/22 15:29)</span><p>Server uptime : <b>mercredi 15 mai 2013 at 11:45:06.556847</b></p><p>Source timestamps:</p><ul><li>djangosite : <b>mercredi 15 mai 2013 at 11:02:05.242649</b></li><li>lino : <b>mercredi 15 mai 2013 at 10:57:20.598657</b></li><li>lino_welfare : <b>mercredi 15 mai 2013 at 09:04:22.174857</b></li><li>atelier : <b>mardi 14 mai 2013 at 21:14:51.339674</b></li><li>django : <b>mercredi 8 mai 2013 at 10:18:59.384324</b></li><li>north : <b>dimanche 5 mai 2013 at 22:52:00.438131</b></li></ul></div>", "xtype": "label" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2444;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.about.About.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id185 = new Ext.form.TextField({ "fieldLabel": "id", "name": "id", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20", "allowBlank": false });\n'
20130515 '    var iso2186 = new Ext.form.TextField({ "fieldLabel": "iso2", "name": "iso2", "maxLength": 2, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "anchor": "-20" });\n'
20130515 '    var name187 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr188 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel190 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id185, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": iso2186, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name187, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr188, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cv_KnowledgesByLanguage_grid202 = new Lino.cv.KnowledgesByLanguage.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.KnowledgesByLanguage.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var main_panel203 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel190, cv_KnowledgesByLanguage_grid202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel203;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cv_KnowledgesByLanguage_grid202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Languages.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 77,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix2017 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name2018 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id2019 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language2020 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel2021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix2017, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2018, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2019, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id2026 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity2027 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type2028 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel2029 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id2026, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity2027, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2028, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account12033 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account22034 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete2035 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel2036 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account12033, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account22034, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete2035, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel2040 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel2021, intro_box_2_panel2029, intro_box_3_panel2036 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country2041 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region2042 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel2043 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country2041, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region2042, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city2046 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code2047 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel2048 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city2046, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code2047, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix2051 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street2052 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no2053 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box2054 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel2055 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix2051, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street2052, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no2053, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box2054, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr22060 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel2061 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel2043, box3_2_panel2048, box3_3_panel2055, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr22060, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email2063 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url2064 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone2065 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm2066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel2067 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email2063, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url2064, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone2065, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm2066, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel2072 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel2061, box4_panel2067 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks2073 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid2074 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel2075 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks2073, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid2074 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel2077 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel2040, address_box_panel2072, bottom_box_panel2075 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid2078 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var CourseOffersByProvider_grid2126 = new Lino.courses.CourseOffersByProvider.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Offres de cours", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseOffersByProvider.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2127 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel2077, pcsw_NotesByCompany_grid2078, CourseOffersByProvider_grid2126 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2127;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region2042.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid2074.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid2078.on_master_changed();\n'
20130515 '      CourseOffersByProvider_grid2126.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2041.on('change',Lino.chooser_handler(region2042,'country'));\n"
20130515 "      country2041.on('change',Lino.chooser_handler(city2046,'country'));\n"
20130515 "      region2042.on('change',Lino.chooser_handler(city2046,'region'));\n"
20130515 '      Lino.courses.CourseProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username38 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id39 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var profile40 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var box1_1_panel41 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username38, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id39, "labelAlign": "top" }, { "flex": 63, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile40, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name45 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name46 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var partner47 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel48 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name45, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name46, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner47, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email52 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var language53 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_3_panel54 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email52, "labelAlign": "top" }, { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language53, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created57 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified58 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box1_4_panel59 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created57, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified58, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box1_panel62 = new Ext.Panel({ "flex": 66, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box1_1_panel41, box1_2_panel48, box1_3_panel54, box1_4_panel59 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel66 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel62 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks67 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var AuthoritiesGiven_grid70 = new Lino.users.AuthoritiesGiven.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.users.AuthoritiesGiven.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var general_2_panel71 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks67, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, AuthoritiesGiven_grid70 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel73 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel66, general_2_panel71 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var calendar74 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Calendrier par d\\u00e9faut</span>", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "listeners": { "render": Lino.quicktip_renderer("Calendrier par d\\u00e9faut","Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.") }, "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/calendar", "method": "GET" }) }) });\n'
20130515 '    var access_class75 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s par d\\u00e9faut</span>", "allowBlank": false, "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s par d\\u00e9faut","The default access class for your calendar events and tasks.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses, "name": "access_class" });\n'
20130515 '    var cal_left_1_panel76 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar74, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class75, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_SubscriptionsByUser_grid83 = new Lino.cal.SubscriptionsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.SubscriptionsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var cal_left_panel84 = new Ext.Panel({ "flex": 33, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ cal_left_1_panel76, cal_SubscriptionsByUser_grid83 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByUser_grid142 = new Lino.cal.TasksByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var cal_1_panel143 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_left_panel84, cal_TasksByUser_grid142 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var newcomer_quota144 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Quota nouvelles demandes","Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Quota nouvelles demandes</span>", "name": "newcomer_quota", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var coaching_type145 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Service</span>", "name": "coaching_type", "pageSize": 20, "emptyText": "Choisir Service...", "listeners": { "render": Lino.quicktip_renderer("Service","The default CoachingType used when creating Coachings.") }, "selectOnFocus": true, "hiddenName": "coaching_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/coaching_type", "method": "GET" }) }) });\n'
20130515 '    var coaching_supervisor146 = new Ext.form.Checkbox({ "boxLabel": "Notify me when a coach has been assigned", "listeners": { "render": Lino.quicktip_renderer("Notify me when a coach has been assigned","Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.") }, "hideLabel": true, "checked": false, "name": "coaching_supervisor", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var newcomers_CompetencesByUser_grid152 = new Lino.newcomers.CompetencesByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.newcomers.CompetencesByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var coaching_a_panel153 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ { "items": newcomer_quota144, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_type145, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_supervisor146, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, newcomers_CompetencesByUser_grid152 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 369, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_CoachingsByUser_grid164 = new Lino.pcsw.CoachingsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var coaching_1_panel165 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Accompagnement", "hideCheckBoxLabels": true, "items": [ coaching_a_panel153, pcsw_CoachingsByUser_grid164 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel166 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel73, cal_1_panel143, coaching_1_panel165 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel166;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      AuthoritiesGiven_grid70.on_master_changed();\n'
20130515 '      cal_SubscriptionsByUser_grid83.on_master_changed();\n'
20130515 '      cal_TasksByUser_grid142.on_master_changed();\n'
20130515 '      newcomers_CompetencesByUser_grid152.on_master_changed();\n'
20130515 '      pcsw_CoachingsByUser_grid164.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2440 = new Lino.HtmlBoxPanel({ "flex": 1, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "north", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var welcome_htmlbox2441 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "center", "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var main_panel2442 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2440, welcome_htmlbox2441 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2442;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2440.refresh();\n'
20130515 '      welcome_htmlbox2441.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 10,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var time372 = new Ext.form.DisplayField({ "fieldLabel": "time", "name": "time", "selectOnFocus": true, "anchor": "-20", "value": "<br>", "allowBlank": false });\n'
20130515 '    var user373 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/Changes/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var type374 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Change Type", "allowBlank": false, "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.ChangeTypes, "name": "type" });\n'
20130515 '    var master_disp375 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Signal\\u00e9tique", "anchor": "-20", "name": "master" });\n'
20130515 '    var object_disp376 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Object", "anchor": "-20", "name": "object" });\n'
20130515 '    var id377 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel378 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": time372, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user373, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type374, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": master_disp375, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": object_disp376, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id377, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var diff385 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Changes", "anchor": "-20 -10", "growMax": 2000, "name": "diff" });\n'
20130515 '    var main_panel386 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ main_1_panel378, { "items": diff385, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel386;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.changes.ChangesByMaster.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 79,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2084 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var title2085 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "title", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var content2086 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var provider2087 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "name": "provider" });\n'
20130515 '    var main_1_panel2088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2084, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2085, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content2086, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider2087, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 198, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2093 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "center", "title": "Description", "name": "description" });\n'
20130515 '    var CoursesByOffer_grid2124 = new Lino.courses.CoursesByOffer.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "south", "tools": [ Lino.show_in_own_window_button(Lino.courses.CoursesByOffer.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2125 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel2088, description2093, CoursesByOffer_grid2124 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2125;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2093.refresh();\n'
20130515 '      CoursesByOffer_grid2124.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseOffers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name998 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name999 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var gender1000 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var title1001 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var name_box_panel1002 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name998, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name999, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1000, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1001, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1007 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }) });\n'
20130515 '    var region1008 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }) });\n'
20130515 '    var city1009 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1010 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel1011 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1007, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1008, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1009, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1010, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr11016 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix1017 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1018 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1019 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1020 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel1021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1017, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1018, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1019, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21026 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel1027 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ name_box_panel1002, address_box_2_panel1011, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr11016, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel1021, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21026, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1030 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1031 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel1032 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1030, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1031, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1035 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1036 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1037 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1038 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax1039 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel1040 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1038, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1039, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel1043 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel1032, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1035, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1036, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1037, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel1040 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1047 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel1027, contact_box_panel1043 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var activity1048 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account11049 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21050 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1051 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_1_panel1052 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1048, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11049, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21050, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1051, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_client1057 = new Ext.form.Checkbox({ "boxLabel": "est un client (<a href=\\"javascript:Lino.show_mti_child(\'is_client\',Lino.pcsw.Clients.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est un client","Whether this Person is a Client.") }, "hideLabel": true, "name": "is_client", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var created1058 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1059 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_2_panel1060 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_client1057, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1058, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1059, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1064 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByPerson_grid1069 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var households_MembersByPerson_grid1076 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 36 });\n'
20130515 '    var bottom_box_3_panel1077 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1064, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 36 }, contacts_RolesByPerson_grid1069, households_MembersByPerson_grid1076 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel1079 = new Ext.Panel({ "flex": 58, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ bottom_box_1_panel1052, bottom_box_2_panel1060, bottom_box_3_panel1077 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var general_panel1080 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1047, bottom_box_panel1079 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1084 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1080 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1084;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1008.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByPerson_grid1069.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1076.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1007.on('change',Lino.chooser_handler(region1008,'country'));\n"
20130515 "      country1007.on('change',Lino.chooser_handler(city1009,'country'));\n"
20130515 "      region1008.on('change',Lino.chooser_handler(city1009,'region'));\n"
20130515 '      Lino.contacts.Persons.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name743 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language744 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel746 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language744, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email745, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type749 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var id750 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_3_panel751 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type749, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id750, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel754 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name743, "anchor": "-20", "labelAlign": "top" }, main_2_panel746, main_3_panel751 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel754;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username167 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var email168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_1_panel169 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username167, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email168, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name172 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var main_2_panel174 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name172, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name173, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var partner177 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var language178 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var profile179 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var main_4_panel180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language178, "labelAlign": "top" }, { "flex": 69, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel183 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ main_1_panel169, main_2_panel174, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner177, "anchor": "-20", "labelAlign": "top" }, main_4_panel180 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel183;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2407 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2408 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2409 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2407, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2408, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type2412 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var valid_until2413 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2414 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2412, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2413, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var description2417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var main_panel2418 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ main_1_panel2409, main_2_panel2414, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2417, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2418;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1547 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1548 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1549 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1550 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1551 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_1_panel1552 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1547, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1548, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1549, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1550, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1551, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var job1558 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var type1559 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1560 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1561 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1562 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel1563 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1558, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1559, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1560, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1561, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1562, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1569 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var duration1570 = new Lino.SimpleRemoteComboFieldElement({ "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "fieldLabel": "dur\\u00e9e (jours)", "name": "duration", "selectOnFocus": true, "anchor": "-20", "value": null });\n'
20130515 '    var applies_until1571 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1572 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var box1_3_panel1573 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1569, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": duration1570, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1571, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1572, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var regime1578 = new Lino.TwinCombo({ "fieldLabel": "R\\u00e9gime de travail", "name": "regime", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Regimes.detail)}, "emptyText": "Choisir R\\u00e9gime de travail...", "selectOnFocus": true, "hiddenName": "regimeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }) });\n'
20130515 '    var schedule1579 = new Lino.TwinCombo({ "fieldLabel": "Horaire", "name": "schedule", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Schedules.detail)}, "emptyText": "Choisir Horaire...", "selectOnFocus": true, "hiddenName": "scheduleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }) });\n'
20130515 '    var hourly_rate1580 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var refund_rate1581 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "tarif de remboursement", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }), "name": "refund_rate" });\n'
20130515 '    var box1_4_panel1582 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 207, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": regime1578, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": schedule1579, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1580, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refund_rate1581, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var reference_person1587 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "persone de r\\u00e9f\\u00e9rence", "anchor": "-20", "name": "reference_person" });\n'
20130515 '    var build_time1588 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var box1_5_panel1589 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": reference_person1587, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time1588, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1592 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1593 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1594 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1595 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var box1_6_panel1596 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1592, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1593, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1594, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1595, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var responsibilities1601 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "responsibilities", "title": "responsabilit\\u00e9s" });\n'
20130515 '    var box1_panel1602 = new Ext.Panel({ "flex": 70, "layout": "vbox", "items": [ box1_1_panel1552, box1_2_panel1563, box1_3_panel1573, box1_4_panel1582, box1_5_panel1589, box1_6_panel1596, responsibilities1601 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 0, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cal_EventsByController_grid1603 = new Lino.cal.EventsByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ] });\n'
20130515 '    var cal_TasksByController_grid1604 = new Lino.cal.TasksByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "master_panel": this });\n'
20130515 '    var right_panel1605 = new Lino.VBorderPanel({ "flex": 30, "border": false, "hideCheckBoxLabels": true, "items": [ cal_EventsByController_grid1603, cal_TasksByController_grid1604 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel1606 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1602, right_panel1605 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel1607 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel1606 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1607;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1561.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1601.refresh();\n'
20130515 '      cal_EventsByController_grid1603.on_master_changed();\n'
20130515 '      cal_TasksByController_grid1604.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1560.on('change',Lino.chooser_handler(contact_person1561,'company'));\n"
20130515 '      Lino.jobs.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1558.on("change",function(){this.save()},this);\n'
20130515 '    company1560.on("change",function(){this.save()},this);\n'
20130515 '    contact_person1561.on("change",function(){this.save()},this);\n'
20130515 '    contact_role1562.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name920 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl922 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel923 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name920, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr921, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl922, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type927 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var invite_team_members928 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color929 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var main_2_panel930 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type927, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members928, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color929, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 72, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel934 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel923, main_2_panel930 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel934;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2233 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2234 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2235 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2236 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2237 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2238 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2239 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2240 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2233, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2234, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2235, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2236, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2237, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2238, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2239, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var action2248 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2249 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2250 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2251 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2248, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2249, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2250, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2255 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2256 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2257 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2255, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2256, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2260 = new Ext.form.FieldSet({ "flex": 37, "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2251, p1_2_panel2257 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2261 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2262 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2263 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2264 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2261, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2262, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2263, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2268 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2269 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2270 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2271 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2268, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2269, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2270, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2275 = new Ext.form.FieldSet({ "flex": 62, "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2264, proof_2_panel2271 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2276 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2260, proof_panel2275 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var result_htmlbox2277 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "result", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "R\\u015bultat", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var request_panel2278 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2240, parameters_panel2276, result_htmlbox2277 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2286 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2278 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2286;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2255.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      result_htmlbox2277.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2234.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2158 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2159 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2160 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2161 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2162 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2163 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2164 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2165 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2159, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2160, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2161, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2162, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2163, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2164, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var p1_panel2175 = new Ext.form.FieldSet({ "flex": 25, "layout": "vbox", "title": "avec NISS", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ { "items": national_id2173, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "flex": 50, "html": "<br/>", "xtype": "label" } ], "hideCheckBoxLabels": true, "labelWidth": 45, "border": false, "labelAlign": "top" });\n'
20130515 '    var first_name2177 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2178 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2179 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2177, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2178, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2184 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2185 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2186 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2187 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2184, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2185, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2186, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2191 = new Ext.form.FieldSet({ "flex": 75, "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2180, p2_2_panel2187 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2192 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2175, p2_panel2191 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var IdentifyPersonResult_grid2202 = new Lino.cbss.IdentifyPersonResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.IdentifyPersonResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var request_panel2203 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2165, parameters_panel2192, IdentifyPersonResult_grid2202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2204 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2205 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2206 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2207 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2204, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2205, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2206, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2211 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2203, technical_panel2207 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2211;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      IdentifyPersonResult_grid2202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2159.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2386 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2387 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2388 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2386, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2387, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type2391 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var description2392 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var valid_until2393 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2394 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2391, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2392, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2393, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var modified2398 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var created2399 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var owner_disp2400 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_3_panel2401 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified2398, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created2399, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp2400, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid2405 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2406 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2388, main_2_panel2394, main_3_panel2401, cal_TasksByController_grid2405 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2406;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cal_TasksByController_grid2405.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var app_disp2425 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "app_label", "name": "app", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp2426 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "name", "name": "name", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp2427 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "docstring", "name": "docstring", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows2428 = new Ext.form.NumberField({ "disabled": true, "fieldLabel": "Rows", "anchor": "-20", "name": "rows" });\n'
20130515 '    var main_1_panel2429 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": app_disp2425, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_disp2426, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": docstring_disp2427, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": rows2428, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var about_FieldsByModel_grid2438 = new Lino.about.FieldsByModel.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.about.FieldsByModel.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2439 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2429, about_FieldsByModel_grid2438 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2439;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      about_FieldsByModel_grid2438.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.about.Models.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 66,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Name", "anchor": "-20", "name": "name" });\n'
20130515 '    var provider1976 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }) });\n'
20130515 '    var sector1977 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }) });\n'
20130515 '    var function1978 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel1979 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1975, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1976, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1977, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1978, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var selection_from1984 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de s\\u00e9lection", "anchor": "-20", "name": "selection_from" });\n'
20130515 '    var selection_until1985 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin de s\\u00e9lection", "anchor": "-20", "name": "selection_until" });\n'
20130515 '    var start_date1986 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_2_panel1987 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_from1984, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_until1985, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date1986, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1991 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var ExperiencesByOffer_grid2003 = new Lino.jobs.ExperiencesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var CandidaturesByOffer_grid2013 = new Lino.jobs.CandidaturesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel2014 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ ExperiencesByOffer_grid2003, CandidaturesByOffer_grid2013 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2015 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel1979, main_2_panel1987, { "items": remark1991, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 41 }, main_4_panel2014 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2015;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1978.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      ExperiencesByOffer_grid2003.on_master_changed();\n'
20130515 '      CandidaturesByOffer_grid2013.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1977.on('change',Lino.chooser_handler(function1978,'sector'));\n"
20130515 '      Lino.jobs.Offers.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Offers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 75,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date_submitted1338 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date d\\u00e9ntr\\u00e9e","When this request has been submitted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date d\\u00e9ntr\\u00e9e</span>", "name": "date_submitted", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var person1339 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Client</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "listeners": { "render": Lino.quicktip_renderer("Client","Le client qui d\\u00e9sire suivre un cours.") }, "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var content1340 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Contenu</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "listeners": { "render": Lino.quicktip_renderer("Contenu","Der gew\\u00fcnschte Kursinhalt.)") }, "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var offer1341 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "name": "offer", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/offer", "method": "GET" }) }) });\n'
20130515 '    var urgent1342 = new Ext.form.Checkbox({ "boxLabel": "cause professionnelle", "listeners": { "render": Lino.quicktip_renderer("cause professionnelle","Check this if the request is needed for job search.") }, "hideLabel": true, "checked": false, "name": "urgent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1343 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_submitted1338, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person1339, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content1340, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer1341, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": urgent1342, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var course1349 = new Lino.TwinCombo({ "fieldLabel": "Cours trouv\\u00e9", "name": "course", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.Courses.detail)}, "emptyText": "Choisir Cours...", "selectOnFocus": true, "hiddenName": "courseHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/course", "method": "GET" }) }) });\n'
20130515 '    var state1350 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "name": "state" });\n'
20130515 '    var date_ended1351 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var id1352 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel1353 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course1349, "labelAlign": "top" }, { "flex": 26, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state1350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1352, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1358 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var UploadsByController_htmlbox1359 = new Lino.HtmlBoxPanel({ "flex": 33, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel1360 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1358, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, UploadsByController_htmlbox1359 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1362 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1343, main_2_panel1353, main_3_panel1360 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1341.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '      UploadsByController_htmlbox1359.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1340.on('change',Lino.chooser_handler(offer1341,'content'));\n"
20130515 '      Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    offer1341.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2365 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var name2366 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2367 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2368 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2369 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2365, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2366, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2367, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2368, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 108, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2374 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "description" });\n'
20130515 '    var text2375 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "south", "title": "Texte mod\\u00e8le", "name": "text" });\n'
20130515 '    var main_panel2376 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ main_1_panel2369, { "flex": 5, "layout": "form", "xtype": "panel", "items": description2374, "region": "center", "labelAlign": "top", "split": true }, text2375 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2376;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text2375.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2287 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var action2288 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2289 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2290 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2291 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2288, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2289, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2290, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2295 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2296 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2297 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2295, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2296, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2300 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2291, p1_2_panel2297 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id2301 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2302 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2303 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2304 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2301, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2302, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2303, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2309 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2310 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2311 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2308, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2309, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2310, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2315 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2304, proof_2_panel2311 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2316 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2287, "anchor": "-20", "labelAlign": "top" }, p1_panel2300, proof_panel2315 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2316;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2295.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2287.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type850 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var name851 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr852 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl853 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var id854 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel855 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type850, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name851, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr852, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl853, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id854, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var url_template861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL template", "anchor": "-20", "name": "url_template" });\n'
20130515 '    var username862 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Username", "anchor": "-20", "name": "username" });\n'
20130515 '    var password863 = new Ext.form.TextField({ "fieldLabel": "Password", "name": "password", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "inputType": "password" });\n'
20130515 '    var main_2_panel864 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": url_template861, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username862, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": password863, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var readonly868 = new Ext.form.Checkbox({ "boxLabel": "read-only", "hideLabel": true, "checked": false, "name": "readonly", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var invite_team_members869 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color870 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var start_date871 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_3_panel872 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": readonly868, "labelAlign": "top" }, { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members869, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color870, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date871, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var build_method877 = new Lino.ChoicesFieldElement({ "fieldLabel": "M\\u00e9thode de construction", "name": "build_method", "selectOnFocus": true, "anchor": "-20", "store": [ [ "appyodt", "AppyOdtBuildMethod" ], [ "appypdf", "AppyPdfBuildMethod" ], [ "appyrtf", "AppyRtfBuildMethod" ], [ "latex", "LatexBuildMethod" ], [ "pisa", "PisaBuildMethod" ], [ "rtf", "RtfBuildMethod" ] ], "hiddenName": "build_methodHidden" });\n'
20130515 '    var template878 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "Mod\\u00e8le", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/template", "method": "GET" }) }), "name": "template" });\n'
20130515 '    var email_template879 = new Lino.SimpleRemoteComboFieldElement({ "listeners": { "render": Lino.quicktip_renderer("Email template","The name of the file to be used as template \\nwhen creating an email from a mailable of this type.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Email template</span>", "name": "email_template", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/email_template", "method": "GET" }) }) });\n'
20130515 '    var attach_to_email880 = new Ext.form.Checkbox({ "boxLabel": "Attach to email", "listeners": { "render": Lino.quicktip_renderer("Attach to email","Whether the printable file should be attached to the email\\nwhen creating an email from a mailable of this type.\\n") }, "hideLabel": true, "checked": false, "name": "attach_to_email", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_4_panel881 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_method877, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": template878, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email_template879, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": attach_to_email880, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var main_panel919 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel855, main_2_panel864, main_3_panel872, main_4_panel881 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel919;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      template878.setContextValue('build_method',record ? record.data['build_methodHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      build_method877.on('change',Lino.chooser_handler(template878,'build_method'));\n"
20130515 '      Lino.cal.PanelCalendars.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 41,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type935 = new Lino.TwinCombo({ "fieldLabel": "Type de m\\u00e9nage", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.households.Types.detail)}, "emptyText": "Choisir Type de m\\u00e9nage...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }) });\n'
20130515 '    var name936 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language937 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var id938 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var intro_box_1_panel939 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type935, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name936, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language937, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id938, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var country944 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }) });\n'
20130515 '    var region945 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel946 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country944, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region945, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city949 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code950 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel951 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city949, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code950, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix954 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street955 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no956 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box957 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel958 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix954, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street955, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no956, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box957, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2963 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var activity964 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1965 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2966 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var box3_5_panel967 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity964, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1965, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2966, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel971 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel946, box3_2_panel951, box3_3_panel958, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2963, "anchor": "-20", "labelAlign": "top" }, box3_5_panel967 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email973 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url974 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm976 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel977 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email973, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url974, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone975, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm976, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel982 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel971, box4_panel977 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks983 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var households_MembersByHousehold_grid990 = new Lino.households.MembersByHousehold.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByHousehold.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var bottom_box_panel991 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks983, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 49 }, households_MembersByHousehold_grid990 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel993 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_1_panel939, address_box_panel982, bottom_box_panel991 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel997 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel993 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel997;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region945.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      households_MembersByHousehold_grid990.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country944.on('change',Lino.chooser_handler(region945,'country'));\n"
20130515 "      country944.on('change',Lino.chooser_handler(city949,'country'));\n"
20130515 "      region945.on('change',Lino.chooser_handler(city949,'region'));\n"
20130515 '      Lino.households.Households.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.households.Households.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var calendar756 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var summary757 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var project758 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var general_1_panel759 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar756, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary757, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project758, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var start_date763 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time764 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel765 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date763, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time764, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date768 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time769 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel770 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date768, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time769, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var user773 = new Lino.TwinCombo({ "fieldLabel": "Responsible user", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to774 = new Lino.TwinCombo({ "fieldLabel": "Attribu\\u00e9 \\u00e0", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel775 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ start_panel765, end_panel770, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user773, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to774, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var place778 = new Lino.TwinCombo({ "fieldLabel": "Place", "name": "place", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Places.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "placeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/place", "method": "GET" }) }) });\n'
20130515 '    var priority779 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Priorit\\u00e9", "name": "priority", "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9...", "selectOnFocus": true, "hiddenName": "priorityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/priority", "method": "GET" }) }) });\n'
20130515 '    var access_class780 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s</span>", "name": "access_class", "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s","Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses });\n'
20130515 '    var transparent781 = new Ext.form.Checkbox({ "boxLabel": "non bloquant", "listeners": { "render": Lino.quicktip_renderer("non bloquant","Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.") }, "hideLabel": true, "checked": false, "name": "transparent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var general_3_panel782 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": place778, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": priority779, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class780, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": transparent781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var owner_disp787 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var workflow_buttons_disp788 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var general_4_panel789 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp787, "labelAlign": "top" }, { "flex": 75, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp788, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description792 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 33, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var GuestsByEvent_grid802 = new Lino.cal.GuestsByEvent.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.GuestsByEvent.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var general_5_panel803 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ description792, GuestsByEvent_grid802 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel804 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel759, general_2_panel775, general_3_panel782, general_4_panel789, general_5_panel803 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var id805 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var created806 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified807 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var more_1_panel808 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id805, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created806, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified807, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByController_grid812 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var postings_PostingsByController_grid813 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var more_2_panel814 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ outbox_MailsByController_grid812, postings_PostingsByController_grid813 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var more_panel815 = new Ext.Panel({ "layout": "vbox", "title": "Plus", "items": [ more_1_panel808, more_2_panel814 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel816 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel804, more_panel815 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel816;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description792.refresh();\n'
20130515 '      GuestsByEvent_grid802.on_master_changed();\n'
20130515 '      outbox_MailsByController_grid812.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid813.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(70), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.cal.GuestStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.MySettings\n'
20130515 'Lino.users.MySettings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/MySettings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  title : "Utilisateurs",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "username" }, { "name": "profile" }, \'profileHidden\', { "name": "first_name" }, { "name": "last_name" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "password" }, { "name": "email" }, { "name": "remarks" }, { "name": "language" }, \'languageHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "access_class" }, \'access_classHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "coaching_type" }, \'coaching_typeHidden\', { "type": "boolean", "name": "coaching_supervisor" }, { "type": "int", "name": "newcomer_quota" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 7,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 24,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var username2468 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 30 });\n'
20130515 '    var profile2469 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.UserProfiles });\n'
20130515 '    var first_name2470 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var last_name2471 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var id2472 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2473 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2474 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var password2475 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 128 });\n'
20130515 '    var email2476 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var remarks2477 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var language2478 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ] });\n'
20130515 '    var partner2479 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var access_class2480 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.AccessClasses });\n'
20130515 '    var calendar2481 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var coaching_type2482 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/coaching_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var coaching_supervisor2483 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var newcomer_quota2484 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Username", "editable": true, "tooltip": "\\n        Required. Must be unique. \\n        ", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "username", "editor": username2468 }, { "colIndex": 1, "sortable": true, "header": "User Profile", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(47), "dataIndex": "profile", "editor": profile2469 }, { "colIndex": 2, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2470 }, { "colIndex": 3, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2471 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2472, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Password", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "password", "hidden": true, "editor": password2475 }, { "colIndex": 8, "sortable": true, "header": "adresse e-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2476 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remarks2477, "dataIndex": "remarks" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2478 }, { "colIndex": 11, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2479, "dataIndex": "partner" }, { "colIndex": 12, "sortable": true, "header": "Classe d\'acc\\u00e8s par d\\u00e9faut", "editable": true, "tooltip": "The default access class for your calendar events and tasks.", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class2480 }, { "colIndex": 13, "sortable": true, "header": "Calendrier par d\\u00e9faut", "editable": true, "tooltip": "Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2481 }, { "colIndex": 14, "sortable": true, "header": "Service", "editable": true, "tooltip": "The default CoachingType used when creating Coachings.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "coaching_type", "editor": coaching_type2482 }, { "colIndex": 15, "sortable": false, "xtype": "checkcolumn", "header": "Notify me when a coach has been assigned", "editable": true, "tooltip": "Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "coaching_supervisor" }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n", "filter": { "type": "numeric" }, "header": "Quota nouvelles demandes", "dataIndex": "newcomer_quota", "width": Lino.chars2width(6), "editor": newcomer_quota2484 }) ];\n'
20130515 '    Lino.users.MySettings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Languages\n'
20130515 'Lino.countries.Languages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Languages",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Langues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "id" }, { "name": "iso2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 12,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2486 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2487 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2488 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2489 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "allowBlank": false, "maxLength": 3 });\n'
20130515 '    var iso22490 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "maxLength": 2 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2486 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2487 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2488 }, { "colIndex": 3, "sortable": true, "header": "id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "id", "editor": id2489 }, { "colIndex": 4, "sortable": true, "header": "iso2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso2", "editor": iso22490 } ];\n'
20130515 '    Lino.countries.Languages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insertPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Langues",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Languages.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detailPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Langues",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Languages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Countries\n'
20130515 'Lino.countries.Countries.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Countries",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pays",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "isocode" }, { "name": "short_code" }, { "name": "iso3" }, { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 11,\n'
20130515 '  ls_id_property : "isocode",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2492 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2493 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2494 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var isocode2495 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "allowBlank": false, "maxLength": 4 });\n'
20130515 '    var short_code2496 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var iso32497 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    var inscode2498 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2492 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2493 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2494 }, { "colIndex": 3, "sortable": true, "header": "ISO code", "editable": true, "tooltip": "        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "isocode", "editor": isocode2495 }, { "colIndex": 4, "sortable": true, "header": "Short code", "editable": true, "tooltip": "A short abbreviation for regional usage. Obsolete.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "short_code", "editor": short_code2496 }, { "colIndex": 5, "sortable": true, "header": "ISO-3 code", "editable": true, "tooltip": "The three-letter code for this country as defined by ISO 3166-1.", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso3", "editor": iso32497 }, { "colIndex": 6, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this country used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "inscode", "editor": inscode2498 } ];\n'
20130515 '    Lino.countries.Countries.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insertPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Pays",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Countries.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detailPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Pays",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Countries.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.PropChoices\n'
20130515 'Lino.properties.PropChoices.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/PropChoices",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "type" }, \'typeHidden\', { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2500 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var type2501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/properties/PropChoices/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type de propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value2502 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text2503 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr2504 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl2505 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2500, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Type de propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2501 }, { "colIndex": 2, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value2502 }, { "colIndex": 3, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text2503 }, { "colIndex": 4, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr2504 }, { "colIndex": 5, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl2505 } ];\n'
20130515 '    Lino.properties.PropChoices.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.PropChoices.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.PropChoices.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Partners\n'
20130515 'Lino.contacts.Partners.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Partners",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 29,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2507 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2508 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2509 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2510 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2511 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2512 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2514 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12515 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2517 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2518 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2519 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22520 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2521 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2522 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2523 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2524 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2525 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2526 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2527 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2528 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12529 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var id2531 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2512.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2512.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2513.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2511.on('change',Lino.chooser_handler(city2512,'country'));\n"
20130515 "      region2513.on('change',Lino.chooser_handler(city2512,'region'));\n"
20130515 "      country2511.on('change',Lino.chooser_handler(region2513,'country'));\n"
20130515 '      Lino.contacts.Partners.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2507 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2508 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2511, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2512 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2513 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2514 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12515 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2516 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2517 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2518 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2519 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22520 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2521 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2522 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2523 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2524 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2525 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2526, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2528 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12529 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22530 }, new Lino.NullNumberColumn({ "colIndex": 24, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2531, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Partners.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Partners.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Partners.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Companies\n'
20130515 'Lino.contacts.Companies.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Companies",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 20,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2533 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2534 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2535 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2536 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2538 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2539 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2540 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12541 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2542 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2544 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2545 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22546 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2547 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2548 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2550 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2551 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2552 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2553 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12555 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22556 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2557 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2560 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2561 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2538.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2538.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2539.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2537.on('change',Lino.chooser_handler(city2538,'country'));\n"
20130515 "      region2539.on('change',Lino.chooser_handler(city2538,'region'));\n"
20130515 "      country2537.on('change',Lino.chooser_handler(region2539,'country'));\n"
20130515 '      Lino.contacts.Companies.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2533 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2534 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2537, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2538 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2539 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2540 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12541 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2542 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2543 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2544 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2545 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22546 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2547 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2548 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2549 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2550 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2551 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2552, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2554 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12555 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22556 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2557 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2558 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2559 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2560 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2561, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Companies.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisations",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detailPanel = Ext.extend(Lino.contacts.Companies.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisations",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Companies.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByState\n'
20130515 'Lino.postings.PostingsByState.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByState",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2563 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2564 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2565 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2566 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2567 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2568 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2569 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2571 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2572 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2569.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2568.on('change',Lino.chooser_handler(owner_id2569,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByState.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2563, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2564 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2565, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2567, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2568 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2569 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2570, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2571 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByState.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByState.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByState.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByState.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByState",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsReady\n'
20130515 'Lino.postings.PostingsReady.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsReady",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux \\u00e0 imprimer",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2574 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2575 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2576 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2577 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2578 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2582 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2583 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2580.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2579.on('change',Lino.chooser_handler(owner_id2580,'owner_type'));\n"
20130515 '      Lino.postings.PostingsReady.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2574, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2575 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2576, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2578, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2579 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2580 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2581, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2582 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsReady.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsReady.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsReady.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsReady.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsReady",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsPrinted\n'
20130515 'Lino.postings.PostingsPrinted.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsPrinted",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux imprim\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2585 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2588 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2589 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2590 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2592 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2593 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2594 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2591.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2590.on('change',Lino.chooser_handler(owner_id2591,'owner_type'));\n"
20130515 '      Lino.postings.PostingsPrinted.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2585, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2586 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2587, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2589, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2590 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2591 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2592, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2593 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsPrinted.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsPrinted.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsPrinted.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsPrinted.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsPrinted",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsSent\n'
20130515 'Lino.postings.PostingsSent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsSent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux envoy\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2596 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2597 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2599 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2600 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2603 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2604 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2605 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2602.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2601.on('change',Lino.chooser_handler(owner_id2602,'owner_type'));\n"
20130515 '      Lino.postings.PostingsSent.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2596, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2597 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2598, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2600, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2601 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2602 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2603, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2604 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsSent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsSent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsSent.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsSent.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsSent",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEvents\n'
20130515 'Lino.cal.MyEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "calendar" }, \'calendarHidden\', { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2607 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2608 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var calendar2609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var project2610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2611 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2612 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2613 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2616 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2617 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2618 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2619 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2620 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2621 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class2623 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2624 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2625 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2626 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2629 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2631 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2614.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2621.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2613.on('change',Lino.chooser_handler(owner_id2614,'owner_type'));\n"
20130515 '      Lino.cal.MyEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2607, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2608 }, { "colIndex": 2, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2609 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2610, "dataIndex": "project" }, { "colIndex": 4, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2611 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2612, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2613 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2614 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2615 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2619 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2620 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2621, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2622 }, { "colIndex": 16, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2623 }, new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2624 }), new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 19, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 20, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2627 }, { "colIndex": 21, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2628 }, { "colIndex": 22, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2629 }, { "colIndex": 23, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2630 }, { "width": Lino.chars2width(11), "colIndex": 24, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyUnclearEvents\n'
20130515 'Lino.cal.MyUnclearEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyUnclearEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2633 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2634 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2635 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2636 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2637 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2638 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2641 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2642 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2643 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2644 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2645 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2646 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2647 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2648 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2650 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2651 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2652 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2653 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2656 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2658 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2640.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2647.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2639.on('change',Lino.chooser_handler(owner_id2640,'owner_type'));\n"
20130515 '      Lino.cal.MyUnclearEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2633, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2634 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2635, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2636 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2638, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2639 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2640 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2641 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2645 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2646 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2647, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2648 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2649 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2650 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2651 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2654 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2655 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2656 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2657 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyUnclearEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyUnclearEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsAssignedToMe\n'
20130515 'Lino.cal.EventsAssignedToMe.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsAssignedToMe",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2661 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2663 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2669 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2670 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2671 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2674 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2675 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2676 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2677 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2678 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2679 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2680 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2681 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2683 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2684 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2685 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2674.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2666.on('change',Lino.chooser_handler(owner_id2667,'owner_type'));\n"
20130515 '      Lino.cal.EventsAssignedToMe.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2660, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2661 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2662, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2663 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2666 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2667 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2668 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2672 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2673 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2674, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2675 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2676 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2677 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2678 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2681 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2682 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2683 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2684 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsAssignedToMe.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEventsToday\n'
20130515 'Lino.cal.MyEventsToday.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEventsToday",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous aujourd\'hui",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "build_time" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_time2687 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary2688 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2689 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2690 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2692 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2694 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project2696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var build_time2697 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_date2698 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date2699 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2700 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2701 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2703 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2704 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2705 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2706 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2707 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2708 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2712 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2692.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2701.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2691.on('change',Lino.chooser_handler(owner_id2692,'owner_type'));\n"
20130515 '      Lino.cal.MyEventsToday.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(9), "colIndex": 0, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2687 }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2688 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2690, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2691 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2692 }, { "colIndex": 6, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2693 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2696, "dataIndex": "project" }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2698, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2699 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2700 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2701, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2702 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2703 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2704 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2705 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2708 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2709 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2710 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2711 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEventsToday.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous aujourd\'hui",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous aujourd\'hui",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEventsToday.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelCalendars\n'
20130515 'Lino.cal.PanelCalendars.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelCalendars",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Calendriers",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "babel_name" }, { "name": "description" }, { "type": "int", "name": "color" }, { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 35,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2714 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var babel_name_disp2715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var description2716 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var color2717 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var is_hidden_disp2718 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2716.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2714, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "babel_name", "header": "babel_name", "editable": false }, { "colIndex": 2, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2716, "dataIndex": "description" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Couleur", "dataIndex": "color", "width": Lino.chars2width(6), "editor": color2717 }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "is_hidden", "header": "Invisible", "editable": false } ];\n'
20130515 '    Lino.cal.PanelCalendars.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insertPanel = Ext.extend(Lino.cal.PanelCalendars.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Calendriers",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detailPanel = Ext.extend(Lino.cal.PanelCalendars.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Calendriers",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelCalendars.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelEvents\n'
20130515 'Lino.cal.PanelEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "start_dt" }, { "name": "end_dt" }, { "name": "summary" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "place" }, \'placeHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "url" }, { "type": "boolean", "name": "all_day" }, { "name": "reminder" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2720 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var start_dt2721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_dt2722 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var summary2723 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var description2724 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var user2725 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var place2726 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var calendar2727 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var url_disp2728 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var all_day2729 = new Ext.form.Checkbox({ "disabled": true });\n'
20130515 '    var reminder_disp2730 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2724.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2720, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": false, "dataIndex": "start_dt", "header": "D\\u00e9but", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": false, "dataIndex": "end_dt", "header": "Fin", "editable": false }, { "width": Lino.chars2width(5), "colIndex": 3, "sortable": false, "dataIndex": "summary", "header": "R\\u00e9sum\\u00e9", "editable": false }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2724, "dataIndex": "description" }, { "colIndex": 5, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2725 }, { "colIndex": 6, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2726 }, { "colIndex": 7, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2727 }, { "width": Lino.chars2width(31), "colIndex": 8, "sortable": false, "dataIndex": "url", "header": "Link URL", "editable": false }, { "header": "journ\\u00e9e enti\\u00e8re", "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "width": Lino.chars2width(11), "editable": false, "dataIndex": "all_day" }, { "width": Lino.chars2width(31), "colIndex": 10, "sortable": false, "dataIndex": "reminder", "header": "Rappel", "editable": false } ];\n'
20130515 '    Lino.cal.PanelEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.PanelEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.Households\n'
20130515 'Lino.households.Households.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/Households",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 32,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2732 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2734 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2735 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2736 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2737 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2738 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2739 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12740 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2741 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2743 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2744 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2746 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2747 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2749 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2750 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2751 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2752 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12754 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2756 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2757 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de m\\u00e9nage..." });\n'
20130515 '    var id2758 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2737.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2737.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2738.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2736.on('change',Lino.chooser_handler(city2737,'country'));\n"
20130515 "      region2738.on('change',Lino.chooser_handler(city2737,'region'));\n"
20130515 "      country2736.on('change',Lino.chooser_handler(region2738,'country'));\n"
20130515 '      Lino.households.Households.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2732 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2733 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2736, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2737 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2738 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2739 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12740 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2741 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2742 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2743 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2744 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22745 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2746 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2747 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2748 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2749 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2750 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2751, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2753 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12754 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22755 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2756 }, { "colIndex": 25, "sortable": true, "header": "Type de m\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2757 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2758, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.Households.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.Households.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.Households.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Persons\n'
20130515 'Lino.contacts.Persons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Persons",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "address_column" }, { "name": "email" }, { "name": "phone" }, { "name": "gsm" }, { "type": "int", "name": "id" }, { "name": "language" }, \'languageHidden\', { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "url" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 39,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2760 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_column_disp2761 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2762 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2763 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2764 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2765 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var language2766 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var created2767 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2768 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2769 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2770 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2771 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2772 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2773 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12774 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2776 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2777 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2778 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22779 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var url2780 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2781 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2782 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2783 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12785 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22786 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2787 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2788 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2789 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2790 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2791 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2770.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2770.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2771.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2769.on('change',Lino.chooser_handler(city2770,'country'));\n"
20130515 "      region2771.on('change',Lino.chooser_handler(city2770,'region'));\n"
20130515 "      country2769.on('change',Lino.chooser_handler(region2771,'country'));\n"
20130515 '      Lino.contacts.Persons.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "colIndex": 2, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2762 }, { "colIndex": 3, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2763 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2764 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2765, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2766 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2769, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2770 }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2771 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2772 }, { "colIndex": 13, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2773 }, { "colIndex": 14, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12774 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2775 }, { "colIndex": 16, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2776 }, { "colIndex": 17, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2777 }, { "colIndex": 18, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2778 }, { "colIndex": 19, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22779 }, { "colIndex": 20, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2780 }, { "colIndex": 21, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2781 }, { "colIndex": 22, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2782, "dataIndex": "remarks" }, { "colIndex": 23, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 24, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2784 }, { "colIndex": 25, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12785 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22786 }, { "colIndex": 27, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2787 }, { "colIndex": 28, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2788 }, { "colIndex": 29, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2789 }, { "colIndex": 30, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2790 }, { "colIndex": 31, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2791 } ];\n'
20130515 '    Lino.contacts.Persons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insertPanel = Ext.extend(Lino.contacts.Persons.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Personnes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Persons.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detailPanel = Ext.extend(Lino.contacts.Persons.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Personnes",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Persons.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Persons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.contacts.Persons.ParamsPanel({});\n'
20130515 '  return new Lino.contacts.Persons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.Clients\n'
20130515 'Lino.pcsw.Clients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/Clients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "client_state" }, \'client_stateHidden\', { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2793 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var client_state2794 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var national_id2795 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2797 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2798 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2800 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2801 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12802 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2804 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state2794 }, { "colIndex": 2, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2795 }, { "colIndex": 3, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2796 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 5, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 6, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2799 }, { "colIndex": 7, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2800 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2801, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 9, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12802 }, { "colIndex": 10, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2803 }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2804 } ];\n'
20130515 '    Lino.pcsw.Clients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.Clients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.Clients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.Clients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.IntegClients\n'
20130515 'Lino.pcsw.IntegClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/IntegClients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2806 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var applies_from2807 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var applies_until2808 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var national_id2809 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2810 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2811 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2812 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2814 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2815 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2817 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2818 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat d\\u00e9bute", "dataIndex": "applies_from", "width": Lino.chars2width(9) }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat se termine", "dataIndex": "applies_until", "width": Lino.chars2width(9) }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2809 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2810 }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 6, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 7, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2813 }, { "colIndex": 8, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2814 }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2815, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12816 }, { "colIndex": 11, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2817 }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2818 } ];\n'
20130515 '    Lino.pcsw.IntegClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.IntegClients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/IntegClients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.IntegClients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.IntegClients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.IntegClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.IntegClients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.IntegClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.OverlappingContracts\n'
20130515 'Lino.pcsw.OverlappingContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/OverlappingContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contrats chevauchants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2820 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2821 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2822 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2823 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2825 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2826 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2827 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12828 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2829 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2830 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2831 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2832 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22833 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2834 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email2835 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url2836 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2839 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2840 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2841 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2842 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12843 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22844 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2845 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2846 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2847 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2848 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2849 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2824.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2824.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2825.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2823.on('change',Lino.chooser_handler(city2824,'country'));\n"
20130515 "      region2825.on('change',Lino.chooser_handler(city2824,'region'));\n"
20130515 "      country2823.on('change',Lino.chooser_handler(region2825,'country'));\n"
20130515 '      Lino.pcsw.OverlappingContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2820, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 3, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2823, "dataIndex": "country" }, { "colIndex": 4, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2824 }, { "colIndex": 5, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2825 }, { "colIndex": 6, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2826 }, { "colIndex": 7, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2827 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12828 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2829 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2830 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2831 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2832 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22833 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2834 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2835 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2836 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2837 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2838 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2839 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2840, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2842 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12843 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22844 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2845 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2846 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2847 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2848 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2849 } ];\n'
20130515 '    Lino.pcsw.OverlappingContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.OverlappingContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.OverlappingContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.Contracts\n'
20130515 'Lino.isip.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2851 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2852 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2853 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2854 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2855 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2856 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2857 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2858 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2859 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2860 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12861 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22862 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2863 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2864 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2865 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2866 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2867 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2868 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2869 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2870 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2871 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2872 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2873 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2874 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2875 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2859.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2870.refresh();\n'
20130515 '      goals2871.refresh();\n'
20130515 '      duties_asd2872.refresh();\n'
20130515 '      duties_dsbe2873.refresh();\n'
20130515 '      duties_company2874.refresh();\n'
20130515 '      duties_person2875.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2858.on('change',Lino.chooser_handler(contact_person2859,'company'));\n"
20130515 '      Lino.isip.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2851, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2852, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2853, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2854, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2855 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2856 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2858, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2859, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2860 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12861, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22862, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2863 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2864 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2865 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2866 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2867 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2868 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2869 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2870, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2871, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2872, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2873, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2874, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2875, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.MyContracts\n'
20130515 'Lino.isip.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2877 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2878 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2879 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2880 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2883 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2884 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2885 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2886 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12887 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22888 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2889 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2890 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2891 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2893 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2895 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2896 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2897 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2898 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2899 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2900 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2901 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2885.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2896.refresh();\n'
20130515 '      goals2897.refresh();\n'
20130515 '      duties_asd2898.refresh();\n'
20130515 '      duties_dsbe2899.refresh();\n'
20130515 '      duties_company2900.refresh();\n'
20130515 '      duties_person2901.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2884.on('change',Lino.chooser_handler(contact_person2885,'company'));\n"
20130515 '      Lino.isip.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2877, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2878, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2879, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2880, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2881 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2882 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2884, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2885, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2886 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12887, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22888, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2889 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2890 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2891 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2892 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2893 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2894 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2895 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2896, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2897, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2898, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2899, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2900, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2901, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobProviders\n'
20130515 'Lino.jobs.JobProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Employants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 72,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2903 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2904 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2906 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2907 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2908 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2909 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2910 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12911 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2912 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2913 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2914 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2915 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22916 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2917 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2918 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2919 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2920 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2922 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2923 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12925 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22926 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2927 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2928 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2931 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2908.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2908.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2909.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2907.on('change',Lino.chooser_handler(city2908,'country'));\n"
20130515 "      region2909.on('change',Lino.chooser_handler(city2908,'region'));\n"
20130515 "      country2907.on('change',Lino.chooser_handler(region2909,'country'));\n"
20130515 '      Lino.jobs.JobProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2903 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2904 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2907, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2908 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2909 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2910 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12911 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2912 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2913 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2914 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2915 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22916 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2917 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2918 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2919 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2920 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2921 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2922, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2924 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12925 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22926 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2927 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2928 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2929 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2930 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2931, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Employants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detailPanel = Ext.extend(Lino.jobs.JobProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Employants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Contracts\n'
20130515 'Lino.jobs.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2933 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job2934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from2935 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2936 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user2937 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2938 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time2939 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2940 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2941 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2942 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12943 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client2945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language2946 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2948 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2950 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2951 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2952 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration2953 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2956 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2957 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2958 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2959 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2960 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2941.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2959.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2940.on('change',Lino.chooser_handler(contact_person2941,'company'));\n"
20130515 '      Lino.jobs.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2933, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2934, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2935, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2936, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2937 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2938 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2940, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2941, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2942 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12943, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22944, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2945, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2946 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2947 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2948 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2949 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2950 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2951 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2952 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2953 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2954 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2955 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2956 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2957 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2958 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2959, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2960, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.MyContracts\n'
20130515 'Lino.jobs.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from2962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2963 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var id2965 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user2966 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var build_time2967 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2968 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2969 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2970 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12971 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22972 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2973 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until2974 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided2975 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2976 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2977 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2978 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2979 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2980 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type2981 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var duration2982 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2983 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2985 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2986 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2987 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2988 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2989 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2969.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2988.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2968.on('change',Lino.chooser_handler(contact_person2969,'company'));\n"
20130515 '      Lino.jobs.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2962, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2963, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2964, "dataIndex": "job" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2965, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2966 }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2968, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2969, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2970 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12971, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22972, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2973 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2974, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2975 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2976 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2977 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2978 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2979 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2980 }, { "colIndex": 19, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2981 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2982 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2983 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2984 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2985 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2986 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2987 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2988, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2989, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Offers\n'
20130515 'Lino.jobs.Offers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Offers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres d\'emploi",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "type": "date", "name": "selection_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "selection_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 66,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2991 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2992 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var name2994 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var provider2995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var selection_from2996 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var selection_until2997 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_date2998 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark2999 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2993.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2992.on('change',Lino.chooser_handler(function2993,'sector'));\n"
20130515 '      Lino.jobs.Offers.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2991, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2992 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2993 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2994 }, { "colIndex": 4, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider2995, "dataIndex": "provider" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de s\\u00e9lection", "editor": selection_from2996, "width": Lino.chars2width(9), "dataIndex": "selection_from" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin de s\\u00e9lection", "editor": selection_until2997, "width": Lino.chars2width(9), "dataIndex": "selection_until" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2998, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2999, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Offers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insertPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres d\'emploi",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Offers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detailPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres d\'emploi",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Offers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Jobs\n'
20130515 'Lino.jobs.Jobs.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Jobs",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3001 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3002 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3003 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3004 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type3005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type3006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3007 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3008 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3009 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3010 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3004.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3003.on('change',Lino.chooser_handler(function3004,'sector'));\n"
20130515 '      Lino.jobs.Jobs.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3001 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3002, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3003 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3004 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3005 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3006 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3007 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3008 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3009, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3010, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.Jobs.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Jobs.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Jobs.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsSearch\n'
20130515 'Lino.jobs.ContractsSearch.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsSearch",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Recherche contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "client" }, \'clientHidden\', { "name": "client__city" }, \'client__cityHidden\', { "name": "client__national_id" }, { "name": "client__gender" }, \'client__genderHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 49,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3012 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3013 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3014 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var job3015 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var client3016 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var client__city3017 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var client__national_id3018 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var client__gender3019 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(1), "maxLength": 1 });\n'
20130515 '    var user3020 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3021 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3022 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3023 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3024 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3025 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13026 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23027 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3028 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3029 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3030 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3031 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3032 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3033 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3034 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3035 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3036 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3037 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3038 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3039 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3040 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3041 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3042 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3024.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3041.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3023.on('change',Lino.chooser_handler(contact_person3024,'company'));\n"
20130515 '      Lino.jobs.ContractsSearch.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3012, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3013, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3014, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3015, "dataIndex": "job" }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3016, "dataIndex": "client" }, { "filter": { "type": "string" }, "width": Lino.chars2width(21), "colIndex": 5, "sortable": true, "dataIndex": "client__city", "header": "Place", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "client__national_id", "header": "NISS", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(5), "colIndex": 7, "sortable": true, "dataIndex": "client__gender", "header": "Sexe", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3020 }, { "colIndex": 9, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3021 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3023, "dataIndex": "company" }, { "colIndex": 12, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3024, "dataIndex": "contact_person" }, { "colIndex": 13, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3025 }, { "colIndex": 14, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13026, "dataIndex": "signer1" }, { "colIndex": 15, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23027, "dataIndex": "signer2" }, { "colIndex": 16, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3028 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3029 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3030 }, { "colIndex": 19, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3031 }, { "colIndex": 20, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3032 }, { "colIndex": 21, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3033 }, { "colIndex": 22, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3034 }, { "colIndex": 23, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3035 }, { "colIndex": 24, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3036 }, { "colIndex": 25, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3037 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3038 }), { "colIndex": 27, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3039 }, { "colIndex": 28, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3040 }, { "colIndex": 29, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3041, "dataIndex": "responsibilities" }, { "colIndex": 30, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3042, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsSearch.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Recherche contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Recherche contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsSearch.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsSearch.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseProviders\n'
20130515 'Lino.courses.CourseProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisateurs de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 77,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3044 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3045 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3046 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3047 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3048 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3049 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3050 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3051 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13052 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3053 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3054 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3055 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3056 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23057 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3058 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3059 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3060 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3061 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3062 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3063 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3064 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23067 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3068 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id3069 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type3070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type3071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id3072 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3049.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3049.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3050.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3048.on('change',Lino.chooser_handler(city3049,'country'));\n"
20130515 "      region3050.on('change',Lino.chooser_handler(city3049,'region'));\n"
20130515 "      country3048.on('change',Lino.chooser_handler(region3050,'country'));\n"
20130515 '      Lino.courses.CourseProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3044 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3045 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3048, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3049 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3050 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3051 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13052 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3053 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3054 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3055 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3056 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23057 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3058 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3059 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3060 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3061 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3062 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3063, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3065 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13066 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23067 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3068 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id3069 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3070 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type3071 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3072, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisateurs de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detailPanel = Ext.extend(Lino.courses.CourseProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisateurs de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffers\n'
20130515 'Lino.courses.CourseOffers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3075 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content3076 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var provider3077 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3078 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3078.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3074, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3075 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3076 }, { "colIndex": 3, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3077, "dataIndex": "provider" }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3078, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.PendingCourseRequests\n'
20130515 'Lino.courses.PendingCourseRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/PendingCourseRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demandes de cours ouvertes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "person" }, \'personHidden\', { "type": "int", "name": "age" }, { "name": "address" }, { "name": "person__gsm" }, { "name": "person__phone" }, { "name": "person__coaches" }, { "name": "content" }, \'contentHidden\', { "type": "boolean", "name": "urgent" }, { "name": "remark" }, { "type": "int", "name": "a16" }, { "type": "int", "name": "a25" }, { "type": "int", "name": "a31" }, { "type": "int", "name": "a41" }, { "type": "int", "name": "a51" }, { "type": "int", "name": "a61" }, { "type": "int", "name": "ax" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 20,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 22,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted3080 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp3081 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person3082 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var age3083 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var address_disp3084 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person__gsm3085 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__phone3086 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__coaches_disp3087 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content3088 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var urgent3089 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var remark3090 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var a163091 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a253092 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a313093 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a413094 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a513095 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a613096 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var ax3097 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3080 }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3082, "dataIndex": "person" }, new Lino.NullNumberColumn({ "header": "\\u00e2ge", "colIndex": 3, "sortable": false, "dataIndex": "age", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "person__gsm", "header": "GSM", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "person__phone", "header": "T\\u00e9l\\u00e9phone", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 7, "sortable": false, "dataIndex": "person__coaches", "header": "Accompagnants", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3088 }, { "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 10, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3090, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "header": "16-24", "colIndex": 11, "sortable": false, "dataIndex": "a16", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "25-30", "colIndex": 12, "sortable": false, "dataIndex": "a25", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "31-40", "colIndex": 13, "sortable": false, "dataIndex": "a31", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "41-50", "colIndex": 14, "sortable": false, "dataIndex": "a41", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "51-60", "colIndex": 15, "sortable": false, "dataIndex": "a51", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": ">61", "colIndex": 16, "sortable": false, "dataIndex": "a61", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "age inconnu", "colIndex": 17, "sortable": false, "dataIndex": "ax", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.courses.PendingCourseRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demandes de cours ouvertes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demandes de cours ouvertes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.courses.PendingCourseRequests.ParamsPanel({});\n'
20130515 '  return new Lino.courses.PendingCourseRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonRequests\n'
20130515 'Lino.cbss.IdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 25,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3099 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3100 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3101 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3102 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3103 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3104 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3105 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3106 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3107 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3108 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3109 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3110 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3111 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3112 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3113 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3114 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3115 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3117 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3118 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3099, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3100 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3101, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3110 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3111 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3112 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3113 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3114 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3115 }, { "colIndex": 17, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3116 }, { "colIndex": 18, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3117 }, new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3118 }) ];\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequests\n'
20130515 'Lino.cbss.ManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3120 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3121 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3122 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3123 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3124 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3125 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3126 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3127 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3128 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3129 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3130 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3131 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3132 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3133 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3137 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3138 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3139 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3140 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3141 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3142 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3138.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3137.on('change',Lino.chooser_handler(purpose3138,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3120, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3121 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3122, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3131 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3132 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3133 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3134 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3135 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3136 }, { "colIndex": 17, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 18, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3138 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3139, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 20, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3140, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 21, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3141 }, { "colIndex": 22, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3142 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3144 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3145 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3146 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3147 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3148 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3149 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3150 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3151 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3152 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3153 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3144, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3145 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3146, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3147 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3148 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class sessions.SessionTable\n'
20130515 'Lino.sessions.SessionTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/sessions/SessionTable",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "sessions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "session_key" }, { "name": "session_data" }, { "name": "expire_date" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 4,\n'
20130515 '  ls_id_property : "session_key",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var session_key3155 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 40 });\n'
20130515 '    var session_data3156 = new Ext.form.TextArea({ "selectOnFocus": true, "allowBlank": false, "growMax": 2000 });\n'
20130515 '    var expire_date3157 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "cl\\u00e9 de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "session_key", "editor": session_key3155 }, { "colIndex": 1, "sortable": false, "header": "donn\\u00e9es de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": session_data3156, "dataIndex": "session_data" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "expire_date", "header": "date d\'expiration", "editable": true, "editor": expire_date3157 } ];\n'
20130515 '    Lino.sessions.SessionTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.sessions.SessionTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.sessions.SessionTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class ui.MyTextFieldTemplates\n'
20130515 'Lino.ui.MyTextFieldTemplates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/ui/MyTextFieldTemplates",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Text Field Templates",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "name" }, { "name": "description" }, { "name": "team" }, \'teamHidden\', { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 1,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3159 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var name3160 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var description3161 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var team3162 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/MyTextFieldTemplates/team", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Team..." });\n'
20130515 '    var text3163 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Texte mod\\u00e8le" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text3163.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3159, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3160 }, { "colIndex": 2, "sortable": false, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3161, "dataIndex": "description" }, { "colIndex": 3, "sortable": true, "header": "Team", "editable": true, "tooltip": "If not empty, then this template is reserved to members of this team.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "team", "editor": team3162 }, { "colIndex": 4, "sortable": false, "header": "text", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": text3163, "dataIndex": "text" } ];\n'
20130515 '    Lino.ui.MyTextFieldTemplates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insertPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Text Field Templates",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detailPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Text Field Templates",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.ui.MyTextFieldTemplates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesGiven\n'
20130515 'Lino.users.AuthoritiesGiven.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesGiven",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations accord\\u00e9es",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "authorized" }, \'authorizedHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var authorized68 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesGiven/authorized", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      authorized68.setContextValue('mk',bp['mk']);\n"
20130515 "      authorized68.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Utilisateur", "editable": true, "tooltip": "The user who gets authority to act in your name.", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "authorized", "editor": authorized68 } ];\n'
20130515 '    Lino.users.AuthoritiesGiven.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesGiven.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesGiven.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesTaken\n'
20130515 'Lino.users.AuthoritiesTaken.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesTaken",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3165 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesTaken/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3165 } ];\n'
20130515 '    Lino.users.AuthoritiesTaken.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesTaken.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesTaken.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCity\n'
20130515 'Lino.countries.CitiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Subdivisions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name244 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr245 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl246 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code248 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id249 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/country", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var inscode251 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type247.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country250.on('change',Lino.chooser_handler(type247,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name244 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr245 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl246 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type247 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code248 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id249, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country250, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode251 } ];\n'
20130515 '    Lino.countries.CitiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Subdivisions",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Subdivisions",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCountry\n'
20130515 'Lino.countries.CitiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Places",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "parent" }, \'parentHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name217 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr218 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type220 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code221 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id222 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var parent223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/parent", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var inscode224 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      type220.setContextValue('mk',bp['mk']);\n"
20130515 "      type220.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name217 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr218 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl219 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type220 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code221 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id222, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Part of", "editable": true, "tooltip": "The superordinate geographic place of which this place is a part.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "parent", "editor": parent223 }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode224 } ];\n'
20130515 '    Lino.countries.CitiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Places",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Places",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.ChoicesByType\n'
20130515 'Lino.properties.ChoicesByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/ChoicesByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3167 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text3168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr3169 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl3170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3171 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value3167 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text3168 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr3169 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl3170 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3171, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.properties.ChoicesByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.ChoicesByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.ChoicesByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCity\n'
20130515 'Lino.contacts.PartnersByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var street272 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no273 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box274 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr2275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name276 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id278 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created279 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified280 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var region282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code283 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr1284 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix285 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email286 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url287 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone288 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax290 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks291 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete292 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity293 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account1294 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account2295 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region282.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country281.on('change',Lino.chooser_handler(region282,'country'));\n"
20130515 '      Lino.contacts.PartnersByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street272 }, { "colIndex": 1, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no273 }, { "colIndex": 2, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box274 }, { "colIndex": 3, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr2275 }, { "colIndex": 4, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name276 }, { "colIndex": 5, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language277 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id278, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country281, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region282 }, { "colIndex": 11, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code283 }, { "colIndex": 12, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr1284 }, { "colIndex": 13, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix285 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email286 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url287 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone288 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm289 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax290 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks291, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity293 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account1294 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account2295 } ];\n'
20130515 '    Lino.contacts.PartnersByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCountry\n'
20130515 'Lino.contacts.PartnersByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3173 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3174 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3175 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3176 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language3177 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3178 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3179 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3180 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3181 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3182 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13183 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3184 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_box3185 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23186 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3187 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3188 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3190 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3191 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3192 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3193 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3194 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23196 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city3173.setContextValue('mk',bp['mk']);\n"
20130515 "      city3173.setContextValue('mt',bp['mt']);\n"
20130515 "      city3173.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      var bp = this.get_base_params();\n'
20130515 "      region3181.setContextValue('mk',bp['mk']);\n"
20130515 "      region3181.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      region3181.on('change',Lino.chooser_handler(city3173,'region'));\n"
20130515 '      Lino.contacts.PartnersByCountry.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3173 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3174 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3175 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3176 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3177 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3178, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3181 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3182 }, { "colIndex": 10, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13183 }, { "colIndex": 11, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3184 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3185 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23186 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3187 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3188 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3189 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3190 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3191 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3192, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3194 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13195 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23196 } ];\n'
20130515 '    Lino.contacts.PartnersByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByCompany\n'
20130515 'Lino.contacts.RolesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes de contact",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var type616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id617 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person615, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type616 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id617, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByPerson\n'
20130515 'Lino.contacts.RolesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contact pour",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, \'companyHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/company", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var type1066 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id1067 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1065, "dataIndex": "company" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1066 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1067, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.MyPostings\n'
20130515 'Lino.postings.MyPostings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/MyPostings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3198 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner3199 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state3200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3201 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3202 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3203 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3204 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3205 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var owner_disp3206 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3204.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3203.on('change',Lino.chooser_handler(owner_id3204,'owner_type'));\n"
20130515 '      Lino.postings.MyPostings.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3198, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3199, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3200 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3202, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3203 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3204 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3205, "dataIndex": "project" }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.MyPostings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.MyPostings.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.MyPostings.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.MyPostings.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/MyPostings",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByPartner\n'
20130515 'Lino.postings.PostingsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3208 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3209 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var state3210 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3211 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3212 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3213 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3214 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user3215 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project3216 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3214.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3213.on('change',Lino.chooser_handler(owner_id3214,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByPartner.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3208, "width": Lino.chars2width(9), "dataIndex": "date" }, { "width": Lino.chars2width(11), "colIndex": 1, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3210 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3212, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3213 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3214 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3215 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3216, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByPartner.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByPartner",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByProject\n'
20130515 'Lino.postings.PostingsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1692 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner1693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state1694 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp1695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1696 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user1699 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1700 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1698.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1697.on('change',Lino.chooser_handler(owner_id1698,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date1692, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner1693, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state1694 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1696, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1697 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1698 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1699 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByProject.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByProject",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientsByMail\n'
20130515 'Lino.outbox.RecipientsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/RecipientsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Recipients",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "address" }, { "name": "name" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 28,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner689 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/RecipientsByMail/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var address690 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var name691 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var type692 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.outbox.RecipientType });\n'
20130515 '    var id693 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner689, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "Addresse", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "address", "editor": address690 }, { "colIndex": 2, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "name", "editor": name691 }, { "colIndex": 3, "sortable": true, "header": "Recipient Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type692 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id693, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.outbox.RecipientsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MyOutbox\n'
20130515 'Lino.outbox.MyOutbox.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MyOutbox",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Mon courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3218 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox3219 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject3220 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3221 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3222 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3224 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date3225 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3226 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var body3227 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3219.refresh();\n'
20130515 "      owner_id3223.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body3227.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3222.on('change',Lino.chooser_handler(owner_id3223,'owner_type'));\n"
20130515 '      Lino.outbox.MyOutbox.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3220 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3221, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3222 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3223 }, { "colIndex": 6, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3224, "dataIndex": "project" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date3225 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3227, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MyOutbox.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mon courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mon courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MyOutbox.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByUser\n'
20130515 'Lino.outbox.MailsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "recipients" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3229 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3230 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox3231 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3231.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3230 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByProject\n'
20130515 'Lino.outbox.MailsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "subject" }, { "name": "recipients" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "body" }, { "name": "sent" }, { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1680 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var subject1681 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox1682 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var user1683 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id1684 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1685 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var body1687 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var sent1688 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var owner_disp1689 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox1682.refresh();\n'
20130515 "      owner_id1686.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body1687.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1685.on('change',Lino.chooser_handler(owner_id1686,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date1680 }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1681 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 3, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1683 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1684, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1685 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1686 }, { "colIndex": 7, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1687, "dataIndex": "body" }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.SentByPartner\n'
20130515 'Lino.outbox.SentByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/SentByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3233 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3234 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/SentByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3234 }, { "colIndex": 2, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3235 } ];\n'
20130515 '    Lino.outbox.SentByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.SentByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.AttachmentsByMail\n'
20130515 'Lino.outbox.AttachmentsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/AttachmentsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pi\\u00e8ces jointes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 29,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3237 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3238 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3239 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_id", "method": "GET" }) }) });\n'
20130515 '    var owner_disp3240 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3239.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3238.on('change',Lino.chooser_handler(owner_id3239,'owner_type'));\n"
20130515 '      Lino.outbox.AttachmentsByMail.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3237, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3238 }, { "colIndex": 2, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3239 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.AttachmentsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.AttachmentsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.AttachmentsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.SubscriptionsByUser\n'
20130515 'Lino.cal.SubscriptionsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/SubscriptionsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Abonnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "calendar" }, \'calendarHidden\', { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 37,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id79 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var calendar80 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/SubscriptionsByUser/calendar", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var is_hidden81 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id79, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Calendrier", "editable": true, "tooltip": "The calendar you want to subscribe to.\\nYou can subscribe to *non-private* calendars of *other* users.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar80 }, { "colIndex": 2, "sortable": false, "xtype": "checkcolumn", "header": "cach\\u00e9", "editable": true, "tooltip": "Activer cette case pour ne pas afficher ce calendrier en ouvrant le panneau.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_hidden" } ];\n'
20130515 '    Lino.cal.SubscriptionsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.SubscriptionsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.SubscriptionsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByProject\n'
20130515 'Lino.cal.EventsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "calendar" }, \'calendarHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1630 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1631 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var user1632 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1633 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1634 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var id1635 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1636 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1638 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1639 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time1640 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date1641 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time1642 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1643 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1644 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class1645 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1646 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1647 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent1648 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place1649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority1650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state1651 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to1652 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1653 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1637.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1643.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1636.on('change',Lino.chooser_handler(owner_id1637,'owner_type'));\n"
20130515 '      Lino.cal.EventsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1630, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1631 }, { "colIndex": 2, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1632 }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1633 }, { "colIndex": 4, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1634 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1635, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type1636 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id1637 }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date1641 }, { "colIndex": 12, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time1642 }, { "colIndex": 13, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description1643, "dataIndex": "description" }, { "colIndex": 14, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid1644 }, { "colIndex": 15, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class1645 }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence1646 }), new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 18, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 19, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place1649 }, { "colIndex": 20, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority1650 }, { "colIndex": 21, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state1651 }, { "colIndex": 22, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to1652 }, { "width": Lino.chars2width(11), "colIndex": 23, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByUser\n'
20130515 'Lino.cal.TasksByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date85 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary86 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp87 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id88 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type89 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id90 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created91 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified92 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project93 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time94 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description95 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid96 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar97 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class98 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence99 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type100 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date101 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time102 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent103 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state104 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp105 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id90.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description95.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type89.on('change',Lino.chooser_handler(owner_id90,'owner_type'));\n"
20130515 '      Lino.cal.TasksByUser.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date85, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary86 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id88, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type89 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id90 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project93, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time94 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description95, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid96 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar97 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class98 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence99 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date101, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time102 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent103 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state104 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasks\n'
20130515 'Lino.cal.MyTasks.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasks",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3242 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3243 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3244 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3245 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3246 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3248 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3249 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3251 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3252 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3253 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3254 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3255 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3256 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3257 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3258 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3259 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3260 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3261 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3262 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3247.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3252.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3246.on('change',Lino.chooser_handler(owner_id3247,'owner_type'));\n"
20130515 '      Lino.cal.MyTasks.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3242, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3243 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3245, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3246 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3247 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3250, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3251 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3252, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3253 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3254 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3255 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3256 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3258, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3259 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3260 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3261 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasks.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasks.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasksToDo\n'
20130515 'Lino.cal.MyTasksToDo.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasksToDo",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "To-do list",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3264 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3265 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3266 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3267 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3268 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3269 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3270 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3271 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3272 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3273 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3274 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3276 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3278 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3279 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3280 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3281 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3282 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3283 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3284 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3269.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3274.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3268.on('change',Lino.chooser_handler(owner_id3269,'owner_type'));\n"
20130515 '      Lino.cal.MyTasksToDo.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3264, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3265 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3267, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3268 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3269 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3272, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3273 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3274, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3275 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3276 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3277 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3278 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3280, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3281 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3282 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3283 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasksToDo.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau To-do list",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail To-do list",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByProject\n'
20130515 'Lino.cal.TasksByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1656 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1658 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1659 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1660 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1661 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1663 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_time1665 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1666 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1667 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class1669 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1670 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1671 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date1672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time1673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent1674 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state1675 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp1676 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1662.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1666.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1661.on('change',Lino.chooser_handler(owner_id1662,'owner_type'));\n"
20130515 '      Lino.cal.TasksByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1656, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1657 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1658 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1660, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1661 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1662 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1665 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description1666, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid1667 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1668 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class1669 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence1670 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date1672, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time1673 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent1674 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state1675 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByEvent\n'
20130515 'Lino.cal.GuestsByEvent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByEvent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner793 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role794 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp795 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event797 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id798 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time799 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner793, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role794 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark796 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event797 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id798, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state800 } ];\n'
20130515 '    Lino.cal.GuestsByEvent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByRole\n'
20130515 'Lino.cal.GuestsByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner3286 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role3287 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3288 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event3290 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id3291 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3292 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3293 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3286, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3287 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3289 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3290 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3291, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3293 } ];\n'
20130515 '    Lino.cal.GuestsByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByRole.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByPartner\n'
20130515 'Lino.cal.GuestsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "event" }, \'eventHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event3295 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var role3296 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3297 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3299 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3300 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3301 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3295 }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3296 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3298 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3299, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3301 } ];\n'
20130515 '    Lino.cal.GuestsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByPartner.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPresences\n'
20130515 'Lino.cal.MyPresences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPresences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes pr\\u00e9sences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3303 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3304 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3305 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3306 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3307 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3309 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3310 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3311 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3312 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3306 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3308 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3309, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3311 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3312 } ];\n'
20130515 '    Lino.cal.MyPresences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPresences.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPresences.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPendingInvitations\n'
20130515 'Lino.cal.MyPendingInvitations.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPendingInvitations",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes invitations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3314 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3315 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3316 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3317 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3318 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3319 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3320 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3321 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3322 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3317 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3319 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3320, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3322 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3323 } ];\n'
20130515 '    Lino.cal.MyPendingInvitations.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPendingInvitations.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPendingInvitations.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.MyUploads\n'
20130515 'Lino.uploads.MyUploads.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/MyUploads",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "owner" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "name": "type" }, \'typeHidden\', { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3325 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var description3326 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3327 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp3328 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var id3329 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3332 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3333 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3334 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var type3335 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var valid_until3336 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3331.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3330.on('change',Lino.chooser_handler(owner_id3331,'owner_type'));\n"
20130515 '      Lino.uploads.MyUploads.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3325 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3326 }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3327 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3329, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3330 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3331 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3335 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3336, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.MyUploads.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.MyUploads.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.MyUploads.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.HouseholdsByType\n'
20130515 'Lino.households.HouseholdsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/HouseholdsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 30,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 32,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3338 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3339 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3342 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3343 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3344 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3345 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13346 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3347 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3348 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3349 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3350 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23351 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3352 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3353 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3354 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3355 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3357 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3358 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3359 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13360 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23361 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3362 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3363 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3343.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3343.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3344.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3342.on('change',Lino.chooser_handler(city3343,'country'));\n"
20130515 "      region3344.on('change',Lino.chooser_handler(city3343,'region'));\n"
20130515 "      country3342.on('change',Lino.chooser_handler(region3344,'country'));\n"
20130515 '      Lino.households.HouseholdsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3338 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3339 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3342, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3343 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3344 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3345 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13346 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3347 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3348 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3349 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3350 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23351 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3352 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3353 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3354 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3355 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3356 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3357, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3359 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13360 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23361 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3362 }, new Lino.NullNumberColumn({ "colIndex": 25, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3363, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.HouseholdsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.HouseholdsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByHousehold\n'
20130515 'Lino.households.MembersByHousehold.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByHousehold",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var role985 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date986 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date987 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id988 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person984, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role985 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date986, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date987, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id988, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByHousehold.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByHousehold.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByHousehold.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByPerson\n'
20130515 'Lino.households.MembersByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membre de ",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "household" }, \'householdHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var household1070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var role1071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date1072 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1073 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id1074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household1070, "dataIndex": "household" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role1071 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date1072, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date1073, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1074, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByRole\n'
20130515 'Lino.households.MembersByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "household" }, \'householdHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person3365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var household3366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var start_date3367 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date3368 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id3369 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person3365, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household3366, "dataIndex": "household" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date3367, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date3368, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3369, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountsByGroup\n'
20130515 'Lino.accounts.AccountsByGroup.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/accounts/AccountsByGroup",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comptes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "ref" }, { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "default_amount" }, { "name": "periods" }, { "type": "boolean", "name": "required_for_household" }, { "type": "boolean", "name": "required_for_person" }, { "name": "group" }, \'groupHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 43,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var ref3371 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    var name3372 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr3373 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl3374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var default_amount3375 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var periods3376 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": true, "value": 1, "allowDecimals": false });\n'
20130515 '    var required_for_household3377 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var required_for_person3378 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3379 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/accounts/AccountsByGroup/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de comptes..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "ref", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "ref", "editor": ref3371 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3372 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr3373 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl3374 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "header": "Default amount", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "default_amount", "editor": default_amount3375 }), new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0/i", "editable": true, "tooltip": "For how many months the entered amount counts. \\nFor example 1 means a monthly amount, 12 a yearly amount.", "filter": { "type": "numeric" }, "header": "P\\u00e9riodes", "dataIndex": "periods", "width": Lino.chars2width(6), "editor": periods3376 }), { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour m\\u00e9nages", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_household" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour personnes", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_person" }, { "colIndex": 8, "sortable": true, "header": "Groupe de comptes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3379 } ];\n'
20130515 '    Lino.accounts.AccountsByGroup.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountsByGroup.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountsByGroup.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.accounts.AccountsByGroup.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.accounts.AccountsByGroup.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.MyNotes\n'
20130515 'Lino.notes.MyNotes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/MyNotes",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "project" }, \'projectHidden\', { "name": "body" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3381 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var project3385 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var body3386 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var id3387 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3388 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3389 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3390 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3391 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3392 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3393 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3386.refresh();\n'
20130515 "      owner_id3389.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3388.on('change',Lino.chooser_handler(owner_id3389,'owner_type'));\n"
20130515 '      Lino.notes.MyNotes.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3381, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3382 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3383 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3384 }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3385, "dataIndex": "project" }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3386, "dataIndex": "body" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3387, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3388 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3389 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3391 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3392, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.MyNotes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.MyNotes.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.MyNotes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.NotesByProject\n'
20130515 'Lino.notes.NotesByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/NotesByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3395 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3398 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body3399 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user3400 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3401 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3402 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3403 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3404 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3405 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3406 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3407 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3399.refresh();\n'
20130515 "      owner_id3403.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3402.on('change',Lino.chooser_handler(owner_id3403,'owner_type'));\n"
20130515 '      Lino.notes.NotesByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3395, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3396 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3397 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3398 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3399, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3400 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3401, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3402 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3403 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3405 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3406, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.NotesByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.NotesByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.NotesByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.LanguageKnowledgesByPerson\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/LanguageKnowledgesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var language1321 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/LanguageKnowledgesByPerson/language", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var native1322 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken1323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written1324 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level1325 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1321, "dataIndex": "language" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken1323 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written1324 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level1325 } ];\n'
20130515 '    Lino.cv.LanguageKnowledgesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.LanguageKnowledgesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.KnowledgesByLanguage\n'
20130515 'Lino.cv.KnowledgesByLanguage.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/KnowledgesByLanguage",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person196 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/KnowledgesByLanguage/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var native197 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken198 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written199 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person196, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken198 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written199 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level200 } ];\n'
20130515 '    Lino.cv.KnowledgesByLanguage.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.KnowledgesByLanguage.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.KnowledgesByLanguage.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.PropsByPerson\n'
20130515 'Lino.cv.PropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/PropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3411 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3412 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3413 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3409.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3410.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3413.on('change',Lino.chooser_handler(property3409,'group'));\n"
20130515 "      property3409.on('change',Lino.chooser_handler(value3410,'property'));\n"
20130515 '      Lino.cv.PropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3409 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3410 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3411 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3412, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3413 } ];\n'
20130515 '    Lino.cv.PropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.PropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.PropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ConfiguredPropsByPerson\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ConfiguredPropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3415 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3418 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3419 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3415.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3416.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3419.on('change',Lino.chooser_handler(property3415,'group'));\n"
20130515 "      property3415.on('change',Lino.chooser_handler(value3416,'property'));\n"
20130515 '      Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3415 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3416 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3417 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3418, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3419 } ];\n'
20130515 '    Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ConfiguredPropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SkillsByPerson\n'
20130515 'Lino.cv.SkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1367 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1368 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1365.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1366.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1369.on('change',Lino.chooser_handler(property1365,'group'));\n"
20130515 "      property1365.on('change',Lino.chooser_handler(value1366,'property'));\n"
20130515 '      Lino.cv.SkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1365 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1366 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1367 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1368, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1369 } ];\n'
20130515 '    Lino.cv.SkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SoftSkillsByPerson\n'
20130515 'Lino.cv.SoftSkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SoftSkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences sociales",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1372 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1373 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1375 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1376 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1372.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1373.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1376.on('change',Lino.chooser_handler(property1372,'group'));\n"
20130515 "      property1372.on('change',Lino.chooser_handler(value1373,'property'));\n"
20130515 '      Lino.cv.SoftSkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1372 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1373 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1374 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1375, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1376 } ];\n'
20130515 '    Lino.cv.SoftSkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SoftSkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SoftSkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ObstaclesByPerson\n'
20130515 'Lino.cv.ObstaclesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ObstaclesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Obstacles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1385 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1386 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1382.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1383.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1386.on('change',Lino.chooser_handler(property1382,'group'));\n"
20130515 "      property1382.on('change',Lino.chooser_handler(value1383,'property'));\n"
20130515 '      Lino.cv.ObstaclesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1382 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1383 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1384 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1385, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1386 } ];\n'
20130515 '    Lino.cv.ObstaclesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ObstaclesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ObstaclesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ClientsByNationality\n'
20130515 'Lino.pcsw.ClientsByNationality.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ClientsByNationality",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "country" }, \'countryHidden\', { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "broker" }, \'brokerHidden\', { "name": "faculty" }, \'facultyHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3421 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3422 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3423 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3424 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23425 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name3426 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var country3427 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var language3428 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3429 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3430 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3431 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3432 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3433 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13434 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3435 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3436 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3437 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3438 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3439 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3440 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3441 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3442 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3443 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13444 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23445 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3446 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3447 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3448 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3449 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3450 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23451 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3452 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3453 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3454 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3455 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3456 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3457 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3458 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3459 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3460 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3461 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var card_number3462 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3463 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3464 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3465 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3466 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3467 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3468 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3469 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3470 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3471 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3472 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3473 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3474 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3475 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3476 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3477 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3478 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3479 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3480 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3481 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3482 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3483 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3484 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3485 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3486 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3487 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3488 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    var broker3489 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var faculty3490 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/faculty", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3421.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3421.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3432.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3427.on('change',Lino.chooser_handler(city3421,'country'));\n"
20130515 "      region3432.on('change',Lino.chooser_handler(city3421,'region'));\n"
20130515 "      country3427.on('change',Lino.chooser_handler(region3432,'country'));\n"
20130515 '      Lino.pcsw.ClientsByNationality.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3421 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3422 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3423 }, { "colIndex": 3, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3424 }, { "colIndex": 4, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23425 }, { "colIndex": 5, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3426 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3427, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3428 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3429, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3432 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3433 }, { "colIndex": 13, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13434 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3435 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3436 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3437 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3438 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3439 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3440 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3441, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3443 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13444 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23445 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3446 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3447 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3448 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3449 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3450 }, { "colIndex": 30, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23451, "dataIndex": "remarks2" }, { "colIndex": 31, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3452 }, { "colIndex": 32, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 33, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 34, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3455 }, { "colIndex": 35, "sortable": true, "header": "Lieu de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3456 }, { "colIndex": 36, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3457, "dataIndex": "birth_country" }, { "colIndex": 37, "sortable": true, "header": "Etat civil'
20130515 '", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3458 }, { "colIndex": 38, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3459 }, { "colIndex": 39, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3460, "dataIndex": "health_insurance" }, { "colIndex": 40, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3461, "dataIndex": "pharmacy" }, { "colIndex": 41, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3462 }, { "colIndex": 42, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3463, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 43, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3464, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 44, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3465 }, { "colIndex": 45, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3466 }, { "colIndex": 46, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3467 }, { "colIndex": 47, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3468 }, { "colIndex": 48, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3469, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 49, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3470, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 50, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 51, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3473, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 53, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3474 }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 56, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 57, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 60, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3481, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 61, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3482 }, { "colIndex": 62, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3483, "dataIndex": "obstacles" }, { "colIndex": 63, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3484, "dataIndex": "skills" }, { "colIndex": 64, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3485 }, { "colIndex": 65, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3486 }, { "colIndex": 66, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3487 }, { "colIndex": 67, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3488 }, { "colIndex": 68, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3489 }, { "colIndex": 69, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3490 } ];\n'
20130515 '    Lino.pcsw.ClientsByNationality.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.ClientsByNationality.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ExclusionsByPerson\n'
20130515 'Lino.pcsw.ExclusionsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ExclusionsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "exclusions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "excluded_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "excluded_until", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 46,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var excluded_from1233 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var excluded_until1234 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type1235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ExclusionsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Exclusion Type..." });\n'
20130515 '    var remark1236 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "de", "editor": excluded_from1233, "width": Lino.chars2width(9), "dataIndex": "excluded_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": excluded_until1234, "width": Lino.chars2width(9), "dataIndex": "excluded_until" }, { "colIndex": 2, "sortable": true, "header": "Raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1235 }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1236 } ];\n'
20130515 '    Lino.pcsw.ExclusionsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ExclusionsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ExclusionsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ContactsByClient\n'
20130515 'Lino.pcsw.ContactsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ContactsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Contacts",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 54,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1279 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var company1280 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1283 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1284 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      company1280.setContextValue('type',record ? record.data['typeHidden'] : undefined);\n"
20130515 "      contact_person1281.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      type1279.on('change',Lino.chooser_handler(company1280,'type'));\n"
20130515 "      company1280.on('change',Lino.chooser_handler(contact_person1281,'company'));\n"
20130515 '      Lino.pcsw.ContactsByClient.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1279 }, { "colIndex": 1, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1280, "dataIndex": "company" }, { "colIndex": 2, "sortable": true, "header": "Personne de contact", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1281, "dataIndex": "contact_person" }, { "colIndex": 3, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1282 }, { "colIndex": 4, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1283, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1284, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.ContactsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ContactsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ContactsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByClient\n'
20130515 'Lino.pcsw.CoachingsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "type": "boolean", "name": "primary" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1287 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1288 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1289 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var primary1290 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var type1291 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var id1292 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date1287, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date1288, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Accompagnant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "user", "editor": user1289 }, { "colIndex": 3, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, { "colIndex": 4, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "type", "editor": type1291 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1292, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByUser\n'
20130515 'Lino.pcsw.CoachingsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "type" }, \'typeHidden\', { "type": "boolean", "name": "primary" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date157 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date158 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client159 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type160 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var primary161 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var id162 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date157, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date158, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client159, "dataIndex": "client" }, { "colIndex": 3, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type160 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id162, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByPerson\n'
20130515 'Lino.pcsw.NotesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "name": "company" }, \'companyHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1615 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type1616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type1617 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject1618 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body1619 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user1620 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var company1621 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var id1622 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time1625 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language1626 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp1627 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body1619.refresh();\n'
20130515 "      owner_id1624.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1623.on('change',Lino.chooser_handler(owner_id1624,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date1615, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type1616 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1617 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1618 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1619, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1620 }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1621, "dataIndex": "company" }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1622, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1623 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1624 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1626 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByCompany\n'
20130515 'Lino.pcsw.NotesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "project" }, \'projectHidden\', { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date622 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var project623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var event_type624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type625 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject626 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body627 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id629 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time632 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language633 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp634 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body627.refresh();\n'
20130515 "      owner_id631.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type630.on('change',Lino.chooser_handler(owner_id631,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByCompany.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date622, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project623, "dataIndex": "project" }, { "colIndex": 2, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type624 }, { "colIndex": 3, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type625 }, { "colIndex": 4, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject626 }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body627, "dataIndex": "body" }, { "colIndex": 6, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user628 }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id629, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type630 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id631 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language633 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPerson\n'
20130515 'Lino.isip.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from1402 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1403 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1404 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1405 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var id1406 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1407 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1408 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11411 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21412 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1413 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1414 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1415 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1417 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1418 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1419 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages1420 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals1421 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd1422 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1423 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company1424 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1425 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1409.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages1420.refresh();\n'
20130515 '      goals1421.refresh();\n'
20130515 '      duties_asd1422.refresh();\n'
20130515 '      duties_dsbe1423.refresh();\n'
20130515 '      duties_company1424.refresh();\n'
20130515 '      duties_person1425.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1408.on('change',Lino.chooser_handler(contact_person1409,'company'));\n"
20130515 '      Lino.isip.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1402, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1403, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1404 }, { "colIndex": 3, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1405 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1406, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1408, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1409, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1410 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11411, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21412, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1413 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1414 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1415 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1416 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1417 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1418 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1419 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages1420, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals1421, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd1422, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe1423, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company1424, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person1425, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPolicy\n'
20130515 'Lino.isip.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3492 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3493 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3494 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3495 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3496 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3497 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time3498 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3499 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3500 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13502 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23503 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3504 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3505 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3506 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3507 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3508 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3509 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3510 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3511 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3512 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3513 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3514 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3515 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3500.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3510.refresh();\n'
20130515 '      goals3511.refresh();\n'
20130515 '      duties_asd3512.refresh();\n'
20130515 '      duties_dsbe3513.refresh();\n'
20130515 '      duties_company3514.refresh();\n'
20130515 '      duties_person3515.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3499.on('change',Lino.chooser_handler(contact_person3500,'company'));\n"
20130515 '      Lino.isip.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3492, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3493, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3494, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3495, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3496 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3497 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3499, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3500, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3501 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13502, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23503, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3504 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3505 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3506 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3507 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3508 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3509 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3510, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3511, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3512, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3513, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3514, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3515, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByType\n'
20130515 'Lino.isip.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from3517 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3518 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3519 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3520 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3521 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3524 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13525 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3527 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until3528 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided3529 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3530 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3531 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3532 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3533 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3534 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3535 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3536 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3537 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3538 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3539 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3540 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3523.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3535.refresh();\n'
20130515 '      goals3536.refresh();\n'
20130515 '      duties_asd3537.refresh();\n'
20130515 '      duties_dsbe3538.refresh();\n'
20130515 '      duties_company3539.refresh();\n'
20130515 '      duties_person3540.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3522.on('change',Lino.chooser_handler(contact_person3523,'company'));\n"
20130515 '      Lino.isip.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3517, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3518, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3519 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3520, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3522, "dataIndex": "company" }, { "colIndex": 6, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3523, "dataIndex": "contact_person" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3524 }, { "colIndex": 8, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13525, "dataIndex": "signer1" }, { "colIndex": 9, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23526, "dataIndex": "signer2" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3527 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3528, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3529 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3530 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3531 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3532 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3533 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3534 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3535, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3536, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3537, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3538, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3539, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3540, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPerson\n'
20130515 'Lino.jobs.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job1506 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1507 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1508 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1509 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1510 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1511 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1512 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11516 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21517 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1518 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1519 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1520 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1521 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1524 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1525 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1527 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1528 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1529 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1531 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1532 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1514.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1531.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1513.on('change',Lino.chooser_handler(contact_person1514,'company'));\n"
20130515 '      Lino.jobs.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1506, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1507, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1508, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1509 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1510 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1511, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1513, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": contact_person1514, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "hidden": true, "editor": contact_role1515 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11516, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21517, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "hidden": true, "editor": language1518 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1519 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1520 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1521 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1522 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1523 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1524 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "hidden": true, "editor": duration1525 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "hidden": true, "editor": regime1526 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "hidden": true, "editor": schedule1527 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "hidden": true, "editor": hourly_rate1528 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1529 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "hidden": true, "editor": reference_person1530 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": responsibilities1531, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remark1532, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByProvider\n'
20130515 'Lino.jobs.ContractsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job1945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1946 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1948 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1950 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1951 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var contact_person1952 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1953 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1956 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1957 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1958 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1959 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1960 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1961 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1963 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1965 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1966 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1967 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1968 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1969 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1970 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      contact_person1952.setContextValue('mk',bp['mk']);\n"
20130515 "      contact_person1952.setContextValue('mt',bp['mt']);\n"
20130515 '      responsibilities1969.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1944, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1945, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1946, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1947, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1948 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1949 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1950, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1952, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1953 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11954, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21955, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1956 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1957 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1958 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1959 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1960 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1961 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1962 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1963 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1964 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1965 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1966 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1967 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1968 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1969, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1970, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPolicy\n'
20130515 'Lino.jobs.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3542 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3543 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3544 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3545 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3546 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3547 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3548 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3549 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3550 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3551 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13552 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23553 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3555 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3556 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3557 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3558 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3560 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3561 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3562 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3563 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3564 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3565 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3567 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3568 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3550.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3567.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3549.on('change',Lino.chooser_handler(contact_person3550,'company'));\n"
20130515 '      Lino.jobs.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3542, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3543, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3544, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3545, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3546 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3547 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3549, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3550, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3551 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13552, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23553, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3554, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3555 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3556 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3557 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3558 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3559 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3560 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3561 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3562 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3563 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3564 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3565 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3566 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3567, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3568, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByJob\n'
20130515 'Lino.jobs.ContractsByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1913 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var applies_from1914 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1915 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1916 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1917 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1918 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1919 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1920 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1921 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1922 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11923 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1925 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1926 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1927 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1928 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1931 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1932 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1933 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1935 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1936 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1937 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1938 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1939 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1921.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1938.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1920.on('change',Lino.chooser_handler(contact_person1921,'company'));\n"
20130515 '      Lino.jobs.ContractsByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1913, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1914, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1915, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1916 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1917 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1918, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1920, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1921, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1922 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11923, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21924, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1925 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1926 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1927 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1928 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1929 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1930 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1931 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1932 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1933 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1934 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1935 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1936 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1937 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1938, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1939, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByRegime\n'
20130515 'Lino.jobs.ContractsByRegime.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByRegime",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3571 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3572 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3573 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3574 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3575 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3576 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3577 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3578 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3582 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3583 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3584 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3585 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3588 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3589 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3590 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var schedule3591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3592 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3593 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3594 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3595 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3596 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3578.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3595.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3577.on('change',Lino.chooser_handler(contact_person3578,'company'));\n"
20130515 '      Lino.jobs.ContractsByRegime.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3570, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3571, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3572, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3573 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3574 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3575, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3577, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3578, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3579 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13580, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23581, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3582, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3583 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3584 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3585 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3586 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3587 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3588 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3589 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3590 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3591 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3592 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3593 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3594 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3595, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3596, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByRegime.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByRegime.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByRegime.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsBySchedule\n'
20130515 'Lino.jobs.ContractsBySchedule.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsBySchedule",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3599 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3600 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3603 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3604 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3605 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3606 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3607 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13608 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3611 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3612 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3613 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3617 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3618 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3619 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var hourly_rate3620 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3621 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3623 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3624 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3606.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3623.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3605.on('change',Lino.chooser_handler(contact_person3606,'company'));\n"
20130515 '      Lino.jobs.ContractsBySchedule.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3598, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3599, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3600, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3601 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3602 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3603, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3605, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3606, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3607 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13608, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23609, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3610, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3611 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3612 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3613 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3614 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3615 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3616 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3617 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3618 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3619 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3620 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3621 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3622 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3623, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3624, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsBySchedule.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsBySchedule.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCountry\n'
20130515 'Lino.jobs.StudiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "city" }, \'cityHidden\', { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id534 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var city535 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var person536 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content538 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started539 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped540 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success541 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language542 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks544 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city535.setContextValue('mk',bp['mk']);\n"
20130515 "      city535.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id534, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city535 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person536, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type537 }, { "colIndex": 4, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content538 }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started539, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped540, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 8, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language542, "dataIndex": "language" }, { "colIndex": 9, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school543 }, { "colIndex": 10, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks544, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.StudiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCity\n'
20130515 'Lino.jobs.StudiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "school" }, { "name": "type" }, \'typeHidden\', { "name": "person" }, \'personHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var school513 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var person515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var content516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started517 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped518 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success519 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language520 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var remarks521 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id522 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school513 }, { "colIndex": 1, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type514 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person515, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content516 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started517, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped518, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language520, "dataIndex": "language" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks521, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id522, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country523, "dataIndex": "country" } ];\n'
20130515 '    Lino.jobs.StudiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByPerson\n'
20130515 'Lino.jobs.StudiesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1297 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content1298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started1299 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1300 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var country1301 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city1302 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var success1303 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language1304 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school1305 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks1306 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1307 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1302.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1301.on('change',Lino.chooser_handler(city1302,'country'));\n"
20130515 '      Lino.jobs.StudiesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1297 }, { "colIndex": 1, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content1298 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1299, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1300, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1301, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city1302 }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1304, "dataIndex": "language" }, { "colIndex": 8, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school1305 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1306, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 10, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1307, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.StudiesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByFunction\n'
20130515 'Lino.jobs.ExperiencesByFunction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByFunction",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3626 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector3627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var person3628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company3629 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title3630 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country3631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started3632 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped3633 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks3634 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3626, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3627 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3628, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company3629 }, { "colIndex": 4, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3630 }, { "colIndex": 5, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3631, "dataIndex": "country" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started3632, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped3633, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3634, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByFunction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByFunction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByFunction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByPerson\n'
20130515 'Lino.jobs.ExperiencesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "country" }, \'countryHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1310 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var started1311 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1312 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var title1313 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector1314 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1315 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var country1316 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var remarks1317 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1315.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1314.on('change',Lino.chooser_handler(function1315,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1310 }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1311, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1312, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 3, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1313 }, { "colIndex": 4, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1314 }, { "colIndex": 5, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1315 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1316, "dataIndex": "country" }, { "colIndex": 7, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1317, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByPerson\n'
20130515 'Lino.jobs.CandidaturesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1393 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var job1394 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var state1395 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1398 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1399 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1397.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1396.on('change',Lino.chooser_handler(function1397,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1393 }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1394, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1395 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1396 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1397 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1398, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1399, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByJob\n'
20130515 'Lino.jobs.CandidaturesByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "person" }, \'personHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1902 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var person1903 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state1904 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1905 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1906 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1907 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1908 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1906.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1905.on('change',Lino.chooser_handler(function1906,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1902 }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1903, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1904 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1905 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1906 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1907, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1908, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByOffer\n'
20130515 'Lino.jobs.CandidaturesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2004 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person2007 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2008 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var date_submitted2009 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var remark2010 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var state2011 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2006.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2005.on('change',Lino.chooser_handler(function2006,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2004, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2005 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2006 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2007, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2008, "dataIndex": "job" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2009 }, { "colIndex": 6, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2010, "dataIndex": "remark" }, { "colIndex": 7, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state2011 } ];\n'
20130515 '    Lino.jobs.CandidaturesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByOffer\n'
20130515 'Lino.jobs.ExperiencesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id1992 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector1993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1994 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person1995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company1996 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title1997 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country1998 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started1999 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped2000 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks2001 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1994.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1993.on('change',Lino.chooser_handler(function1994,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1992, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1993 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1994 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1995, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1996 }, { "colIndex": 5, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1997 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1998, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1999, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped2000, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2001, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByProvider\n'
20130515 'Lino.jobs.JobsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name1870 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider1871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector1872 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1873 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type1874 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type1875 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate1876 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity1877 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark1878 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1879 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1873.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1872.on('change',Lino.chooser_handler(function1873,'sector'));\n"
20130515 '      Lino.jobs.JobsByProvider.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name1870 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider1871, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1872 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1873 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1874 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type1875 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1876 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity1877 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1878, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1879, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByType\n'
20130515 'Lino.jobs.JobsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3636 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3638 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var contract_type3640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3641 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3642 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3643 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3644 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3639.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3638.on('change',Lino.chooser_handler(function3639,'sector'));\n"
20130515 '      Lino.jobs.JobsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3636 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3637, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3638 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3639 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3640 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3641 }), new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3642 }), { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3643, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3644, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByType\n'
20130515 'Lino.jobs.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3646 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3647 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3648 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3649 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3651 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3652 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3653 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13656 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3658 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3659 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3661 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3663 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3664 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3665 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3666 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3669 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3670 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3671 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3672 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3673 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3654.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3672.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3653.on('change',Lino.chooser_handler(contact_person3654,'company'));\n"
20130515 '      Lino.jobs.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3646, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3647, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3648, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3649, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3650 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3651 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3653, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3654, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3655 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13656, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23657, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3658, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3659 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3660 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3661 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3662 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3663 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3664 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3665 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3666 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3667 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3668 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3669 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3670 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3671 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3672, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3673, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsOverviewByType\n'
20130515 'Lino.jobs.JobsOverviewByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsOverviewByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Situation contrats Art 60-7",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  disable_editing : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job_desc" }, { "name": "working" }, { "name": "probation" }, { "name": "candidates" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job_desc_disp3675 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var working_disp3676 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var probation_disp3677 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var candidates_disp3678 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "job_desc", "header": "Emploi", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "working", "header": "Travaille", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "probation", "header": "p\\u00e9riode d\'essai", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "candidates", "header": "Candidats", "editable": false } ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Situation contrats Art 60-7",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/jobs/JobsOverviewByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.JobsOverviewByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsOverviewByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverviewByType.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CoursesByOffer\n'
20130515 'Lino.courses.CoursesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CoursesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  title : "Cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 76,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2094 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var title2095 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remark2096 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2097 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2094, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2095 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark2096 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2097, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CoursesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insertPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detailPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CoursesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByProvider\n'
20130515 'Lino.courses.CourseOffersByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2079 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title2080 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content2081 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByProvider/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var description2082 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2082.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2079, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2080 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2081 }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2082, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByContent\n'
20130515 'Lino.courses.CourseOffersByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3680 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3681 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var provider3682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByContent/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3683 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3683.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3680, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3681 }, { "colIndex": 2, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3682, "dataIndex": "provider" }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3683, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByPerson\n'
20130515 'Lino.courses.CourseRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "content" }, \'contentHidden\', { "name": "offer" }, \'offerHidden\', { "name": "course" }, \'courseHidden\', { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1328 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var content1329 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var offer1330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var course1331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var urgent1332 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state1333 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var date_ended1334 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark1335 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1336 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1330.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1329.on('change',Lino.chooser_handler(offer1330,'content'));\n"
20130515 '      Lino.courses.CourseRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(11), "editor": date_submitted1328 }, { "colIndex": 1, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "content", "editor": content1329 }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer1330, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course1331 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state1333 }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended1334, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.text_renderer, "editor": remark1335, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1336, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByContent\n'
20130515 'Lino.courses.CourseRequestsByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "course" }, \'courseHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3685 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3687 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var date_submitted3688 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3689 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3690 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var course3691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var remark3692 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3693 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      offer3687.setContextValue('mk',bp['mk']);\n"
20130515 "      offer3687.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3685, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3686, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3687, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3688 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3690 }, { "colIndex": 6, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course3691 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3692, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3693, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.CourseRequestsByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.RequestsByCourse\n'
20130515 'Lino.courses.RequestsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/RequestsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "name": "content" }, \'contentHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3695 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var content3698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var date_submitted3699 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3700 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3701 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var remark3702 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3703 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer3697.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content3698.on('change',Lino.chooser_handler(offer3697,'content'));\n"
20130515 '      Lino.courses.RequestsByCourse.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3695, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3696, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3697, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3698 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3699 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3701 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3702, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3703, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.RequestsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.ParticipantsByCourse\n'
20130515 'Lino.courses.ParticipantsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/ParticipantsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2109 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/ParticipantsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2110 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended2111 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var workflow_buttons_disp2112 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2109, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2110, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended2111, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false } ];\n'
20130515 '    Lino.courses.ParticipantsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Participants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Participants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CandidatesByCourse\n'
20130515 'Lino.courses.CandidatesByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CandidatesByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "content" }, \'contentHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2115 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2116 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_submitted2117 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp2118 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content2119 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2115, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2116, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2117 }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 4, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2119 } ];\n'
20130515 '    Lino.courses.CandidatesByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Candidats",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Candidats",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.CompetencesByUser\n'
20130515 'Lino.newcomers.CompetencesByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/CompetencesByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno147 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty148 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/CompetencesByUser/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight149 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id150 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno147 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty148 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight149 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id150, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.CompetencesByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.CompetencesByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.CompetencesByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.CompetencesByUser.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.CompetencesByUser.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.MyCompetences\n'
20130515 'Lino.newcomers.MyCompetences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/MyCompetences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Mes Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno3705 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty3706 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/MyCompetences/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight3707 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id3708 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno3705 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3706 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight3707 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3708, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.MyCompetences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.MyCompetences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.MyCompetences.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.MyCompetences.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.MyCompetences.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.ClientsByFaculty\n'
20130515 'Lino.newcomers.ClientsByFaculty.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/ClientsByFaculty",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "broker" }, \'brokerHidden\', { "name": "address_column" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "nationality" }, \'nationalityHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 92,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp3710 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker3711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var address_column_disp3712 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3713 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3714 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3717 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3718 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3719 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3720 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr13721 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3722 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3723 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3724 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3725 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23726 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3727 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email3728 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3729 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3730 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3731 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3732 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3733 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3734 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3735 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13736 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23737 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3738 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3739 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3740 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3741 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23743 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3744 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3745 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3746 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3747 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3749 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3750 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3751 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3752 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var nationality3754 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/nationality", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var card_number3755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3756 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3757 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3758 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3759 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3760 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3761 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3762 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3763 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3764 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3765 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3766 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3767 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3768 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3769 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3770 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3771 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3772 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3773 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3774 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3776 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3777 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3778 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3779 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3780 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3781 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3717.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3717.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3718.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3716.on('change',Lino.chooser_handler(city3717,'country'));\n"
20130515 "      region3718.on('change',Lino.chooser_handler(city3717,'region'));\n"
20130515 "      country3716.on('change',Lino.chooser_handler(region3718,'country'));\n"
20130515 '      Lino.newcomers.ClientsByFaculty.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3711 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3713, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3716, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3717 }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3718 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3719 }, { "colIndex": 10, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3720 }, { "colIndex": 11, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13721 }, { "colIndex": 12, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3722 }, { "colIndex": 13, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3723 }, { "colIndex": 14, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3724 }, { "colIndex": 15, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3725 }, { "colIndex": 16, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23726 }, { "colIndex": 17, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3727 }, { "colIndex": 18, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3728 }, { "colIndex": 19, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3729 }, { "colIndex": 20, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3730 }, { "colIndex": 21, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3731 }, { "colIndex": 22, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3732 }, { "colIndex": 23, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3733, "dataIndex": "remarks" }, { "colIndex": 24, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 25, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3735 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13736 }, { "colIndex": 27, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23737 }, { "colIndex": 28, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3738 }, { "colIndex": 29, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3739 }, { "colIndex": 30, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3740 }, { "colIndex": 31, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3741 }, { "colIndex": 32, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3742 }, { "colIndex": 33, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23743, "dataIndex": "remarks2" }, { "colIndex": 34, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3744 }, { "colIndex": 35, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 36, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 37, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3747 }, { "colIndex": 38, "sortable": true, "header": "Lieu de naissance", "editable": true,'
20130515 ' "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3748 }, { "colIndex": 39, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3749, "dataIndex": "birth_country" }, { "colIndex": 40, "sortable": true, "header": "Etat civil", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3750 }, { "colIndex": 41, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3751 }, { "colIndex": 42, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3752, "dataIndex": "health_insurance" }, { "colIndex": 43, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3753, "dataIndex": "pharmacy" }, { "colIndex": 44, "sortable": true, "header": "Nationalit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'nationalityHidden\',\'Lino.countries.Countries.detail\'), "editor": nationality3754, "dataIndex": "nationality" }, { "colIndex": 45, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3755 }, { "colIndex": 46, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3756, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 47, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3757, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 48, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3758 }, { "colIndex": 49, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3759 }, { "colIndex": 50, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3760 }, { "colIndex": 51, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3761 }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3762, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 53, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3763, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 56, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3766, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 57, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3767 }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 60, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 61, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 62, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 63, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 64, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3774, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 65, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3775 }, { "colIndex": 66, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3776, "dataIndex": "obstacles" }, { "colIndex": 67, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3777, "dataIndex": "skills" }, { "colIndex": 68, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3778 }, { "colIndex": 69, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3779 }, { "colIndex": 70, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3780 }, { "colIndex": 71, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3781 } ];\n'
20130515 '    Lino.newcomers.ClientsByFaculty.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyIdentifyPersonRequests\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3783 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyIdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3785 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3786 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3787 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3788 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3789 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3790 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3791 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3792 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3793 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3794 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3795 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3797 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3798 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3801 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3783, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3784, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3793 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3794 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3795 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3796 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3797 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3798 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3799 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3800 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3801 }) ];\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyRequestsByPerson\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "type": "int", "name": "id" }, { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3804 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3805 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var id3806 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var environment3807 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3808 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3809 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3810 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3811 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3812 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3814 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3815 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3818 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3819 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3820 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3821 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3803 }, { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 2, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3806, "width": Lino.chars2width(6), "dataIndex": "id" }), { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3813 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3814 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3815 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3816 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3817 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3818 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3819 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3820 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3821 }) ];\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequestsByPerson\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3823 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3825 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3826 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3827 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3828 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3829 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3830 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3831 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3832 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3833 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3834 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3835 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3836 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3839 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3840 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3841 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3842 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3843 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3844 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3840.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3839.on('change',Lino.chooser_handler(purpose3840,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3823, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3824 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3833 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3834 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3835 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3836 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3837 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3838 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3840 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3841, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3842, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3843 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3844 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyManageAccessRequests\n'
20130515 'Lino.cbss.MyManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3846 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3847 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3848 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3849 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3850 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3851 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3852 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3853 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3854 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3855 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3856 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3857 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3858 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3859 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3860 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3862 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3863 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3864 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3865 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3866 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3867 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3863.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3862.on('change',Lino.chooser_handler(purpose3863,'sector'));\n"
20130515 '      Lino.cbss.MyManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3846, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3847, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3856 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3857 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3858 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3859 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3860 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3861 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3863 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3864, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3865, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3866 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3867 } ];\n'
20130515 '    Lino.cbss.MyManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequestsByPerson\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3869 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3870 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3872 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3873 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3874 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3875 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3876 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3877 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3878 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3869, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3870 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3871, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3872 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3873 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyRetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3880 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3883 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3884 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3885 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3886 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3887 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3888 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3889 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3880, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3881 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3882, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3883 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3884 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.UploadsByController\n'
20130515 'Lino.uploads.UploadsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/UploadsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "type" }, \'typeHidden\', { "name": "description" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3891 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var type3892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var description3893 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3895 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3896 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3897 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3898 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3899 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3900 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var valid_until3901 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3897.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3896.on('change',Lino.chooser_handler(owner_id3897,'owner_type'));\n"
20130515 '      Lino.uploads.UploadsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3891 }, { "colIndex": 1, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3892 }, { "colIndex": 2, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3893 }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3894 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3895, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3896 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3897 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3901, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.UploadsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.UploadsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByController\n'
20130515 'Lino.postings.PostingsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date708 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp711 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id712 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type713 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id714 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user715 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id714.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type713.on('change',Lino.chooser_handler(owner_id714,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date708, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner709, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state710 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id712, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type713 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id714 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user715 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project716, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByController.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByController",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByController\n'
20130515 'Lino.cal.TasksByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date719 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary720 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id722 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date719, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary720 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id722, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.TasksByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByController\n'
20130515 'Lino.outbox.MailsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Outgoing Mails",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent662 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox663 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject664 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project669 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date670 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var body671 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox663.refresh();\n'
20130515 "      owner_id667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body671.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type666.on('change',Lino.chooser_handler(owner_id667,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject664 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type666 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id667 }, { "colIndex": 6, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user668 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project669, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date670 }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body671, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MailsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Outgoing Mails",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Outgoing Mails",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class changes.ChangesByMaster\n'
20130515 'Lino.changes.ChangesByMaster.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/changes/ChangesByMaster",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Changes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "time" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "object" }, { "name": "diff" }, { "name": "object_type" }, \'object_typeHidden\', { "name": "object_id" }, \'object_idHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 10,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var time364 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    var user365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type366 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.lino.ChangeTypes });\n'
20130515 '    var object_disp367 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var diff368 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var object_type369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var object_id370 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_id", "method": "GET" }) }) });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      object_id370.setContextValue('object_type',record ? record.data['object_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      object_type369.on('change',Lino.chooser_handler(object_id370,'object_type'));\n"
20130515 '      Lino.changes.ChangesByMaster.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "time", "header": "time", "editable": true, "editor": time364 }, { "colIndex": 1, "sortable": true, "header": "Utilisateur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user365 }, { "colIndex": 2, "sortable": true, "header": "Change Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "type", "editor": type366 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "object", "header": "Object", "editable": false }, { "colIndex": 4, "sortable": false, "header": "Changes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": diff368, "dataIndex": "diff" }, { "colIndex": 5, "sortable": true, "header": "Object type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "object_type", "editor": object_type369 }, { "colIndex": 6, "sortable": true, "header": "object id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "object_id", "editor": object_id370 } ];\n'
20130515 '    Lino.changes.ChangesByMaster.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insertPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Changes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detailPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Changes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.changes.ChangesByMaster.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByController\n'
20130515 'Lino.cal.EventsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1477 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1478 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary1479 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1480 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1481 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1477, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1478 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1479 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1481, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.EventsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.Models\n'
20130515 'Lino.about.Models.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/Models",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Models",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "app" }, { "name": "name" }, { "name": "docstring" }, { "name": "rows" }, { "name": "detail_action" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var app_disp3903 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp3904 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp3905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows3906 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var detail_action_disp3907 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "app", "header": "app_label", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "docstring", "header": "docstring", "editable": false }, new Lino.NullNumberColumn({ "header": "Rows", "colIndex": 3, "sortable": false, "dataIndex": "rows", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "detail_action", "header": "detail_action", "editable": false } ];\n'
20130515 '    Lino.about.Models.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.detailPanel = Ext.extend(Lino.about.Models.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Models",\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/about/Models",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    Lino.about.Models.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.Models.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.about.Models.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.FieldsByModel\n'
20130515 'Lino.about.FieldsByModel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/FieldsByModel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Fields",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "verbose_name" }, { "name": "help_text_column" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_disp2434 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var verbose_name_disp2435 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var help_text_column_disp2436 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "verbose_name", "header": "verbose name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "help_text_column", "header": "help text", "editable": false } ];\n'
20130515 '    Lino.about.FieldsByModel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.FieldsByModel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.FieldsByModel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.SourceFiles\n'
20130515 'Lino.about.SourceFiles.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/SourceFiles",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Source files",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "module_name" }, { "type": "int", "name": "code_lines" }, { "type": "int", "name": "doc_lines" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var module_name3909 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var code_lines3910 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var doc_lines3911 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(5), "colIndex": 0, "sortable": false, "dataIndex": "module_name", "header": "module name", "editable": false }, new Lino.NullNumberColumn({ "header": "Code", "colIndex": 1, "sortable": false, "dataIndex": "code_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "doc", "colIndex": 2, "sortable": false, "dataIndex": "doc_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.about.SourceFiles.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.SourceFiles.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.SourceFiles.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.UsersWithClients\n'
20130515 'Lino.pcsw.UsersWithClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/UsersWithClients",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Agents et leurs clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "G1" }, { "name": "G2" }, { "name": "G4" }, { "name": "G4bis" }, { "name": "G9" }, { "name": "primary_clients" }, { "name": "active_clients" }, { "name": "row_total" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3913 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var G13914 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G23915 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G43916 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G4bis3917 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G93918 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var primary_clients3919 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var active_clients3920 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var row_total3921 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "user", "header": "Accompagnant", "editable": false }, new Lino.NullNumberColumn({ "header": "Bilan", "colIndex": 1, "sortable": false, "dataIndex": "G1", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Formation", "colIndex": 2, "sortable": false, "dataIndex": "G2", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Recherche", "colIndex": 3, "sortable": false, "dataIndex": "G4", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Travail", "colIndex": 4, "sortable": false, "dataIndex": "G4bis", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Standby", "colIndex": 5, "sortable": false, "dataIndex": "G9", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Dossiers complets", "colIndex": 6, "sortable": false, "dataIndex": "primary_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Clients actifs", "colIndex": 7, "sortable": false, "dataIndex": "active_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Total", "colIndex": 8, "sortable": false, "dataIndex": "row_total", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.pcsw.UsersWithClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.UsersWithClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.UsersWithClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class debts.SummaryTable\n'
20130515 'Lino.debts.SummaryTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/debts/SummaryTable",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "SummaryTable",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "desc" }, { "name": "amount" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 3,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var desc_disp3923 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var amount3924 = new Ext.form.NumberField({ "disabled": true, "decimalPrecision": 2, "decimalSeparator": "," });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "desc", "header": "Description", "editable": false }, new Lino.NullNumberColumn({ "width": Lino.chars2width(13), "colIndex": 1, "sortable": false, "dataIndex": "amount", "header": "Montant", "editable": false }) ];\n'
20130515 '    Lino.debts.SummaryTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.debts.SummaryTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.debts.SummaryTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonResult\n'
20130515 'Lino.cbss.IdentifyPersonResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/IdentifyPersonResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "national_id" }, { "name": "last_name" }, { "name": "first_name" }, { "name": "address" }, { "name": "birth_date" }, { "name": "birth_location" }, { "name": "civil_state" }, { "name": "gender" }, \'genderHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 10,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var national_id_disp2193 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var last_name_disp2194 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var first_name_disp2195 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_disp2196 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_date_disp2197 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_location_disp2198 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state_disp2199 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var gender2200 = new Lino.ChoicesFieldElement({ "disabled": true, "store": [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ] });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "national_id", "header": "NISS", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 1, "sortable": false, "dataIndex": "last_name", "header": "Nom de famille", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 2, "sortable": false, "dataIndex": "first_name", "header": "Pr\\u00e9nom", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 4, "sortable": false, "dataIndex": "birth_date", "header": "date de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "birth_location", "header": "Lieu de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 6, "sortable": false, "dataIndex": "civil_state", "header": "Etat civil", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 7, "sortable": false, "dataIndex": "gender", "header": "Sexe", "editable": false } ];\n'
20130515 '    Lino.cbss.IdentifyPersonResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsResult\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "group" }, { "name": "type" }, { "type": "date", "name": "since", "dateFormat": "d.m.Y" }, { "name": "info" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var group_disp2340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var type_disp2341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var since2342 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var info_disp2343 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(19), "colIndex": 0, "sortable": false, "dataIndex": "group", "header": "Groupe", "editable": false }, { "width": Lino.chars2width(6), "colIndex": 1, "sortable": false, "dataIndex": "type", "header": "TI", "editable": false }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Depuis", "dataIndex": "since", "width": Lino.chars2width(15) }, { "width": Lino.chars2width(51), "colIndex": 3, "sortable": false, "dataIndex": "info", "header": "Information", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.CalendarPanel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  return Lino.calendar_app.get_main_panel();\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestStates\n'
20130515 'Lino.courses.CourseRequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/courses/CourseRequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3926 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3927 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3928 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.courses.CourseRequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestStates.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingStates\n'
20130515 'Lino.postings.PostingStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/postings/PostingStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3930 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3931 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3932 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.postings.PostingStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.DurationUnits\n'
20130515 'Lino.cal.DurationUnits.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/DurationUnits",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DurationUnits",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3934 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3935 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3936 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.DurationUnits.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.DurationUnits.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.DurationUnits.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.Weekdays\n'
20130515 'Lino.cal.Weekdays.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/Weekdays",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Weekdays",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3938 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3939 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3940 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.Weekdays.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.Weekdays.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.Weekdays.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountTypes\n'
20130515 'Lino.accounts.AccountTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/accounts/AccountTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccountTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3942 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3943 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3944 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.accounts.AccountTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.CefLevel\n'
20130515 'Lino.cv.CefLevel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cv/CefLevel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CEF levels",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3946 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3947 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3948 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cv.CefLevel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.CefLevel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.CefLevel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.HowWell\n'
20130515 'Lino.properties.HowWell.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/HowWell",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "HowWell",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3950 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3951 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3952 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.HowWell.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.HowWell.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.HowWell.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidatureStates\n'
20130515 'Lino.jobs.CandidatureStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/jobs/CandidatureStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Candidature states",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3954 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3955 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3956 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.jobs.CandidatureStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidatureStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidatureStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientType\n'
20130515 'Lino.outbox.RecipientType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/outbox/RecipientType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RecipientType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3958 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3959 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3960 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.outbox.RecipientType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CityTypes\n'
20130515 'Lino.countries.CityTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/countries/CityTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CityTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3962 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3963 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3964 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.countries.CityTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CityTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CityTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.DoYouLike\n'
20130515 'Lino.properties.DoYouLike.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/DoYouLike",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DoYouLike",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3966 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3967 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3968 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.DoYouLike.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.DoYouLike.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.DoYouLike.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestLanguages\n'
20130515 'Lino.cbss.RequestLanguages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestLanguages",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RequestLanguages",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3970 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3971 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3972 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestLanguages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestLanguages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestLanguages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAction\n'
20130515 'Lino.cbss.ManageAction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/ManageAction",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ManageAction",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3974 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3975 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3976 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.ManageAction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.RefusalReasons\n'
20130515 'Lino.pcsw.RefusalReasons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/RefusalReasons",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RefusalReasons",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3978 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3979 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3980 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.RefusalReasons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.RefusalReasons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.RefusalReasons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestStates\n'
20130515 'Lino.cbss.RequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3982 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3983 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3984 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.ChangeTypes\n'
20130515 'Lino.lino.ChangeTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/ChangeTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Change Types",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3986 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3987 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3988 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.ChangeTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.ChangeTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.ChangeTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.AccessClasses\n'
20130515 'Lino.cal.AccessClasses.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/AccessClasses",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccessClasses",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3990 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3991 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3992 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.AccessClasses.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.AccessClasses.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.AccessClasses.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.QueryRegister\n'
20130515 'Lino.cbss.QueryRegister.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/QueryRegister",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "QueryRegister",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3994 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3995 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3996 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.QueryRegister.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.QueryRegister.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.QueryRegister.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.Genders\n'
20130515 'Lino.lino.Genders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/Genders",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Genders",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3998 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3999 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4000 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.Genders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Genders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
2013051No Lino in response
Retry userdocs/gen/screenshots/nl/index.jpg (3 attempts left)
5 '  return new Lino.lino.Genders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ResidenceType\n'
20130515 'Lino.pcsw.ResidenceType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/ResidenceType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ResidenceType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value4002 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name4003 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4004 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.ResidenceType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ResidenceType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ResidenceType.GridPanel(p);\n'
20130515 '});\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:41 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 731\r\nContent-Type: image/png\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '\x89PNG\r\n'
20130515 '\x1a\n'
20130515 '\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xffa\x00\x00\x00\x04gAMA\x00\x00\xaf\xc87\x05\x8a\xe9\x00\x00\x00\x19tEXtSoftware\x00Adobe ImageReadyq\xc9e<\x00\x00\x02mIDAT8\xcb\x8d\x93\xdfKSa\x18\xc7\xcf]\xf8w8o\xc4\xff H\x98\xd9*\xad\x81\x82\xcc\x0ba\x87\xe5\x8d\x81x\xa1\xc1\x06\x1b\xd8*\x18\xbaA\xb0\xb1\xd4K\xa1\x85\x16A\xb4@\x86\xac\xdc\xd9\x0fu"\xba\xd5\x86XK\xab9\xcb\xe5<\x9b\xdby\xb7\xb3}{\xcf[3\x073:\xf0\xb98\xef\xf3}>\xe7y^8\x1c\x00\xae\xceU\xf3;\xfd\xad\xa9\x88O;\x1d\xa9Q\xa0\xb5GJ\xda\xe9\xd5R\xaf-X\xbb|Op\x9e\xcf\xd6ix\xb9\xf1H(\x1f\x89%\xfc,H\xc8\xe6\x7fs$JH\xa4E\x98_\xed\xc3\xf0x\xa7x\xe5\xee\xebK\x17\n'
20130515 'zm\xa1\xe2\xc9)\xc1\xc6\x17\x99RA\xe43\xc1\xca\xae\x04\xa9R\xc5FZ\xc6\x837\xfbP\x1b\xfdO/\x14\xf4\xd8B%E\xb0I\x05\x9b_e\xac\xed\x95!|$H\x1d\x16\xa0Lvx|\x8an\xcbJ\xa5\xa9`rr\xb2\xa5\xc7\x16$\xb9\x02A\x8c~-vP\xfd3E\x19\xbe\x0f\xa7\xf0\xc6\xf3\xc8\xd1\xd5\xae\xdd\x0f\x10\xbd^\xdf\xd2 \xa0\xcd\x06J\x9e^\x16\x8e\xa9 qP\xc3{*\xd8\xa6\xa2\xe8^\x85\xad\xb1\xbcS\xa4\xb52\xae[\x05\x0c\x0e\x0e\xe6\xfb\xfb\xfb\rL@\x1b\xbbggg\x11\x8dFq{*\x8c,\x15$35$(\xb1oUl\xd1U\xc2t\x8a\x00]%K\x057\x1f\x86\x11\x08\x040>>\x0e\x8dF\xd3\xad\x08\xb6\xe9\x83L&\x03\xb3\xd9\xfc_(YA\x10000\xb0\xab\x08\x88,\xcbPX__\x87(\x8a\xff$\x14\n'
20130515 '\xa1\x9e\x1f\x1b\x1b\xabq\x16\x8b\x05\x84\x10\xc6\xe2\xe2"R\xa9\x14\x135C\xa9\xcd\xcf\xcf\x9f\xe5y\x9e\x07g2\x99\x90H$\x18n\xb7\x1b\xc9d\x12~\xbf\xbf)J\xc6\xe1p\x9c\xe5;;;\xc1MLL\xc0\xe7\xf31\xecv;\xe2\xf18\x96\x96\x96\x9a\x12\x8b\xc5`\xb5Z\xcf\xf2\xed\xed\xed\xe0\xe8\x1e\xf0z\xbd\x0c\x97\xcb\x05z\'\x0c\xa3\xd1\x88\xd1\xd1Q6f__\x1f\xba\xba\xba\xa0V\xab\xd9Y=\xdf\xd6\xd6\x06ndd\xa4\xea\xf1x\xd8\x81\xd2\xb8\xf0\xfc%\x96\xdf\x06\x9b\xf2l\xe1\x05:::Xvnn\x0e\xad\xad\xad\xe0\x0c\x06\xc3\xcc\xd0\xd0\xd0\xb6N\xa7\x03\xef\n'
20130515 '\xa3X"8:!\xf8A9\xccIHgK\xd8\xfb^\xc0\xa7\x8c\x88\xa2T\x06\xef\x0cC\xa5R)\xcd[\x14S\xc3\xbf\xc0\xbb"\xd5\xe1\'k\x18v\xff\xe5\x0ec\x95\xa1\xd4xg\xa4z\xbe\xe7\x17\xbb\x12\x04\xc8\xac\xfe[\x8d\x00\x00\x00\x00IEND\xaeB`\x82'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:42 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "data": { "coming_reminders": "<div class=\\"htmlText\\" style=\\"margin:5px\\"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 \\u00e0 09:40 [Draft]&nbsp;: Souper (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 116 })\\">AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 \\u00e0 10:20 [Communiqu\\u00e9]&nbsp;: Petit-d\\u00e9jeuner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 117 })\\">BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 \\u00e0 11:10 [Planif\\u00e9]&nbsp;: Rencontre (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 118 })\\">COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 \\u00e0 11:10 [Propos\\u00e9]&nbsp;: Interview (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 124 })\\">DOBBELSTEIN Doroth\\u00e9e (124)</a>)</li><li>Event #75 \\u00e0 13:30 [Draft]&nbsp;: Diner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 125 })\\">ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 \\u00e0 08:30 [Communiqu\\u00e9]&nbsp;: Souper (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 126 })\\">EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 \\u00e0 09:40 [Planif\\u00e9]&nbsp;: Petit-d\\u00e9jeuner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 127 })\\">EVERS Eberhart (127)</a>)</li></ul></div>", "welcome": "<div class=\\"htmlText\\" style=\\"margin:5px\\"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href=\\"javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ &quot;param_values&quot;: { &quot;unclear&quot;: true, &quot;dates_from&quot;: &quot;15.05.2013&quot;, &quot;stateHidden&quot;: null, &quot;assigned_toHidden&quot;: null, &quot;userHidden&quot;: 6, &quot;state&quot;: null, &quot;user&quot;: &quot;Alicia Allmanns&quot;, &quot;assigned_to&quot;: null, &quot;dates_to&quot;: &quot;16.05.2013&quot; }, &quot;base_params&quot;: {  } })\\">2 rendez-vous &#224; clarifier qui s\'approchent.</a></li></ul></div>", "missed_reminders": "<div class=\\"htmlText\\" style=\\"margin:5px\\"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 \\u00e0 08:30 [Propos\\u00e9]&nbsp;: Diner (<a href=\\"javascript:Lino.pcsw.Clients.detail.run(null,{ &quot;record_id&quot;: 112 })\\">SAFFRE Luc (112)</a>)</li></ul></div>", "quick_links": "<p>Quick Links: <a href=\\"javascript:Lino.pcsw.Clients.detail.run(\'ext-comp-1081\')\\" title=\\"Open a detail window on this record\\">D&#233;tail Clients</a> <a href=\\"javascript:Lino.cal.CalendarPanel.grid.run(\'ext-comp-1081\')\\">Calendrier</a> <a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(\'ext-comp-1081\')\\">Clients</a> <a href=\\"javascript:Lino.isip.MyContracts.grid.run(\'ext-comp-1081\')\\">PIISs</a> <a href=\\"javascript:Lino.jobs.MyContracts.grid.run(\'ext-comp-1081\')\\">Contrats de travail</a></p>", "UsersWithClients": "<table bgcolor=\\"#ffffff\\" cellspacing=\\"3px\\" width=\\"100%\\"><thead><tr><th align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"10\\"><a href=\\"/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D\\">Accompagnant</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D\\">Bilan</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D\\">Formation</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D\\">Recherche</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D\\">Travail</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D\\">Standby</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D\\">Dossiers complets</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D\\">Clients actifs</a></th><th align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" width=\\"5\\"><a href=\\"/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D\\">Total</a></th></tr></thead><tbody><tr><td align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><b>Alicia Allmanns</b></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" /><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\" /><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Recherche&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 3, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">2</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Travail&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 4, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">2</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Standby&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 5, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;cl'
20130515 'ient_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">1</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: true, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: true, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Alicia Allmanns&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: null, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 6, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">7</a></td></tr><tr><td align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><b>Hubert Huppertz</b></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Bilan&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 1, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Formation&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 2, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Recherche&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 3, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Travail&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 4, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Standby&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 5, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;p'
20130515 'aram_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: true, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">10</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: true, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">13</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;Hubert Huppertz&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: null, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 5, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">23</a></td></tr><tr><td align=\\"left\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><b>M&#233;lanie M&#233;lard</b></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Bilan&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 1, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Formation&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 2, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Recherche&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 3, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">3</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Travail&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 4, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">2</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.lino.Home.show.run(null,{ "record_id": -99998 })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen50" style="display: none; "></div><div id="ext-comp-1098" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-header x-unselectable" id="ext-gen46" style="-webkit-user-select: none; "><span class="x-window-header-text"></span></div><div class="x-window-bwrap" id="ext-gen47"><div class="x-window-body" id="ext-gen48" style="width: 1018px; height: 711px; "><div id="ext-comp-1081" class="x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen52"><form class="x-panel-body x-panel-body-noheader x-form" method="POST" id="ext-gen45" style="width: 1012px; height: 682px; "><div id="ext-comp-1093" class=" x-panel x-panel-noborder" style="width: 1012px; "><div class="x-panel-tl"><div class="x-panel-tr"><div class="x-panel-tc"></div></div></div><div class="x-panel-bwrap" id="ext-gen58"><div class="x-panel-ml"><div class="x-panel-mr"><div class="x-panel-mc" id="ext-gen61"><div class="x-panel-body x-panel-body-noborder x-box-layout-ct" id="ext-gen59" style="width: 996px; height: 669px; "><div class="x-box-inner" id="ext-gen63" style="width: 996px; height: 669px; "><div id="ext-comp-1083" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-panel-body-noheader" id="ext-gen65" style="overflow-x: hidden; width: 992px; height: 21px; "><div id="ext-comp-1082" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 21px; "><p>Quick Links: <a href="javascript:Lino.pcsw.Clients.detail.run('ext-comp-1081')" title="Open a detail window on this record">Détail Clients</a> <a href="javascript:Lino.cal.CalendarPanel.grid.run('ext-comp-1081')">Calendrier</a> <a href="javascript:Lino.pcsw.IntegClients.grid.run('ext-comp-1081')">Clients</a> <a href="javascript:Lino.isip.MyContracts.grid.run('ext-comp-1081')">PIISs</a> <a href="javascript:Lino.jobs.MyContracts.grid.run('ext-comp-1081')">Contrats de travail</a></p></div></div></div></div><div id="ext-comp-1085" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 21px; "><div class="x-panel-header x-unselectable" id="ext-gen67" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen70">Bienvenue</span></div><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body" id="ext-gen69" style="overflow-x: hidden; width: 992px; height: 43px; "><div id="ext-comp-1084" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 43px; "><div class="htmlText" style="margin:5px"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href='javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ "param_values": { "unclear": true, "dates_from": "15.05.2013", "stateHidden": null, "assigned_toHidden": null, "userHidden": 6, "state": null, "user": "Alicia Allmanns", "assigned_to": null, "dates_to": "16.05.2013" }, "base_params": {  } })'>2 rendez-vous à clarifier qui s'approchent.</a></li></ul></div></div></div></div></div><div id="ext-comp-1087" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 90px; "><div class="x-panel-header x-unselectable" id="ext-gen72" style="-webkit-user-select: none; "><div class="x-tool x-tool-up" id="ext-gen75">&nbsp;</div><span class="x-panel-header-text" id="ext-gen76">Agents et leurs clients</span></div><div class="x-panel-bwrap" id="ext-gen73"><div class="x-panel-body" id="ext-gen74" style="overflow-x: hidden; width: 992px; height: 165px; "><div id="ext-comp-1086" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 165px; "><table bgcolor="#ffffff" cellspacing="3px" width="100%"><thead><tr><th align="left" bgcolor="#eeeeee" valign="top" width="10"><a href="/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Accompagnant</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Bilan</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Formation</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Recherche</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Travail</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Standby</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Dossiers complets</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Clients actifs</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Total</a></th></tr></thead><tbody><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Alicia Allmanns</b></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>1</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>7</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Hubert Huppertz</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>10</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>23</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Mélanie Mélard</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>22</a></td></tr></tbody></table></div></div></div></div><div id="ext-comp-1092" class=" x-panel x-panel-noborder x-box-item" style="width: 996px; left: 0px; top: 281px; "><div class="x-panel-bwrap" id="ext-gen78"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-box-layout-ct" id="ext-gen79" style="width: 992px; height: 388px; "><div class="x-box-inner" id="ext-gen81" style="width: 992px; height: 388px; "><div id="ext-comp-1089" class="x-panel x-box-item" style="width: 496px; left: 0px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen82" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen85">Rappels à venir</span></div><div class="x-panel-bwrap" id="ext-gen83"><div class="x-panel-body" id="ext-gen84" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1088" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 à 09:40 [Draft]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 116 })'>AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 à 10:20 [Communiqué]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 117 })'>BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 à 11:10 [Planifé]&nbsp;: Rencontre (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 118 })'>COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 à 11:10 [Proposé]&nbsp;: Interview (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 124 })'>DOBBELSTEIN Dorothée (124)</a>)</li><li>Event #75 à 13:30 [Draft]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 125 })'>ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 à 08:30 [Communiqué]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 126 })'>EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 à 09:40 [Planifé]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 127 })'>EVERS Eberhart (127)</a>)</li></ul></div></div></div></div></div><div id="ext-comp-1091" class="x-panel x-box-item" style="width: 496px; left: 496px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen87" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen90">Rappels ratés</span></div><div class="x-panel-bwrap" id="ext-gen88"><div class="x-panel-body" id="ext-gen89" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1090" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 à 08:30 [Proposé]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 112 })'>SAFFRE Luc (112)</a>)</li></ul></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-panel-bl x-panel-nofooter" id="ext-gen60"><div class="x-panel-br"><div class="x-panel-bc"></div></div></div></div></div></form><div class="x-panel-bbar" id="ext-gen53" style="width: 1018px; "><div id="ext-comp-1097" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1012px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen56"><table id="ext-comp-1094" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen57" class=" x-btn-text x-tbar-print">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen49">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen92" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen93" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen94" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen95" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen96" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen97" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen98" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen99" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1098-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/nl/index.jpg (2 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.lino.Home.show.run(null,{ "record_id": -99998 })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen50" style="display: none; "></div><div id="ext-comp-1098" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-header x-unselectable" id="ext-gen46" style="-webkit-user-select: none; "><span class="x-window-header-text"></span></div><div class="x-window-bwrap" id="ext-gen47"><div class="x-window-body" id="ext-gen48" style="width: 1018px; height: 711px; "><div id="ext-comp-1081" class="x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen52"><form class="x-panel-body x-panel-body-noheader x-form" method="POST" id="ext-gen45" style="width: 1012px; height: 682px; "><div id="ext-comp-1093" class=" x-panel x-panel-noborder" style="width: 1012px; "><div class="x-panel-tl"><div class="x-panel-tr"><div class="x-panel-tc"></div></div></div><div class="x-panel-bwrap" id="ext-gen58"><div class="x-panel-ml"><div class="x-panel-mr"><div class="x-panel-mc" id="ext-gen61"><div class="x-panel-body x-panel-body-noborder x-box-layout-ct" id="ext-gen59" style="width: 996px; height: 669px; "><div class="x-box-inner" id="ext-gen63" style="width: 996px; height: 669px; "><div id="ext-comp-1083" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-panel-body-noheader" id="ext-gen65" style="overflow-x: hidden; width: 992px; height: 21px; "><div id="ext-comp-1082" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 21px; "><p>Quick Links: <a href="javascript:Lino.pcsw.Clients.detail.run('ext-comp-1081')" title="Open a detail window on this record">Détail Clients</a> <a href="javascript:Lino.cal.CalendarPanel.grid.run('ext-comp-1081')">Calendrier</a> <a href="javascript:Lino.pcsw.IntegClients.grid.run('ext-comp-1081')">Clients</a> <a href="javascript:Lino.isip.MyContracts.grid.run('ext-comp-1081')">PIISs</a> <a href="javascript:Lino.jobs.MyContracts.grid.run('ext-comp-1081')">Contrats de travail</a></p></div></div></div></div><div id="ext-comp-1085" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 21px; "><div class="x-panel-header x-unselectable" id="ext-gen67" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen70">Bienvenue</span></div><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body" id="ext-gen69" style="overflow-x: hidden; width: 992px; height: 43px; "><div id="ext-comp-1084" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 43px; "><div class="htmlText" style="margin:5px"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href='javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ "param_values": { "unclear": true, "dates_from": "15.05.2013", "stateHidden": null, "assigned_toHidden": null, "userHidden": 6, "state": null, "user": "Alicia Allmanns", "assigned_to": null, "dates_to": "16.05.2013" }, "base_params": {  } })'>2 rendez-vous à clarifier qui s'approchent.</a></li></ul></div></div></div></div></div><div id="ext-comp-1087" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 90px; "><div class="x-panel-header x-unselectable" id="ext-gen72" style="-webkit-user-select: none; "><div class="x-tool x-tool-up" id="ext-gen75">&nbsp;</div><span class="x-panel-header-text" id="ext-gen76">Agents et leurs clients</span></div><div class="x-panel-bwrap" id="ext-gen73"><div class="x-panel-body" id="ext-gen74" style="overflow-x: hidden; width: 992px; height: 165px; "><div id="ext-comp-1086" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 165px; "><table bgcolor="#ffffff" cellspacing="3px" width="100%"><thead><tr><th align="left" bgcolor="#eeeeee" valign="top" width="10"><a href="/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Accompagnant</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Bilan</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Formation</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Recherche</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Travail</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Standby</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Dossiers complets</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Clients actifs</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Total</a></th></tr></thead><tbody><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Alicia Allmanns</b></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>1</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>7</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Hubert Huppertz</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>10</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>23</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Mélanie Mélard</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>22</a></td></tr></tbody></table></div></div></div></div><div id="ext-comp-1092" class=" x-panel x-panel-noborder x-box-item" style="width: 996px; left: 0px; top: 281px; "><div class="x-panel-bwrap" id="ext-gen78"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-box-layout-ct" id="ext-gen79" style="width: 992px; height: 388px; "><div class="x-box-inner" id="ext-gen81" style="width: 992px; height: 388px; "><div id="ext-comp-1089" class="x-panel x-box-item" style="width: 496px; left: 0px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen82" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen85">Rappels à venir</span></div><div class="x-panel-bwrap" id="ext-gen83"><div class="x-panel-body" id="ext-gen84" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1088" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 à 09:40 [Draft]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 116 })'>AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 à 10:20 [Communiqué]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 117 })'>BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 à 11:10 [Planifé]&nbsp;: Rencontre (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 118 })'>COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 à 11:10 [Proposé]&nbsp;: Interview (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 124 })'>DOBBELSTEIN Dorothée (124)</a>)</li><li>Event #75 à 13:30 [Draft]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 125 })'>ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 à 08:30 [Communiqué]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 126 })'>EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 à 09:40 [Planifé]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 127 })'>EVERS Eberhart (127)</a>)</li></ul></div></div></div></div></div><div id="ext-comp-1091" class="x-panel x-box-item" style="width: 496px; left: 496px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen87" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen90">Rappels ratés</span></div><div class="x-panel-bwrap" id="ext-gen88"><div class="x-panel-body" id="ext-gen89" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1090" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 à 08:30 [Proposé]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 112 })'>SAFFRE Luc (112)</a>)</li></ul></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-panel-bl x-panel-nofooter" id="ext-gen60"><div class="x-panel-br"><div class="x-panel-bc"></div></div></div></div></div></form><div class="x-panel-bbar" id="ext-gen53" style="width: 1018px; "><div id="ext-comp-1097" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1012px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen56"><table id="ext-comp-1094" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen57" class=" x-btn-text x-tbar-print">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen49">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen92" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen93" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen94" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen95" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen96" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen97" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen98" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen99" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1098-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/nl/index.jpg (1 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.lino.Home.show.run(null,{ "record_id": -99998 })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen50" style="display: none; "></div><div id="ext-comp-1098" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-header x-unselectable" id="ext-gen46" style="-webkit-user-select: none; "><span class="x-window-header-text"></span></div><div class="x-window-bwrap" id="ext-gen47"><div class="x-window-body" id="ext-gen48" style="width: 1018px; height: 711px; "><div id="ext-comp-1081" class="x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen52"><form class="x-panel-body x-panel-body-noheader x-form" method="POST" id="ext-gen45" style="width: 1012px; height: 682px; "><div id="ext-comp-1093" class=" x-panel x-panel-noborder" style="width: 1012px; "><div class="x-panel-tl"><div class="x-panel-tr"><div class="x-panel-tc"></div></div></div><div class="x-panel-bwrap" id="ext-gen58"><div class="x-panel-ml"><div class="x-panel-mr"><div class="x-panel-mc" id="ext-gen61"><div class="x-panel-body x-panel-body-noborder x-box-layout-ct" id="ext-gen59" style="width: 996px; height: 669px; "><div class="x-box-inner" id="ext-gen63" style="width: 996px; height: 669px; "><div id="ext-comp-1083" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-panel-body-noheader" id="ext-gen65" style="overflow-x: hidden; width: 992px; height: 21px; "><div id="ext-comp-1082" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 21px; "><p>Quick Links: <a href="javascript:Lino.pcsw.Clients.detail.run('ext-comp-1081')" title="Open a detail window on this record">Détail Clients</a> <a href="javascript:Lino.cal.CalendarPanel.grid.run('ext-comp-1081')">Calendrier</a> <a href="javascript:Lino.pcsw.IntegClients.grid.run('ext-comp-1081')">Clients</a> <a href="javascript:Lino.isip.MyContracts.grid.run('ext-comp-1081')">PIISs</a> <a href="javascript:Lino.jobs.MyContracts.grid.run('ext-comp-1081')">Contrats de travail</a></p></div></div></div></div><div id="ext-comp-1085" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 21px; "><div class="x-panel-header x-unselectable" id="ext-gen67" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen70">Bienvenue</span></div><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body" id="ext-gen69" style="overflow-x: hidden; width: 992px; height: 43px; "><div id="ext-comp-1084" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 43px; "><div class="htmlText" style="margin:5px"><p>Salut,Alicia! </p><h3>Vous avez</h3><ul><li><a href='javascript:Lino.cal.MyUnclearEvents.grid.run(null,{ "param_values": { "unclear": true, "dates_from": "15.05.2013", "stateHidden": null, "assigned_toHidden": null, "userHidden": 6, "state": null, "user": "Alicia Allmanns", "assigned_to": null, "dates_to": "16.05.2013" }, "base_params": {  } })'>2 rendez-vous à clarifier qui s'approchent.</a></li></ul></div></div></div></div></div><div id="ext-comp-1087" class="x-panel x-box-item" style="width: 996px; left: 0px; top: 90px; "><div class="x-panel-header x-unselectable" id="ext-gen72" style="-webkit-user-select: none; "><div class="x-tool x-tool-up" id="ext-gen75">&nbsp;</div><span class="x-panel-header-text" id="ext-gen76">Agents et leurs clients</span></div><div class="x-panel-bwrap" id="ext-gen73"><div class="x-panel-body" id="ext-gen74" style="overflow-x: hidden; width: 992px; height: 165px; "><div id="ext-comp-1086" style="overflow-x: auto; overflow-y: auto; width: 992px; height: 165px; "><table bgcolor="#ffffff" cellspacing="3px" width="100%"><thead><tr><th align="left" bgcolor="#eeeeee" valign="top" width="10"><a href="/api/pcsw/UsersWithClients?sort=user&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Accompagnant</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G1&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Bilan</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G2&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Formation</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Recherche</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G4bis&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Travail</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=G9&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Standby</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=primary_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Dossiers complets</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=active_clients&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Clients actifs</a></th><th align="right" bgcolor="#eeeeee" valign="top" width="5"><a href="/api/pcsw/UsersWithClients?sort=row_total&amp;base_params=%7B%27mk%27%3A+%3Clino.core.requests.EmptyTableRow+object+at+0xb18978c%3E%7D">Total</a></th></tr></thead><tbody><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Alicia Allmanns</b></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>1</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Alicia Allmanns", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 6, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>7</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Hubert Huppertz</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>10</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "Hubert Huppertz", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 5, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>23</a></td></tr><tr><td align="left" bgcolor="#eeeeee" valign="top"><b>Mélanie Mélard</b></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Bilan", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 1, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Formation", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 2, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Recherche", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 3, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>3</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Travail", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 4, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>2</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": "Standby", "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": 5, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>4</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": true, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": "15.05.2013", "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": true, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>13</a></td><td align="right" bgcolor="#eeeeee" valign="top"><a href='javascript:Lino.pcsw.IntegClients.grid.run(null,{ "param_values": { "also_obsolete": false, "coached_by": "M\u00e9lanie M\u00e9lard", "languageHidden": null, "client_stateHidden": "30", "group": null, "genderHidden": null, "aged_from": null, "only_primary": false, "wanted_propertyHidden": null, "groupHidden": null, "and_coached_by": null, "and_coached_byHidden": null, "nationalityHidden": null, "wanted_property": null, "coached_on": null, "nationality": null, "language": null, "gender": null, "coached_byHidden": 4, "only_active": false, "client_state": "Accompagn\u00e9", "aged_to": null }, "base_params": {  } })'>22</a></td></tr></tbody></table></div></div></div></div><div id="ext-comp-1092" class=" x-panel x-panel-noborder x-box-item" style="width: 996px; left: 0px; top: 281px; "><div class="x-panel-bwrap" id="ext-gen78"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-box-layout-ct" id="ext-gen79" style="width: 992px; height: 388px; "><div class="x-box-inner" id="ext-gen81" style="width: 992px; height: 388px; "><div id="ext-comp-1089" class="x-panel x-box-item" style="width: 496px; left: 0px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen82" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen85">Rappels à venir</span></div><div class="x-panel-bwrap" id="ext-gen83"><div class="x-panel-body" id="ext-gen84" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1088" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mercredi 15 mai 2013</h3><ul><li>Event #67 à 09:40 [Draft]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 116 })'>AUSDEMWALD Alfons (116)</a>)</li></ul><h3>jeudi 16 mai 2013</h3><ul><li>Event #68 à 10:20 [Communiqué]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 117 })'>BASTIAENSEN Laurent (117)</a>)</li><li>Event #69 à 11:10 [Planifé]&nbsp;: Rencontre (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 118 })'>COLLARD Charlotte (118)</a>)</li></ul><h3>lundi 20 mai 2013</h3><ul><li>Event #74 à 11:10 [Proposé]&nbsp;: Interview (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 124 })'>DOBBELSTEIN Dorothée (124)</a>)</li><li>Event #75 à 13:30 [Draft]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 125 })'>ERNST Berta (125)</a>)</li></ul><h3>mardi 21 mai 2013</h3><ul><li>Event #76 à 08:30 [Communiqué]&nbsp;: Souper (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 126 })'>EVERTZ Bernd (126)</a>)</li></ul><h3>mercredi 22 mai 2013</h3><ul><li>Event #77 à 09:40 [Planifé]&nbsp;: Petit-déjeuner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 127 })'>EVERS Eberhart (127)</a>)</li></ul></div></div></div></div></div><div id="ext-comp-1091" class="x-panel x-box-item" style="width: 496px; left: 496px; top: 0px; "><div class="x-panel-header x-unselectable" id="ext-gen87" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen90">Rappels ratés</span></div><div class="x-panel-bwrap" id="ext-gen88"><div class="x-panel-body" id="ext-gen89" style="overflow-x: hidden; width: 492px; height: 362px; "><div id="ext-comp-1090" style="overflow-x: auto; overflow-y: auto; width: 492px; height: 362px; "><div class="htmlText" style="margin:5px"><h3>mardi 14 mai 2013</h3><ul><li>Event #66 à 08:30 [Proposé]&nbsp;: Diner (<a href='javascript:Lino.pcsw.Clients.detail.run(null,{ "record_id": 112 })'>SAFFRE Luc (112)</a>)</li></ul></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-panel-bl x-panel-nofooter" id="ext-gen60"><div class="x-panel-br"><div class="x-panel-bc"></div></div></div></div></div></form><div class="x-panel-bbar" id="ext-gen53" style="width: 1018px; "><div id="ext-comp-1097" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1012px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen56"><table id="ext-comp-1094" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen57" class=" x-btn-text x-tbar-print">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen49">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen92" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen93" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen94" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen95" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen96" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen97" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen98" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen99" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1098-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Giving up userdocs/gen/screenshots/nl/index.jpg
Rendering to userdocs/gen/screenshots/nl/index.jpg false
Loading http://127.0.0.1:8000/api/cal/CalendarPanel?lng=nl to userdocs/gen/screenshots/nl/cal.CalendarPanel.jpg
quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: &quot;Standby&quot;, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: 5, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">4</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden'
20130515 '&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: true, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">13</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: &quot;15.05.2013&quot;, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: true, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">13</a></td><td align=\\"right\\" bgcolor=\\"#eeeeee\\" valign=\\"top\\"><a href=\\"javascript:Lino.pcsw.IntegClients.grid.run(null,{ &quot;param_values&quot;: { &quot;also_obsolete&quot;: false, &quot;coached_by&quot;: &quot;M\\\\u00e9lanie M\\\\u00e9lard&quot;, &quot;languageHidden&quot;: null, &quot;client_stateHidden&quot;: &quot;30&quot;, &quot;group&quot;: null, &quot;genderHidden&quot;: null, &quot;aged_from&quot;: null, &quot;only_primary&quot;: false, &quot;wanted_propertyHidden&quot;: null, &quot;groupHidden&quot;: null, &quot;and_coached_by&quot;: null, &quot;and_coached_byHidden&quot;: null, &quot;nationalityHidden&quot;: null, &quot;wanted_property&quot;: null, &quot;coached_on&quot;: null, &quot;nationality&quot;: null, &quot;language&quot;: null, &quot;gender&quot;: null, &quot;coached_byHidden&quot;: 4, &quot;only_active&quot;: false, &quot;client_state&quot;: &quot;Accompagn\\\\u00e9&quot;, &quot;aged_to&quot;: null }, &quot;base_params&quot;: {  } })\\">22</a></td></tr></tbody></table>", "disabled_fields": { "UsersWithClients": true }, "disabled_actions": {  } }, "id": -99998, "title": "D\\u00e9part" }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:45 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: text/html; charset=utf-8\r\nContent-Language: fr\r\n\r\n'
20130515 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html><head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<title id="title">Lino-Welfare</title>\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css" />\n<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css" />\n<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css" />\n<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css" />\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>\n<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>\n<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>\n<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>\n<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>\n<script language="javascript" type="text/javascript">\ntinymce.init({\n        theme : "advanced"\n        // , mode : "textareas"\n});\n</script>\n<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>\n<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>\n<sopened auth!
cript type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>\n<script type="text/javascript">\nExt.onReady(function(){\nLino.set_subst_user();\nLino.user = { "name": "Alicia Allmanns", "id": 6 };\nLino.main_menu = Lino.main_menu.concat([\'->\',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);\n  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});\n  Lino.viewport.render("body");\nLino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })\n}); // end of onReady()\n</script></head><body>\n<div id="body"></div>\n</body></html>'
20130515 authenticate alicia,1234
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:45 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\nSet-Cookie:  sessionid=e07fxz8yy1dun2ycjnyntdts1a1bln4m; expires=Wed, 29-May-2013 08:45:45 GMT; httponly; Max-Age=1209600; Path=/\r\n\r\n'
20130515 '{ "message": "Now logged in as u\'alicia\'", "success": true }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:45 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Tue, 19 Mar 2013 15:33:52 GMT\r\nContent-Length: 7750\r\nContent-Type: text/css\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\r\n'
20130515 ' Copyright 2009-2013 Luc Saffre\r\n'
20130515 ' This file is part of the Lino project.\r\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \r\n'
20130515 ' it under the terms of the GNU General Public License as published by\r\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\r\n'
20130515 ' (at your option) any later version.\r\n'
20130515 ' Lino is distributed in the hope that it will be useful, \r\n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \r\n'
20130515 ' GNU General Public License for more details.\r\n'
20130515 ' You should have received a copy of the GNU General Public License\r\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'http://stackoverflow.com/questions/2106104/word-wrap-grid-cells-in-ext-js \r\n'
20130515 'e.g. welfare.jobs.NewJobsOverview needs\r\n'
20130515 '*/\r\n'
20130515 '/* \r\n'
20130515 '.x-grid3-cell-inner {\r\n'
20130515 '  /* white-space: normal; changed from nowrap \r\n'
20130515 '  height:18px; \r\n'
20130515 '  overflow:hidden;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-grid3-hd-inner {\r\n'
20130515 '  white-space: normal; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*.lino-phantom-row table.x-grid3-row-table {\r\n'
20130515 '\tcolor: blue; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '.lino-phantom-row td {\r\n'
20130515 '\t/* font-style: italic; */\r\n'
20130515 '\tcolor:white;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-item-disabled, .x-tree-node-disabled, .x-date-disabled\r\n'
20130515 '*/\r\n'
20130515 '.x-item-disabled {\r\n'
20130515 '  color: blue; \r\n'
20130515 '  /*   opacity: 1;  \r\n'
20130515 '  font-weight: bold; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-item-disabled * {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '  /*font-weight: bold !important; */\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-noicon {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '.x-btn-pressed {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-text {\r\n'
20130515 '\tcolor: red; font-style:italic;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-btn-menu-active {\r\n'
20130515 "\tcursor: 'wait';\r\n"
20130515 "\tcolor:'red';\r\n"
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* See blog/2011/0603\r\n'
20130515 '*/\r\n'
20130515 '.x-form-item-label{\r\n'
20130515 '    white-space: nowrap; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-form-field { padding: 10px; }\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-panel-body-noheader { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '.x-panel-body { padding-left: 2px; padding-right: 2px; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* TinyMCE specific rules */\r\n'
20130515 '/* \r\n'
20130515 'body.mceContentBody {\r\n'
20130515 '  color: red !important; \r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 'body.mceNonEditable {\r\n'
20130515 '  color: blue !important; \r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 '\r\n'
20130515 'To display "normal" HTML inside an ExtJS component, \r\n'
20130515 'wrap it into a <div class="htmlText">.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.htmlText {\r\n'
20130515 '\tfont-family: arial,tahoma;\r\n'
20130515 '}\r\n'
20130515 '.htmlText h1 {\r\n'
20130515 '\tfont-size:16px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:12px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText h2 {\r\n'
20130515 '\tfont-size:13px;\r\n'
20130515 '\tpadding-top:0px;\r\n'
20130515 '\tpadding-bottom:10px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText td,th {\r\n'
20130515 '\tpadding:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText p {\r\n'
20130515 '\tmargin-top:0px;\r\n'
20130515 '\tmargin-bottom:0px;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ol {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: decimal; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText ul {\r\n'
20130515 '\tmargin-top:3px;\r\n'
20130515 '\tmargin-left:20px;\r\n'
20130515 '\tmargin-bottom:3px;\r\n'
20130515 '\tlist-style-type: square; \r\n'
20130515 '\tlist-style-image: none; \r\n'
20130515 '\tlist-style-position: outside;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText strong {\r\n'
20130515 '\tfont-weight:bold;\r\n'
20130515 '\t}\r\n'
20130515 '.htmlText em {\r\n'
20130515 '\tfont-style: italic;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to http://de.selfhtml.org/css/formate/zentrale.htm\r\n'
20130515 '*/\r\n'
20130515 'table.htmlText tr td {\r\n'
20130515 '\tvertical-align: middle;\r\n'
20130515 '\ttext-align: center;\r\n'
20130515 '\t}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'The following are \r\n'
20130515 "Alexander Dawson's CSS tooltips\r\n"
20130515 'from <http://sixrevisions.com/css/css-only-tooltips/>,\r\n'
20130515 'adapted for usage in an ExtJS application.\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-form-item-label .tooltip {\r\n'
20130515 '\tborder-bottom: 1px dotted #000000; color: #000000; outline: none;\r\n'
20130515 '\tcursor: help; \r\n'
20130515 '\ttext-decoration: none;\r\n'
20130515 '\tposition: relative;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip span {\r\n'
20130515 '\tmargin-left: -999em;\r\n'
20130515 '\tposition: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover span {\r\n'
20130515 '\tborder-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; \r\n'
20130515 '\tbox-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); \r\n'
20130515 '\t-moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);\r\n'
20130515 '\tfont-family: Calibri, Tahoma, Geneva, sans-serif;\r\n'
20130515 '\tposition: absolute; left: 1em; top: 2em; z-index: 99;\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '    white-space: normal; \r\n'
20130515 '\tmargin-left: 0; width: 250px;\r\n'
20130515 '\t\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover img {\r\n'
20130515 '\tborder: 0; margin: -10px 0 0 -55px;\r\n'
20130515 '\tfloat: left; position: absolute;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .tooltip:hover em {\r\n'
20130515 '\tfont-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold;\r\n'
20130515 '\tdisplay: block; padding: 0.2em 0 0.6em 0;\r\n'
20130515 '}\r\n'
20130515 '.x-form-item-label .classic { padding: 0.8em 1em; }\r\n'
20130515 '.x-form-item-label .custom { padding: 0.5em 0.8em 0.8em 2em; }\r\n'
20130515 '.x-form-item-label * html a:hover { background: transparent; }\r\n'
20130515 '.x-form-item-label .classic {background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '.x-form-item-label .critical { background: #FFCCAA; border: 1px solid #FF3334;\t}\r\n'
20130515 '.x-form-item-label .help { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .info { background: #9FDAEE; border: 1px solid #2BB0D7;\t}\r\n'
20130515 '.x-form-item-label .warning { background: #FFFFAA; border: 1px solid #FFAD33; }\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 ' 20120229 For css tooltips we need to override some CSS rules of ExtJS.\r\n'
20130515 ' set all overflows \r\n'
20130515 " to 'visible' for CSS tooltips.\r\n"
20130515 " I don't really understand it, and it doesn't yet work,\r\n"
20130515 " but it doesn't seem to  cause any problem.\r\n"
20130515 ' \r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: hidden;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.ext-gecko .x-window-body .x-form-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-body .x-panel-body-noheader {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-panel-bwrap {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-box-inner {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '.x-fieldset .x-form-label-top .x-box-item {\r\n'
20130515 '\toverflow: visible;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 '.x-tip \r\n'
20130515 '  .x-tip-tl\r\n'
20130515 '    .x-tip-tr\r\n'
20130515 '      .x-tip-tc\r\n'
20130515 '        .x-tip-header\r\n'
20130515 '          .x-tip-header-text\r\n'
20130515 '  .x-tip-bwrap\r\n'
20130515 '    .x-tip-ml\r\n'
20130515 '      .x-tip-mr\r\n'
20130515 '        .x-tip-mc\r\n'
20130515 '          .x-tip-body\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: #FFFFAA; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-header-text { border: 0; }\r\n'
20130515 '\r\n'
20130515 '.x-tip div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-bwrap div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-ml div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mr div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-mc div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '.x-tip-body div {\r\n'
20130515 '\tbackground: yellow; \r\n'
20130515 '}\t\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '/* border: 1px solid #FFAD33;  */\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '.x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/mjames/delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '/*\r\n'
20130515 '.x-item-disabled .x-tbar-delete{\r\n'
20130515 '\tbackground-image: url(images/default/grid/delete-disabled.gif) !important;\r\n'
20130515 '}\r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '.x-tbar-new{\r\n'
20130515 '\tbackground-image: url(images/mjames/add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/*\r\n'
20130515 'ShowDetailAction\r\n'
20130515 '$a.icon_name\r\n'
20130515 '$a.icon_file\r\n'
20130515 '*/\r\n'
20130515 '.x-tbar-detail{\r\n'
20130515 '\tbackground-image: url(images/mjames/application_form.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-save{\r\n'
20130515 '\tbackground-image: url(images/mjames/disk.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-email_add{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-email_send{\r\n'
20130515 '\tbackground-image: url(images/mjames/email_go.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-create-postings{\r\n'
20130515 '\tbackground-image: url(images/mjames/script_add.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-calendar{\r\n'
20130515 '\tbackground-image: url(images/mjames/calendar.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-print{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '.x-tbar-clearcache{\r\n'
20130515 '\tbackground-image: url(images/mjames/printer_delete.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-duplicate{\r\n'
20130515 '\tbackground-image: url(images/mjames/arrow_divide.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-pdf{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_white_acrobat.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-html{\r\n'
20130515 '\tbackground-image: url(images/mjames/html.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-csv{\r\n'
20130515 '\tbackground-image: url(images/mjames/page_excel.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-vcard{\r\n'
20130515 '\tbackground-image: url(images/mjames/vcard.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-done{\r\n'
20130515 '\tbackground-image: url(images/mjames/accept.png) !important;\r\n'
20130515 '}\r\n'
20130515 '.x-tbar-parameters{\r\n'
20130515 '\tbackground-image: url(images/mjames/database_gear.png) !important;\r\n'
20130515 '}\r\n'
20130515 '\r\n'
20130515 '/* \r\n'
20130515 'Thanks to Animal in \r\n'
20130515 'http://www.sencha.com/forum/showthread.php?70195-NumberField-and-Right-Alignment\r\n'
20130515 '*/\r\n'
20130515 '.x-form-num-field {\r\n'
20130515 '    text-align: right;\r\n'
20130515 '}'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:45 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 359788\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible\n'
20130515 ' * Extensible core utilities and functions.\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 '(function(){\n'
20130515 '    \n'
20130515 "    Ext.ns('Ext.ensible.ux', 'Ext.ensible.sample', 'Ext.ensible.plugins', 'Ext.ensible.cal');\n"
20130515 '    \n'
20130515 '    Ext.apply(Ext.ensible, {\n'
20130515 '        /**\n'
20130515 '         * The version of the framework\n'
20130515 '         * @type String\n'
20130515 '         */\n'
20130515 "        version : '1.0.1',\n"
20130515 '        /**\n'
20130515 '         * The version of the framework, broken out into its numeric parts. This returns an\n'
20130515 '         * object that contains the following integer properties: major, minor and patch.\n'
20130515 '         * @type Object\n'
20130515 '         */\n'
20130515 '        versionDetails : {\n'
20130515 '            major: 1,\n'
20130515 '            minor: 0,\n'
20130515 '            patch: 1\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        hasBorderRadius : !(Ext.isIE || Ext.isOpera),\n'
20130515 '        \n'
20130515 '        log : function(s){\n'
20130515 '            //console.log(s);\n'
20130515 '        },\n'
20130515 '    \n'
20130515 '       /**\n'
20130515 '        * @class Ext.ensible.cal.Date\n'
20130515 '        * @extends Object\n'
20130515 '        * <p>Contains utility date functions used by the calendar components.</p>\n'
20130515 '        * @singleton\n'
20130515 '        */\n'
20130515 '\t    Date : {\n'
20130515 '            /**\n'
20130515 '             * Determines whether times used throughout all Extensible components should be displayed as\n'
20130515 '             * 12 hour times with am/pm (default) or 24 hour / military format. Note that some locale files\n'
20130515 '             * may override this value by default.\n'
20130515 '             * @type Boolean\n'
20130515 '             * @property use24HourTime\n'
20130515 '             */\n'
20130515 '            use24HourTime : false,\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns the time duration between two dates in the specified units. For finding the number\n'
20130515 '             * of calendar days (ignoring time) between two dates use {@link Ext.ensible.Date.diffDays diffDays} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 "             * @param {String} unit (optional) The time unit to return. Valid values are 'ms' (milliseconds, the default), 's' (seconds),\n"
20130515 "             * 'm' (minutes) or 'h' (hours).\n"
20130515 '             * @return {Number} The time difference between the dates in the units specified by the unit param\n'
20130515 '             */\n'
20130515 '            diff : function(start, end, unit){\n'
20130515 '                var denom = 1,\n'
20130515 '                    diff = end.getTime() - start.getTime();\n'
20130515 '                \n'
20130515 "                if(unit == 's'){ \n"
20130515 '                    denom = 1000;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'm'){\n"
20130515 '                    denom = 1000*60;\n'
20130515 '                }\n'
20130515 "                else if(unit == 'h'){\n"
20130515 '                    denom = 1000*60*60;\n'
20130515 '                }\n'
20130515 '                return Math.round(diff/denom);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Calculates the number of calendar days between two dates, ignoring time values. \n'
20130515 '             * A time span that starts at 11pm (23:00) on Monday and ends at 1am (01:00) on Wednesday is \n'
20130515 '             * only 26 total hours, but it spans 3 calendar days, so this function would return 3. For the\n'
20130515 '             * exact time difference, use {@link Ext.ensible.Date.diff diff} instead.\n'
20130515 '             * @param {Date} start The start date\n'
20130515 '             * @param {Date} end The end date\n'
20130515 '             * @return {Number} The number of calendar days difference between the dates\n'
20130515 '             */\n'
20130515 '            diffDays : function(start, end){\n'
20130515 '                var day = 1000*60*60*24,\n'
20130515 '                    diff = end.clearTime(true).getTime() - start.clearTime(true).getTime();\n'
20130515 '                \n'
20130515 '                return Math.ceil(diff/day);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 "             * Copies the time value from one date object into another without altering the target's \n"
20130515 '             * date value. This function returns a new Date instance without modifying either original value.\n'
20130515 '             * @param {Date} fromDt The original date from which to copy the time\n'
20130515 '             * @param {Date} toDt The target date to copy the time to\n'
20130515 '             * @return {Date} The new date/time value\n'
20130515 '             */\n'
20130515 '            copyTime : function(fromDt, toDt){\n'
20130515 '                var dt = toDt.clone();\n'
20130515 '                dt.setHours(\n'
20130515 '                    fromDt.getHours(),\n'
20130515 '                    fromDt.getMinutes(),\n'
20130515 '                    fromDt.getSeconds(),\n'
20130515 '                    fromDt.getMilliseconds());\n'
20130515 '                \n'
20130515 '                return dt;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Compares two dates and returns a value indicating how they relate to each other.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Boolean} precise (optional) If true, the milliseconds component is included in the comparison,\n'
20130515 '             * else it is ignored (the default).\n'
20130515 '             * @return {Number} The number of milliseconds difference between the two dates. If the dates are equal\n'
20130515 '             * this will be 0.  If the first date is earlier the return value will be positive, and if the second date\n'
20130515 '             * is earlier the value will be negative.\n'
20130515 '             */\n'
20130515 '            compare : function(dt1, dt2, precise){\n'
20130515 '                var d1 = dt1, d2 = dt2;\n'
20130515 '                if(precise !== true){\n'
20130515 '                    d1 = dt1.clone();\n'
20130515 '                    d1.setMilliseconds(0);\n'
20130515 '                    d2 = dt2.clone();\n'
20130515 '                    d2.setMilliseconds(0);\n'
20130515 '                }\n'
20130515 '                return d2.getTime() - d1.getTime();\n'
20130515 '            },\n'
20130515 '\n'
20130515 '\t        // private helper fn\n'
20130515 '\t        maxOrMin : function(max){\n'
20130515 '\t            var dt = (max ? 0 : Number.MAX_VALUE), i = 0, args = arguments[1], ln = args.length;\n'
20130515 '\t            for(; i < ln; i++){\n'
20130515 "\t                dt = Math[max ? 'max' : 'min'](dt, args[i].getTime());\n"
20130515 '\t            }\n'
20130515 '\t            return new Date(dt);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the maximum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the latest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmax : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [true, arguments]);\n'
20130515 '\t        },\n'
20130515 '\t        \n'
20130515 '            /**\n'
20130515 '             * Returns the minimum date value passed into the function. Any number of date \n'
20130515 '             * objects can be passed as separate params.\n'
20130515 '             * @param {Date} dt1 The first date\n'
20130515 '             * @param {Date} dt2 The second date\n'
20130515 '             * @param {Date} dtN (optional) The Nth date, etc.\n'
20130515 '             * @return {Date} A new date instance with the earliest date value that was passed to the function\n'
20130515 '             */\n'
20130515 '\t\t\tmin : function(){\n'
20130515 '\t            return this.maxOrMin.apply(this, [false, arguments]);\n'
20130515 '\t        },\n'
20130515 '            \n'
20130515 '            isInRange : function(dt, rangeStart, rangeEnd) {\n'
20130515 '                return  (dt >= rangeStart && dt <= rangeEnd);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if two date ranges overlap (either one starts or ends within the other, or one completely\n'
20130515 '             * overlaps the start and end of the other), else false if they do not.\n'
20130515 '             * @param {Date} start1 The start date of range 1\n'
20130515 '             * @param {Date} end1   The end date of range 1\n'
20130515 '             * @param {Date} start2 The start date of range 2\n'
20130515 '             * @param {Date} end2   The end date of range 2\n'
20130515 '             * @return {Booelan} True if the ranges overlap, else false\n'
20130515 '             */\n'
20130515 '            rangesOverlap : function(start1, end1, start2, end2){\n'
20130515 '                var startsInRange = (start1 >= start2 && start1 <= end2),\n'
20130515 '                    endsInRange = (end1 >= start2 && end1 <= end2),\n'
20130515 '                    spansRange = (start1 <= start2 && end1 >= end2);\n'
20130515 '                \n'
20130515 '                return (startsInRange || endsInRange || spansRange);\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date is a Saturday or Sunday, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a weekend day, else false \n'
20130515 '             */\n'
20130515 '            isWeekend : function(dt){\n'
20130515 '                return dt.getDay() % 6 === 0;\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * Returns true if the specified date falls on a Monday through Fridey, else false.\n'
20130515 '             * @param {Date} dt The date to test\n'
20130515 '             * @return {Boolean} True if the date is a week day, else false \n'
20130515 '             */\n'
20130515 '            isWeekday : function(dt){\n'
20130515 '                return dt.getDay() % 6 !== 0;\n'
20130515 '            }\n'
20130515 '\t    }\n'
20130515 '    });\n'
20130515 '})();\n'
20130515 '//TODO: remove this once we are synced to trunk again\n'
20130515 'Ext.override(Ext.XTemplate, {\n'
20130515 '    applySubTemplate : function(id, values, parent, xindex, xcount){\n'
20130515 '        var me = this,\n'
20130515 '            len,\n'
20130515 '            t = me.tpls[id],\n'
20130515 '            vs,\n'
20130515 '            buf = [];\n'
20130515 '        if ((t.test && !t.test.call(me, values, parent, xindex, xcount)) ||\n'
20130515 '            (t.exec && t.exec.call(me, values, parent, xindex, xcount))) {\n'
20130515 "            return '';\n"
20130515 '        }\n'
20130515 '        vs = t.target ? t.target.call(me, values, parent) : values;\n'
20130515 '        len = vs.length;\n'
20130515 '        parent = t.target ? values : parent;\n'
20130515 '        if(t.target && Ext.isArray(vs)){\n'
20130515 '            Ext.each(vs, function(v, i) {\n'
20130515 '                buf[buf.length] = t.compiled.call(me, v, parent, i+1, len);\n'
20130515 '            });\n'
20130515 "            return buf.join('');\n"
20130515 '        }\n'
20130515 '        return t.compiled.call(me, vs, parent, xindex, xcount);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This fix is in Ext 3.2 */\n'
20130515 'Ext.override(Ext.form.DateField, {\n'
20130515 '\t\n'
20130515 '\taltFormats : "m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j",\n'
20130515 '\t\n'
20130515 '    safeParse : function(value, format) {\n'
20130515 "        if (/[gGhH]/.test(format.replace(/(\\\\.)/g, ''))) {\n"
20130515 '            // if parse format contains hour information, no DST adjustment is necessary\n'
20130515 '            return Date.parseDate(value, format);\n'
20130515 '        } else {\n'
20130515 '            // set time to 12 noon, then clear the time\n'
20130515 "            var parsedDate = Date.parseDate(value + ' ' + this.initTime, format + ' ' + this.initTimeFormat);\n"
20130515 '            if (parsedDate) return parsedDate.clearTime();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/* This override applies to the current 3.3.x line to fix duplicate remote actions */\n'
20130515 'Ext.override(Ext.data.Store, {\n'
20130515 '    add : function(records) {\n'
20130515 '        var i, record, index;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        if (records.length < 1) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        index = this.data.length;\n'
20130515 '        this.data.addAll(records);\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    insert : function(index, records) {\n'
20130515 '        var i, record;\n'
20130515 '        \n'
20130515 '        records = [].concat(records);\n'
20130515 '        for (i = 0, len = records.length; i < len; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            this.data.insert(index + i, record);\n'
20130515 '            record.join(this);\n'
20130515 '            \n'
20130515 '            //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '            if ((record.dirty || record.phantom) && this.modified.indexOf(record) == -1) {\n'
20130515 '                this.modified.push(record);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if (this.snapshot) {\n'
20130515 '            this.snapshot.addAll(records);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('add', this, records, index);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // Interestingly, this method has no changes, but is included here because without it a very strange\n'
20130515 '    // race condition occurs. This method is used as a callback internally for the add event which\n'
20130515 '    // is fired from the add method (overridden above). As long as both methods are here everything is OK\n'
20130515 '    // but with createRecords removed and defaulted to the original class you end up with duplicate copies\n'
20130515 "    // of added records in the store's modified collection (since both methods add to it). Not sure exactly\n"
20130515 '    // how that happens, but including this fixes it.\n'
20130515 '    createRecords : function(store, records, index) {\n'
20130515 '        var modified = this.modified,\n'
20130515 '            length   = records.length,\n'
20130515 '            record, i;\n'
20130515 '        \n'
20130515 '        for (i = 0; i < length; i++) {\n'
20130515 '            record = records[i];\n'
20130515 '            \n'
20130515 '            if (record.phantom && record.isValid()) {\n'
20130515 '                record.markDirty();  // <-- Mark new records dirty (Ed: why?)\n'
20130515 '                \n'
20130515 '                //Extensible: Added the modified.indexOf check to avoid adding duplicate recs\n'
20130515 '                if (modified.indexOf(record) == -1) {\n'
20130515 '                    modified.push(record);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if (this.autoSave === true) {\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '// Have to add in full API support so that EventMemoryProxy can do its thing.\n'
20130515 "// Won't hurt normal read-only MemoryProxy read actions.\n"
20130515 'Ext.data.MemoryProxy = function(data){\n'
20130515 '    var api = {};\n'
20130515 '    api[Ext.data.Api.actions.read] = true;\n'
20130515 '    api[Ext.data.Api.actions.create] = true;\n'
20130515 '    api[Ext.data.Api.actions.update] = true;\n'
20130515 '    api[Ext.data.Api.actions.destroy] = true;\n'
20130515 '    Ext.data.MemoryProxy.superclass.constructor.call(this, {\n'
20130515 '        api: api\n'
20130515 '    });\n'
20130515 '    this.data = data;\n'
20130515 '};\n'
20130515 'Ext.extend(Ext.data.MemoryProxy, Ext.data.DataProxy, {\n'
20130515 '    doRequest : function(action, rs, params, reader, callback, scope, arg) {\n'
20130515 '        callback.call(scope, null, arg, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "// This heinous override is required to fix IE9's removal of createContextualFragment.\n"
20130515 "// Unfortunately since DomHelper is a singleton there's not much of a way around it.\n"
20130515 'Ext.apply(Ext.DomHelper,\n'
20130515 'function(){\n'
20130515 '    var tempTableEl = null,\n'
20130515 '        emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,\n'
20130515 '        tableRe = /^table|tbody|tr|td$/i,\n'
20130515 '        confRe = /tag|children|cn|html$/i,\n'
20130515 '        tableElRe = /td|tr|tbody/i,\n'
20130515 '        cssRe = /([a-z0-9-]+)\\s*:\\s*([^;\\s]+(?:\\s*[^;\\s]+)*);?/gi,\n'
20130515 '        endRe = /end/i,\n'
20130515 '        pub,\n'
20130515 '        // kill repeat to save bytes\n'
20130515 "        afterbegin = 'afterbegin',\n"
20130515 "        afterend = 'afterend',\n"
20130515 "        beforebegin = 'beforebegin',\n"
20130515 "        beforeend = 'beforeend',\n"
20130515 "        ts = '<table>',\n"
20130515 "        te = '</table>',\n"
20130515 "        tbs = ts+'<tbody>',\n"
20130515 "        tbe = '</tbody>'+te,\n"
20130515 "        trs = tbs + '<tr>',\n"
20130515 "        tre = '</tr>'+tbe;\n"
20130515 '\n'
20130515 '    // private\n'
20130515 '    function doInsert(el, o, returnElement, pos, sibling, append){\n'
20130515 '        var newNode = pub.insertHtml(pos, Ext.getDom(el), createHtml(o));\n'
20130515 '        return returnElement ? Ext.get(newNode, true) : newNode;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // build as innerHTML where available\n'
20130515 '    function createHtml(o){\n'
20130515 "        var b = '',\n"
20130515 '            attr,\n'
20130515 '            val,\n'
20130515 '            key,\n'
20130515 '            cn;\n'
20130515 '\n'
20130515 '        if(typeof o == "string"){\n'
20130515 '            b = o;\n'
20130515 '        } else if (Ext.isArray(o)) {\n'
20130515 '            for (var i=0; i < o.length; i++) {\n'
20130515 '                if(o[i]) {\n'
20130515 '                    b += createHtml(o[i]);\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '        } else {\n'
20130515 "            b += '<' + (o.tag = o.tag || 'div');\n"
20130515 '            for (attr in o) {\n'
20130515 '                val = o[attr];\n'
20130515 '                if(!confRe.test(attr)){\n'
20130515 '                    if (typeof val == "object") {\n'
20130515 '                        b += \' \' + attr + \'="\';\n'
20130515 '                        for (key in val) {\n'
20130515 "                            b += key + ':' + val[key] + ';';\n"
20130515 '                        };\n'
20130515 '                        b += \'"\';\n'
20130515 '                    }else{\n'
20130515 '                        b += \' \' + ({cls : \'class\', htmlFor : \'for\'}[attr] || attr) + \'="\' + val + \'"\';\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            };\n'
20130515 '            // Now either just close the tag or try to add children and close the tag.\n'
20130515 '            if (emptyTags.test(o.tag)) {\n'
20130515 "                b += '/>';\n"
20130515 '            } else {\n'
20130515 "                b += '>';\n"
20130515 '                if ((cn = o.children || o.cn)) {\n'
20130515 '                    b += createHtml(cn);\n'
20130515 '                } else if(o.html){\n'
20130515 '                    b += o.html;\n'
20130515 '                }\n'
20130515 "                b += '</' + o.tag + '>';\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return b;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    function ieTable(depth, s, h, e){\n'
20130515 "        tempTableEl.innerHTML = [s, h, e].join('');\n"
20130515 '        var i = -1,\n'
20130515 '            el = tempTableEl,\n'
20130515 '            ns;\n'
20130515 '        while(++i < depth){\n'
20130515 '            el = el.firstChild;\n'
20130515 '        }\n'
20130515 '//      If the result is multiple siblings, then encapsulate them into one fragment.\n'
20130515 '        if(ns = el.nextSibling){\n'
20130515 '            var df = document.createDocumentFragment();\n'
20130515 '            while(el){\n'
20130515 '                ns = el.nextSibling;\n'
20130515 '                df.appendChild(el);\n'
20130515 '                el = ns;\n'
20130515 '            }\n'
20130515 '            el = df;\n'
20130515 '        }\n'
20130515 '        return el;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @ignore\n'
20130515 "     * Nasty code for IE's broken table implementation\n"
20130515 '     */\n'
20130515 '    function insertIntoTable(tag, where, el, html) {\n'
20130515 '        var node,\n'
20130515 '            before;\n'
20130515 '\n'
20130515 "        tempTableEl = tempTableEl || document.createElement('div');\n"
20130515 '\n'
20130515 "        if(tag == 'td' && (where == afterbegin || where == beforeend) ||\n"
20130515 '           !tableElRe.test(tag) && (where == beforebegin || where == afterend)) {\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        before = where == beforebegin ? el :\n'
20130515 '                 where == afterend ? el.nextSibling :\n'
20130515 '                 where == afterbegin ? el.firstChild : null;\n'
20130515 '\n'
20130515 '        if (where == beforebegin || where == afterend) {\n'
20130515 '            el = el.parentNode;\n'
20130515 '        }\n'
20130515 '\n'
20130515 "        if (tag == 'td' || (tag == 'tr' && (where == beforeend || where == afterbegin))) {\n"
20130515 '            node = ieTable(4, trs, html, tre);\n'
20130515 "        } else if ((tag == 'tbody' && (where == beforeend || where == afterbegin)) ||\n"
20130515 "                   (tag == 'tr' && (where == beforebegin || where == afterend))) {\n"
20130515 '            node = ieTable(3, tbs, html, tbe);\n'
20130515 '        } else {\n'
20130515 '            node = ieTable(2, ts, html, te);\n'
20130515 '        }\n'
20130515 '        el.insertBefore(node, before);\n'
20130515 '        return node;\n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '    pub = {\n'
20130515 '        /**\n'
20130515 '         * Returns the markup for the passed Element(s) config.\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @return {String}\n'
20130515 '         */\n'
20130515 '        markup : function(o){\n'
20130515 '            return createHtml(o);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Applies a style specification to an element.\n'
20130515 '         * @param {String/HTMLElement} el The element to apply styles to\n'
20130515 "         * @param {String/Object/Function} styles A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or\n"
20130515 '         * a function which returns such a specification.\n'
20130515 '         */\n'
20130515 '        applyStyles : function(el, styles){\n'
20130515 '            if (styles) {\n'
20130515 '                var matches;\n'
20130515 '\n'
20130515 '                el = Ext.fly(el);\n'
20130515 '                if (typeof styles == "function") {\n'
20130515 '                    styles = styles.call();\n'
20130515 '                }\n'
20130515 '                if (typeof styles == "string") {\n'
20130515 '                    /**\n'
20130515 "                     * Since we're using the g flag on the regex, we need to set the lastIndex.\n"
20130515 '                     * This automatically happens on some implementations, but not others, see:\n'
20130515 '                     * http://stackoverflow.com/questions/2645273/javascript-regular-expression-literal-persists-between-function-calls\n'
20130515 '                     * http://blog.stevenlevithan.com/archives/fixing-javascript-regexp\n'
20130515 '                     */\n'
20130515 '                    cssRe.lastIndex = 0;\n'
20130515 '                    while ((matches = cssRe.exec(styles))) {\n'
20130515 '                        el.setStyle(matches[1], matches[2]);\n'
20130515 '                    }\n'
20130515 '                } else if (typeof styles == "object") {\n'
20130515 '                    el.setStyle(styles);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Inserts an HTML fragment into the DOM.\n'
20130515 '         * @param {String} where Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd.\n'
20130515 '         * @param {HTMLElement} el The context element\n'
20130515 '         * @param {String} html The HTML fragment\n'
20130515 '         * @return {HTMLElement} The new node\n'
20130515 '         */\n'
20130515 '        insertHtml : function(where, el, html){\n'
20130515 '            var hash = {},\n'
20130515 '                hashVal,\n'
20130515 '                setStart,\n'
20130515 '                range,\n'
20130515 '                frag,\n'
20130515 '                rangeEl,\n'
20130515 '                rs,\n'
20130515 '                temp;\n'
20130515 '\n'
20130515 '            where = where.toLowerCase();\n'
20130515 '            // add these here because they are used in both branches of the condition.\n'
20130515 "            hash[beforebegin] = ['BeforeBegin', 'previousSibling'];\n"
20130515 "            hash[afterend] = ['AfterEnd', 'nextSibling'];\n"
20130515 '\n'
20130515 '            if (el.insertAdjacentHTML) {\n'
20130515 '                if(tableRe.test(el.tagName) && (rs = insertIntoTable(el.tagName.toLowerCase(), where, el, html))){\n'
20130515 '                    return rs;\n'
20130515 '                }\n'
20130515 '                // add these two to the hash.\n'
20130515 "                hash[afterbegin] = ['AfterBegin', 'firstChild'];\n"
20130515 "                hash[beforeend] = ['BeforeEnd', 'lastChild'];\n"
20130515 '                if ((hashVal = hash[where])) {\n'
20130515 '                    el.insertAdjacentHTML(hashVal[0], html);\n'
20130515 '                    return el[hashVal[1]];\n'
20130515 '                }\n'
20130515 '            } else {\n'
20130515 '                range = el.ownerDocument.createRange();\n'
20130515 "                setStart = 'setStart' + (endRe.test(where) ? 'After' : 'Before');\n"
20130515 '                if (hash[where]) {\n'
20130515 '                    range[setStart](el);\n'
20130515 '                    if (range.createContextualFragment) {\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                    } else {\n'
20130515 '                        frag = document.createDocumentFragment(), \n'
20130515 "                        temp = document.createElement('div');\n"
20130515 '                        frag.appendChild(temp);\n'
20130515 '                        temp.outerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    el.parentNode.insertBefore(frag, where == beforebegin ? el : el.nextSibling);\n'
20130515 "                    return el[(where == beforebegin ? 'previous' : 'next') + 'Sibling'];\n"
20130515 '                } else {\n'
20130515 "                    rangeEl = (where == afterbegin ? 'first' : 'last') + 'Child';\n"
20130515 '                    if (el.firstChild) {\n'
20130515 '                        range[setStart](el[rangeEl]);\n'
20130515 '                        frag = range.createContextualFragment(html);\n'
20130515 '                        if(where == afterbegin){\n'
20130515 '                            el.insertBefore(frag, el.firstChild);\n'
20130515 '                        }else{\n'
20130515 '                            el.appendChild(frag);\n'
20130515 '                        }\n'
20130515 '                    } else {\n'
20130515 '                        el.innerHTML = html;\n'
20130515 '                    }\n'
20130515 '                    return el[rangeEl];\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '            throw \'Illegal insertion point -> "\' + where + \'"\';\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them before el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertBefore : function(el, o, returnElement){\n'
20130515 '            return doInsert(el, o, returnElement, beforebegin);\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them after el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object} o The DOM object spec (and children)\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertAfter : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterend, 'nextSibling');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and inserts them as the first child of el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        insertFirst : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, afterbegin, 'firstChild');\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and appends them to el.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        append : function(el, o, returnElement){\n'
20130515 "            return doInsert(el, o, returnElement, beforeend, '', true);\n"
20130515 '        },\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * Creates new DOM element(s) and overwrites the contents of el with them.\n'
20130515 '         * @param {Mixed} el The context element\n'
20130515 '         * @param {Object/String} o The DOM object spec (and children) or raw HTML blob\n'
20130515 '         * @param {Boolean} returnElement (optional) true to return a Ext.Element\n'
20130515 '         * @return {HTMLElement/Ext.Element} The new node\n'
20130515 '         */\n'
20130515 '        overwrite : function(el, o, returnElement){\n'
20130515 '            el = Ext.getDom(el);\n'
20130515 '            el.innerHTML = createHtml(o);\n'
20130515 '            return returnElement ? Ext.get(el.firstChild) : el.firstChild;\n'
20130515 '        },\n'
20130515 '\n'
20130515 '        createHtml : createHtml\n'
20130515 '    };\n'
20130515 '    return pub;\n'
20130515 '}());\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the all-day event container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. Internally the majority of the layout logic is deferred to an instance of\n'
20130515 ' * {@link Ext.ensible.cal.BoxLayoutTemplate}.</p> \n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayBodyTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    this.allDayTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\n'
20130515 '    this.allDayTpl.compile();\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayHeaderTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<div class="ext-cal-hd-ct">\',\n'
20130515 '            \'<table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0">\',\n'
20130515 "                '<tbody>',\n"
20130515 "                    '<tr>',\n"
20130515 '                        \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                        \'<td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner">{allDayTpl}</div></td>\',\n'
20130515 '                        \'<td class="ext-cal-gutter-rt"></td>\',\n'
20130515 "                    '</tr>',\n"
20130515 "                '</tbody>',\n"
20130515 "            '</table>',\n"
20130515 "        '</div>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayHeaderTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        return Ext.ensible.cal.DayHeaderTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            allDayTpl: this.allDayTpl.apply(o)\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayHeaderTemplate.prototype.apply = Ext.ensible.cal.DayHeaderTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render the scrolling body container used in {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.ensible.cal.DayViewTemplate}\n'
20130515 ' * that internally creates an instance of this template along with a {@link Ext.ensible.cal.DayHeaderTemplate}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.DayBodyTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:{dayHeight}px;">\',\n'
20130515 "            '<tbody>',\n"
20130515 '                \'<tr height="1">\',\n'
20130515 '                    \'<td class="ext-cal-gutter"></td>\',\n'
20130515 '                    \'<td colspan="{dayCount}">\',\n'
20130515 '                        \'<div class="ext-cal-bg-rows">\',\n'
20130515 '                            \'<div class="ext-cal-bg-rows-inner">\',\n'
20130515 '                                \'<tpl for="times">\',\n'
20130515 '                                    \'<div class="ext-cal-bg-row ext-row-{[xindex]}" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                        \'<div class="ext-cal-bg-row-div {parent.hourSeparatorCls}" style="height:{parent.hourSeparatorHeight}px;"></div>\',\n'
20130515 "                                    '</div>',\n"
20130515 "                                '</tpl>',\n"
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</td>',\n"
20130515 "                '</tr>',\n"
20130515 "                '<tr>',\n"
20130515 '                    \'<td class="ext-cal-day-times">\',\n'
20130515 '                        \'<tpl for="times">\',\n'
20130515 '                            \'<div class="ext-cal-bg-row" style="height:{parent.hourHeight}px;">\',\n'
20130515 '                                \'<div class="ext-cal-day-time-inner"  style="height:{parent.hourHeight-1}px;">{.}</div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</tpl>',\n"
20130515 "                    '</td>',\n"
20130515 '                    \'<tpl for="days">\',\n'
20130515 '                        \'<td class="ext-cal-day-col">\',\n'
20130515 '                            \'<div class="ext-cal-day-col-inner">\',\n'
20130515 '                                \'<div id="{[this.id]}-day-col-{.:date("Ymd")}" class="ext-cal-day-col-gutter" style="height:{parent.dayHeight}px;"></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</td>',\n"
20130515 "                    '</tpl>',\n"
20130515 "                '</tr>',\n"
20130515 "            '</tbody>',\n"
20130515 "        '</table>'\n"
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.DayBodyTemplate, Ext.XTemplate, {\n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        this.today = new Date().clearTime();\n'
20130515 '        this.dayCount = this.dayCount || 1;\n'
20130515 '        \n'
20130515 '        var i = 0, days = [],\n'
20130515 '            dt = o.viewStart.clone();\n'
20130515 '            \n'
20130515 '        for(; i<this.dayCount; i++){\n'
20130515 '            days[i] = dt.add(Date.DAY, i);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        var times = [],\n'
20130515 '            start = this.viewStartHour,\n'
20130515 '            end = this.viewEndHour,\n'
20130515 '            mins = this.hourIncrement,\n'
20130515 '            dayHeight = this.hourHeight * (end - start)\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i' : 'ga';\n"
20130515 '        \n'
20130515 "        // use a fixed DST-safe date so times don't get skipped on DST boundaries\n"
20130515 "        dt = new Date('1/1/2010').clearTime().add(Date.HOUR, start);\n"
20130515 '        \n'
20130515 '        for(i=start; i<end; i++){\n'
20130515 '            times.push(dt.format(fmt));\n'
20130515 '            dt = dt.add(Date.MINUTE, mins);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.DayBodyTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            days: days,\n'
20130515 '            dayCount: days.length,\n'
20130515 '            times: times,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            hourSeparatorCls: this.showHourSeparator ? '' : 'no-sep', // the class suppresses the default separator\n"
20130515 '            dayHeight: dayHeight,\n'
20130515 '            hourSeparatorHeight: (this.hourHeight / 2) - 1\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.DayBodyTemplate.prototype.apply = Ext.ensible.cal.DayBodyTemplate.prototype.applyTemplate;\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.BoxLayoutTemplate\n'
20130515 ' * @extends Ext.XTemplate\n'
20130515 ' * <p>This is the template used to render calendar views based on small day boxes within a non-scrolling container (currently\n'
20130515 ' * the {@link Ext.ensible.cal.MonthView MonthView} and the all-day headers for {@link Ext.ensible.cal.DayView DayView} and \n'
20130515 ' * {@link Ext.ensible.cal.WeekView WeekView}. This template is automatically bound to the underlying event store by the \n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate = function(config){\n'
20130515 '    \n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    \n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div id="{weekLinkId}" class="ext-cal-week-link">{weekNum}</div>\' : \'\';\n'
20130515 '    \n'
20130515 '    Ext.ensible.cal.BoxLayoutTemplate.superclass.constructor.call(this,\n'
20130515 '        \'<tpl for="weeks">\',\n'
20130515 '            \'<div id="{[this.id]}-wk-{[xindex-1]}" class="ext-cal-wk-ct" style="top:{[this.getRowTop(xindex, xcount)]}%; height:{[this.getRowHeight(xcount)]}%;">\',\n'
20130515 '                weekLinkTpl,\n'
20130515 '                \'<table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                 \'<td id="{[this.id]}-day-{date:date("Ymd")}" class="{cellCls}">&#160;</td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 '                \'<table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0">\',\n'
20130515 "                    '<tbody>',\n"
20130515 "                        '<tr>',\n"
20130515 '                            \'<tpl for=".">\',\n'
20130515 '                                \'<td id="{[this.id]}-ev-day-{date:date("Ymd")}" class="{titleCls}"><div>{title}</div></td>\',\n'
20130515 "                            '</tpl>',\n"
20130515 "                        '</tr>',\n"
20130515 "                    '</tbody>',\n"
20130515 "                '</table>',\n"
20130515 "            '</div>',\n"
20130515 "        '</tpl>', {\n"
20130515 '            getRowTop: function(i, ln){\n'
20130515 '                return ((i-1)*(100/ln));\n'
20130515 '            },\n'
20130515 '            getRowHeight: function(ln){\n'
20130515 '                return 100/ln;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.BoxLayoutTemplate, Ext.XTemplate, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} firstWeekDateFormat\n'
20130515 '     * The date format used for the day boxes in the first week of the view only (subsequent weeks\n'
20130515 "     * use the {@link #otherWeeksDateFormat} config). Defaults to 'D j'. Note that if the day names header is displayed\n"
20130515 '     * above the first row (e.g., {@link Ext.ensible.cal.MonthView#showHeader MonthView.showHeader} = true)\n'
20130515 '     * then this value is ignored and {@link #otherWeeksDateFormat} will be used instead.\n'
20130515 '     */\n'
20130515 "    firstWeekDateFormat: 'D j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} otherWeeksDateFormat\n'
20130515 '     * The date format used for the date in day boxes (other than the first week, which is controlled by\n'
20130515 "     * {@link #firstWeekDateFormat}). Defaults to 'j'.\n"
20130515 '     */\n'
20130515 "    otherWeeksDateFormat: 'j',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} singleDayDateFormat\n'
20130515 "     * The date format used for the date in the header when in single-day view (defaults to 'l, F j, Y').\n"
20130515 '     */\n'
20130515 "    singleDayDateFormat: 'l, F j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayFirstDayFormat\n'
20130515 "     * The date format used for the date in the header when more than one day are visible (defaults to 'M j, Y').\n"
20130515 '     */\n'
20130515 "    multiDayFirstDayFormat: 'M j, Y',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayMonthStartFormat\n'
20130515 "     * The date format to use for the first day in a month when more than one day are visible (defaults to 'M j').\n"
20130515 '     * Note that if this day falls on the first day within the view, {@link #multiDayFirstDayFormat} takes precedence.\n'
20130515 '     */\n'
20130515 "    multiDayMonthStartFormat: 'M j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    applyTemplate : function(o){\n'
20130515 '        \n'
20130515 '        Ext.apply(this, o);\n'
20130515 '        \n'
20130515 "        var w = 0, title = '', first = true, isToday = false, showMonth = false, \n"
20130515 '            prevMonth = false, nextMonth = false, isWeekend = false,\n'
20130515 '            weekendCls = o.weekendCls,\n'
20130515 '            prevMonthCls = o.prevMonthCls,\n'
20130515 '            nextMonthCls = o.nextMonthCls,\n'
20130515 '            todayCls = o.todayCls,\n'
20130515 '            weeks = [[]],\n'
20130515 '            today = new Date().clearTime(),\n'
20130515 '            dt = this.viewStart.clone(),\n'
20130515 '            thisMonth = this.startDate.getMonth();\n'
20130515 '        \n'
20130515 '        for(; w < this.weekCount || this.weekCount == -1; w++){\n'
20130515 '            if(dt > this.viewEnd){\n'
20130515 '                break;\n'
20130515 '            }\n'
20130515 '            weeks[w] = [];\n'
20130515 '            \n'
20130515 '            for(var d = 0; d < this.dayCount; d++){\n'
20130515 '                isToday = dt.getTime() === today.getTime();\n'
20130515 '                showMonth = first || (dt.getDate() == 1);\n'
20130515 '                prevMonth = (dt.getMonth() < thisMonth) && this.weekCount == -1;\n'
20130515 '                nextMonth = (dt.getMonth() > thisMonth) && this.weekCount == -1;\n'
20130515 '                isWeekend = dt.getDay() % 6 === 0;\n'
20130515 '                \n'
20130515 '                if(dt.getDay() == 1){\n'
20130515 "                    // The ISO week format 'W' is relative to a Monday week start. If we\n"
20130515 '                    // make this check on Sunday the week number will be off.\n'
20130515 "                    weeks[w].weekNum = this.showWeekNumbers ? dt.format('W') : '&#160;';\n"
20130515 "                    weeks[w].weekLinkId = 'ext-cal-week-'+dt.format('Ymd');\n"
20130515 '                }\n'
20130515 '                \n'
20130515 '                if(showMonth){\n'
20130515 '                    if(isToday){\n'
20130515 '                        title = this.getTodayText();\n'
20130515 '                    }\n'
20130515 '                    else{\n'
20130515 '                        title = dt.format(this.dayCount == 1 ? this.singleDayDateFormat : \n'
20130515 '                                (first ? this.multiDayFirstDayFormat : this.multiDayMonthStartFormat));\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    var dayFmt = (w == 0 && this.showHeader !== true) ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '                    title = isToday ? this.getTodayText() : dt.format(dayFmt);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                weeks[w].push({\n'
20130515 '                    title: title,\n'
20130515 '                    date: dt.clone(),\n'
20130515 "                    titleCls: 'ext-cal-dtitle ' + (isToday ? ' ext-cal-dtitle-today' : '') + \n"
20130515 "                        (w==0 ? ' ext-cal-dtitle-first' : '') +\n"
20130515 "                        (prevMonth ? ' ext-cal-dtitle-prev' : '') + \n"
20130515 "                        (nextMonth ? ' ext-cal-dtitle-next' : ''),\n"
20130515 "                    cellCls: 'ext-cal-day ' + (isToday ? ' '+todayCls : '') + \n"
20130515 "                        (d==0 ? ' ext-cal-day-first' : '') +\n"
20130515 "                        (prevMonth ? ' '+prevMonthCls : '') +\n"
20130515 "                        (nextMonth ? ' '+nextMonthCls : '') +\n"
20130515 "                        (isWeekend && weekendCls ? ' '+weekendCls : '')\n"
20130515 '                });\n'
20130515 '                dt = dt.add(Date.DAY, 1);\n'
20130515 '                first = false;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return Ext.ensible.cal.BoxLayoutTemplate.superclass.applyTemplate.call(this, {\n'
20130515 '            weeks: weeks\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTodayText : function(){\n'
20130515 "        var timeFmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            todayText = this.showTodayText !== false ? this.todayText : '',\n"
20130515 '            timeText = this.showTime !== false ? \' <span id="\'+this.id+\'-clock" class="ext-cal-dtitle-time">\' + \n'
20130515 "                    new Date().format(timeFmt) + '</span>' : '',\n"
20130515 "            separator = todayText.length > 0 || timeText.length > 0 ? ' &#8212; ' : ''; // &#8212; == &mdash;\n"
20130515 '        \n'
20130515 '        if(this.dayCount == 1){\n'
20130515 '            return new Date().format(this.singleDayDateFormat) + separator + todayText + timeText;\n'
20130515 '        }\n'
20130515 '        fmt = this.weekCount == 1 ? this.firstWeekDateFormat : this.otherWeeksDateFormat;\n'
20130515 '        return todayText.length > 0 ? todayText + timeText : new Date().format(fmt) + timeText;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.BoxLayoutTemplate.prototype.apply = Ext.ensible.cal.BoxLayoutTemplate.prototype.applyTemplate;\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthViewTemplate\r\n'
20130515 ' * @extends Ext.XTemplate\r\n'
20130515 ' * <p>This is the template used to render the {@link Ext.ensible.cal.MonthView MonthView}. Internally this class defers to an\r\n'
20130515 ' * instance of {@link Ext.calerndar.BoxLayoutTemplate} to handle the inner layout rendering and adds containing elements around\r\n'
20130515 ' * that to form the month view.</p> \r\n'
20130515 ' * <p>This template is automatically bound to the underlying event store by the \r\n'
20130515 ' * calendar components and expects records of type {@link Ext.ensible.cal.EventRecord}.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate = function(config){\r\n'
20130515 '    \r\n'
20130515 '    Ext.apply(this, config);\r\n'
20130515 '    \r\n'
20130515 '    this.weekTpl = new Ext.ensible.cal.BoxLayoutTemplate(config);\r\n'
20130515 '    this.weekTpl.compile();\r\n'
20130515 '    \r\n'
20130515 '    var weekLinkTpl = this.showWeekLinks ? \'<div class="ext-cal-week-link-hd">&#160;</div>\' : \'\';\r\n'
20130515 '    \r\n'
20130515 '    Ext.ensible.cal.MonthViewTemplate.superclass.constructor.call(this,\r\n'
20130515 '\t    \'<div class="ext-cal-inner-ct {extraClasses}">\',\r\n'
20130515 '            \'<div class="ext-cal-hd-ct ext-cal-month-hd">\',\r\n'
20130515 '                weekLinkTpl,\r\n'
20130515 '\t\t        \'<table class="ext-cal-hd-days-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t            '<tbody>',\r\n"
20130515 "                        '<tr>',\r\n"
20130515 '                            \'<tpl for="days">\',\r\n'
20130515 '\t\t                        \'<th class="ext-cal-hd-day{[xindex==1 ? " ext-cal-day-first" : ""]}" title="{title}">{name}</th>\',\r\n'
20130515 "\t\t                    '</tpl>',\r\n"
20130515 "                        '</tr>',\r\n"
20130515 "\t\t            '</tbody>',\r\n"
20130515 "\t\t        '</table>',\r\n"
20130515 "            '</div>',\r\n"
20130515 '\t        \'<div class="ext-cal-body-ct">{weeks}</div>\',\r\n'
20130515 "        '</div>'\r\n"
20130515 '    );\r\n'
20130515 '};\r\n'
20130515 '\r\n'
20130515 'Ext.extend(Ext.ensible.cal.MonthViewTemplate, Ext.XTemplate, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderFormat\r\n'
20130515 "     * The date format to use for day headers, if used (defaults to 'D', e.g. 'Mon' for Monday)\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderFormat: 'D',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dayHeaderTitleFormat\r\n'
20130515 "     * The date format to use for the day header's HTML title attribute displayed on mouseover \r\n"
20130515 "     * (defaults to 'l, F j, Y', e.g. 'Monday, December 27, 2010')\r\n"
20130515 '     */\r\n'
20130515 "    dayHeaderTitleFormat: 'l, F j, Y',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    applyTemplate : function(o){\r\n'
20130515 '        var days = [],\r\n'
20130515 '            weeks = this.weekTpl.apply(o),\r\n'
20130515 '            dt = o.viewStart;\r\n'
20130515 '        \r\n'
20130515 '        for(var i = 0; i < 7; i++){\r\n'
20130515 '            var d = dt.add(Date.DAY, i);\r\n'
20130515 '            days.push({\r\n'
20130515 '                name: d.format(this.dayHeaderFormat),\r\n'
20130515 '                title: d.format(this.dayHeaderTitleFormat)\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        var extraClasses = this.showHeader === true ? '' : 'ext-cal-noheader';\r\n"
20130515 '        if(this.showWeekLinks){\r\n'
20130515 "            extraClasses += ' ext-cal-week-links';\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return Ext.ensible.cal.MonthViewTemplate.superclass.applyTemplate.call(this, {\r\n'
20130515 '            days: days,\r\n'
20130515 '            weeks: weeks,\r\n'
20130515 '            extraClasses: extraClasses\r\n'
20130515 '        });\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 'Ext.ensible.cal.MonthViewTemplate.prototype.apply = Ext.ensible.cal.MonthViewTemplate.prototype.applyTemplate;\r\n'
20130515 '/* @private\n'
20130515 ' * @class Ext.dd.ScrollManager\n'
20130515 ' * <p>Provides automatic scrolling of overflow regions in the page during drag operations.</p>\n'
20130515 ' * <p>The ScrollManager configs will be used as the defaults for any scroll container registered with it,\n'
20130515 ' * but you can also override most of the configs per scroll container by adding a \n'
20130515 ' * <tt>ddScrollConfig</tt> object to the target element that contains these properties: {@link #hthresh},\n'
20130515 ' * {@link #vthresh}, {@link #increment} and {@link #frequency}.  Example usage:\n'
20130515 ' * <pre><code>\n'
20130515 "var el = Ext.get('scroll-ct');\n"
20130515 'el.ddScrollConfig = {\n'
20130515 '    vthresh: 50,\n'
20130515 '    hthresh: -1,\n'
20130515 '    frequency: 100,\n'
20130515 '    increment: 200\n'
20130515 '};\n'
20130515 'Ext.dd.ScrollManager.register(el);\n'
20130515 '</code></pre>\n'
20130515 ' * <b>Note: This class uses "Point Mode" and is untested in "Intersect Mode".</b>\n'
20130515 ' * @singleton\n'
20130515 ' */\n'
20130515 'Ext.dd.ScrollManager = function(){\n'
20130515 '    var ddm = Ext.dd.DragDropMgr;\n'
20130515 '    var els = {};\n'
20130515 '    var dragEl = null;\n'
20130515 '    var proc = {};\n'
20130515 '    \n'
20130515 '    var onStop = function(e){\n'
20130515 '        dragEl = null;\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var triggerRefresh = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '             ddm.refreshCache(ddm.dragCurrent.groups);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var doScroll = function(){\n'
20130515 '        if(ddm.dragCurrent){\n'
20130515 '            var dds = Ext.dd.ScrollManager;\n'
20130515 '            var inc = proc.el.ddScrollConfig ?\n'
20130515 '                      proc.el.ddScrollConfig.increment : dds.increment;\n'
20130515 '            if(!dds.animate){\n'
20130515 '                if(proc.el.scroll(proc.dir, inc)){\n'
20130515 '                    triggerRefresh();\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                proc.el.scroll(proc.dir, inc, true, dds.animDuration, triggerRefresh);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var clearProc = function(){\n'
20130515 '        if(proc.id){\n'
20130515 '            clearInterval(proc.id);\n'
20130515 '        }\n'
20130515 '        proc.id = 0;\n'
20130515 '        proc.el = null;\n'
20130515 '        proc.dir = "";\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var startProc = function(el, dir){\n'
20130515 '        clearProc();\n'
20130515 '        proc.el = el;\n'
20130515 '        proc.dir = dir;\n'
20130515 '        var freq = (el.ddScrollConfig && el.ddScrollConfig.frequency) ? \n'
20130515 '                el.ddScrollConfig.frequency : Ext.dd.ScrollManager.frequency,\n'
20130515 '            group = el.ddScrollConfig ? el.ddScrollConfig.ddGroup : undefined;\n'
20130515 '        \n'
20130515 '        if(group === undefined || ddm.dragCurrent.ddGroup == group){\n'
20130515 '            proc.id = setInterval(doScroll, freq);\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    var onFire = function(e, isDrop){\n'
20130515 '        if(isDrop || !ddm.dragCurrent){ return; }\n'
20130515 '        var dds = Ext.dd.ScrollManager;\n'
20130515 '        if(!dragEl || dragEl != ddm.dragCurrent){\n'
20130515 '            dragEl = ddm.dragCurrent;\n'
20130515 '            // refresh regions on drag start\n'
20130515 '            dds.refreshCache();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var xy = Ext.lib.Event.getXY(e);\n'
20130515 '        var pt = new Ext.lib.Point(xy[0], xy[1]);\n'
20130515 '        for(var id in els){\n'
20130515 '            var el = els[id], r = el._region;\n'
20130515 '            var c = el.ddScrollConfig ? el.ddScrollConfig : dds;\n'
20130515 '            if(r && r.contains(pt) && el.isScrollable()){\n'
20130515 '                if(r.bottom - pt.y <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "down");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(r.right - pt.x <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "left");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.y - r.top <= c.vthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "up");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }else if(pt.x - r.left <= c.hthresh){\n'
20130515 '                    if(proc.el != el){\n'
20130515 '                        startProc(el, "right");\n'
20130515 '                    }\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        clearProc();\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    ddm.fireEvents = ddm.fireEvents.createSequence(onFire, ddm);\n'
20130515 '    ddm.stopDrag = ddm.stopDrag.createSequence(onStop, ddm);\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        /**\n'
20130515 '         * Registers new overflow element(s) to auto scroll\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be scrolled or an array of either\n'
20130515 '         */\n'
20130515 '        register : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.register(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                els[el.id] = el;\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Unregisters overflow element(s) so they are no longer scrolled\n'
20130515 '         * @param {Mixed/Array} el The id of or the element to be removed or an array of either\n'
20130515 '         */\n'
20130515 '        unregister : function(el){\n'
20130515 '            if(Ext.isArray(el)){\n'
20130515 '                for(var i = 0, len = el.length; i < len; i++) {\n'
20130515 '                    this.unregister(el[i]);\n'
20130515 '                }\n'
20130515 '            }else{\n'
20130515 '                el = Ext.get(el);\n'
20130515 '                delete els[el.id];\n'
20130515 '            }\n'
20130515 '        },\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the top or bottom edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        vthresh : 25,\n'
20130515 '        /**\n'
20130515 '         * The number of pixels from the right or left edge of a container the pointer needs to be to\n'
20130515 '         * trigger scrolling (defaults to 25)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        hthresh : 25,\n'
20130515 '\n'
20130515 '        /**\n'
20130515 '         * The number of pixels to scroll in each scroll increment (defaults to 50)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        increment : 100,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The frequency of scrolls in milliseconds (defaults to 500)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        frequency : 500,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * True to animate the scroll (defaults to true)\n'
20130515 '         * @type Boolean\n'
20130515 '         */\n'
20130515 '        animate: true,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * The animation duration in seconds - \n'
20130515 '         * MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4)\n'
20130515 '         * @type Number\n'
20130515 '         */\n'
20130515 '        animDuration: .4,\n'
20130515 '        \n'
20130515 '        /**\n'
20130515 '         * Manually trigger a cache refresh.\n'
20130515 '         */\n'
20130515 '        refreshCache : function(){\n'
20130515 '            for(var id in els){\n'
20130515 "                if(typeof els[id] == 'object'){ // for people extending the object prototype\n"
20130515 '                    els[id]._region = els[id].getRegion();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();/**\n'
20130515 ' * @class Ext.ensible.cal.StatusProxy\n'
20130515 ' * A specialized drag proxy that supports a drop status icon, {@link Ext.Layer} styles and auto-repair. It also\n'
20130515 " * contains a calendar-specific drag status message containing details about the dragged event's target drop date range.  \n"
20130515 ' * This is the default drag proxy used by all calendar views.\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.StatusProxy = function(config){\n'
20130515 '    Ext.apply(this, config);\n'
20130515 '    this.id = this.id || Ext.id();\n'
20130515 '    this.el = new Ext.Layer({\n'
20130515 '        dh: {\n'
20130515 "            id: this.id, cls: 'ext-dd-drag-proxy x-dd-drag-proxy '+this.dropNotAllowed, cn: [\n"
20130515 "                {cls: 'x-dd-drop-icon'},\n"
20130515 "                {cls: 'ext-dd-ghost-ct', cn:[\n"
20130515 "                    {cls: 'x-dd-drag-ghost'},\n"
20130515 "                    {cls: 'ext-dd-msg'}\n"
20130515 '                ]}\n'
20130515 '            ]\n'
20130515 '        }, \n'
20130515 '        shadow: !config || config.shadow !== false\n'
20130515 '    });\n'
20130515 '    this.ghost = Ext.get(this.el.dom.childNodes[1].childNodes[0]);\n'
20130515 '    this.message = Ext.get(this.el.dom.childNodes[1].childNodes[1]);\n'
20130515 '    this.dropStatus = this.dropNotAllowed;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Ext.extend(Ext.ensible.cal.StatusProxy, Ext.dd.StatusProxy, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} moveEventCls\n'
20130515 "     * The CSS class to apply to the status element when an event is being dragged (defaults to 'ext-cal-dd-move').\n"
20130515 '     */\n'
20130515 "    moveEventCls : 'ext-cal-dd-move',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} addEventCls\n'
20130515 "     * The CSS class to apply to the status element when drop is not allowed (defaults to 'ext-cal-dd-add').\n"
20130515 '     */\n'
20130515 "    addEventCls : 'ext-cal-dd-add',\n"
20130515 '\n'
20130515 '    // inherit docs\n'
20130515 '    update : function(html){\n'
20130515 "        if(typeof html == 'string'){\n"
20130515 '            this.ghost.update(html);\n'
20130515 '        }else{\n'
20130515 "            this.ghost.update('');\n"
20130515 "            html.style.margin = '0';\n"
20130515 '            this.ghost.dom.appendChild(html);\n'
20130515 '        }\n'
20130515 '        var el = this.ghost.dom.firstChild;\n'
20130515 '        if(el){\n'
20130515 "            Ext.fly(el).setStyle('float', 'none').setHeight('auto');\n"
20130515 "            Ext.getDom(el).id += '-ddproxy';\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /* @private\n'
20130515 '     * Update the calendar-specific drag status message without altering the ghost element.\n'
20130515 '     * @param {String} msg The new status message\n'
20130515 '     */\n'
20130515 '    updateMsg : function(msg){\n'
20130515 '        this.message.update(msg);\n'
20130515 '    }\n'
20130515 '});/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DragZone = Ext.extend(Ext.dd.DragZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 '    \n'
20130515 '    constructor : function(el, config){\n'
20130515 '        if(!Ext.ensible.cal._statusProxyInstance){\n'
20130515 '            Ext.ensible.cal._statusProxyInstance = new Ext.ensible.cal.StatusProxy();\n'
20130515 '        }\n'
20130515 '        this.proxy = Ext.ensible.cal._statusProxyInstance;\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.constructor.call(this, el, config);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        // Check whether we are dragging on an event first\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                start: t.date,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onInitDrag : function(x, y){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            var ghost = this.dragData.ddel.cloneNode(true),\n'
20130515 "                child = Ext.fly(ghost).child('dl');\n"
20130515 '            \n'
20130515 "            Ext.fly(ghost).setWidth('auto');\n"
20130515 '            \n'
20130515 '            if(child){\n'
20130515 '                // for IE/Opera\n'
20130515 "                child.setHeight('auto');\n"
20130515 '            }\n'
20130515 '            this.proxy.update(ghost);\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        else if(this.dragData.start){\n'
20130515 '            this.onStartDrag(x, y);\n'
20130515 '        }\n'
20130515 '        this.view.onInitDrag();\n'
20130515 '        return true;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterRepair : function(){\n'
20130515 '        if(Ext.enableFx && this.dragData.ddel){\n'
20130515 "            Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor || 'c3daf9');\n"
20130515 '        }\n'
20130515 '        this.dragging = false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getRepairXY : function(e){\n'
20130515 '        if(this.dragData.ddel){\n'
20130515 '            return Ext.Element.fly(this.dragData.ddel).getXY();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    afterInvalidDrop : function(e, id){\n'
20130515 "        Ext.select('.ext-dd-shim').hide();\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    destroy : function(){\n'
20130515 '        Ext.ensible.cal.DragZone.superclass.destroy.call(this);\n'
20130515 '        delete Ext.ensible.cal._statusProxyInstance;\n'
20130515 '    }    \n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar components. This provides base functionality\n'
20130515 ' * and is primarily for the month view -- DayViewDD adds day/week view-specific functionality.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DropZone = Ext.extend(Ext.dd.DropZone, {\n'
20130515 "    ddGroup : 'CalendarDD',\n"
20130515 "    eventSelector : '.ext-cal-evt',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    shims : [],\n'
20130515 '    \n'
20130515 '    getTargetFromEvent : function(e){\n'
20130515 '        var dragOffset = this.dragOffset || 0,\n'
20130515 '            y = e.getPageY() - dragOffset,\n'
20130515 '            d = this.view.getDayAt(e.getPageX(), y);\n'
20130515 '        \n'
20130515 '        return d.el ? d : null;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var D = Ext.ensible.Date,\n'
20130515 "            start = data.type == 'eventdrag' ? n.date : D.min(data.start, n.date),\n"
20130515 "            end = data.type == 'eventdrag' ? n.date.add(Date.DAY, D.diffDays(data.eventStart, data.eventEnd)) : \n"
20130515 '                D.max(data.start, n.date);\n'
20130515 '        \n'
20130515 '        if(!this.dragStartDate || !this.dragEndDate || (D.diffDays(start, this.dragStartDate) != 0) || (D.diffDays(end, this.dragEndDate) != 0)){\n'
20130515 '            this.dragStartDate = start;\n'
20130515 '            this.dragEndDate = end.clearTime().add(Date.DAY, 1).add(Date.MINUTE, -30);\n'
20130515 '            this.shim(start, end);\n'
20130515 '            \n'
20130515 '            var range = start.format(this.dateFormat);\n'
20130515 '                \n'
20130515 '            if(D.diffDays(start, end) > 0){\n'
20130515 '                end = end.format(this.dateFormat);\n'
20130515 '                range = String.format(this.dateRangeFormat, range, end);\n'
20130515 '            }\n'
20130515 "            var msg = String.format(data.type == 'eventdrag' ? this.moveText : this.createText, range);\n"
20130515 '            data.proxy.updateMsg(msg);\n'
20130515 '        }\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(start, end){\n'
20130515 '        this.currWeek = -1;\n'
20130515 '        var dt = start.clone(),\n'
20130515 '            i = 0, shim, box,\n'
20130515 '            cnt = Ext.ensible.Date.diffDays(dt, end)+1\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        while(i++ < cnt){\n'
20130515 '            var dayEl = this.view.getDayEl(dt);\n'
20130515 '            \n'
20130515 '            // if the date is not in the current view ignore it (this\n'
20130515 '            // can happen when an event is dragged to the end of the\n'
20130515 '            // month so that it ends outside the view)\n'
20130515 '            if(dayEl){\n'
20130515 '                var wk = this.view.getWeekIndex(dt),\n'
20130515 '                    shim = this.shims[wk];\n'
20130515 '            \n'
20130515 '                if(!shim){\n'
20130515 '                    shim = this.createShim();\n'
20130515 '                    this.shims[wk] = shim;\n'
20130515 '                }\n'
20130515 '                if(wk != this.currWeek){\n'
20130515 '                    shim.boxInfo = dayEl.getBox();\n'
20130515 '                    this.currWeek = wk;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box = dayEl.getBox();\n'
20130515 '                    shim.boxInfo.right = box.right;\n'
20130515 '                    shim.boxInfo.width = box.right - shim.boxInfo.x;\n'
20130515 '                }\n'
20130515 '                shim.isActive = true;\n'
20130515 '            }\n'
20130515 '            dt = dt.add(Date.DAY, 1);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                if(shim.isActive){\n'
20130515 '                    shim.show();\n'
20130515 '                    shim.setBox(shim.boxInfo);\n'
20130515 '                }\n'
20130515 '                else if(shim.isVisible()){\n'
20130515 '                    shim.hide();\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    createShim : function(){\n'
20130515 '        var owner = this.view.ownerCalendarPanel ? this.view.ownerCalendarPanel : this.view;\n'
20130515 '        if(!this.shimCt){\n'
20130515 "            this.shimCt = Ext.get('ext-dd-shim-ct-'+owner.id);\n"
20130515 '            if(!this.shimCt){\n'
20130515 "                this.shimCt = document.createElement('div');\n"
20130515 "                this.shimCt.id = 'ext-dd-shim-ct-'+owner.id;\n"
20130515 '                owner.getEl().parent().appendChild(this.shimCt);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 "        var el = document.createElement('div');\n"
20130515 "        el.className = 'ext-dd-shim';\n"
20130515 '        this.shimCt.appendChild(el);\n'
20130515 '        \n'
20130515 '        return new Ext.Layer({\n'
20130515 '            shadow:false, \n'
20130515 '            useDisplay:true, \n'
20130515 '            constrain:false\n'
20130515 '        }, el);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    clearShims : function(){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerOver : function(dd, e, data){\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onCalendarDragComplete : function(){\n'
20130515 '        delete this.dragStartDate;\n'
20130515 '        delete this.dragEndDate;\n'
20130515 '        this.clearShims();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel),\n'
20130515 '                    dt = Ext.ensible.Date.copyTime(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], n.date);\n'
20130515 '                    \n'
20130515 '                this.view.onEventDrop(rec, dt);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onContainerDrop : function(dd, e, data){\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drag zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDragZone = Ext.extend(Ext.ensible.cal.DragZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    resizeSelector : '.ext-evt-rsz',\n"
20130515 '    \n'
20130515 '    getDragData : function(e){\n'
20130515 '        var t = e.getTarget(this.resizeSelector, 2, true);\n'
20130515 '        if(t){\n'
20130515 '            var p = t.parent(this.eventSelector), \n'
20130515 '                rec = this.view.getEventRecordFromEl(p);\n'
20130515 '            \n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventresize',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: p.dom,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        var t = e.getTarget(this.eventSelector, 3);\n'
20130515 '        if(t){\n'
20130515 '            var rec = this.view.getEventRecordFromEl(t);\n'
20130515 '            if(!rec){\n'
20130515 '                // if rec is null here it usually means there was a timing issue between drag \n'
20130515 '                // start and the browser reporting it properly. Simply ignore and it will \n'
20130515 '                // resolve correctly once the browser catches up.\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '            return {\n'
20130515 "                type: 'eventdrag',\n"
20130515 '                xy: e.xy,\n'
20130515 '                ddel: t,\n'
20130515 '                eventStart: rec.data[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '                eventEnd: rec.data[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // If not dragging/resizing an event then we are dragging on \n'
20130515 '        // the calendar to add a new event\n'
20130515 '        t = this.view.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(t.el){\n'
20130515 '            return {\n'
20130515 "                type: 'caldrag',\n"
20130515 '                dayInfo: t,\n'
20130515 '                proxy: this.proxy\n'
20130515 '            };\n'
20130515 '        }\n'
20130515 '        return null;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/* @private\n'
20130515 ' * Internal drop zone implementation for the calendar day and week views.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayViewDropZone = Ext.extend(Ext.ensible.cal.DropZone, {\n'
20130515 "    ddGroup : 'DayViewDD',\n"
20130515 "    dateRangeFormat : '{0}-{1}',\n"
20130515 "    dateFormat : 'n/j',\n"
20130515 '    \n'
20130515 '    onNodeOver : function(n, dd, e, data){\n'
20130515 '        var dt, text = this.createText,\n'
20130515 "            timeFormat = Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia';\n"
20130515 '            \n'
20130515 "        if(data.type == 'caldrag'){\n"
20130515 '            if(!this.dragStartMarker){\n'
20130515 '                // Since the container can scroll, this gets a little tricky.\n'
20130515 '                // There is no el in the DOM that we can measure by default since\n'
20130515 '                // the box is simply calculated from the original drag start (as opposed\n'
20130515 '                // to dragging or resizing the event where the orig event box is present).\n'
20130515 '                // To work around this we add a placeholder el into the DOM and give it\n'
20130515 "                // the original starting time's box so that we can grab its updated\n"
20130515 '                // box measurements as the underlying container scrolls up or down.\n'
20130515 '                // This placeholder is removed in onNodeDrop.\n'
20130515 '                this.dragStartMarker = n.el.parent().createChild({\n'
20130515 "                    style: 'position:absolute;'\n"
20130515 '                });\n'
20130515 '                // use the original dayInfo values from the drag start\n'
20130515 '                this.dragStartMarker.setBox(data.dayInfo.timeBox);\n'
20130515 '                this.dragCreateDt = data.dayInfo.date;\n'
20130515 '            }\n'
20130515 '            var endDt, box = this.dragStartMarker.getBox();\n'
20130515 '            box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '            \n'
20130515 '            if(e.xy[1] < box.y){\n'
20130515 '                box.height += n.timeBox.height;\n'
20130515 '                box.y = box.y - box.height + n.timeBox.height;\n'
20130515 '                endDt = this.dragCreateDt.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '            }\n'
20130515 '            this.shim(this.dragCreateDt, box);\n'
20130515 '            \n'
20130515 '            var curr = Ext.ensible.Date.copyTime(n.date, this.dragCreateDt);\n'
20130515 '            this.dragStartDate = Ext.ensible.Date.min(this.dragCreateDt, curr);\n'
20130515 '            this.dragEndDate = endDt || Ext.ensible.Date.max(this.dragCreateDt, curr);\n'
20130515 '                \n'
20130515 '            dt = String.format(this.dateRangeFormat, this.dragStartDate.format(timeFormat), this.dragEndDate.format(timeFormat));\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            var evtEl = Ext.get(data.ddel),\n'
20130515 '                dayCol = evtEl.parent().parent(),\n'
20130515 '                box = evtEl.getBox();\n'
20130515 '            \n'
20130515 '            box.width = dayCol.getWidth();\n'
20130515 '            \n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                if(this.dragOffset === undefined){\n'
20130515 '                    // on fast drags there is a lag between the original drag start xy position and\n'
20130515 "                    // that first detected within the drop zone's getTargetFromEvent method (which is \n"
20130515 '                    // where n.timeBox comes from). to avoid a bad offset we calculate the\n'
20130515 '                    // timeBox based on the initial drag xy, not the current target xy.\n'
20130515 '                    var initialTimeBox = this.view.getDayAt(data.xy[0], data.xy[1]).timeBox;\n'
20130515 '                    this.dragOffset = initialTimeBox.y - box.y;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    box.y = n.timeBox.y;\n'
20130515 '                }\n'
20130515 "                dt = n.date.format(this.dateFormat + ' ' + timeFormat);\n"
20130515 '                box.x = n.el.getLeft();\n'
20130515 '                \n'
20130515 '                this.shim(n.date, box);\n'
20130515 '                text = this.moveText;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                if(!this.resizeDt){\n'
20130515 '                    this.resizeDt = n.date;\n'
20130515 '                }\n'
20130515 '                box.x = dayCol.getLeft();\n'
20130515 '                box.height = Math.ceil(Math.abs(e.xy[1] - box.y) / n.timeBox.height) * n.timeBox.height;\n'
20130515 '                if(e.xy[1] < box.y){\n'
20130515 '                    box.y -= box.height;\n'
20130515 '                }\n'
20130515 '                else{\n'
20130515 '                    n.date = n.date.add(Date.MINUTE, this.ddIncrement);\n'
20130515 '                }\n'
20130515 '                this.shim(this.resizeDt, box);\n'
20130515 '                \n'
20130515 '                var curr = Ext.ensible.Date.copyTime(n.date, this.resizeDt),\n'
20130515 '                    start = Ext.ensible.Date.min(data.eventStart, curr),\n'
20130515 '                    end = Ext.ensible.Date.max(data.eventStart, curr);\n'
20130515 '                    \n'
20130515 '                data.resizeDates = {\n'
20130515 '                    StartDate: start,\n'
20130515 '                    EndDate: end\n'
20130515 '                }\n'
20130515 '                dt = String.format(this.dateRangeFormat, start.format(timeFormat), end.format(timeFormat));\n'
20130515 '                text = this.resizeText;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        data.proxy.updateMsg(String.format(text, dt));\n'
20130515 '        return this.dropAllowed;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    shim : function(dt, box){\n'
20130515 '        Ext.each(this.shims, function(shim){\n'
20130515 '            if(shim){\n'
20130515 '                shim.isActive = false;\n'
20130515 '                shim.hide();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var shim = this.shims[0];\n'
20130515 '        if(!shim){\n'
20130515 '            shim = this.createShim();\n'
20130515 '            this.shims[0] = shim;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        shim.isActive = true;\n'
20130515 '        shim.show();\n'
20130515 '        shim.setBox(box);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onNodeDrop : function(n, dd, e, data){\n'
20130515 '        if(n && data){\n'
20130515 "            if(data.type == 'eventdrag'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventDrop(rec, n.date);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.dragOffset;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'eventresize'){\n"
20130515 '                var rec = this.view.getEventRecordFromEl(data.ddel);\n'
20130515 '                this.view.onEventResize(rec, data.resizeDates);\n'
20130515 '                this.onCalendarDragComplete();\n'
20130515 '                delete this.resizeDt;\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 "            if(data.type == 'caldrag'){\n"
20130515 '                Ext.destroy(this.dragStartMarker);\n'
20130515 '                delete this.dragStartMarker;\n'
20130515 '                delete this.dragCreateDt;\n'
20130515 '                this.view.onCalendarEndDrag(this.dragStartDate, this.dragEndDate, \n'
20130515 '                    this.onCalendarDragComplete.createDelegate(this));\n'
20130515 '                //shims are NOT cleared here -- they stay visible until the handling\n'
20130515 '                //code calls the onCalendarDragComplete callback which hides them.\n'
20130515 '                return true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        this.onCalendarDragComplete();\n'
20130515 '        return false;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Ext.ensible.cal.EventStore = Ext.extend(Ext.data.Store, {\n'
20130515 '    constructor: function(config){\n'
20130515 '        // By default autoLoad will cause the store to load itself during the\n'
20130515 '        // constructor, before the owning calendar view has a chance to set up\n'
20130515 '        // the initial date params to use during loading.  We replace autoLoad\n'
20130515 '        // with a deferLoad property that the view can check for and use to set\n'
20130515 '        // up default params as needed, then call the load itself. \n'
20130515 '        this.deferLoad = config.autoLoad;\n'
20130515 '        config.autoLoad = false;\n'
20130515 '        \n'
20130515 '        //this._dateCache = [];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.constructor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    load : function(o){\n'
20130515 "        Ext.ensible.log('store load');\n"
20130515 '        \n'
20130515 '        // if params are passed delete the one-time defaults\n'
20130515 '        if(o.params){\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        // this.initialParams will only be set if the store is being loaded manually\n'
20130515 '        // for the first time (autoLoad = false) so the owning calendar view set\n'
20130515 '        // the initial start and end date params to use. Every load after that will\n'
20130515 '        // have these params set automatically during normal UI navigation.\n'
20130515 '        if(this.initialParams){\n'
20130515 '            o = Ext.isObject(o) ? o : {};\n'
20130515 '            o.params = o.params || {};\n'
20130515 '            Ext.apply(o.params, this.initialParams);\n'
20130515 '            delete this.initialParams;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventStore.superclass.load.call(this, o);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '//    execute : function(action, rs, options, /* private */ batch) {\n'
20130515 "//        if(action=='read'){\n"
20130515 '//            var i = 0, \n'
20130515 '//                dc = this._dateCache, \n'
20130515 '//                len = dc.length,\n'
20130515 '//                range,\n'
20130515 '//                p = options.params,\n'
20130515 '//                start = p.start,\n'
20130515 '//                end = p.end;\n'
20130515 '//                \n'
20130515 '//            //options.add = true;\n'
20130515 '//            for(i; i<len; i++){\n'
20130515 '//                range = dc[i];\n'
20130515 '//                \n'
20130515 '//            }\n'
20130515 '//        }\n'
20130515 '//        Ext.ensible.cal.EventStore.superclass.execute.apply(this, arguments);\n'
20130515 '//    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventstore', Ext.ensible.cal.EventStore);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * <p>A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.EventRecord EventRecord}s so that they can be easily overridden.</p>\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Event record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the EventMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings;\n'
20130515 "M.Title.mapping = 'evt_title';\n"
20130515 "M.Title.name = 'EventTitle';\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default EventMappings:\n'
20130515 'Ext.ensible.cal.EventMappings.Timestamp = {\n'
20130515 "    name: 'Timestamp',\n"
20130515 "    mapping: 'timestamp',\n"
20130515 "    type: 'date'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire EventMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard EventRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'EventId') should <b>NOT</b> be changed for the default EventMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID', mapping:'evt_id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID', mapping: 'cal_id', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle', mapping: 'evt_title'},\n"
20130515 "    StartDate:   {name: 'StartDt', mapping: 'start_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDt', mapping: 'end_dt', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'},\n"
20130515 "    Location:    {name: 'Location', mapping: 'location'},\n"
20130515 "    Notes:       {name: 'Desc', mapping: 'full_desc'},\n"
20130515 "    Url:         {name: 'LinkUrl', mapping: 'link_url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay', mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'reminder'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard EventRecord:\n'
20130515 "    CreatedBy:   {name: 'CreatedBy', mapping: 'created_by'},\n"
20130515 "    IsPrivate:   {name: 'Private', mapping:'private', type:'boolean'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>EventId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.EventMappings.EventId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'EventId', mapping:'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalendarId', mapping: 'cid', type: 'int'},\n"
20130515 "    Title:       {name: 'Title', mapping: 'title', type: 'string'},\n"
20130515 "    StartDate:   {name: 'StartDate', mapping: 'start', type: 'date', dateFormat: 'c'},\n"
20130515 "    EndDate:     {name: 'EndDate', mapping: 'end', type: 'date', dateFormat: 'c'},\n"
20130515 "    RRule:       {name: 'RecurRule', mapping: 'recur_rule'}, // not currently used\n"
20130515 "    Location:    {name: 'Location', mapping: 'loc', type: 'string'},\n"
20130515 "    Notes:       {name: 'Notes', mapping: 'notes', type: 'string'},\n"
20130515 "    Url:         {name: 'Url', mapping: 'url', type: 'string'},\n"
20130515 "    IsAllDay:    {name: 'IsAllDay', mapping: 'ad', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder', mapping: 'rem', type: 'string'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarMappings\n'
20130515 ' * @extends Object\n'
20130515 ' * A simple object that provides the field definitions for \n'
20130515 ' * {@link Ext.ensible.cal.CalendarRecord CalendarRecord}s so that they can be easily overridden.\n'
20130515 ' * \n'
20130515 ' * <p>There are several ways of overriding the default Calendar record mappings to customize how \n'
20130515 ' * Ext records are mapped to your back-end data model. If you only need to change a handful \n'
20130515 ' * of field properties you can directly modify the CalendarMappings object as needed and then \n'
20130515 ' * reconfigure it. The simplest approach is to only override specific field attributes:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 "M.Title.mapping = 'cal_title';\n"
20130515 "M.Title.name = 'CalTitle';\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>You can alternately override an entire field definition using object-literal syntax, or \n'
20130515 ' * provide your own custom field definitions (as in the following example). Note that if you do \n'
20130515 ' * this, you <b>MUST</b> include a complete field definition, including the <tt>type</tt> attribute\n'
20130515 ' * if the field is not the default type of <tt>string</tt>.</p>\n'
20130515 ' * <pre><code>\n'
20130515 '// Add a new field that does not exist in the default CalendarMappings:\n'
20130515 'Ext.ensible.cal.CalendarMappings.Owner = {\n'
20130515 "    name: 'Owner',\n"
20130515 "    mapping: 'owner',\n"
20130515 "    type: 'string'\n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p>If you are overriding a significant number of field definitions it may be more convenient \n'
20130515 ' * to simply redefine the entire CalendarMappings object from scratch. The following example\n'
20130515 ' * redefines the same fields that exist in the standard CalendarRecord object but the names and \n'
20130515 ' * mappings have all been customized. Note that the name of each field definition object \n'
20130515 " * (e.g., 'CalendarId') should <b>NOT</b> be changed for the default CalendarMappings fields as it \n"
20130515 ' * is the key used to access the field data programmatically.</p>\n'
20130515 ' * <pre><code>\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Desc', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden', mapping: 'hidden', type: 'boolean'},\n"
20130515 '    \n'
20130515 '    // We can also add some new fields that do not exist in the standard CalendarRecord:\n'
20130515 "    Owner:        {name: 'Owner', mapping: 'owner'}\n"
20130515 '};\n'
20130515 "// Don't forget to reconfigure!\n"
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();\n'
20130515 '</code></pre>\n'
20130515 ' * \n'
20130515 ' * <p><b>NOTE:</b> Any record reconfiguration you want to perform must be done <b>PRIOR to</b> \n'
20130515 " * initializing your data store, otherwise the changes will not be reflected in the store's records.</p>\n"
20130515 ' * \n'
20130515 ' * <p>Another important note is that if you alter the default mapping for <tt>CalendarId</tt>, make sure to add\n'
20130515 " * that mapping as the <tt>idProperty</tt> of your data reader, otherwise it won't recognize how to\n"
20130515 " * access the data correctly and will treat existing records as phantoms. Here's an easy way to make sure\n"
20130515 ' * your mapping is always valid:</p>\n'
20130515 ' * <pre><code>\n'
20130515 'var reader = new Ext.data.JsonReader({\n'
20130515 "    totalProperty: 'total',\n"
20130515 "    successProperty: 'success',\n"
20130515 "    root: 'data',\n"
20130515 "    messageProperty: 'message',\n"
20130515 '    \n'
20130515 '    // read the id property generically, regardless of the mapping:\n'
20130515 "    idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping  || 'id',\n"
20130515 '    \n'
20130515 "    // this is also a handy way to configure your reader's fields generically:\n"
20130515 '    fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'CalendarId', mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'Title', mapping: 'title', type: 'string'},\n"
20130515 "    Description:  {name:'Description', mapping: 'desc', type: 'string'},\n"
20130515 "    ColorId:      {name:'ColorId', mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'IsHidden', mapping: 'hidden', type: 'boolean'}\n"
20130515 '};/**\n'
20130515 ' * @class Ext.ensible.cal.EventRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar event data used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s underlying store. It can be overridden as \n"
20130515 ' * necessary to customize the fields supported by events, although the existing field definition names \n'
20130515 ' * should not be altered. If your model fields are named differently you should update the <b>mapping</b>\n'
20130515 ' * configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new event record instance are <tt>StartDate</tt> and\n'
20130515 ' * <tt>EndDate</tt>.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.EventRecord({\n'
20130515 "    StartDate: '2101-01-12 12:00:00',\n"
20130515 "    EndDate: '2101-01-12 13:30:00',\n"
20130515 "    Title: 'My cool event',\n"
20130515 "    Notes: 'Some notes'\n"
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.EventMappings EventMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the field names match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.EventMappings,\n'
20130515 '    rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '\n'
20130515 "rec.data[M.StartDate.name] = '2101-01-12 12:00:00';\n"
20130515 "rec.data[M.EndDate.name] = '2101-01-12 13:30:00';\n"
20130515 "rec.data[M.Title.name] = 'My cool event';\n"
20130515 "rec.data[M.Notes.name] = 'Some notes';\n"
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.EventMappings EventMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.EventMappings} for complete details and \n'
20130515 ' * examples of reconfiguring an EventRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated EventRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.EventMappings,\n'
20130515 '        proto = C.EventRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.EventRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarRecord\n'
20130515 ' * @extends Ext.data.Record\n'
20130515 ' * <p>This is the {@link Ext.data.Record Record} specification for calendar items used by the\n'
20130515 " * {@link Ext.ensible.cal.CalendarPanel CalendarPanel}'s calendar store. If your model fields \n"
20130515 ' * are named differently you should update the <b>mapping</b> configs accordingly.</p>\n'
20130515 ' * <p>The only required fields when creating a new calendar record instance are CalendarId and\n'
20130515 ' * Title.  All other fields are either optional or will be defaulted if blank.</p>\n'
20130515 ' * <p>Here is a basic example for how to create a new record of this type:<pre><code>\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord({\n'
20130515 '    CalendarId: 5,\n'
20130515 "    Title: 'My Holidays',\n"
20130515 "    Description: 'My personal holiday schedule',\n"
20130515 '    ColorId: 3\n'
20130515 '});\n'
20130515 '</code></pre>\n'
20130515 " * If you have overridden any of the record's data mappings via the {@link Ext.ensible.cal.CalendarMappings CalendarMappings} object\n"
20130515 ' * you may need to set the values using this alternate syntax to ensure that the fields match up correctly:<pre><code>\n'
20130515 'var M = Ext.ensible.cal.CalendarMappings;\n'
20130515 '\n'
20130515 'rec = new Ext.ensible.cal.CalendarRecord();\n'
20130515 'rec.data[M.CalendarId.name] = 5;\n'
20130515 "rec.data[M.Title.name] = 'My Holidays';\n"
20130515 "rec.data[M.Description.name] = 'My personal holiday schedule';\n"
20130515 'rec.data[M.ColorId.name] = 3;\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 " * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's\n"
20130515 ' * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue}\n'
20130515 ' * for each field will be assigned.\n'
20130515 ' * @param {Object} id (Optional) The id of the Record. The id is used by the\n'
20130515 ' * {@link Ext.data.Store} object which owns the Record to index its collection\n'
20130515 ' * of Records (therefore this id should be unique within each store). If an\n'
20130515 ' * id is not specified a {@link #phantom}\n'
20130515 ' * Record will be created with an {@link #Record.id automatically generated id}.\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord = Ext.extend(Ext.data.Record, {\n'
20130515 '    fields: new Ext.util.MixedCollection(false, function(field){\n'
20130515 '        return field.name;\n'
20130515 '    })\n'
20130515 '});\n'
20130515 '\n'
20130515 '/**\n'
20130515 ' * Reconfigures the default record definition based on the current {@link Ext.ensible.cal.CalendarMappings CalendarMappings}\n'
20130515 ' * object. See the header documentation for {@link Ext.ensible.cal.CalendarMappings} for complete details and \n'
20130515 ' * examples of reconfiguring a CalendarRecord.\n'
20130515 ' * @method create\n'
20130515 ' * @static\n'
20130515 ' * @return {Function} The updated CalendarRecord constructor function\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure = function(){\n'
20130515 '    var C = Ext.ensible.cal,\n'
20130515 '        M = C.CalendarMappings,\n'
20130515 '        proto = C.CalendarRecord.prototype,\n'
20130515 '        fields = [];\n'
20130515 '    \n'
20130515 '    for(prop in M){\n'
20130515 '        if(M.hasOwnProperty(prop)){\n'
20130515 '            fields.push(M[prop]);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    proto.fields.clear();\n'
20130515 '    for(var i = 0, len = fields.length; i < len; i++){\n'
20130515 '        proto.fields.add(new Ext.data.Field(fields[i]));\n'
20130515 '    }\n'
20130515 '    return C.CalendarRecord;\n'
20130515 '};\n'
20130515 '\n'
20130515 '// Create the default definition now:\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();/* @private\n'
20130515 ' * This is an internal helper class for the calendar views and should not be overridden.\n'
20130515 ' * It is responsible for the base event rendering logic underlying all views based on a \n'
20130515 ' * box-oriented layout that supports day spanning (MonthView, MultiWeekView, DayHeaderView).\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekEventRenderer = function(){\n'
20130515 '    \n'
20130515 '    var getEventRow = function(id, week, index){\n'
20130515 "        var indexOffset = 1; //skip row with date #'s\n"
20130515 "        var evtRow, wkRow = Ext.get(id+'-wk-'+week);\n"
20130515 '        if(wkRow){\n'
20130515 "            var table = wkRow.child('.ext-cal-evt-tbl', true);\n"
20130515 '            evtRow = table.tBodies[0].childNodes[index+indexOffset];\n'
20130515 '            if(!evtRow){\n'
20130515 "                evtRow = Ext.DomHelper.append(table.tBodies[0], '<tr></tr>');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return Ext.get(evtRow);\n'
20130515 '    };\n'
20130515 '    \n'
20130515 '    return {\n'
20130515 '        render: function(o){\n'
20130515 '            var w = 0, grid = o.eventGrid, \n'
20130515 '                dt = o.viewStart.clone(),\n'
20130515 '                eventTpl = o.tpl,\n'
20130515 '                max = o.maxEventsPerDay != undefined ? o.maxEventsPerDay : 999,\n'
20130515 '                weekCount = o.weekCount < 1 ? 6 : o.weekCount,\n'
20130515 '                dayCount = o.weekCount == 1 ? o.dayCount : 7;\n'
20130515 '            \n'
20130515 '            for(; w < weekCount; w++){\n'
20130515 '                var row, d = 0, wk = grid[w];\n'
20130515 '                var startOfWeek = dt.clone();\n'
20130515 '                var endOfWeek = startOfWeek.add(Date.DAY, dayCount).add(Date.MILLI, -1);\n'
20130515 '                \n'
20130515 '                for(; d < dayCount; d++){\n'
20130515 '                    if(wk && wk[d]){\n'
20130515 '                        var ev = emptyCells = skipped = 0, \n'
20130515 '                            day = wk[d], ct = day.length, evt;\n'
20130515 '                        \n'
20130515 '                        for(; ev < ct; ev++){\n'
20130515 '                            if(!day[ev]){\n'
20130515 '                                emptyCells++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            if(emptyCells > 0 && ev-emptyCells < max){\n'
20130515 '                                row = getEventRow(o.id, w, ev-emptyCells);\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+ct+'-day-'+dt.format('Ymd')\n"
20130515 '                                }\n'
20130515 '                                if(emptyCells > 1 && max-ev > emptyCells){\n'
20130515 '                                    cellCfg.rowspan = Math.min(emptyCells, max-ev);\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                                emptyCells = 0;\n'
20130515 '                            }\n'
20130515 '                            \n'
20130515 '                            if(ev >= max){\n'
20130515 '                                skipped++;\n'
20130515 '                                continue;\n'
20130515 '                            }\n'
20130515 '                            evt = day[ev];\n'
20130515 '                            \n'
20130515 '                            if(!evt.isSpan || evt.isSpanStart){ //skip non-starting span cells\n'
20130515 '                                var item = evt.data || evt.event.data;\n'
20130515 '                                item._weekIndex = w;\n'
20130515 '                                item._renderAsAllDay = item[Ext.ensible.cal.EventMappings.IsAllDay.name] || evt.isSpanStart;\n'
20130515 '                                item.spanLeft = item[Ext.ensible.cal.EventMappings.StartDate.name].getTime() < startOfWeek.getTime();\n'
20130515 '                                item.spanRight = item[Ext.ensible.cal.EventMappings.EndDate.name].getTime() > endOfWeek.getTime();\n'
20130515 "                                item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \n"
20130515 "                                    'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\n"
20130515 '                                        \n'
20130515 '                                var row = getEventRow(o.id, w, ev),\n'
20130515 '                                    cellCfg = {\n'
20130515 "                                        tag: 'td',\n"
20130515 "                                        cls: 'ext-cal-ev',\n"
20130515 '                                        cn : eventTpl.apply(o.templateDataFn(item))\n'
20130515 '                                    },\n'
20130515 '                                    diff = Ext.ensible.Date.diffDays(dt, item[Ext.ensible.cal.EventMappings.EndDate.name]) + 1,\n'
20130515 '                                    cspan = Math.min(diff, dayCount-d);\n'
20130515 '                                    \n'
20130515 '                                if(cspan > 1){\n'
20130515 '                                    cellCfg.colspan = cspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                        if(ev > max){\n'
20130515 '                            row = getEventRow(o.id, w, max);\n'
20130515 '                            Ext.DomHelper.append(row, {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev-more',\n"
20130515 "                                id: 'ext-cal-ev-more-'+dt.format('Ymd'),\n"
20130515 '                                cn: {\n'
20130515 "                                    tag: 'a',\n"
20130515 '                                    html: String.format(o.getMoreText(skipped), skipped)\n'
20130515 '                                }\n'
20130515 '                            });\n'
20130515 '                        }\n'
20130515 '                        if(ct < o.evtMaxCount[w]){\n'
20130515 '                            row = getEventRow(o.id, w, ct);\n'
20130515 '                            if(row){\n'
20130515 '                                var cellCfg = {\n'
20130515 "                                    tag: 'td',\n"
20130515 "                                    cls: 'ext-cal-ev',\n"
20130515 "                                    //html: '&#160;',\n"
20130515 "                                    id: o.id+'-empty-'+(ct+1)+'-day-'+dt.format('Ymd')\n"
20130515 '                                };\n'
20130515 '                                var rowspan = o.evtMaxCount[w] - ct;\n'
20130515 '                                if(rowspan > 1){\n'
20130515 '                                    cellCfg.rowspan = rowspan;\n'
20130515 '                                }\n'
20130515 '                                Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                            }\n'
20130515 '                        }\n'
20130515 '                    }else{\n'
20130515 '                        row = getEventRow(o.id, w, 0);\n'
20130515 '                        if(row){\n'
20130515 '                            var cellCfg = {\n'
20130515 "                                tag: 'td',\n"
20130515 "                                cls: 'ext-cal-ev',\n"
20130515 "                                html: '&#160;',\n"
20130515 "                                id: o.id+'-empty-day-'+dt.format('Ymd')\n"
20130515 '                            };\n'
20130515 '                            if(o.evtMaxCount[w] > 1){\n'
20130515 '                                cellCfg.rowspan = o.evtMaxCount[w];\n'
20130515 '                            }\n'
20130515 '                            Ext.DomHelper.append(row, cellCfg);\n'
20130515 '                        }\n'
20130515 '                    }\n'
20130515 '                    dt = dt.add(Date.DAY, 1);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    };\n'
20130515 '}();\n'
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarCombo\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing from the list of available calendars to assign an event to. You must\n'
20130515 ' * pass a populated calendar store as the store config or the combo will not work.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 "fieldLabel: 'Calendar',\n"
20130515 "triggerAction: 'all',\n"
20130515 "mode: 'local',\n"
20130515 'forceSelection: true,\n'
20130515 'width: 200\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 "    fieldLabel: 'Calendar',\n"
20130515 "    triggerAction: 'all',\n"
20130515 "    mode: 'local',\n"
20130515 '    forceSelection: true,\n'
20130515 '    selectOnFocus: true,\n'
20130515 '    width: 200,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 "    defaultCls: 'x-cal-default',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        var C = Ext.ensible.cal,\n'
20130515 '            M = C.CalendarMappings;\n'
20130515 '        \n'
20130515 '        C.CalendarCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.valueField = M.CalendarId.name;\n'
20130515 '        this.displayField = M.Title.name;\n'
20130515 '        \n'
20130515 '        this.tpl = this.tpl ||\n'
20130515 '              \'<tpl for="."><div class="x-combo-list-item x-cal-{\' + M.ColorId.name +\n'
20130515 '              \'}"><div class="ext-cal-picker-icon">&#160;</div>{\' + this.displayField + \'}</div></tpl>\';\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.wrap = this.el.up('.x-form-field-wrap');\n"
20130515 "        this.wrap.addClass('ext-calendar-picker');\n"
20130515 '        \n'
20130515 '        this.icon = Ext.DomHelper.append(this.wrap, {\n'
20130515 "            tag: 'div', cls: 'ext-cal-picker-icon ext-cal-picker-mainicon'\n"
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    assertValue  : function(){\n'
20130515 '        var val = this.getRawValue(),\n'
20130515 '            rec = this.findRecord(this.displayField, val);\n'
20130515 '\n'
20130515 '        if(!rec && this.forceSelection){\n'
20130515 '            if(val.length > 0 && val != this.emptyText){\n'
20130515 '                // Override this method simply to fix the original logic that was here.\n'
20130515 '                // The orignal method simply reverts the displayed text but the store remains\n'
20130515 '                // filtered with the invalid query, meaning it contains no records. This causes\n'
20130515 '                // problems with redisplaying the field -- much better to clear the filter and\n'
20130515 '                // reset the original value so everything works as expected.\n'
20130515 '                this.store.clearFilter();\n'
20130515 '                this.setValue(this.value);\n'
20130515 '                this.applyEmptyText();\n'
20130515 '            }else{\n'
20130515 '                this.clearValue();\n'
20130515 '            }\n'
20130515 '        }else{\n'
20130515 '            if(rec){\n'
20130515 '                if (val == rec.get(this.displayField) && this.value == rec.get(this.valueField)){\n'
20130515 '                    return;\n'
20130515 '                }\n'
20130515 '                val = rec.get(this.valueField || this.displayField);\n'
20130515 '            }\n'
20130515 '            this.setValue(val);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getStyleClass: function(calendarId){\n'
20130515 "        if(calendarId && calendarId !== ''){\n"
20130515 '            var rec = this.store.getById(calendarId);\n'
20130515 "            return 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    setValue: function(value) {\n'
20130515 '        this.wrap.removeClass(this.getStyleClass(this.getValue()));\n'
20130515 '        value = value || this.store.getAt(0).data[Ext.ensible.cal.CalendarMappings.CalendarId.name];\n'
20130515 '        Ext.ensible.cal.CalendarCombo.superclass.setValue.call(this, value);\n'
20130515 '        this.wrap.addClass(this.getStyleClass(value));\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcombo', Ext.ensible.cal.CalendarCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceCombo = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 160,\n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'pattern',\n"
20130515 "    valueField: 'id',\n"
20130515 '    \n'
20130515 '    recurrenceText: {\n'
20130515 "        none: 'Does not repeat',\n"
20130515 "        daily: 'Daily',\n"
20130515 "        weekly: 'Weekly',\n"
20130515 "        monthly: 'Monthly',\n"
20130515 "        yearly: 'Yearly'\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 "        this.addEvents('recurrencechange');\n"
20130515 '        \n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 "            fields: ['id', 'pattern'],\n"
20130515 '            idIndex: 0,\n'
20130515 '            data: [\n'
20130515 "                ['NONE', this.recurrenceText.none],\n"
20130515 "                ['DAILY', this.recurrenceText.daily],\n"
20130515 "                ['WEEKLY', this.recurrenceText.weekly],\n"
20130515 "                ['MONTHLY', this.recurrenceText.monthly],\n"
20130515 "                ['YEARLY', this.recurrenceText.yearly]\n"
20130515 '            ]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initValue : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.initValue.call(this);\n'
20130515 '        if(this.value != undefined){\n'
20130515 "            this.fireEvent('recurrencechange', this.value);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        var old = this.value;\n'
20130515 '        Ext.ensible.cal.RecurrenceCombo.superclass.setValue.call(this, v);\n'
20130515 '        if(old != v){\n'
20130515 "            this.fireEvent('recurrencechange', v);\n"
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencecombo', Ext.ensible.cal.RecurrenceCombo);\n"
20130515 '/* @private\n'
20130515 ' * Currently not used\n'
20130515 ' * Rrule info: http://www.kanzaki.com/docs/ical/rrule.html\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.RecurrenceField = Ext.extend(Ext.form.Field, {\n'
20130515 '    \n'
20130515 "    fieldLabel: 'Repeats',\n"
20130515 '    startDate: new Date().clearTime(),\n'
20130515 '    enableFx: true,\n'
20130515 '    \n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.initComponent.call(this);\n'
20130515 '        if(!this.height){\n'
20130515 '            this.autoHeight = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.frequencyCombo = new Ext.ensible.cal.RecurrenceCombo({\n'
20130515 "                id: this.id+'-frequency',\n"
20130515 '                listeners: {\n'
20130515 "                    'recurrencechange': {\n"
20130515 '                        fn: this.showOptions,\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            if(this.fieldLabel){\n'
20130515 '                this.frequencyCombo.fieldLabel = this.fieldLabel;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.innerCt = new Ext.Container({\n'
20130515 "                cls: 'extensible-recur-inner-ct',\n"
20130515 '                items: []\n'
20130515 '            });\n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'extensible-recur-ct',\n"
20130515 '                renderTo: ct,\n'
20130515 '                items: [this.frequencyCombo, this.innerCt]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.innerCt.ownerCt = this.fieldCt;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll(this.initSubComponents());\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.RecurrenceField.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '//    afterRender : function(){\n'
20130515 '//        Ext.ensible.cal.RecurrenceField.superclass.afterRender.call(this);\n'
20130515 '//        this.setStartDate(this.startDate);\n'
20130515 '//    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initValue : function(){\n'
20130515 '        this.setStartDate(this.startDate);\n'
20130515 '        \n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else if(this.frequency !== undefined){\n'
20130515 "            this.setValue('FREQ='+this.frequency);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('NONE');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showOptions : function(o){\n'
20130515 "        var layoutChanged = false, unit = 'day';\n"
20130515 '        \n'
20130515 "        if(o != 'NONE'){\n"
20130515 '            this.hideSubPanels();\n'
20130515 '        }\n'
20130515 '        this.frequency = o;\n'
20130515 '        \n'
20130515 '        switch(o){\n'
20130515 "            case 'DAILY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'WEEKLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.weekly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'week';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'MONTHLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.monthly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'month';\n"
20130515 '                break;\n'
20130515 '                \n'
20130515 "            case 'YEARLY':\n"
20130515 '                layoutChanged = this.showSubPanel(this.repeatEvery);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.yearly);\n'
20130515 '                layoutChanged |= this.showSubPanel(this.until);\n'
20130515 "                unit = 'year';\n"
20130515 '                break;\n'
20130515 '            \n'
20130515 '            default:\n'
20130515 '                // case NONE\n'
20130515 '                this.hideInnerCt();\n'
20130515 '                return; \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(layoutChanged){\n'
20130515 '            this.innerCt.doLayout();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.showInnerCt();\n'
20130515 '        this.repeatEvery.updateLabel(unit);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showSubPanel : function(p){\n'
20130515 '        if (p.rendered) {\n'
20130515 '            p.show();\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(this.repeatEvery.rendered){\n'
20130515 '                // make sure weekly/monthly options show in the middle\n'
20130515 '                p = this.innerCt.insert(1, p);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                p = this.innerCt.add(p);\n'
20130515 '            }\n'
20130515 '            p.show();\n'
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    showInnerCt: function(){\n'
20130515 '        if(!this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideIn('t', {\n"
20130515 '                    duration: .3\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.show();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideInnerCt: function(){\n'
20130515 '        if(this.innerCt.isVisible()){\n'
20130515 '            if(this.enableFx && Ext.enableFx){\n'
20130515 "                this.innerCt.getPositionEl().slideOut('t', {\n"
20130515 '                    duration: .3,\n'
20130515 "                    easing: 'easeIn',\n"
20130515 '                    callback: this.hideSubPanels,\n'
20130515 '                    scope: this\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.innerCt.hide();\n'
20130515 '                this.hideSubPanels();\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setStartDate : function(dt){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setStartDate(dt);\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    getValue : function(){\n'
20130515 '        if(!this.rendered) {\n'
20130515 '            return this.value;\n'
20130515 '        }\n'
20130515 "        if(this.frequency=='NONE'){\n"
20130515 "            return '';\n"
20130515 '        }\n'
20130515 "        var value = 'FREQ='+this.frequency;\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            if(p.isVisible()){\n'
20130515 '                value += p.getValue();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        return value;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    setValue : function(v){\n'
20130515 '        this.value = v;\n'
20130515 '        \n'
20130515 "        if(v == null || v == '' || v == 'NONE'){\n"
20130515 "            this.frequencyCombo.setValue('NONE');\n"
20130515 "            this.showOptions('NONE');\n"
20130515 '            return this;\n'
20130515 '        }\n'
20130515 "        var parts = v.split(';');\n"
20130515 '        this.items.each(function(p){\n'
20130515 '            p.setValue(parts);\n'
20130515 '        });\n'
20130515 '        Ext.each(parts, function(p){\n'
20130515 "            if(p.indexOf('FREQ') > -1){\n"
20130515 "                var freq = p.split('=')[1];\n"
20130515 '                this.frequencyCombo.setValue(freq);\n'
20130515 '                this.showOptions(freq);\n'
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    hideSubPanels : function(){\n'
20130515 '        this.items.each(function(p){\n'
20130515 '            p.hide();\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    initSubComponents : function(){\n'
20130515 '        Ext.ensible.cal.recurrenceBase = Ext.extend(Ext.Container, {\n'
20130515 "            fieldLabel: ' ',\n"
20130515 "            labelSeparator: '',\n"
20130515 '            hideLabel: true,\n'
20130515 "            layout: 'table',\n"
20130515 "            anchor: '100%',\n"
20130515 '            startDate: this.startDate,\n'
20130515 '\n'
20130515 '            //TODO: This is not I18N-able:\n'
20130515 '            getSuffix : function(n){\n'
20130515 '                if(!Ext.isNumber(n)){\n'
20130515 "                    return '';\n"
20130515 '                }\n'
20130515 '                switch (n) {\n'
20130515 '                    case 1:\n'
20130515 '                    case 21:\n'
20130515 '                    case 31:\n'
20130515 '                        return "st";\n'
20130515 '                    case 2:\n'
20130515 '                    case 22:\n'
20130515 '                        return "nd";\n'
20130515 '                    case 3:\n'
20130515 '                    case 23:\n'
20130515 '                        return "rd";\n'
20130515 '                    default:\n'
20130515 '                        return "th";\n'
20130515 '                }\n'
20130515 '            },\n'
20130515 '            \n'
20130515 '            //shared by monthly and yearly components:\n'
20130515 '            initNthCombo: function(cbo){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    dt = this.startDate,\n'
20130515 '                    store = cbo.getStore(),\n'
20130515 '                    last = dt.getLastDateOfMonth().getDate(),\n'
20130515 '                    dayNum = dt.getDate(),\n'
20130515 "                    nthDate = dt.format('jS') + ' day',\n"
20130515 "                    isYearly = this.id.indexOf('-yearly') > -1,\n"
20130515 "                    yearlyText = ' in ' + dt.format('F'),\n"
20130515 '                    nthDayNum, nthDay, lastDay, lastDate, idx, data, s;\n'
20130515 '                    \n'
20130515 '                nthDayNum = Math.ceil(dayNum / 7);\n'
20130515 "                nthDay = nthDayNum + this.getSuffix(nthDayNum) + dt.format(' l');\n"
20130515 '                if(isYearly){\n'
20130515 '                    nthDate += yearlyText;\n'
20130515 '                    nthDay += yearlyText;\n'
20130515 '                }\n'
20130515 '                data = [[nthDate],[nthDay]];\n'
20130515 '                \n'
20130515 "                s = isYearly ? yearlyText : '';\n"
20130515 '                if(last-dayNum < 7){\n'
20130515 "                    data.push(['last '+dt.format('l')+s]);\n"
20130515 '                }\n'
20130515 '                if(last == dayNum){\n'
20130515 "                    data.push(['last day'+s]);\n"
20130515 '                }\n'
20130515 '                \n'
20130515 "                idx = store.find('field1', cbo.getValue());\n"
20130515 '                store.removeAll();\n'
20130515 '                cbo.clearValue();\n'
20130515 '                store.loadData(data);\n'
20130515 '                \n'
20130515 '                if(idx > data.length-1){\n'
20130515 '                    idx = data.length-1;\n'
20130515 '                }\n'
20130515 '                cbo.setValue(store.getAt(idx > -1 ? idx : 0).data.field1);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            setValue:Ext.emptyFn\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.repeatEvery = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-every',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'Repeat every'\n"
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-every-num',\n"
20130515 '                value: 1,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                enableKeyEvents: true,\n'
20130515 '                listeners: {\n'
20130515 "                    'keyup': {\n"
20130515 '                        fn: function(){\n'
20130515 '                            this.repeatEvery.updateLabel();\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-every-label'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.updateLabel();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = Ext.getCmp(this.id+'-num').getValue();\n"
20130515 "                return v > 1 ? ';INTERVAL='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('INTERVAL') > -1){\n"
20130515 "                        var interval = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(interval);\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            updateLabel: function(type){\n'
20130515 '                if(this.rendered){\n'
20130515 "                    var s = Ext.getCmp(this.id+'-num').getValue() == 1 ? '' : 's';\n"
20130515 "                    this.type = type ? type.toLowerCase() : this.type || 'day';\n"
20130515 "                    var lbl = Ext.getCmp(this.id+'-label');\n"
20130515 '                    if(lbl.rendered){\n'
20130515 "                        lbl.update(this.type + s + ' beginning ' + this.startDate.format('l, F j'));\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            afterRender: function(){\n'
20130515 '                Ext.ensible.cal.recurrenceBase.superclass.afterRender.call(this);\n'
20130515 '                this.updateLabel();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.weekly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-weekly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 2\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on:'\n"
20130515 '            },{\n'
20130515 "                xtype: 'checkboxgroup',\n"
20130515 "                id: this.id+'-weekly-days',\n"
20130515 '                items: [\n'
20130515 "                    {boxLabel: 'Sun', name: 'SU', id: this.id+'-weekly-SU'},\n"
20130515 "                    {boxLabel: 'Mon', name: 'MO', id: this.id+'-weekly-MO'},\n"
20130515 "                    {boxLabel: 'Tue', name: 'TU', id: this.id+'-weekly-TU'},\n"
20130515 "                    {boxLabel: 'Wed', name: 'WE', id: this.id+'-weekly-WE'},\n"
20130515 "                    {boxLabel: 'Thu', name: 'TH', id: this.id+'-weekly-TH'},\n"
20130515 "                    {boxLabel: 'Fri', name: 'FR', id: this.id+'-weekly-FR'},\n"
20130515 "                    {boxLabel: 'Sat', name: 'SA', id: this.id+'-weekly-SA'}\n"
20130515 '                ]\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.selectToday();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            selectToday: function(){\n'
20130515 '                this.clearValue();\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                Ext.getCmp(this.id + '-days').setValue(day, true);\n"
20130515 '            },\n'
20130515 '            clearValue: function(){\n'
20130515 "                Ext.getCmp(this.id + '-days').setValue([false, false, false, false, false, false, false]);\n"
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var v = '', sel = Ext.getCmp(this.id+'-days').getValue();\n"
20130515 '                Ext.each(sel, function(chk){\n'
20130515 '                    if(v.length > 0){\n'
20130515 "                        v += ',';\n"
20130515 '                    }\n'
20130515 '                    v += chk.name;\n'
20130515 '                });\n'
20130515 "                var day = this.startDate.format('D').substring(0,2).toUpperCase();\n"
20130515 "                return v.length > 0 && v != day ? ';BYDAY='+v : '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                this.clearValue();\n'
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('BYDAY') > -1){\n"
20130515 "                        var days = p.split('=')[1].split(','),\n"
20130515 '                            vals = {};\n'
20130515 '                            \n'
20130515 '                        Ext.each(days, function(d){\n'
20130515 '                            vals[d] = true;\n'
20130515 '                        }, this);\n'
20130515 '                        \n'
20130515 "                        Ext.getCmp(this.id+'-days').setValue(vals);\n"
20130515 '                        return set = true;\n'
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                \n'
20130515 '                if(!set){\n'
20130515 '                    this.selectToday();\n'
20130515 '                }\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.monthly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-monthly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-monthly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 150,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'of each month'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase();\n"
20130515 '                \n'
20130515 '                if (idx > -1) {\n'
20130515 '                    switch(idx){\n'
20130515 "                        case 0:  return ';BYMONTHDAY='+dt.format('j');\n"
20130515 "                        case 1:  return ';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return ';BYDAY=-1'+day;\n"
20130515 "                        default: return ';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.yearly = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-yearly',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 3\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'on the'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-yearly-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 170,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 '                store: []\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'each year'\n"
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                this.initNthCombo();\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var cbo = Ext.getCmp(this.id+'-combo'),\n"
20130515 '                    store = cbo.getStore(),\n'
20130515 "                    idx = store.find('field1', cbo.getValue()),\n"
20130515 '                    dt = this.startDate,\n'
20130515 "                    day = dt.format('D').substring(0,2).toUpperCase(),\n"
20130515 "                    byMonth = ';BYMONTH='+dt.format('n');\n"
20130515 '                \n'
20130515 '                if(idx > -1){\n'
20130515 '                    switch(idx){\n'
20130515 '                        case 0:  return byMonth;\n'
20130515 "                        case 1:  return byMonth+';BYDAY='+cbo.getValue()[0].substring(0,1)+day;\n"
20130515 "                        case 2:  return byMonth+';BYDAY=-1'+day;\n"
20130515 "                        default: return byMonth+';BYMONTHDAY=-1';\n"
20130515 '                    }\n'
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '            \n'
20130515 '        this.until = new Ext.ensible.cal.recurrenceBase({\n'
20130515 "            id: this.id+'-until',\n"
20130515 "            untilDateFormat: 'Ymd\\\\T000000\\\\Z',\n"
20130515 '            layoutConfig: {\n'
20130515 '                columns: 5\n'
20130515 '            },\n'
20130515 '            items: [{\n'
20130515 "                xtype: 'label',\n"
20130515 "                text: 'and continuing'\n"
20130515 '            },{\n'
20130515 "                xtype: 'combo',\n"
20130515 "                id: this.id+'-until-combo',\n"
20130515 "                mode: 'local',\n"
20130515 '                width: 85,\n'
20130515 "                triggerAction: 'all',\n"
20130515 '                forceSelection: true,\n'
20130515 "                value: 'forever',\n"
20130515 "                store: ['forever', 'for', 'until'],\n"
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(cbo, rec){\n'
20130515 "                            var dt = Ext.getCmp(this.id+'-until-date');\n"
20130515 "                            if(rec.data.field1 == 'until'){\n"
20130515 '                                dt.show();\n'
20130515 "                                if (dt.getValue() == '') {\n"
20130515 '                                    dt.setValue(this.startDate.add(Date.DAY, 5));\n'
20130515 '                                    dt.setMinValue(this.startDate.clone().add(Date.DAY, 1));\n'
20130515 '                                }\n'
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 '                                dt.hide();\n'
20130515 '                            }\n'
20130515 "                            if(rec.data.field1 == 'for'){\n"
20130515 "                                Ext.getCmp(this.id+'-until-num').show();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').show();\n"
20130515 '                            }\n'
20130515 '                            else{\n'
20130515 "                                Ext.getCmp(this.id+'-until-num').hide();\n"
20130515 "                                Ext.getCmp(this.id+'-until-endlabel').hide();\n"
20130515 '                            }\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            },{\n'
20130515 "                xtype: 'datefield',\n"
20130515 "                id: this.id+'-until-date',\n"
20130515 '                showToday: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'numberfield',\n"
20130515 "                id: this.id+'-until-num',\n"
20130515 '                value: 5,\n'
20130515 '                width: 35,\n'
20130515 '                minValue: 1,\n'
20130515 '                maxValue: 99,\n'
20130515 '                allowBlank: false,\n'
20130515 '                hidden: true\n'
20130515 '            },{\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-until-endlabel',\n"
20130515 "                text: 'occurrences',\n"
20130515 '                hidden: true\n'
20130515 '            }],\n'
20130515 '            setStartDate: function(dt){\n'
20130515 '                this.startDate = dt;\n'
20130515 '                return this;\n'
20130515 '            },\n'
20130515 '            getValue: function(){\n'
20130515 "                var dt = Ext.getCmp(this.id+'-date');\n"
20130515 '                if(dt.isVisible()){\n'
20130515 "                    return ';UNTIL='+dt.getValue().format(this.untilDateFormat);\n"
20130515 '                }\n'
20130515 "                var ct = Ext.getCmp(this.id+'-num');\n"
20130515 '                if(ct.isVisible()){\n'
20130515 "                    return ';COUNT='+ct.getValue();\n"
20130515 '                }\n'
20130515 "                return '';\n"
20130515 '            },\n'
20130515 '            setValue : function(v){\n'
20130515 '                var set = false, \n'
20130515 "                    parts = Ext.isArray(v) ? v : v.split(';');\n"
20130515 '                \n'
20130515 '                Ext.each(parts, function(p){\n'
20130515 "                    if(p.indexOf('COUNT') > -1){\n"
20130515 "                        var count = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('for');\n"
20130515 "                        Ext.getCmp(this.id+'-num').setValue(count).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').show();\n"
20130515 '                    }\n'
20130515 "                    else if(p.indexOf('UNTIL') > -1){\n"
20130515 "                        var dt = p.split('=')[1];\n"
20130515 "                        Ext.getCmp(this.id+'-combo').setValue('until');\n"
20130515 "                        Ext.getCmp(this.id+'-date').setValue(Date.parseDate(dt, this.untilDateFormat)).show();\n"
20130515 "                        Ext.getCmp(this.id+'-endlabel').hide();\n"
20130515 '                    }\n'
20130515 '                }, this);\n'
20130515 '                return this;\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        return [this.repeatEvery, this.weekly, this.monthly, this.yearly, this.until];\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.recurrencefield', Ext.ensible.cal.RecurrenceField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DateRangeField\n'
20130515 ' * @extends Ext.form.Field\n'
20130515 ' * <p>A combination field that includes start and end dates and times, as well as an optional all-day checkbox.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DateRangeField = Ext.extend(Ext.form.Field, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} toText\n'
20130515 "     * The text to display in between the date/time fields (defaults to 'to')\n"
20130515 '     */\n'
20130515 "    toText: 'to',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} allDayText\n'
20130515 "     * The text to display as the label for the all day checkbox (defaults to 'All day')\n"
20130515 '     */\n'
20130515 "    allDayText: 'All day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String/Boolean} singleLine\n'
20130515 '     * This value can be set explicitly to <code>true</code> or <code>false</code> to force the field to render on\n'
20130515 "     * one line or two lines respectively.  The default value is <code>'auto'</code> which means that the field will\n"
20130515 "     * calculate its container's width and compare it to {@link singleLineMinWidth} to determine whether to render \n"
20130515 '     * on one line or two automatically.  Note that this only applies at render time -- once the field is rendered\n'
20130515 '     * the layout cannot be changed.\n'
20130515 '     */\n'
20130515 "    singleLine: 'auto',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} singleLineMinWidth\n'
20130515 "     * If {@link singleLine} is set to 'auto' it will use this value to determine whether to render the field on one\n"
20130515 '     * line or two. This value is the approximate minimum width required to render the field on a single line, so if\n'
20130515 "     * the field's container is narrower than this value it will automatically be rendered on two lines.\n"
20130515 '     */\n'
20130515 '    singleLineMinWidth: 490,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} dateFormat\n'
20130515 "     * The date display format used by the date fields (defaults to 'n/j/Y') \n"
20130515 '     */\n'
20130515 "    dateFormat: 'n/j/Y',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender: function(ct, position){\n'
20130515 '        if(!this.el){\n'
20130515 '            this.startDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-start-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.startTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-start-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'start');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.endTime = new Ext.form.TimeField({\n'
20130515 "                id: this.id+'-end-time',\n"
20130515 '                hidden: this.showTimes === false,\n'
20130515 '                labelWidth: 0,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:90,\n'
20130515 '                listeners: {\n'
20130515 "                    'select': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('time', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            })\n'
20130515 '            this.endDate = new Ext.form.DateField({\n'
20130515 "                id: this.id+'-end-date',\n"
20130515 '                format: this.dateFormat,\n'
20130515 '                hideLabel:true,\n'
20130515 '                width:100,\n'
20130515 '                listeners: {\n'
20130515 "                    'change': {\n"
20130515 '                        fn: function(){\n'
20130515 "                            this.onFieldChange('date', 'end');\n"
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '            this.allDay = new Ext.form.Checkbox({\n'
20130515 "                id: this.id+'-allday',\n"
20130515 '                hidden: this.showTimes === false || this.showAllDay === false,\n'
20130515 '                boxLabel: this.allDayText,\n'
20130515 '                handler: function(chk, checked){\n'
20130515 '                    this.startTime.setVisible(!checked);\n'
20130515 '                    this.endTime.setVisible(!checked);\n'
20130515 '                },\n'
20130515 '                scope: this\n'
20130515 '            });\n'
20130515 '            this.toLabel = new Ext.form.Label({\n'
20130515 "                xtype: 'label',\n"
20130515 "                id: this.id+'-to-label',\n"
20130515 '                text: this.toText\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            var singleLine = this.singleLine;\n'
20130515 "            if(singleLine == 'auto'){\n"
20130515 "                var el, w = this.ownerCt.getWidth() - this.ownerCt.getEl().getPadding('lr');\n"
20130515 "                if(el = this.ownerCt.getEl().child('.x-panel-body')){\n"
20130515 "                    w -= el.getPadding('lr');\n"
20130515 '                }\n'
20130515 "                if(el = this.ownerCt.getEl().child('.x-form-item-label')){\n"
20130515 "                    w -= el.getWidth() - el.getPadding('lr');\n"
20130515 '                }\n'
20130515 '                singleLine = w <= this.singleLineMinWidth ? false : true;\n'
20130515 '            }\n'
20130515 '            \n'
20130515 '            this.fieldCt = new Ext.Container({\n'
20130515 "                autoEl: {id:this.id}, //make sure the container el has the field's id\n"
20130515 "                cls: 'ext-dt-range',\n"
20130515 '                renderTo: ct,\n'
20130515 "                layout: 'table',\n"
20130515 '                layoutConfig: {\n'
20130515 '                    columns: singleLine ? 6 : 3\n'
20130515 '                },\n'
20130515 '                defaults: {\n'
20130515 '                    hideParent: true\n'
20130515 '                },\n'
20130515 '                items:[\n'
20130515 '                    this.startDate,\n'
20130515 '                    this.startTime,\n'
20130515 '                    this.toLabel,\n'
20130515 '                    singleLine ? this.endTime : this.endDate,\n'
20130515 '                    singleLine ? this.endDate : this.endTime,\n'
20130515 '                    this.allDay\n'
20130515 '                ]\n'
20130515 '            });\n'
20130515 '            \n'
20130515 '            this.fieldCt.ownerCt = this;\n'
20130515 '            this.el = this.fieldCt.getEl();\n'
20130515 '            this.items = new Ext.util.MixedCollection();\n'
20130515 '            this.items.addAll([this.startDate, this.endDate, this.toLabel, this.startTime, this.endTime, this.allDay]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.onRender.call(this, ct, position);\n'
20130515 '        \n'
20130515 '        if(!singleLine){\n'
20130515 "            this.el.child('tr').addClass('ext-dt-range-row1');\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onFieldChange: function(type, startend){\n'
20130515 '        this.checkDates(type, startend);\n'
20130515 "        this.fireEvent('change', this, this.getValue());\n"
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    checkDates: function(type, startend){\n'
20130515 "        var startField = Ext.getCmp(this.id+'-start-'+type),\n"
20130515 "            endField = Ext.getCmp(this.id+'-end-'+type),\n"
20130515 "            startValue = this.getDT('start'),\n"
20130515 "            endValue = this.getDT('end');\n"
20130515 '\n'
20130515 '        if(startValue > endValue){\n'
20130515 "            if(startend=='start'){\n"
20130515 '                endField.setValue(startValue);\n'
20130515 '            }else{\n'
20130515 '                startField.setValue(endValue);\n'
20130515 "                this.checkDates(type, 'start');\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        if(type=='date'){\n"
20130515 "            this.checkDates('time', startend);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns an array containing the following values in order:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The start date/time</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">The end date/time</div></li>\n'
20130515 '     * <li><b><code>Boolean</code></b> : <div class="sub-desc">True if the dates are all-day, false \n'
20130515 '     * if the time values should be used</div></li><ul></div>\n'
20130515 '     * @return {Array} The array of return values\n'
20130515 '     */\n'
20130515 '    getValue: function(){\n'
20130515 '        return [\n'
20130515 "            this.getDT('start'), \n"
20130515 "            this.getDT('end'),\n"
20130515 '            this.allDay.getValue()\n'
20130515 '        ];\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private getValue helper\n'
20130515 '    getDT: function(startend){\n'
20130515 "        var time = this[startend+'Time'].getValue(),\n"
20130515 "            dt = this[startend+'Date'].getValue();\n"
20130515 '            \n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format(this[startend+'Date'].format);\n"
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            return null;\n'
20130515 '        };\n'
20130515 "        if(time != ''){\n"
20130515 "            return Date.parseDate(dt+' '+time, this[startend+'Date'].format+' '+this[startend+'Time'].format);\n"
20130515 '        }\n'
20130515 "        return Date.parseDate(dt, this[startend+'Date'].format);\n"
20130515 '        \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the values to use in the date range.\n'
20130515 '     * @param {Array/Date/Object} v The value(s) to set into the field. Valid types are as follows:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><b><code>Array</code></b> : <div class="sub-desc">An array containing, in order, a start date, end date and all-day flag.\n'
20130515 '     * This array should exactly match the return type as specified by {@link #getValue}.</div></li>\n'
20130515 '     * <li><b><code>DateTime</code></b> : <div class="sub-desc">A single Date object, which will be used for both the start and\n'
20130515 '     * end dates in the range.  The all-day flag will be defaulted to false.</div></li>\n'
20130515 '     * <li><b><code>Object</code></b> : <div class="sub-desc">An object containing properties for StartDate, EndDate and IsAllDay\n'
20130515 '     * as defined in {@link Ext.ensible.cal.EventMappings}.</div></li><ul></div>\n'
20130515 '     */\n'
20130515 '    setValue: function(v){\n'
20130515 '        if(Ext.isArray(v)){\n'
20130515 "            this.setDT(v[0], 'start');\n"
20130515 "            this.setDT(v[1], 'end');\n"
20130515 '            this.allDay.setValue(!!v[2]);\n'
20130515 '        }\n'
20130515 '        else if(Ext.isDate(v)){\n'
20130515 "            this.setDT(v, 'start');\n"
20130515 "            this.setDT(v, 'end');\n"
20130515 '            this.allDay.setValue(false);\n'
20130515 '        }\n'
20130515 '        else if(v[Ext.ensible.cal.EventMappings.StartDate.name]){ //object\n'
20130515 "            this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'start');\n"
20130515 "            if(!this.setDT(v[Ext.ensible.cal.EventMappings.EndDate.name], 'end')){\n"
20130515 "                this.setDT(v[Ext.ensible.cal.EventMappings.StartDate.name], 'end');\n"
20130515 '            }\n'
20130515 '            this.allDay.setValue(!!v[Ext.ensible.cal.EventMappings.IsAllDay.name]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private setValue helper\n'
20130515 '    setDT: function(dt, startend){\n'
20130515 '        if(dt && Ext.isDate(dt)){\n'
20130515 "            this[startend+'Date'].setValue(dt);\n"
20130515 "            this[startend+'Time'].setValue(dt.format(this[startend+'Time'].format));\n"
20130515 '            return true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    isDirty: function(){\n'
20130515 '        var dirty = false;\n'
20130515 '        if(this.rendered && !this.disabled) {\n'
20130515 '            this.items.each(function(item){\n'
20130515 '                if (item.isDirty()) {\n'
20130515 '                    dirty = true;\n'
20130515 '                    return false;\n'
20130515 '                }\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDisable : function(){\n'
20130515 "        this.delegateFn('disable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEnable : function(){\n'
20130515 "        this.delegateFn('enable');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    reset : function(){\n'
20130515 "        this.delegateFn('reset');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    delegateFn : function(fn){\n'
20130515 '        this.items.each(function(item){\n'
20130515 '            if (item[fn]) {\n'
20130515 '                item[fn]();\n'
20130515 '            }\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    beforeDestroy: function(){\n'
20130515 '        Ext.destroy(this.fieldCt);\n'
20130515 '        Ext.ensible.cal.DateRangeField.superclass.beforeDestroy.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @method getRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    getRawValue : Ext.emptyFn,\n'
20130515 '    /**\n'
20130515 '     * @method setRawValue\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    setRawValue : Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daterangefield', Ext.ensible.cal.DateRangeField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ReminderField\n'
20130515 ' * @extends Ext.form.ComboBox\n'
20130515 ' * <p>A custom combo used for choosing a reminder setting for an event.</p>\n'
20130515 ' * <p>This is pretty much a standard combo that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. The default configs are as follows:<pre><code>\n'
20130515 'width: 200,\n'
20130515 "fieldLabel: 'Reminder',\n"
20130515 "mode: 'local',\n"
20130515 "triggerAction: 'all',\n"
20130515 'forceSelection: true,\n'
20130515 "displayField: 'desc',\n"
20130515 "valueField: 'value',\n"
20130515 "noneText: 'None',\n"
20130515 "atStartTimeText: 'At start time',\n"
20130515 "reminderValueFormat: '{0} {1} before start'\n"
20130515 '</code></pre>\n'
20130515 ' * <p>To customize the descriptions in the dropdown list override the following methods: \n'
20130515 ' * {@link #getMinutesText}, {@link #getHoursText}, {@link #getDaysText} and {@link #getWeeksText}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ReminderField = Ext.extend(Ext.form.ComboBox, {\n'
20130515 '    width: 200,\n'
20130515 "    fieldLabel: 'Reminder',\n"
20130515 "    mode: 'local',\n"
20130515 "    triggerAction: 'all',\n"
20130515 '    forceSelection: true,\n'
20130515 "    displayField: 'desc',\n"
20130515 "    valueField: 'value',\n"
20130515 "    noneText: 'None',\n"
20130515 "    atStartTimeText: 'At start time',\n"
20130515 "    reminderValueFormat: '{0} {1} before start',\n"
20130515 '    \n'
20130515 '    // the following are all deprecated in favor of the corresponding get* template methods.\n'
20130515 '    // they are still here only for backwards-compatibility and will be removed in a future release.\n'
20130515 "    minutesText: 'minutes',\n"
20130515 "    hourText: 'hour',\n"
20130515 "    hoursText: 'hours',\n"
20130515 "    dayText: 'day',\n"
20130515 "    daysText: 'days',\n"
20130515 "    weekText: 'week',\n"
20130515 "    weeksText: 'weeks',\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the list of reminder values used as the contents of the combo list. This method is provided so that\n'
20130515 '     * the value list can be easily overridden as needed.\n'
20130515 '     * @return {Array} A 2-dimensional array of type [{String}, {String}] which contains the value and description\n'
20130515 '     * respectively of each item in the combo list. By default the value is the number of minutes for the selected \n'
20130515 "     * time value (e.g., value 120 == '2 hours') with empty string for no value, but these can be set to anything.\n"
20130515 '     */\n'
20130515 '    getValueList: function(){\n'
20130515 '        var me = this,\n'
20130515 '            fmt = me.reminderValueFormat,\n'
20130515 '            stringFormat = String.format;\n'
20130515 '            \n'
20130515 '        return [\n'
20130515 "            ['', me.noneText],\n"
20130515 "            ['0', me.atStartTimeText],\n"
20130515 "            ['5', stringFormat(fmt, '5', me.getMinutesText(5))],\n"
20130515 "            ['15', stringFormat(fmt, '15', me.getMinutesText(15))],\n"
20130515 "            ['30', stringFormat(fmt, '30', me.getMinutesText(30))],\n"
20130515 "            ['60', stringFormat(fmt, '1', me.getHoursText(1))],\n"
20130515 "            ['90', stringFormat(fmt, '1.5', me.getHoursText(1.5))],\n"
20130515 "            ['120', stringFormat(fmt, '2', me.getHoursText(2))],\n"
20130515 "            ['180', stringFormat(fmt, '3', me.getHoursText(3))],\n"
20130515 "            ['360', stringFormat(fmt, '6', me.getHoursText(6))],\n"
20130515 "            ['720', stringFormat(fmt, '12', me.getHoursText(12))],\n"
20130515 "            ['1440', stringFormat(fmt, '1', me.getDaysText(1))],\n"
20130515 "            ['2880', stringFormat(fmt, '2', me.getDaysText(2))],\n"
20130515 "            ['4320', stringFormat(fmt, '3', me.getDaysText(3))],\n"
20130515 "            ['5760', stringFormat(fmt, '4', me.getDaysText(4))],\n"
20130515 "            ['7200', stringFormat(fmt, '5', me.getDaysText(5))],\n"
20130515 "            ['10080', stringFormat(fmt, '1', me.getWeeksText(1))],\n"
20130515 "            ['20160', stringFormat(fmt, '2', me.getWeeksText(2))]\n"
20130515 '        ]\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of minutes\n'
20130515 "     * prior to the due time (defaults to 'minute' when the passed value === 1, else 'minutes').\n"
20130515 '     * @param {Number} numMinutes The number of minutes prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getMinutesText: function(numMinutes){\n'
20130515 '        return numMinutes === 1 ? this.minuteText : this.minutesText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of hours\n'
20130515 "     * prior to the due time (defaults to 'hour' when the passed value === 1, else 'hours').\n"
20130515 '     * @param {Number} numHours The number of hours prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getHoursText: function(numHours){\n'
20130515 '        return numHours === 1 ? this.hourText : this.hoursText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of days\n'
20130515 "     * prior to the due time (defaults to 'day' when the passed value === 1, else 'days').\n"
20130515 '     * @param {Number} numDays The number of days prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getDaysText: function(numDays){\n'
20130515 '        return numDays === 1 ? this.dayText : this.daysText;\n'
20130515 '    },\n'
20130515 '    /**\n'
20130515 '     * Returns the unit text to use for a reminder that has a specified number of weeks\n'
20130515 "     * prior to the due time (defaults to 'week' when the passed value === 1, else 'weeks').\n"
20130515 '     * @param {Number} numWeeks The number of weeks prior to the due time\n'
20130515 '     * @return {String} The unit text\n'
20130515 '     */\n'
20130515 '    getWeeksText: function(numWeeks){\n'
20130515 '        return numWeeks === 1 ? this.weekText : this.weeksText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ReminderField.superclass.initComponent.call(this);\n'
20130515 '        this.store = this.store || new Ext.data.ArrayStore({\n'
20130515 '            fields: [this.valueField, this.displayField],\n'
20130515 '            idIndex: 0,\n'
20130515 '            data: this.getValueList()\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    initValue : function(){\n'
20130515 '        if(this.value !== undefined){\n'
20130515 '            this.setValue(this.value);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.setValue('');\n"
20130515 '        }\n'
20130515 '        this.originalValue = this.getValue();\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.reminderfield', Ext.ensible.cal.ReminderField);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.ColorPalette\n'
20130515 ' * @extends Ext.ColorPalette\n'
20130515 ' * Simple color palette class for choosing colors specifically for calendars. This is a lightly modified version\n'
20130515 ' * of the default Ext ColorPalette that is based on calendar ids rather than hex color codes so that the colors\n'
20130515 ' * can be easily modified via CSS and automatically applied to calendars. The specific colors used by default are\n'
20130515 ' * also chosen to provide good color contrast when displayed in calendars.\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * Create a new ColorPalette\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype extensible.calendarcolorpalette\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.ColorPalette = Ext.extend(Ext.ColorPalette, {\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    colorCount: 32,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Function} handler\n'
20130515 '     * Optional. A function that will handle the select event of this color palette.\n'
20130515 '     * The handler is passed the following parameters:<div class="mdetail-params"><ul>\n'
20130515 '     * <li><code>palette</code> : ColorPalette<div class="sub-desc">The {@link #palette Ext.ensible.cal.ColorPalette} instance.</div></li>\n'
20130515 '     * <li><code>colorId</code> : String<div class="sub-desc">The id that identifies the selected color and relates it to a calendar.</div></li>\n'
20130515 '     * </ul></div>\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        Ext.ensible.cal.ColorPalette.superclass.initComponent.call(this);\n'
20130515 "        this.addClass('x-calendar-palette');\n"
20130515 '        this.tpl = new Ext.XTemplate(\'<tpl for="."><a class="x-unselectable x-cal-color" id="\' + this.id +\n'
20130515 '            \'-color-{.}" href="#" hidefocus="on"><em><span class="x-cal-{.}">&#160;</span></em></a></tpl>\');\n'
20130515 '            \n'
20130515 '        if(this.handler){\n'
20130515 "            this.on('select', this.handler, this.scope || this);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.colors = [];\n'
20130515 '        for(var i=1; i<=this.colorCount; i++){\n'
20130515 '            this.colors.push(i);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleClick : function(e, t){\n'
20130515 '        e.preventDefault();\n'
20130515 "        var el = e.getTarget('.x-cal-color', 3, true);\n"
20130515 '        if(el){\n'
20130515 "            var id = el.id.split('-color-')[1];\n"
20130515 '            this.select(id);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Selects the specified color in the palette (fires the {@link #select} event)\n'
20130515 '     * @param {Number} colorId The id that identifies the selected color and relates it to a calendar\n'
20130515 '     * @param {Boolean} suppressEvent (optional) True to stop the select event from firing. Defaults to <tt>false</tt>.\n'
20130515 '     */\n'
20130515 '    select : function(colorId, suppressEvent){\n'
20130515 '        if(colorId != this.value){\n'
20130515 '            if(this.value){\n'
20130515 "                Ext.fly(this.id+'-color-'+this.value).removeClass('x-color-palette-sel');\n"
20130515 '            }\n'
20130515 "            Ext.get(this.id+'-color-'+colorId).addClass('x-color-palette-sel');\n"
20130515 '            this.value = colorId;\n'
20130515 '            \n'
20130515 '            if(suppressEvent !== true){\n'
20130515 "                this.fireEvent('select', this, colorId);\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarcolorpalette', Ext.ensible.cal.ColorPalette);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarListMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * <p>A menu containing a {@link Ext.ensible.cal.ColorPalette palette} for choosing calendar colors, \n'
20130515 ' * as well as other calendar-specific options.</p>\n'
20130515 ' * @xtype extensible.calendarlistmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarListMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} cls\n'
20130515 "     * An optional extra CSS class that will be added to this component's Element (defaults to 'x-calendar-list-menu'). \n"
20130515 '     * This can be useful for adding customized styles to the component or any of its children using standard CSS rules.\n'
20130515 '     */\n'
20130515 "    cls : 'x-calendar-list-menu',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} displayOnlyThisCalendarText\n'
20130515 "     * The text to display for the 'Display only this calendar' option in the menu.\n"
20130515 '     */\n'
20130515 "    displayOnlyThisCalendarText: 'Display only this calendar',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Number} calendarId\n'
20130515 '     * The id of the calendar to be associated with this menu. This calendarId will be passed\n'
20130515 '     * back with any events from this menu to identify the calendar to be acted upon. The calendar\n'
20130515 '     * id can also be changed at any time after creation by calling {@link setCalendar}.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @property palette\n'
20130515 '     * @type ColorPalette\n'
20130515 '     * The {@link Ext.ensible.cal.ColorPalette ColorPalette} instance for this CalendarListMenu\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 "            'showcalendar',\n"
20130515 "            'hidecalendar',\n"
20130515 "            'radiocalendar',\n"
20130515 "            'colorchange'\n"
20130515 '        );\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.displayOnlyThisCalendarText,\n'
20130515 "                iconCls: 'extensible-cal-icon-cal-show',\n"
20130515 '                handler: this.handleRadioCalendarClick.createDelegate(this)\n'
20130515 "            }, '-', {\n"
20130515 "                xtype: 'extensible.calendarcolorpalette',\n"
20130515 '                handler: this.handleColorSelect.createDelegate(this)\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.afterRender.call(this);\n'
20130515 "        this.palette = this.findByType('extensible.calendarcolorpalette')[0];\n"
20130515 '        \n'
20130515 '        if(this.colorId){\n'
20130515 '            this.palette.select(this.colorId, true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendarClick: function(e, t){\n'
20130515 "        this.fireEvent('radiocalendar', this, this.calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorSelect: function(cp, selColorId){\n'
20130515 "        this.fireEvent('colorchange', this, this.calendarId, selColorId, this.colorId);\n"
20130515 '        this.colorId = selColorId;\n'
20130515 '        this.menuHide();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the calendar id and color id to be associated with this menu. This should be called each time the\n'
20130515 '     * menu is shown relative to a new calendar.\n'
20130515 '     * @param {Number} calendarId The id of the calendar to be associated\n'
20130515 '     * @param {Number} colorId The id of the color to be pre-selected in the color palette\n'
20130515 '     * @return {Ext.ensible.cal.CalendarListMenu} this\n'
20130515 '     */\n'
20130515 '    setCalendar: function(id, cid){\n'
20130515 '        this.calendarId = id;\n'
20130515 '        this.colorId = cid;\n'
20130515 '        \n'
20130515 '        if(this.rendered){\n'
20130515 '            this.palette.select(cid, true);\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    menuHide : function(){\n'
20130515 '        if(this.hideOnClick){\n'
20130515 '            this.hide(true);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlistmenu', Ext.ensible.cal.CalendarListMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.EventContextMenu\n'
20130515 ' * @extends Ext.menu.Menu\n'
20130515 ' * The context menu displayed for calendar events in any {@link Ext.ensible.cal.CalendarView CalendarView} subclass. \n'
20130515 ' * @xtype extensible.eventcontextmenu\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventContextMenu = Ext.extend(Ext.menu.Menu, {\n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} hideOnClick\n'
20130515 '     * False to continue showing the menu after a color is selected, defaults to true.\n'
20130515 '     */\n'
20130515 '    hideOnClick : true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} ignoreParentClicks\n'
20130515 '     * True to ignore clicks on any item in this menu that is a parent item (displays a submenu) \n'
20130515 '     * so that the submenu is not dismissed when clicking the parent item (defaults to true).\n'
20130515 '     */\n'
20130515 '    ignoreParentClicks: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} editDetailsText\n'
20130515 "     * The text to display for the 'Edit Details' option in the menu.\n"
20130515 '     */\n'
20130515 "    editDetailsText: 'Edit Details',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} deleteText\n'
20130515 "     * The text to display for the 'Delete' option in the menu.\n"
20130515 '     */\n'
20130515 "    deleteText: 'Delete',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} moveToText\n'
20130515 "     * The text to display for the 'Move to...' option in the menu.\n"
20130515 '     */\n'
20130515 "    moveToText: 'Move to...',\n"
20130515 '    \n'
20130515 '    /** \n'
20130515 '     * @cfg {Boolean} enableScrolling\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    enableScrolling : false,\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} maxHeight\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /** \n'
20130515 '     * @cfg {Number} scrollIncrement\n'
20130515 '     * @hide \n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event click\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @event itemclick\n'
20130515 '     * @hide\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.addEvents(\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the event details\n'
20130515 '             * (by default, in an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should \n'
20130515 '             * transfer the current event record to the appropriate instance of the detailed form by showing\n'
20130515 '             * the form and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'editdetails',\n"
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after the user selectes the option to delete an event. Note that this menu does not actually\n'
20130515 '             * delete the event from the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the deletion and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be deleted\n'
20130515 '             * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '             */\n'
20130515 "            'eventdelete',\n"
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after the user selects a date in the calendar picker under the "move event" menu option. Note that this menu does not actually\n'
20130515 '             * update the event in the data store. This is simply a notification that the menu option was selected --\n'
20130515 '             * it is the responsibility of handling code to perform the move action and any clean up required.\n'
20130515 '             * @param {Ext.ensible.cal.EventContextMenu} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event to be moved\n'
20130515 '             * @param {Date} dt The new start date for the event (the existing event start time will be preserved)\n'
20130515 '             */\n'
20130515 "            'eventmove'\n"
20130515 '        );\n'
20130515 '        this.buildMenu();\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Overrideable method intended for customizing the menu items. This should only to be used for overriding \n'
20130515 '     * or called from a subclass and should not be called directly from application code.\n'
20130515 '     */\n'
20130515 '    buildMenu: function(){\n'
20130515 '        if(this.rendered){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.dateMenu = new Ext.menu.DateMenu({\n'
20130515 '            scope: this,\n'
20130515 '            handler: function(dp, dt){\n'
20130515 '                dt = Ext.ensible.Date.copyTime(this.rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt);\n'
20130515 "                this.fireEvent('eventmove', this, this.rec, dt);\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        Ext.apply(this, {\n'
20130515 '            items: [{\n'
20130515 '                text: this.editDetailsText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-edit',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('editdetails', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 '            },{\n'
20130515 '                text: this.deleteText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-del',\n"
20130515 '                scope: this,\n'
20130515 '                handler: function(){\n'
20130515 "                    this.fireEvent('eventdelete', this, this.rec, this.ctxEl);\n"
20130515 '                }\n'
20130515 "            },'-',{\n"
20130515 '                text: this.moveToText,\n'
20130515 "                iconCls: 'extensible-cal-icon-evt-move',\n"
20130515 '                menu: this.dateMenu\n'
20130515 '            }]\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the specified event at the given XY position. \n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event\n'
20130515 '     * @param {Ext.Element} el The element associated with this context menu\n'
20130515 '     * @param {Array} xy The X & Y [x, y] values for the position at which to show the menu (coordinates are page-based) \n'
20130515 '     */\n'
20130515 '    showForEvent: function(rec, el, xy){\n'
20130515 '        this.rec = rec;\n'
20130515 '        this.ctxEl = el;\n'
20130515 '        this.dateMenu.picker.setValue(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        this.showAt(xy);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onHide : function(){\n'
20130515 '        Ext.ensible.cal.CalendarListMenu.superclass.onHide.call(this);\n'
20130515 '        delete this.ctxEl;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventcontextmenu', Ext.ensible.cal.EventContextMenu);/**\n"
20130515 ' * @class Ext.ensible.cal.CalendarList\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is a {@link Ext.Panel panel} subclass that renders a list of available calendars\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarList = Ext.extend(Ext.Panel, {\n'
20130515 "    title: 'Calendars',\n"
20130515 '    collapsible: true,\n'
20130515 '    autoHeight: true,\n'
20130515 "    layout: 'fit',\n"
20130515 "    menuSelector: 'em',\n"
20130515 "    width: 100, // this should be overridden by this container's layout\n"
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} store\n'
20130515 '     * A {@link Ext.data.Store store} containing records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * This is a required config and is used to populate the calendar list.  The CalendarList widget will also listen for events from\n'
20130515 '     * the store and automatically refresh iteself in the event that the underlying calendar records in the store change.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 "        this.addClass('x-calendar-list');\n"
20130515 '        Ext.ensible.cal.CalendarList.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(ct, position){\n'
20130515 '        Ext.ensible.cal.CalendarList.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        if(this.store){\n'
20130515 '            this.setStore(this.store, true);\n'
20130515 '        }\n'
20130515 '        this.refresh();\n'
20130515 '        \n'
20130515 "        this.body.on('click', this.onClick, this);\n"
20130515 "        this.body.on('mouseover', this.onMouseOver, this, {delegate: 'li'});\n"
20130515 "        this.body.on('mouseout', this.onMouseOut, this, {delegate: 'li'});\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getListTemplate : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evr {colorCls} {hiddenCls}">{title}<em>&#160;</em></li>\',\n'
20130515 "                    '</tpl></ul>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<ul class="x-unselectable"><tpl for=".">\',\n'
20130515 '                        \'<li id="{cmpId}" class="ext-cal-evo {colorCls} {hiddenCls}">\',\n'
20130515 '                            \'<div class="ext-cal-evm">\',\n'
20130515 '                                \'<div class="ext-cal-evi">{title}<em>&#160;</em></div>\',\n'
20130515 "                            '</div>',\n"
20130515 "                        '</li>',\n"
20130515 "                    '</tpl></ul>'\n"
20130515 '                );\n'
20130515 '            this.tpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.tpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the store used to display the available calendars. It should contain \n'
20130515 '     * records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        if(!initial && this.store){\n'
20130515 '            this.store.un("load", this.refresh, this);\n'
20130515 '            this.store.un("add", this.refresh, this);\n'
20130515 '            this.store.un("remove", this.refresh, this);\n'
20130515 '            this.store.un("update", this.onUpdate, this);\n'
20130515 '            this.store.un("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("load", this.refresh, this);\n'
20130515 '            store.on("add", this.refresh, this);\n'
20130515 '            store.on("remove", this.refresh, this);\n'
20130515 '            store.on("update", this.onUpdate, this);\n'
20130515 '            store.on("clear", this.refresh, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onUpdate : function(ds, rec, operation){\n'
20130515 '        // ignore EDIT notifications, only refresh after a commit\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.refresh();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Refreshes the calendar list so that it displays based on the most current state of\n'
20130515 '     * the underlying calendar store. Usually this method does not need to be called directly\n'
20130515 "     * as the control is automatically bound to the store's events, but it is available in the\n"
20130515 '     * event that a manual refresh is ever needed.\n'
20130515 '     */\n'
20130515 '    refresh: function(){\n'
20130515 '        if(this.skipRefresh){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        var data = [], i = 0, o = null,\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            o = {\n'
20130515 "                cmpId: this.id + '__' + recs[i].data[CM.CalendarId.name],\n"
20130515 '                title: recs[i].data[CM.Title.name],\n'
20130515 '                colorCls: this.getColorCls(recs[i].data[CM.ColorId.name])\n'
20130515 '            };\n'
20130515 '            if(recs[i].data[CM.IsHidden.name] === true){\n'
20130515 "                o.hiddenCls = 'ext-cal-hidden';\n"
20130515 '            }\n'
20130515 '            data[data.length] = o;\n'
20130515 '        }\n'
20130515 '        this.getListTemplate().overwrite(this.body, data);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getColorCls: function(colorId){\n'
20130515 "        return 'x-cal-'+colorId+'-ad';\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    toggleCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id),\n'
20130515 '            CM = Ext.ensible.cal.CalendarMappings,\n'
20130515 '            isHidden = rec.data[CM.IsHidden.name]; \n'
20130515 '        \n'
20130515 '        rec.set([CM.IsHidden.name], !isHidden);\n'
20130515 '        \n'
20130515 '        if(commit !== false){\n'
20130515 '            rec.commit();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    hideCalendar: function(id, commit){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        if(rec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] !== true){\n'
20130515 '            this.toggleCalendar(id, commit);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    radioCalendar: function(id){\n'
20130515 '        var i = 0, recId,\n'
20130515 '            calendarId = Ext.ensible.cal.CalendarMappings.CalendarId.name,\n'
20130515 '            recs = this.store.getRange(),\n'
20130515 '            len = recs.length;\n'
20130515 '            \n'
20130515 '        for(; i < len; i++){\n'
20130515 '            recId = recs[i].data[calendarId];\n'
20130515 '            // make a truthy check so that either numeric or string ids can match\n'
20130515 '            if(recId == id){\n'
20130515 '                this.showCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '            else{\n'
20130515 '                this.hideCalendar(recId, false);\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // store.commitChanges() just loops over each modified record and calls rec.commit(),\n'
20130515 '        // which in turns fires an update event that would cause a full refresh for each record.\n'
20130515 '        // To avoid this we simply set a flag and make sure we only refresh once per commit set.\n'
20130515 '        this.skipRefresh = true;\n'
20130515 '        this.store.commitChanges();\n'
20130515 '        delete this.skipRefresh;\n'
20130515 '        this.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOver: function(e, t){\n'
20130515 "        Ext.fly(t).addClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMouseOut: function(e, t){\n'
20130515 "        Ext.fly(t).removeClass('hover');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarId: function(el){\n'
20130515 "        return el.id.split('__')[1];\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getCalendarItemEl: function(calendarId){\n'
20130515 "        return Ext.get(this.id+'__'+calendarId);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        var el;\n'
20130515 '        if(el = e.getTarget(this.menuSelector, 3, true)){\n'
20130515 '            this.showEventMenu(el, e.getXY());\n'
20130515 '        }\n'
20130515 "        else if(el = e.getTarget('li', 3, true)){\n"
20130515 '            this.toggleCalendar(this.getCalendarId(el));\n'
20130515 '        } \n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleColorChange: function(menu, id, colorId, origColorId){\n'
20130515 '        var rec = this.store.getById(id);\n'
20130515 '        rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name] = colorId;\n'
20130515 '        rec.commit();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    handleRadioCalendar: function(menu, id){\n'
20130515 '        this.radioCalendar(id);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    showEventMenu : function(el, xy){\n'
20130515 "        var id = this.getCalendarId(el.parent('li')),\n"
20130515 '            rec = this.store.getById(id),\n'
20130515 '            colorId = rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n'
20130515 '            \n'
20130515 '        if(!this.menu){\n'
20130515 '            this.menu = new Ext.ensible.cal.CalendarListMenu();\n'
20130515 "            this.menu.on('colorchange', this.handleColorChange, this);\n"
20130515 "            this.menu.on('radiocalendar', this.handleRadioCalendar, this);\n"
20130515 '        }\n'
20130515 '        this.menu.setCalendar(id, colorId);\n'
20130515 '        this.menu.showAt(xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarlist', Ext.ensible.cal.CalendarList);/**\n"
20130515 ' * @class Ext.ensible.cal.EventEditForm\n'
20130515 ' * @extends Ext.form.FormPanel\n'
20130515 ' * <p>A custom form used for detailed editing of events.</p>\n'
20130515 ' * <p>This is pretty much a standard form that is simply pre-configured for the options needed by the\n'
20130515 ' * calendar components. It is also configured to automatically bind records of type {@link Ext.ensible.cal.EventRecord}\n'
20130515 ' * to and from the form.</p>\n'
20130515 ' * <p>This form also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 'labelWidth: 65,\n'
20130515 'labelWidthRightCol: 65,\n'
20130515 'colWidthLeft: .6,\n'
20130515 'colWidthRight: .4,\n'
20130515 "title: 'Event Form',\n"
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "reminderLabelText: 'Reminder',\n"
20130515 "notesLabelText: 'Notes',\n"
20130515 "locationLabelText: 'Location',\n"
20130515 "webLinkLabelText: 'Web Link',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "repeatsLabelText: 'Repeats',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 'border: false,\n'
20130515 "buttonAlign: 'center',\n"
20130515 'autoHeight: true // to allow for the notes field to autogrow\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditForm = Ext.extend(Ext.form.FormPanel, {\n'
20130515 '    labelWidth: 65,\n'
20130515 '    labelWidthRightCol: 65,\n'
20130515 '    colWidthLeft: .6,\n'
20130515 '    colWidthRight: .4,\n'
20130515 "    title: 'Event Form',\n"
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    reminderLabelText: 'Reminder',\n"
20130515 "    notesLabelText: 'Notes',\n"
20130515 "    locationLabelText: 'Location',\n"
20130515 "    webLinkLabelText: 'Web Link',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    repeatsLabelText: 'Repeats',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    bodyStyle: 'padding:20px 20px 10px;',\n"
20130515 '    border: false,\n'
20130515 "    buttonAlign: 'center',\n"
20130515 '    autoHeight: true, // to allow for the notes field to autogrow\n'
20130515 '    \n'
20130515 '    /* // not currently supported\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false,\n'
20130515 '    \n'
20130515 '    // private properties:\n'
20130515 "    layout: 'column',\n"
20130515 "    cls: 'ext-evt-edit-form',\n"
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditForm} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true\n'
20130515 '        });\n'
20130515 '                \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 "            anchor: '90%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 '            fieldLabel: this.datesLabelText,\n'
20130515 '            singleLine: false,\n'
20130515 "            anchor: '90%',\n"
20130515 '            listeners: {\n'
20130515 "                'change': this.onDateChange.createDelegate(this)\n"
20130515 '            }\n'
20130515 '        });\n'
20130515 '        this.reminderField = new Ext.ensible.cal.ReminderField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Reminder.name,\n'
20130515 '            fieldLabel: this.reminderLabelText\n'
20130515 '        });\n'
20130515 '        this.notesField = new Ext.form.TextArea({\n'
20130515 '            fieldLabel: this.notesLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Notes.name,\n'
20130515 '            grow: true,\n'
20130515 '            growMax: 150,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.locationField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.locationLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Location.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.urlField = new Ext.form.TextField({\n'
20130515 '            fieldLabel: this.webLinkLabelText,\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Url.name,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        \n'
20130515 '        var leftFields = [this.titleField, this.dateRangeField, this.reminderField], \n'
20130515 '            rightFields = [this.notesField, this.locationField, this.urlField];\n'
20130515 '            \n'
20130515 '        if(this.enableRecurrence){\n'
20130515 '            this.recurrenceField = new Ext.ensible.cal.RecurrenceField({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.RRule.name,\n'
20130515 '                fieldLabel: this.repeatsLabelText,\n'
20130515 "                anchor: '100%'\n"
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.recurrenceField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                store: this.calendarStore,\n'
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name\n'
20130515 '            });\n'
20130515 '            leftFields.splice(2, 0, this.calendarField);\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.items = [{\n'
20130515 "            id: this.id+'-left-col',\n"
20130515 '            columnWidth: this.colWidthLeft,\n'
20130515 "            layout: 'form',\n"
20130515 '            border: false,\n'
20130515 '            items: leftFields\n'
20130515 '        },{\n'
20130515 "            id: this.id+'-right-col',\n"
20130515 '            columnWidth: this.colWidthRight,\n'
20130515 "            layout: 'form',\n"
20130515 '            labelWidth: this.labelWidthRightCol || this.labelWidth,\n'
20130515 '            border: false,\n'
20130515 '            items: rightFields\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        this.fbar = [{\n'
20130515 '            text:this.saveButtonText, scope: this, handler: this.onSave\n'
20130515 '        },{\n'
20130515 "            cls:'ext-del-btn', text:this.deleteButtonText, scope:this, handler:this.onDelete\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, scope: this, handler: this.onCancel\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditForm.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDateChange: function(dateRangeField, val){\n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(val[0]);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    loadRecord: function(rec){\n'
20130515 '        this.form.reset().loadRecord.apply(this.form, arguments);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        \n'
20130515 '        if(this.recurrenceField){\n'
20130515 '            this.recurrenceField.setStartDate(rec.data[Ext.ensible.cal.EventMappings.StartDate.name]);\n'
20130515 '        }\n'
20130515 '        if(this.calendarStore){\n'
20130515 "            this.form.setValues({'calendar': rec.data[Ext.ensible.cal.EventMappings.CalendarId.name]});\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        //this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '        if(rec.phantom){\n'
20130515 '            //rec.markDirty();\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(false);\n"
20130515 '        }\n'
20130515 '        else {\n'
20130515 '            this.setTitle(this.titleTextEdit);\n'
20130515 "            Ext.select('.ext-del-btn').setDisplayed(true);\n"
20130515 '        }\n'
20130515 '        this.titleField.focus();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    updateRecord: function(){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '        \n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = this.form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        //delete rec.store; // make sure the record does not try to autosave\n'
20130515 '        rec.endEdit();\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '        this.cleanup(true);\n'
20130515 "        this.fireEvent('eventcancel', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '        \n'
20130515 '        if(this.form.isDirty()){\n'
20130515 '            this.form.reset();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        if(!this.updateRecord()){\n'
20130515 '            this.onCancel();\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        this.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "        this.fireEvent('eventdelete', this, this.activeRecord);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditform', Ext.ensible.cal.EventEditForm);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.EventEditWindow\n'
20130515 ' * @extends Ext.Window\n'
20130515 ' * <p>A custom window containing a basic edit form used for quick editing of events.</p>\n'
20130515 ' * <p>This window also provides custom events specific to the calendar so that other calendar components can be easily\n'
20130515 ' * notified when an event has been edited via this component.</p>\n'
20130515 ' * <p>The default configs are as follows:</p><pre><code>\n'
20130515 "titleTextAdd: 'Add Event',\n"
20130515 "titleTextEdit: 'Edit Event',\n"
20130515 'width: 600,\n'
20130515 'border: true,\n'
20130515 "closeAction: 'hide',\n"
20130515 'modal: false,\n'
20130515 'resizable: false,\n'
20130515 "buttonAlign: 'left',\n"
20130515 'labelWidth: 65,\n'
20130515 "detailsLinkText: 'Edit Details...',\n"
20130515 "savingMessage: 'Saving changes...',\n"
20130515 "deletingMessage: 'Deleting event...',\n"
20130515 "saveButtonText: 'Save',\n"
20130515 "deleteButtonText: 'Delete',\n"
20130515 "cancelButtonText: 'Cancel',\n"
20130515 "titleLabelText: 'Title',\n"
20130515 "datesLabelText: 'When',\n"
20130515 "calendarLabelText: 'Calendar',\n"
20130515 "editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "bodyStyle: 'padding:5px 10px;',\n"
20130515 'enableEditDetails: true\n'
20130515 '</code></pre>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.EventEditWindow = Ext.extend(Ext.Window, {\n'
20130515 "    titleTextAdd: 'Add Event',\n"
20130515 "    titleTextEdit: 'Edit Event',\n"
20130515 '    width: 600,\n'
20130515 '    border: true,\n'
20130515 "    closeAction: 'hide',\n"
20130515 '    modal: false,\n'
20130515 '    resizable: false,\n'
20130515 "    buttonAlign: 'left',\n"
20130515 '    labelWidth: 65,\n'
20130515 "    detailsLinkText: 'Edit Details...',\n"
20130515 "    savingMessage: 'Saving changes...',\n"
20130515 "    deletingMessage: 'Deleting event...',\n"
20130515 "    saveButtonText: 'Save',\n"
20130515 "    deleteButtonText: 'Delete',\n"
20130515 "    cancelButtonText: 'Cancel',\n"
20130515 "    titleLabelText: 'Title',\n"
20130515 "    datesLabelText: 'When',\n"
20130515 "    calendarLabelText: 'Calendar',\n"
20130515 "    editDetailsLinkClass: 'edit-dtl-link',\n"
20130515 "    bodyStyle: 'padding:5px 10px;',\n"
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent: function(){\n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.EventEditWindow} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.fbar = ['->',{\n"
20130515 '            text:this.saveButtonText, disabled:false, handler:this.onSave, scope:this\n'
20130515 '        },{\n'
20130515 "            id:this.id+'-delete-btn', text:this.deleteButtonText, disabled:false, handler:this.onDelete, scope:this, hideMode:'offsets'\n"
20130515 '        },{\n'
20130515 '            text:this.cancelButtonText, disabled:false, handler:this.onCancel, scope:this\n'
20130515 '        }];\n'
20130515 '        \n'
20130515 '        if(this.enableEditDetails !== false){\n'
20130515 '            this.fbar.unshift({\n'
20130515 '                xtype: \'tbtext\', text: \'<a href="#" class="\'+this.editDetailsLinkClass+\'">\'+this.detailsLinkText+\'</a>\'\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onRender : function(ct, position){\n'
20130515 "        this.deleteBtn = Ext.getCmp(this.id+'-delete-btn');\n"
20130515 '        \n'
20130515 '        this.titleField = new Ext.form.TextField({\n'
20130515 '            name: Ext.ensible.cal.EventMappings.Title.name,\n'
20130515 '            fieldLabel: this.titleLabelText,\n'
20130515 "            anchor: '100%'\n"
20130515 '        });\n'
20130515 '        this.dateRangeField = new Ext.ensible.cal.DateRangeField({\n'
20130515 "            anchor: '95%',\n"
20130515 '            fieldLabel: this.datesLabelText\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        var items = [this.titleField, this.dateRangeField];\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField = new Ext.ensible.cal.CalendarCombo({\n'
20130515 '                name: Ext.ensible.cal.EventMappings.CalendarId.name,\n'
20130515 "                anchor: '100%',\n"
20130515 '                fieldLabel: this.calendarLabelText,\n'
20130515 '                store: this.calendarStore\n'
20130515 '            });\n'
20130515 '            items.push(this.calendarField);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        this.formPanel = new Ext.FormPanel({\n'
20130515 '            labelWidth: this.labelWidth,\n'
20130515 '            frame: false,\n'
20130515 '            bodyBorder: false,\n'
20130515 '            border: false,\n'
20130515 '            items: items\n'
20130515 '        });\n'
20130515 '        \n'
20130515 '        this.add(this.formPanel);\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.onRender.call(this, ct, position);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.EventEditWindow.superclass.afterRender.call(this);\n'
20130515 '\t\t\n'
20130515 "\t\tthis.el.addClass('ext-cal-event-win');\n"
20130515 "        this.el.select('.'+this.editDetailsLinkClass).on('click', this.onEditDetailsClick, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetailsClick: function(e){\n'
20130515 '        e.stopEvent();\n'
20130515 '        this.updateRecord(true);\n'
20130515 "        this.fireEvent('editdetails', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\t\n'
20130515 '\t/**\n'
20130515 '     * Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden.\n'
20130515 '\t * @param {Ext.data.Record/Object} o Either a {@link Ext.data.Record} if showing the form\n'
20130515 '\t * for an existing event in edit mode, or a plain object containing a StartDate property (and \n'
20130515 '\t * optionally an EndDate property) for showing the form in add mode. \n'
20130515 '     * @param {String/Element} animateTarget (optional) The target element or id from which the window should\n'
20130515 '     * animate while opening (defaults to null with no animation)\n'
20130515 '     * @return {Ext.Window} this\n'
20130515 '     */\n'
20130515 '    show: function(o, animateTarget){\n'
20130515 '\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\tvar anim = (Ext.isIE8 && Ext.isStrict) ? null : animateTarget,\n'
20130515 '            M = Ext.ensible.cal.EventMappings;\n'
20130515 '\n'
20130515 '\t\tExt.ensible.cal.EventEditWindow.superclass.show.call(this, anim, function(){\n'
20130515 '            this.titleField.focus(false, 100);\n'
20130515 '        });\n'
20130515 "        this.deleteBtn[o.data && o.data[M.EventId.name] ? 'show' : 'hide']();\n"
20130515 '        \n'
20130515 '        var rec, f = this.formPanel.form;\n'
20130515 '\n'
20130515 '        if(o.data){\n'
20130515 '            rec = o;\n'
20130515 '\t\t\t//this.isAdd = !!rec.data[Ext.ensible.cal.EventMappings.IsNew.name];\n'
20130515 '\t\t\tif(rec.phantom){\n'
20130515 '\t\t\t\t// Enable adding the default record that was passed in\n'
20130515 "\t\t\t\t// if it's new even if the user makes no changes \n"
20130515 '\t\t\t\t//rec.markDirty();\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextAdd);\n'
20130515 '\t\t\t}\n'
20130515 '\t\t\telse{\n'
20130515 '\t\t\t\tthis.setTitle(this.titleTextEdit);\n'
20130515 '\t\t\t}\n'
20130515 '            \n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '\t\t\t//this.isAdd = true;\n'
20130515 '            this.setTitle(this.titleTextAdd);\n'
20130515 '\n'
20130515 '            var start = o[M.StartDate.name],\n'
20130515 "                end = o[M.EndDate.name] || start.add('h', 1);\n"
20130515 '                \n'
20130515 '            rec = new Ext.ensible.cal.EventRecord();\n'
20130515 '            //rec.data[M.EventId.name] = this.newId++;\n'
20130515 '            rec.data[M.StartDate.name] = start;\n'
20130515 '            rec.data[M.EndDate.name] = end;\n'
20130515 '            rec.data[M.IsAllDay.name] = !!o[M.IsAllDay.name] || start.getDate() != end.clone().add(Date.MILLI, 1).getDate();\n'
20130515 '            \n'
20130515 '            f.reset();\n'
20130515 '            f.loadRecord(rec);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        if(this.calendarStore){\n'
20130515 '            this.calendarField.setValue(rec.data[M.CalendarId.name]);\n'
20130515 '        }\n'
20130515 '        this.dateRangeField.setValue(rec.data);\n'
20130515 '        this.activeRecord = rec;\n'
20130515 "        this.el.setStyle('z-index', 12000);\n"
20130515 '        \n'
20130515 '\t\treturn this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    roundTime: function(dt, incr){\n'
20130515 '        incr = incr || 15;\n'
20130515 '        var m = parseInt(dt.getMinutes());\n'
20130515 "        return dt.add('mi', incr - (m % incr));\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onCancel: function(){\n'
20130515 '    \tthis.cleanup(true);\n'
20130515 "\t\tthis.fireEvent('eventcancel', this, this.animateTarget);\n"
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    cleanup: function(hide){\n'
20130515 '        if(this.activeRecord){\n'
20130515 '            this.activeRecord.reject();\n'
20130515 '        }\n'
20130515 '        delete this.activeRecord;\n'
20130515 '\t\t\n'
20130515 '        if(hide===true){\n'
20130515 '\t\t\t// Work around the CSS day cell height hack needed for initial render in IE8/strict:\n'
20130515 '\t\t\t//var anim = afterDelete || (Ext.isIE8 && Ext.isStrict) ? null : this.animateTarget;\n'
20130515 '            this.hide();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateRecord: function(keepEditing){\n'
20130515 '        var dates = this.dateRangeField.getValue(),\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\n'
20130515 '            rec = this.activeRecord,\n'
20130515 '            form = this.formPanel.form,\n'
20130515 '            fs = rec.fields,\n'
20130515 '            dirty = false;\n'
20130515 '            \n'
20130515 '        rec.beginEdit();\n'
20130515 '\n'
20130515 '        //TODO: This block is copied directly from BasicForm.updateRecord.\n'
20130515 '        // Unfortunately since that method internally calls begin/endEdit all\n'
20130515 '        // updates happen and the record dirty status is reset internally to\n'
20130515 '        // that call. We need the dirty status, plus currently the DateRangeField\n'
20130515 "        // does not map directly to the record values, so for now we'll duplicate\n"
20130515 '        // the setter logic here (we need to be able to pick up any custom-added \n'
20130515 '        // fields generically). Need to revisit this later and come up with a better solution.\n'
20130515 '        fs.each(function(f){\n'
20130515 '            var field = form.findField(f.name);\n'
20130515 '            if(field){\n'
20130515 '                var value = field.getValue();\n'
20130515 '                if (value.getGroupValue) {\n'
20130515 '                    value = value.getGroupValue();\n'
20130515 '                } \n'
20130515 '                else if (field.eachItem) {\n'
20130515 '                    value = [];\n'
20130515 '                    field.eachItem(function(item){\n'
20130515 '                        value.push(item.getValue());\n'
20130515 '                    });\n'
20130515 '                }\n'
20130515 '                rec.set(f.name, value);\n'
20130515 '            }\n'
20130515 '        }, this);\n'
20130515 '        \n'
20130515 '        rec.set(M.StartDate.name, dates[0]);\n'
20130515 '        rec.set(M.EndDate.name, dates[1]);\n'
20130515 '        rec.set(M.IsAllDay.name, dates[2]);\n'
20130515 '        \n'
20130515 '        dirty = rec.dirty;\n'
20130515 '        \n'
20130515 '        if(!keepEditing){\n'
20130515 '            rec.endEdit();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return dirty;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onSave: function(){\n'
20130515 '        if(!this.formPanel.form.isValid()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\t\tif(!this.updateRecord()){\n'
20130515 '\t\t\tthis.onCancel();\n'
20130515 '\t\t\treturn;\n'
20130515 '\t\t}\n'
20130515 "\t\tthis.fireEvent(this.activeRecord.phantom ? 'eventadd' : 'eventupdate', this, this.activeRecord, this.animateTarget);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDelete: function(){\n'
20130515 "\t\tthis.fireEvent('eventdelete', this, this.activeRecord, this.animateTarget);\n"
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.eventeditwindow', Ext.ensible.cal.EventEditWindow);/**\r\n"
20130515 ' * @class Ext.ensible.cal.CalendarView\r\n'
20130515 ' * @extends Ext.BoxComponent\r\n'
20130515 ' * <p>This is an abstract class that serves as the base for other calendar views. This class is not\r\n'
20130515 ' * intended to be directly instantiated.</p>\r\n'
20130515 ' * <p>When extending this class to create a custom calendar view, you must provide an implementation\r\n'
20130515 ' * for the <code>renderItems</code> method, as there is no default implementation for rendering events\r\n'
20130515 ' * The rendering logic is totally dependent on how the UI structures its data, which\r\n'
20130515 ' * is determined by the underlying UI template (this base class does not have a template).</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.CalendarView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\r\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\r\n'
20130515 '     * config), and either can be used interchangeably.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\r\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\r\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\r\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\r\n'
20130515 '     * the default calendar (and color).\r\n'
20130515 '     */\r\n'
20130515 '    /*\r\n'
20130515 '     * @cfg {Boolean} enableRecurrence\r\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\r\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\r\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\r\n'
20130515 '     * if the server supports it.\r\n'
20130515 '     */\r\n'
20130515 '    //enableRecurrence: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} readOnly\r\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} startDay\r\n'
20130515 '     * The 0-based index for the day on which the calendar week begins (0=Sunday, which is the default)\r\n'
20130515 '     */\r\n'
20130515 '    startDay : 0,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} spansHavePriority\r\n'
20130515 '     * Allows switching between two different modes of rendering events that span multiple days. When true,\r\n'
20130515 '     * span events are always sorted first, possibly at the expense of start dates being out of order (e.g., \r\n'
20130515 '     * a span event that starts at 11am one day and spans into the next day would display before a non-spanning \r\n'
20130515 '     * event that starts at 10am, even though they would not be in date order). This can lead to more compact\r\n'
20130515 '     * layouts when there are many overlapping events. If false (the default), events will always sort by start date\r\n'
20130515 '     * first which can result in a less compact, but chronologically consistent layout.\r\n'
20130515 '     */\r\n'
20130515 '    spansHavePriority: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} trackMouseOver\r\n'
20130515 '     * Whether or not the view tracks and responds to the browser mouseover event on contained elements (defaults to\r\n'
20130515 "     * true). If you don't need mouseover event highlighting you can disable this.\r\n"
20130515 '     */\r\n'
20130515 '\ttrackMouseOver: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableFx\r\n'
20130515 '     * Determines whether or not visual effects for CRUD actions are enabled (defaults to true). If this is false\r\n'
20130515 '     * it will override any values for {@link #enableAddFx}, {@link #enableUpdateFx} or {@link enableRemoveFx} and\r\n'
20130515 '     * all animations will be disabled.\r\n'
20130515 '     */\r\n'
20130515 '\tenableFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableAddFx\r\n'
20130515 '     * True to enable a visual effect on adding a new event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doAddFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableAddFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableUpdateFx\r\n'
20130515 '     * True to enable a visual effect on updating an event, false to disable it (the default). Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doUpdateFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableUpdateFx: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableRemoveFx\r\n'
20130515 '     * True to enable a visual effect on removing an event (the default), false to disable it. Note that if \r\n'
20130515 '     * {@link #enableFx} is false it will override this value. The specific effect that runs is defined in the\r\n'
20130515 '     * {@link #doRemoveFx} method.\r\n'
20130515 '     */\r\n'
20130515 '\tenableRemoveFx: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableDD\r\n'
20130515 '     * True to enable drag and drop in the calendar view (the default), false to disable it\r\n'
20130515 '     */\r\n'
20130515 '    enableDD: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableContextMenus\r\n'
20130515 '     * True to enable automatic right-click context menu handling in the calendar views (the default), false to disable\r\n'
20130515 '     * them. Different context menus are provided when clicking on events vs. the view background.\r\n'
20130515 '     */\r\n'
20130515 '    enableContextMenus: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} suppressBrowserContextMenu\r\n'
20130515 '     * When {@link #enableContextMenus} is true, the browser context menu will automatically be suppressed whenever a\r\n'
20130515 '     * custom context menu is displayed. When this option is true, right-clicks on elements that do not have a custom\r\n'
20130515 '     * context menu will also suppress the default browser context menu (no menu will be shown at all). When false,\r\n'
20130515 '     * the browser context menu will still show if the right-clicked element has no custom menu (this is the default).\r\n'
20130515 '     */\r\n'
20130515 '    suppressBrowserContextMenu: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} monitorResize\r\n'
20130515 "     * True to monitor the browser's resize event (the default), false to ignore it. If the calendar view is rendered\r\n"
20130515 "     * into a fixed-size container this can be set to false. However, if the view can change dimensions (e.g., it's in \r\n"
20130515 '     * fit layout in a viewport or some other resizable container) it is very important that this config is true so that\r\n'
20130515 '     * any resize event propagates properly to all subcomponents and layouts get recalculated properly.\r\n'
20130515 '     */\r\n'
20130515 '    monitorResize: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayText\r\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\r\n"
20130515 '     */\r\n'
20130515 "    todayText: 'Today',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddCreateEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \r\n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddCreateEventText: 'Create event for {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddMoveEventText\r\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \r\n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\r\n"
20130515 '     */\r\n'
20130515 "\tddMoveEventText: 'Move event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} ddResizeEventText\r\n'
20130515 '     * The string displayed to the user in the drag proxy while dragging the resize handle of an event (defaults to \r\n'
20130515 "     * 'Update event to {0}' where {0} is the updated event start-end range supplied by the view). Note that \r\n"
20130515 '     * this text is only used in views\r\n'
20130515 '     * that allow resizing of events.\r\n'
20130515 '     */\r\n'
20130515 "    ddResizeEventText: 'Update event to {0}',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} defaultEventTitleText\r\n'
20130515 "     * The default text to display as the title of an event that has a null or empty string title value (defaults to '(No title)')\r\n"
20130515 '     */\r\n'
20130515 "    defaultEventTitleText: '(No title)',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamStart\r\n'
20130515 "     * The param name representing the start date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'start').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamStart: 'start',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamEnd\r\n'
20130515 "     * The param name representing the end date of the current view range that's passed in requests to retrieve events\r\n"
20130515 "     * when loading the view (defauts to 'end').\r\n"
20130515 '     */\r\n'
20130515 "    dateParamEnd: 'end',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} dateParamFormat\r\n'
20130515 "     * The format to use for date parameters sent with requests to retrieve events for the calendar (defaults to 'Y-m-d', e.g. '2010-10-31')\r\n"
20130515 '     */\r\n'
20130515 "    dateParamFormat: 'Y-m-d',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} editModal\r\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\r\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\r\n'
20130515 '     * config will no longer apply. \r\n'
20130515 '     */\r\n'
20130515 '    editModal: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} enableEditDetails\r\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\r\n'
20130515 '     * link and disable detailed event editing. \r\n'
20130515 '     */\r\n'
20130515 '    enableEditDetails: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekendCls\r\n'
20130515 "     * A CSS class to apply to weekend days in the current view (defaults to 'ext-cal-day-we' which highlights weekend days in light blue). \r\n"
20130515 "     * To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    weekendCls: 'ext-cal-day-we',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} prevMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month previous to the current view's month (defaults to 'ext-cal-day-prev' which \r\n"
20130515 "     * highlights previous month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    prevMonthCls: 'ext-cal-day-prev',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} nextMonthCls\r\n'
20130515 "     * A CSS class to apply to any days that fall in the month after the current view's month (defaults to 'ext-cal-day-next' which \r\n"
20130515 "     * highlights next month days in light gray). To disable this styling set the value to null or ''. \r\n"
20130515 '     */\r\n'
20130515 "    nextMonthCls: 'ext-cal-day-next',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} todayCls\r\n'
20130515 "     * A CSS class to apply to the current date when it is visible in the current view (defaults to 'ext-cal-day-today' which \r\n"
20130515 "     * highlights today in yellow). To disable this styling set the value to null or ''.\r\n"
20130515 '     */\r\n'
20130515 "    todayCls: 'ext-cal-day-today',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 '    weekCount: 1,\r\n'
20130515 '    dayCount: 1,\r\n'
20130515 "    eventSelector : '.ext-cal-evt',\r\n"
20130515 "    eventOverClass: 'ext-evt-over',\r\n"
20130515 "\teventElIdDelimiter: '-evt-',\r\n"
20130515 "    dayElIdDelimiter: '-day-',\r\n"
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns a string of HTML template markup to be used as the body portion of the event template created\r\n'
20130515 "     * by {@link #getEventTemplate}. This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. This string can include any valid {@link Ext.Template} code, and\r\n'
20130515 '     * any data tokens accessible to the containing event template can be referenced in this string.\r\n'
20130515 '     * @return {String} The body template string\r\n'
20130515 '     */\r\n'
20130515 '    getEventBodyMarkup : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\r\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with events. Internally this method\r\n'
20130515 "     * by default generates different markup for browsers that support CSS border radius and those that don't.\r\n"
20130515 '     * This method can be overridden as needed to customize the markup generated.</p>\r\n'
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\r\n'
20130515 "     * from the surrounding container markup.  This provides the flexibility to customize what's in the body without\r\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \r\n'
20130515 '     * overridden version also does the same.</p>\r\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\r\n'
20130515 '     */\r\n'
20130515 '    getEventTemplate : Ext.emptyFn, // must be implemented by a subclass\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * This is undefined by default, but can be implemented to allow custom CSS classes and template data to be\r\n'
20130515 '     * conditionally applied to events during rendering. This function will be called with the parameter list shown\r\n'
20130515 "     * below and is expected to return the CSS class name (or empty string '' for none) that will be added to the \r\n"
20130515 "     * event element's wrapping div. To apply multiple class names, simply return them space-delimited within the \r\n"
20130515 "     * string (e.g., 'my-class another-class'). Example usage, applied in a CalendarPanel config:\r\n"
20130515 '     * <pre><code>\r\n'
20130515 "// This example assumes a custom field of 'IsHoliday' has been added to EventRecord\r\n"
20130515 'viewConfig: {\r\n'
20130515 '    getEventClass: function(rec, allday, templateData, store){\r\n'
20130515 '        if(rec.data.IsHoliday){\r\n'
20130515 "            templateData.iconCls = 'holiday';\r\n"
20130515 "            return 'evt-holiday';\r\n"
20130515 '        }\r\n'
20130515 "        templateData.iconCls = 'plain';\r\n"
20130515 "        return '';\r\n"
20130515 '    },\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        // This is simplified, but shows the symtax for how you could add a\r\n'
20130515 '        // custom placeholder that maps back to the templateData property created\r\n'
20130515 '        // in getEventClass. Note that this is standard Ext template syntax.\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 '            this.eventBodyMarkup = \'&lt;span class="{iconCls}">&lt;/span> {Title}\';\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    }\r\n'
20130515 '}\r\n'
20130515 '</code></pre>\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} being rendered\r\n'
20130515 '     * @param {Boolean} isAllDay A flag indicating whether the event will be <em>rendered</em> as an all-day event. Note that this\r\n'
20130515 '     * will not necessarily correspond with the value of the <tt>EventRecord.IsAllDay</tt> field &mdash; events that span multiple\r\n'
20130515 '     * days will be rendered using the all-day event template regardless of the field value. If your logic for this function\r\n'
20130515 '     * needs to know whether or not the event will be rendered as an all-day event, this value should be used. \r\n'
20130515 '     * @param {Object} templateData A plain JavaScript object that is empty by default. You can add custom properties\r\n'
20130515 '     * to this object that will then be passed into the event template for the specific event being rendered. If you have \r\n'
20130515 '     * overridden the default event template and added custom data placeholders, you can use this object to pass the data\r\n'
20130515 '     * into the template that will replace those placeholders.\r\n'
20130515 '     * @param {Ext.data.Store} store The Event data store in use by the view\r\n'
20130515 '     * @method getEventClass\r\n'
20130515 "     * @return {String} A space-delimited CSS class string (or '')\r\n"
20130515 '     */\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        this.setStartDate(this.startDate || new Date());\r\n'
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '        \r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 "            this.addClass('ext-cal-readonly');\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventsrendered\r\n'
20130515 '             * Fires after events are finished rendering in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this \r\n'
20130515 '             */\r\n'
20130515 '            eventsrendered: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventclick\r\n'
20130515 '             * Fires after the user clicks on an event element. This is a cancelable event, so returning false from a \r\n'
20130515 '             * handler will cancel the click without displaying the event editor view. This could be useful for \r\n'
20130515 '             * validating the rules by which events should be editable by the user.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            eventclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventover\r\n'
20130515 '             * Fires anytime the mouse is over an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            eventover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventout\r\n'
20130515 '             * Fires anytime the mouse exits an event element\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\r\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\r\n'
20130515 '             */\r\n'
20130515 '            eventout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforedatechange\r\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\r\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\r\n'
20130515 '             * view change and the setting of the start date.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\r\n'
20130515 '             */\r\n'
20130515 '            beforedatechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event datechange\r\n'
20130515 '             * Fires after the start date of the view has changed. If you need to cancel the date change you should handle the \r\n'
20130515 '             * {@link #beforedatechange} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\r\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\r\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\r\n'
20130515 '             */\r\n'
20130515 '            datechange: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event rangeselect\r\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event. This is a \r\n'
20130515 '             * cancelable event, so returning false from a handler will cancel the drag operation and clean up any drag shim elements\r\n'
20130515 '             * without displaying the event editor view. This could be useful for validating that a user can only create events within\r\n'
20130515 '             * a certain range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\r\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\r\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\r\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\r\n'
20130515 '             * function call (e.g., callback()).\r\n'
20130515 '             */\r\n'
20130515 '\t\t\trangeselect: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventmove\r\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the move operation. This could be useful for validating that a user can \r\n'
20130515 '             * only move events within a certain date range.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\r\n'
20130515 '             * @param {Date} dt The new start date to be set (the end date will be automaticaly adjusted to match the event duration)\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventmove\r\n'
20130515 '             * Fires after an event element has been dragged by the user and dropped in a new position. If you need to cancel the \r\n'
20130515 '             * move operation you should handle the {@link #beforeeventmove} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\r\n'
20130515 '             * updated start and end dates\r\n'
20130515 '             */\r\n'
20130515 '\t\t\teventmove: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event initdrag\r\n'
20130515 '             * Fires when a drag operation is initiated in the view\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             */\r\n'
20130515 '            initdrag: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayover\r\n'
20130515 '             * Fires while the mouse is over a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is being moused over\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\r\n'
20130515 '             */\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayout\r\n'
20130515 '             * Fires when the mouse exits a day element \r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Date} dt The date that is exited\r\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\r\n'
20130515 '             */\r\n'
20130515 '            dayout: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event editdetails\r\n'
20130515 '             * Fires when the user selects the option in this window to continue editing in the detailed edit form\r\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}. Handling code should hide this window\r\n'
20130515 '             * and transfer the current event record to the appropriate instance of the detailed form by showing it\r\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            editdetails: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventadd\r\n'
20130515 '             * Fires after a new event has been added to the underlying store\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\r\n'
20130515 '             */\r\n'
20130515 '            eventadd: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventupdate\r\n'
20130515 '             * Fires after an existing event has been updated\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\r\n'
20130515 '             */\r\n'
20130515 '            eventupdate: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventcancel\r\n'
20130515 '             * Fires after an event add/edit operation has been canceled by the user and no store update took place\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\r\n'
20130515 '             */\r\n'
20130515 '            eventcancel: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event beforeeventdelete\r\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \r\n'
20130515 '             * will cancel the delete operation.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            beforeeventdelete: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event eventdelete\r\n'
20130515 '             * Fires after an event has been deleted by the user. If you need to cancel the delete operation you should handle the \r\n'
20130515 '             * {@link #beforeeventdelete} event and return false from your handler function.\r\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\r\n'
20130515 '             * @param {Ext.Element} el The target element\r\n'
20130515 '             */\r\n'
20130515 '            eventdelete: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.afterRender.call(this);\r\n'
20130515 '\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        \r\n'
20130515 '        if(this.store){\r\n'
20130515 '            this.setStore(this.store, true);\r\n'
20130515 '            if(this.store.deferLoad){\r\n'
20130515 '                this.reloadStore(this.store.deferLoad);\r\n'
20130515 '                delete this.store.deferLoad;\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.store.initialParams = this.getStoreParams();\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        if(this.calendarStore){\r\n'
20130515 '            this.setCalendarStore(this.calendarStore, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'mouseover': this.onMouseOver,\r\n"
20130515 "            'mouseout': this.onMouseOut,\r\n"
20130515 "            'click': this.onClick,\r\n"
20130515 "\t\t\t'resize': this.onResize,\r\n"
20130515 '            scope: this\r\n'
20130515 '        });\r\n'
20130515 '        \r\n'
20130515 '        // currently the context menu only contains CRUD actions so do not show it if read-only\r\n'
20130515 '        if(this.enableContextMenus && this.readOnly !== true){\r\n'
20130515 "            this.el.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.el.unselectable();\r\n'
20130515 '        \r\n'
20130515 '        if(this.enableDD && this.readOnly !== true && this.initDD){\r\n'
20130515 '\t\t\tthis.initDD();\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        this.on('eventsrendered', this.forceSize);\r\n"
20130515 '        this.forceSize.defer(100, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing the start and end dates to be passed as params in all calls\r\n'
20130515 '     * to load the event store. The param names are customizable using {@link #dateParamStart}\r\n'
20130515 '     * and {@link #dateParamEnd} and the date format used in requests is defined by {@link #dateParamFormat}.\r\n'
20130515 '     * If you need to add additional parameters to be sent when loading the store see {@link #getStoreParams}.\r\n'
20130515 '     * @return {Object} An object containing the start and end dates\r\n'
20130515 '     */\r\n'
20130515 '    getStoreDateParams : function(){\r\n'
20130515 '        var o = {};\r\n'
20130515 '        o[this.dateParamStart] = this.viewStart.format(this.dateParamFormat);\r\n'
20130515 '        o[this.dateParamEnd] = this.viewEnd.format(this.dateParamFormat);\r\n'
20130515 '        return o;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns an object containing all key/value params to be passed when loading the event store.\r\n'
20130515 '     * By default the returned object will simply be the same object returned by {@link #getStoreDateParams},\r\n'
20130515 '     * but this method is intended to be overridden if you need to pass anything in addition to start and end dates.\r\n'
20130515 '     * See the inline code comments when overriding for details.\r\n'
20130515 '     * @return {Object} An object containing all params to be sent when loading the event store\r\n'
20130515 '     */\r\n'
20130515 '    getStoreParams : function(){\r\n'
20130515 '        // This is needed if you require the default start and end dates to be included\r\n'
20130515 '        var params = this.getStoreDateParams();\r\n'
20130515 '        \r\n'
20130515 '        // Here is where you can add additional custom params, e.g.:\r\n'
20130515 '        // params.now = new Date().format(this.dateParamFormat);\r\n'
20130515 "        // params.foo = 'bar';\r\n"
20130515 '        // params.number = 123;\r\n'
20130515 '        \r\n'
20130515 '        return params;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Reloads the view's underlying event store using the params returned from {@link #getStoreParams}.\r\n"
20130515 '     * Reloading the store is typically managed automatically by the view itself, but the method is\r\n'
20130515 '     * available in case a manual reload is ever needed.\r\n'
20130515 "     * @param {Object} options (optional) An object matching the format used by Store's {@link Ext.data.Store#load load} method\r\n"
20130515 '     */\r\n'
20130515 '    reloadStore : function(o){\r\n'
20130515 "        Ext.ensible.log('reloadStore');\r\n"
20130515 '        o = Ext.isObject(o) ? o : {};\r\n'
20130515 '        o.params = o.params || {};\r\n'
20130515 '        \r\n'
20130515 '        Ext.apply(o.params, this.getStoreParams());\r\n'
20130515 '        this.store.load(o);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        if(this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.child('.ext-cal-hd-ct'),\r\n"
20130515 "                bd = this.el.child('.ext-cal-body-ct');\r\n"
20130515 '                \r\n'
20130515 '            if(bd==null || hd==null) return;\r\n'
20130515 '                \r\n'
20130515 '            var headerHeight = hd.getHeight(),\r\n'
20130515 '                sz = this.el.parent().getSize();\r\n'
20130515 '                   \r\n'
20130515 '            bd.setHeight(sz.height-headerHeight);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Refresh the current view, optionally reloading the event store also. While this is normally\r\n'
20130515 '     * managed internally on any navigation and/or CRUD action, there are times when you might want\r\n'
20130515 "     * to refresh the view manually (e.g., if you'd like to reload using different {@link #getStoreParams params}).\r\n"
20130515 '     * @param {Boolean} reloadData True to reload the store data first, false to simply redraw the view using current \r\n'
20130515 '     * data (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    refresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (base), reload = '+reloadData);\r\n"
20130515 '        if(reloadData === true){\r\n'
20130515 '            this.reloadStore();\r\n'
20130515 '        }\r\n'
20130515 '        this.prepareData();\r\n'
20130515 '        this.renderTemplate();\r\n'
20130515 '        this.renderItems();\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getWeekCount : function(){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd);\r\n'
20130515 '        return Math.ceil(days / this.dayCount);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareData : function(){\r\n'
20130515 '        var lastInMonth = this.startDate.getLastDateOfMonth(),\r\n'
20130515 '            w = 0, row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            weeks = this.weekCount < 1 ? 6 : this.weekCount;\r\n'
20130515 '        \r\n'
20130515 '        this.eventGrid = [[]];\r\n'
20130515 '        this.allDayGrid = [[]];\r\n'
20130515 '        this.evtMaxCount = [];\r\n'
20130515 '        \r\n'
20130515 '        var evtsInView = this.store.queryBy(function(rec){\r\n'
20130515 '            return this.isEventVisible(rec.data);\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        for(; w < weeks; w++){\r\n'
20130515 '            this.evtMaxCount[w] = 0;\r\n'
20130515 '            if(this.weekCount == -1 && dt > lastInMonth){\r\n'
20130515 '                //current week is fully in next month so skip\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            this.eventGrid[w] = this.eventGrid[w] || [];\r\n'
20130515 '            this.allDayGrid[w] = this.allDayGrid[w] || [];\r\n'
20130515 '            \r\n'
20130515 '            for(d = 0; d < this.dayCount; d++){\r\n'
20130515 '                if(evtsInView.getCount() > 0){\r\n'
20130515 '                    var evts = evtsInView.filterBy(function(rec){\r\n'
20130515 '                        var startsOnDate = (dt.getTime() == rec.data[Ext.ensible.cal.EventMappings.StartDate.name].clearTime(true).getTime());\r\n'
20130515 '                        var spansFromPrevView = (w == 0 && d == 0 && (dt > rec.data[Ext.ensible.cal.EventMappings.StartDate.name]));\r\n'
20130515 '                        return startsOnDate || spansFromPrevView;\r\n'
20130515 '                    }, this);\r\n'
20130515 '                    \r\n'
20130515 '                    this.sortEventRecordsForDay(evts);\r\n'
20130515 '                    this.prepareEventGrid(evts, w, d);\r\n'
20130515 '                }\r\n'
20130515 '                dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.currentWeekCount = w;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGrid : function(evts, w, d){\r\n'
20130515 '        var row = 0,\r\n'
20130515 '            dt = this.viewStart.clone(),\r\n'
20130515 '            max = this.maxEventsPerDay ? this.maxEventsPerDay : 999;\r\n'
20130515 '        \r\n'
20130515 '        evts.each(function(evt){\r\n'
20130515 '            var M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '            \r\n'
20130515 '            if(Ext.ensible.Date.diffDays(evt.data[M.StartDate.name], evt.data[M.EndDate.name]) > 0){\r\n'
20130515 '                var daysInView = Ext.ensible.Date.diffDays(\r\n'
20130515 '                    Ext.ensible.Date.max(this.viewStart, evt.data[M.StartDate.name]),\r\n'
20130515 '                    Ext.ensible.Date.min(this.viewEnd, evt.data[M.EndDate.name])) + 1;\r\n'
20130515 '                    \r\n'
20130515 '                this.prepareEventGridSpans(evt, this.eventGrid, w, d, daysInView);\r\n'
20130515 '                this.prepareEventGridSpans(evt, this.allDayGrid, w, d, daysInView, true);\r\n'
20130515 '            }\r\n'
20130515 '            else{\r\n'
20130515 '                row = this.findEmptyRowIndex(w,d);\r\n'
20130515 '                this.eventGrid[w][d] = this.eventGrid[w][d] || [];\r\n'
20130515 '                this.eventGrid[w][d][row] = evt;\r\n'
20130515 '                \r\n'
20130515 '                if(evt.data[M.IsAllDay.name]){\r\n'
20130515 '                    row = this.findEmptyRowIndex(w,d, true);\r\n'
20130515 '                    this.allDayGrid[w][d] = this.allDayGrid[w][d] || [];\r\n'
20130515 '                    this.allDayGrid[w][d][row] = evt;\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            if(this.evtMaxCount[w] < this.eventGrid[w][d].length){\r\n'
20130515 '                this.evtMaxCount[w] = Math.min(max+1, this.eventGrid[w][d].length);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }, this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    prepareEventGridSpans : function(evt, grid, w, d, days, allday){\r\n'
20130515 '        // this event spans multiple days/weeks, so we have to preprocess\r\n'
20130515 '        // the events and store special span events as placeholders so that\r\n'
20130515 '        // the render routine can build the necessary TD spans correctly.\r\n'
20130515 '        var w1 = w, d1 = d, \r\n'
20130515 '            row = this.findEmptyRowIndex(w,d,allday),\r\n'
20130515 '            dt = this.viewStart.clone();\r\n'
20130515 '        \r\n'
20130515 '        var start = {\r\n'
20130515 '            event: evt,\r\n'
20130515 '            isSpan: true,\r\n'
20130515 '            isSpanStart: true,\r\n'
20130515 '            spanLeft: false,\r\n'
20130515 '            spanRight: (d == 6)\r\n'
20130515 '        };\r\n'
20130515 '        grid[w][d] = grid[w][d] || [];\r\n'
20130515 '        grid[w][d][row] = start;\r\n'
20130515 '        \r\n'
20130515 '        while(--days){\r\n'
20130515 '            dt = dt.add(Date.DAY, 1);\r\n'
20130515 '            if(dt > this.viewEnd){\r\n'
20130515 '                break;\r\n'
20130515 '            }\r\n'
20130515 '            if(++d1>6){\r\n'
20130515 '                // reset counters to the next week\r\n'
20130515 '                d1 = 0; w1++;\r\n'
20130515 '                row = this.findEmptyRowIndex(w1,0);\r\n'
20130515 '            }\r\n'
20130515 '            grid[w1] = grid[w1] || [];\r\n'
20130515 '            grid[w1][d1] = grid[w1][d1] || [];\r\n'
20130515 '            \r\n'
20130515 '            grid[w1][d1][row] = {\r\n'
20130515 '                event: evt,\r\n'
20130515 '                isSpan: true,\r\n'
20130515 '                isSpanStart: (d1 == 0),\r\n'
20130515 '                spanLeft: (w1 > w) && (d1 % 7 == 0),\r\n'
20130515 '                spanRight: (d1 == 6) && (days > 1)\r\n'
20130515 '            };\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    findEmptyRowIndex : function(w, d, allday){\r\n'
20130515 '        var grid = allday ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            day = grid[w] ? grid[w][d] || [] : [],\r\n'
20130515 '            i = 0, ln = day.length;\r\n'
20130515 '            \r\n'
20130515 '        for(; i < ln; i++){\r\n'
20130515 '            if(day[i] == null){\r\n'
20130515 '                return i;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return ln;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderTemplate : function(){\r\n'
20130515 '        if(this.tpl){\r\n'
20130515 '            this.tpl.overwrite(this.el, this.getTemplateParams());\r\n'
20130515 '            this.lastRenderStart = this.viewStart.clone();\r\n'
20130515 '            this.lastRenderEnd = this.viewEnd.clone();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateParams : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            viewEnd: this.viewEnd,\r\n'
20130515 '            startDate: this.startDate,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            weekendCls: this.weekendCls,\r\n'
20130515 '            prevMonthCls: this.prevMonthCls,\r\n'
20130515 '            nextMonthCls: this.nextMonthCls,\r\n'
20130515 '            todayCls: this.todayCls\r\n'
20130515 '        };\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Disable store event monitoring within this view. Note that if you do this the view will no longer\r\n'
20130515 '     * refresh itself automatically when CRUD actions occur. To enable store events see {@link #enableStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tdisableStoreEvents : function(){\r\n'
20130515 '\t\tthis.monitorStoreEvents = false;\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable store event monitoring within this view if disabled by {@link #disbleStoreEvents}.\r\n'
20130515 '     * @return {CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '\tenableStoreEvents : function(refresh){\r\n'
20130515 '\t\tthis.monitorStoreEvents = true;\r\n'
20130515 '\t\tif(refresh === true){\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '\t\t}\r\n'
20130515 '        return this;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tthis.refresh(false);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 "        this.fireEvent('initdrag', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonEventDrop : function(rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonCalendarEndDrag : function(start, end, onComplete){\r\n'
20130515 "        // set this flag for other event handlers that might conflict while we're waiting\r\n"
20130515 '        this.dragPending = true;\r\n'
20130515 '        \r\n'
20130515 '        var dates = {},\r\n'
20130515 '            onComplete = this.onCalendarEndDragComplete.createDelegate(this, [onComplete]);\r\n'
20130515 '        \r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.StartDate.name] = start;\r\n'
20130515 '        dates[Ext.ensible.cal.EventMappings.EndDate.name] = end;\r\n'
20130515 '        \r\n'
20130515 "        if(this.fireEvent('rangeselect', this, dates, onComplete) !== false){\r\n"
20130515 '            this.showEventEditor(dates, null);\r\n'
20130515 "            this.editWin.on('hide', onComplete, this, {single:true});\r\n"
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 '            // client code canceled the selection so clean up immediately\r\n'
20130515 '            this.onCalendarEndDragComplete(onComplete);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onCalendarEndDragComplete : function(onComplete){\r\n'
20130515 '        // callback for the drop zone to clean up\r\n'
20130515 '        onComplete();\r\n'
20130515 '        // clear flag for other events to resume normally\r\n'
20130515 '        this.dragPending = false;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onUpdate : function(ds, rec, operation){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\r\n'
20130515 "            Ext.ensible.log('onUpdate');\r\n"
20130515 '            this.dismissEventEditor();\r\n'
20130515 '            \r\n'
20130515 '            var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '            // if the event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // any event instances were updated on the server\r\n'
20130515 "            this.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '            \r\n'
20130515 '\t\t\tif(this.enableFx && this.enableUpdateFx){\r\n'
20130515 '\t\t\t\tthis.doUpdateFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                    scope: this\r\n'
20130515 '                });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is updated. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was updated. The default \r\n'
20130515 '     * effect is {@link Ext.Element#highlight highlight}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableUpdateFx} is true (it is false by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the updated event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoUpdateFx : function(els, o){\r\n'
20130515 '\t\tthis.highlightEvent(els, null, o);\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onAdd : function(ds, recs, index){\r\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs; \r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false || rec.phantom){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(rec._deleting){\r\n'
20130515 '            delete rec._deleting;\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onAdd');\r\n"
20130515 '        \r\n'
20130515 '\t\tvar rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name];\r\n'
20130515 '        \r\n'
20130515 '        this.dismissEventEditor();    \r\n'
20130515 '\t\tthis.tempEventId = rec.id;\r\n'
20130515 '        // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '        // new event instances were generated on the server\r\n'
20130515 "\t\tthis.refresh(rrule !== undefined && rrule !== '');\r\n"
20130515 '\t\t\r\n'
20130515 '\t\tif(this.enableFx && this.enableAddFx){\r\n'
20130515 '\t\t\tthis.doAddFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '                scope: this\r\n'
20130515 '            });\r\n'
20130515 '\t\t};\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is added. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was added. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeIn fadeIn}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableAddFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the added event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object only contains the current scope (<tt>{scope:this}</tt>) but you can also add any additional fx-specific \r\n'
20130515 '     * options that might be needed for a particular effect to this object.\r\n'
20130515 '     */\r\n'
20130515 '\tdoAddFx : function(els, o){\r\n'
20130515 '\t\tels.fadeIn(Ext.apply(o, {duration:2}));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onRemove : function(ds, rec){\r\n'
20130515 '        if(this.hidden === true || this.monitorStoreEvents === false){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "        Ext.ensible.log('onRemove');\r\n"
20130515 '        this.dismissEventEditor();\r\n'
20130515 '        \r\n'
20130515 '        var rrule = rec.data[Ext.ensible.cal.EventMappings.RRule.name],\r\n'
20130515 '            // if the new event has a recurrence rule we have to reload the store in case\r\n'
20130515 '            // new event instances were generated on the server\r\n'
20130515 "            isRecurring = rrule !== undefined && rrule !== '';\r\n"
20130515 '        \r\n'
20130515 '\t\tif(this.enableFx && this.enableRemoveFx){\r\n'
20130515 '\t\t\tthis.doRemoveFx(this.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]), {\r\n'
20130515 '\t            remove: true,\r\n'
20130515 '\t            scope: this,\r\n'
20130515 '\t\t\t\tcallback: this.refresh.createDelegate(this, [isRecurring])\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.getEventEls(rec.data[Ext.ensible.cal.EventMappings.EventId.name]).remove();\r\n'
20130515 '            this.refresh(isRecurring);\r\n'
20130515 '\t\t}\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    /**\r\n'
20130515 '     * Provides the element effect(s) to run after an event is removed. The method is passed a {@link Ext.CompositeElement}\r\n'
20130515 '     * that contains one or more elements in the DOM representing the event that was removed. The default \r\n'
20130515 '     * effect is {@link Ext.Element#fadeOut fadeOut}. Note that this method will only be called when \r\n'
20130515 '     * {@link #enableRemoveFx} is true (it is true by default).\r\n'
20130515 '     * @param {Ext.CompositeElement} el The {@link Ext.CompositeElement} representing the removed event\r\n'
20130515 '     * @param {Object} options An options object to be passed through to any Element.Fx methods. By default this\r\n'
20130515 '     * object contains the following properties:\r\n'
20130515 '     * <pre><code>\r\n'
20130515 '{\r\n'
20130515 '   remove: true, // required by fadeOut to actually remove the element(s)\r\n'
20130515 '   scope: this,  // required for the callback\r\n'
20130515 '   callback: fn  // required to refresh the view after the fx finish\r\n'
20130515 '} \r\n'
20130515 '     * </code></pre>\r\n'
20130515 '     * While you can modify this options object as needed if you change the effect used, please note that the\r\n'
20130515 '     * callback method (and scope) MUST still be passed in order for the view to refresh correctly after the removal.\r\n'
20130515 '     * Please see the inline code comments before overriding this method. \r\n'
20130515 '     */\r\n'
20130515 '\tdoRemoveFx : function(els, o){\r\n'
20130515 '        // Please make sure you keep this entire code block or removing events might not work correctly!\r\n'
20130515 '        // Removing is a little different because we have to wait for the fx to finish, then we have to actually\r\n'
20130515 '        // refresh the view AFTER the fx are run (this is different than add and update).\r\n'
20130515 '        if(els.getCount() == 0 && Ext.isFunction(o.callback)){\r\n'
20130515 '            // if there are no matching elements in the view make sure the callback still runs.\r\n'
20130515 '            // this can happen when an event accessed from the "more" popup is deleted.\r\n'
20130515 '            o.callback.call(o.scope || this);\r\n'
20130515 '        }\r\n'
20130515 '        else{\r\n'
20130515 "            // If you'd like to customize the remove fx do so here. Just make sure you\r\n"
20130515 '            // DO NOT override the default callback property on the options object, and that\r\n'
20130515 '            // you still pass that object in whatever fx method you choose.\r\n'
20130515 '            els.fadeOut(o);\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * Visually highlights an event using {@link Ext.Fx#highlight} config options.\r\n'
20130515 '\t * @param {Ext.CompositeElement} els The element(s) to highlight\r\n'
20130515 '\t * @param {Object} color (optional) The highlight color. Should be a 6 char hex \r\n'
20130515 "\t * color without the leading # (defaults to yellow: 'ffff9c')\r\n"
20130515 '\t * @param {Object} o (optional) Object literal with any of the {@link Ext.Fx} config \r\n'
20130515 '\t * options. See {@link Ext.Fx#highlight} for usage examples.\r\n'
20130515 '\t */\r\n'
20130515 '\thighlightEvent : function(els, color, o) {\r\n'
20130515 '\t\tif(this.enableFx){\r\n'
20130515 '\t\t\tvar c;\r\n'
20130515 '\t\t\t!(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tels.highlight(color, o) :\r\n'
20130515 '\t\t\t\t// Fun IE/Opera handling:\r\n'
20130515 '\t\t\t\tels.each(function(el){\r\n'
20130515 "\t\t\t\t\tel.highlight(color, Ext.applyIf({attr:'color'}, o));\r\n"
20130515 "\t\t\t\t\tif(c = el.child('.ext-cal-evm')) {\r\n"
20130515 '\t\t\t\t\t\tc.highlight(color, o);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}, this);\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 "\t * Retrieve an Event object's id from its corresponding node in the DOM.\r\n"
20130515 '\t * @param {String/Element/HTMLElement} el An {@link Ext.Element}, DOM node or id\r\n'
20130515 '\t */\r\n'
20130515 '//\tgetEventIdFromEl : function(el){\r\n'
20130515 '//\t\tel = Ext.get(el);\r\n'
20130515 '//\t\tvar id = el.id.split(this.eventElIdDelimiter)[1];\r\n'
20130515 "//        if(id.indexOf('-w_') > -1){\r\n"
20130515 '//            //This id has the index of the week it is rendered in as part of the suffix.\r\n'
20130515 '//            //This allows events that span across weeks to still have reproducibly-unique DOM ids.\r\n'
20130515 "//            id = id.split('-w_')[0];\r\n"
20130515 '//        }\r\n'
20130515 '//        return id;\r\n'
20130515 '//\t},\r\n'
20130515 '    getEventIdFromEl : function(el){\r\n'
20130515 '        el = Ext.get(el);\r\n'
20130515 "        var parts, id = '', cls, classes = el.dom.className.split(' ');\r\n"
20130515 '        \r\n'
20130515 '        Ext.each(classes, function(cls){\r\n'
20130515 '            parts = cls.split(this.eventElIdDelimiter);\r\n'
20130515 '            if(parts.length > 1){\r\n'
20130515 '                id = parts[1];\r\n'
20130515 '                return false;\r\n'
20130515 '            }\r\n'
20130515 '        }, this);\r\n'
20130515 '        \r\n'
20130515 '        return id;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t// private\r\n'
20130515 '\tgetEventId : function(eventId){\r\n'
20130515 '\t\tif(eventId === undefined && this.tempEventId){\r\n'
20130515 '            // temp record id assigned during an add, will be overwritten later\r\n'
20130515 '\t\t\teventId = this.tempEventId;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn eventId;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @param {Boolean} forSelect\r\n'
20130515 '\t * @return {String} The selector class\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventSelectorCls : function(eventId, forSelect){\r\n'
20130515 "\t\tvar prefix = forSelect ? '.' : '';\r\n"
20130515 '\t\treturn prefix + this.id + this.eventElIdDelimiter + this.getEventId(eventId);\r\n'
20130515 '\t},\r\n'
20130515 '\r\n'
20130515 '\t/**\r\n'
20130515 '\t * \r\n'
20130515 '\t * @param {String} eventId\r\n'
20130515 '\t * @return {Ext.CompositeElement} The matching CompositeElement of nodes\r\n'
20130515 '\t * that comprise the rendered event.  Any event that spans across a view \r\n'
20130515 '\t * boundary will contain more than one internal Element.\r\n'
20130515 '\t */\r\n'
20130515 '\tgetEventEls : function(eventId){\r\n'
20130515 '\t\tvar els = this.el.select(this.getEventSelectorCls(this.getEventId(eventId), true), false);\r\n'
20130515 '\t\treturn new Ext.CompositeElement(els);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\r\n"
20130515 '     * @return {Boolean} True or false\r\n'
20130515 '     */\r\n'
20130515 '    isToday : function(){\r\n'
20130515 '        var today = new Date().clearTime().getTime();\r\n'
20130515 '        return this.viewStart.getTime() <= today && this.viewEnd.getTime() >= today;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // private\r\n'
20130515 '    onDataChanged : function(store){\r\n'
20130515 "        Ext.ensible.log('onDataChanged');\r\n"
20130515 '        this.refresh(false);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isEventVisible : function(evt){\r\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            data = evt.data ? evt.data : evt,\r\n'
20130515 '            calId = data[M.CalendarId.name],\r\n'
20130515 '            calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '            \r\n'
20130515 '        if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '            // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '            return false;\r\n'
20130515 '        }\r\n'
20130515 '            \r\n'
20130515 '        var start = this.viewStart.getTime(),\r\n'
20130515 '            end = this.viewEnd.getTime(),\r\n'
20130515 '            evStart = data[M.StartDate.name].getTime(),\r\n'
20130515 '            evEnd = data[M.EndDate.name].getTime();\r\n'
20130515 '            \r\n'
20130515 '        return Ext.ensible.Date.rangesOverlap(start, end, evStart, evEnd);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    isOverlapping : function(evt1, evt2){\r\n'
20130515 '        var ev1 = evt1.data ? evt1.data : evt1,\r\n'
20130515 '            ev2 = evt2.data ? evt2.data : evt2,\r\n'
20130515 '            M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            start1 = ev1[M.StartDate.name].getTime(),\r\n'
20130515 '            end1 = ev1[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 '            start2 = ev2[M.StartDate.name].getTime(),\r\n'
20130515 '            end2 = ev2[M.EndDate.name].add(Date.SECOND, -1).getTime(),\r\n'
20130515 "            startDiff = Ext.ensible.Date.diff(ev1[M.StartDate.name], ev2[M.StartDate.name], 'm');\r\n"
20130515 '            \r\n'
20130515 '            if(end1<start1){\r\n'
20130515 '                end1 = start1;\r\n'
20130515 '            }\r\n'
20130515 '            if(end2<start2){\r\n'
20130515 '                end2 = start2;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '//            var ev1startsInEv2 = (start1 >= start2 && start1 <= end2),\r\n'
20130515 '//            ev1EndsInEv2 = (end1 >= start2 && end1 <= end2),\r\n'
20130515 '//            ev1SpansEv2 = (start1 < start2 && end1 > end2),\r\n'
20130515 '            var evtsOverlap = Ext.ensible.Date.rangesOverlap(start1, end1, start2, end2),\r\n'
20130515 '                minimumMinutes = this.minEventDisplayMinutes || 0, // applies in day/week body view only for vertical overlap\r\n'
20130515 '                ev1MinHeightOverlapsEv2 = minimumMinutes > 0 && (startDiff > -minimumMinutes && startDiff < minimumMinutes);\r\n'
20130515 '        \r\n'
20130515 '        //return (ev1startsInEv2 || ev1EndsInEv2 || ev1SpansEv2 || ev1MinHeightOverlapsEv2);\r\n'
20130515 '        return (evtsOverlap || ev1MinHeightOverlapsEv2);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayEl : function(dt){\r\n'
20130515 '        return Ext.get(this.getDayId(dt));\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDayId : function(dt){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 "            dt = dt.format('Ymd');\r\n"
20130515 '        }\r\n'
20130515 '        return this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \r\n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\r\n'
20130515 '     * to the user use {@link #getViewBounds}.\r\n'
20130515 '     * @return {Date} The start date\r\n'
20130515 '     */\r\n'
20130515 '    getStartDate : function(){\r\n'
20130515 '        return this.startDate;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \r\n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\r\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\r\n'
20130515 '     */\r\n'
20130515 '    setStartDate : function(start, /*private*/reload){\r\n'
20130515 "        Ext.ensible.log('setStartDate (base) '+start.format('Y-m-d'));\r\n"
20130515 "        if(this.fireEvent('beforedatechange', this, this.startDate, start, this.viewStart, this.viewEnd) !== false){\r\n"
20130515 '            this.startDate = start.clearTime();\r\n'
20130515 '            this.setViewBounds(start);\r\n'
20130515 '            if(this.rendered){\r\n'
20130515 '                this.refresh(reload);\r\n'
20130515 '            }\r\n'
20130515 "            this.fireEvent('datechange', this, this.startDate, this.viewStart, this.viewEnd);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    setViewBounds : function(startDate){\r\n'
20130515 '        var start = startDate || this.startDate,\r\n'
20130515 '            offset = start.getDay() - this.startDay;\r\n'
20130515 '        \r\n'
20130515 '        if(offset < 0){\r\n'
20130515 '            // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '            offset += 7;\r\n'
20130515 '        }\r\n'
20130515 '        switch(this.weekCount){\r\n'
20130515 '            case 0:\r\n'
20130515 '            case 1:\r\n'
20130515 '                this.viewStart = this.dayCount < 7 && !this.startDayIsStatic ? start : start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.dayCount || 7).add(Date.SECOND, -1);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            case -1: // auto by month\r\n'
20130515 '                start = start.getFirstDateOfMonth();\r\n'
20130515 '                offset = start.getDay() - this.startDay;\r\n'
20130515 '                if(offset < 0){\r\n'
20130515 '                    // if the offset is negative then some days will be in the previous week so add a week to the offset\r\n'
20130515 '                    offset += 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                \r\n'
20130515 '                // start from current month start, not view start:\r\n'
20130515 '                var end = start.add(Date.MONTH, 1).add(Date.SECOND, -1);\r\n'
20130515 '                // fill out to the end of the week:\r\n'
20130515 '                offset = this.startDay;\r\n'
20130515 '                if(offset > end.getDay()){\r\n'
20130515 '                    // if the offset is larger than the end day index then the last row will be empty so skip it\r\n'
20130515 '                    offset -= 7;\r\n'
20130515 '                }\r\n'
20130515 '                this.viewEnd = end.add(Date.DAY, 6-end.getDay()+offset);\r\n'
20130515 '                return;\r\n'
20130515 '            \r\n'
20130515 '            default:\r\n'
20130515 '                this.viewStart = start.add(Date.DAY, -offset).clearTime(true);\r\n'
20130515 '                this.viewEnd = this.viewStart.add(Date.DAY, this.weekCount * 7).add(Date.SECOND, -1);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Returns the start and end boundary dates currently displayed in the view. The method\r\n'
20130515 '     * returns an object literal that contains the following properties:<ul>\r\n'
20130515 '     * <li><b>start</b> Date : <div class="sub-desc">The start date of the view</div></li>\r\n'
20130515 '     * <li><b>end</b> Date : <div class="sub-desc">The end date of the view</div></li></ul>\r\n'
20130515 '     * For example:<pre><code>\r\n'
20130515 'var bounds = view.getViewBounds();\r\n'
20130515 "alert('Start: '+bounds.start);\r\n"
20130515 "alert('End: '+bounds.end);\r\n"
20130515 '</code></pre>\r\n'
20130515 '     * @return {Object} An object literal containing the start and end values\r\n'
20130515 '     */\r\n'
20130515 '    getViewBounds : function(){\r\n'
20130515 '        return {\r\n'
20130515 '            start: this.viewStart,\r\n'
20130515 '            end: this.viewEnd\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\t/* private\r\n'
20130515 '\t * Sort events for a single day for display in the calendar.  This sorts allday\r\n'
20130515 '\t * events first, then non-allday events are sorted either based on event start\r\n'
20130515 '\t * priority or span priority based on the value of {@link #spansHavePriority} \r\n'
20130515 '\t * (defaults to event start priority).\r\n'
20130515 '\t * @param {MixedCollection} evts A {@link Ext.util.MixedCollection MixedCollection}  \r\n'
20130515 '\t * of {@link #Ext.ensible.cal.EventRecord EventRecord} objects\r\n'
20130515 '\t */\r\n'
20130515 '\tsortEventRecordsForDay: function(evts){\r\n'
20130515 '        if(evts.length < 2){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "\t\tevts.sort('ASC', function(evtA, evtB){\r\n"
20130515 '\t\t\tvar a = evtA.data, b = evtB.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Always sort all day events before anything else\r\n'
20130515 '\t\t\tif (a[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse if (b[M.IsAllDay.name]) {\r\n'
20130515 '\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (this.spansHavePriority) {\r\n'
20130515 '\t\t\t\t// This logic always weights span events higher than non-span events \r\n'
20130515 '\t\t\t\t// (at the possible expense of start time order). This seems to \r\n'
20130515 '\t\t\t\t// be the approach used by Google calendar and can lead to a more\r\n'
20130515 '\t\t\t\t// visually appealing layout in complex cases, but event order is\r\n'
20130515 '\t\t\t\t// not guaranteed to be consistent.\r\n'
20130515 '\t\t\t\tvar diff = Ext.ensible.Date.diffDays;\r\n'
20130515 '\t\t\t\tif (diff(a[M.StartDate.name], a[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\tif (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\t\t// Both events are multi-day\r\n'
20130515 '\t\t\t\t\t\tif (a[M.StartDate.name].getTime() == b[M.StartDate.name].getTime()) {\r\n'
20130515 '\t\t\t\t\t\t\t// If both events start at the same time, sort the one\r\n'
20130515 '\t\t\t\t\t\t\t// that ends later (potentially longer span bar) first\r\n'
20130515 '\t\t\t\t\t\t\treturn b[M.EndDate.name].getTime() - a[M.EndDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\treturn -1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse if (diff(b[M.StartDate.name], b[M.EndDate.name]) > 0) {\r\n'
20130515 '\t\t\t\t\treturn 1;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\t// Doing this allows span and non-span events to intermingle but\r\n'
20130515 '\t\t\t\t// remain sorted sequentially by start time. This seems more proper\r\n'
20130515 '\t\t\t\t// but can make for a less visually-compact layout when there are\r\n'
20130515 '\t\t\t\t// many such events mixed together closely on the calendar.\r\n'
20130515 '\t\t\t\treturn a[M.StartDate.name].getTime() - b[M.StartDate.name].getTime();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}.createDelegate(this));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to contain the passed date\r\n'
20130515 '     * @param {Date} dt The date to display\r\n'
20130515 '     */\r\n'
20130515 '    moveTo : function(dt, /*private*/reload){\r\n'
20130515 '        if(Ext.isDate(dt)){\r\n'
20130515 '            this.setStartDate(dt, reload);\r\n'
20130515 '            return this.startDate;\r\n'
20130515 '        }\r\n'
20130515 '        return dt;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the next consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveNext : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(this.viewEnd.add(Date.DAY, 1), reload);\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to the previous consecutive date(s)\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    movePrev : function(/*private*/reload){\r\n'
20130515 '        var days = Ext.ensible.Date.diffDays(this.viewStart, this.viewEnd)+1;\r\n'
20130515 '        return this.moveDays(-days, reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of months relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of months (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveMonths : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.MONTH, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of weeks relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of weeks (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveWeeks : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value*7), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\r\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\r\n'
20130515 '     * @return {Date} The new date\r\n'
20130515 '     */\r\n'
20130515 '    moveDays : function(value, /*private*/reload){\r\n'
20130515 '        return this.moveTo(this.startDate.add(Date.DAY, value), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Updates the view to show today\r\n'
20130515 "     * @return {Date} Today's date\r\n"
20130515 '     */\r\n'
20130515 '    moveToday : function(/*private*/reload){\r\n'
20130515 '        return this.moveTo(new Date(), reload);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setStore : function(store, initial){\r\n'
20130515 '        var currStore = this.store;\r\n'
20130515 '        \r\n'
20130515 '        if(!initial && currStore){\r\n'
20130515 '            currStore.un("datachanged", this.onDataChanged, this);\r\n'
20130515 '            currStore.un("clear", this.refresh, this);\r\n'
20130515 '            currStore.un("write", this.onWrite, this);\r\n'
20130515 '            currStore.un("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.onDataChanged, this);\r\n'
20130515 '            store.on("clear", this.refresh, this);\r\n'
20130515 '            store.on("write", this.onWrite, this);\r\n'
20130515 '            store.on("exception", this.onException, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.store = store;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onException : function(proxy, type, action, o, res, arg){\r\n'
20130515 '        // form edits are explicitly canceled, but we may not know if a drag/drop operation\r\n'
20130515 '        // succeeded until after a server round trip. if the update failed we have to explicitly\r\n'
20130515 "        // reject the changes so that the record doesn't stick around in the store's modified list \r\n"
20130515 '        if(arg.reject){\r\n'
20130515 '            arg.reject();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Sets the calendar store used by the calendar (contains records of type {@link Ext.ensible.cal.CalendarRecord CalendarRecord}).\r\n'
20130515 '     * @param {Ext.data.Store} store\r\n'
20130515 '     */\r\n'
20130515 '    setCalendarStore : function(store, initial){\r\n'
20130515 '        if(!initial && this.calendarStore){\r\n'
20130515 '            this.calendarStore.un("datachanged", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("add", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("remove", this.refresh, this);\r\n'
20130515 '            this.calendarStore.un("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        if(store){\r\n'
20130515 '            store.on("datachanged", this.refresh, this);\r\n'
20130515 '            store.on("add", this.refresh, this);\r\n'
20130515 '            store.on("remove", this.refresh, this);\r\n'
20130515 '            store.on("update", this.refresh, this);\r\n'
20130515 '        }\r\n'
20130515 '        this.calendarStore = store;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    getEventRecord : function(id){\r\n'
20130515 '        var idx = this.store.find(Ext.ensible.cal.EventMappings.EventId.name, id);\r\n'
20130515 '        return this.store.getAt(idx);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetEventRecordFromEl : function(el){\r\n'
20130515 '\t\treturn this.getEventRecord(this.getEventIdFromEl(el));\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventEditor : function(){\r\n'
20130515 '        // only create one instance of the edit window, even if there are multiple CalendarPanels\r\n'
20130515 "        this.editWin = this.editWin || Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '         \r\n'
20130515 '        if(!this.editWin){\r\n'
20130515 '            this.editWin = new Ext.ensible.cal.EventEditWindow({\r\n'
20130515 "                id: 'ext-cal-editwin',\r\n"
20130515 '                calendarStore: this.calendarStore,\r\n'
20130515 '                modal: this.editModal,\r\n'
20130515 '                enableEditDetails: this.enableEditDetails,\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'eventadd': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventAdd(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventupdate': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventUpdate(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventdelete': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            //win.hide(animTarget);\r\n'
20130515 '                            win.currentView.onEventDelete(null, rec);\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'editdetails': {\r\n"
20130515 '                        fn: function(win, rec, animTarget, view){\r\n'
20130515 '                            win.hide(animTarget);\r\n'
20130515 "                            win.currentView.fireEvent('editdetails', win.currentView, rec, animTarget);\r\n"
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    },\r\n'
20130515 "                    'eventcancel': {\r\n"
20130515 '                        fn: function(win, rec, animTarget){\r\n'
20130515 '                            this.dismissEventEditor(animTarget);\r\n'
20130515 '                            win.currentView.onEventCancel();\r\n'
20130515 '                        },\r\n'
20130515 '                        scope: this\r\n'
20130515 '                    }\r\n'
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        // allows the window to reference the current scope in its callbacks\r\n'
20130515 '        this.editWin.currentView = this;\r\n'
20130515 '        return this.editWin;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\r\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\r\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\r\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\r\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\r\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    showEventEditor : function(rec, animateTarget){\r\n'
20130515 '        this.getEventEditor().show(rec, animateTarget, this);\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \r\n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\r\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \r\n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\r\n"
20130515 '     * @return {Ext.ensible.cal.CalendarView} this\r\n'
20130515 '     */\r\n'
20130515 '    dismissEventEditor : function(dismissMethod, /*private*/ animTarget){\r\n'
20130515 '        if(this.newRecord && this.newRecord.phantom){\r\n'
20130515 '            this.store.remove(this.newRecord);\r\n'
20130515 '        }\r\n'
20130515 '        delete this.newRecord;\r\n'
20130515 '        \r\n'
20130515 "        // grab the manager's ref so that we dismiss it properly even if the active view has changed\r\n"
20130515 "        var editWin = Ext.WindowMgr.get('ext-cal-editwin');\r\n"
20130515 '        if(editWin){\r\n'
20130515 "            editWin[dismissMethod ? dismissMethod : 'hide'](animTarget);\r\n"
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    save: function(){\r\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\r\n"
20130515 '        // method will have already internally caused a save to execute on\r\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\r\n'
20130515 "        // otherwise we'll create duplicate transactions.\r\n"
20130515 '        if(!this.store.autoSave){\r\n'
20130515 '            this.store.save();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\r\n'
20130515 '        switch(action){\r\n'
20130515 "            case 'create': \r\n"
20130515 '                this.onAdd(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'update':\r\n"
20130515 '                this.onUpdate(store, rec, Ext.data.Record.COMMIT);\r\n'
20130515 '                break;\r\n'
20130515 "            case 'destroy':\r\n"
20130515 '                this.onRemove(store, rec);\r\n'
20130515 '                break;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventAdd: function(form, rec){\r\n'
20130515 '        this.newRecord = rec;\r\n'
20130515 '        if(!rec.store){\r\n'
20130515 '            this.store.add(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 '        }\r\n'
20130515 "        this.fireEvent('eventadd', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventUpdate: function(form, rec){\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventDelete: function(form, rec){\r\n'
20130515 '        if(rec.store){\r\n'
20130515 '            this.store.remove(rec);\r\n'
20130515 '        }\r\n'
20130515 '        this.save();\r\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEventCancel: function(form, rec){\r\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private -- called from subclasses\r\n'
20130515 '    onDayClick: function(dt, ad, el){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('dayclick', this, dt, ad, el) !== false){\r\n"
20130515 '            var M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '                data = {};\r\n'
20130515 '                \r\n'
20130515 '            data[M.StartDate.name] = dt;\r\n'
20130515 '            data[M.IsAllDay.name] = ad;\r\n'
20130515 '                \r\n'
20130515 '            this.showEventEditor(data, el);\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    showEventMenu : function(el, xy){\r\n'
20130515 '        if(!this.eventMenu){\r\n'
20130515 '            this.eventMenu = new Ext.ensible.cal.EventContextMenu({\r\n'
20130515 '                listeners: {\r\n'
20130515 "                    'editdetails': this.onEditDetails.createDelegate(this),\r\n"
20130515 "                    'eventdelete': this.onDeleteEvent.createDelegate(this),\r\n"
20130515 "                    'eventmove': this.onMoveEvent.createDelegate(this)\r\n"
20130515 '                }\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.eventMenu.showForEvent(this.getEventRecordFromEl(el), el, xy);\r\n'
20130515 '        this.menuActive = true;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onEditDetails : function(menu, rec, el){\r\n'
20130515 "        this.fireEvent('editdetails', this, rec, el);\r\n"
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMoveEvent : function(menu, rec, dt){\r\n'
20130515 '        this.moveEvent(rec, dt);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Move the event to a new start date, preserving the original event duration.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     * @param {Object} dt The new start date\r\n'
20130515 '     */\r\n'
20130515 '    moveEvent : function(rec, dt){\r\n'
20130515 '        if(Ext.ensible.Date.compare(rec.data[Ext.ensible.cal.EventMappings.StartDate.name], dt) === 0){\r\n'
20130515 '            // no changes\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(this.fireEvent('beforeeventmove', this, rec, dt) !== false){\r\n"
20130515 '            var diff = dt.getTime() - rec.data[Ext.ensible.cal.EventMappings.StartDate.name].getTime();\r\n'
20130515 '            rec.beginEdit();\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.StartDate.name, dt);\r\n'
20130515 '            rec.set(Ext.ensible.cal.EventMappings.EndDate.name, rec.data[Ext.ensible.cal.EventMappings.EndDate.name].add(Date.MILLI, diff));\r\n'
20130515 '            rec.endEdit();\r\n'
20130515 '            this.save();\r\n'
20130515 '            \r\n'
20130515 "            this.fireEvent('eventmove', this, rec);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDeleteEvent: function(menu, rec, el){\r\n'
20130515 '        rec._deleting = true;\r\n'
20130515 '        this.deleteEvent(rec, el);\r\n'
20130515 '        this.menuActive = false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * Delete the specified event.\r\n'
20130515 '     * @param {Object} rec The event {@link Ext.ensible.cal.EventRecord record}\r\n'
20130515 '     */\r\n'
20130515 '    deleteEvent: function(rec, /* private */el){\r\n'
20130515 "        if(this.fireEvent('beforeeventdelete', this, rec, el) !== false){\r\n"
20130515 '            this.store.remove(rec);\r\n'
20130515 '            this.save();\r\n'
20130515 "            this.fireEvent('eventdelete', this, rec, el);\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onContextMenu : function(e, t){\r\n'
20130515 '        var el, match = false;\r\n'
20130515 '        \r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            this.dismissEventEditor().showEventMenu(el, e.getXY());\r\n'
20130515 '            match = true;\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        if(match || this.suppressBrowserContextMenu === true){\r\n'
20130515 '            e.preventDefault();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /*\r\n'
20130515 '     * Shared click handling.  Each specific view also provides view-specific\r\n'
20130515 '     * click handling that calls this first.  This method returns true if it\r\n'
20130515 '     * can handle the click (and so the subclass should ignore it) else false.\r\n'
20130515 '     */\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.readOnly === true){\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dropZone){\r\n'
20130515 '            this.dropZone.clearShims();\r\n'
20130515 '        }\r\n'
20130515 '        if(this.menuActive === true){\r\n'
20130515 '            // ignore the first click if a context menu is active (let it close)\r\n'
20130515 '            this.menuActive = false;\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        var el = e.getTarget(this.eventSelector, 5);\r\n'
20130515 '        if(el){\r\n'
20130515 '            var id = this.getEventIdFromEl(el),\r\n'
20130515 '                rec = this.getEventRecord(id);\r\n'
20130515 '            \r\n'
20130515 "            if(this.fireEvent('eventclick', this, rec, el) !== false){\r\n"
20130515 '                this.showEventEditor(rec, el);\r\n'
20130515 '            }\r\n'
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOver : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'over')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'over');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onMouseOut : function(e, t){\r\n'
20130515 '        if(this.trackMouseOver !== false && (this.dragZone == undefined || !this.dragZone.dragging)){\r\n'
20130515 "            if(!this.handleEventMouseEvent(e, t, 'out')){\r\n"
20130515 "                this.handleDayMouseEvent(e, t, 'out');\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleEventMouseEvent : function(e, t, type){\r\n'
20130515 '        var el;\r\n'
20130515 '        if(el = e.getTarget(this.eventSelector, 5, true)){\r\n'
20130515 '            var rel = Ext.get(e.getRelatedTarget());\r\n'
20130515 '            if(el == rel || el.contains(rel)){\r\n'
20130515 '                return true;\r\n'
20130515 '            }\r\n'
20130515 '            \r\n'
20130515 '            var evtId = this.getEventIdFromEl(el);\r\n'
20130515 '            \r\n'
20130515 "            if(this.eventOverClass != ''){\r\n"
20130515 '                var els = this.getEventEls(evtId);\r\n'
20130515 "                els[type == 'over' ? 'addClass' : 'removeClass'](this.eventOverClass);\r\n"
20130515 '            }\r\n'
20130515 "            this.fireEvent('event'+type, this, this.getEventRecord(evtId), el);\r\n"
20130515 '            return true;\r\n'
20130515 '        }\r\n'
20130515 '        return false;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getDateFromId : function(id, delim){\r\n'
20130515 '        var parts = id.split(delim);\r\n'
20130515 '        return parts[parts.length-1];\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 "        if(t = e.getTarget('td', 3)){\r\n"
20130515 '            if(t.id && t.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var dt = this.getDateFromId(t.id, this.dayElIdDelimiter),\r\n'
20130515 '                    rel = Ext.get(e.getRelatedTarget()),\r\n'
20130515 '                    relTD, relDate;\r\n'
20130515 '                \r\n'
20130515 '                if(rel){\r\n'
20130515 "                    relTD = rel.is('td') ? rel : rel.up('td', 3);\r\n"
20130515 "                    relDate = relTD && relTD.id ? this.getDateFromId(relTD.id, this.dayElIdDelimiter) : '';\r\n"
20130515 '                }\r\n'
20130515 '                if(!rel || dt != relDate){\r\n'
20130515 '                    var el = this.getDayEl(dt);\r\n'
20130515 "                    if(el && this.dayOverClass != ''){\r\n"
20130515 "                        el[type == 'over' ? 'addClass' : 'removeClass'](this.dayOverClass);\r\n"
20130515 '                    }\r\n'
20130515 '                    this.fireEvent(\'day\'+type, this, Date.parseDate(dt, "Ymd"), el);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private, MUST be implemented by subclasses\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 "        throw 'This method must be implemented by a subclass';\r\n"
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.el){\r\n'
20130515 "            this.el.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '        Ext.destroy(\r\n'
20130515 '            this.editWin, \r\n'
20130515 '            this.eventMenu,\r\n'
20130515 '            this.dragZone,\r\n'
20130515 '            this.dropZone\r\n'
20130515 '        );\r\n'
20130515 '    }\r\n'
20130515 '});/**\r\n'
20130515 ' * @class Ext.ensible.cal.MonthView\r\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\r\n'
20130515 ' * <p>Displays a calendar view by month. This class does not usually need ot be used directly as you can\r\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\r\n'
20130515 ' * the month view.</p>\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config The config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthView = Ext.extend(Ext.ensible.cal.CalendarView, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} moreText\r\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMoreText} instead.</p>\r\n'
20130515 '     * <p>The text to display in a day box when there are more events than can be displayed and a link is provided to\r\n'
20130515 "     * show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @deprecated\r\n'
20130515 '     */\r\n'
20130515 "    moreText: '+{0} more...',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} detailsTitleDateFormat\r\n'
20130515 '     * The date format for the title of the details panel that shows when there are hidden events and the "more" link \r\n'
20130515 "     * is clicked (defaults to 'F j').\r\n"
20130515 '     */\r\n'
20130515 "    detailsTitleDateFormat: 'F j',\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTime\r\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTime: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showTodayText\r\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\r\n"
20130515 '     */\r\n'
20130515 '    showTodayText: true,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showHeader\r\n'
20130515 "     * True to display a header beneath the navigation bar containing the week names above each week's column, false not to \r\n"
20130515 '     * show it and instead display the week names in the first row of days in the calendar (defaults to false).\r\n'
20130515 '     */\r\n'
20130515 '    showHeader: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekLinks\r\n'
20130515 '     * True to display an extra column before the first day in the calendar that links to the {@link Ext.ensible.cal.WeekView view}\r\n'
20130515 '     * for each individual week, false to not show it (defaults to false). If true, the week links can also contain the week \r\n'
20130515 '     * number depending on the value of {@link #showWeekNumbers}.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekLinks: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} showWeekNumbers\r\n'
20130515 '     * True to show the week number for each week in the calendar in the week link column, false to show nothing (defaults to false).\r\n'
20130515 '     * Note that if {@link #showWeekLinks} is false this config will have no affect even if true.\r\n'
20130515 '     */\r\n'
20130515 '    showWeekNumbers: false,\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String} weekLinkOverClass\r\n'
20130515 '     * The CSS class name applied when the mouse moves over a week link element (only applies when {@link #showWeekLinks} is true,\r\n'
20130515 "     * defaults to 'ext-week-link-over').\r\n"
20130515 '     */\r\n'
20130515 "    weekLinkOverClass: 'ext-week-link-over',\r\n"
20130515 '    \r\n'
20130515 '    //private properties -- do not override:\r\n'
20130515 "    daySelector: '.ext-cal-day',\r\n"
20130515 "    moreSelector : '.ext-cal-ev-more',\r\n"
20130515 "    weekLinkSelector : '.ext-cal-week-link',\r\n"
20130515 '    weekCount: -1, // defaults to auto by month\r\n'
20130515 '    dayCount: 7,\r\n'
20130515 "\tmoreElIdDelimiter: '-more-',\r\n"
20130515 "    weekLinkIdDelimiter: 'ext-cal-week-',\r\n"
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.initComponent.call(this);\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            /**\r\n'
20130515 '             * @event dayclick\r\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \r\n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \r\n'
20130515 '             * for validating that a user can only create events on certain days.\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\r\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \r\n'
20130515 '             * MonthView always return true for this param.\r\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            dayclick: true,\r\n'
20130515 '            /**\r\n'
20130515 '             * @event weekclick\r\n'
20130515 '             * Fires after the user clicks within a week link (when {@link #showWeekLinks is true)\r\n'
20130515 '             * @param {Ext.ensible.cal.MonthView} this\r\n'
20130515 '             * @param {Date} dt The start date of the week that was clicked on\r\n'
20130515 '             */\r\n'
20130515 '            weekclick: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayover: true,\r\n'
20130515 '            // inherited docs\r\n'
20130515 '            dayout: true\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tinitDD : function(){\r\n'
20130515 '\t\tvar cfg = {\r\n'
20130515 '\t\t\tview: this,\r\n'
20130515 '\t\t\tcreateText: this.ddCreateEventText,\r\n'
20130515 '\t\t\tmoveText: this.ddMoveEventText,\r\n'
20130515 "            ddGroup : this.ddGroup || this.id+'-MonthViewDD'\r\n"
20130515 '\t\t};\r\n'
20130515 '        \r\n'
20130515 '        this.dragZone = new Ext.ensible.cal.DragZone(this.el, cfg);\r\n'
20130515 '        this.dropZone = new Ext.ensible.cal.DropZone(this.el, cfg);\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onDestroy : function(){\r\n'
20130515 '        Ext.destroy(this.ddSelector);\r\n'
20130515 '\t\tExt.destroy(this.dragZone);\r\n'
20130515 '\t\tExt.destroy(this.dropZone);\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onDestroy.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '            this.tpl = new Ext.ensible.cal.MonthViewTemplate({\r\n'
20130515 '                id: this.id,\r\n'
20130515 '                showTodayText: this.showTodayText,\r\n'
20130515 '                todayText: this.todayText,\r\n'
20130515 '                showTime: this.showTime,\r\n'
20130515 '                showHeader: this.showHeader,\r\n'
20130515 '                showWeekLinks: this.showWeekLinks,\r\n'
20130515 '                showWeekNumbers: this.showWeekNumbers\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 "        this.addClass('ext-cal-monthview ext-cal-ct');\r\n"
20130515 '        \r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.afterRender.call(this);\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonResize : function(){\r\n'
20130515 '\t\tif(this.monitorResize){\r\n'
20130515 '\t\t\tthis.maxEventsPerDay = this.getMaxEventsPerDay();\r\n'
20130515 '\t\t\tthis.refresh();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    forceSize: function(){\r\n'
20130515 '        // Compensate for the week link gutter width if visible\r\n'
20130515 '        if(this.showWeekLinks && this.el && this.el.child){\r\n'
20130515 "            var hd = this.el.select('.ext-cal-hd-days-tbl'),\r\n"
20130515 "                bgTbl = this.el.select('.ext-cal-bg-tbl'),\r\n"
20130515 "                evTbl = this.el.select('.ext-cal-evt-tbl'),\r\n"
20130515 "                wkLinkW = this.el.child('.ext-cal-week-link').getWidth(),\r\n"
20130515 '                w = this.el.getWidth()-wkLinkW;\r\n'
20130515 '            \r\n'
20130515 '            hd.setWidth(w);\r\n'
20130515 '            bgTbl.setWidth(w);\r\n'
20130515 '            evTbl.setWidth(w);\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.forceSize.call(this);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    //private\r\n'
20130515 '    initClock : function(){\r\n'
20130515 "        if(Ext.fly(this.id+'-clock') !== null){\r\n"
20130515 '            this.prevClockDay = new Date().getDay();\r\n'
20130515 '            if(this.clockTask){\r\n'
20130515 '                Ext.TaskMgr.stop(this.clockTask);\r\n'
20130515 '            }\r\n'
20130515 '            this.clockTask = Ext.TaskMgr.start({\r\n'
20130515 '                run: function(){ \r\n'
20130515 "                    var el = Ext.fly(this.id+'-clock'),\r\n"
20130515 '                        t = new Date();\r\n'
20130515 '                        \r\n'
20130515 '                    if(t.getDay() == this.prevClockDay){\r\n'
20130515 '                        if(el){\r\n'
20130515 "                            el.update(t.format(Ext.ensible.Date.use24HourTime ? 'G:i' : 'g:ia'));\r\n"
20130515 '                        }\r\n'
20130515 '                    }\r\n'
20130515 '                    else{\r\n'
20130515 '                        this.prevClockDay = t.getDay();\r\n'
20130515 '                        this.moveTo(t);\r\n'
20130515 '                    }\r\n'
20130515 '                },\r\n'
20130515 '                scope: this,\r\n'
20130515 '                interval: 1000\r\n'
20130515 '            });\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    /**\r\n'
20130515 '     * <p>Returns the text to display in a day box when there are more events than can be displayed and a link is \r\n'
20130515 "     * provided to show a popup window with all events for that day (defaults to '+{0} more...', where {0} will be \r\n"
20130515 '     * replaced by the number of additional events that are not currently displayed for the day).</p>\r\n'
20130515 '     * @param {Integer} numEvents The number of events currently hidden from view\r\n'
20130515 '     * @return {String} The text to display for the "more" link \r\n'
20130515 '     */\r\n'
20130515 '    getMoreText: function(numEvents){\r\n'
20130515 '        return this.moreText;\r\n'
20130515 '    },\r\n'
20130515 '\r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventBodyMarkup : function(){\r\n'
20130515 '        if(!this.eventBodyMarkup){\r\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\r\n"
20130515 '\t            \'<tpl if="_isReminder">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="_isRecurring">\',\r\n'
20130515 '\t                \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanLeft">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spl">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>',\r\n"
20130515 '\t            \'<tpl if="spanRight">\',\r\n'
20130515 '\t                \'<i class="ext-cal-spr">&#160;</i>\',\r\n'
20130515 "\t            '</tpl>'\r\n"
20130515 "\t        ].join('');\r\n"
20130515 '        }\r\n'
20130515 '        return this.eventBodyMarkup;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    getEventTemplate : function(){\r\n'
20130515 '        if(!this.eventTpl){\r\n'
20130515 '\t        var tpl, body = this.getEventBodyMarkup();\r\n'
20130515 '            \r\n'
20130515 '\t        tpl = !(Ext.isIE || Ext.isOpera) ? \r\n'
20130515 '\t\t\t\tnew Ext.XTemplate(\r\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 '\t\t                body,\r\n'
20130515 "\t\t            '</div>'\r\n"
20130515 '\t\t        ) \r\n'
20130515 '\t\t\t\t: new Ext.XTemplate(\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evo">\',\r\n'
20130515 '\t\t                    \'<div class="ext-cal-evm">\',\r\n'
20130515 '\t\t                        \'<div class="ext-cal-evi">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            \'<tpl if="!_renderAsAllDay">\',\r\n'
20130515 '                        \'<div class="{_extraCls} ext-cal-evt ext-cal-evr">\',\r\n'
20130515 "\t\t            '</tpl>',\r\n"
20130515 '\t\t            body,\r\n'
20130515 '\t\t            \'<tpl if="_renderAsAllDay">\',\r\n'
20130515 "\t\t                        '</div>',\r\n"
20130515 "\t\t                    '</div>',\r\n"
20130515 "\t\t            '</tpl>',\r\n"
20130515 "\t\t                '</div>'\r\n"
20130515 '\t        \t);\r\n'
20130515 '            tpl.compile();\r\n'
20130515 '            this.eventTpl = tpl;\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventTpl;\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\r\n'
20130515 '            data = {},\r\n'
20130515 "            recurring = evt[M.RRule.name] != '',\r\n"
20130515 "            colorCls = 'x-cal-default',\r\n"
20130515 '\t\t    title = evt[M.Title.name],\r\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ';\r\n"
20130515 '        \r\n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\r\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\r\n'
20130515 '            if(rec){\r\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '');\r\n"
20130515 '        extraClasses.push(colorCls);\r\n'
20130515 '        \r\n'
20130515 '        if(this.getEventClass){\r\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\r\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\r\n'
20130515 '            extraClasses.push(cls);\r\n'
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 "\t\tdata._extraCls = extraClasses.join(' ');\r\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\r\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\r\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\r\n"
20130515 '        \r\n'
20130515 '        return Ext.applyIf(data, evt);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\trefresh : function(reloadData){\r\n'
20130515 "        Ext.ensible.log('refresh (MonthView)');\r\n"
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\tExt.ensible.cal.MonthView.superclass.refresh.call(this, reloadData);\r\n'
20130515 '        \r\n'
20130515 '        if(this.showTime !== false){\r\n'
20130515 '            this.initClock();\r\n'
20130515 '        }\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    renderItems : function(){\r\n'
20130515 '        Ext.ensible.cal.WeekEventRenderer.render({\r\n'
20130515 '            eventGrid: this.allDayOnly ? this.allDayGrid : this.eventGrid,\r\n'
20130515 '            viewStart: this.viewStart,\r\n'
20130515 '            tpl: this.getEventTemplate(),\r\n'
20130515 '            maxEventsPerDay: this.maxEventsPerDay,\r\n'
20130515 '            id: this.id,\r\n'
20130515 '            templateDataFn: this.getTemplateEventData.createDelegate(this),\r\n'
20130515 '            evtMaxCount: this.evtMaxCount,\r\n'
20130515 '            weekCount: this.weekCount,\r\n'
20130515 '            dayCount: this.dayCount,\r\n'
20130515 '            getMoreText: this.getMoreText.createDelegate(this)\r\n'
20130515 '        });\r\n'
20130515 "        this.fireEvent('eventsrendered', this);\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayEl : function(dt){\r\n'
20130515 '\t\treturn Ext.get(this.getDayId(dt));\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayId : function(dt){\r\n'
20130515 '\t\tif(Ext.isDate(dt)){\r\n'
20130515 "\t\t\tdt = dt.format('Ymd');\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\treturn this.id + this.dayElIdDelimiter + dt;\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetWeekIndex : function(dt){\r\n'
20130515 "\t\tvar el = this.getDayEl(dt).up('.ext-cal-wk-ct');\r\n"
20130515 "\t\treturn parseInt(el.id.split('-wk-')[1]);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDaySize : function(contentOnly){\r\n'
20130515 '        var box = this.el.getBox(),\r\n'
20130515 '            padding = this.getViewPadding(),\r\n'
20130515 '            w = (box.width - padding.width) / this.dayCount,\r\n'
20130515 '            h = (box.height - padding.height) / this.getWeekCount();\r\n'
20130515 '            \r\n'
20130515 '\t\tif(contentOnly){\r\n'
20130515 '            // measure last row instead of first in case text wraps in first row\r\n'
20130515 "\t\t\tvar hd = this.el.select('.ext-cal-dtitle').last().parent('tr');\r\n"
20130515 '\t\t\th = hd ? h-hd.getHeight(true) : h;\r\n'
20130515 '\t\t}\r\n'
20130515 '\t\treturn {height: h, width: w};\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getEventHeight : function(){\r\n'
20130515 '        if(!this.eventHeight){\r\n'
20130515 "            var evt = this.el.select('.ext-cal-evt').first();\r\n"
20130515 '            if(evt){\r\n'
20130515 "                this.eventHeight = evt.parent('tr').getHeight();\r\n"
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                return 16; // no events rendered, so try setting this.eventHeight again later\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        return this.eventHeight;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetMaxEventsPerDay : function(){\r\n'
20130515 '\t\tvar dayHeight = this.getDaySize(true).height,\r\n'
20130515 '\t\t\th = this.getEventHeight(),\r\n'
20130515 '            bottomPad = 5,\r\n'
20130515 '            max = Math.max(Math.floor((dayHeight-h-bottomPad) / h), 0);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\treturn max;\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    getViewPadding: function(sides) {\r\n'
20130515 "        var sides = sides || 'tlbr',\r\n"
20130515 "            top = sides.indexOf('t') > -1,\r\n"
20130515 "            left = sides.indexOf('l') > -1,\r\n"
20130515 "            right = sides.indexOf('r') > -1,\r\n"
20130515 "            height = this.showHeader && top ? this.el.select('.ext-cal-hd-days-tbl').first().getHeight() : 0,\r\n"
20130515 '            width = 0;\r\n'
20130515 '        \r\n'
20130515 '        if (this.isHeaderView) {\r\n'
20130515 '            if (left) {\r\n'
20130515 "                width = this.el.select('.ext-cal-gutter').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '            if (right) {\r\n'
20130515 "                width += this.el.select('.ext-cal-gutter-rt').first().getWidth();\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else if (this.showWeekLinks && left) {\r\n'
20130515 "            width = this.el.select('.ext-cal-week-link').first().getWidth();\r\n"
20130515 '        }\r\n'
20130515 '        \r\n'
20130515 '        return {\r\n'
20130515 '            height: height,\r\n'
20130515 '            width: width\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tgetDayAt : function(x, y){\r\n'
20130515 '\t\tvar box = this.el.getBox(),\r\n'
20130515 "            padding = this.getViewPadding('tl'), // top/left only since we only want the xy offsets\r\n"
20130515 '\t\t\tdaySize = this.getDaySize(),\r\n'
20130515 '\t\t\tdayL = Math.floor(((x - box.x - padding.width) / daySize.width)),\r\n'
20130515 '\t\t\tdayT = Math.floor(((y - box.y - padding.height) / daySize.height)),\r\n'
20130515 '\t\t\tdays = (dayT * 7) + dayL;\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tvar dt = this.viewStart.add(Date.DAY, days);\r\n'
20130515 '\t\treturn {\r\n'
20130515 '\t\t\tdate: dt,\r\n'
20130515 '\t\t\tel: this.getDayEl(dt)\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    moveNext : function(){\r\n'
20130515 '        return this.moveMonths(1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // inherited docs\r\n'
20130515 '    movePrev : function(){\r\n'
20130515 '        return this.moveMonths(-1, true);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '\tonInitDrag : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onInitDrag.call(this);\r\n'
20130515 '\t\tExt.select(this.daySelector).removeClass(this.dayOverClass);\r\n'
20130515 '\t\tif(this.detailPanel){\r\n'
20130515 '\t\t\tthis.detailPanel.hide();\r\n'
20130515 '\t\t}\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonMoreClick : function(dt){\r\n'
20130515 '\t\tif(!this.detailPanel){\r\n'
20130515 '\t        this.detailPanel = new Ext.Panel({\r\n'
20130515 "\t\t\t\tid: this.id+'-details-panel',\r\n"
20130515 '\t\t\t\ttitle: dt.format(this.detailsTitleDateFormat),\r\n'
20130515 "\t\t\t\tlayout: 'fit',\r\n"
20130515 '\t\t\t\tfloating: true,\r\n'
20130515 '\t\t\t\trenderTo: Ext.getBody(),\r\n'
20130515 '\t\t\t\ttools: [{\r\n'
20130515 "\t\t\t\t\tid: 'close',\r\n"
20130515 '\t\t\t\t\thandler: function(e, t, p){\r\n'
20130515 '\t\t\t\t\t\tp.hide();\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}],\r\n'
20130515 '\t\t\t\titems: {\r\n'
20130515 "\t\t\t\t\txtype: 'extensible.monthdaydetailview',\r\n"
20130515 "\t\t\t\t\tid: this.id+'-details-view',\r\n"
20130515 '\t\t\t\t\tdate: dt,\r\n'
20130515 '\t\t\t\t\tview: this,\r\n'
20130515 '\t\t\t\t\tstore: this.store,\r\n'
20130515 '                    calendarStore: this.calendarStore,\r\n'
20130515 '\t\t\t\t\tlisteners: {\r\n'
20130515 "\t\t\t\t\t\t'eventsrendered': this.onDetailViewUpdated.createDelegate(this)\r\n"
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 "            this.detailPanel.body.on('contextmenu', this.onContextMenu, this);\r\n"
20130515 '\t\t}\r\n'
20130515 '\t\telse{\r\n'
20130515 '\t\t\tthis.detailPanel.setTitle(dt.format(this.detailsTitleDateFormat));\r\n'
20130515 '\t\t}\r\n'
20130515 "\t\tthis.detailPanel.getComponent(this.id+'-details-view').update(dt);\r\n"
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '\tonDetailViewUpdated : function(view, dt, numEvents){\r\n'
20130515 '\t\tvar p = this.detailPanel,\r\n'
20130515 '\t\t\tframeH = p.getFrameHeight(),\r\n'
20130515 '            evtH = this.getEventHeight(),\r\n'
20130515 '\t\t\tbodyH = frameH + (numEvents * evtH) + 3,\r\n'
20130515 '\t\t\tdayEl = this.getDayEl(dt),\r\n'
20130515 '\t\t\tbox = dayEl.getBox();\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tp.setHeight(bodyH);\r\n'
20130515 '\t\tp.setWidth(Math.max(box.width, 220));\r\n'
20130515 '\t\tp.show();\r\n'
20130515 "\t\tp.getPositionEl().alignTo(dayEl, 't-t?');\r\n"
20130515 '\t},\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    onHide : function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.onHide.call(this);\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    // private\r\n'
20130515 '    onClick : function(e, t){\r\n'
20130515 '        if(this.detailPanel){\r\n'
20130515 '            this.detailPanel.hide();\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.moreSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.moreElIdDelimiter)[1];\r\n'
20130515 "            this.onMoreClick(Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(el = e.getTarget(this.weekLinkSelector, 3)){\r\n'
20130515 '            var dt = el.id.split(this.weekLinkIdDelimiter)[1];\r\n'
20130515 "            this.fireEvent('weekclick', this, Date.parseDate(dt, 'Ymd'));\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        if(Ext.ensible.cal.MonthView.superclass.onClick.apply(this, arguments)){\r\n'
20130515 '            // The superclass handled the click already so exit\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if(el = e.getTarget('td', 3)){\r\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\r\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\r\n'
20130515 '                    dt = parts[parts.length-1];\r\n'
20130515 '                    \r\n'
20130515 "                //this.fireEvent('dayclick', this, Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), false, Ext.get(this.getDayId(dt)));\r\n"
20130515 '                return;\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    handleDayMouseEvent : function(e, t, type){\r\n'
20130515 '        var el = e.getTarget(this.weekLinkSelector, 3, true);\r\n'
20130515 '        if(el){\r\n'
20130515 "            el[type == 'over' ? 'addClass' : 'removeClass'](this.weekLinkOverClass);\r\n"
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.handleDayMouseEvent.apply(this, arguments);\r\n'
20130515 '    },\r\n'
20130515 '    \r\n'
20130515 '    // private\r\n'
20130515 '    destroy: function(){\r\n'
20130515 '        Ext.ensible.cal.MonthView.superclass.destroy.call(this);\r\n'
20130515 '        if(this.detailsPanel){\r\n'
20130515 "            this.detailPanel.body.un('contextmenu', this.onContextMenu, this);\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthview', Ext.ensible.cal.MonthView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayHeaderView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>This is the header area container within the day and week views where all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayBodyView DayBodyView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayHeaderView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    // private configs\n'
20130515 '    weekCount: 1,\n'
20130515 '    dayCount: 1,\n'
20130515 '    allDayOnly: true,\n'
20130515 '    monitorResize: false,\n'
20130515 '    isHeaderView: true,\n'
20130515 '    \n'
20130515 "    // The event is declared in MonthView but we're just overriding the docs:\n"
20130515 '    /**\n'
20130515 '     * @event dayclick\n'
20130515 '     * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '     * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '     * for validating that a user can only create events on certain days.\n'
20130515 '     * @param {Ext.ensible.cal.DayHeaderView} this\n'
20130515 '     * @param {Date} dt The date/time that was clicked on\n'
20130515 '     * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '     * DayHeaderView always return true for this param.\n'
20130515 '     * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayHeaderTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 "        this.addClass('ext-cal-day-header');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.afterRender.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayHeaderView)');\n"
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.refresh.call(this, reloadData);\n'
20130515 '        this.recalcHeaderBox();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    recalcHeaderBox : function(){\n'
20130515 "        var tbl = this.el.child('.ext-cal-evt-tbl'),\n"
20130515 '            h = tbl.getHeight();\n'
20130515 '        \n'
20130515 '        this.el.setHeight(h+7);\n'
20130515 '        \n'
20130515 '        // These should be auto-height, but since that does not work reliably\n'
20130515 '        // across browser / doc type, we have to size them manually\n'
20130515 "        this.el.child('.ext-cal-hd-ad-inner').setHeight(h+5);\n"
20130515 "        this.el.child('.ext-cal-bg-tbl').setHeight(h+5);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.moveDays(this.dayCount);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    movePrev : function(){\n'
20130515 '        this.moveDays(-this.dayCount);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 "        if(el = e.getTarget('td', 3)){\n"
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var parts = el.id.split(this.dayElIdDelimiter),\n'
20130515 '                    dt = parts[parts.length-1];\n'
20130515 '                    \n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt, true)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.ensible.cal.DayHeaderView.superclass.onClick.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayheaderview', Ext.ensible.cal.DayHeaderView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayBodyView\n'
20130515 ' * @extends Ext.ensible.cal.CalendarView\n'
20130515 ' * <p>This is the scrolling container within the day and week views where non-all-day events are displayed.\n'
20130515 ' * Normally you should not need to use this class directly -- instead you should use {@link Ext.ensible.cal.DayView DayView}\n'
20130515 ' * which aggregates this class and the {@link Ext.ensible.cal.DayHeaderView DayHeaderView} into the single unified view\n'
20130515 ' * presented by {@link Ext.ensible.cal.CalendarPanel CalendarPanel}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayBodyView = Ext.extend(Ext.ensible.cal.CalendarView, {\n'
20130515 '    //private\n'
20130515 "    dayColumnElIdDelimiter: '-day-col-',\n"
20130515 '    hourIncrement: 60,\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initComponent : function(){\n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        if(this.readOnly === true){\n'
20130515 '            this.enableEventResize = false;\n'
20130515 '        }\n'
20130515 '        this.incrementsPerHour = this.hourIncrement / this.ddIncrement;\n'
20130515 '        this.minEventHeight = this.minEventDisplayMinutes / (this.hourIncrement / this.hourHeight);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The original {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * @param {Object} data An object containing the new start and end dates that will be set into the event record if the\n'
20130515 '             * event is not canceled. Format of the object is: {StartDate: [date], EndDate: [date]}\n'
20130515 '             */\n'
20130515 '            beforeeventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user has drag-dropped the resize handle of an event and the resize operation is complete. If you need \n'
20130515 '             * to cancel the resize operation you should handle the {@link #beforeeventresize} event and return false from your handler function.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            eventresize: true,\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within the view container and not on an event element. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the click without displaying the event editor view. This could be useful \n'
20130515 '             * for validating that a user can only create events on certain days.\n'
20130515 '             * @param {Ext.ensible.cal.DayBodyView} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false. Clicks within the \n'
20130515 '             * DayBodyView always return false for this param.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            dayclick: true\n'
20130515 '        });\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    initDD : function(){\n'
20130515 '        var cfg = {\n'
20130515 '            view: this,\n'
20130515 '            createText: this.ddCreateEventText,\n'
20130515 '            moveText: this.ddMoveEventText,\n'
20130515 '            resizeText: this.ddResizeEventText,\n'
20130515 '            ddIncrement: this.ddIncrement,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '\n'
20130515 '        this.el.ddScrollConfig = {\n'
20130515 '            // scrolling is buggy in IE/Opera for some reason.  A larger vthresh\n'
20130515 '            // makes it at least functional if not perfect\n'
20130515 '            vthresh: Ext.isIE || Ext.isOpera ? 100 : 40,\n'
20130515 '            hthresh: -1,\n'
20130515 '            frequency: 50,\n'
20130515 '            increment: 100,\n'
20130515 "            ddGroup: this.ddGroup || this.id+'-DayViewDD'\n"
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.dragZone = new Ext.ensible.cal.DayViewDragZone(this.el, Ext.apply({\n'
20130515 '            containerScroll: true\n'
20130515 '        }, cfg));\n'
20130515 '        \n'
20130515 '        this.dropZone = new Ext.ensible.cal.DayViewDropZone(this.el, cfg);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    //private\n'
20130515 '    refresh : function(reloadData){\n'
20130515 "        Ext.ensible.log('refresh (DayBodyView)');\n"
20130515 '        var top = this.el.getScroll().top;\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.refresh.call(this, reloadData);\n'
20130515 '        \n'
20130515 '        // skip this if the initial render scroll position has not yet been set.\n'
20130515 '        // necessary since IE/Opera must be deferred, so the first refresh will\n'
20130515 '        // override the initial position by default and always set it to 0.\n'
20130515 '        if(this.scrollReady){\n'
20130515 '            this.scrollTo(top);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Scrolls the container to the specified vertical position. If the view is large enough that\n'
20130515 '     * there is no scroll overflow then this method will have no affect.\n'
20130515 '     * @param {Number} y The new vertical scroll position in pixels \n'
20130515 '     * @param {Boolean} defer (optional) <p>True to slightly defer the call, false to execute immediately.</p> \n'
20130515 '     * <p>This method will automatically defer itself for IE and Opera (even if you pass false) otherwise\n'
20130515 '     * the scroll position will not update in those browsers. You can optionally pass true, however, to\n'
20130515 '     * force the defer in all browsers, or use your own custom conditions to determine whether this is needed.</p>\n'
20130515 '     * <p>Note that this method should not generally need to be called directly as scroll position is managed internally.</p>\n'
20130515 '     */\n'
20130515 '    scrollTo : function(y, defer){\n'
20130515 '        defer = defer || (Ext.isIE || Ext.isOpera);\n'
20130515 '        if(defer){\n'
20130515 '            (function(){\n'
20130515 "                this.el.scrollTo('top', y);\n"
20130515 '                this.scrollReady = true;\n'
20130515 '            }).defer(10, this);\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 "            this.el.scrollTo('top', y);\n"
20130515 '            this.scrollReady = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        if(!this.tpl){\n'
20130515 '            this.tpl = new Ext.ensible.cal.DayBodyTemplate({\n'
20130515 '                id: this.id,\n'
20130515 '                dayCount: this.dayCount,\n'
20130515 '                showTodayText: this.showTodayText,\n'
20130515 '                todayText: this.todayText,\n'
20130515 '                showTime: this.showTime,\n'
20130515 '                showHourSeparator: this.showHourSeparator,\n'
20130515 '                viewStartHour: this.viewStartHour,\n'
20130515 '                viewEndHour: this.viewEndHour,\n'
20130515 '                hourIncrement: this.hourIncrement,\n'
20130515 '                hourHeight: this.hourHeight\n'
20130515 '            });\n'
20130515 '        }\n'
20130515 '        this.tpl.compile();\n'
20130515 '        \n'
20130515 "        this.addClass('ext-cal-body-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayBodyView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 '        // default scroll position to scrollStartHour (7am by default) or min view hour if later\n'
20130515 '        var startHour = Math.max(this.scrollStartHour, this.viewStartHour),\n'
20130515 '            scrollStart = Math.max(0, startHour - this.viewStartHour);\n'
20130515 '            \n'
20130515 '        if(scrollStart > 0){\n'
20130515 '            this.scrollTo(scrollStart * this.hourHeight);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: Ext.emptyFn,\n'
20130515 '    \n'
20130515 '    // private -- called from DayViewDropZone\n'
20130515 '    onEventResize : function(rec, data){\n'
20130515 "        if(this.fireEvent('beforeeventresize', this, rec, data) !== false){\n"
20130515 '            var D = Ext.ensible.Date,\n'
20130515 '                start = Ext.ensible.cal.EventMappings.StartDate.name,\n'
20130515 '                end = Ext.ensible.cal.EventMappings.EndDate.name;\n'
20130515 '                \n'
20130515 '            if(D.compare(rec.data[start], data.StartDate) === 0 &&\n'
20130515 '                D.compare(rec.data[end], data.EndDate) === 0){\n'
20130515 '                // no changes\n'
20130515 '                return;\n'
20130515 '            } \n'
20130515 '            rec.set(start, data.StartDate);\n'
20130515 '            rec.set(end, data.EndDate);\n'
20130515 '            this.onEventUpdate(null, rec);\n'
20130515 '            \n'
20130515 "            this.fireEvent('eventresize', this, rec);\n"
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    getEventBodyMarkup : function(){\n'
20130515 '        if(!this.eventBodyMarkup){\n'
20130515 "            this.eventBodyMarkup = ['{Title}',\n"
20130515 '                \'<tpl if="_isReminder">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                '</tpl>',\n"
20130515 '                \'<tpl if="_isRecurring">\',\n'
20130515 '                    \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                '</tpl>'\n"
20130515 '//                \'<tpl if="spanLeft">\',\n'
20130515 '//                    \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "//                '</tpl>',\n"
20130515 '//                \'<tpl if="spanRight">\',\n'
20130515 '//                    \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "//                '</tpl>'\n"
20130515 "            ].join('');\n"
20130515 '        }\n'
20130515 '        return this.eventBodyMarkup;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    getEventTemplate : function(){\n'
20130515 '        if(!this.eventTpl){\n'
20130515 '            this.eventTpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="{_extraCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        \'<div class="ext-evt-bd">\', this.getEventBodyMarkup(), \'</div>\',\n'
20130515 '                        this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                    '</div>'\n"
20130515 '                )\n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div id="{_elId}" class="ext-cal-evt {_extraCls}" style="left: {_left}%; width: {_width}%; top: {_top}px;">\',\n'
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 '                        \'<dl style="height: {_height}px;" class="ext-cal-evdm">\',\n'
20130515 '                            \'<dd class="ext-evt-bd">\',\n'
20130515 '                                this.getEventBodyMarkup(),\n'
20130515 "                            '</dd>',\n"
20130515 '                            this.enableEventResize ? \'<div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&#160;</div></div>\' : \'\',\n'
20130515 "                        '</dl>',\n"
20130515 '                        \'<div class="ext-cal-evb">&#160;</div>\',\n'
20130515 "                    '</div>'\n"
20130515 '                );\n'
20130515 '            this.eventTpl.compile();\n'
20130515 '        }\n'
20130515 '        return this.eventTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * <p>Returns the XTemplate that is bound to the calendar's event store (it expects records of type\n"
20130515 '     * {@link Ext.ensible.cal.EventRecord}) to populate the calendar views with <strong>all-day</strong> events. \n'
20130515 '     * Internally this method by default generates different markup for browsers that support CSS border radius \n'
20130515 "     * and those that don't. This method can be overridden as needed to customize the markup generated.</p>\n"
20130515 '     * <p>Note that this method calls {@link #getEventBodyMarkup} to retrieve the body markup for events separately\n'
20130515 "     * from the surrounding container markup.  This provdes the flexibility to customize what's in the body without\n"
20130515 '     * having to override the entire XTemplate. If you do override this method, you should make sure that your \n'
20130515 '     * overridden version also does the same.</p>\n'
20130515 '     * @return {Ext.XTemplate} The event XTemplate\n'
20130515 '     */\n'
20130515 '    getEventAllDayTemplate : function(){\n'
20130515 '        if(!this.eventAllDayTpl){\n'
20130515 '            var tpl, body = this.getEventBodyMarkup();\n'
20130515 '            \n'
20130515 '            tpl = !(Ext.isIE || Ext.isOpera) ? \n'
20130515 '                new Ext.XTemplate(\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evt ext-cal-evr" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                        body,\n'
20130515 "                    '</div>'\n"
20130515 '                ) \n'
20130515 '                : new Ext.XTemplate(\n'
20130515 '                    \'<div class="ext-cal-evt" style="left: {_left}%; width: {_width}%; top: {_top}px; height: {_height}px;">\',\n'
20130515 '                    \'<div class="{_extraCls} {spanCls} ext-cal-evo">\',\n'
20130515 '                        \'<div class="ext-cal-evm">\',\n'
20130515 '                            \'<div class="ext-cal-evi">\',\n'
20130515 '                                body,\n'
20130515 "                            '</div>',\n"
20130515 "                        '</div>',\n"
20130515 "                    '</div></div>'\n"
20130515 '                );\n'
20130515 '            tpl.compile();\n'
20130515 '            this.eventAllDayTpl = tpl;\n'
20130515 '        }\n'
20130515 '        return this.eventAllDayTpl;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventData : function(evt){\n'
20130515 '        var M = Ext.ensible.cal.EventMappings,\n'
20130515 '            extraClasses = [this.getEventSelectorCls(evt[M.EventId.name])],\n'
20130515 '            data = {},\n'
20130515 "            colorCls = 'x-cal-default',\n"
20130515 '            title = evt[M.Title.name],\n'
20130515 "            fmt = Ext.ensible.Date.use24HourTime ? 'G:i ' : 'g:ia ',\n"
20130515 "            recurring = evt[M.RRule.name] != '';\n"
20130515 '        \n'
20130515 '        this.getTemplateEventBox(evt);\n'
20130515 '        \n'
20130515 '        if(this.calendarStore && evt[M.CalendarId.name]){\n'
20130515 '            var rec = this.calendarStore.getById(evt[M.CalendarId.name]);\n'
20130515 '            if(rec){\n'
20130515 "                colorCls = 'x-cal-' + rec.data[Ext.ensible.cal.CalendarMappings.ColorId.name];\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 "        colorCls += (evt._renderAsAllDay ? '-ad' : '') + (Ext.isIE || Ext.isOpera ? '-x' : '');\n"
20130515 '        extraClasses.push(colorCls);\n'
20130515 '        \n'
20130515 '        if(this.getEventClass){\n'
20130515 '            var rec = this.getEventRecord(evt[M.EventId.name]),\n'
20130515 '                cls = this.getEventClass(rec, !!evt._renderAsAllDay, data, this.store);\n'
20130515 '            extraClasses.push(cls);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        data._extraCls = extraClasses.join(' ');\n"
20130515 "        data._isRecurring = evt.Recurrence && evt.Recurrence != '';\n"
20130515 "        data._isReminder = evt[M.Reminder.name] && evt[M.Reminder.name] != '';\n"
20130515 "        data.Title = (evt[M.IsAllDay.name] ? '' : evt[M.StartDate.name].format(fmt)) + (!title || title.length == 0 ? this.defaultEventTitleText : title);\n"
20130515 '        \n'
20130515 '        return Ext.applyIf(data, evt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getEventPositionOffsets: function(){\n'
20130515 '        return {\n'
20130515 '            top: 1,\n'
20130515 '            height: -2\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getTemplateEventBox : function(evt){\n'
20130515 '        var heightFactor = this.hourHeight / this.hourIncrement,\n'
20130515 '            start = evt[Ext.ensible.cal.EventMappings.StartDate.name],\n'
20130515 '            end = evt[Ext.ensible.cal.EventMappings.EndDate.name],\n'
20130515 '            startOffset = Math.max(start.getHours() - this.viewStartHour, 0),\n'
20130515 '            endOffset = Math.min(end.getHours() - this.viewStartHour, this.viewEndHour - this.viewStartHour),\n'
20130515 '            startMins = startOffset * this.hourIncrement,\n'
20130515 '            endMins = endOffset * this.hourIncrement,\n'
20130515 '            viewEndDt = end.clearTime(true).add(Date.HOUR, this.viewEndHour),\n'
20130515 '            evtOffsets = this.getEventPositionOffsets();\n'
20130515 '            \n'
20130515 '        if(start.getHours() >= this.viewStartHour){\n'
20130515 '            // only add the minutes if the start is visible, otherwise it offsets the event incorrectly\n'
20130515 '            startMins += start.getMinutes();\n'
20130515 '        }\n'
20130515 '        if(end <= viewEndDt){\n'
20130515 '            // only add the minutes if the end is visible, otherwise it offsets the event incorrectly\n'
20130515 '            endMins += end.getMinutes();\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        evt._left = 0;\n'
20130515 '        evt._width = 100;\n'
20130515 '        evt._top = startMins * heightFactor + evtOffsets.top;\n'
20130515 '        evt._height = Math.max(((endMins - startMins) * heightFactor), this.minEventHeight) + evtOffsets.height;\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        var day = 0, evts = [];\n'
20130515 '        for(; day < this.dayCount; day++){\n'
20130515 '            var ev = emptyCells = skipped = 0, \n'
20130515 '                d = this.eventGrid[0][day],\n'
20130515 '                ct = d ? d.length : 0, \n'
20130515 '                evt;\n'
20130515 '            \n'
20130515 '            for(; ev < ct; ev++){\n'
20130515 '                evt = d[ev];\n'
20130515 '                if(!evt){\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                var item = evt.data || evt.event.data,\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\n'
20130515 '                    ad = item[M.IsAllDay.name] === true,\n'
20130515 '                    span = Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0,\n'
20130515 '                    renderAsAllDay = ad || span;\n'
20130515 '                         \n'
20130515 '                if(renderAsAllDay){\n'
20130515 '                    // this event is already rendered in the header view\n'
20130515 '                    continue;\n'
20130515 '                }\n'
20130515 '                Ext.apply(item, {\n'
20130515 "                    cls: 'ext-cal-ev',\n"
20130515 '                    _positioned: true\n'
20130515 '                });\n'
20130515 '                evts.push({\n'
20130515 '                    data: this.getTemplateEventData(item),\n'
20130515 '                    date: this.viewStart.add(Date.DAY, day)\n'
20130515 '                });\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // overlapping event pre-processing loop\n'
20130515 '        var i = j = 0, overlapCols = [], l = evts.length, prevDt;\n'
20130515 '        for(; i<l; i++){\n'
20130515 '            var evt = evts[i].data, \n'
20130515 '                evt2 = null, \n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '            \n'
20130515 '            for(j=0; j<l; j++){\n'
20130515 '                if(i==j)continue;\n'
20130515 '                evt2 = evts[j].data;\n'
20130515 '                if(this.isOverlapping(evt, evt2)){\n'
20130515 '                    evt._overlap = evt._overlap == undefined ? 1 : evt._overlap+1;\n'
20130515 '                    if(i<j){\n'
20130515 '                        if(evt._overcol===undefined){\n'
20130515 '                            evt._overcol = 0;\n'
20130515 '                        }\n'
20130515 '                        evt2._overcol = evt._overcol+1;\n'
20130515 '                        overlapCols[dt] = overlapCols[dt] ? Math.max(overlapCols[dt], evt2._overcol) : evt2._overcol;\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        // rendering loop\n'
20130515 '        for(i=0; i<l; i++){\n'
20130515 '            var evt = evts[i].data,\n'
20130515 '                dt = evt[Ext.ensible.cal.EventMappings.StartDate.name].getDate();\n'
20130515 '                \n'
20130515 '            if(evt._overlap !== undefined){\n'
20130515 '                var colWidth = 100 / (overlapCols[dt]+1),\n'
20130515 '                    evtWidth = 100 - (colWidth * evt._overlap);\n'
20130515 '                    \n'
20130515 '                evt._width = colWidth;\n'
20130515 '                evt._left = colWidth * evt._overcol;\n'
20130515 '            }\n'
20130515 '            var markup = this.getEventTemplate().apply(evt),\n'
20130515 "                target = this.id+'-day-col-'+evts[i].date.format('Ymd');\n"
20130515 '                \n'
20130515 '            Ext.DomHelper.append(target, markup);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.fireEvent('eventsrendered', this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayEl : function(dt){\n'
20130515 '        return Ext.get(this.getDayId(dt));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayId : function(dt){\n'
20130515 '        if(Ext.isDate(dt)){\n'
20130515 "            dt = dt.format('Ymd');\n"
20130515 '        }\n'
20130515 '        return this.id + this.dayColumnElIdDelimiter + dt;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDaySize : function(){\n'
20130515 "        var box = this.el.child('.ext-cal-day-col-inner').getBox();\n"
20130515 '        return {height: box.height, width: box.width};\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getDayAt : function(x, y){\n'
20130515 "        var sel = '.ext-cal-body-ct',\n"
20130515 "            xoffset = this.el.child('.ext-cal-day-times').getWidth(),\n"
20130515 '            viewBox = this.el.getBox(),\n'
20130515 '            daySize = this.getDaySize(false),\n'
20130515 '            relX = x - viewBox.x - xoffset,\n'
20130515 '            dayIndex = Math.floor(relX / daySize.width), // clicked col index\n'
20130515 '            scroll = this.el.getScroll(),\n'
20130515 "            row = this.el.child('.ext-cal-bg-row'), // first avail row, just to calc size\n"
20130515 '            rowH = row.getHeight() / this.incrementsPerHour,\n'
20130515 '            relY = y - viewBox.y - rowH + scroll.top,\n'
20130515 '            rowIndex = Math.max(0, Math.ceil(relY / rowH)),\n'
20130515 '            mins = rowIndex * (this.hourIncrement / this.incrementsPerHour),\n'
20130515 '            dt = this.viewStart.add(Date.DAY, dayIndex).add(Date.MINUTE, mins).add(Date.HOUR, this.viewStartHour),\n'
20130515 '            el = this.getDayEl(dt),\n'
20130515 '            timeX = x;\n'
20130515 '        \n'
20130515 '        if(el){\n'
20130515 '            timeX = el.getLeft();\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        return {\n'
20130515 '            date: dt,\n'
20130515 '            el: el,\n'
20130515 '            // this is the box for the specific time block in the day that was clicked on:\n'
20130515 '            timeBox: {\n'
20130515 '                x: timeX,\n'
20130515 '                y: (rowIndex * this.hourHeight / this.incrementsPerHour) + viewBox.y - scroll.top,\n'
20130515 '                width: daySize.width,\n'
20130515 '                height: rowH\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onClick : function(e, t){\n'
20130515 '        if(this.dragPending || Ext.ensible.cal.DayBodyView.superclass.onClick.apply(this, arguments)){\n'
20130515 '            // The superclass handled the click already so exit\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        if(e.getTarget('.ext-cal-day-times', 3) !== null){\n"
20130515 '            // ignore clicks on the times-of-day gutter\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 "        var el = e.getTarget('td', 3);\n"
20130515 '        if(el){\n'
20130515 '            if(el.id && el.id.indexOf(this.dayElIdDelimiter) > -1){\n'
20130515 '                var dt = this.getDateFromId(el.id, this.dayElIdDelimiter);\n'
20130515 "                this.onDayClick(Date.parseDate(dt, 'Ymd'), true, Ext.get(this.getDayId(dt)));\n"
20130515 '                return;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        var day = this.getDayAt(e.xy[0], e.xy[1]);\n'
20130515 '        if(day && day.date){\n'
20130515 '            this.onDayClick(day.date, false, null);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.daybodyview', Ext.ensible.cal.DayBodyView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.DayView\n'
20130515 ' * @extends Ext.Container\n'
20130515 ' * <p>Unlike other calendar views, is not actually a subclass of {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 ' * Instead it is a {@link Ext.Container Container} subclass that internally creates and manages the layouts of\n'
20130515 ' * a {@link Ext.ensible.cal.DayHeaderView DayHeaderView} and a {@link Ext.ensible.cal.DayBodyView DayBodyView}. As such\n'
20130515 ' * DayView accepts any config values that are valid for DayHeaderView and DayBodyView and passes those through\n'
20130515 ' * to the contained views. It also supports the interface required of any calendar view and in turn calls methods\n'
20130515 ' * on the contained views as necessary.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.DayView = Ext.extend(Ext.Container, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * The text to display in the current day's box in the calendar when {@link #showTodayText} is true (defaults to 'Today')\n"
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or the view from providing CRUD capabilities, false to enable CRUD (the default).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddCreateEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to \n'
20130515 "     * 'Create event for {0}' where {0} is a date range supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddCreateEventText: Ext.ensible.cal.CalendarView.prototype.ddCreateEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} ddMoveEventText\n'
20130515 '     * The text to display inside the drag proxy while dragging an event to reposition it (defaults to \n'
20130515 "     * 'Move event to {0}' where {0} is the updated event start date/time supplied by the view)\n"
20130515 '     */\n'
20130515 '    ddMoveEventText: Ext.ensible.cal.CalendarView.prototype.ddMoveEventText,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to display the {@link #todayText} string in today's box in the calendar, false to not display it (defaults to true)\n"
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 1). Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 1,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEventResize\n'
20130515 "     * True to allow events in the view's scrolling body area to be updated by a resize handle at the \n"
20130515 '     * bottom of the event, false to disallow it (defaults to true). If {@link #readOnly} is true event \n'
20130515 '     * resizing will be disabled automatically.\n'
20130515 '     */\n'
20130515 '    enableEventResize: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} ddIncrement\n'
20130515 '     * <p>The number of minutes between each step during various drag/drop operations in the view (defaults to 30).\n'
20130515 '     * This controls the number of times the dragged object will "snap" to the view during a drag operation, and does\n'
20130515 '     * not have to match with the time boundaries displayed in the view. E.g., the view could be displayed in 30 minute\n'
20130515 '     * increments (the default) but you could configure ddIncrement to 10, which would snap a dragged object to the\n'
20130515 '     * view at 10 minute increments.</p>\n'
20130515 '     * <p>This config currently applies while dragging to move an event, resizing an event by its handle or dragging \n'
20130515 '     * on the view to create a new event.</p>\n'
20130515 '     */\n'
20130515 '    ddIncrement: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} minEventDisplayMinutes\n'
20130515 '     * This is the minimum <b>display</b> height, in minutes, for events shown in the view (defaults to 30). This setting\n'
20130515 '     * ensures that events with short duration are still readable (e.g., by default any event where the start and end\n'
20130515 '     * times were the same would have 0 height). It also applies when calculating whether multiple events should be\n'
20130515 '     * displayed as overlapping. In datetime terms, an event that starts and ends at 9:00 and another event that starts\n'
20130515 '     * and ends at 9:05 do not overlap, but visually the second event would obscure the first in the view. This setting\n'
20130515 '     * provides a way to ensure that such events will still be calculated as overlapping and displayed correctly.\n'
20130515 '     */\n'
20130515 '    minEventDisplayMinutes: 30,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showHourSeparator\n'
20130515 '     * True to display a dotted line that separates each hour block in the scrolling body area at the half-hour mark \n'
20130515 '     * (the default), false to hide it.\n'
20130515 '     */\n'
20130515 '    showHourSeparator: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewStartHour\n'
20130515 "     * The hour of the day at which to begin the scrolling body area's times (defaults to 0, which equals early 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be less than the value of {@link viewEndHour}.\n'
20130515 '     */\n'
20130515 '    viewStartHour: 0,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} viewEndHour\n'
20130515 "     * The hour of the day at which to end the scrolling body area's times (defaults to 24, which equals late 12am / 00:00).\n"
20130515 '     * Valid values are integers from 0 to 24, but should be greater than the value of {@link viewStartHour}. \n'
20130515 '     */\n'
20130515 '    viewEndHour: 24,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} scrollStartHour\n'
20130515 '     * The default hour of the day at which to set the body scroll position on view load (defaults to 7, which equals 7am / 07:00).\n'
20130515 '     * Note that if the body is not sufficiently overflowed to allow this positioning this setting will have no effect.\n'
20130515 '     * This setting should be equal to or greater than {@link viewStartHour}.\n'
20130515 '     */\n'
20130515 '    scrollStartHour: 7,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Integer} hourHeight\n'
20130515 '     * <p>The height, in pixels, of each hour block displayed in the scrolling body area of the view (defaults to 42).</p> \n'
20130515 '     * <br><p><b>Important note:</b> While this config can be set to any reasonable integer value, note that it is also used to \n'
20130515 '     * calculate the ratio used when assigning event heights. By default, an hour is 60 minutes and 42 pixels high, so the\n'
20130515 '     * pixel-to-minute ratio is 42 / 60, or 0.7. This same ratio is then used when rendering events. When rendering a \n'
20130515 '     * 30 minute event, the rendered height would be 30 minutes * 0.7 = 21 pixels (as expected).</p>\n'
20130515 '     * <p>This is important to understand when changing this value because some browsers may handle pixel rounding in\n'
20130515 '     * different ways which could lead to inconsistent visual results in some cases. If you have any problems with pixel\n'
20130515 '     * precision in how events are laid out, you might try to stick with hourHeight values that will generate discreet ratios.\n'
20130515 '     * This is easily done by simply multiplying 60 minutes by different discreet ratios (.6, .8, 1.1, etc.) to get the \n'
20130515 '     * corresponding hourHeight pixel values (36, 48, 66, etc.) that will map back to those ratios. By contrast, if you \n'
20130515 '     * chose an hourHeight of 50 for example, the resulting height ratio would be 50 / 60 = .833333... This will work just\n'
20130515 '     * fine, just be aware that browsers may sometimes round the resulting height values inconsistently.\n'
20130515 '     */\n'
20130515 '    hourHeight: 42,\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        // day count is only supported between 1 and 7 days\n'
20130515 '        this.dayCount = this.dayCount > 7 ? 7 : (this.dayCount < 1 ? 1 : this.dayCount);\n'
20130515 '        \n'
20130515 '        var cfg = Ext.apply({}, this.initialConfig);\n'
20130515 '        cfg.showTime = this.showTime;\n'
20130515 '        cfg.showTodayText = this.showTodayText;\n'
20130515 '        cfg.todayText = this.todayText;\n'
20130515 '        cfg.dayCount = this.dayCount;\n'
20130515 '        cfg.weekCount = 1;\n'
20130515 '        cfg.readOnly = this.readOnly;\n'
20130515 '        cfg.ddIncrement = this.ddIncrement;\n'
20130515 '        cfg.minEventDisplayMinutes = this.minEventDisplayMinutes;\n'
20130515 '        \n'
20130515 '        var header = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.dayheaderview',\n"
20130515 "            id: this.id+'-hd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        var body = Ext.applyIf({\n'
20130515 "            xtype: 'extensible.daybodyview',\n"
20130515 '            enableEventResize: this.enableEventResize,\n'
20130515 '            showHourSeparator: this.showHourSeparator,\n'
20130515 '            viewStartHour: this.viewStartHour,\n'
20130515 '            viewEndHour: this.viewEndHour,\n'
20130515 '            scrollStartHour: this.scrollStartHour,\n'
20130515 '            hourHeight: this.hourHeight,\n'
20130515 "            id: this.id+'-bd',\n"
20130515 '            ownerCalendarPanel: this.ownerCalendarPanel\n'
20130515 '        }, cfg);\n'
20130515 '        \n'
20130515 '        this.items = [header, body];\n'
20130515 "        this.addClass('ext-cal-dayview ext-cal-ct');\n"
20130515 '        \n'
20130515 '        Ext.ensible.cal.DayView.superclass.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender : function(){\n'
20130515 '        Ext.ensible.cal.DayView.superclass.afterRender.call(this);\n'
20130515 '        \n'
20130515 "        this.header = Ext.getCmp(this.id+'-hd');\n"
20130515 "        this.body = Ext.getCmp(this.id+'-bd');\n"
20130515 "        this.body.on('eventsrendered', this.forceSize, this);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    refresh : function(){\n'
20130515 "        Ext.ensible.log('refresh (DayView)');\n"
20130515 '        this.header.refresh();\n'
20130515 '        this.body.refresh();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    forceSize: function(){\n'
20130515 "        // The defer call is mainly for good ol' IE, but it doesn't hurt in\n"
20130515 '        // general to make sure that the window resize is good and done first\n'
20130515 '        // so that we can properly calculate sizes.\n'
20130515 '        (function(){\n'
20130515 "            var ct = this.el.up('.x-panel-body'),\n"
20130515 "                hd = this.el.child('.ext-cal-day-header'),\n"
20130515 '                h = ct.getHeight() - hd.getHeight();\n'
20130515 '            \n'
20130515 "            this.el.child('.ext-cal-body-ct').setHeight(h-1);\n"
20130515 '        }).defer(10, this);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onResize : function(){\n'
20130515 '        this.forceSize();\n'
20130515 '        this.refresh.defer(1, this); //IE needs the defer\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /*\n'
20130515 '     * We have to "relay" this Component method so that the hidden\n'
20130515 "     * state will be properly reflected when the views' active state changes\n"
20130515 '     */\n'
20130515 '    doHide: function(){\n'
20130515 '        this.header.doHide.apply(this, arguments);\n'
20130515 '        this.body.doHide.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    getViewBounds : function(){\n'
20130515 '        return this.header.getViewBounds();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the start date of the view, as set by {@link #setStartDate}. Note that this may not \n'
20130515 '     * be the first date displayed in the rendered calendar -- to get the start and end dates displayed\n'
20130515 '     * to the user use {@link #getViewBounds}.\n'
20130515 '     * @return {Date} The start date\n'
20130515 '     */\n'
20130515 '    getStartDate : function(){\n'
20130515 '        return this.header.getStartDate();\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date used to calculate the view boundaries to display. The displayed view will be the \n'
20130515 '     * earliest and latest dates that match the view requirements and contain the date passed to this function.\n'
20130515 '     * @param {Date} dt The date used to calculate the new view boundaries\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 '        this.header.setStartDate(dt, true);\n'
20130515 '        this.body.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    renderItems: function(){\n'
20130515 '        this.header.renderItems();\n'
20130515 '        this.body.renderItems();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 "     * Returns true if the view is currently displaying today's date, else false.\n"
20130515 '     * @return {Boolean} True or false\n'
20130515 '     */\n'
20130515 '    isToday : function(){\n'
20130515 '        return this.header.isToday();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to contain the passed date\n'
20130515 '     * @param {Date} dt The date to display\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveTo : function(dt){\n'
20130515 '        this.header.moveTo(dt);\n'
20130515 '        return this.body.moveTo(dt, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the next consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveNext : function(){\n'
20130515 '        this.header.moveNext();\n'
20130515 '        return this.body.moveNext(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to the previous consecutive date(s)\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    movePrev : function(noRefresh){\n'
20130515 '        this.header.movePrev();\n'
20130515 '        return this.body.movePrev(true);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Shifts the view by the passed number of days relative to the currently set date\n'
20130515 '     * @param {Number} value The number of days (positive or negative) by which to shift the view\n'
20130515 '     * @return {Date} The new date\n'
20130515 '     */\n'
20130515 '    moveDays : function(value){\n'
20130515 '        this.header.moveDays(value);\n'
20130515 '        return this.body.moveDays(value, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Updates the view to show today\n'
20130515 "     * @return {Date} Today's date\n"
20130515 '     */\n'
20130515 '    moveToday : function(){\n'
20130515 '        this.header.moveToday();\n'
20130515 '        return this.body.moveToday(true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Show the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}).\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} rec The event record\n'
20130515 '     * @param {Ext.Element/HTMLNode} animateTarget The reference element that is being edited. By default this is\n'
20130515 '     * used as the target for animating the editor window opening and closing. If this method is being overridden to\n'
20130515 '     * supply a custom editor this parameter can be ignored if it does not apply.\n'
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    showEventEditor : function(rec, animateTarget){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.showEventEditor.apply(this, arguments);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Dismiss the currently configured event editor view (by default the shared instance of \n'
20130515 '     * {@link Ext.ensible.cal.EventEditWindow EventEditWindow}, which will be hidden).\n'
20130515 '     * @param {String} dismissMethod (optional) The method name to call on the editor that will dismiss it \n'
20130515 "     * (defaults to 'hide' which will be called on the default editor window)\n"
20130515 '     * @return {Ext.ensible.cal.DayView} this\n'
20130515 '     */\n'
20130515 '    dismissEventEditor : function(dismissMethod){\n'
20130515 '        return Ext.ensible.cal.CalendarView.prototype.dismissEventEditor.apply(this, arguments);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.dayview', Ext.ensible.cal.DayView);\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.MultiDayView\n'
20130515 ' * @extends Ext.ensible.cal.DayView\n'
20130515 ' * <p>Displays a calendar view by day, more than one day at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiDayView = Ext.extend(Ext.ensible.cal.DayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 3).  Only values from 1 to 7 are allowed.\n'
20130515 '     */\n'
20130515 '    dayCount: 3,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} startDayIsStatic\n'
20130515 '     * <p>By default, any configuration of a multi-day view that contains fewer than 7 days will have a rolling\n'
20130515 '     * start day. If you view the next or previous views, the dates will be adjusted as needed so that each\n'
20130515 '     * view is contiguous (e.g., if the last day in the current view is Wednesday and you go to the next view\n'
20130515 '     * it will always begin with Thursday, regardless of the value of {@link #startDay}.</p>\n'
20130515 '     * <p>If you set <tt>startDayIsStatic</tt> to <tt>true</tt>, then the view will <em>always</em> begin on\n'
20130515 '     * {@link #startDay}. For any {@link #dayCount} less than 7, days outside the startDay + dayCount range\n'
20130515 '     * will not be viewable. If a date that is not in the viewable range is set into the view it will \n'
20130515 '     * automatically advance to the first viewable date for the current range.  This could be useful for \n'
20130515 '     * creating custom views like a weekday-only or weekend-only view.</p>\n'
20130515 '     * <p>Some example {@link Ext.ensible.cal.CalendarPanel CalendarPanel} configs:</p>\n'
20130515 '     * <pre><code>\n'
20130515 '    // Weekdays only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 5,\n'
20130515 '        startDay: 1,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    // Weekends only:\n'
20130515 '    showMultiDayView: true,\n'
20130515 '    multiDayViewCfg: {\n'
20130515 '        dayCount: 2,\n'
20130515 '        startDay: 6,\n'
20130515 '        startDayIsStatic: true\n'
20130515 '    }\n'
20130515 '     * </code></pre>\n'
20130515 '     */\n'
20130515 '    startDayIsStatic: false,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? 7 : this.dayCount, reload);\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(/*private*/reload){\n'
20130515 '        return this.moveDays(this.startDayIsStatic ? -7 : -this.dayCount, reload);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multidayview', Ext.ensible.cal.MultiDayView);/**\n"
20130515 ' * @class Ext.ensible.cal.WeekView\n'
20130515 ' * @extends Ext.ensible.cal.MultiDayView\n'
20130515 ' * <p>Displays a calendar view by week. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once including\n'
20130515 ' * the week view.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.WeekView = Ext.extend(Ext.ensible.cal.MultiDayView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} dayCount\n'
20130515 '     * The number of days to display in the view (defaults to 7)\n'
20130515 '     */\n'
20130515 '    dayCount: 7\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.weekview', Ext.ensible.cal.WeekView);/**\n"
20130515 ' * @class Ext.ensible.cal.MultiWeekView\n'
20130515 ' * @extends Ext.ensible.cal.MonthView\n'
20130515 ' * <p>Displays a calendar view by week, more than one week at a time. This class does not usually need to be used directly as you can\n'
20130515 ' * use a {@link Ext.ensible.cal.CalendarPanel CalendarPanel} to manage multiple calendar views at once.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.MultiWeekView = Ext.extend(Ext.ensible.cal.MonthView, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} weekCount\n'
20130515 '     * The number of weeks to display in the view (defaults to 2)\n'
20130515 '     */\n'
20130515 '    weekCount: 2,\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    moveNext : function(){\n'
20130515 '        return this.moveWeeks(this.weekCount, true);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // inherited docs\n'
20130515 '    movePrev : function(){\n'
20130515 '        return this.moveWeeks(-this.weekCount, true);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.multiweekview', Ext.ensible.cal.MultiWeekView);/*\r\n"
20130515 ' * This is the view used internally by the panel that displays overflow events in the\r\n'
20130515 ' * month view. Anytime a day cell cannot display all of its events, it automatically displays\r\n'
20130515 ' * a link at the bottom to view all events for that day. When clicked, a panel pops up that\r\n'
20130515 ' * uses this view to display the events for that day.\r\n'
20130515 ' */\r\n'
20130515 'Ext.ensible.cal.MonthDayDetailView = Ext.extend(Ext.BoxComponent, {\r\n'
20130515 '    initComponent : function(){\r\n'
20130515 '        Ext.ensible.cal.CalendarView.superclass.initComponent.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.addEvents({\r\n'
20130515 '            eventsrendered: true\r\n'
20130515 '\t\t});\r\n'
20130515 '\t\t\r\n'
20130515 '        if(!this.el){\r\n'
20130515 "            this.el = document.createElement('div');\r\n"
20130515 '        }\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    afterRender : function(){\r\n'
20130515 '        this.tpl = this.getTemplate();\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.MonthDayDetailView.superclass.afterRender.call(this);\r\n'
20130515 '\t\t\r\n'
20130515 '        this.el.on({\r\n'
20130515 "            'click': this.view.onClick,\r\n"
20130515 "\t\t\t'mouseover': this.view.onMouseOver,\r\n"
20130515 "\t\t\t'mouseout': this.view.onMouseOut,\r\n"
20130515 '            scope: this.view\r\n'
20130515 '        });\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '    getTemplate : function(){\r\n'
20130515 '        if(!this.tpl){\r\n'
20130515 '\t        this.tpl = new Ext.XTemplate(\r\n'
20130515 '                \'<div class="ext-cal-mdv x-unselectable">\',\r\n'
20130515 '\t                \'<table class="ext-cal-mvd-tbl" cellpadding="0" cellspacing="0">\',\r\n'
20130515 "\t\t\t\t\t\t'<tbody>',\r\n"
20130515 '\t\t\t\t\t\t\t\'<tpl for=".">\',\r\n'
20130515 '\t\t                        \'<tr><td class="ext-cal-ev">{markup}</td></tr>\',\r\n'
20130515 "\t\t\t\t\t\t\t'</tpl>',\r\n"
20130515 "\t                    '</tbody>',\r\n"
20130515 "\t                '</table>',\r\n"
20130515 "                '</div>'\r\n"
20130515 '\t        );\r\n'
20130515 '        }\r\n'
20130515 '        this.tpl.compile();\r\n'
20130515 '        return this.tpl;\r\n'
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tupdate : function(dt){\r\n'
20130515 '\t\tthis.date = dt;\r\n'
20130515 '\t\tthis.refresh();\r\n'
20130515 '\t},\r\n'
20130515 '\t\r\n'
20130515 '    refresh : function(){\r\n'
20130515 '\t\tif(!this.rendered){\r\n'
20130515 '\t\t\treturn;\r\n'
20130515 '\t\t}\r\n'
20130515 '        var eventTpl = this.view.getEventTemplate(),\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\ttemplateData = [];\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tevts = this.store.queryBy(function(rec){\r\n'
20130515 '\t\t\t\tvar thisDt = this.date.clearTime(true).getTime(),\r\n'
20130515 '                    M = Ext.ensible.cal.EventMappings,\r\n'
20130515 '\t\t\t\t\trecStart = rec.data[M.StartDate.name].clearTime(true).getTime(),\r\n'
20130515 '\t            \tstartsOnDate = (thisDt == recStart),\r\n'
20130515 '\t\t\t\t\tspansDate = false,\r\n'
20130515 '                    calId = rec.data[M.CalendarId.name],\r\n'
20130515 '                    calRec = this.calendarStore ? this.calendarStore.getById(calId) : null;\r\n'
20130515 '                    \r\n'
20130515 '                if(calRec && calRec.data[Ext.ensible.cal.CalendarMappings.IsHidden.name] === true){\r\n'
20130515 '                    // if the event is on a hidden calendar then no need to test the date boundaries\r\n'
20130515 '                    return false;\r\n'
20130515 '                }\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tif(!startsOnDate){\r\n'
20130515 '\t\t\t\t\tvar recEnd = rec.data[Ext.ensible.cal.EventMappings.EndDate.name].clearTime(true).getTime();\r\n'
20130515 '\t            \tspansDate = recStart < thisDt && recEnd >= thisDt;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t            return startsOnDate || spansDate;\r\n'
20130515 '\t        }, this);\r\n'
20130515 '\t\t\r\n'
20130515 '        Ext.ensible.cal.CalendarView.prototype.sortEventRecordsForDay.call(this, evts);\r\n'
20130515 '        \r\n'
20130515 '\t\tevts.each(function(evt){\r\n'
20130515 '            var item = evt.data,\r\n'
20130515 '                M = Ext.ensible.cal.EventMappings;\r\n'
20130515 '                \r\n'
20130515 '\t\t\titem._renderAsAllDay = item[M.IsAllDay.name] || Ext.ensible.Date.diffDays(item[M.StartDate.name], item[M.EndDate.name]) > 0;\r\n'
20130515 '            item.spanLeft = Ext.ensible.Date.diffDays(item[M.StartDate.name], this.date) > 0;\r\n'
20130515 '            item.spanRight = Ext.ensible.Date.diffDays(this.date, item[M.EndDate.name]) > 0;\r\n'
20130515 "            item.spanCls = (item.spanLeft ? (item.spanRight ? 'ext-cal-ev-spanboth' : \r\n"
20130515 "                'ext-cal-ev-spanleft') : (item.spanRight ? 'ext-cal-ev-spanright' : ''));\r\n"
20130515 '\r\n'
20130515 '\t\t\ttemplateData.push({markup: eventTpl.apply(this.getTemplateEventData(item))});\r\n'
20130515 '\t\t}, this);\r\n'
20130515 '\t\t\r\n'
20130515 '\t\tthis.tpl.overwrite(this.el, templateData);\r\n'
20130515 "\t\tthis.fireEvent('eventsrendered', this, this.date, evts.getCount());\r\n"
20130515 '    },\r\n'
20130515 '\t\r\n'
20130515 '\tgetTemplateEventData : function(evt){\r\n'
20130515 '\t\tvar data = this.view.getTemplateEventData(evt);\r\n'
20130515 "\t\tdata._elId = 'dtl-'+data._elId;\r\n"
20130515 '\t\treturn data;\r\n'
20130515 '\t}\r\n'
20130515 '});\r\n'
20130515 '\r\n'
20130515 "Ext.reg('extensible.monthdaydetailview', Ext.ensible.cal.MonthDayDetailView);\r\n"
20130515 '/**\n'
20130515 ' * @class Ext.ensible.cal.CalendarPanel\n'
20130515 ' * @extends Ext.Panel\n'
20130515 ' * <p>This is the default container for calendar views. It supports day, week, multi-week and month views as well\n'
20130515 ' * as a built-in event edit form. The only requirement for displaying a calendar is passing in a valid\n'
20130515 ' * {@link #Ext.data.Store store} config containing records of type {@link Ext.ensible.cal.EventRecord EventRecord}.</p>\n'
20130515 ' * @constructor\n'
20130515 ' * @param {Object} config The config object\n'
20130515 ' * @xtype calendarpanel\n'
20130515 ' */\n'
20130515 'Ext.ensible.cal.CalendarPanel = Ext.extend(Ext.Panel, {\n'
20130515 '    /**\n'
20130515 '     * @cfg {Number} activeItem\n'
20130515 '     * The 0-based index within the available views to set as the default active view (defaults to undefined). If not \n'
20130515 '     * specified the default view will be set as the last one added to the panel. You can retrieve a reference to the\n'
20130515 '     * active {@link Ext.ensible.cal.CalendarView view} at any time using the {@link #activeView} property.\n'
20130515 '     */\n'
20130515 '    /*\n'
20130515 '     * @cfg {Boolean} enableRecurrence\n'
20130515 '     * True to show the recurrence field, false to hide it (default). Note that recurrence requires\n'
20130515 '     * something on the server-side that can parse the iCal RRULE format in order to generate the\n'
20130515 '     * instances of recurring events to display on the calendar, so this field should only be enabled\n'
20130515 '     * if the server supports it.\n'
20130515 '     */\n'
20130515 '    enableRecurrence: false, // not currently implemented\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showDayView\n'
20130515 '     * True to include the day view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showDayView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiDayView\n'
20130515 '     * True to include the multi-day view (and toolbar button), false to hide them (defaults to false).\n'
20130515 '     */\n'
20130515 '    showMultiDayView: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showWeekView\n'
20130515 '     * True to include the week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMultiWeekView\n'
20130515 '     * True to include the multi-week view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     */\n'
20130515 '    showMultiWeekView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showMonthView\n'
20130515 '     * True to include the month view (and toolbar button), false to hide them (defaults to true).\n'
20130515 '     * If all other views are hidden, the month view will show by default even if this config is false.\n'
20130515 '     */\n'
20130515 '    showMonthView: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavBar\n'
20130515 '     * True to display the calendar navigation toolbar, false to hide it (defaults to true). Note that\n'
20130515 "     * if you hide the default navigation toolbar you'll have to provide an alternate means of navigating the calendar.\n"
20130515 '     */\n'
20130515 '    showNavBar: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} todayText\n'
20130515 "     * Text to use for the 'Today' nav bar button.\n"
20130515 '     */\n'
20130515 "    todayText: 'Today',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTodayText\n'
20130515 "     * True to show the value of {@link #todayText} instead of today's date in the calendar's current day box,\n"
20130515 '     * false to display the day number(defaults to true).\n'
20130515 '     */\n'
20130515 '    showTodayText: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showTime\n'
20130515 "     * True to display the current time next to the date in the calendar's current day box, false to not show it \n"
20130515 '     * (defaults to true).\n'
20130515 '     */\n'
20130515 '    showTime: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} readOnly\n'
20130515 '     * True to prevent clicks on events or calendar views from providing CRUD capabilities, false to enable CRUD \n'
20130515 '     * (the default). This option is passed into all views managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    readOnly: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavToday\n'
20130515 '     * True to display the "Today" button in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavToday: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavJump\n'
20130515 '     * True to display the "Jump to:" label in the calendar panel\'s navigation header, false to not\n'
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavJump: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} showNavNextPrev\n'
20130515 "     * True to display the left/right arrow buttons in the calendar panel's navigation header, false to not\n"
20130515 '     * show it (defaults to true).\n'
20130515 '     */\n'
20130515 '    showNavNextPrev: true,\n'
20130515 '    /**\n'
20130515 '     * @cfg {String} jumpToText\n'
20130515 "     * Text to use for the 'Jump to:' navigation label.\n"
20130515 '     */\n'
20130515 "    jumpToText: 'Jump to:',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} goText\n'
20130515 "     * Text to use for the 'Go' navigation button.\n"
20130515 '     */\n'
20130515 "    goText: 'Go',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} dayText\n'
20130515 "     * Text to use for the 'Day' nav bar button.\n"
20130515 '     */\n'
20130515 "    dayText: 'Day',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiDayText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiDayText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiDayText: '{0} Days',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} weekText\n'
20130515 "     * Text to use for the 'Week' nav bar button.\n"
20130515 '     */\n'
20130515 "    weekText: 'Week',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} multiWeekText\n'
20130515 '     * <p><b>Deprecated.</b> Please override {@link #getMultiWeekText} instead.</p>\n'
20130515 '     * <p>Text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).</p>\n"
20130515 '     * @deprecated\n'
20130515 '     */\n'
20130515 "    multiWeekText: '{0} Weeks',\n"
20130515 '    /**\n'
20130515 '     * @cfg {String} monthText\n'
20130515 "     * Text to use for the 'Month' nav bar button.\n"
20130515 '     */\n'
20130515 "    monthText: 'Month',\n"
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} editModal\n'
20130515 '     * True to show the default event editor window modally over the entire page, false to allow user interaction with the page\n'
20130515 '     * while showing the window (the default). Note that if you replace the default editor window with some alternate component this\n'
20130515 '     * config will no longer apply. \n'
20130515 '     */\n'
20130515 '    editModal: false,\n'
20130515 '    /**\n'
20130515 '     * @cfg {Boolean} enableEditDetails\n'
20130515 '     * True to show a link on the event edit window to allow switching to the detailed edit form (the default), false to remove the\n'
20130515 '     * link and disable detailed event editing. \n'
20130515 '     */\n'
20130515 '    enableEditDetails: true,\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} eventStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.EventRecord EventRecords}.\n'
20130515 '     * Note that this is an alias to the default {@link #store} config (to differentiate that from the optional {@link #calendarStore}\n'
20130515 '     * config), and either can be used interchangeably.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Ext.data.Store} calendarStore\n'
20130515 '     * The {@link Ext.data.Store store} which is bound to this calendar and contains {@link Ext.ensible.cal.CalendarRecord CalendarRecords}.\n'
20130515 '     * This is an optional store that provides multi-calendar (and multi-color) support. If available an additional field for selecting the\n'
20130515 '     * calendar in which to save an event will be shown in the edit forms. If this store is not available then all events will simply use\n'
20130515 '     * the default calendar (and color).\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} viewConfig\n'
20130515 '     * A config object that will be applied to all {@link Ext.ensible.cal.CalendarView views} managed by this CalendarPanel. Any\n'
20130515 '     * options on this object that do not apply to any particular view will simply be ignored.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} dayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.DayView DayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiDayViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiDayView MultiDayView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} weekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.WeekView WeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} multiWeekViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MultiWeekView MultiWeekView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} monthViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.MonthView MonthView} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    /**\n'
20130515 '     * @cfg {Object} editViewCfg\n'
20130515 '     * A config object that will be applied only to the {@link Ext.ensible.cal.EventEditForm EventEditForm} managed by this CalendarPanel.\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * A reference to the {@link Ext.ensible.cal.CalendarView view} that is currently active.\n'
20130515 '     * @type {Ext.ensible.cal.CalendarView}\n'
20130515 '     * @property activeView\n'
20130515 '     */\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    layoutConfig: {\n'
20130515 '        layoutOnCardChange: true,\n'
20130515 '        deferredRender: true\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private property\n'
20130515 '    startDate: new Date(),\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initComponent : function(){\n'
20130515 '        this.tbar = {\n'
20130515 "            cls: 'ext-cal-toolbar',\n"
20130515 '            border: true,\n'
20130515 '            items: []\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        this.viewCount = 0;\n'
20130515 '        \n'
20130515 '        var multiDayViewCount = (this.multiDayViewCfg && this.multiDayViewCfg.dayCount) || 3,\n'
20130515 '            multiWeekViewCount = (this.multiWeekViewCfg && this.multiWeekViewCfg.weekCount) || 2;\n'
20130515 '        \n'
20130515 '        if(this.showNavToday){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-today', text: this.todayText, handler: this.onTodayClick, scope: this\n"
20130515 '            });\n'
20130515 '        }\n'
20130515 '        if(this.showNavNextPrev){\n'
20130515 '            this.tbar.items.push([\n'
20130515 "                {id: this.id+'-tb-prev', handler: this.onPrevClick, scope: this, iconCls: 'x-tbar-page-prev'},\n"
20130515 "                {id: this.id+'-tb-next', handler: this.onNextClick, scope: this, iconCls: 'x-tbar-page-next'}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        if(this.showNavJump){\n'
20130515 '            this.tbar.items.push([\n'
20130515 '                this.jumpToText,\n'
20130515 "                {id: this.id+'-tb-jump-dt', xtype: 'datefield', showToday: false},\n"
20130515 "                {id: this.id+'-tb-jump', text: this.goText, handler: this.onJumpClick, scope: this}\n"
20130515 '            ]);\n'
20130515 '        }\n'
20130515 '        \n'
20130515 "        this.tbar.items.push('->');\n"
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-day', text: this.dayText, handler: this.onDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var text = String.format(this.getMultiDayText(multiDayViewCount), multiDayViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiday', text: text, handler: this.onMultiDayNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-week', text: this.weekText, handler: this.onWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var text = String.format(this.getMultiWeekText(multiWeekViewCount), multiWeekViewCount);\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-multiweek', text: text, handler: this.onMultiWeekNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView || this.viewCount == 0){\n'
20130515 '            this.tbar.items.push({\n'
20130515 "                id: this.id+'-tb-month', text: this.monthText, handler: this.onMonthNavClick, scope: this, toggleGroup: this.id+'-tb-views'\n"
20130515 '            });\n'
20130515 '            this.viewCount++;\n'
20130515 '            this.showMonthView = true;\n'
20130515 '        }\n'
20130515 '        \n'
20130515 '        var idx = this.viewCount-1;\n'
20130515 '        this.activeItem = this.activeItem === undefined ? idx : (this.activeItem > idx ? idx : this.activeItem);\n'
20130515 '        \n'
20130515 '        if(this.showNavBar === false){\n'
20130515 '            delete this.tbar;\n'
20130515 "            this.addClass('x-calendar-nonav');\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '        \n'
20130515 '        this.addEvents({\n'
20130515 '            /**\n'
20130515 '             * @event eventadd\n'
20130515 '             * Fires after a new event is added to the underlying store\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was added\n'
20130515 '             */\n'
20130515 '            eventadd: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventupdate\n'
20130515 '             * Fires after an existing event is updated\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was updated\n'
20130515 '             */\n'
20130515 '            eventupdate: true,\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventdelete\n'
20130515 '             * Fires before an event is deleted by the user. This is a cancelable event, so returning false from a handler \n'
20130515 '             * will cancel the delete operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            beforeeventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventdelete\n'
20130515 '             * Fires after an event is deleted by the user.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was deleted\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            eventdelete: true,\n'
20130515 '            /**\n'
20130515 '             * @event eventcancel\n'
20130515 '             * Fires after an event add/edit operation is canceled by the user and no store update took place\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The new {@link Ext.ensible.cal.EventRecord record} that was canceled\n'
20130515 '             */\n'
20130515 '            eventcancel: true,\n'
20130515 '            /**\n'
20130515 '             * @event viewchange\n'
20130515 '             * Fires after a different calendar view is activated (but not when the event edit form is activated)\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.CalendarView} view The view being activated (any valid {@link Ext.ensible.cal.CalendarView CalendarView} subclass)\n'
20130515 '             * @param {Object} info Extra information about the newly activated view. This is a plain object \n'
20130515 '             * with following properties:<div class="mdetail-params"><ul>\n'
20130515 '             * <li><b><code>activeDate</code></b> : <div class="sub-desc">The currently-selected date</div></li>\n'
20130515 '             * <li><b><code>viewStart</code></b> : <div class="sub-desc">The first date in the new view range</div></li>\n'
20130515 '             * <li><b><code>viewEnd</code></b> : <div class="sub-desc">The last date in the new view range</div></li>\n'
20130515 '             * </ul></div>\n'
20130515 '             */\n'
20130515 '            viewchange: true,\n'
20130515 '            /**\n'
20130515 '             * @event editdetails\n'
20130515 '             * Fires when the user selects the option to edit the selected event in the detailed edit form\n'
20130515 '             * (by default, an instance of {@link Ext.ensible.cal.EventEditForm}). Handling code should hide the active\n'
20130515 '             * event editor and transfer the current event record to the appropriate instance of the detailed form by showing it\n'
20130515 '             * and calling {@link Ext.ensible.cal.EventEditForm#loadRecord loadRecord}.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this The CalendarPanel\n'
20130515 '             * @param {Ext.ensible.cal.CalendarView} view The currently active {@link Ext.ensible.cal.CalendarView CalendarView} subclass\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} that is currently being edited\n'
20130515 '             * @param {Ext.Element} el The target element\n'
20130515 '             */\n'
20130515 '            editdetails: true\n'
20130515 '            \n'
20130515 '            \n'
20130515 '            //\n'
20130515 '            // NOTE: CalendarPanel also relays the following events from contained views as if they originated from this:\n'
20130515 '            //\n'
20130515 '            \n'
20130515 '            /**\n'
20130515 '             * @event eventsrendered\n'
20130515 '             * Fires after events are finished rendering in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this \n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventclick\n'
20130515 '             * <p>Fires after the user clicks on an event element.</p>\n'
20130515 '             * <p><strong>NOTE:</strong> This version of <code>eventclick</code> differs from the same event fired directly by\n'
20130515 '             * {@link Ext.ensible.cal.CalendarView CalendarView} subclasses in that it provides a default implementation (showing\n'
20130515 '             * the default edit window) and is also cancelable (if a handler returns <code>false</code> the edit window will not be shown).\n'
20130515 '             * This event when fired from a view class is simply a notification that an event was clicked and has no default behavior.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was clicked on\n'
20130515 '             * @param {HTMLNode} el The DOM node that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event rangeselect\n'
20130515 '             * Fires after the user drags on the calendar to select a range of dates/times in which to create an event\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Object} dates An object containing the start (StartDate property) and end (EndDate property) dates selected\n'
20130515 '             * @param {Function} callback A callback function that MUST be called after the event handling is complete so that\n'
20130515 '             * the view is properly cleaned up (shim elements are persisted in the view while the user is prompted to handle the\n'
20130515 '             * range selection). The callback is already created in the proper scope, so it simply needs to be executed as a standard\n'
20130515 '             * function call (e.g., callback()).\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventover\n'
20130515 '             * Fires anytime the mouse is over an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor is over\n'
20130515 '             * @param {HTMLNode} el The DOM node that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventout\n'
20130515 '             * Fires anytime the mouse exits an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that the cursor exited\n'
20130515 '             * @param {HTMLNode} el The DOM node that was exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforedatechange\n'
20130515 '             * Fires before the start date of the view changes, giving you an opportunity to save state or anything else you may need\n'
20130515 '             * to do prior to the UI view changing. This is a cancelable event, so returning false from a handler will cancel both the\n'
20130515 '             * view change and the setting of the start date.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The current start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} newStartDate The new start date that will be set when the view changes\n'
20130515 '             * @param {Date} viewStart The first displayed date in the current view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the current view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayclick\n'
20130515 '             * Fires after the user clicks within a day/week view container and not on an event element\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date/time that was clicked on\n'
20130515 '             * @param {Boolean} allday True if the day clicked on represents an all-day box, else false.\n'
20130515 '             * @param {Ext.Element} el The Element that was clicked on\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event datechange\n'
20130515 '             * Fires after the start date of the view changes\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} startDate The start date of the view (as explained in {@link #getStartDate}\n'
20130515 '             * @param {Date} viewStart The first displayed date in the view\n'
20130515 '             * @param {Date} viewEnd The last displayed date in the view\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventmove\n'
20130515 '             * Fires before an event element is dragged by the user and dropped in a new position. This is a cancelable event, so \n'
20130515 '             * returning false from a handler will cancel the move operation.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that will be moved\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventmove\n'
20130515 '             * Fires after an event element is dragged by the user and dropped in a new position\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was moved with\n'
20130515 '             * updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event initdrag\n'
20130515 '             * Fires when a drag operation is initiated in the view\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayover\n'
20130515 '             * Fires while the mouse is over a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is being moused over\n'
20130515 '             * @param {Ext.Element} el The day Element that is being moused over\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event dayout\n'
20130515 '             * Fires when the mouse exits a day element \n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Date} dt The date that is exited\n'
20130515 '             * @param {Ext.Element} el The day Element that is exited\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event beforeeventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event to resize it, but before the resize operation is carried out.\n'
20130515 '             * This is a cancelable event, so returning false from a handler will cancel the resize operation. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '            /**\n'
20130515 '             * @event eventresize\n'
20130515 '             * Fires after the user drags the resize handle of an event and the resize operation is complete. <strong>NOTE:</strong>\n'
20130515 '             * This event is only fired from views that support event resizing.\n'
20130515 '             * @param {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '             * @param {Ext.ensible.cal.EventRecord} rec The {@link Ext.ensible.cal.EventRecord record} for the event that was resized\n'
20130515 '             * containing the updated start and end dates\n'
20130515 '             */\n'
20130515 '        });\n'
20130515 '        \n'
20130515 "        this.layout = 'card'; // do not allow override\n"
20130515 "        this.addClass('x-cal-panel');\n"
20130515 '        \n'
20130515 '        if(this.eventStore){\n'
20130515 '            this.store = this.eventStore;\n'
20130515 '            delete this.eventStore;\n'
20130515 '        }\n'
20130515 '        this.setStore(this.store);\n'
20130515 '        \n'
20130515 '        var sharedViewCfg = {\n'
20130515 '            showToday: this.showToday,\n'
20130515 '            todayText: this.todayText,\n'
20130515 '            showTodayText: this.showTodayText,\n'
20130515 '            showTime: this.showTime,\n'
20130515 '            readOnly: this.readOnly,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            store: this.store,\n'
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            editModal: this.editModal,\n'
20130515 '            enableEditDetails: this.enableEditDetails,\n'
20130515 '            ownerCalendarPanel: this\n'
20130515 '        };\n'
20130515 '        \n'
20130515 '        if(this.showDayView){\n'
20130515 '            var day = Ext.apply({\n'
20130515 "                xtype: 'extensible.dayview',\n"
20130515 '                title: this.dayText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            day = Ext.apply(Ext.apply(day, this.viewConfig), this.dayViewCfg);\n'
20130515 "            day.id = this.id+'-day';\n"
20130515 '            this.initEventRelay(day);\n'
20130515 '            this.add(day);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiDayView){\n'
20130515 '            var mday = Ext.apply({\n'
20130515 "                xtype: 'extensible.multidayview',\n"
20130515 '                title: this.getMultiDayText(multiDayViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mday = Ext.apply(Ext.apply(mday, this.viewConfig), this.multiDayViewCfg);\n'
20130515 "            mday.id = this.id+'-multiday';\n"
20130515 '            this.initEventRelay(mday);\n'
20130515 '            this.add(mday);\n'
20130515 '        }\n'
20130515 '        if(this.showWeekView){\n'
20130515 '            var wk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.weekview',\n"
20130515 '                title: this.weekText\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            wk = Ext.apply(Ext.apply(wk, this.viewConfig), this.weekViewCfg);\n'
20130515 "            wk.id = this.id+'-week';\n"
20130515 '            this.initEventRelay(wk);\n'
20130515 '            this.add(wk);\n'
20130515 '        }\n'
20130515 '        if(this.showMultiWeekView){\n'
20130515 '            var mwk = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.multiweekview',\n"
20130515 '                title: this.getMultiWeekText(multiWeekViewCount)\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            mwk = Ext.apply(Ext.apply(mwk, this.viewConfig), this.multiWeekViewCfg);\n'
20130515 "            mwk.id = this.id+'-multiweek';\n"
20130515 '            this.initEventRelay(mwk);\n'
20130515 '            this.add(mwk);\n'
20130515 '        }\n'
20130515 '        if(this.showMonthView){\n'
20130515 '            var month = Ext.applyIf({\n'
20130515 "                xtype: 'extensible.monthview',\n"
20130515 '                title: this.monthText,\n'
20130515 '                listeners: {\n'
20130515 "                    'weekclick': {\n"
20130515 '                        fn: function(vw, dt){\n'
20130515 '                            this.showWeek(dt);\n'
20130515 '                        },\n'
20130515 '                        scope: this\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }, sharedViewCfg);\n'
20130515 '            \n'
20130515 '            month = Ext.apply(Ext.apply(month, this.viewConfig), this.monthViewCfg);\n'
20130515 "            month.id = this.id+'-month';\n"
20130515 '            this.initEventRelay(month);\n'
20130515 '            this.add(month);\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        this.add(Ext.applyIf({\n'
20130515 "            xtype: 'extensible.eventeditform',\n"
20130515 "            id: this.id+'-edit',\n"
20130515 '            calendarStore: this.calendarStore,\n'
20130515 '            enableRecurrence: this.enableRecurrence,\n'
20130515 '            listeners: {\n'
20130515 "                'eventadd':    { scope: this, fn: this.onEventAdd },\n"
20130515 "                'eventupdate': { scope: this, fn: this.onEventUpdate },\n"
20130515 "                'eventdelete': { scope: this, fn: this.onEventDelete },\n"
20130515 "                'eventcancel': { scope: this, fn: this.onEventCancel }\n"
20130515 '            }\n'
20130515 '        }, this.editViewCfg));\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    initEventRelay: function(cfg){\n'
20130515 '        cfg.listeners = cfg.listeners || {};\n'
20130515 '        cfg.listeners.afterrender = {\n'
20130515 '            fn: function(c){\n'
20130515 '                // relay view events so that app code only has to handle them in one place.\n'
20130515 '                // these events require no special handling by the calendar panel \n'
20130515 "                this.relayEvents(c, ['eventsrendered','eventclick','dayclick','eventover','eventout','beforedatechange',\n"
20130515 "                    'datechange','rangeselect','beforeeventmove','eventmove','initdrag','dayover','dayout','beforeeventresize',\n"
20130515 "                    'eventresize','eventadd','eventupdate','beforeeventdelete','eventdelete','eventcancel']);\n"
20130515 '                \n'
20130515 "                c.on('editdetails', this.onEditDetails, this);\n"
20130515 '            },\n'
20130515 '            scope: this,\n'
20130515 '            single: true\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    afterRender: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.afterRender.call(this);\n'
20130515 "        this.body.addClass('x-cal-body');\n"
20130515 '        this.activeView = this.getLayout().activeItem;\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onLayout: function(){\n'
20130515 '        Ext.ensible.cal.CalendarPanel.superclass.onLayout.call(this);\n'
20130515 '        if(!this.navInitComplete){\n'
20130515 '            this.updateNavState();\n'
20130515 '            this.navInitComplete = true;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Days\' nav bar button (defaults to "{0} Days" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multDayViewCfg}'s dayCount value if available, otherwise it uses the view default of 3).\n"
20130515 '     */\n'
20130515 '    getMultiDayText: function(numDays){\n'
20130515 '        return this.multiDayText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Returns the text to use for the \'X Weeks\' nav bar button (defaults to "{0} Weeks" where {0} is automatically replaced by the\n'
20130515 "     * value of the {@link #multiWeekViewCfg}'s weekCount value if available, otherwise it uses the view default of 2).\n"
20130515 '     */\n'
20130515 '    getMultiWeekText: function(numWeeks){\n'
20130515 '        return this.multiWeekText;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Sets the event store used by the calendar to display {@link Ext.ensible.cal.EventRecord events}.\n'
20130515 '     * @param {Ext.data.Store} store\n'
20130515 '     */\n'
20130515 '    setStore : function(store, initial){\n'
20130515 '        var currStore = this.store;\n'
20130515 '        \n'
20130515 '        if(!initial && currStore){\n'
20130515 '            currStore.un("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        if(store){\n'
20130515 '            store.on("write", this.onWrite, this);\n'
20130515 '        }\n'
20130515 '        this.store = store;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreAdd : function(ds, recs, index){\n'
20130515 '        var rec = Ext.isArray(recs) ? recs[0] : recs;\n'
20130515 '        if(rec.phantom){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onStoreUpdate : function(ds, rec, operation){\n'
20130515 '        if(operation == Ext.data.Record.COMMIT){\n'
20130515 '            this.hideEditForm();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    // private\n'
20130515 '    onStoreRemove : function(ds, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWrite: function(store, action, data, resp, rec){\n'
20130515 '        switch(action){\n'
20130515 "            case 'create': \n"
20130515 '                this.onStoreAdd(store, rec);\n'
20130515 '                break;\n'
20130515 "            case 'update':\n"
20130515 '                this.onStoreUpdate(store, rec, Ext.data.Record.COMMIT);\n'
20130515 '                break;\n'
20130515 "            case 'destroy':\n"
20130515 '                this.onStoreRemove(store, rec);\n'
20130515 '                break;\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEditDetails: function(vw, rec, el){\n'
20130515 "        if(this.fireEvent('editdetails', this, vw, rec, el) !== false){\n"
20130515 '            this.showEditForm(rec);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    save: function(){\n'
20130515 "        // If the store is configured as autoSave:true the record's endEdit\n"
20130515 '        // method will have already internally caused a save to execute on\n'
20130515 '        // the store. We only need to save manually when autoSave is false,\n'
20130515 "        // otherwise we'll create duplicate transactions.\n"
20130515 '        if(!this.store.autoSave){\n'
20130515 '            this.store.save();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    onEventAdd: function(form, rec){\n'
20130515 '        if(!rec.store){\n'
20130515 '            this.store.add(rec);\n'
20130515 '            this.save();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('eventadd', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventUpdate: function(form, rec){\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventupdate', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventDelete: function(form, rec){\n'
20130515 '        this.store.remove(rec);\n'
20130515 '        this.save();\n'
20130515 "        this.fireEvent('eventdelete', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onEventCancel: function(form, rec){\n'
20130515 '        this.hideEditForm();\n'
20130515 "        this.fireEvent('eventcancel', this, rec);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Shows the built-in event edit form for the passed in event record.  This method automatically\n'
20130515 '     * hides the calendar views and navigation toolbar.  To return to the calendar, call {@link #hideEditForm}.\n'
20130515 '     * @param {Ext.ensible.cal.EventRecord} record The event record to edit\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    showEditForm: function(rec){\n'
20130515 '        this.preEditView = this.layout.activeItem.id;\n'
20130515 "        this.setActiveView(this.id+'-edit');\n"
20130515 '        this.layout.activeItem.loadRecord(rec);\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Hides the built-in event edit form and returns to the previous calendar view. If the edit form is\n'
20130515 '     * not currently visible this method has no effect.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    hideEditForm: function(){\n'
20130515 '        if(this.preEditView){\n'
20130515 '            this.setActiveView(this.preEditView);\n'
20130515 '            delete this.preEditView;\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    setActiveView: function(id){\n'
20130515 '        var l = this.layout,\n'
20130515 '            tb = this.getTopToolbar();\n'
20130515 '            \n'
20130515 '        l.setActiveItem(id);\n'
20130515 '        this.activeView = l.activeItem;\n'
20130515 '        \n'
20130515 "        if(id == this.id+'-edit'){\n"
20130515 '            if(tb){\n'
20130515 '                tb.hide();\n'
20130515 '            }\n'
20130515 '            this.doLayout();\n'
20130515 '        }\n'
20130515 '        else{\n'
20130515 '            if(id !== this.preEditView){\n'
20130515 '                l.activeItem.setStartDate(this.startDate, true);\n'
20130515 '            }\n'
20130515 '            if(tb){\n'
20130515 '               tb.show();\n'
20130515 '           }\n'
20130515 '           this.updateNavState();\n'
20130515 '        }\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    fireViewChange: function(){\n'
20130515 '        var info = null, \n'
20130515 '            view = this.layout.activeItem;\n'
20130515 '            \n'
20130515 '        if(view.getViewBounds){\n'
20130515 '            var vb = view.getViewBounds(),\n'
20130515 '            info = {\n'
20130515 '                activeDate: view.getStartDate(),\n'
20130515 '                viewStart: vb.start,\n'
20130515 '                viewEnd: vb.end\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        if(view.dismissEventEditor){\n'
20130515 '            view.dismissEventEditor();\n'
20130515 '        }\n'
20130515 "        this.fireEvent('viewchange', this, view, info);\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    updateNavState: function(){\n'
20130515 '        if(this.showNavBar !== false){\n'
20130515 '            var item = this.layout.activeItem,\n'
20130515 "                suffix = item.id.split(this.id+'-')[1];\n"
20130515 '            \n'
20130515 '            if(this.showNavToday){\n'
20130515 "                Ext.getCmp(this.id+'-tb-today').setDisabled(item.isToday());\n"
20130515 '            }\n'
20130515 "            var btn = Ext.getCmp(this.id+'-tb-'+suffix);\n"
20130515 '            btn.toggle(true);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    /**\n'
20130515 '     * Sets the start date for the currently-active calendar view.\n'
20130515 '     * @param {Date} dt The new start date\n'
20130515 '     * @return {Ext.ensible.cal.CalendarPanel} this\n'
20130515 '     */\n'
20130515 '    setStartDate: function(dt){\n'
20130515 "        Ext.ensible.log('setStartDate (CalendarPanel');\n"
20130515 '        this.startDate = dt;\n'
20130515 '        this.layout.activeItem.setStartDate(dt, true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '        return this;\n'
20130515 '    },\n'
20130515 '        \n'
20130515 '    // private\n'
20130515 '    showWeek: function(dt){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '        this.setStartDate(dt);\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onTodayClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveToday(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onJumpClick: function(){\n'
20130515 "        var dt = Ext.getCmp(this.id+'-tb-jump-dt').getValue();\n"
20130515 "        if(dt !== ''){\n"
20130515 '            this.startDate = this.layout.activeItem.moveTo(dt, true);\n'
20130515 '            this.updateNavState();\n'
20130515 '            // TODO: check that view actually changed:\n'
20130515 '            this.fireViewChange();\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onPrevClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.movePrev(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onNextClick: function(){\n'
20130515 '        this.startDate = this.layout.activeItem.moveNext(true);\n'
20130515 '        this.updateNavState();\n'
20130515 '        this.fireViewChange();\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-day');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiDayNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiday');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-week');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMultiWeekNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-multiweek');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    // private\n'
20130515 '    onMonthNavClick: function(){\n'
20130515 "        this.setActiveView(this.id+'-month');\n"
20130515 '    },\n'
20130515 '    \n'
20130515 '    /**\n'
20130515 '     * Return the calendar view that is currently active, which will be a subclass of\n'
20130515 '     * {@link Ext.ensible.cal.CalendarView CalendarView}.\n'
20130515 '     * @return {Ext.ensible.cal.CalendarView} The active view\n'
20130515 '     */\n'
20130515 '    getActiveView: function(){\n'
20130515 '        return this.layout.activeItem;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 "Ext.reg('extensible.calendarpanel', Ext.ensible.cal.CalendarPanel);"
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:45 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 22 Jun 2011 23:19:10 GMT\r\nContent-Length: 5613\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*!\n'
20130515 ' * Extensible 1.0.1\n'
20130515 ' * Copyright(c) 2010-2011 Extensible, LLC\n'
20130515 ' * licensing@ext.ensible.com\n'
20130515 ' * http://ext.ensible.com\n'
20130515 ' */\n'
20130515 '/*\n'
20130515 ' * French (France) locale\n'
20130515 ' * Contributors: devil1591, Alain Deseine, Yannick Torres\n'
20130515 ' */\n'
20130515 '\n'
20130515 'Ext.ensible.Date.use24HourTime = true;\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarView.prototype, {\n'
20130515 '        startDay: 1,\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        defaultEventTitleText: '(Pas de titre)',\n"
20130515 "        ddCreateEventText: 'Cr\xc3\xa9er \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddMoveEventText: 'D\xc3\xa9placer \xc3\xa9v\xc3\xa8nement le {0}',\n"
20130515 "        ddResizeEventText: 'Mettre \xc3\xa0 jour l\\'\xc3\xa9v\xc3\xa9nement au {0}'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthView) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthView.prototype, {\n'
20130515 "        moreText: '+{0} autres ...',\n"
20130515 '        getMoreText: function(numEvents){\n'
20130515 "            return '+{0} autres ...';\n"
20130515 '        },\n'
20130515 "        detailsTitleDateFormat: 'd F'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarPanel) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarPanel.prototype, {\n'
20130515 "        todayText: 'Aujourd\\'hui',\n"
20130515 "        dayText: 'Jour',\n"
20130515 "        weekText: 'Semaine',\n"
20130515 "        monthText: 'Mois',\n"
20130515 "        jumpToText: 'Aller au :',\n"
20130515 "        goText: 'Ok',\n"
20130515 "        multiDayText: '{0} jours',\n"
20130515 "        multiWeekText: '{0} semaines',\n"
20130515 '        getMultiDayText: function(numDays){\n'
20130515 "            return '{0} jours';\n"
20130515 '        },\n'
20130515 '        getMultiWeekText: function(numWeeks){\n'
20130515 "            return '{0} semaines';\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditWindow) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditWindow.prototype, {\n'
20130515 '        width: 650,\n'
20130515 '        labelWidth: 65,\n'
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        savingMessage: 'Sauvegarde des changements...',\n"
20130515 "        deletingMessage: 'Suppression de l\\'\xc3\xa9v\xc3\xa8nement...',\n"
20130515 "        detailsLinkText: 'D\xc3\xa9tail de l\\'\xc3\xa9v\xc3\xa9nement...',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        calendarLabelText: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventEditForm) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventEditForm.prototype, {\n'
20130515 '        labelWidth: 55,\n'
20130515 '        labelWidthRightCol: 80,\n'
20130515 "        title: 'Formulaire \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextAdd: 'Ajouter \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        titleTextEdit: 'Editer \xc3\xa9v\xc3\xa8nement',\n"
20130515 "        saveButtonText: 'Enregistrer',\n"
20130515 "        deleteButtonText: 'Supprimer',\n"
20130515 "        cancelButtonText: 'Annuler',\n"
20130515 "        titleLabelText: 'Titre',\n"
20130515 "        datesLabelText: 'Quand',\n"
20130515 "        reminderLabelText: 'Rappel',\n"
20130515 "        notesLabelText: 'Notes',\n"
20130515 "        locationLabelText: 'Lieu',\n"
20130515 "        webLinkLabelText: 'Lien internet',\n"
20130515 "        calendarLabelText: 'Agenda',\n"
20130515 "        repeatsLabelText: 'R\xc3\xa9p\xc3\xa9ter'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        toText: 'au',\n"
20130515 "        allDayText: 'Toute la journ\xc3\xa9e'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarCombo.prototype, {\n'
20130515 "        fieldLabel: 'Agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarList) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarList.prototype, {\n'
20130515 "        title: 'Agendas'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.CalendarListMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.CalendarListMenu.prototype, {\n'
20130515 "        displayOnlyThisCalendarText: 'N\\'afficher que cet agenda'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.RecurrenceCombo) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.RecurrenceCombo.prototype, {\n'
20130515 "        fieldLabel: 'R\xc3\xa9ccurence',\n"
20130515 '        recurrenceText: {\n'
20130515 "            none: 'Ne pas r\xc3\xa9p\xc3\xa9ter',\n"
20130515 "            daily: 'Quotidien',\n"
20130515 "            weekly: 'Hebdomadaire',\n"
20130515 "            monthly: 'Mensuel',\n"
20130515 "            yearly: 'Annuel'\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.ReminderField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.ReminderField.prototype, {\n'
20130515 "        fieldLabel: 'Rappel',\n"
20130515 "        noneText: 'Aucun',\n"
20130515 "        atStartTimeText: 'au d\xc3\xa9but',\n"
20130515 '        getMinutesText: function(numMinutes){\n'
20130515 "            return numMinutes === 1 ? 'minute' : 'minutes';\n"
20130515 '        },\n'
20130515 '        getHoursText: function(numHours){\n'
20130515 "            return numHours === 1 ? 'heure' : 'heures';\n"
20130515 '        },\n'
20130515 '        getDaysText: function(numDays){\n'
20130515 "            return numDays === 1 ? 'jour' : 'jours';\n"
20130515 '        },\n'
20130515 '        getWeeksText: function(numWeeks){\n'
20130515 "            return numWeeks === 1 ? 'semaine' : 'semaines';\n"
20130515 '        },\n'
20130515 '        reminderValueFormat: \'{0} {1} avant le d\xc3\xa9but\' // e.g. "2 hours before start"\n'
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DateRangeField) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DateRangeField.prototype, {\n'
20130515 "        dateFormat: 'd/m/Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.EventContextMenu) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.EventContextMenu.prototype, {\n'
20130515 "        editDetailsText: '\xc3\x89diter les d\xc3\xa9tails',\n"
20130515 "        deleteText: 'Effacer',\n"
20130515 "        moveToText: 'D\xc3\xa9placer au...'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat: 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.DayViewDropZone) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.DayViewDropZone.prototype, {\n'
20130515 "        dateRangeFormat: '{0}-{1}',\n"
20130515 "        dateFormat : 'd/m'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.BoxLayoutTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.BoxLayoutTemplate.prototype, {\n'
20130515 "        firstWeekDateFormat: 'D d',\n"
20130515 "        otherWeeksDateFormat: 'd',\n"
20130515 "        singleDayDateFormat: 'l d F Y',\n"
20130515 "        multiDayFirstDayFormat: 'd M Y',\n"
20130515 "        multiDayMonthStartFormat: 'd M'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 '\n'
20130515 'if(Ext.ensible.cal.MonthViewTemplate) {\n'
20130515 '    Ext.apply(Ext.ensible.cal.MonthViewTemplate.prototype, {\n'
20130515 "        dayHeaderFormat: 'D',\n"
20130515 "        dayHeaderTitleFormat: 'l d F Y'\n"
20130515 '    });\n'
20130515 '}\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:46 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21304\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/** ************************************************************\r\n'
20130515 '\tExt.ux.TinyMCE v0.8.5\r\n'
20130515 '\tExtJS form field containing TinyMCE v3.\r\n'
20130515 '\t\r\n'
20130515 '\tAuthor: Andrew Mayorov et al.\r\n'
20130515 '\thttp://blogs.byte-force.com/xor\r\n'
20130515 '  \r\n'
20130515 '\tCopyright (c)2008-2010 BYTE-force\r\n'
20130515 '\twww.byte-force.com\r\n'
20130515 '\t\r\n'
20130515 '\tLicense: LGPLv2.1 or later\r\n'
20130515 '  \r\n'
20130515 '  Modifs by Luc Saffre:\r\n'
20130515 '  \r\n'
20130515 '  disable function sets ``this.disabled = true;`` \r\n'
20130515 '  (enable function the opposite)\r\n'
20130515 '  \r\n'
20130515 '*/\r\n'
20130515 '\r\n'
20130515 '(function() {\r\n'
20130515 '\r\n'
20130515 '\tExt.namespace("Ext.ux");\r\n'
20130515 '\r\n'
20130515 '\tvar tmceInitialized = false;\r\n'
20130515 '\r\n'
20130515 '\t// Lazy references to classes. To be filled in the initTinyMCE method.\r\n'
20130515 '\tvar WindowManager;\r\n'
20130515 '\tvar ControlManager;\r\n'
20130515 '\r\n'
20130515 '\t// Create a new Windows Group for the dialogs\r\n'
20130515 '\t/*var windowGroup = new Ext.WindowGroup();\r\n'
20130515 '\twindowGroup.zseed = 12000;*/\r\n'
20130515 '\r\n'
20130515 '\r\n'
20130515 '\t/** ----------------------------------------------------------\r\n'
20130515 '\tExt.ux.TinyMCE\r\n'
20130515 '\t*/\r\n'
20130515 '\tExt.ux.TinyMCE = Ext.extend( Ext.form.Field, {\r\n'
20130515 '\r\n'
20130515 '\t\t// TinyMCE Settings specified for this instance of the editor.\r\n'
20130515 '\t\ttinymceSettings: null,\r\n'
20130515 '\r\n'
20130515 '\t\t// Validation properties\r\n'
20130515 '\t\tallowBlank: true,\r\n'
20130515 '\t\tinvalidText: "The value in this field is invalid",\r\n'
20130515 '\t\tinvalidClass: "invalid-content-body",\r\n'
20130515 "\t\tminLengthText : 'The minimum length for this field is {0}',\r\n"
20130515 "\t\tmaxLengthText : 'The maximum length for this field is {0}',\r\n"
20130515 "\t\tblankText : 'This field is required',\r\n"
20130515 '\r\n'
20130515 '\t\t// HTML markup for this field\r\n'
20130515 "\t\thideMode: 'offsets',\r\n"
20130515 '\t\tdefaultAutoCreate: {\r\n'
20130515 '\t\t\ttag: "textarea",\r\n'
20130515 '\t\t\tstyle: "width:1px;height:1px;",\r\n'
20130515 '\t\t\tautocomplete: "off"\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tconstructor: function(cfg) {\r\n'
20130515 '\r\n'
20130515 '\t\t\tvar config = {\r\n'
20130515 '\t\t\t\ttinymceSettings: {\r\n'
20130515 '\t\t\t\t\taccessibility_focus: false\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.apply(config, cfg);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Add events\r\n'
20130515 '\t\t\tthis.addEvents({\r\n'
20130515 '\t\t\t\t"editorcreated": true\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.constructor.call(this, config);\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitComponent: function() {\r\n'
20130515 '\t\t\tthis.tinymceSettings = this.tinymceSettings || {};\r\n'
20130515 "      //~ console.log('initComponent',this.tinymceSettings);\r\n"
20130515 '\t\t\tExt.ux.TinyMCE.initTinyMCE({ language: this.tinymceSettings.language });\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitEvents: function() {\r\n'
20130515 '\t\t\tthis.originalValue = this.getValue();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonRender: function(ct, position) {\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Fix size if it was specified in config\r\n'
20130515 '\t\t\tif (Ext.type(this.width) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.width = this.width;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (Ext.type(this.height) == "number") {\r\n'
20130515 '\t\t\t\tthis.tinymceSettings.height = this.height;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 "\t\t\t//this.el.dom.style.border = '0 none';\r\n"
20130515 "\t\t\tthis.el.dom.setAttribute('tabIndex', -1);\r\n"
20130515 "\t\t\tthis.el.addClass('x-hidden');\r\n"
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Wrap textarea into DIV\r\n'
20130515 '\t\t\tthis.textareaEl = this.el;\r\n'
20130515 '\t\t\tvar wrapElStyle = { overflow: "hidden" };\r\n'
20130515 '\t\t\tif( Ext.isIE ) { // fix IE 1px bogus margin\r\n'
20130515 '\t\t\t\twrapElStyle["margin-top"] = "-1px";\r\n'
20130515 '\t\t\t\twrapElStyle["margin-bottom"] = "-1px";\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tthis.wrapEl = this.el.wrap({ style: wrapElStyle });\r\n'
20130515 '\t\t\tthis.actionMode = "wrapEl"; // Set action element to the new wrapper\r\n'
20130515 '\t\t\tthis.positionEl = this.wrapEl;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar id = this.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Create TinyMCE editor.\r\n'
20130515 '\t\t\tthis.ed = new tinymce.Editor(id, this.tinymceSettings);\r\n'
20130515 '      \r\n'
20130515 '      // LS 20110602\r\n'
20130515 '      //~ this.ed.addShortcut(\'ctrl+c\', "Close editor window", ct.close,this);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Validate value onKeyPress\r\n'
20130515 '\t\t\tvar validateContentTask = new Ext.util.DelayedTask( this.validate, this );\r\n'
20130515 '\t\t\tthis.ed.onKeyPress.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvalidateContentTask.delay( 250 );\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 "\t\t\t// Set up editor events' handlers\r\n"
20130515 '\t\t\tthis.ed.onBeforeRenderUI.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\t// Replace control manager\r\n'
20130515 '\t\t\t\ted.controlManager = new ControlManager(this, ed);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.ed.onPostRender.add(function(ed, controlManager) {\r\n'
20130515 '\t\t\t\tvar s = ed.settings;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Modify markup.\r\n'
20130515 '\t\t\t\tvar tbar = Ext.get(Ext.DomQuery.selectNode("#" + this.ed.id + "_tbl td.mceToolbar"));\r\n'
20130515 '\t\t\t\tif( tbar != null ) {\r\n'
20130515 '\t\t\t\t\t// If toolbar is present\r\n'
20130515 '\t\t\t\t\tvar tbars = tbar.select("> table.mceToolbar");\r\n'
20130515 '\t\t\t\t\tExt.DomHelper\r\n'
20130515 '\t\t\t\t\t\t.append( tbar,\r\n'
20130515 '\t\t\t\t\t\t\t{ tag: "div", id: this.ed.id + "_xtbar", style: { overflow: "hidden"} }\r\n'
20130515 '\t\t\t\t\t\t\t, true )\r\n'
20130515 '\t\t\t\t\t\t.appendChild(tbars);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\t// Change window manager\r\n'
20130515 '\t\t\t\ted.windowManager = new WindowManager({\r\n'
20130515 '\t\t\t\t\teditor: this.ed,\r\n'
20130515 '\t\t\t\t\tmanager: this.manager\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t\t// Patch css-style for validation body like ExtJS\r\n'
20130515 "\t\t\t\tExt.get(ed.getContentAreaContainer()).addClass('patch-content-body');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t// Event of focused body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("focus", this.onFocus, this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Event of blur body\r\n'
20130515 '\t\t\t\tExt.Element.fly(s.content_editable ? ed.getBody() : ed.getWin())\r\n'
20130515 '\t\t\t\t\t.on("blur", this.onBlur, this,\r\n'
20130515 '\t\t\t\t\t\tthis.inEditor && Ext.isWindows && Ext.isGecko ? { buffer: 10} : null\r\n'
20130515 '\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Set event handler on editor init.\r\n'
20130515 '\t\t\t//this.ed.onInit.add(function() {\r\n'
20130515 '\t\t\t//} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Wire "change" event\r\n'
20130515 '\t\t\tthis.ed.onChange.add(function(ed, l) {\r\n'
20130515 '\t\t\t\tthis.fireEvent("change", ed, l);\r\n'
20130515 '\t\t\t} .createDelegate(this));\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Render the editor\r\n'
20130515 '\t\t\tthis.ed.render();\r\n'
20130515 '\t\t\ttinyMCE.add(this.ed);\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Fix editor size when control will be visible\r\n'
20130515 '\t\t\t(function fixEditorSize() {\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t\t// If element is not visible yet, wait.\r\n'
20130515 '\t\t\t\tif( !this.isVisible() ) {\r\n'
20130515 '\t\t\t\t\targuments.callee.defer( 50, this );\r\n'
20130515 '\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t\tvar size = this.getSize();\r\n'
20130515 '\t\t\t\tthis.withEd( function() {\r\n'
20130515 '\t\t\t\t\tthis._setEditorSize( size.width, size.height );\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t\t// Indicate that editor is created\r\n'
20130515 '\t\t\t\t\tthis.fireEvent("editorcreated");\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t\t}).call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetResizeEl: function() {\r\n'
20130515 '\t\t\treturn this.wrapEl;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t* Returns the name attribute of the field if available\r\n'
20130515 '\t\t* @return {String} name The field name\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetName: function() {\r\n'
20130515 '\t\t\treturn this.rendered && this.textareaEl.dom.name\r\n'
20130515 "\t\t\t\t? this.textareaEl.dom.name : (this.name || '');\r\n"
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif (!this.rendered)\r\n'
20130515 '\t\t\t\tExt.ux.TinyMCE.superclass.initValue.call(this);\r\n'
20130515 '\t\t\telse {\r\n'
20130515 '\t\t\t\tif (this.value !== undefined) {\r\n'
20130515 '\t\t\t\t\tthis.setValue(this.value);\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t\telse {\r\n'
20130515 '\t\t\t\t\tvar v = this.textareaEl.value; \r\n'
20130515 '\t\t\t\t\tif ( v )\r\n'
20130515 '\t\t\t\t\t\tthis.setValue( v );\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tbeforeDestroy: function() {\r\n'
20130515 '\t\t\tif( this.ed ) tinyMCE.remove( this.ed );\r\n'
20130515 '\t\t\tif( this.wrapEl ) Ext.destroy( this.wrapEl );\r\n'
20130515 '\t\t\tExt.ux.TinyMCE.superclass.beforeDestroy.call( this );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetRawValue : function(){\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '\t\t\tif(v === this.emptyText){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetValue: function() {\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( !this.rendered || !this.ed.initialized )\r\n'
20130515 "\t\t\t\treturn Ext.value( this.value, '' );\r\n"
20130515 '\r\n'
20130515 '\t\t\tvar v = this.ed.getContent();\r\n'
20130515 '      //~ console.log(v);\r\n'
20130515 '\t\t\tif( v === this.emptyText || v === undefined ){\r\n'
20130515 "\t\t\t\tv = '';\r\n"
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn v;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetRawValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setRawValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsetValue: function(v) {\r\n'
20130515 "      //~ console.log('TinyMCE.setValue',v);\r\n"
20130515 '\t\t\tthis.value = v;\r\n'
20130515 '\t\t\tif (this.rendered)\r\n'
20130515 '\t\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\t\tthis.ed.undoManager.clear();\r\n'
20130515 "\t\t\t\t\tthis.ed.setContent(v === null || v === undefined ? '' : v);\r\n"
20130515 "\t\t\t\t\tthis.ed.startContent = this.ed.getContent({ format: 'raw' });\r\n"
20130515 '\t\t\t\t\tthis.validate();\r\n'
20130515 '\t\t\t\t\t//this.ed.resizeToContent();\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tisDirty: function() {\r\n'
20130515 '\t\t\tif (this.disabled || !this.rendered) {\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn this.ed && this.ed.initialized && this.ed.isDirty();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tsyncValue: function() {\r\n'
20130515 '\t\t\tif (this.rendered && this.ed.initialized)\r\n'
20130515 '\t\t\t\tthis.ed.save();\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tgetEd: function() {\r\n'
20130515 '\t\t\treturn this.ed;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tdisable: function() {\r\n'
20130515 '      this.disabled = true;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = true;\r\n'
20130515 '        //~ this.ed.setupContentEditable(false);\r\n'
20130515 '        //~ this.ed.controlManager.setDisabled(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = true;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceContentBody')) {\r\n"
20130515 "          //~ console.log('Ext.ux.TinyMCE.disable() 3') \r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceContentBody');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceNonEditable');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.readonly = true;\r\n'
20130515 '\t\t\t\t\t//~ bodyEl.setAttribute("disabled", "disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tenable: function() {\r\n'
20130515 '      this.disabled = false;\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '        //~ this.ed.settings.readonly = false;\r\n'
20130515 '        //~ this.ed.setupContentEditable(true);\r\n'
20130515 '\t\t\t\tvar bodyEl = this.ed.getBody();\r\n'
20130515 '\t\t\t\tbodyEl = Ext.get(bodyEl);\r\n'
20130515 '\r\n'
20130515 '  \t\t\t//~ bodyEl.dom.readOnly = false;\r\n'
20130515 "\t\t\t\tif (bodyEl.hasClass('mceNonEditable')) {\r\n"
20130515 "\t\t\t\t\tbodyEl.removeClass('mceNonEditable');\r\n"
20130515 "\t\t\t\t\tbodyEl.addClass('mceContentBody');\r\n"
20130515 '\t\t\t\t\t//~ bodyEl.removeAttribute("disabled");\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tonResize: function(aw, ah) {\r\n'
20130515 '\t\t\tif( Ext.type( aw ) != "number" ){\r\n'
20130515 '\t\t\t\taw = this.getWidth();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif( Ext.type(ah) != "number" ){\r\n'
20130515 '\t\t\t\tah = this.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif (aw == 0 || ah == 0)\r\n'
20130515 '\t\t\t\treturn;\r\n'
20130515 '\r\n'
20130515 '\t\t\tif( this.rendered && this.isVisible() ) {\r\n'
20130515 '\t\t\t\tthis.withEd(function() { this._setEditorSize( aw, ah ); });\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tSets control size to the given width and height\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\t_setEditorSize: function( width, height ) {\r\n'
20130515 '\t\t  //~ console.log("_setEditorSize",arguments);\r\n'
20130515 '\t\t\t// We currently support only advanced theme resize\r\n'
20130515 '\t\t\tif( !this.ed.theme.AdvancedTheme ) {\r\n'
20130515 '          //~ console.log("We currently support only advanced theme resize, but this.ed.theme is",this.ed.theme);\r\n'
20130515 '          return;\r\n'
20130515 '      }\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t\t// Minimal width and height for advanced theme\r\n'
20130515 '\t\t\tif( width < 100 ) width = 100;\r\n'
20130515 '\t\t\tif( height < 129 ) height = 129;\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\t// Set toolbar div width\r\n'
20130515 '\t\t\tvar edTable = Ext.get(this.ed.id + "_tbl"), \r\n'
20130515 '\t\t\t\tedIframe = Ext.get(this.ed.id + "_ifr"),\r\n'
20130515 '\t\t\t\tedToolbar = Ext.get(this.ed.id + "_xtbar");\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarWidth = width;\r\n'
20130515 '\t\t\tif( edTable ) \r\n'
20130515 '\t\t\t\ttoolbarWidth = width - edTable.getFrameWidth( "lr" );\t\t\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar toolbarHeight = 0;\r\n'
20130515 '\t\t\tif( edToolbar ) {\r\n'
20130515 '\t\t\t\ttoolbarHeight = edToolbar.getHeight();\r\n'
20130515 '\t\t\t\tvar toolbarTd = edToolbar.findParent( "td", 5, true );\r\n'
20130515 '\t\t\t\ttoolbarHeight += toolbarTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\tedToolbar.setWidth( toolbarWidth );\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar edStatusbarTd = edTable.child( ".mceStatusbar" );\r\n'
20130515 '\t\t\tvar statusbarHeight = 0;\r\n'
20130515 '\t\t\tif( edStatusbarTd ) {\r\n'
20130515 '\t\t\t\tstatusbarHeight += edStatusbarTd.getHeight();\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\t\r\n'
20130515 '\t\t\tvar iframeHeight = height - toolbarHeight - statusbarHeight;\r\n'
20130515 '\t\t\tvar iframeTd = edIframe.findParent( "td", 5, true );\r\n'
20130515 '\t\t\tif( iframeTd )\r\n'
20130515 '\t\t\t\tiframeHeight -= iframeTd.getFrameWidth( "tb" );\r\n'
20130515 '\t\t\t\t\r\n'
20130515 '\t\t\t// Resize iframe and container\r\n'
20130515 '\t\t\tedTable.setSize( width, height );\r\n'
20130515 '\t\t\tedIframe.setSize( toolbarWidth, iframeHeight );\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tfocus: function(selectText, delay) {\r\n'
20130515 '\t\t\tif (delay) {\r\n'
20130515 "\t\t\t\tthis.focus.defer(typeof delay == 'number' ? delay : 10, this, [selectText, false]);\r\n"
20130515 '\t\t\t\treturn;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\tthis.withEd(function() {\r\n'
20130515 '\t\t\t\tthis.ed.focus();\r\n'
20130515 '\t\t\t\t/*if (selectText === true) {\r\n'
20130515 "\t\t\t\t// TODO: Select editor's content\r\n"
20130515 '\t\t\t\t}*/\r\n'
20130515 '\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\treturn this;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tprocessValue : function( value ){\r\n'
20130515 '\t\t\treturn Ext.util.Format.stripTags( value );\r\n'
20130515 '\t\t},\r\n'
20130515 '\t\t\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tvalidateValue: function( value ) {\r\n'
20130515 '\t\t\tif(Ext.isFunction(this.validator)){\r\n'
20130515 '\t\t\t\tvar msg = this.validator(value);\r\n'
20130515 '\t\t\t\tif(msg !== true){\r\n'
20130515 '\t\t\t\t\tthis.markInvalid(msg);\r\n'
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 "\t\t\tif(value.length < 1 || value === this.emptyText){ // if it's blank\r\n"
20130515 '\t\t\t\t if(this.allowBlank){\r\n'
20130515 '\t\t\t\t\t this.clearInvalid();\r\n'
20130515 '\t\t\t\t\t return true;\r\n'
20130515 '\t\t\t\t }else{\r\n'
20130515 '\t\t\t\t\t this.markInvalid(this.blankText);\r\n'
20130515 '\t\t\t\t\t return false;\r\n'
20130515 '\t\t\t\t }\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length < this.minLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.minLengthText, this.minLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(value.length > this.maxLength){\r\n'
20130515 '\t\t\t\tthis.markInvalid(String.format(this.maxLengthText, this.maxLength));\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\t\r\n'
20130515 '\t\t\tif(this.vtype){\r\n'
20130515 '\t\t\t\tvar vt = Ext.form.VTypes;\r\n'
20130515 '\t\t\t\tif(!vt[this.vtype](value, this)){\r\n'
20130515 "\t\t\t\t\tthis.markInvalid(this.vtypeText || vt[this.vtype +'Text']);\r\n"
20130515 '\t\t\t\t\treturn false;\r\n'
20130515 '\t\t\t\t}\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\tif(this.regex && !this.regex.test(value)){\r\n'
20130515 '\t\t\t\tthis.markInvalid(this.regexText);\r\n'
20130515 '\t\t\t\treturn false;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t\treturn true;\r\n'
20130515 '\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\tIf ed (local editor instance) is already initilized, calls\r\n'
20130515 '\t\tspecified function directly. Otherwise - adds it to ed.onInit event.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\twithEd: function(func) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t// If editor is not created yet, reschedule this call.\r\n'
20130515 '\t\t\tif (!this.ed) this.on(\r\n'
20130515 '\t\t\t\t"editorcreated",\r\n'
20130515 '\t\t\t\tfunction() { this.withEd(func); },\r\n'
20130515 '\t\t\t\tthis);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created and initialized\r\n'
20130515 '\t\t\telse if (this.ed.initialized) func.call(this);\r\n'
20130515 '\r\n'
20130515 '\t\t\t// Else if editor is created but not initialized yet.\r\n'
20130515 '\t\t\telse this.ed.onInit.add(function() { func.defer(10, this); } .createDelegate(this));\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\t// Add static members\r\n'
20130515 '\tExt.apply(Ext.ux.TinyMCE, {\r\n'
20130515 '\r\n'
20130515 '\t\t/**\r\n'
20130515 '\t\tStatic field with all the plugins that should be loaded by TinyMCE.\r\n'
20130515 '\t\tShould be set before first component would be created.\r\n'
20130515 '\t\t@static\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\ttinymcePlugins: "pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template",\r\n'
20130515 '\r\n'
20130515 '\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\tInits TinyMCE and other necessary dependencies.\r\n'
20130515 '\t\t*/\r\n'
20130515 '\t\tinitTinyMCE: function(settings) {\r\n'
20130515 '\t\t\tif (!tmceInitialized) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Create lazy classes\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tWindowManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tWindowManager = Ext.extend( tinymce.WindowManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t\tConfig parameters:\r\n'
20130515 '\t\t\t\t\t\teditor - reference to TinyMCE intstance.\r\n'
20130515 '\t\t\t\t\t\tmangager - WindowGroup to use for the popup window. Could be empty.\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function( cfg ) {\r\n'
20130515 '\t\t\t\t\t\tWindowManager.superclass.constructor.call(this, cfg.editor);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Set window group\r\n'
20130515 '\t\t\t\t\t\tthis.manager = cfg.manager;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\talert: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.alert("", txt, function() {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this);\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconfirm: function(txt, cb, s) {\r\n'
20130515 '\t\t\t\t\t\tExt.MessageBox.confirm("", txt, function(btn) {\r\n'
20130515 '\t\t\t\t\t\t\tif (!Ext.isEmpty(cb)) {\r\n'
20130515 '\t\t\t\t\t\t\t\tcb.call(this, btn == "yes");\r\n'
20130515 '\t\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\t}, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\topen: function(s, p) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts = s || {};\r\n'
20130515 '\t\t\t\t\t\tp = p || {};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tif (!s.type)\r\n'
20130515 "\t\t\t\t\t\t\tthis.bookmark = this.editor.selection.getBookmark('simple');\r\n"
20130515 '\r\n'
20130515 '\t\t\t\t\t\ts.width = parseInt(s.width || 320);\r\n'
20130515 '\t\t\t\t\t\ts.height = parseInt(s.height || 240) + (tinymce.isIE ? 8 : 0);\r\n'
20130515 '\t\t\t\t\t\ts.min_width = parseInt(s.min_width || 150);\r\n'
20130515 '\t\t\t\t\t\ts.min_height = parseInt(s.min_height || 100);\r\n'
20130515 '\t\t\t\t\t\ts.max_width = parseInt(s.max_width || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.max_height = parseInt(s.max_height || 2000);\r\n'
20130515 '\t\t\t\t\t\ts.movable = true;\r\n'
20130515 '\t\t\t\t\t\ts.resizable = true;\r\n'
20130515 '\t\t\t\t\t\tp.mce_width = s.width;\r\n'
20130515 '\t\t\t\t\t\tp.mce_height = s.height;\r\n'
20130515 '\t\t\t\t\t\tp.mce_inline = true;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tthis.features = s;\r\n'
20130515 '\t\t\t\t\t\tthis.params = p;\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar win = new Ext.Window(\r\n'
20130515 '\t\t\t\t\t\t{\r\n'
20130515 '\t\t\t\t\t\t\ttitle: s.name,\r\n'
20130515 '\t\t\t\t\t\t\twidth: s.width,\r\n'
20130515 '\t\t\t\t\t\t\theight: s.height,\r\n'
20130515 '\t\t\t\t\t\t\tminWidth: s.min_width,\r\n'
20130515 '\t\t\t\t\t\t\tminHeight: s.min_height,\r\n'
20130515 '\t\t\t\t\t\t\tresizable: true,\r\n'
20130515 '\t\t\t\t\t\t\tmaximizable: s.maximizable,\r\n'
20130515 '\t\t\t\t\t\t\tminimizable: s.minimizable,\r\n'
20130515 '\t\t\t\t\t\t\tmodal: true,\r\n'
20130515 '\t\t\t\t\t\t\tstateful: false,\r\n'
20130515 '\t\t\t\t\t\t\tconstrain: true,\r\n'
20130515 '\t\t\t\t\t\t\tmanager: this.manager,\r\n'
20130515 '\t\t\t\t\t\t\tlayout: "fit",\r\n'
20130515 '\t\t\t\t\t\t\titems: [\r\n'
20130515 '\t\t\t\t\t\t\t\tnew Ext.BoxComponent({\r\n'
20130515 '\t\t\t\t\t\t\t\t\tautoEl: {\r\n'
20130515 "\t\t\t\t\t\t\t\t\t\ttag: 'iframe',\r\n"
20130515 '\t\t\t\t\t\t\t\t\t\tsrc: s.url || s.file\r\n'
20130515 '\t\t\t\t\t\t\t\t\t},\r\n'
20130515 "\t\t\t\t\t\t\t\t\tstyle : 'border-width: 0px;'\r\n"
20130515 '\t\t\t\t\t\t\t\t})\r\n'
20130515 '\t\t\t\t\t\t\t]\r\n'
20130515 '\t\t\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tp.mce_window_id = win.getId();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\twin.show(null,\r\n'
20130515 '\t\t\t\t\t\t\tfunction() {\r\n'
20130515 '\t\t\t\t\t\t\t\tif (s.left && s.top)\r\n'
20130515 '\t\t\t\t\t\t\t\t\twin.setPagePosition(s.left, s.top);\r\n'
20130515 '\t\t\t\t\t\t\t\tvar pos = win.getPosition();\r\n'
20130515 '\t\t\t\t\t\t\t\ts.left = pos[0];\r\n'
20130515 '\t\t\t\t\t\t\t\ts.top = pos[1];\r\n'
20130515 '\t\t\t\t\t\t\t\tthis.onOpen.dispatch(this, s, p);\r\n'
20130515 '\t\t\t\t\t\t\t},\r\n'
20130515 '\t\t\t\t\t\t\tthis\r\n'
20130515 '\t\t\t\t\t\t);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn win;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tclose: function(win) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.close.call(this, win);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tthis.onClose.dispatch(this);\r\n'
20130515 '\t\t\t\t\t\t\tw.close();\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tsetTitle: function(win, ti) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Probably not inline\r\n'
20130515 '\t\t\t\t\t\tif (!win.tinyMCEPopup || !win.tinyMCEPopup.id) {\r\n'
20130515 '\t\t\t\t\t\t\tWindowManager.superclass.setTitle.call(this, win, ti);\r\n'
20130515 '\t\t\t\t\t\t\treturn;\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(win.tinyMCEPopup.id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setTitle(ti);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tresizeBy: function(dw, dh, id) {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) {\r\n'
20130515 '\t\t\t\t\t\t\tvar size = w.getSize();\r\n'
20130515 '\t\t\t\t\t\t\tw.setSize(size.width + dw, size.height + dh);\r\n'
20130515 '\t\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tfocus: function(id) {\r\n'
20130515 '\t\t\t\t\t\tvar w = Ext.getCmp(id);\r\n'
20130515 '\t\t\t\t\t\tif (w) w.setActive(true);\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t\t\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\tControlManager\r\n'
20130515 '\t\t\t\t*/\r\n'
20130515 '\t\t\t\tControlManager = Ext.extend( tinymce.ControlManager, {\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t// Reference to ExtJS control Ext.ux.TinyMCE.\r\n'
20130515 '\t\t\t\t\tcontrol: null,\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tconstructor: function(control, ed, s) {\r\n'
20130515 '\t\t\t\t\t\tthis.control = control;\r\n'
20130515 '\t\t\t\t\t\tControlManager.superclass.constructor.call(this, ed, s);\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateDropMenu: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createDropMenu.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(\'menu_\' + this.id).setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t},\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t/** ----------------------------------------------------------\r\n'
20130515 '\t\t\t\t\t*/\r\n'
20130515 '\t\t\t\t\tcreateColorSplitButton: function(id, s) {\r\n'
20130515 '\t\t\t\t\t\t// Call base method\r\n'
20130515 '\t\t\t\t\t\tvar res = ControlManager.superclass.createColorSplitButton.call(this, id, s);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\t// Modify returned result\r\n'
20130515 '\t\t\t\t\t\tvar orig = res.showMenu;\r\n'
20130515 '\t\t\t\t\t\tres.showMenu = function(x, y, px) {\r\n'
20130515 '\t\t\t\t\t\t\torig.call(this, x, y, px);\r\n'
20130515 '\t\t\t\t\t\t\tExt.fly(this.id + \'_menu\').setStyle("z-index", 200001);\r\n'
20130515 '\t\t\t\t\t\t};\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t\t\treturn res;\r\n'
20130515 '\t\t\t\t\t}\r\n'
20130515 '\t\t\t\t});\r\n'
20130515 '\r\n'
20130515 '\t\t\t\t// Init TinyMCE\r\n'
20130515 '\t\t\t\tvar s = {\r\n'
20130515 '\t\t\t\t\tmode: "none",\r\n'
20130515 '\t\t\t\t\tplugins: Ext.ux.TinyMCE.tinymcePlugins,\r\n'
20130515 '\t\t\t\t\ttheme: "advanced"\r\n'
20130515 '\t\t\t\t};\r\n'
20130515 '\t\t\t\tExt.apply(s, settings);\r\n'
20130515 '\r\n'
20130515 '\t\t\t\tif (!tinymce.dom.Event.domLoaded)\r\n'
20130515 '\t\t\t\t\ttinymce.dom.Event._pageInit();\r\n'
20130515 '\r\n'
20130515 '\t\t\t\ttinyMCE.init(s);\r\n'
20130515 '\t\t\t\ttmceInitialized = true;\r\n'
20130515 '\t\t\t}\r\n'
20130515 '\t\t}\r\n'
20130515 '\t});\r\n'
20130515 '\r\n'
20130515 '\tExt.ComponentMgr.registerType("tinymce", Ext.ux.TinyMCE);\r\n'
20130515 '\r\n'
20130515 '})();'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:46 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Sat, 16 Mar 2013 15:55:48 GMT\r\nContent-Length: 21047\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '// vim: ts=4:sw=4:nu:fdc=4:nospell\r\n'
20130515 '/*global Ext */\r\n'
20130515 '/**\r\n'
20130515 ' * @class Ext.ux.form.DateTime\r\n'
20130515 ' * @extends Ext.form.Field\r\n'
20130515 ' *\r\n'
20130515 ' * DateTime field, combination of DateField and TimeField\r\n'
20130515 ' *\r\n'
20130515 ' * @author      Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @copyright (c) 2008, Ing. Jozef Sak\xc3\xa1lo\xc5\xa1\r\n'
20130515 ' * @version   2.0\r\n'
20130515 ' * @revision  $Id: Ext.ux.form.DateTime.js 813 2010-01-29 23:32:36Z jozo $\r\n'
20130515 ' *\r\n'
20130515 ' * @license Ext.ux.form.DateTime is licensed under the terms of\r\n'
20130515 ' * the Open Source LGPL 3.0 license.  Commercial use is permitted to the extent\r\n'
20130515 ' * that the code/component(s) do NOT become part of another Open Source or Commercially\r\n'
20130515 ' * licensed development library or toolkit without explicit permission.\r\n'
20130515 ' * \r\n'
20130515 ' * <p>License details: <a href="http://www.gnu.org/licenses/lgpl.html"\r\n'
20130515 ' * target="_blank">http://www.gnu.org/licenses/lgpl.html</a></p>\r\n'
20130515 ' *\r\n'
20130515 ' * @forum      22661\r\n'
20130515 ' *\r\n'
20130515 ' * @donate\r\n'
20130515 ' * <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">\r\n'
20130515 ' * <input type="hidden" name="cmd" value="_s-xclick">\r\n'
20130515 ' * <input type="hidden" name="hosted_button_id" value="3430419">\r\n'
20130515 ' * <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" \r\n'
20130515 ' * border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">\r\n'
20130515 ' * <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">\r\n'
20130515 ' * </form>\r\n'
20130515 ' */\r\n'
20130515 '\r\n'
20130515 "Ext.ns('Ext.ux.form');\r\n"
20130515 '\r\n'
20130515 '/**\r\n'
20130515 ' * Creates new DateTime\r\n'
20130515 ' * @constructor\r\n'
20130515 ' * @param {Object} config A config object\r\n'
20130515 ' */\r\n'
20130515 'Ext.ux.form.DateTime = Ext.extend(Ext.form.Field, {\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} dateValidator A custom validation function to be called during date field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '     dateValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {String/Object} defaultAutoCreate DomHelper element spec\r\n'
20130515 '     * Let superclass to create hidden field instead of textbox. Hidden will be submittend to server\r\n'
20130515 '     */\r\n'
20130515 "    ,defaultAutoCreate:{tag:'input', type:'hidden'}\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dtSeparator Date - Time separator. Used to split date and time (defaults to ' ' (space))\r\n"
20130515 '     */\r\n'
20130515 "    ,dtSeparator:' '\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {String} hiddenFormat Format of datetime used to store value in hidden field\r\n'
20130515 "     * and submitted to server (defaults to 'Y-m-d H:i:s' that is mysql format)\r\n"
20130515 '     */\r\n'
20130515 "    ,hiddenFormat:'Y-m-d H:i:s'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} otherToNow Set other field to now() if not explicly filled in (defaults to true)\r\n'
20130515 '     */\r\n'
20130515 '    ,otherToNow:true\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Boolean} emptyToNow Set field value to now on attempt to set empty value.\r\n'
20130515 '     * If it is true then setValue() sets value of field to current date and time (defaults to false)\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timePosition Where the time field should be rendered. 'right' is suitable for forms\r\n"
20130515 "     * and 'below' is suitable if the field is used as the grid editor (defaults to 'right')\r\n"
20130515 '     */\r\n'
20130515 "    ,timePosition:'right' // valid values:'below', 'right'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Function} timeValidator A custom validation function to be called during time field\r\n'
20130515 '     * validation (defaults to null)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeValidator:null\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Number} timeWidth Width of time field in pixels (defaults to 100)\r\n'
20130515 '     */\r\n'
20130515 '    ,timeWidth:100\r\n'
20130515 '    /**\r\n'
20130515 "     * @cfg {String} dateFormat Format of DateField. Can be localized. (defaults to 'm/y/d')\r\n"
20130515 '     */\r\n'
20130515 "    ,dateFormat:'m/d/y'\r\n"
20130515 '    /**\r\n'
20130515 "     * @cfg {String} timeFormat Format of TimeField. Can be localized. (defaults to 'g:i A')\r\n"
20130515 '     */\r\n'
20130515 "    ,timeFormat:'g:i A'\r\n"
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} dateConfig Config for DateField constructor.\r\n'
20130515 '     */\r\n'
20130515 '    /**\r\n'
20130515 '     * @cfg {Object} timeConfig Config for TimeField constructor.\r\n'
20130515 '     */\r\n'
20130515 '\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * creates DateField and TimeField and installs the necessary event handlers\r\n'
20130515 '     */\r\n'
20130515 '    ,initComponent:function() {\r\n'
20130515 '        // call parent initComponent\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.initComponent.call(this);\r\n'
20130515 '\r\n'
20130515 '        // create DateField\r\n'
20130515 '        var dateConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-date'\r\n"
20130515 '            ,format:this.dateFormat || Ext.form.DateField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.dateValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.dateConfig);\r\n'
20130515 '        this.df = new Ext.form.DateField(dateConfig);\r\n'
20130515 '        this.df.ownerCt = this;\r\n'
20130515 '        delete(this.dateFormat);\r\n'
20130515 '\r\n'
20130515 '        // create TimeField\r\n'
20130515 '        var timeConfig = Ext.apply({}, {\r\n'
20130515 "             id:this.id + '-time'\r\n"
20130515 '            ,format:this.timeFormat || Ext.form.TimeField.prototype.format\r\n'
20130515 '            ,width:this.timeWidth\r\n'
20130515 '            ,selectOnFocus:this.selectOnFocus\r\n'
20130515 '            ,validator:this.timeValidator\r\n'
20130515 '            ,listeners:{\r\n'
20130515 '                  blur:{scope:this, fn:this.onBlur}\r\n'
20130515 '                 ,focus:{scope:this, fn:this.onFocus}\r\n'
20130515 '            }\r\n'
20130515 '        }, this.timeConfig);\r\n'
20130515 '        this.tf = new Ext.form.TimeField(timeConfig);\r\n'
20130515 '        this.tf.ownerCt = this;\r\n'
20130515 '        delete(this.timeFormat);\r\n'
20130515 '\r\n'
20130515 '        // relay events\r\n'
20130515 "        this.relayEvents(this.df, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 "        this.relayEvents(this.tf, ['focus', 'specialkey', 'invalid', 'valid']);\r\n"
20130515 '\r\n'
20130515 "        this.on('specialkey', this.onSpecialKey, this);\r\n"
20130515 '\r\n'
20130515 '    } // eo function initComponent\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Renders underlying DateField and TimeField and provides a workaround for side error icon bug\r\n'
20130515 '     */\r\n'
20130515 '    ,onRender:function(ct, position) {\r\n'
20130515 "        // don't run more than once\r\n"
20130515 '        if(this.isRendered) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // render underlying hidden field\r\n'
20130515 '        Ext.ux.form.DateTime.superclass.onRender.call(this, ct, position);\r\n'
20130515 '\r\n'
20130515 '        // render DateField and TimeField\r\n'
20130515 '        // create bounding table\r\n'
20130515 '        var t;\r\n'
20130515 "        if('below' === this.timePosition || 'bellow' === this.timePosition) {\r\n"
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                 {tag:'tr',children:[{tag:'td', style:'padding-bottom:1px', cls:'ux-datetime-date'}]}\r\n"
20130515 "                ,{tag:'tr',children:[{tag:'td', cls:'ux-datetime-time'}]}\r\n"
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            t = Ext.DomHelper.append(ct, {tag:'table',style:'border-collapse:collapse',children:[\r\n"
20130515 "                {tag:'tr',children:[\r\n"
20130515 "                    {tag:'td',style:'padding-right:4px', cls:'ux-datetime-date'},{tag:'td', cls:'ux-datetime-time'}\r\n"
20130515 '                ]}\r\n'
20130515 '            ]}, true);\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        this.tableEl = t;\r\n'
20130515 "        this.wrap = t.wrap({cls:'x-form-field-wrap'});\r\n"
20130515 '//        this.wrap = t.wrap();\r\n'
20130515 '        this.wrap.on("mousedown", this.onMouseDown, this, {delay:10});\r\n'
20130515 '\r\n'
20130515 '        // render DateField & TimeField\r\n'
20130515 "        this.df.render(t.child('td.ux-datetime-date'));\r\n"
20130515 "        this.tf.render(t.child('td.ux-datetime-time'));\r\n"
20130515 '\r\n'
20130515 '        // workaround for IE trigger misalignment bug\r\n'
20130515 '        // see http://extjs.com/forum/showthread.php?p=341075#post341075\r\n'
20130515 '//        if(Ext.isIE && Ext.isStrict) {\r\n'
20130515 "//            t.select('input').applyStyles({top:0});\r\n"
20130515 '//        }\r\n'
20130515 '\r\n'
20130515 "        this.df.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 "        this.tf.el.swallowEvent(['keydown', 'keypress']);\r\n"
20130515 '\r\n'
20130515 '        // create icon for side invalid errorIcon\r\n'
20130515 "        if('side' === this.msgTarget) {\r\n"
20130515 "            var elp = this.el.findParent('.x-form-element', 10, true);\r\n"
20130515 '            if(elp) {\r\n'
20130515 "                this.errorIcon = elp.createChild({cls:'x-form-invalid-icon'});\r\n"
20130515 '            }\r\n'
20130515 '\r\n'
20130515 '            var o = {\r\n'
20130515 '                 errorIcon:this.errorIcon\r\n'
20130515 "                ,msgTarget:'side'\r\n"
20130515 '                ,alignErrorIcon:this.alignErrorIcon.createDelegate(this)\r\n'
20130515 '            };\r\n'
20130515 '            Ext.apply(this.df, o);\r\n'
20130515 '            Ext.apply(this.tf, o);\r\n'
20130515 '//            this.df.errorIcon = this.errorIcon;\r\n'
20130515 '//            this.tf.errorIcon = this.errorIcon;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // setup name for submit\r\n'
20130515 '        this.el.dom.name = this.hiddenName || this.name || this.id;\r\n'
20130515 '\r\n'
20130515 '        // prevent helper fields from being submitted\r\n'
20130515 '        this.df.el.dom.removeAttribute("name");\r\n'
20130515 '        this.tf.el.dom.removeAttribute("name");\r\n'
20130515 '\r\n'
20130515 "        // we're rendered flag\r\n"
20130515 '        this.isRendered = true;\r\n'
20130515 '\r\n'
20130515 '        // update hidden field\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '    } // eo function onRender\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,adjustSize:Ext.BoxComponent.prototype.adjustSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,alignErrorIcon:function() {\r\n'
20130515 "        this.errorIcon.alignTo(this.tableEl, 'tl-tr', [2, 0]);\r\n"
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private initializes internal dateValue\r\n'
20130515 '     */\r\n'
20130515 '    ,initDateValue:function() {\r\n'
20130515 '        this.dateValue = this.otherToNow ? new Date() : new Date(1970, 0, 1, 0, 0, 0);\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls clearInvalid on the DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,clearInvalid:function(){\r\n'
20130515 '        this.df.clearInvalid();\r\n'
20130515 '        this.tf.clearInvalid();\r\n'
20130515 '    } // eo function clearInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Calls markInvalid on both DateField and TimeField\r\n'
20130515 '     * @param {String} msg Invalid message to display\r\n'
20130515 '     */\r\n'
20130515 '    ,markInvalid:function(msg){\r\n'
20130515 '        this.df.markInvalid(msg);\r\n'
20130515 '        this.tf.markInvalid(msg);\r\n'
20130515 '    } // eo function markInvalid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * called from Component::destroy. \r\n'
20130515 "     * Destroys all elements and removes all listeners we've created.\r\n"
20130515 '     */\r\n'
20130515 '    ,beforeDestroy:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '//            this.removeAllListeners();\r\n'
20130515 '            this.wrap.removeAllListeners();\r\n'
20130515 '            this.wrap.remove();\r\n'
20130515 '            this.tableEl.remove();\r\n'
20130515 '            this.df.destroy();\r\n'
20130515 '            this.tf.destroy();\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function beforeDestroy\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Disable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,disable:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 '            this.df.disabled = this.disabled;\r\n'
20130515 '            this.df.onDisable();\r\n'
20130515 '            this.tf.onDisable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = true;\r\n'
20130515 '        this.df.disabled = true;\r\n'
20130515 '        this.tf.disabled = true;\r\n'
20130515 '        this.fireEvent("disable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function disable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Enable this component.\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,enable:function() {\r\n'
20130515 '        if(this.rendered){\r\n'
20130515 '            this.df.onEnable();\r\n'
20130515 '            this.tf.onEnable();\r\n'
20130515 '        }\r\n'
20130515 '        this.disabled = false;\r\n'
20130515 '        this.df.disabled = false;\r\n'
20130515 '        this.tf.disabled = false;\r\n'
20130515 '        this.fireEvent("enable", this);\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function enable\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Focus date filed\r\n'
20130515 '     */\r\n'
20130515 '    ,focus:function() {\r\n'
20130515 '        this.df.focus();\r\n'
20130515 '    } // eo function focus\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getPositionEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     */\r\n'
20130515 '    ,getResizeEl:function() {\r\n'
20130515 '        return this.wrap;\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Date/String} Returns value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,getValue:function() {\r\n'
20130515 '        // create new instance of date\r\n'
20130515 "        return this.dateValue ? new Date(this.dateValue) : '';\r\n"
20130515 '    } // eo function getValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * @private Calls isValid methods of underlying DateField and TimeField and returns the result\r\n'
20130515 '     */\r\n'
20130515 '    ,isValid:function() {\r\n'
20130515 '        return this.df.isValid() && this.tf.isValid();\r\n'
20130515 '    } // eo function isValid\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns true if this component is visible\r\n'
20130515 '     * @return {boolean} \r\n'
20130515 '     */\r\n'
20130515 '    ,isVisible : function(){\r\n'
20130515 '        return this.df.rendered && this.df.getActionEl().isVisible();\r\n'
20130515 '    } // eo function isVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Handles blur event\r\n'
20130515 '     */\r\n'
20130515 '    ,onBlur:function(f) {\r\n'
20130515 '        // called by both DateField and TimeField blur events\r\n'
20130515 '\r\n'
20130515 '        // revert focus to previous field if clicked in between\r\n'
20130515 '        if(this.wrapClick) {\r\n'
20130515 '            f.focus();\r\n'
20130515 '            this.wrapClick = false;\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '        // update underlying value\r\n'
20130515 '        if(f === this.df) {\r\n'
20130515 '            this.updateDate();\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.updateTime();\r\n'
20130515 '        }\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        this.validate();\r\n'
20130515 '\r\n'
20130515 '        // fire events later\r\n'
20130515 '        (function() {\r\n'
20130515 '            if(!this.df.hasFocus && !this.tf.hasFocus) {\r\n'
20130515 '                var v = this.getValue();\r\n'
20130515 '                if(String(v) !== String(this.startValue)) {\r\n'
20130515 '                    this.fireEvent("change", this, v, this.startValue);\r\n'
20130515 '                }\r\n'
20130515 '                this.hasFocus = false;\r\n'
20130515 "                this.fireEvent('blur', this);\r\n"
20130515 '            }\r\n'
20130515 '        }).defer(100, this);\r\n'
20130515 '\r\n'
20130515 '    } // eo function onBlur\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Handles focus event\r\n'
20130515 '     */\r\n'
20130515 '    ,onFocus:function() {\r\n'
20130515 '        if(!this.hasFocus){\r\n'
20130515 '            this.hasFocus = true;\r\n'
20130515 '            this.startValue = this.getValue();\r\n'
20130515 '            this.fireEvent("focus", this);\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Just to prevent blur event when clicked in the middle of fields\r\n'
20130515 '     */\r\n'
20130515 '    ,onMouseDown:function(e) {\r\n'
20130515 '        if(!this.disabled) {\r\n'
20130515 "            this.wrapClick = 'td' === e.target.nodeName.toLowerCase();\r\n"
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Handles Tab and Shift-Tab events\r\n'
20130515 '     */\r\n'
20130515 '    ,onSpecialKey:function(t, e) {\r\n'
20130515 '        var key = e.getKey();\r\n'
20130515 '        if(key === e.TAB) {\r\n'
20130515 '            if(t === this.df && !e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.tf.focus();\r\n'
20130515 '            }\r\n'
20130515 '            if(t === this.tf && e.shiftKey) {\r\n'
20130515 '                e.stopEvent();\r\n'
20130515 '                this.df.focus();\r\n'
20130515 '            }\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '        // otherwise it misbehaves in editor grid\r\n'
20130515 '        if(key === e.ENTER) {\r\n'
20130515 '            this.updateValue();\r\n'
20130515 '        }\r\n'
20130515 '\r\n'
20130515 '    } // eo function onSpecialKey\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Resets the current field value to the originally loaded value \r\n'
20130515 '     * and clears any validation messages. See Ext.form.BasicForm.trackResetOnLoad\r\n'
20130515 '     */\r\n'
20130515 '    ,reset:function() {\r\n'
20130515 '        this.df.setValue(this.originalValue);\r\n'
20130515 '        this.tf.setValue(this.originalValue);\r\n'
20130515 '    } // eo function reset\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Sets the value of DateField\r\n'
20130515 '     */\r\n'
20130515 '    ,setDate:function(date) {\r\n'
20130515 '        this.df.setValue(date);\r\n'
20130515 '    } // eo function setDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /** \r\n'
20130515 '     * @private Sets the value of TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,setTime:function(date) {\r\n'
20130515 '        this.tf.setValue(date);\r\n'
20130515 '    } // eo function setTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Sets correct sizes of underlying DateField and TimeField\r\n'
20130515 '     * With workarounds for IE bugs\r\n'
20130515 '     */\r\n'
20130515 '    ,setSize:function(w, h) {\r\n'
20130515 '        if(!w) {\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if('below' === this.timePosition) {\r\n"
20130515 '            this.df.setSize(w, h);\r\n'
20130515 '            this.tf.setSize(w, h);\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w);\r\n"
20130515 "                this.tf.el.up('td').setWidth(w);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            this.df.setSize(w - this.timeWidth - 4, h);\r\n'
20130515 '            this.tf.setSize(this.timeWidth, h);\r\n'
20130515 '\r\n'
20130515 '            if(Ext.isIE) {\r\n'
20130515 "                this.df.el.up('td').setWidth(w - this.timeWidth - 4);\r\n"
20130515 "                this.tf.el.up('td').setWidth(this.timeWidth);\r\n"
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function setSize\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @param {Mixed} val Value to set\r\n'
20130515 '     * Sets the value of this field\r\n'
20130515 '     */\r\n'
20130515 '    ,setValue:function(val) {\r\n'
20130515 '        if(!val && true === this.emptyToNow) {\r\n'
20130515 '            this.setValue(new Date());\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 '        else if(!val) {\r\n'
20130515 "            this.setDate('');\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '            this.updateValue();\r\n'
20130515 '            return;\r\n'
20130515 '        }\r\n'
20130515 "        if ('number' === typeof val) {\r\n"
20130515 '          val = new Date(val);\r\n'
20130515 '        }\r\n'
20130515 "        else if('string' === typeof val && this.hiddenFormat) {\r\n"
20130515 '            val = Date.parseDate(val, this.hiddenFormat);\r\n'
20130515 '        }\r\n'
20130515 '        val = val ? val : new Date(1970, 0 ,1, 0, 0, 0);\r\n'
20130515 '        var da;\r\n'
20130515 '        if(val instanceof Date) {\r\n'
20130515 '            this.setDate(val);\r\n'
20130515 '            this.setTime(val);\r\n'
20130515 '            this.dateValue = new Date(Ext.isIE ? val.getTime() : val);\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 '            da = val.split(this.dtSeparator);\r\n'
20130515 '            this.setDate(da[0]);\r\n'
20130515 '            if(da[1]) {\r\n'
20130515 '                if(da[2]) {\r\n'
20130515 '                    // add am/pm part back to time\r\n'
20130515 '                    da[1] += da[2];\r\n'
20130515 '                }\r\n'
20130515 '                this.setTime(da[1]);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '        this.updateValue();\r\n'
20130515 '    } // eo function setValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Hide or show this component by boolean\r\n'
20130515 '     * @return {Ext.Component} this\r\n'
20130515 '     */\r\n'
20130515 '    ,setVisible: function(visible){\r\n'
20130515 '        if(visible) {\r\n'
20130515 '            this.df.show();\r\n'
20130515 '            this.tf.show();\r\n'
20130515 '        }else{\r\n'
20130515 '            this.df.hide();\r\n'
20130515 '            this.tf.hide();\r\n'
20130515 '        }\r\n'
20130515 '        return this;\r\n'
20130515 '    } // eo function setVisible\r\n'
20130515 '    // }}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,show:function() {\r\n'
20130515 '        return this.setVisible(true);\r\n'
20130515 '    } // eo function show\r\n'
20130515 '    //}}}\r\n'
20130515 '    //{{{\r\n'
20130515 '    ,hide:function() {\r\n'
20130515 '        return this.setVisible(false);\r\n'
20130515 '    } // eo function hide\r\n'
20130515 '    //}}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the date part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateDate:function() {\r\n'
20130515 '\r\n'
20130515 '        var d = this.df.getValue();\r\n'
20130515 '        if(d) {\r\n'
20130515 '            if(!(this.dateValue instanceof Date)) {\r\n'
20130515 '                this.initDateValue();\r\n'
20130515 '                if(!this.tf.getValue()) {\r\n'
20130515 '                    this.setTime(this.dateValue);\r\n'
20130515 '                }\r\n'
20130515 '            }\r\n'
20130515 '            this.dateValue.setMonth(0); // because of leap years\r\n'
20130515 '            this.dateValue.setFullYear(d.getFullYear());\r\n'
20130515 '            this.dateValue.setMonth(d.getMonth(), d.getDate());\r\n'
20130515 '//            this.dateValue.setDate(d.getDate());\r\n'
20130515 '        }\r\n'
20130515 '        else {\r\n'
20130515 "            this.dateValue = '';\r\n"
20130515 "            this.setTime('');\r\n"
20130515 '        }\r\n'
20130515 '    } // eo function updateDate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private\r\n'
20130515 '     * Updates the time part\r\n'
20130515 '     */\r\n'
20130515 '    ,updateTime:function() {\r\n'
20130515 '        var t = this.tf.getValue();\r\n'
20130515 '        if(t && !(t instanceof Date)) {\r\n'
20130515 '            t = Date.parseDate(t, this.tf.format);\r\n'
20130515 '        }\r\n'
20130515 '        if(t && !this.df.getValue()) {\r\n'
20130515 '            this.initDateValue();\r\n'
20130515 '            this.setDate(this.dateValue);\r\n'
20130515 '        }\r\n'
20130515 '        if(this.dateValue instanceof Date) {\r\n'
20130515 '            if(t) {\r\n'
20130515 '                this.dateValue.setHours(t.getHours());\r\n'
20130515 '                this.dateValue.setMinutes(t.getMinutes());\r\n'
20130515 '                this.dateValue.setSeconds(t.getSeconds());\r\n'
20130515 '            }\r\n'
20130515 '            else {\r\n'
20130515 '                this.dateValue.setHours(0);\r\n'
20130515 '                this.dateValue.setMinutes(0);\r\n'
20130515 '                this.dateValue.setSeconds(0);\r\n'
20130515 '            }\r\n'
20130515 '        }\r\n'
20130515 '    } // eo function updateTime\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates the underlying hidden field value\r\n'
20130515 '     */\r\n'
20130515 '    ,updateHidden:function() {\r\n'
20130515 '        if(this.isRendered) {\r\n'
20130515 "            var value = this.dateValue instanceof Date ? this.dateValue.format(this.hiddenFormat) : '';\r\n"
20130515 '            this.el.dom.value = value;\r\n'
20130515 '        }\r\n'
20130515 '    }\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @private Updates all of Date, Time and Hidden\r\n'
20130515 '     */\r\n'
20130515 '    ,updateValue:function() {\r\n'
20130515 '\r\n'
20130515 '        this.updateDate();\r\n'
20130515 '        this.updateTime();\r\n'
20130515 '        this.updateHidden();\r\n'
20130515 '\r\n'
20130515 '        return;\r\n'
20130515 '    } // eo function updateValue\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * @return {Boolean} true = valid, false = invalid\r\n'
20130515 '     * calls validate methods of DateField and TimeField\r\n'
20130515 '     */\r\n'
20130515 '    ,validate:function() {\r\n'
20130515 '        return this.df.validate() && this.tf.validate();\r\n'
20130515 '    } // eo function validate\r\n'
20130515 '    // }}}\r\n'
20130515 '    // {{{\r\n'
20130515 '    /**\r\n'
20130515 '     * Returns renderer suitable to render this field\r\n'
20130515 '     * @param {Object} Column model config\r\n'
20130515 '     */\r\n'
20130515 '    ,renderer: function(field) {\r\n'
20130515 '        var format = field.editor.dateFormat || Ext.ux.form.DateTime.prototype.dateFormat;\r\n'
20130515 "        format += ' ' + (field.editor.timeFormat || Ext.ux.form.DateTime.prototype.timeFormat);\r\n"
20130515 '        var renderer = function(val) {\r\n'
20130515 '            var retval = Ext.util.Format.date(val, format);\r\n'
20130515 '            return retval;\r\n'
20130515 '        };\r\n'
20130515 '        return renderer;\r\n'
20130515 '    } // eo function renderer\r\n'
20130515 '    // }}}\r\n'
20130515 '\r\n'
20130515 '}); // eo extend\r\n'
20130515 '\r\n'
20130515 '// register xtype\r\n'
20130515 "Ext.reg('xdatetime', Ext.ux.form.DateTime);\r\n"
20130515 '\r\n'
20130515 '// eof'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:46 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Last-Modified: Wed, 15 May 2013 08:45:09 GMT\r\nContent-Length: 2000115\r\nContent-Type: application/javascript\r\nContent-Language: fr\r\nVary: Cookie, Accept-Language\r\n\r\n'
20130515 '/*\n'
20130515 ' Copyright 2009-2013 Luc Saffre\n'
20130515 ' This file is part of the Lino project.\n'
20130515 ' Lino is free software; you can redistribute it and/or modify \n'
20130515 ' it under the terms of the GNU General Public License as published by\n'
20130515 ' the Free Software Foundation; either version 3 of the License, or\n'
20130515 ' (at your option) any later version.\n'
20130515 ' Lino is distributed in the hope that it will be useful, \n'
20130515 ' but WITHOUT ANY WARRANTY; without even the implied warranty of\n'
20130515 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \n'
20130515 ' GNU General Public License for more details.\n'
20130515 ' You should have received a copy of the GNU General Public License\n'
20130515 ' along with Lino; if not, see <http://www.gnu.org/licenses/>.\n'
20130515 '*/\n'
20130515 '\n'
20130515 '// lino.js --- generated Wed May 15 11:45:07 2013 by Lino version 1.6.7.\n'
20130515 "Ext.BLANK_IMAGE_URL = 'http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif';\n"
20130515 'LANGUAGE_CHOICES = [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ];\n'
20130515 'MEDIA_URL = "/media";\n'
20130515 '\n'
20130515 '/* MonthPickerPlugin: thanks to keypoint @ sencha forum\n'
20130515 '   http://www.sencha.com/forum/showthread.php?74002-3.x-Ext.ux.MonthMenu&p=356860#post356860\n'
20130515 '*/\n'
20130515 "Ext.namespace('Ext.ux'); \n"
20130515 '\n'
20130515 'Ext.ux.MonthPickerPlugin = function() { \n'
20130515 '    var picker; \n'
20130515 '    var oldDateDefaults; \n'
20130515 '\n'
20130515 '    this.init = function(pk) { \n'
20130515 '        picker = pk; \n'
20130515 '        picker.onTriggerClick = picker.onTriggerClick.createSequence(onClick); \n'
20130515 '        picker.getValue = picker.getValue.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '        picker.beforeBlur = picker.beforeBlur.createInterceptor(setDefaultMonthDay).createSequence(restoreDefaultMonthDay); \n'
20130515 '    }; \n'
20130515 '\n'
20130515 '    function setDefaultMonthDay() { \n'
20130515 '        oldDateDefaults = Date.defaults.d; \n'
20130515 '        Date.defaults.d = 1; \n'
20130515 '        return true; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function restoreDefaultMonthDay(ret) { \n'
20130515 '        Date.defaults.d = oldDateDefaults; \n'
20130515 '        return ret; \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function onClick(e, el, opt) { \n'
20130515 '        var p = picker.menu.picker; \n'
20130515 '        p.activeDate = p.activeDate.getFirstDateOfMonth(); \n'
20130515 '        if (p.value) { \n'
20130515 '            p.value = p.value.getFirstDateOfMonth(); \n'
20130515 '        } \n'
20130515 '\n'
20130515 '        p.showMonthPicker(); \n'
20130515 '         \n'
20130515 '        if (!p.disabled) { \n'
20130515 '            p.monthPicker.stopFx(); \n'
20130515 '            p.monthPicker.show(); \n'
20130515 '\n'
20130515 "            p.mun(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mun(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '            p.onMonthClick = p.onMonthClick.createSequence(pickerClick); \n'
20130515 '            p.onMonthDblClick = p.onMonthDblClick.createSequence(pickerDblclick); \n'
20130515 "            p.mon(p.monthPicker, 'click', p.onMonthClick, p); \n"
20130515 "            p.mon(p.monthPicker, 'dblclick', p.onMonthDblClick, p); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerClick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 "        if (el.is('button.x-date-mp-cancel')) { \n"
20130515 '            picker.menu.hide(); \n'
20130515 "        } else if(el.is('button.x-date-mp-ok')) { \n"
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '\n'
20130515 '    function pickerDblclick(e, t) { \n'
20130515 '        var el = new Ext.Element(t); \n'
20130515 '        if (el.parent() \n'
20130515 "            && (el.parent().is('td.x-date-mp-month') \n"
20130515 "            || el.parent().is('td.x-date-mp-year'))) { \n"
20130515 '\n'
20130515 '            var p = picker.menu.picker; \n'
20130515 '            p.setValue(p.activeDate); \n'
20130515 "            p.fireEvent('select', p, p.value); \n"
20130515 '        } \n'
20130515 '    } \n'
20130515 '}; \n'
20130515 '\n'
20130515 "Ext.preg('monthPickerPlugin', Ext.ux.MonthPickerPlugin);  \n"
20130515 '\n'
20130515 '//~ /* \n'
20130515 '  //~ http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/\n'
20130515 '//~ */\n'
20130515 '//~ /**\n'
20130515 ' //~ * This submit action is basically the same as the normal submit action,\n'
20130515 ' //~ * only that it uses the fields getSubmitValue() to compose the values to submit,\n'
20130515 ' //~ * instead of looping over the input-tags in the form-tag of the form.\n'
20130515 ' //~ *\n'
20130515 ' //~ * To use it, just use the OOSubmit-plugin on either a FormPanel or a BasicForm,\n'
20130515 " //~ * or explicitly call form.doAction('oosubmit');\n"
20130515 ' //~ *\n'
20130515 ' //~ * @param {Object} form\n'
20130515 ' //~ * @param {Object} options\n'
20130515 ' //~ */\n'
20130515 '//~ Ext.ux.OOSubmitAction = function(form, options){\n'
20130515 '    //~ Ext.ux.OOSubmitAction.superclass.constructor.call(this, form, options);\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.extend(Ext.ux.OOSubmitAction, Ext.form.Action.Submit, {\n'
20130515 '    //~ /**\n'
20130515 "    //~ * @cfg {boolean} clientValidation Determines whether a Form's fields are validated\n"
20130515 '    //~ * in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission.\n'
20130515 "    //~ * Pass <tt>false</tt> in the Form's submit options to prevent this. If not defined, pre-submission field validation\n"
20130515 '    //~ * is performed.\n'
20130515 '    //~ */\n'
20130515 "    //~ type : 'oosubmit',\n"
20130515 '\n'
20130515 '    //~ // private\n'
20130515 '    //~ /**\n'
20130515 '     //~ * This is nearly a copy of the original submit action run method\n'
20130515 '     //~ */\n'
20130515 '    //~ run : function(){\n'
20130515 '        //~ var o = this.options;\n'
20130515 '        //~ var method = this.getMethod();\n'
20130515 "        //~ var isPost = method == 'POST';\n"
20130515 '\n'
20130515 '        //~ var params = this.options.params || {};\n'
20130515 '        //~ if (isPost) Ext.applyIf(params, this.form.baseParams);\n'
20130515 '\n'
20130515 '        //~ //now add the form parameters\n'
20130515 '        //~ this.form.items.each(function(field)\n'
20130515 '        //~ {\n'
20130515 '            //~ if (!field.disabled)\n'
20130515 '            //~ {\n'
20130515 '                //~ //check if the form item provides a specialized getSubmitValue() and use that if available\n'
20130515 '                //~ if (typeof field.getSubmitValue == "function")\n'
20130515 '                    //~ params[field.getName()] = field.getSubmitValue();\n'
20130515 '                //~ else\n'
20130515 '                    //~ params[field.getName()] = field.getValue();\n'
20130515 '            //~ }\n'
20130515 '        //~ });\n'
20130515 '\n'
20130515 '        //~ //convert params to get style if we are not post\n'
20130515 '        //~ if (!isPost) params=Ext.urlEncode(params);\n'
20130515 '\n'
20130515 '        //~ if(o.clientValidation === false || this.form.isValid()){\n'
20130515 '            //~ Ext.Ajax.request(Ext.apply(this.createCallback(o), {\n'
20130515 '                //~ url:this.getUrl(!isPost),\n'
20130515 '                //~ method: method,\n'
20130515 '                //~ params:params, //add our values\n'
20130515 '                //~ isUpload: this.form.fileUpload\n'
20130515 '            //~ }));\n'
20130515 '\n'
20130515 '        //~ }else if (o.clientValidation !== false){ // client validation failed\n'
20130515 '            //~ this.failureType = Ext.form.Action.CLIENT_INVALID;\n'
20130515 '            //~ this.form.afterAction(this, false);\n'
20130515 '        //~ }\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '//~ });\n'
20130515 '//~ //add our action to the registry of known actions\n'
20130515 "//~ Ext.form.Action.ACTION_TYPES['oosubmit'] = Ext.ux.OOSubmitAction;\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/**\n'
20130515 'JC Watsons solution (adapted to ExtJS 3.3.1 by LS) is elegant and simple:\n'
20130515 '`A "fix" for unchecked checkbox submission  behaviour\n'
20130515 '<http://www.sencha.com/forum/showthread.php?28449>`_\n'
20130515 '\n'
20130515 'Added special handling for checkbox inputs. \n'
20130515 'ExtJS defines disabled checkboxes `readonly`, not `disabled` as for other inputs.\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Ext.lib.Ajax.serializeForm = function(form) {\n'
20130515 "    //~ console.log('20120203 linolib.js serializeForm',form);\n"
20130515 '    var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements, \n'
20130515 '        hasSubmit = false, \n'
20130515 '        encoder = encodeURIComponent, \n'
20130515 '        name, \n'
20130515 "        data = '', \n"
20130515 '        type, \n'
20130515 '        hasValue;\n'
20130515 '\n'
20130515 '    Ext.each(fElements, function(element){\n'
20130515 '        name = element.name;\n'
20130515 '        type = element.type;\n'
20130515 '\n'
20130515 "        if (!element.disabled && name && !(type == 'checkbox' && element.readonly)) {\n"
20130515 '            if (/select-(one|multiple)/i.test(type)) {\n'
20130515 '                Ext.each(element.options, function(opt){\n'
20130515 '                    if (opt.selected) {\n'
20130515 "                        hasValue = opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified;\n"
20130515 '                        data += String.format("{0}={1}&", encoder(name), encoder(hasValue ? opt.value : opt.text));\n'
20130515 '                    }\n'
20130515 '                });\n'
20130515 '            } else if (!(/file|undefined|reset|button/i.test(type))) {\n'
20130515 "                //~ if (!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)) {\n"
20130515 "                if (!(type == 'submit' && hasSubmit)) {\n"
20130515 "                    if (type == 'checkbox') {\n"
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&');\n"
20130515 "                        data += encoder(name) + '=' + (element.checked ? 'on' : 'off') + '&';\n"
20130515 '                    } else {\n'
20130515 "                        //~ console.log('20111001',element,'data += ',encoder(name) + '=' + encoder(element.value) + '&');\n"
20130515 "                        data += encoder(name) + '=' + encoder(element.value) + '&';\n"
20130515 '                    }\n'
20130515 '                    hasSubmit = /submit/i.test(type);\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        //~ } else {\n'
20130515 '            //~ console.log(name,type,element.readonly);\n'
20130515 '        }\n'
20130515 '    });\n'
20130515 '    return data.substr(0, data.length - 1);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Set a long timeout of fifteen minutes. \n'
20130515 'See /blog/2012/0307\n'
20130515 '*/\n'
20130515 'Ext.Ajax.timeout = 15 * 60 * 1000; \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'My fix for the "Cannot set QuickTips dismissDelay to 0" bug,\n'
20130515 'see http://www.sencha.com/forum/showthread.php?183515 \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.QuickTip,{\n'
20130515 '  showAt : function(xy){\n'
20130515 '        var t = this.activeTarget;\n'
20130515 '        //~ console.log("20120224 QuickTip.showAt",this.title,this.dismissDelay,t.dismissDelay);\n'
20130515 '        if(t){\n'
20130515 '            if(!this.rendered){\n'
20130515 '                this.render(Ext.getBody());\n'
20130515 '                this.activeTarget = t;\n'
20130515 '            }\n'
20130515 '            if(t.width){\n'
20130515 '                this.setWidth(t.width);\n'
20130515 '                this.body.setWidth(this.adjustBodyWidth(t.width - this.getFrameWidth()));\n'
20130515 '                this.measureWidth = false;\n'
20130515 '            } else{\n'
20130515 '                this.measureWidth = true;\n'
20130515 '            }\n'
20130515 "            this.setTitle(t.title || '');\n"
20130515 '            this.body.update(t.text);\n'
20130515 '            this.autoHide = t.autoHide;\n'
20130515 '            // bugfix by Luc 20120226\n'
20130515 '            if (t.dismissDelay != undefined) this.dismissDelay = t.dismissDelay;\n'
20130515 '            //~ this.dismissDelay = t.dismissDelay || this.dismissDelay;\n'
20130515 '            if(this.lastCls){\n'
20130515 '                this.el.removeClass(this.lastCls);\n'
20130515 '                delete this.lastCls;\n'
20130515 '            }\n'
20130515 '            if(t.cls){\n'
20130515 '                this.el.addClass(t.cls);\n'
20130515 '                this.lastCls = t.cls;\n'
20130515 '            }\n'
20130515 '            if(this.anchor){\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else if(t.align){ \n'
20130515 '                xy = this.el.getAlignToXY(t.el, t.align);\n'
20130515 '                this.constrainPosition = false;\n'
20130515 '            }else{\n'
20130515 '                this.constrainPosition = true;\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        Ext.QuickTip.superclass.showAt.call(this, xy);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Another hack. See /docs/blog/2012/0228\n'
20130515 '*/\n'
20130515 'Ext.Element.addMethods(\n'
20130515 '    function() {\n'
20130515 '        var VISIBILITY      = "visibility",\n'
20130515 '            DISPLAY         = "display",\n'
20130515 '            HIDDEN          = "hidden",\n'
20130515 '            NONE            = "none",\n'
20130515 '            XMASKED         = "x-masked",\n'
20130515 '            XMASKEDRELATIVE = "x-masked-relative",\n'
20130515 '            data            = Ext.Element.data;\n'
20130515 '\n'
20130515 '        return {\n'
20130515 '            \n'
20130515 '            mask : function(msg, msgCls) {\n'
20130515 '                var me  = this,\n'
20130515 '                    dom = me.dom,\n'
20130515 '                    dh  = Ext.DomHelper,\n'
20130515 '                    EXTELMASKMSG = "ext-el-mask-msg",\n'
20130515 '                    el,\n'
20130515 '                    mask;\n'
20130515 '                // removed the following lines. See /docs/blog/2012/0228\n'
20130515 "                //~ if (!(/^body/i.test(dom.tagName) && me.getStyle('position') == 'static')) {\n"
20130515 '                    //~ console.log(20120228,dom.tagName,me);\n'
20130515 '                    //~ me.addClass(XMASKEDRELATIVE); \n'
20130515 '                //~ }\n'
20130515 "                if (el = data(dom, 'maskMsg')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 "                if (el = data(dom, 'mask')) {\n"
20130515 '                    el.remove();\n'
20130515 '                }\n'
20130515 '\n'
20130515 '                mask = dh.append(dom, {cls : "ext-el-mask"}, true);\n'
20130515 "                data(dom, 'mask', mask);\n"
20130515 '\n'
20130515 '                me.addClass(XMASKED);\n'
20130515 '                mask.setDisplayed(true);\n'
20130515 '                \n'
20130515 "                if (typeof msg == 'string') {\n"
20130515 "                    var mm = dh.append(dom, {cls : EXTELMASKMSG, cn:{tag:'div'}}, true);\n"
20130515 "                    data(dom, 'maskMsg', mm);\n"
20130515 '                    mm.dom.className = msgCls ? EXTELMASKMSG + " " + msgCls : EXTELMASKMSG;\n'
20130515 '                    mm.dom.firstChild.innerHTML = msg;\n'
20130515 '                    mm.setDisplayed(true);\n'
20130515 '                    mm.center(me);\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                \n'
20130515 "                if (Ext.isIE && !(Ext.isIE7 && Ext.isStrict) && me.getStyle('height') == 'auto') {\n"
20130515 '                    mask.setSize(undefined, me.getHeight());\n'
20130515 '                }\n'
20130515 '                \n'
20130515 '                return mask;\n'
20130515 '            }\n'
20130515 '\n'
20130515 '            \n'
20130515 '        };\n'
20130515 '    }()\n'
20130515 ');\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 "Ext.namespace('Lino');\n"
20130515 '    \n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.subst_user_field = new Ext.form.ComboBox({});\n'
20130515 '//~ Lino.subst_user = null;\n'
20130515 'Lino.insert_subst_user = function(p){\n'
20130515 "    //~ console.log('20120714 insert_subst_user',Lino.subst_user,p);\n"
20130515 '    //~ if (Lino.subst_user_field.getValue()) {\n'
20130515 '    if (p.su) return;\n'
20130515 '    if (Lino.subst_user) {\n'
20130515 '        //~ p.su = Lino.subst_user_field.getValue();\n'
20130515 '        p.su = Lino.subst_user;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ delete p.su;\n'
20130515 '    }\n'
20130515 "    //~ console.log('20120714 insert_subst_user -->',Lino.subst_user,p);\n"
20130515 '}\n'
20130515 '\n'
20130515 'Lino.login_window = null;\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_login_window = function() {\n'
20130515 "  //~ console.log('20121103 show_login_window',arguments);\n"
20130515 '  //~ var current_window = Lino.current_window;\n'
20130515 '  if (Lino.login_window == null) {\n'
20130515 '    \n'
20130515 '      function do_login() { \n'
20130515 '            Lino.viewport.loadMask.show()\n'
20130515 '            //~ Lino.body_loadMask.show()\n'
20130515 '            login_panel.getForm().submit({ \n'
20130515 "                method:'POST', \n"
20130515 "                waitTitle:'Connecting', \n"
20130515 "                waitMsg:'Sending data...',\n"
20130515 '                success:function(){ \n'
20130515 "                  //~ console.log('20121104 logged in',arguments);\n"
20130515 '                  Lino.login_window.hide();\n'
20130515 '                  Lino.close_all_windows();\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                },\n'
20130515 '                failure: function(form,action) { \n'
20130515 '                  //~ this.loadMask.hide();\n'
20130515 '                  Lino.on_submit_failure(form,action);\n'
20130515 '                  Lino.viewport.loadMask.hide()\n'
20130515 '                  //~ Lino.body_loadMask.hide()\n'
20130515 '                  //~ if (Lino.current_window) Lino.current_window.main_item.loadMask.hide()\n'
20130515 '                }\n'
20130515 '                //~ failure:function(form, action){ \n'
20130515 '                    //~ alert_msg\n'
20130515 "                    //~ if(action.failureType == 'server'){ \n"
20130515 '                        //~ obj = Ext.util.JSON.decode(action.response.responseText); \n'
20130515 "                        //~ Ext.Msg.alert('Login Failed!', obj.errors.reason); \n"
20130515 '                    //~ }else{ \n'
20130515 "                        //~ Ext.Msg.alert('Warning!', 'Authentication server is unreachable : ' + action.response.responseText); \n"
20130515 '                    //~ } \n'
20130515 '                    //~ Lino.login_panel.getForm().reset(); \n'
20130515 '                //~ } \n'
20130515 '            }); \n'
20130515 '      };\n'
20130515 '    \n'
20130515 '      var login_button = new Ext.Button({ \n'
20130515 '        text:"Log in",\n'
20130515 '        formBind: true,\t \n'
20130515 '        // Function that fires when user clicks the button \n'
20130515 '        handler: do_login});\n'
20130515 '    \n'
20130515 '      var login_panel = new Ext.FormPanel({ \n'
20130515 '        //~ inspired by http://www.sencha.com/learn/a-basic-login/\n'
20130515 '        autoHeight:true,\n'
20130515 '        labelWidth:90,\n'
20130515 "        url:'/auth', \n"
20130515 '        frame:true, \n'
20130515 "        defaultType:'textfield',\n"
20130515 '        monitorValid:true,\n'
20130515 '        items:[{ \n'
20130515 '            fieldLabel:"Username", \n'
20130515 "            id: 'username',\n"
20130515 "            name:'username', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        },{ \n'
20130515 '            fieldLabel:"Password", \n'
20130515 "            name:'password', \n"
20130515 "            inputType:'password', \n"
20130515 '            autoHeight:true,\n'
20130515 '            allowBlank:false \n'
20130515 '        }],        \n'
20130515 '        buttons:[ login_button ]});\n'
20130515 '        \n'
20130515 '      Lino.login_window = new Ext.Window({\n'
20130515 "          layout:'fit',\n"
20130515 "          defaultButton: 'username',\n"
20130515 '          width:300,\n'
20130515 '          title:"Log in", \n'
20130515 '          autoHeight:true,\n'
20130515 '          modal: true,\n'
20130515 '          closeAction: "hide",\n'
20130515 '          keys: {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            fn: function() { do_login()}\n'
20130515 '          },\n'
20130515 '          //~ defaultButton: login_button,\n'
20130515 "          //~ height:'auto',\n"
20130515 '          //~ closable: false,\n'
20130515 '          //~ resizable: false,\n'
20130515 '          //~ plain: true,\n'
20130515 '          //~ border: false,\n'
20130515 '          items: [login_panel] });\n'
20130515 '  };\n'
20130515 '  Lino.login_window.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.logout = function(id,name) {\n'
20130515 "    //~ console.log('20121104 gonna log out',arguments);\n"
20130515 '    //~ Lino.do_action\n'
20130515 "    Lino.call_ajax_action(Lino.viewport,'GET','/auth',{},'logout',undefined,undefined,function(){\n"
20130515 "        //~ console.log('20121104 logged out',arguments);\n"
20130515 '        //~ Lino.login_window.hide();\n'
20130515 '        Lino.close_all_windows();\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.set_subst_user = function(id,name) {\n'
20130515 "    //~ console.log(20120714,'Lino.set_subst_user',id,name);\n"
20130515 '    Lino.subst_user = id;\n'
20130515 '\n'
20130515 '    if(id) {\n'
20130515 '        Lino.eventStore.setBaseParam("su",id);\n'
20130515 '    } else {\n'
20130515 "      delete Lino.eventStore.baseParams['su'];\n"
20130515 '    }\n'
20130515 '\n'
20130515 '    if (Lino.current_window) \n'
20130515 '        Lino.current_window.main_item.set_base_param("su",id);\n'
20130515 '    if (Lino.viewport) Lino.permalink_handler(Lino.current_window)();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.select_subst_user = function(cmp,rec,value){\n'
20130515 '    //~ Lino.subst_user=value;\n'
20130515 '    //~ console.log(20120713,rec);\n'
20130515 '//~ }\n'
20130515 '    \n'
20130515 'Lino.current_window = null;\n'
20130515 'Lino.window_history = Array();\n'
20130515 '    \n'
20130515 'Lino.chars2width = function(cols) {  return cols * 9; }\n'
20130515 'Lino.rows2height = function(cols) {  return cols * 20; }\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Viewport = Ext.extend(Ext.Viewport,{\n'
20130515 '  layout:"fit"\n'
20130515 '  ,initComponent : function(){\n'
20130515 '    Lino.Viewport.superclass.initComponent.call(this);\n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.el,{msg:"Please wait..."});\n'
20130515 '      //~ console.log("20121118 Lino.viewport.loadMask",this.loadMask);\n'
20130515 '    },this);\n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,refresh : function() {\n'
20130515 '      var caller = this;\n'
20130515 '      console.log("20121120 Lino.Viewport.refresh()");\n'
20130515 '      if (caller.loadMask) caller.loadMask.show();\n'
20130515 '      var success = function(response) {\n'
20130515 '        if (caller.loadMask) caller.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '          if (result.html) {\n'
20130515 "              Ext.getCmp('main_area').update(result.html);\n"
20130515 '          }\n'
20130515 '          if (result.message) {\n'
20130515 '              if (result.alert) {\n'
20130515 "                  //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "                  Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '              } else {\n'
20130515 '                  Lino.notify(result.message);\n'
20130515 '              }\n'
20130515 '          }\n'
20130515 '          \n'
20130515 '          if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '          if (result.js_code) { \n'
20130515 '            var jsr = result.js_code(caller);\n'
20130515 "            //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '          };\n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      var action = {\n'
20130515 "        url : '/api/main_html',\n"
20130515 '        waitMsg: "Please wait...",\n'
20130515 '        failure: Lino.ajax_error_handler(caller),\n'
20130515 '        success: success,\n'
20130515 "        method: 'GET',\n"
20130515 '        params: {}\n'
20130515 '      };\n'
20130515 '      Lino.insert_subst_user(action.params);\n'
20130515 '      Ext.Ajax.request(action);\n'
20130515 '    \n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.open_window = function(win,st,requesting_panel) {\n'
20130515 '  //~ console.log("20120918 Lino.open_window()",win,st);\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  if (cw) {\n'
20130515 '    //~ console.log("20120918 Lino.open_window() save current status",cw.main_item.get_status());\n'
20130515 '    Lino.window_history.push({\n'
20130515 '      window:cw,\n'
20130515 '      status:cw.main_item.get_status()\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '  Lino.current_window = win;\n'
20130515 '  //~ if (st.su) \n'
20130515 '      //~ Lino.subst_user_field.setValue(st.su);\n'
20130515 '  win.main_item.set_status(st,requesting_panel);\n'
20130515 '  win.show();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.load_url = function(url) {\n'
20130515 '    //~ foo.bar.baz = 2; \n'
20130515 '    //~ console.log("20121120 Lino.load_url()");\n'
20130515 '    //~ Lino.body_loadMask.show();\n'
20130515 '    Lino.viewport.loadMask.show();\n'
20130515 '    //~ location.replace(url);\n'
20130515 '    document.location = url;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.close_window = function(status_update) {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  var ww = Lino.window_history.pop();\n'
20130515 '  if (ww) {\n'
20130515 '    //~ if (status_update) Ext.apply(ww.status,status_update);\n'
20130515 '    if (status_update) status_update(ww);\n'
20130515 '    ww.window.main_item.set_status(ww.status);\n'
20130515 '    Lino.current_window = ww.window;\n'
20130515 '  } else {\n'
20130515 '    Lino.current_window = null;\n'
20130515 '  }\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.close_all_windows = function() {\n'
20130515 '  if (Lino.window_history.length == 0) {\n'
20130515 '      //~ Lino.viewport.refresh();\n'
20130515 '      var url =  "/"\n'
20130515 '      //~ console.log("20121120 Lino.close_all_windows() : no window_history");\n'
20130515 '      //~ if (ADMIN_URL) \n'
20130515 '      var p = {};\n'
20130515 '      Lino.insert_subst_user(p)\n'
20130515 '      if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '      Lino.load_url(url);\n'
20130515 '  } else {\n'
20130515 '    //~ console.log("20121120 Lino.close_all_windows() with window_history");\n'
20130515 '    while (Lino.window_history.length > 0) {\n'
20130515 '      Lino.close_window();\n'
20130515 '      //~ Lino.window_history.pop().hide_really();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '  //~ Lino.current_window = null;\n'
20130515 '  //~ Lino.close_window();\n'
20130515 '  //~ var ww = \n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.kill_current_window = function() {\n'
20130515 '  var cw = Lino.current_window;\n'
20130515 '  Lino.current_window = null;\n'
20130515 '  if (cw) cw.hide_really();\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.calling_window = function() {\n'
20130515 '    if (Lino.window_history.length) return Lino.window_history[Lino.window_history.length-1];\n'
20130515 '}\n'
20130515 '\n'
20130515 '//~ Lino.WindowAction = function(mainItemClass,windowConfig,mainConfig,ppf) {\n'
20130515 'Lino.WindowAction = function(windowConfig,main_item_fn) {\n'
20130515 '    //~ if(!mainConfig) mainConfig = {};\n'
20130515 '    //~ mainConfig.is_main_window = true;\n'
20130515 '    this.windowConfig = windowConfig;\n'
20130515 '    this.main_item_fn = main_item_fn;\n'
20130515 '    //~ if (ppf) mainConfig.params_panel.fields = ppf;\n'
20130515 '    //~ this.mainConfig = mainConfig;\n'
20130515 '    //~ this.mainItemClass = mainItemClass;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.WindowAction = Ext.extend(Lino.WindowAction,{\n'
20130515 '    window : null,\n'
20130515 '    //~ mainItemClass: null,\n'
20130515 '    get_window : function() {\n'
20130515 '      //~ if(mainConfig) Ext.apply(this.mainConfig,mainConfig);\n'
20130515 '      if (this.window == null)  {\n'
20130515 '          //~ this.windowConfig.main_item = new this.mainItemClass(this.mainConfig);\n'
20130515 '          this.windowConfig.main_item = this.main_item_fn();\n'
20130515 '          this.window = new Lino.Window(this.windowConfig);\n'
20130515 '      }\n'
20130515 '      return this.window;\n'
20130515 '    },\n'
20130515 '    run : function(requesting_panel,status) {\n'
20130515 "      //~ console.log('20120625 window_action.run()',this)\n"
20130515 '      Lino.open_window(this.get_window(),status,requesting_panel);\n'
20130515 '    }\n'
20130515 '  \n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.PanelMixin = {\n'
20130515 '  get_containing_window : function (){\n'
20130515 '      if (this.containing_window) return this.containing_window;\n'
20130515 '      return this.containing_panel.get_containing_window();\n'
20130515 '  }\n'
20130515 '  ,set_window_title : function(title) {\n'
20130515 '    //~ this.setTitle(title);\n'
20130515 '    var cw = this.get_containing_window();\n'
20130515 '\n'
20130515 '    //~ if (cw) {\n'
20130515 '    //~ if (cw && cw.closable) {\n'
20130515 '    if (cw && !cw.main_item.hide_window_title) {\n'
20130515 "      //~ console.log('20111202 set_window_title(',title,') for',this.containing_window);\n"
20130515 '      //~ if (! this.containing_window.rendered) console.log("WARNING: not rendered!");\n'
20130515 '      cw.setTitle(title);\n'
20130515 '    //~ } else {\n'
20130515 '      //~ document.title = title;\n'
20130515 '    }\n'
20130515 "    //~ else console.log('20111202 not set_window_title(',title,') for',this);\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 "Lino.status_bar = new Ext.ux.StatusBar({defaultText:'Lino version 1.6.7.'});\n"
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.edit_tinymce_text = function(panel,options) {\n'
20130515 '  // `panel` is the RichTextPanel\n'
20130515 '  //~ console.log(20111220,panel);\n'
20130515 '  //~ var rec = panel.get_current_record();\n'
20130515 '  var rec = panel.containing_panel.get_current_record();\n'
20130515 "  var value = rec ? rec.data[panel.editor.name] : '';\n"
20130515 '  var saving = false;\n'
20130515 '  var todo_after_save = false;\n'
20130515 '  var discard_changes = false;\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  function save() {\n'
20130515 "    //~ if (todo_after_save) {alert('tried to save again'); return; }\n"
20130515 "    if (saving) {alert('tried to save again'); return; }\n"
20130515 '    //~ var url = panel.containing_window.main_item.get_record_url(rec.id);\n'
20130515 '    var url = panel.containing_panel.get_record_url(rec.id);\n'
20130515 '    var params = Ext.apply({},panel.containing_panel.get_base_params());\n'
20130515 '    params[panel.editor.name] = editor.getValue();\n'
20130515 '    //~ params.su = Lino.subst_user;\n'
20130515 '    //~ Lino.insert_subst_user(params);\n'
20130515 '    var a = { \n'
20130515 '      params: params, \n'
20130515 "      method: 'PUT',\n"
20130515 '      url: url,\n'
20130515 '      failure: function() {\n'
20130515 '          //~ if (editor.ed.getContainer()) \n'
20130515 '          editor.ed.setProgressState(0);\n'
20130515 '          todo_after_save = false;\n'
20130515 '          saving = false;\n'
20130515 "          console.log('tinymce.save() failed. sorry.',arguments);\n"
20130515 '        },\n'
20130515 '      success: function() {\n'
20130515 '        saving = false;\n'
20130515 '        //~ if (editor.ed.getContainer()) \n'
20130515 '        editor.ed.setProgressState(0);\n'
20130515 '        rec.data[panel.editor.name] = editor.getValue();\n'
20130515 '        if(todo_after_save) {\n'
20130515 '            var fn = todo_after_save;\n'
20130515 '            todo_after_save = false;\n'
20130515 '            fn();\n'
20130515 '        }\n'
20130515 '        //~ panel.containing_window.set_current_record(rec);\n'
20130515 '        panel.refresh();\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    //~ if (editor.ed.getContainer()) \n'
20130515 '    editor.ed.setProgressState(1); // Show progress\n'
20130515 '    saving = true;\n'
20130515 '    //~ console.log(a);\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '  };\n'
20130515 '  function save_callback() {\n'
20130515 '      save();\n'
20130515 '      //~ save(function(){editor.ed.setDirty(false);})\n'
20130515 '      /* return true have the save button disabled.  \n'
20130515 "      That's not perfect because the PUT is asynchronous \n"
20130515 '      and the response is not yet known.\n'
20130515 '      */\n'
20130515 '      return true;\n'
20130515 '  }\n'
20130515 '  //~ var actions = [\n'
20130515 '    //~ {text:"Save",handler:save}\n'
20130515 '  //~ ]; \n'
20130515 '  //~ console.log(20110610,panel.editor.disabled);\n'
20130515 '  var settings = {};\n'
20130515 '  Ext.apply(settings,{\n'
20130515 '        readonly: panel.editor.disabled,\n'
20130515 '        //~ language: "de",\n'
20130515 '        plugins : "save,emotions,spellchecker,advhr,insertdatetime,preview,table,searchreplace,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "save,cancel,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect,|,search,replace",\n'
20130515 '        theme_advanced_buttons2 : "cut,copy,paste,template,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,|,code,preview,|,forecolor,backcolor",\n'
20130515 '        theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions,|,tablecontrols",      \n'
20130515 '        theme_advanced_resizing : false,\n'
20130515 '        convert_urls : false,\n'
20130515 '        save_onsavecallback : save_callback,\n'
20130515 '        save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '  });\n'
20130515 '  Ext.apply(settings,options);\n'
20130515 '  var editor = new Ext.ux.TinyMCE({\n'
20130515 '      value : value,\n'
20130515 '      tinymceSettings: settings\n'
20130515 '    });\n'
20130515 '  var win = new Ext.Window({\n'
20130515 '    title: rec.title, \n'
20130515 '    //~ bbar: actions,\n'
20130515 "    layout: 'fit',\n"
20130515 '    items: editor,\n'
20130515 '    width: 600, \n'
20130515 '    height:500,\n'
20130515 '    minWidth: 100,\n'
20130515 '\t\tminHeight: 100,\n'
20130515 '    modal: true,\n'
20130515 '    resizable: true,\n'
20130515 '    maximizable: true,\n'
20130515 '    //~ maximized: true,\n'
20130515 '    //~ closeAction: "close"\n'
20130515 '    closeAction: "hide"\n'
20130515 '    //~ hideMode: "offsets",\n'
20130515 '    //~ constrainHeader: true,\n'
20130515 "    //~ bodyStyle: 'padding: 10px'\n"
20130515 '  });\n'
20130515 '\n'
20130515 "  //~ win.on('beforeclose',function() {\n"
20130515 "  win.on('beforehide',function() {\n"
20130515 '    if (todo_after_save) return false;\n'
20130515 '    if (discard_changes) return true;\n'
20130515 '    if (editor.isDirty()) {\n'
20130515 '        //~ var ok = false;\n'
20130515 '        //~ var allowClose = true;\n'
20130515 '        var config = {title:"Confirmation"};\n'
20130515 '        config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        config.msg = "Save changes to text ?";\n'
20130515 '        config.modal = true;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 "          //~ console.log('do_when_clean',buttonId)\n"
20130515 '          if (buttonId == "yes") {\n'
20130515 "              /* we cancel this close, but save()'s onSuccess will call again.*/\n"
20130515 '              //~ allowClose = false;\n'
20130515 '              todo_after_save = function(){win.hide();}\n'
20130515 "              editor.ed.execCommand('mceSave');\n"
20130515 '              //~ editor.ed.save(function(){win.close();});\n'
20130515 '          } else if (buttonId == "no") { \n'
20130515 '              discard_changes = true;\n'
20130515 '              win.hide()\n'
20130515 '          //~ } else if (buttonId == "cancel") { \n'
20130515 '            //~ ok = true;\n'
20130515 '              //~ allowClose = false;\n'
20130515 '          //~ } else { \n'
20130515 "            //~ console.log('unknwon buttonId:',buttonId);\n"
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return false;\n'
20130515 '        //~ return allowClose;\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '  win.show();\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/* \n'
20130515 '  Originally copied from Ext JS Library 3.3.1\n'
20130515 '  Modifications by Luc Saffre : \n'
20130515 '  - rendering of phantom records\n'
20130515 '  - fire afteredit event\n'
20130515 '  - react on dblclcik, not on single click\n'
20130515 '\n'
20130515 ' */\n'
20130515 'Lino.CheckColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 '\n'
20130515 '    processEvent : function(name, e, grid, rowIndex, colIndex){\n'
20130515 "        //~ console.log('20110713 Lino.CheckColumn.processEvent',name)\n"
20130515 "        if (name == 'click') {\n"
20130515 "        //~ if (name == 'mousedown') {\n"
20130515 "        //~ if (name == 'dblclick') {\n"
20130515 '            return this.toggleValue(grid, rowIndex, colIndex);\n'
20130515 '        } else {\n'
20130515 '            return Ext.grid.ActionColumn.superclass.processEvent.apply(this, arguments);\n'
20130515 '        }\n'
20130515 '    },\n'
20130515 '    \n'
20130515 '    toggleValue : function (grid,rowIndex,colIndex) {\n'
20130515 '        var record = grid.store.getAt(rowIndex);\n'
20130515 '        var dataIndex = grid.colModel.getDataIndex(colIndex);\n'
20130515 '        // 20120514\n'
20130515 '        //~ if(record.data.disabled_fields && record.data.disabled_fields[dataIndex]) {\n'
20130515 '          //~ Lino.notify("This field is disabled");\n'
20130515 '          //~ return false;\n'
20130515 '        //~ }\n'
20130515 '      \n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("This field is disabled.");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        var startValue = record.data[dataIndex];\n'
20130515 '        var value = !startValue;\n'
20130515 '        //~ record.set(this.dataIndex, value);\n'
20130515 '        var e = {\n'
20130515 '            grid: grid,\n'
20130515 '            record: record,\n'
20130515 '            field: dataIndex,\n'
20130515 '            originalValue: startValue,\n'
20130515 '            value: value,\n'
20130515 '            row: rowIndex,\n'
20130515 '            column: colIndex,\n'
20130515 '            cancel: false\n'
20130515 '        };\n'
20130515 '        if(grid.fireEvent("beforeedit", e) !== false && !e.cancel){\n'
20130515 '        //~ if(grid.fireEvent("validateedit", e) !== false && !e.cancel){\n'
20130515 '            record.set(dataIndex, value);\n'
20130515 '            delete e.cancel;\n'
20130515 '            grid.fireEvent("afteredit", e);\n'
20130515 '        }\n'
20130515 '        return false; // Cancel event propagation\n'
20130515 '    },\n'
20130515 '\n'
20130515 '    renderer : function(v, p, record){\n'
20130515 "        if (record.phantom) return '';\n"
20130515 "        p.css += ' x-grid3-check-col-td'; \n"
20130515 '        return String.format(\'<div class="x-grid3-check-col{0}">&#160;</div>\', v ? \'-on\' : \'\');\n'
20130515 '    }\n'
20130515 '\n'
20130515 '    // Deprecate use as a plugin. Remove in 4.0\n'
20130515 '    // init: Ext.emptyFn\n'
20130515 '});\n'
20130515 '\n'
20130515 '// register ptype. Deprecate. Remove in 4.0\n'
20130515 "// Ext.preg('checkcolumn', Lino.CheckColumn);\n"
20130515 '\n'
20130515 '// backwards compat. Remove in 4.0\n'
20130515 '// Ext.grid.CheckColumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '// register Column xtype\n'
20130515 'Ext.grid.Column.types.checkcolumn = Lino.CheckColumn;\n'
20130515 '\n'
20130515 '\n'
20130515 '/* 20110725 : \n'
20130515 'Lino.on_tab_activate is necessary \n'
20130515 'in contacts.Person.2.dtl \n'
20130515 "(but don't ask me why...)\n"
20130515 '*/\n'
20130515 'Lino.on_tab_activate = function(item) {\n'
20130515 "  //~ console.log('activate',item); \n"
20130515 '  if (item.rendered && item.doLayout) item.doLayout();\n'
20130515 '  //~ if (item.rendered) item.doLayout();\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.TimeField = Ext.extend(Ext.form.TimeField,{\n'
20130515 "  format: 'H:i',\n"
20130515 '  increment: 15\n'
20130515 '  });\n'
20130515 'Lino.DateField = Ext.extend(Ext.form.DateField,{\n'
20130515 '  boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  });\n'
20130515 'Lino.DatePickerField = Ext.extend(Ext.DatePicker,{\n'
20130515 '  //~ boxMinWidth: Lino.chars2width(11),\n'
20130515 "  format: 'd.m.Y',\n"
20130515 "  //~ altFormats: 'd/m/Y|Y-m-d'\n"
20130515 '  formatDate : function(date){\n'
20130515 '      console.log("20121203 formatDate",this.name,date);\n'
20130515 '      return Ext.isDate(date) ? date.dateFormat(this.format) : date;\n'
20130515 '  }\n'
20130515 '  });\n'
20130515 'Lino.DateTimeField = Ext.extend(Ext.ux.form.DateTime,{\n'
20130515 "  dateFormat: 'd.m.Y',\n"
20130515 "  timeFormat: 'H:i',\n"
20130515 "  //~ hiddenFormat: 'd.m.Y H:i'\n"
20130515 '  });\n'
20130515 'Lino.URLField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 "  //~ triggerClass : 'x-form-world-trigger',\n"
20130515 "  vtype: 'url',\n"
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    window.open(this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 'Lino.IncompleteDateField = Ext.extend(Ext.form.TextField,{\n'
20130515 '  //~ regex: /^-?\\d+-[01]\\d-[0123]\\d$/,\n'
20130515 '  //~ regex: /^[0123]\\d\\.[01]\\d\\.-?\\d+$/,\n'
20130515 '  maxLength: 10,\n'
20130515 '  boxMinWidth: Lino.chars2width(10),\n'
20130515 '  regex: /^[0123]?\\d\\.[01]?\\d\\.-?\\d+$/,\n'
20130515 "  regexText: 'Enter a date in format YYYY-MM-DD (use zeroes for unknown parts).'\n"
20130515 '  });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.make_dropzone = function(cmp) {\n'
20130515 "    //~ cmp.on('render', function(ct, position){\n"
20130515 '      //~ ct.el.on({\n'
20130515 '        //~ dragenter:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,dragover:function(event){\n'
20130515 "          //~ event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          //~ event.stopEvent();\n'
20130515 '          //~ return true;\n'
20130515 '        //~ }\n'
20130515 '        //~ ,drop:{\n'
20130515 '          //~ scope:this\n'
20130515 '          //~ ,fn:function(event){\n'
20130515 '            //~ event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            //~ var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            //~ if(files === undefined){\n'
20130515 '              //~ return true;\n'
20130515 '            //~ }\n'
20130515 '            //~ var len = files.length;\n'
20130515 '            //~ while(--len >= 0){\n'
20130515 '              //~ console.log(files[len]);\n'
20130515 '              //~ // this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            //~ }\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ });\n'
20130515 '    //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.FileUploadField = Ext.ux.form.FileUploadField;\n'
20130515 '\n'
20130515 'Lino.FileUploadField = Ext.extend(Ext.ux.form.FileUploadField,{\n'
20130515 '    onRender : function(ct, position){\n'
20130515 '      Lino.FileUploadField.superclass.onRender.call(this, ct, position);\n'
20130515 '      this.el.on({\n'
20130515 '        dragenter:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,dragover:function(event){\n'
20130515 "          event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '          event.stopEvent();\n'
20130515 '          return true;\n'
20130515 '        }\n'
20130515 '        ,drop:{\n'
20130515 '          scope:this\n'
20130515 '          ,fn:function(event){\n'
20130515 '            event.stopEvent();\n'
20130515 '            //~ console.log(20110516);\n'
20130515 '            var files = event.browserEvent.dataTransfer.files;\n'
20130515 '            if(files === undefined){\n'
20130515 '              return true;\n'
20130515 '            }\n'
20130515 '            var len = files.length;\n'
20130515 '            while(--len >= 0){\n'
20130515 '              console.log(files[len]);\n'
20130515 '              //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.FileField = Ext.extend(Ext.form.TriggerField,{\n'
20130515 "  triggerClass : 'x-form-search-trigger',\n"
20130515 '  editable: false,\n'
20130515 '  onTriggerClick : function() {\n'
20130515 "    //~ console.log('Lino.URLField.onTriggerClick',this.value)\n"
20130515 '    //~ document.location = this.value;\n'
20130515 "    if (this.getValue()) window.open(MEDIA_URL + '/'+this.getValue(),'_blank');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.file_field_handler = function(panel,config) {\n'
20130515 '  //~ if (instanceof Lino.DetailWrapper) {\n'
20130515 "  if (panel.action_name == 'insert') {\n"
20130515 '  //~ if (panel.get_current_record().phantom) {\n'
20130515 '      panel.has_file_upload = true;\n'
20130515 '\n'
20130515 '      var f = new Lino.FileUploadField(config);\n'
20130515 '      //~ Lino.make_dropzone(f);\n'
20130515 '      return f;\n'
20130515 '      //~ return new Ext.ux.form.FileUploadField(config);\n'
20130515 '      //~ return new Lino.FileField(config);\n'
20130515 '      \n'
20130515 '  } else {\n'
20130515 '      //~ return new Lino.URLField(config);\n'
20130515 '      return new Lino.FileField(config);\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.VBorderPanel = Ext.extend(Ext.Panel,{\n'
20130515 '    constructor : function(config) {\n'
20130515 "      config.layout = 'border';\n"
20130515 '      delete config.layoutConfig;\n'
20130515 '      Lino.VBorderPanel.superclass.constructor.call(this,config);\n'
20130515 '      for(var i=0; i < this.items.length;i++) {\n'
20130515 '        var item = this.items.get(i);\n'
20130515 '        if (this.isVertical(item) && item.collapsible) {\n'
20130515 "          item.on('collapse',this.onBodyResize,this);\n"
20130515 "          item.on('expand',this.onBodyResize,this);\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '    },\n'
20130515 '    isVertical : function(item) {\n'
20130515 "       return (item.region == 'north' || item.region == 'south' || item.region == 'center');\n"
20130515 '    },\n'
20130515 '    onBodyResize: function(w, h){\n'
20130515 "        //~ console.log('VBorderPanel.onBodyResize',this.title)\n"
20130515 '      if (this.isVisible()) { // to avoid "Uncaught TypeError: Cannot call method \'getHeight\' of undefined."\n'
20130515 '        var sumflex = 0;\n'
20130515 '        var availableHeight = this.getInnerHeight();\n'
20130515 '        var me = this;\n'
20130515 '        this.items.each(function(item){\n'
20130515 '          if (me.isVertical(item)) {\n'
20130515 '              if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  if (item.rendered) availableHeight -= item.getHeight();\n'
20130515 '              } else {\n'
20130515 '                  sumflex += item.flex;\n'
20130515 '              }\n'
20130515 '          } \n'
20130515 '          \n'
20130515 '        });\n'
20130515 '        //~ for(var i=0; i < this.items.length;i++) {\n'
20130515 '          //~ var item = this.items.get(i);\n'
20130515 '          //~ // if (this.isVertical(item) && item.getResizeEl()) {\n'
20130515 '          //~ if (this.isVertical(item)) {\n'
20130515 '              //~ if (item.collapsed || item.flex == 0 || item.flex === undefined) {\n'
20130515 '                  //~ // item.syncSize()\n'
20130515 '                  //~ // item.doLayout()\n'
20130515 '                  //~ // if (item.region == "north") console.log(\'region north\',item.getHeight(),item.id, item);\n'
20130515 "                  //~ // if (item.getHeight() == 0) console.log(20100921,'both flex and getHeight() are 0!');\n"
20130515 '                  //~ availableHeight -= item.getHeight();\n'
20130515 '              //~ } else {\n'
20130515 '                  //~ sumflex += item.flex;\n'
20130515 '                  //~ // console.log(item.flex);\n'
20130515 '              //~ }\n'
20130515 '          //~ } \n'
20130515 "          //~ // else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        //~ }\n'
20130515 '        var hunit = availableHeight / sumflex;\n'
20130515 "        //~ console.log('sumflex=',sumflex,'hunit=',hunit, 'availableHeight=',availableHeight);\n"
20130515 '        for(var i=0; i < this.items.length;i++) {\n'
20130515 '          var item = this.items.get(i);\n'
20130515 '          if (this.isVertical(item)) {\n'
20130515 '              if (item.flex != 0 && ! item.collapsed) {\n'
20130515 '                  item.setHeight(hunit * item.flex);\n'
20130515 "                  //~ console.log(item.region,' : height set to',item.getHeight());\n"
20130515 '              }\n'
20130515 '          }\n'
20130515 "          //~ else console.log('non-vertical item in VBoderPanel:',item)\n"
20130515 '        }\n'
20130515 '      }\n'
20130515 '      Lino.VBorderPanel.superclass.onBodyResize.call(this, w, h);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 '  modifications to the standard behaviour of a CellSelectionModel:\n'
20130515 '  \n'
20130515 '*/\n'
20130515 'Ext.override(Ext.grid.CellSelectionModel, {\n'
20130515 '//~ var dummy = {\n'
20130515 '\n'
20130515 '    handleKeyDown : function(e){\n'
20130515 "        /* removed because F2 wouldn't pass\n"
20130515 '        if(!e.isNavKeyPress()){\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '        */\n'
20130515 "        //~ console.log('handleKeyDown',e)\n"
20130515 '        var k = e.getKey(),\n'
20130515 '            g = this.grid,\n'
20130515 '            s = this.selection,\n'
20130515 '            sm = this,\n'
20130515 '            walk = function(row, col, step){\n'
20130515 '                return g.walkCells(\n'
20130515 '                    row,\n'
20130515 '                    col,\n'
20130515 '                    step,\n'
20130515 '                    g.isEditor && g.editing ? sm.acceptsNav : sm.isSelectable, \n'
20130515 '                    sm\n'
20130515 '                );\n'
20130515 '            },\n'
20130515 '            cell, newCell, r, c, ae;\n'
20130515 '\n'
20130515 '        switch(k){\n'
20130515 '            case e.ESC:\n'
20130515 '            case e.PAGE_UP:\n'
20130515 '            case e.PAGE_DOWN:\n'
20130515 '                break;\n'
20130515 '            default:\n'
20130515 "                // e.stopEvent(); // removed because Browser keys like Alt-Home, Ctrl-R wouldn't work\n"
20130515 '                break;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        if(!s){\n'
20130515 '            cell = walk(0, 0, 1); \n'
20130515 '            if(cell){\n'
20130515 '                this.select(cell[0], cell[1]);\n'
20130515 '            }\n'
20130515 '            return;\n'
20130515 '        }\n'
20130515 '\n'
20130515 '        cell = s.cell;  \n'
20130515 '        r = cell[0];    \n'
20130515 '        c = cell[1];    \n'
20130515 '        \n'
20130515 '        switch(k){\n'
20130515 '            case e.TAB:\n'
20130515 '                if(e.shiftKey){\n'
20130515 '                    newCell = walk(r, c - 1, -1);\n'
20130515 '                }else{\n'
20130515 '                    newCell = walk(r, c + 1, 1);\n'
20130515 '                }\n'
20130515 '                break;\n'
20130515 '            case e.HOME:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  if (!e.hasModifier()){\n'
20130515 '                      newCell = [r, 0];\n'
20130515 "                      //~ console.log('home',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '                      if (activePage > 1) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          t.moveFirst();\n'
20130515 '                          return;\n'
20130515 '                      }\n'
20130515 '                      newCell = [0, c];\n'
20130515 '                      break;\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.END:\n'
20130515 '                if (! (g.isEditor && g.editing)) {\n'
20130515 '                  c = g.colModel.getColumnCount()-1;\n'
20130515 '                  if (!e.hasModifier()) {\n'
20130515 '                      newCell = [r, c];\n'
20130515 "                      //~ console.log('end',newCell);\n"
20130515 '                      break;\n'
20130515 '                  }else if(e.ctrlKey){\n'
20130515 '                      var t = g.getTopToolbar();\n'
20130515 '                      var d = t.getPageData();\n'
20130515 '                      if (d.activePage < d.pages) {\n'
20130515 '                          e.stopEvent();\n'
20130515 '                          var self = this;\n'
20130515 "                          t.on('change',function(tb,pageData) {\n"
20130515 '                              var r = g.store.getCount()-2;\n'
20130515 '                              self.select(r, c);\n'
20130515 "                              //~ console.log('change',r,c);\n"
20130515 '                          },this,{single:true});\n'
20130515 '                          t.moveLast();\n'
20130515 '                          return;\n'
20130515 '                      } else {\n'
20130515 '                          newCell = [g.store.getCount()-1, c];\n'
20130515 "                          //~ console.log('ctrl-end',newCell);\n"
20130515 '                          break;\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '                }\n'
20130515 '            case e.DOWN:\n'
20130515 '                newCell = walk(r + 1, c, 1);\n'
20130515 '                break;\n'
20130515 '            case e.UP:\n'
20130515 '                newCell = walk(r - 1, c, -1);\n'
20130515 '                break;\n'
20130515 '            case e.RIGHT:\n'
20130515 '                newCell = walk(r, c + 1, 1);\n'
20130515 '                break;\n'
20130515 '            case e.LEFT:\n'
20130515 '                newCell = walk(r, c - 1, -1);\n'
20130515 '                break;\n'
20130515 '            case e.F2:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.isEditor && !g.editing) {\n'
20130515 '                        g.startEditing(r, c);\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.INSERT:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (g.ls_insert_handler && !g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.show_insert(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.DELETE:\n'
20130515 '                if (!e.hasModifier()) {\n'
20130515 '                    if (!g.editing) {\n'
20130515 '                        e.stopEvent();\n'
20130515 '                        Lino.delete_selected(g);\n'
20130515 '                        return;\n'
20130515 '                    }\n'
20130515 '                    break;\n'
20130515 '                }\n'
20130515 '            case e.ENTER:\n'
20130515 '                e.stopEvent();\n'
20130515 '                g.onCellDblClick(r,c);\n'
20130515 '                break;\n'
20130515 '                \n'
20130515 '        }\n'
20130515 '        \n'
20130515 '\n'
20130515 '        if(newCell){\n'
20130515 '          e.stopEvent();\n'
20130515 '          r = newCell[0];\n'
20130515 '          c = newCell[1];\n'
20130515 '          this.select(r, c); \n'
20130515 '          if(g.isEditor && g.editing){ \n'
20130515 '            ae = g.activeEditor;\n'
20130515 '            if(ae && ae.field.triggerBlur){\n'
20130515 '                ae.field.triggerBlur();\n'
20130515 '            }\n'
20130515 '            g.startEditing(r, c);\n'
20130515 '          }\n'
20130515 '        //~ } else if (g.isEditor && !g.editing && e.charCode) {\n'
20130515 '        //~ // } else if (!e.isSpecialKey() && g.isEditor && !g.editing) {\n'
20130515 '            //~ g.set_start_value(String.fromCharCode(e.charCode));\n'
20130515 '            //~ // g.set_start_value(String.fromCharCode(k));\n'
20130515 '            //~ // g.set_start_value(e.charCode);\n'
20130515 '            //~ g.startEditing(r, c);\n'
20130515 '            //~ // e.stopEvent();\n'
20130515 '            //~ return;\n'
20130515 '        // } else {\n'
20130515 "          // console.log('20120513',e,g);\n"
20130515 '        }\n'
20130515 '        \n'
20130515 '    }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ };\n'
20130515 '});\n'
20130515 '\n'
20130515 ' \n'
20130515 '\n'
20130515 'function PseudoConsole() {\n'
20130515 '    this.log = function() {};\n'
20130515 '};\n'
20130515 "if (typeof(console) == 'undefined') console = new PseudoConsole();\n"
20130515 '\n'
20130515 'Lino.notify = function(msg) {\n'
20130515 "  if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg);\n"
20130515 '  Lino.status_bar.setStatus({\n'
20130515 '    text: msg,\n'
20130515 "    iconCls: 'ok-icon',\n"
20130515 '    clear: true // auto-clear after a set interval\n'
20130515 '  });\n'
20130515 "  //~ Ext.getCmp('konsole').setTitle(msg.replace(/\\n/g,'<br/>'));\n"
20130515 "  //~ Ext.getCmp('konsole').update(msg.replace(/\\n/g,'<br/>'));\n"
20130515 '};\n'
20130515 'Lino.alert = function(msg) {\n'
20130515 "  //~ if (msg == undefined) msg = ''; else console.log(msg);\n"
20130515 "  Ext.MessageBox.alert('Notify',msg);\n"
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.show_about = function() {\n'
20130515 '  //~ new Ext.Window({\n'
20130515 '    //~ width: 400, height: 400,\n'
20130515 '    //~ title: "About",\n'
20130515 '    //~ html: \'<a href="http://www.extjs.com" target="_blank">ExtJS</a> version \' + Ext.version\n'
20130515 '  //~ }).show();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'function obj2str(o) {\n'
20130515 "  if (typeof o != 'object') return String(o);\n"
20130515 "  var s = '';\n"
20130515 '  for (var p in o) {\n'
20130515 "    s += p + ': ' + obj2str(o[p]) + '\\n';\n"
20130515 '  }\n'
20130515 '  return s;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.on_store_exception = function (store,type,action,options,response,arg) {\n'
20130515 '  //~ throw response;\n'
20130515 '  console.log("on_store_exception: store=",store,\n'
20130515 '    "type=",type,\n'
20130515 '    "action=",action,\n'
20130515 '    "options=",options,\n'
20130515 '    "response=",response,\n'
20130515 '    "arg=",arg);\n'
20130515 '  if (arg) { console.log(arg.stack)};\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.on_submit_success = function(form, action) {\n'
20130515 '   //~ Lino.notify(action.result.message);\n'
20130515 '   //~ this.close();\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.on_submit_failure = function(form, action) {\n'
20130515 '    //~ Lino.notify();\n'
20130515 '  // action may be undefined\n'
20130515 '    switch (action.failureType) {\n'
20130515 '        case Ext.form.Action.CLIENT_INVALID:\n'
20130515 "            Ext.Msg.alert('Client-side failure', 'Form fields may not be submitted with invalid values');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.CONNECT_FAILURE:\n'
20130515 "            Ext.Msg.alert('Connection failure', 'Ajax communication failed');\n"
20130515 '            break;\n'
20130515 '        case Ext.form.Action.SERVER_INVALID:\n'
20130515 "            Ext.Msg.alert('Server-side failure', action.result.message);\n"
20130515 '   }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Lino.save_wc_handler = function(ww) {\n'
20130515 '  return function(event,toolEl,panel,tc) {\n'
20130515 '    var pos = panel.getPosition();\n'
20130515 '    var size = panel.getSize();\n'
20130515 '    wc = ww.get_window_config();\n'
20130515 '    Ext.applyIf(wc,{ \n'
20130515 '      x:pos[0],y:pos[1],height:size.height,width:size.width,\n'
20130515 '      maximized:panel.maximized});\n'
20130515 "    Lino.do_action(ww,{url:'/window_configs/'+ww.config.permalink_name,params:wc,method:'POST'});\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '*/\n'
20130515 '\n'
20130515 'Lino.show_in_own_window_button = function(handler) {\n'
20130515 '  return {\n'
20130515 '    qtip: "Show this panel in own window", \n'
20130515 '    id: "up",\n'
20130515 '    handler: function(event,toolEl,panel, tc) {\n'
20130515 "      //~ console.log('20111206 report_window_button',panel,handler);\n"
20130515 '      //~ var bp = ww.get_master_params();\n'
20130515 '      //~ panel.containing_window = ww; // for HtmlBox. see blog/2010/1022\n'
20130515 '      //~ handler(panel,{base_params:bp});\n'
20130515 '      //~ handler(panel,{base_params:panel.get_master_params()});\n'
20130515 '      handler.run(null,{base_params:panel.containing_panel.get_master_params()});\n'
20130515 '      //~ handler(panel,{master_panel:panel.containing_window.main_item});\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.delete_selected = function(panel) {\n'
20130515 '  //~ console.log("Lino.delete_selected",panel);\n'
20130515 '  var recs1 = panel.get_selected();\n'
20130515 '  var recs = [];\n'
20130515 '  for ( var i=0; i < recs1.length; i++ ) { if (! recs1[i].phantom) recs.push(recs1[i]); }\n'
20130515 '  if (recs.length == 0) {\n'
20130515 '    Lino.notify("Please select at least one record.");\n'
20130515 '    return;\n'
20130515 '  };\n'
20130515 '  if (recs.length == 1) {\n'
20130515 '      if (recs[0].disable_delete) {\n'
20130515 '        Lino.alert(recs[0].disable_delete);\n'
20130515 '        return;\n'
20130515 '      }\n'
20130515 '  };\n'
20130515 '  //~ console.log(recs);\n'
20130515 '  Ext.MessageBox.show({\n'
20130515 '    title: "Confirmation",\n'
20130515 '    msg: String.format("Delete {0} rows. Are you sure?",String(recs.length)),\n'
20130515 '    //~ msg: "Delete " + String(recs.length) + " rows. Are you sure?",\n'
20130515 '    //~ buttons: Ext.MessageBox.YESNOCANCEL,\n'
20130515 '    buttons: Ext.MessageBox.YESNO,\n'
20130515 '    fn: function(btn) {\n'
20130515 "      if (btn == 'yes') {\n"
20130515 '        for ( var i=0; i < recs.length; i++ ) {\n'
20130515 '          Lino.do_action(panel,{\n'
20130515 "              method:'DELETE',\n"
20130515 "              url:  '/api' + panel.ls_url + '/' + recs[i].id,\n"
20130515 '              after_success: panel.after_delete.createDelegate(panel)\n'
20130515 '          })\n'
20130515 '        }\n'
20130515 '        //~ caller.after_delete();\n'
20130515 '      }\n'
20130515 '      else Lino.notify("Dann eben nicht.");\n'
20130515 '    }\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.action_handler = function (panel,on_success,on_confirm) {\n'
20130515 '  return function (response) {\n'
20130515 '    //~ console.log(20120608,panel);\n'
20130515 '    if (panel instanceof Lino.GridPanel) {\n'
20130515 '        //~ gridmode = false;\n'
20130515 '        gridmode = true;\n'
20130515 "        //~ console.log('20120608 yes');\n"
20130515 '    } else {\n'
20130515 '        gridmode = false;\n'
20130515 "        //~ console.log('20120608 no');\n"
20130515 '    }\n'
20130515 '    panel.loadMask.hide(); // 20120211\n'
20130515 '    if (!response.responseText) return ;\n'
20130515 '    var result = Ext.decode(response.responseText);\n'
20130515 "    //~ console.log('Lino.action_handler()','result is',result,'on_confirm is',on_confirm);\n"
20130515 '    \n'
20130515 '    if (result.eval_js) {\n'
20130515 '        //~ console.log(20120618,result.eval_js);\n'
20130515 '        eval(result.eval_js);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.xcallback) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        var config = {title:result.xcallback.title};\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        config.buttons = result.xcallback.buttons;\n'
20130515 '        config.msg = result.message;\n'
20130515 '        config.fn = function(buttonId,text,opt) {\n'
20130515 '          panel.loadMask.show(); \n'
20130515 '          //~ Lino.insert_subst_user(p);\n'
20130515 '          Ext.Ajax.request({\n'
20130515 "            method: 'GET',\n"
20130515 "            url: '/callbacks/'+result.xcallback.id + '/' + buttonId,\n"
20130515 '            //~ params: {bi: buttonId},\n'
20130515 '            success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '          });\n'
20130515 "          //~ Lino.call_ajax_action(panel,'GET',)\n"
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '        return;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (on_success && result.success) on_success(result);\n'
20130515 '    \n'
20130515 '    //~ if (on_confirm && result.confirm_message) {\n'
20130515 '        //~ var config = {title:"Confirmation"};\n'
20130515 '        //~ // config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '        //~ config.buttons = Ext.MessageBox.YESNO;\n'
20130515 '        //~ config.msg = result.confirm_message;\n'
20130515 '        //~ config.fn = function(buttonId,text,opt) {\n'
20130515 '          //~ if (buttonId == "yes") {\n'
20130515 '              //~ on_confirm(panel,undefined,result.step);\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '        //~ Ext.MessageBox.show(config);\n'
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    //~ if (result.dialog_fn) {\n'
20130515 "        //~ console.log('20120928 TODO',result.dialog_fn);\n"
20130515 '    //~ }\n'
20130515 '    if (result.message) {\n'
20130515 '        //~ if (result.alert && ! gridmode) {\n'
20130515 '        if (result.alert) { // 20120628b \n'
20130515 "            //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '            if (result.alert === true) result.alert = "Alert";\n'
20130515 '            Ext.MessageBox.alert(result.alert,result.message);\n'
20130515 '        } else {\n'
20130515 '            Lino.notify(result.message);\n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    // \n'
20130515 '    if (result.data_record && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 '        panel.set_status({data_record:result.data_record});\n'
20130515 '    }\n'
20130515 '    else if (result.new_status && ! gridmode) {\n'
20130515 '        //~ not used\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.set_status(result.new_status);\n'
20130515 '    }\n'
20130515 '    else if (result.goto_record_id != undefined && ! gridmode) {\n'
20130515 "        //~ console.log('20120607 new_status');\n"
20130515 '        panel.load_record_id(result.goto_record_id);\n'
20130515 '    }\n'
20130515 '    else if (result.refresh_all) {\n'
20130515 '        var cw = panel.get_containing_window();\n'
20130515 '        //~ console.log("20120123 refresh_all");\n'
20130515 '        if (cw) {\n'
20130515 '          cw.main_item.refresh();\n'
20130515 '        }\n'
20130515 '        else console.log("20120123 cannot refresh_all",panel);\n'
20130515 '    } else {\n'
20130515 '        //~ console.log("20121212 b gonna refresh",panel);\n'
20130515 '        if (result.refresh) panel.refresh();\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (result.open_url) {\n'
20130515 '        //~ console.log(20111126,result.open_url);\n'
20130515 '        //~ if (!result.message)\n'
20130515 '            //~ Lino.notify(\'Open new window <a href="\'+result.open_url+\'" target="_blank">\'+result.open_url+\'</a>\');\n'
20130515 '        window.open(result.open_url,\'foo\',"");\n'
20130515 '        //~ document.location = result.open_url;\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.do_action = function(caller,action) {\n'
20130515 '  action.success = function(response) {\n'
20130515 '    if (caller.loadMask) caller.loadMask.hide();\n'
20130515 "    //~ console.log('Lino.do_action()',action,'action success',response);\n"
20130515 '    if (action.after_success) {\n'
20130515 "        //~ console.log('Lino.do_action() calling after_success');\n"
20130515 '        action.after_success();\n'
20130515 '    }\n'
20130515 '    if (response.responseText) {\n'
20130515 '      var result = Ext.decode(response.responseText);\n'
20130515 "      //~ console.log('Lino.do_action()',action.name,'result is',result);\n"
20130515 '      if (result.message) {\n'
20130515 '          if (result.alert) {\n'
20130515 "              //~ Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 "              Ext.MessageBox.alert('Alert',result.message);\n"
20130515 '          } else {\n'
20130515 '              Lino.notify(result.message);\n'
20130515 '          }\n'
20130515 '      }\n'
20130515 '      \n'
20130515 "      //~ if (result.alert_msg) Ext.MessageBox.alert('Alert',result.alert_msg);\n"
20130515 '      //~ if (result.message) Lino.notify(result.message);\n'
20130515 '      if (result.notify_msg) Lino.notify(result.notify_msg);\n'
20130515 '      if (result.js_code) { \n'
20130515 "        //~ console.log('Lino.do_action()',action,'gonna call js_code in',result);\n"
20130515 '        var jsr = result.js_code(caller);\n'
20130515 "        //~ console.log('Lino.do_action()',action,'returned from js_code in',result);\n"
20130515 '        if (action.after_js_code) {\n'
20130515 "          //~ console.log('Lino.do_action()',action,'gonna call after_js_code');\n"
20130515 '          action.after_js_code(jsr);\n'
20130515 "          //~ console.log('Lino.do_action()',action,'returned from after_js_code');\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('Lino.do_action()',action,' : after_js_code is false');\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '    }\n'
20130515 '  };\n'
20130515 '  Ext.applyIf(action,{\n'
20130515 '    waitMsg: "Please wait...",\n'
20130515 '    failure: Lino.ajax_error_handler(caller),\n'
20130515 '    params: {}\n'
20130515 '  });\n'
20130515 '  //~ action.params.su = Lino.subst_user;\n'
20130515 '  Lino.insert_subst_user(action.params);\n'
20130515 '  \n'
20130515 '  Ext.Ajax.request(action);\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gup = function( name )\n'
20130515 '//~ {\n'
20130515 '  //~ // Thanks to http://www.netlobo.com/url_query_string_javascript.html\n'
20130515 '  //~ name = name.replace(/[\\[]/,"\\\\\\[").replace(/[\\]]/,"\\\\\\]");\n'
20130515 '  //~ var regexS = "[\\\\?&]"+name+"=([^&#]*)";\n'
20130515 '  //~ var regex = new RegExp( regexS );\n'
20130515 '  //~ var results = regex.exec( window.location.href );\n'
20130515 '  //~ if( results == null )\n'
20130515 '    //~ return "";\n'
20130515 '  //~ else\n'
20130515 '    //~ return results[1];\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.refresh_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 "      //~ console.log('refresh',ww);\n"
20130515 '      //~ ww.main_item.doLayout(false,true);\n'
20130515 '      //~ ww.main_item.syncSize();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Lino.tools_close_handler = function (ww) {\n'
20130515 '  //~ return function() { \n'
20130515 '      //~ ww.close();\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 'Lino.permalink_handler = function (ww) {\n'
20130515 '  return function() { \n'
20130515 '    //~ console.log(20100923,ww.get_permalink());\n'
20130515 '    //~ document.location = ww.main_item.get_permalink();\n'
20130515 '    Lino.load_url(ww.main_item.get_permalink());\n'
20130515 '    //~ console.log(20120715, ww.main_item.get_permalink());\n'
20130515 '    //~ document.location = "?permalink=" + ww.get_permalink();\n'
20130515 '    //~ document.location = "?permalink=" + ww.config.permalink_name +\'()\';\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '//~ Lino.run_permalink = function() {\n'
20130515 "  //~ var plink = Lino.gup('permalink');\n"
20130515 "  //~ if(plink) { eval('Lino.'+plink); }\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.MainPanel = {\n'
20130515 '  is_home_page : false,\n'
20130515 '  setting_param_values : false,\n'
20130515 '  config_containing_window : function(wincfg) { }\n'
20130515 '  ,init_containing_window : function(win) { }\n'
20130515 '  ,is_loading : function() { return true; } // overridden by subclasses\n'
20130515 '  ,do_when_clean : function(auto_save,todo) { todo() }\n'
20130515 '  ,get_master_params : function() {\n'
20130515 '    var p = {}\n'
20130515 "    p['mt'] = this.content_type; \n"
20130515 '    rec = this.get_current_record()\n'
20130515 '    if (rec) {\n'
20130515 '      if (rec.phantom) {\n'
20130515 "          p['mk'] = undefined; \n"
20130515 '      }else{\n'
20130515 "          p['mk'] = rec.id; \n"
20130515 '      }\n'
20130515 '    } else {\n'
20130515 "      p['mk'] = undefined;\n"
20130515 '    }\n'
20130515 "    //~ console.log('get_master_params returns',p,'using record',rec);\n"
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,get_permalink : function() {\n'
20130515 '    //~ var p = this.main_item.get_base_params() || {};\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    delete p.fmt;\n'
20130515 '    //~ if (p.fmt) delete p.fmt;\n'
20130515 '    Ext.apply(p,this.get_permalink_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "     //~ p.fmt = 'html';\n"
20130515 "    //~ console.log('get_permalink',p,this.get_permalink_params());\n"
20130515 '    if (this.is_home_page)\n'
20130515 "        //~ var url = '';\n"
20130515 "        var url = '/';\n"
20130515 '    else \n'
20130515 '        var url = this.get_permalink_url();\n'
20130515 '    if (p.su == null) \n'
20130515 '        delete p.su;\n'
20130515 '    if (Ext.urlEncode(p)) url = url + "?" + Ext.urlEncode(p);\n'
20130515 '    return url;\n'
20130515 '  }\n'
20130515 '  ,get_record_url : function(record_id) {\n'
20130515 "      var url = '/api' + this.ls_url\n"
20130515 '      //~ var url = this.containing_window.config.url_data; // ls_url;\n'
20130515 "      url += '/' + (record_id === undefined ? '-99999' : String(record_id));\n"
20130515 "      //~ if (record_id !== undefined) url += '/' + String(record_id);\n"
20130515 "      //~ url += '/' + String(record_id);\n"
20130515 '      return url;\n'
20130515 '  }\n'
20130515 '  ,get_permalink_url : function() {\n'
20130515 "      return '/api' + this.ls_url;\n"
20130515 '  }\n'
20130515 '  ,get_permalink_params : function() {\n'
20130515 "      //~ return {an:'grid'};\n"
20130515 '      var p = {};\n'
20130515 '      if (this.action_name)\n'
20130515 '          p.an = this.action_name;\n'
20130515 '      this.add_param_values(p)\n'
20130515 '      return p;\n'
20130515 '  }\n'
20130515 '  ,set_status : function(status) {}\n'
20130515 '  ,get_status : function() { return {}}\n'
20130515 '  ,refresh : function() {}\n'
20130515 '  ,get_base_params : function() { \n'
20130515 '    var p = {};\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,add_params_panel : function (tbar) {\n'
20130515 '      if (this.params_panel) {\n'
20130515 '        tbar = tbar.concat([{ scope:this, \n'
20130515 '          //~ text: "$_("[parameters]")", // gear\n'
20130515 "          iconCls: 'x-tbar-parameters',\n"
20130515 '          tooltip:"Show or hide the table parameters panel",\n'
20130515 '          enableToggle: true,\n'
20130515 '          //~ pressed: ! this.params_panel.hidden,\n'
20130515 '          pressed: ! this.params_panel_hidden,\n'
20130515 '          toggleHandler: function(btn,state) { \n'
20130515 '            //~ if (this.params_panel.isVisible()) \n'
20130515 '                //~ this.params_panel.hide();\n'
20130515 '            //~ else\n'
20130515 '                //~ this.params_panel.show();\n'
20130515 '            //~ console.log("20120210 add_params_panel",state,this.params_panel);\n'
20130515 '            if (state) {\n'
20130515 '              this.params_panel.show();\n'
20130515 '              this.params_panel.doLayout();\n'
20130515 '            } else this.params_panel.hide();\n'
20130515 '            this.get_containing_window().doLayout();\n'
20130515 '          }\n'
20130515 '        }]);\n'
20130515 '        var t = this;\n'
20130515 '        var refresh = function() {if (!t.setting_param_values) t.refresh();}\n'
20130515 '        Ext.each(this.params_panel.fields,function(f) {\n'
20130515 "          //~ f.on('valid',function() {t.refresh()});\n"
20130515 '          if (f instanceof Ext.form.Checkbox) {\n'
20130515 "              f.on('check',refresh);\n"
20130515 '          } else if (f instanceof Ext.DatePicker) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 '          } else if (f instanceof Ext.form.TriggerField) {\n'
20130515 "              f.on('select',refresh);\n"
20130515 "              //~ f.on('change',refresh);\n"
20130515 "              //~ f.on('valid',refresh);\n"
20130515 '          } else {\n'
20130515 '              if (! f.on) \n'
20130515 '                  console.log("20121010 no method \'on\'",f);\n'
20130515 '              else\n'
20130515 "                  f.on('change',refresh);\n"
20130515 '            }\n'
20130515 '          });\n'
20130515 '      }\n'
20130515 '      return tbar;\n'
20130515 '  }\n'
20130515 '  ,add_param_values : function (p) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 '      /* \n'
20130515 '      20120918 add param_values to the request string \n'
20130515 '      *only if the params_form is dirty*.\n'
20130515 '      Otherwise Actor.default_params() would never be used.\n'
20130515 '      \n'
20130515 '      20121023 But IntegClients.params_default has non-empty default values. \n'
20130515 '      Users must have the possibility to make them empty.\n'
20130515 '      */\n'
20130515 '      if (this.params_panel.form.isDirty()) {\n'
20130515 '        p.pv = this.get_param_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_param_values) \n'
20130515 '          p.pv = Lino.fields2array(\n'
20130515 '            this.params_panel.fields,this.status_param_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.params_panel.form.isDirty()) return;\n'
20130515 '      //~ p.pv = this.get_param_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  get_param_values : function() { // similar to get_field_values()\n'
20130515 '      return Lino.fields2array(this.params_panel.fields);\n'
20130515 '  },\n'
20130515 '  set_param_values : function(pv) {\n'
20130515 '    if (this.params_panel) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_param_values = pv;\n'
20130515 '      //~ this.params_panel.form.suspendEvents(false);\n'
20130515 '      this.setting_param_values = true;\n'
20130515 '      if (pv) { \n'
20130515 '          this.params_panel.form.my_loadRecord(pv);\n'
20130515 '      } else { \n'
20130515 '        this.params_panel.form.reset(); \n'
20130515 '      }\n'
20130515 '      this.setting_param_values = false;\n'
20130515 '      //~ this.params_panel.form.resumeEvents();\n'
20130515 '    }\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ajax_error_handler = function(panel) {\n'
20130515 '  return function(response,options) {\n'
20130515 "    console.log('Ajax failure:',response,options);\n"
20130515 '    if (panel.loadMask) panel.loadMask.hide();\n'
20130515 '    if (response.responseText) {\n'
20130515 "      var lines = response.responseText.split('\\n');\n"
20130515 '      if (lines.length > 10) {\n'
20130515 '          line = lines.splice(5,lines.length-10,"(...)");\n'
20130515 '      }\n'
20130515 '      Ext.MessageBox.alert(\n'
20130515 '        response.statusText,\n'
20130515 "        lines.join('<br/>')\n"
20130515 "        //~ response.responseText.replace(/\\n/g,'<br/>'))\n"
20130515 '      )\n'
20130515 '    } else {\n'
20130515 "      Ext.MessageBox.alert('Action failed',\n"
20130515 "        'Lino server did not respond to Ajax request');\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '}\n'
20130515 "// Ext.Ajax.on('requestexception',Lino.ajax_error_handler)\n"
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 'Ext.QuickTips.init();\n'
20130515 '\n'
20130515 '/* setting QuickTips dismissDelay to 0 */\n'
20130515 '// Apply a set of config properties to the singleton\n'
20130515 '//~ Ext.apply(Ext.QuickTips.getQuickTip(), {\n'
20130515 '//~ Ext.apply(Ext.ToolTip, {\n'
20130515 '    //~ dismissDelay: 0\n'
20130515 '    //~ autoHide: false,\n'
20130515 '    //~ closable: true,\n'
20130515 '    //~ maxWidth: 200,\n'
20130515 '    //~ minWidth: 100,\n'
20130515 '    //~ showDelay: 50      // Show 50ms after entering target\n'
20130515 '    //~ ,trackMouse: true\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Ext.apply(Ext.QuickTip, {\n'
20130515 '    //~ dismissDelay: 0,\n'
20130515 '//~ });\n'
20130515 '  \n'
20130515 'Lino.quicktip_renderer = function(title,body) {\n'
20130515 '  return function(c) {\n'
20130515 '    //~ if (c instanceof Ext.Panel) var t = c.bwrap; else // 20130129\n'
20130515 '    if (c instanceof Ext.Panel) var t = c.header; else // 20130129\n'
20130515 '    var t = c.getEl();\n'
20130515 '    //~ console.log(20130129,t,title,body);\n'
20130515 '    //~ t.dismissDelay = 0;\n'
20130515 '    Ext.QuickTips.register({\n'
20130515 '      target: t,\n'
20130515 "      //~ cls: 'lino-quicktip-classical',\n"
20130515 '      dismissDelay: 0,\n'
20130515 '      //~ autoHide: false,\n'
20130515 '      showDelay: 50,      // Show 50ms after entering target\n'
20130515 '      //~ title: title,\n'
20130515 '      text: body\n'
20130515 '    });\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '  \n'
20130515 'Lino.help_text_editor = function() {\n'
20130515 '  //~ var bp = {\n'
20130515 '      //~ mk:this.content_type,\n'
20130515 '      //~ mt:1\n'
20130515 '    //~ };\n'
20130515 '    //~ console.log(20120202,bp);\n'
20130515 '  //~ Lino.lino.ContentTypes.detail({},{base_params:bp});\n'
20130515 '  //~ Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '  Lino.lino.ContentTypes.detail.run(null,{record_id:this.content_type});\n'
20130515 '}\n'
20130515 '\n'
20130515 '// Path to the blank image should point to a valid location on your server\n'
20130515 "//~ Ext.BLANK_IMAGE_URL = MEDIA_URL + '/extjs/resources/images/default/s.gif'; \n"
20130515 '\n'
20130515 '\n'
20130515 '// used as Ext.grid.Column.renderer for id columns in order to hide the special id value -99999\n'
20130515 'Lino.id_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.raw_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.text_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return "not implemented"; \n'
20130515 '  return value;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.NullNumberColumn = Ext.extend(Ext.grid.Column, {\n'
20130515 "    align : 'right', \n"
20130515 "    format : '0,00/i', \n"
20130515 '    renderer : function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '        //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "        if (value === null) return '';\n"
20130515 '        return Ext.util.Format.number(value, this.format);\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.NullNumberColumn = Ext.extend(Ext.grid.NumberColumn, {\n'
20130515 "    //~ align : 'right', \n"
20130515 '    //~ constructor: function(cfg){\n'
20130515 '        //~ Ext.grid.NumberColumn.superclass.constructor.call(this, cfg);\n'
20130515 '        //~ var t = this;\n'
20130515 '        //~ this.renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '          //~ console.log(20130128,"NullNumberColumn.renderer",value);\n'
20130515 "          //~ if (value === null) return '';\n"
20130515 '          //~ return Ext.util.Format.number(value, t.format);\n'
20130515 '      //~ };\n'
20130515 '    //~ }\n'
20130515 '//~ });\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.cell_button_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 '  //~ return \'<input type="button" onclick="alert(value)" value=" ? ">\' ;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.default_renderer = function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "  //~ if (record.phantom) return '';\n"
20130515 '  //~ return value;\n'
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.fk_renderer = function(fkname,handlername) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    //~ if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'.run(null,{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.lfk_renderer = function(panel,fkname) {\n'
20130515 "  //~ console.log('Lino.fk_renderer handler=',handler);\n"
20130515 "  var handlername = 'console.log';\n"
20130515 '  return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ console.log('Lino.fk_renderer',fkname,rowIndex,colIndex,record,metaData,store);\n"
20130515 "    if (record.phantom) return '';\n"
20130515 '    if (value) {\n'
20130515 '        var s = \'<a href="javascript:\' ;\n'
20130515 '        s += handlername + \'({},{record_id:\\\'\' + String(record.data[fkname]) + \'\\\'})">\';\n'
20130515 "        s += value + '</a>';\n"
20130515 "        //~ console.log('Lino.fk_renderer',value,'-->',s);\n"
20130515 '        return s\n'
20130515 '    }\n'
20130515 "    return '';\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.gfk_renderer = function() {\n'
20130515 '  //~ return function(value, metaData, record, rowIndex, colIndex, store) {\n'
20130515 "    //~ if (record.phantom) return '';\n"
20130515 "    //~ console.log('Lino.gfk_renderer',value,colIndex,record,metaData,store);\n"
20130515 '    //~ return value;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.build_buttons = function(panel,actions) {\n'
20130515 '  //~ console.log("20121006 Lino.build_buttons",actions);\n'
20130515 '  if (actions) {\n'
20130515 '    var buttons = Array(actions.length);\n'
20130515 '    var cmenu = Array(actions.length);\n'
20130515 '    for (var i=0; i < actions.length; i++) { \n'
20130515 '      buttons[i] = new Ext.Toolbar.Button(actions[i]);\n'
20130515 '      cmenu[i] = actions[i]\n'
20130515 '      cmenu[i].text = actions[i].menu_item_text;\n'
20130515 '      if (actions[i].panel_btn_handler) {\n'
20130515 '          var h = actions[i].panel_btn_handler.createCallback(panel,buttons[i]);\n'
20130515 '          //~ if (actions[i].must_save) {\n'
20130515 '          if (actions[i].auto_save == true) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[true,h]));\n"
20130515 '          } else if (actions[i].auto_save == null) {\n'
20130515 "              buttons[i].on('click',panel.do_when_clean.createDelegate(panel,[false,h]));\n"
20130515 '          } else if (actions[i].auto_save == false) {\n'
20130515 "              buttons[i].on('click',h);\n"
20130515 '          } else {\n'
20130515 '              console.log("20120703 unhandled auto_save value",actions[i])\n'
20130515 '          }\n'
20130515 '          cmenu[i].handler = actions[i].panel_btn_handler.createCallback(panel,cmenu[i]);\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    return {bbar:buttons, cmenu:new Ext.menu.Menu(cmenu)};\n'
20130515 '  }\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.do_when_visible = function(cmp,todo) {\n'
20130515 '  //~ if (cmp.el && cmp.el.dom) \n'
20130515 '  if (cmp.isVisible()) { \n'
20130515 "    // 'visible' means 'rendered and not hidden'\n"
20130515 "    //~ console.log(cmp.title,'-> cmp is visible now');\n"
20130515 '    todo(); \n'
20130515 '  //~ } else {\n'
20130515 "      //~ cmp.on('resize',todo,cmp,{single:true});\n"
20130515 '  //~ }\n'
20130515 '  //~ if (false) { // 20120213\n'
20130515 '  } else { \n'
20130515 "    //~ console.log('Lino.do_when_visible() must defer because not isVisible()',todo,cmp);\n"
20130515 '    if (cmp.rendered) {\n'
20130515 "      //~ console.log(cmp,'-> cmp is rendered but not visible: and now?');\n"
20130515 "      //~ console.log(cmp.title,'-> cmp is rendered but not visible: try again in a moment...');\n"
20130515 '      //~ var fn = function() {Lino.do_when_visible(cmp,todo)};\n'
20130515 '      //~ fn.defer(100);\n'
20130515 '      \n'
20130515 '      Lino.do_when_visible.defer(50,this,[cmp,todo]);\n'
20130515 '      //~ Lino.do_when_visible.defer(100,this,[cmp,todo]);\n'
20130515 '      \n'
20130515 '    } else {\n'
20130515 "      //~ console.log(cmp.title,'-> after render');\n"
20130515 "      cmp.on('afterrender',todo,cmp,{single:true});\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '};    \n'
20130515 '\n'
20130515 '/*\n'
20130515 '*/\n'
20130515 'Lino.do_on_current_record = function(panel,fn,phantom_fn) {\n'
20130515 '  var rec = panel.get_current_record();\n'
20130515 '  if (rec == undefined) {\n'
20130515 '    Lino.notify("There\'s no selected record.");\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  // 20120307 A VirtualTable with a Detail (lino.Models) has only "phantom" records.\n'
20130515 '  if (rec.phantom) {\n'
20130515 '    //~ if (!panel.editable) { console.log("20120312 not editable:",panel)}\n'
20130515 '    if (phantom_fn) {\n'
20130515 '      phantom_fn(panel);\n'
20130515 '    } else {\n'
20130515 '      Lino.notify("Action not available on phantom record.");\n'
20130515 '    }\n'
20130515 '    return;\n'
20130515 '  }\n'
20130515 '  return fn(rec);\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.call_ajax_action = function(panel,method,url,p,actionName,step,on_confirm,on_success) {\n'
20130515 '  p.an = actionName;\n'
20130515 '  if (!panel) panel = Lino.viewport;\n'
20130515 '  Ext.apply(p,panel.get_base_params());\n'
20130515 '  //~ console.log("20121212 Lino.call_ajax_action",panel);\n'
20130515 '  panel.loadMask.show(); \n'
20130515 '  //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 '  //~ Lino.insert_subst_user(p);\n'
20130515 '    \n'
20130515 "  //~ if (step) p['$ext_requests.URL_PARAM_ACTION_STEP'] = step;\n"
20130515 '  //~ if (pp) pp(p); // "parameter processor" : first used for read beid card\n'
20130515 '  Ext.Ajax.request({\n'
20130515 '    method: method,\n'
20130515 '    url: url,\n'
20130515 '    params: p,\n'
20130515 '    success: Lino.action_handler(panel,on_success,on_confirm)\n'
20130515 '  });\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.row_action_handler = function(actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      if (pp) { p = pp(); if (! p) return; }\n'
20130515 '      Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '          //~ console.log(panel);\n'
20130515 '          //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '          Lino.call_ajax_action(panel,hm,panel.get_record_url(rec.id),p,actionName,step,fn);\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.list_action_handler = function(ls_url,actionName,hm,pp) {\n'
20130515 '  var p = {};\n'
20130515 "  var url = '/api' + ls_url\n"
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '      //~ console.log("20121210 Lino.list_action_handler",arguments);\n'
20130515 "      //~ var url = ADMIN_URL + '/api' + panel.ls_url\n"
20130515 '      if (pp) { p = pp();  if (! p) return; }\n'
20130515 '      Lino.call_ajax_action(panel,hm,url,p,actionName,step,fn);\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.param_action_handler = function(window_action) { // 20121012\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    Lino.do_on_current_record(panel,function(rec) {\n'
20130515 '      //~ console.log(panel);\n'
20130515 '      //~ 20120723 Lino.call_ajax_action(panel,rec.id,actionName,step,fn);\n'
20130515 '      window_action.run(panel.getId(),{}); \n'
20130515 '    });\n'
20130515 '  };\n'
20130515 '  return fn;\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.run_row_action = function(requesting_panel,url,pk,actionName,pp) {\n'
20130515 '  //~ var panel = action.get_window().main_item;\n'
20130515 "  url = '/api' + url  + '/' + pk;\n"
20130515 '  var panel = Ext.getCmp(requesting_panel);\n'
20130515 '  if (pp) var p = pp(); else var p = {};\n'
20130515 '  var fn = function(panel,btn,step) {\n'
20130515 '    //~ 20120723 Lino.call_ajax_action(panel,pk,actionName,step,fn);\n'
20130515 "    Lino.call_ajax_action(panel,'GET',url,p,actionName,step,fn);\n"
20130515 '  }\n'
20130515 '  fn(panel,null,null);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_detail = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel, \n'
20130515 '    function(rec) {\n'
20130515 '      //~ panel.loadMask.show();\n'
20130515 '      var bp = panel.get_base_params();\n'
20130515 '      //~ var bp = {};\n'
20130515 '      panel.add_param_values(bp); // 20120918\n'
20130515 '      var status = {\n'
20130515 '        record_id:rec.id,\n'
20130515 '        base_params:bp\n'
20130515 '        //~ param_values: pv.$ext_requests.URL_PARAM_PARAM_VALUES\n'
20130515 '      }\n'
20130515 '      //~ console.log("20120918 Lino.show_detail",status);\n'
20130515 '      panel.ls_detail_handler.run(null,status);\n'
20130515 '      //~ panel.loadMask.hide();\n'
20130515 '      //~ panel.containing_window.window.hideMask();\n'
20130515 '      //~ panel.el.unmask();\n'
20130515 '    },\n'
20130515 '    Lino.show_insert\n'
20130515 '  );\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_fk_detail = function(combo,detail_action) {\n'
20130515 '    //~ console.log("Lino.show_fk_detail",combo,handler);\n'
20130515 '    pk = combo.getValue();\n'
20130515 '    if (pk) {\n'
20130515 '        detail_action.run(null,{record_id: pk})\n'
20130515 '      } else {\n'
20130515 '        Lino.notify("Cannot show detail for empty foreign key.");\n'
20130515 '      }\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert = function(panel,btn) {\n'
20130515 '  var bp = panel.get_base_params();\n'
20130515 "  //~ console.log('20120125 Lino.show_insert',bp)\n"
20130515 '  //~ panel.ls_insert_handler.run(null,{record_id:-99999,base_params:bp});\n'
20130515 '  panel.ls_insert_handler.run(panel.getId(),{record_id:-99999,base_params:bp});\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.show_insert_duplicate = function(panel,btn) {\n'
20130515 '  Lino.do_on_current_record(panel,\n'
20130515 '    function(rec) {\n'
20130515 '      var newRec = {};\n'
20130515 '      Ext.apply(newRec,rec);\n'
20130515 '      newRec.id = -99999;\n'
20130515 '      panel.ls_insert_handler.run(null,{data_record:rec});\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '//~ Lino.update_row_handler = function(action_name) {\n'
20130515 '  //~ return function(panel,btn) {\n'
20130515 '    //~ Lino.notify("Sorry, " + action_name + " is not implemented.");\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'if (Ext.ux.grid !== undefined) {\n'
20130515 '    Lino.GridFilters = Ext.extend(Ext.ux.grid.GridFilters,{\n'
20130515 '      encode:true,\n'
20130515 '      local:false\n'
20130515 '    });\n'
20130515 '} else {\n'
20130515 '    Lino.GridFilters = function() {}; // dummy\n'
20130515 '    Ext.override(Lino.GridFilters,{\n'
20130515 '      init : function() {}\n'
20130515 '    });\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.TextField,{\n'
20130515 '//~ Lino.ButtonField = Ext.extend(Ext.form.Field,{\n'
20130515 '    //~ editable : false,\n'
20130515 '    //~ constructor : function(ww,config,params){\n'
20130515 '      //~ this.containing_window = ww;\n'
20130515 '      //~ if (params) Ext.apply(config,params);\n'
20130515 '      //~ Lino.ButtonField.superclass.constructor.call(this, config);\n'
20130515 '    //~ },\n'
20130515 '    //~ setButtons : function(buttons){\n'
20130515 "      //~ console.log('setButtons',buttons);\n"
20130515 '    //~ },\n'
20130515 '    //~ onRender : function(ct, position){\n'
20130515 '        //~ if(!this.el){\n'
20130515 '            //~ this.panel = new Ext.Container({items:[\n'
20130515 "              //~ {xtype:'button',text:'upload'},\n"
20130515 "              //~ {xtype:'button',text:'show'},\n"
20130515 "              //~ {xtype:'button',text:'edit'}\n"
20130515 '            //~ ]});\n'
20130515 '            //~ this.panel.ownerCt = this;\n'
20130515 '            //~ this.el = this.panel.getEl();\n'
20130515 '\n'
20130515 '        //~ }\n'
20130515 '        //~ Lino.ButtonField.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ },\n'
20130515 '\n'
20130515 '  \n'
20130515 '//~ });\n'
20130515 '\n'
20130515 'Lino.FieldBoxMixin = {\n'
20130515 '  before_init : function(config,params) {\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    if (actions) config.bbar = actions.bbar;\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.containing_window = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  do_when_clean : function(auto_save,todo) { todo() },\n'
20130515 '  //~ format_data : function(html) { return \'<div class="htmlText">\' + html + \'</div>\' },\n'
20130515 '  format_data : function(html) { return html },\n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '    //~ if (p.param_values) this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.HtmlBoxPanel = Ext.extend(Lino.HtmlBoxPanel,{\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  constructor : function(config,params) {\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    Lino.HtmlBoxPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.constructor.call(this, ww,config,params);\n'
20130515 '  //~ },\n'
20130515 '  //~ constructor : function(ww,config,params){\n'
20130515 '    //~ this.ww = ww;\n'
20130515 '    //~ if (params) Ext.apply(config,params);\n'
20130515 '    //~ var actions = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ if (actions) config.bbar = actions.bbar;\n'
20130515 '    //~ Lino.FieldBoxMixin.superclass.constructor.call(this, config);\n'
20130515 '  //~ },\n'
20130515 '  //~ disable : function() { var tb = this.getBottomToolbar(); if(tb) tb.disable()},\n'
20130515 '  //~ enable : function() { var tb = this.getBottomToolbar(); if(tb) tb.enable()},\n'
20130515 '  onRender : function(ct, position){\n'
20130515 '    Lino.HtmlBoxPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    //~ console.log(20111125,this.containing_window);\n'
20130515 '    if (this.containing_panel) {\n'
20130515 "      this.containing_panel.on('enable',this.enable,this);\n"
20130515 "      this.containing_panel.on('disable',this.disable,this);\n"
20130515 '    }\n'
20130515 '    this.el.on({\n'
20130515 '      dragenter:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,dragover:function(event){\n'
20130515 "        event.browserEvent.dataTransfer.dropEffect = 'move';\n"
20130515 '        event.stopEvent();\n'
20130515 '        return true;\n'
20130515 '      }\n'
20130515 '      ,drop:{\n'
20130515 '        scope:this\n'
20130515 '        ,fn:function(event){\n'
20130515 '          event.stopEvent();\n'
20130515 '          //~ console.log(20110516);\n'
20130515 '          var files = event.browserEvent.dataTransfer.files;\n'
20130515 '          if(files === undefined){\n'
20130515 '            return true;\n'
20130515 '          }\n'
20130515 '          var len = files.length;\n'
20130515 '          while(--len >= 0){\n'
20130515 '            console.log(files[len]);\n'
20130515 '            //~ this.processDragAndDropFileUpload(files[len]);\n'
20130515 '          }\n'
20130515 '          Lino.show_insert(this);\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '      var record = this.containing_panel.get_current_record();\n'
20130515 "      //~ console.log('HtmlBox.refresh()',this.title,record,record.title);\n"
20130515 '      var box = this.items.get(0);\n'
20130515 '      var todo = function() {\n'
20130515 '        if (this.disabled) return;\n'
20130515 '        //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '        var el = box.getEl();\n'
20130515 '        if (el) {\n'
20130515 "          el.update(record ? this.format_data(record.data[this.name]) : '');\n"
20130515 "          //~ console.log('HtmlBox.refresh()',this.name);\n"
20130515 '        //~ } else {\n'
20130515 "          //~ console.log('HtmlBox.refresh() failed for',this.name);\n"
20130515 '        }\n'
20130515 '      };\n'
20130515 '      Lino.do_when_visible(box,todo.createDelegate(this));\n'
20130515 '    //~ }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.HtmlBoxPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.RichTextPanel = Ext.extend(Ext.Panel,Lino.PanelMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.RichTextPanel = Ext.extend(Lino.RichTextPanel,{\n'
20130515 '    \n'
20130515 '  //~ initComponent : function(){\n'
20130515 '    //~ Lino.RichTextPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ },\n'
20130515 '  constructor : function(config,params) {\n'
20130515 "    //~ console.log('Lino.RichTextPanel.initComponent',this);\n"
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + String(rec.id) + "/" + config.name;\n'
20130515 '    //~ var url = TEMPLATES_URL + config.ls_url + "/" + config.name;\n'
20130515 '    var t = this;\n'
20130515 '    var tinymce_options = {\n'
20130515 '        theme : "advanced",\n'
20130515 "        content_css: '/media/lino/extjs/lino.css',\n"
20130515 "        language: 'de',\n"
20130515 '        //~ template_external_list_url : url,\n'
20130515 '        theme_advanced_toolbar_location : "top",\n'
20130515 '        theme_advanced_toolbar_align : "left",\n'
20130515 '        theme_advanced_statusbar_location : "bottom",\n'
20130515 '        template_popup_width : 700,\n'
20130515 '        template_popup_height : 500,\n'
20130515 '        template_replace_values : { \n'
20130515 '            data_field : function(element){ \n'
20130515 '                //~ console.log(20110722,fieldName,t.containing_window.get_current_record()); \n'
20130515 '                var fieldName = element.innerHTML;\n'
20130515 '                element.innerHTML = t.containing_panel.get_current_record().data[fieldName];\n'
20130515 '            } \n'
20130515 '        }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '    var editorConfig = {\n'
20130515 '      tinymceSettings: {\n'
20130515 '        plugins : "noneditable,template", \n'
20130515 '        // Theme options - button# indicated the row# only\n'
20130515 '        theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,template",\n'
20130515 '        theme_advanced_buttons2 : "",\n'
20130515 '        theme_advanced_buttons3 : "", // ,|,sub,sup,|,charmap",      \n'
20130515 '        theme_advanced_resizing : false\n'
20130515 '        //~ save_onsavecallback : save_callback,\n'
20130515 '        //~ save_enablewhendirty : true\n'
20130515 '        //~ save_oncancelcallback: on_cancel\n'
20130515 '        \n'
20130515 '    }};\n'
20130515 '    Ext.apply(editorConfig.tinymceSettings,tinymce_options);\n'
20130515 '    //~ editorConfig.name = config.action_name;\n'
20130515 '    editorConfig.name = config.name;\n'
20130515 '    delete config.name;\n'
20130515 '    //~ config.title = config.label;\n'
20130515 '    //~ delete config.label;\n'
20130515 '    this.before_init(config,params);\n'
20130515 '    \n'
20130515 '    this.editor = new Ext.ux.TinyMCE(editorConfig);\n'
20130515 '    var t = this;\n'
20130515 '    config.tools = [{\n'
20130515 '                      qtip: "Edit text in own window", \n'
20130515 '                      id: "up",\n'
20130515 '                      handler: function(){\n'
20130515 '                        if(t.editor.isDirty()) {\n'
20130515 '                            var record = t.containing_panel.get_current_record();\n'
20130515 '                            record.data[t.editor.name] = t.editor.getValue();\n'
20130515 '                        }\n'
20130515 '                        Lino.edit_tinymce_text(t,tinymce_options)\n'
20130515 '                      }\n'
20130515 '                    }];\n'
20130515 '    \n'
20130515 '    config.items = this.editor;\n'
20130515 '    config.layout = "fit";\n'
20130515 '    Lino.RichTextPanel.superclass.constructor.call(this, config);\n'
20130515 '  },\n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) {\n'
20130515 '    var record = this.containing_panel.get_current_record();\n'
20130515 "    //~ console.log('RichTextPanel.refresh()',this.title,record.title,record);\n"
20130515 '    var todo = function() {\n'
20130515 '      //~ this.set_base_params(this.containing_window.get_base_params());\n'
20130515 '      if (record) {\n'
20130515 '        var url = \'/templates\' + this.containing_panel.ls_url + "/" \n'
20130515 '            + String(record.id) + "/" + this.editor.name;\n'
20130515 "        //~ console.log('RichTextPanel.refresh()',url);\n"
20130515 '        if (this.editor.ed) this.editor.ed.settings.template_external_list_url = url;\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 "        //~ var v = record ? this.format_data(record.data[this.editor.name]) : ''\n"
20130515 '        var v = this.format_data(record.data[this.editor.name])\n'
20130515 '        this.editor.setValue(v);\n'
20130515 '      } else {\n'
20130515 "        this.editor.setValue('(no data)');\n"
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '//~ Ext.override(Lino.RichTextPanel,Lino.FieldBoxMixin);\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.PanelMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,Lino.FieldBoxMixin);\n'
20130515 'Lino.ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 "  //~ layout:'fit'\n"
20130515 '  //~ ,autoHeight: true\n'
20130515 '  //~ ,frame: true\n'
20130515 '  window_title: "Action Parameters",\n'
20130515 '  constructor : function(config){\n'
20130515 '    config.bbar = [\n'
20130515 "        {text:'OK',handler:this.on_ok,scope:this},\n"
20130515 "        {text:'Cancel',handler:this.on_cancel,scope:this}\n"
20130515 '    ];\n'
20130515 '    //~ config.items = config.params_panel;\n'
20130515 '    Lino.ActionFormPanel.superclass.constructor.call(this, config);\n'
20130515 '  }\n'
20130515 '  //~ ,initComponent : function(){\n'
20130515 '    //~ Lino.ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '    //~ var rp = this.requesting_panel;\n'
20130515 '    //~ console.log("on_ok",this.requesting_panel,arguments);\n'
20130515 '    //~ Lino.row_action_handler()\n'
20130515 '    var panel = this.requesting_panel;\n'
20130515 '    var actionName = this.action_name;\n'
20130515 '    var rec = panel.get_current_record();\n'
20130515 '    var self = this;\n'
20130515 '    function on_success() { self.get_containing_window().close(); };\n'
20130515 '    var fn = function(panel,btn,step) {\n'
20130515 '      var p = {};\n'
20130515 '      self.add_field_values(p)\n'
20130515 "      Lino.call_ajax_action(panel,'GET',panel.get_record_url(rec.id),p,actionName,step,fn,on_success);\n"
20130515 '    }\n'
20130515 '    fn(panel,null,null);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '  }\n'
20130515 '  ,set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 ActionFormPanel.set_status()',status,rp,this.requesting_panel);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_field_values(status.field_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,add_field_values : function (p) { // similar to add_param_values()\n'
20130515 '      //~ 20121023 \n'
20130515 '      if (this.form.isDirty()) {\n'
20130515 '        p.fv = this.get_field_values();\n'
20130515 '      }else{\n'
20130515 '        if (this.status_field_values) \n'
20130515 '          p.fv = Lino.fields2array(this.fields,this.status_field_values);\n'
20130515 '      }\n'
20130515 '      //~ if (!this.form.isDirty()) return;\n'
20130515 '      //~ p.$ext_requests.URL_PARAM_FIELD_VALUES = this.get_field_values();\n'
20130515 '      //~ console.log("20120203 add_param_values added pv",pv,"to",p);\n'
20130515 '  }\n'
20130515 '  ,get_field_values : function() {\n'
20130515 '      return Lino.fields2array(this.fields);\n'
20130515 '  }\n'
20130515 '  ,set_field_values : function(pv) {\n'
20130515 "      //~ console.log('20120203 MainPanel.set_param_values', pv);\n"
20130515 '      this.status_field_values = pv;\n'
20130515 '      if (pv) this.form.my_loadRecord(pv);\n'
20130515 '      else this.form.reset(); \n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.title = this.window_title;\n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.fields2array = function(fields,values) {\n'
20130515 "    //~ console.log('20120116 gonna loop on', fields);\n"
20130515 '    var pv = Array(fields.length);\n'
20130515 '    for(var i=0; i < fields.length;i++) {\n'
20130515 '        var f = fields[i]\n'
20130515 '        if (values) \n'
20130515 '          var v = values[f.name];\n'
20130515 '        else \n'
20130515 '          var v = f.getValue();\n'
20130515 '        if (f.formatDate) {\n'
20130515 '            pv[i] = f.formatDate(v); \n'
20130515 '        } else {\n'
20130515 '            pv[i] = v; // f.getValue(); \n'
20130515 '        }\n'
20130515 '    }\n'
20130515 '    return pv;\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.FormPanel = Ext.extend(Ext.form.FormPanel,Lino.MainPanel);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,Lino.PanelMixin);\n'
20130515 'Lino.FormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  //~ base_params : {},\n'
20130515 '  //~ trackResetOnLoad : true,\n'
20130515 '  //~ query_params : {},\n'
20130515 "  //~ 20110119b quick_search_text : '',\n"
20130515 '  constructor : function(config,params){\n'
20130515 '    if (params) Ext.apply(config,params);\n'
20130515 '    this.base_params = {};\n'
20130515 "    //~ ww.config.base_params.query = ''; // 20111018\n"
20130515 '    //~ console.log(config);\n'
20130515 "    //~ console.log('FormPanel.constructor() 1',config)\n"
20130515 '    //~ Ext.applyIf(config,{base_params:{}});\n'
20130515 "    //~ console.log('FormPanel.constructor() 2',config)\n"
20130515 '      \n'
20130515 '    config.trackResetOnLoad = true;\n'
20130515 '    \n'
20130515 '    Lino.FormPanel.superclass.constructor.call(this, config);\n'
20130515 '      \n'
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',null); // 20111018\n"
20130515 "    //~ this.set_base_param('$URL_PARAM_FILTER',''); // 20111018\n"
20130515 '      \n'
20130515 '  },\n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    //~ console.log("20111201 containing_window",this.containing_window,this);\n'
20130515 '    \n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    if (actions) {\n'
20130515 '        this.bbar = actions.bbar;\n'
20130515 '    //~ } else {\n'
20130515 '        //~ this.bbar = [];\n'
20130515 '    }\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ var config = this;\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window instanceof Lino.DetailWrapper) {\n'
20130515 '    \n'
20130515 "    //~ console.log('20120121 initComponent', this.action_name);\n"
20130515 "    //~ if (this.action_name == 'detail' | this.action_name == 'show') {\n"
20130515 "    //~ if (this.action_name != 'insert') {\n"
20130515 '    if (! this.hide_top_toolbar) {\n'
20130515 '      this.tbar = [];\n'
20130515 '      // 20111015    \n'
20130515 '      if (! this.hide_navigator) {\n'
20130515 '        this.record_selector = new Lino.RemoteComboFieldElement({\n'
20130515 '          store: new Lino.ComplexRemoteComboStore({\n'
20130515 '            //~ baseParams: this.containing_window.config.base_params,\n'
20130515 '            baseParams: this.get_base_params(),\n'
20130515 '            //~ value: this.containing_window.config.base_params.query,\n'
20130515 '            proxy: new Ext.data.HttpProxy({\n'
20130515 "              url: '/choices' + this.ls_url,\n"
20130515 "              method:'GET'\n"
20130515 '            })\n'
20130515 '          }),\n'
20130515 '          pageSize:25,\n'
20130515 '          listeners: { \n'
20130515 '            scope:this, \n'
20130515 '            select:function(combo,record,index) {\n'
20130515 "              //~ console.log('jumpto_select',arguments);\n"
20130515 '              this.goto_record_id(record.id);\n'
20130515 '            }\n'
20130515 '          },\n'
20130515 '          emptyText: "Go to record"\n'
20130515 '        })\n'
20130515 '        this.tbar = this.tbar.concat([this.record_selector]);\n'
20130515 '        \n'
20130515 '        this.tbar = this.tbar.concat([\n'
20130515 '          this.first = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"First",disabled:true,handler:this.moveFirst,scope:this,iconCls:\'x-tbar-page-first\'}),\n'
20130515 '          this.prev = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Previous",disabled:true,handler:this.movePrev,scope:this,iconCls:\'x-tbar-page-prev\'}),\n'
20130515 '          this.next = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Next",disabled:true,handler:this.moveNext,scope:this,iconCls:\'x-tbar-page-next\'}),\n'
20130515 '          this.last = new Ext.Toolbar.Button({\n'
20130515 '            tooltip:"Last",disabled:true,handler:this.moveLast,scope:this,iconCls:\'x-tbar-page-last\'})\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      this.tbar = this.add_params_panel(this.tbar);\n'
20130515 '      \n'
20130515 '      //~ console.log(20101117,this.containing_window.refresh);\n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 '        {\n'
20130515 "          //~ text:'Refresh',\n"
20130515 '          handler:function(){ this.do_when_clean(true,this.refresh.createDelegate(this)) },\n'
20130515 "          iconCls: 'x-tbar-loading',\n"
20130515 '          tooltip:"Reload current record",\n'
20130515 '          scope:this}\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '      if (this.bbar) { // since 20121016\n'
20130515 '        if (this.tbar) {\n'
20130515 "            this.tbar = this.tbar.concat(['-']) ;\n"
20130515 '        } else {\n'
20130515 '          this.tbar = [];\n'
20130515 '        }\n'
20130515 '        this.tbar = this.tbar.concat(this.bbar) ;\n'
20130515 '        this.bbar = undefined;\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '      this.tbar = this.tbar.concat([\n'
20130515 "          '->',\n"
20130515 '          this.displayItem = new Ext.Toolbar.TextItem({})\n'
20130515 '      ]);\n'
20130515 '          \n'
20130515 '    }\n'
20130515 "    //~ if (this.content_type && this.action_name != 'insert') {\n"
20130515 '      //~ this.bbar = this.bbar.concat([\n'
20130515 "        //~ '->',\n"
20130515 '        //~ { text: "[$_(\'Help Text Editor\')]",\n'
20130515 '          //~ handler: Lino.help_text_editor,\n'
20130515 '          //~ qtip: "$_(\'Edit help texts for fields on this model.\')",\n'
20130515 '          //~ scope: this}\n'
20130515 '      //~ ])\n'
20130515 '    //~ }\n'
20130515 '    //~ this.before_row_edit = config.before_row_edit.createDelegate(this);\n'
20130515 '      \n'
20130515 '    //~ if (this.master_panel) {\n'
20130515 '        //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '    //~ }\n'
20130515 '      \n'
20130515 '    Lino.FormPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 "    this.on('render',function(){\n"
20130515 '      this.loadMask = new Ext.LoadMask(this.bwrap,{msg:"Please wait..."});\n'
20130515 '    },this);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.cascade(function(cmp){\n'
20130515 '      //~ // var active_field = false;\n'
20130515 '      //~ for (i = 0; i < this_.active_fields.length; i++) {\n'
20130515 '        //~ if (cmp.name == this_.active_fields[i]) {\n'
20130515 '            //~ // active_field = true; break;\n'
20130515 '            //~ cmp.on("change",function() {this_.save()});\n'
20130515 '        //~ }\n'
20130515 '      //~ };\n'
20130515 '      //~ if (active_field) {\n'
20130515 '      // if (cmp instanceof Lino.GridPanel) {\n'
20130515 '          //~ cmp.on("change",function() {this_.save()});\n'
20130515 '      //~ }\n'
20130515 '    //~ });\n'
20130515 '    \n'
20130515 "    if (this.action_name == 'insert') {\n"
20130515 '      this.cascade(function(cmp){\n'
20130515 "        // console.log('20110613 cascade',cmp);\n"
20130515 '        if (cmp.disabled_in_insert_window) {\n'
20130515 '            //~ cmp.disable();\n'
20130515 '            cmp.hide();\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    if (this.current_record == null) return true; \n'
20130515 '    var loading = false;\n'
20130515 '    this.cascade(function(cmp){\n'
20130515 '        if (cmp instanceof Lino.GridPanel && cmp.is_loading()) {\n'
20130515 "            //~ console.log(cmp.title,'is loading');\n"
20130515 '            loading = true;\n'
20130515 '            return false;\n'
20130515 '        }\n'
20130515 '      });\n'
20130515 '    return loading;\n'
20130515 '    //~ var a = this.findByType(Lino.GridPanel);\n'
20130515 '    //~ for (i=0;i<a.length;i++) {\n'
20130515 '        //~ if (a[i].is_loading()) return true;\n'
20130515 '    //~ }\n'
20130515 '    //~ return false;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '      var st = {\n'
20130515 '        base_params: this.get_base_params(),\n'
20130515 '        data_record : this.get_current_record()\n'
20130515 '        }\n'
20130515 '      var tp = this.items.get(0);\n'
20130515 '      if (tp instanceof Ext.TabPanel) {\n'
20130515 '        st.active_tab = tp.getActiveTab();\n'
20130515 '      }\n'
20130515 '      st.param_values = this.status_param_values;\n'
20130515 '      return st;\n'
20130515 '  },\n'
20130515 '  set_status : function(status,rp){\n'
20130515 '    this.requesting_panel = Ext.getCmp(rp);\n'
20130515 "    //~ console.log('20120918 FormPanel.set_status()',status);\n"
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    //~ if (status.param_values) \n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) this.set_base_params(status.base_params);\n'
20130515 '    var tp = this.items.get(0);\n'
20130515 '    if (tp instanceof Ext.TabPanel) {\n'
20130515 '      if (status.active_tab) {\n'
20130515 "        //~ console.log('20111201 active_tab',this.active_tab,this.items.get(0));\n"
20130515 '        //~ tp.activeTab = status.active_tab;\n'
20130515 '        tp.setActiveTab(status.active_tab);\n'
20130515 '        //~ this.main_item.items.get(0).activate(status.active_tab);\n'
20130515 '      } else {\n'
20130515 '        tp.setActiveTab(0);\n'
20130515 '      }\n'
20130515 '      }\n'
20130515 '    \n'
20130515 '    if (status.data_record) {\n'
20130515 "      //~ console.log('20111201 Lino.FormPanel with data_record',this.data_record.title,this.containing_window);\n"
20130515 '      //~ this.main_item.on_master_changed.defer(2000,this.main_item,[status.data_record]);\n'
20130515 '      //~ Lino.do_when_visible(this.main_item,function(){this.on_master_changed(status.data_record)});\n'
20130515 "      //~ this.main_item.on('afterrender',function(){\n"
20130515 '      //~   this.main_item.on_master_changed(status.data_record)},this,{single:true});\n'
20130515 "      /* must defer because because set_window_title() didn't work otherwise */\n"
20130515 '      this.set_current_record.createDelegate(this,[status.data_record]).defer(100);\n'
20130515 '      //~ this.set_current_record(this.data_record);\n'
20130515 '      //~ return;\n'
20130515 '    } else if (status.record_id != undefined) { \n'
20130515 '      /* possible values include 0 and null, 0 being a valid record id, \n'
20130515 '      null the equivalent of undefined\n'
20130515 '      */\n'
20130515 '      //~ this.main_item.goto_record_id(this.status.record_id);\n'
20130515 '      this.load_record_id(status.record_id);\n'
20130515 '    } else {\n'
20130515 '      this.set_current_record(undefined);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '    \n'
20130515 '  get_base_params : function() {\n'
20130515 '    // needed for insert_action\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.base_params;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 "    delete p['query'] // 20120725\n"
20130515 '    Ext.apply(this.base_params,p);\n'
20130515 '    if (this.record_selector) {\n'
20130515 '        var store = this.record_selector.getStore();\n'
20130515 '        for (k in p) store.setBaseParam(k,p[k]);\n'
20130515 '        delete this.record_selector.lastQuery;\n'
20130515 '        //~ console.log("20120725 record_selector.setBaseParam",p)\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '        \n'
20130515 '      //~ if (this.record_selector) {\n'
20130515 '          //~ var store = this.record_selector.getStore();\n'
20130515 '          //~ for (k in store.baseParams) store.setBaseParam(k,undefined);\n'
20130515 '          //~ delete this.record_selector.lastQuery;\n'
20130515 '          //~ console.log("20120725 record_selector.getBaseParams() -->",store.baseParams)\n'
20130515 '      //~ }\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    //~ this.base_params = Ext.apply({},this.base_params); // make sure it is an instance variable\n'
20130515 '    this.base_params[k] = v;\n'
20130515 '    //~ if (this.record_selector) {\n'
20130515 '        //~ this.record_selector.getStore().setBaseParam(k,v);\n'
20130515 '        //~ delete this.record_selector.lastQuery;\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  after_delete : function() {\n'
20130515 '    if (this.current_record.navinfo.next)\n'
20130515 '      this.moveNext();\n'
20130515 '    else if (this.current_record.navinfo.prev)\n'
20130515 '      this.movePrev();\n'
20130515 '    else \n'
20130515 '      this.abandon();\n'
20130515 '  },\n'
20130515 '  moveFirst : function() {this.goto_record_id(this.current_record.navinfo.first)},\n'
20130515 '  movePrev : function() {this.goto_record_id(this.current_record.navinfo.prev)},\n'
20130515 '  moveNext : function() {this.goto_record_id(this.current_record.navinfo.next)},\n'
20130515 '  moveLast : function() {this.goto_record_id(this.current_record.navinfo.last)},\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '      this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ console.log('20120121 Lino.FormPanel.refresh()',this);\n"
20130515 '    if (this.current_record) {\n'
20130515 '        this.load_record_id(this.current_record.id,after);\n'
20130515 '    } else {\n'
20130515 '        this.set_current_record(undefined,after);\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  do_when_clean : function(auto_save,todo) {\n'
20130515 '    var this_ = this;\n'
20130515 '    if (this.form.isDirty()) {\n'
20130515 '        if (auto_save) {\n'
20130515 '            this_.save(todo);\n'
20130515 '        } else {\n'
20130515 "          //~ console.log('20111217 do_when_clean() form is dirty',this.form);\n"
20130515 '          var config = {title:"Confirmation"};\n'
20130515 '          config.buttons = Ext.MessageBox.YESNOCANCEL;\n'
20130515 '          config.msg = "Save changes to current record ?";\n'
20130515 '          config.fn = function(buttonId,text,opt) {\n'
20130515 "            //~ console.log('do_when_clean',buttonId)\n"
20130515 '            if (buttonId == "yes") {\n'
20130515 '                //~ Lino.submit_detail(this_,undefined,todo);\n'
20130515 '                //~ this_.containing_window.save(todo);\n'
20130515 '                this_.save(todo);\n'
20130515 '            } else if (buttonId == "no") { \n'
20130515 '              todo();\n'
20130515 '            }\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '        Ext.MessageBox.show(config);\n'
20130515 '    }else{\n'
20130515 "      //~ console.log('do_when_clean : now!')\n"
20130515 '      todo();\n'
20130515 '    }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  goto_record_id : function(record_id) {\n'
20130515 "    //~ console.log('20110701 Lino.FormPanel.goto_record_id()',record_id);\n"
20130515 '    //~ var this_ = this;\n'
20130515 '    //~ this.do_when_clean(function() { this_.load_record_id(record_id) }\n'
20130515 '    this.do_when_clean(true,this.load_record_id.createDelegate(this,[record_id]));\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  load_record_id : function(record_id,after) {\n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var p = { fmt: this.containing_window.config.action_name};\n'
20130515 '    //~ var p = Ext.apply({},this.containing_window.config.base_params);\n'
20130515 '    var p = Ext.apply({},this.get_base_params());\n'
20130515 '    //~ Lino.insert_subst_user(p);\n'
20130515 "    //~ console.log('20110713 action_name=',this.containing_window.config.action_name,\n"
20130515 "      //~ 'base_params=',this.containing_window.config.base_params);\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ p.an = this.action_name;\n'
20130515 '    //~ p.an = this.containing_window.config.action_name;\n'
20130515 "    //~ p.fmt = 'json';\n"
20130515 "    //~ p.fmt = '$ext_requests.URL_FORMAT_JSON';\n"
20130515 '    p.rp = this.getId();\n'
20130515 '    //~ p.$ext_requests.URL_PARAM_SUBST_USER = Lino.subst_user;\n'
20130515 "    p.fmt = 'json';\n"
20130515 "    //~ 20110119b p['$URL_PARAM_FILTER'] = this.quick_search_text;\n"
20130515 '    //~ Ext.apply(p,this.query_params);\n'
20130515 '    this.add_param_values(p);\n'
20130515 "    //~ console.log('20121120 FormPanel.load_record_id',record_id,p);\n"
20130515 '    if (this.loadMask) this.loadMask.show();\n'
20130515 '    Ext.Ajax.request({ \n'
20130515 "      waitMsg: 'Loading record...',\n"
20130515 "      method: 'GET',\n"
20130515 '      params: p,\n'
20130515 '      scope: this,\n'
20130515 '      url: this.get_record_url(record_id),\n'
20130515 '      success: function(response) {   \n'
20130515 '        // todo: convert to Lino.action_handler.... but result \n'
20130515 '        if (this.loadMask) this.loadMask.hide();\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var rec = Ext.decode(response.responseText);\n'
20130515 "          //~ console.log('20120918 goto_record_id success',rec);\n"
20130515 '          this.set_param_values(rec.param_values);\n'
20130515 '          this.set_current_record(rec,after);\n'
20130515 '        }\n'
20130515 '      },\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  abandon : function () {\n'
20130515 "    Ext.MessageBox.alert('Note',\n"
20130515 '      "No more records to display. Detail window has been closed.");\n'
20130515 '    Lino.close_window();\n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ this.containing_window.hide();\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_current_record : function(record,after) {\n'
20130515 "    //~ console.log('20120722 Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    if (this.record_selector) {\n'
20130515 '        this.record_selector.clearValue();\n'
20130515 "        // e.g. InsertWrapper FormPanel doesn't have a record_selector\n"
20130515 '    }\n'
20130515 '    this.current_record = record;\n'
20130515 '    //~ if (record) \n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record.title,record);\n"
20130515 '    //~ else\n'
20130515 "        //~ console.log('Lino.FormPanel.set_current_record',record);\n"
20130515 '    //~ this.config.main_panel.form.load(record);    \n'
20130515 '    if (record) {\n'
20130515 '      this.enable();\n'
20130515 '      this.form.my_loadRecord(record.data);\n'
20130515 '      this.set_window_title(record.title);\n'
20130515 '      //~ this.getBottomToolbar().enable();\n'
20130515 '      var da = record.data.disabled_actions;\n'
20130515 '      if (da) {\n'
20130515 "          //~ console.log('20120528 disabled_actions =',da,this.getBottomToolbar());\n"
20130515 '          //~ 20121016 this.getBottomToolbar().items.each(function(item,index,length){\n'
20130515 '          var tb = this.getTopToolbar();\n'
20130515 '          if (tb) tb.items.each(function(item,index,length){\n'
20130515 "              //~ console.log('20120528 ',item.itemId,'-->',da[item.itemId]);\n"
20130515 '              if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '          });\n'
20130515 '      };\n'
20130515 '      if (this.disable_editing | record.data.disable_editing) {\n'
20130515 '          //~ console.log("20120202 disable_editing",record.title);\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            if (!cmp.always_enabled) cmp.disable();\n'
20130515 '          },this);\n'
20130515 '      } else {\n'
20130515 '          this.form.items.each(function(cmp){\n'
20130515 '            //~ console.log("20120202",cmp);\n'
20130515 '            if (record.data.disabled_fields[cmp.name]) cmp.disable();\n'
20130515 '            else cmp.enable();\n'
20130515 '          },this);\n'
20130515 '        \n'
20130515 '          //~ if (record.data.disabled_fields) {\n'
20130515 '              //~ for (i = 0; i < record.data.disabled_fields.length; i++) {\n'
20130515 "                  //~ var flds = this.find('name',record.data.disabled_fields[i]);\n"
20130515 '                  //~ if (flds.length == 1) { \n'
20130515 '                    //~ flds[0].disable(); \n'
20130515 '                  //~ }\n'
20130515 '              //~ }\n'
20130515 '          //~ }\n'
20130515 '      };\n'
20130515 '      \n'
20130515 '      if (record.navinfo && ! this.hide_top_toolbar && ! this.hide_navigator) {\n'
20130515 '        //~ if (record.navinfo.recno == 0) {\n'
20130515 '            //~ this.first.setDisabled(true);\n'
20130515 '            //~ this.prev.setDisabled(true);\n'
20130515 '            //~ this.next.setDisabled(true);\n'
20130515 '            //~ this.last.setDisabled(true);\n'
20130515 '        //~ } else {\n'
20130515 '            this.first.setDisabled(!record.navinfo.first);\n'
20130515 '            this.prev.setDisabled(!record.navinfo.prev);\n'
20130515 '            this.next.setDisabled(!record.navinfo.next);\n'
20130515 '            this.last.setDisabled(!record.navinfo.last);\n'
20130515 '        //~ }\n'
20130515 '        this.displayItem.setText(record.navinfo.message);\n'
20130515 '      }\n'
20130515 '    } else {\n'
20130515 '      if (this.form.rendered) \n'
20130515 '        this.form.reset(); /* FileUploadField would fail when resetting a non-rendered form */\n'
20130515 '      //~ this.disable();\n'
20130515 '      //~ this.getBottomToolbar().disable();\n'
20130515 '      this.form.items.each(function(cmp){\n'
20130515 '        cmp.disable();\n'
20130515 '      },this);\n'
20130515 '      this.set_window_title(this.empty_title);\n'
20130515 '      //~ this.containing_window.window.setTitle(this.empty_title);\n'
20130515 '      if (!this.hide_navigator) {\n'
20130515 '        this.first.disable();\n'
20130515 '        this.prev.disable();\n'
20130515 '        this.next.disable();\n'
20130515 '        this.last.disable();\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 "    //~ console.log('20100531 Lino.DetailMixin.on_load_master_record',this.main_form);\n"
20130515 '    this.before_row_edit(record);\n'
20130515 '    if (after) after();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_selected : function() { return [ this.current_record ] },\n'
20130515 '  get_current_record : function() {  \n'
20130515 '    //~ console.log(20100714,this.current_record);\n'
20130515 '    return this.current_record \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_permalink_url : function() {\n'
20130515 '      var rec = this.get_current_record();\n'
20130515 '      if (rec && ! rec.phantom && rec.id != -99998)\n'
20130515 "          return '/api' + this.ls_url + '/' + rec.id;\n"
20130515 "      return '/api' + this.ls_url;\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  get_permalink_params : function() {\n'
20130515 '    var p = {};\n'
20130515 "    //~ var p = {an:'detail'};\n"
20130515 '    if (this.action_name)\n'
20130515 '        p.an = this.action_name;\n'
20130515 '    //~ var p = {an:this.action_name};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.activeTab) {\n'
20130515 '      var tab = main.items.indexOf(main.activeTab);\n'
20130515 "      //~ console.log('main.activeTab',tab,main.activeTab);\n"
20130515 '      if (tab) p.tab = tab;\n'
20130515 '    }\n'
20130515 '    this.add_param_values(p)\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.FormPanel.save() \n'
20130515 '  */\n'
20130515 '  save : function(after,switch_to_detail,action_name) {\n'
20130515 '    //~ var panel = this;\n'
20130515 "    //~ console.log('20121120 FormPanel.save');\n"
20130515 '    this.loadMask.show();\n'
20130515 '    var rec = this.get_current_record();\n'
20130515 '    if (this.has_file_upload) this.form.fileUpload = true;\n'
20130515 "    //~ console.log('FormPanel.save()',rec);\n"
20130515 '    if (!action_name) action_name = this.action_name;\n'
20130515 '    if (rec) {\n'
20130515 '      var p = {};\n'
20130515 '      Ext.apply(p,this.get_base_params());\n'
20130515 '      p.rp = this.getId();\n'
20130515 '      //~ if (this.action_name) \n'
20130515 '          //~ p.$ext_requests.URL_PARAM_ACTION_NAME = this.action_name;\n'
20130515 '      p.an = action_name;\n'
20130515 '      if (rec.phantom) {\n'
20130515 "        //~ if (this.action_name != 'insert') \n"
20130515 '            //~ console.log("Warning: phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url,\n"
20130515 "          method: 'POST',\n"
20130515 '          params: p, \n'
20130515 '          scope: this,\n'
20130515 '          success: function(form, action) {\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            /***\n'
20130515 '            Close this window, but update the status of the \n'
20130515 '            calling window.\n'
20130515 '            If the calling window is a detail on the same table,\n'
20130515 '            then it should skip to the new record. But only then.\n'
20130515 '            A successful response usually has a data_record,\n'
20130515 '            except if it is a fileupload form where some mysterious \n'
20130515 '            decoding problems (20120209) force us to return a record_id \n'
20130515 '            which will lead to an additional GET.\n'
20130515 '            ***/\n'
20130515 '            var url = this.ls_url;\n'
20130515 '            var ww = Lino.calling_window();\n'
20130515 '            if (ww && ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                   && ww.window.main_item.ls_url == this.ls_url) {\n'
20130515 '                //~ console.log("20120217 case 1");\n'
20130515 '                ww.status.record_id = action.result.record_id;\n'
20130515 '                ww.status.data_record = action.result.data_record;\n'
20130515 '                Lino.close_window();\n'
20130515 '            } else if (this.ls_detail_handler && switch_to_detail) {\n'
20130515 '                //~ console.log("20120217 case 2");\n'
20130515 '                Lino.kill_current_window();\n'
20130515 '                this.ls_detail_handler.run(null,{\n'
20130515 '                    record_id:action.result.record_id,\n'
20130515 '                    data_record: action.result.data_record,\n'
20130515 '                    base_params:this.get_base_params()\n'
20130515 '                });\n'
20130515 '            } else {\n'
20130515 '                //~ console.log("20120217 case 3");\n'
20130515 '                Lino.close_window();\n'
20130515 '            }\n'
20130515 '            //~ Lino.close_window(function(ww){\n'
20130515 '                //~ if (ww.window.main_item instanceof Lino.FormPanel \n'
20130515 '                    //~ && ww.window.main_item.ls_url == url) {\n'
20130515 '                  //~ ww.status.record_id = action.result.record_id,\n'
20130515 '                  //~ ww.status.data_record = action.result.data_record\n'
20130515 '                //~ }\n'
20130515 '            //~ });\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action);\n'
20130515 '          },\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      } else {\n'
20130515 "        //~ if (this.action_name != 'detail') \n"
20130515 '            //~ console.log("Warning: non-phantom record, but action_name is",this.action_name)\n'
20130515 '        this.form.submit({\n'
20130515 "          url: '/api' + this.ls_url + '/' + rec.id,\n"
20130515 "          method: 'PUT',\n"
20130515 "          //~ headers: { 'HTTP_X_REQUESTED_WITH' : 'XMLHttpRequest'},\n"
20130515 '          scope: this,\n'
20130515 '          params: p, \n'
20130515 '          success: function(form, action) {\n'
20130515 '            //~ panel.form.setValues(rec.data);\n'
20130515 '            //~ 20110701 panel.form.my_loadRecord(rec);\n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.notify(action.result.message);\n'
20130515 '            if (action.result.data_record)\n'
20130515 '                this.set_current_record(action.result.data_record,after);\n'
20130515 '            else\n'
20130515 '                console.log("Warning: no data_record in response to FormPanel.PUT")\n'
20130515 '            //~ this.refresh_with_after(after);\n'
20130515 '            //~ if (after) after(); else panel.refresh();\n'
20130515 '          },\n'
20130515 '          failure: function(form,action) { \n'
20130515 '            this.loadMask.hide();\n'
20130515 '            Lino.on_submit_failure(form,action)},\n'
20130515 '          clientValidation: true\n'
20130515 '        })\n'
20130515 '      }\n'
20130515 '    } else Lino.notify("Sorry, no current record.");\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,on_cancel : function() { \n'
20130515 '    this.get_containing_window().close();\n'
20130515 '  }\n'
20130515 '  ,on_ok : function() { \n'
20130515 '      this.save(null,true);\n'
20130515 '      //~ var rec = this.get_current_record();\n'
20130515 '      //~ if (rec && rec.phantom)\n'
20130515 '          //~ this.do_when_clean(true,function() { Lino.close_window(); });\n'
20130515 '  }\n'
20130515 '  ,config_containing_window : function(wincfg) { \n'
20130515 '      wincfg.keys = [\n'
20130515 '        { key: Ext.EventObject.ENTER, fn: this.on_ok, scope:this }\n'
20130515 '        ,{ key: Ext.EventObject.ESCAPE, fn: this.on_cancel, scope:this }\n'
20130515 '      ]\n'
20130515 '  }\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  /* not used (no longer possible without .dtl files)\n'
20130515 '  , edit_detail_config : function () {\n'
20130515 '    var active_tab = {};\n'
20130515 '    var main = this.items.get(0);\n'
20130515 '    if (main.getActiveTab !== undefined) {\n'
20130515 '      var tabitem = main.getActiveTab();\n'
20130515 '      Ext.apply(active_tab,{$ext_requests.URL_PARAM_TAB : main.items.indexOf(tabitem)});\n'
20130515 '    }\n'
20130515 '    var editor = new Ext.form.TextArea();\n'
20130515 '    var close = function() { win.close(); }\n'
20130515 '    var _this = this;\n'
20130515 '    var save = function() { \n'
20130515 '      //~ console.log(20110609,arguments); \n'
20130515 '      var params = {desc: editor.getValue()};\n'
20130515 '      Ext.apply(params,active_tab);\n'
20130515 '      var a = { \n'
20130515 '        params: params, \n'
20130515 "        method: 'PUT',\n"
20130515 "        url: ADMIN_URL + '/detail_config' + _this.ls_url,\n"
20130515 '        failure : Lino.ajax_error_handler(this),\n'
20130515 '        success: Lino.action_handler( _this, function(result) {\n'
20130515 "          //~ console.log('detail_config/save success',result);\n"
20130515 '          win.close();\n'
20130515 '          document.location = _this.get_permalink();\n'
20130515 '        })\n'
20130515 '      };\n'
20130515 "      //~ console.log('detail_config/save sent',a);\n"
20130515 '      _this.loadMask.show(); // 20120211\n'
20130515 '      Ext.Ajax.request(a);\n'
20130515 '    }\n'
20130515 "    var save_btn = new Ext.Button({text:'Save',handler:save,disabled:true});\n"
20130515 "    var win = new Ext.Window({title:'Detail Layout',\n"
20130515 "      items:editor, layout:'fit',\n"
20130515 '      width:500,height:500,\n'
20130515 "      bbar:[{text:'Cancel',handler:close},save_btn]});\n"
20130515 '    var a = { \n'
20130515 '      params:active_tab, \n'
20130515 "      method:'GET',\n"
20130515 "      url:ADMIN_URL+'/detail_config'+_this.ls_url,\n"
20130515 '      success : function(response) {\n'
20130515 '        if (response.responseText) {\n'
20130515 '          var result = Ext.decode(response.responseText);\n'
20130515 '          if (result.success) {\n'
20130515 '            editor.setValue(result.desc);\n'
20130515 '            save_btn.enable();\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    };\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    win.show();\n'
20130515 '  }\n'
20130515 '  */\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.getRowClass = function(record, rowIndex, rowParams, store) {\n'
20130515 '  if (record.phantom) {\n'
20130515 '    //~ console.log(20101009,record);\n'
20130515 '    //~ rowParams.bodyStyle = "color:red;background-color:blue";\n'
20130515 "    return 'lino-phantom-row';\n"
20130515 '    }\n'
20130515 "  //~ console.log('20101009 not a phantom:',record);\n"
20130515 "  return '';\n"
20130515 '}\n'
20130515 '\n'
20130515 '//~ FOO = 0;\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.GridStore = Ext.extend(Ext.data.ArrayStore,{ \n'
20130515 '  autoLoad: false\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    if (!options) options = {};\n'
20130515 '    if (!options.params) options.params = {};\n'
20130515 "    options.params.fmt = 'json';\n"
20130515 '    options.params.rp = this.grid_panel.getId();\n'
20130515 '    Lino.insert_subst_user(options.params); // since 20121016\n'
20130515 '      \n'
20130515 '    \n'
20130515 '    if (this.grid_panel.hide_top_toolbar) {\n'
20130515 '        //~ console.log("20120206 GridStore.load() toolbar is hidden");\n'
20130515 '        options.params.start = 0;\n'
20130515 '        if (this.grid_panel.preview_limit) {\n'
20130515 '          options.params.limit = this.grid_panel.preview_limit;\n'
20130515 '        }\n'
20130515 '    } else {\n'
20130515 '        var ps = this.grid_panel.calculatePageSize();\n'
20130515 '        if (!ps) {\n'
20130515 "            //~ this.gridpanel.on('render',this.load())\n"
20130515 '          //~ console.log("20120814 GridStore.load() failed to calculate pagesize");\n'
20130515 '          return false;\n'
20130515 '            //~ params.$URL_PARAM_LIMIT = 1;\n'
20130515 "            //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '            //~ return;\n'
20130515 '        } \n'
20130515 '        options.params.limit = ps;\n'
20130515 '      \n'
20130515 '        //~ options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '        //~ if (this.grid_panel.getTopToolbar().pageSize !=  ps) {\n'
20130515 '          //~ console.log("20120206 abort load because toolbar says pagesize",\n'
20130515 '            //~ this.grid_panel.getTopToolbar().pageSize,\n'
20130515 '            //~ "while actual pagesize is",ps);\n'
20130515 '            //~ return;\n'
20130515 '        //~ }\n'
20130515 '        \n'
20130515 '        this.grid_panel.getTopToolbar().pageSize =  ps;\n'
20130515 '        if (options.params.start == undefined)\n'
20130515 '            options.params.start = this.grid_panel.getTopToolbar().cursor;\n'
20130515 '      \n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    this.grid_panel.add_param_values(options.params);\n'
20130515 '    //~ Lino.insert_subst_user(options.params);\n'
20130515 '    //~ console.log("20120814 GridStore.load()",options.params,this.baseParams);\n'
20130515 '    //~ if (FOO > 0) {\n'
20130515 '        //~ foo.bar = baz;\n'
20130515 '    //~ } else FOO += 1;\n'
20130515 '    return Lino.GridStore.superclass.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '    \n'
20130515 'Lino.GridPanel = Ext.extend(Ext.grid.EditorGridPanel,Lino.MainPanel);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,Lino.PanelMixin);\n'
20130515 'Lino.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 "  quick_search_text : '',\n"
20130515 '  is_searching : false,\n'
20130515 '  disabled_in_insert_window : true,\n'
20130515 '  clicksToEdit:2,\n'
20130515 '  enableColLock: false,\n'
20130515 '  autoHeight: false,\n'
20130515 '  params_panel_hidden : false,\n'
20130515 '  preview_limit : undefined, \n'
20130515 '  //~ loadMask: true,\n'
20130515 '  //~ viewConfig: {\n'
20130515 '          //~ getRowClass: Lino.getRowClass,\n'
20130515 '          //~ emptyText:"$_(\'No data to display.\')"\n'
20130515 '        //~ },\n'
20130515 '  loadMask: {msg:"Please wait..."},\n'
20130515 '  \n'
20130515 '  constructor : function(config){\n'
20130515 '\n'
20130515 '    config.plugins = [new Lino.GridFilters()];\n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '        //~ console.log("20111206 install refresh");\n'
20130515 "        //~ this.containing_window.on('show',this.refresh,this);\n"
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  is_loading : function() { \n'
20130515 '    //~ return this.store.getCount() > 0; \n'
20130515 '    return !this.loadMask.disabled; \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_config_containing_window : function(wincfg) { \n'
20130515 '      //~ temporarily remove save_grid_config button (see /blog(2012/1107)\n'
20130515 '      if (wincfg.tools != undefined) \n'
20130515 '        wincfg.tools = [\n'
20130515 '          //~ {handler:this.save_grid_data,\n'
20130515 '            //~ qtip:"$_("Save Grid Data")",\n'
20130515 '            //~ scope:this, id:"save_data"}, // 20120814\n'
20130515 '          {handler:this.save_grid_config,\n'
20130515 '            qtip:"Save Grid Configuration",\n'
20130515 '            scope:this, id:"save"}\n'
20130515 '        ].concat(wincfg.tools);\n'
20130515 '      //~ wincfg.listeners = { show: ... };\n'
20130515 '  },\n'
20130515 '  init_containing_window : function(win) { \n'
20130515 '    //~ console.log("20111206 install refresh");\n'
20130515 "    //~ win.on('show',this.refresh,this);\n"
20130515 '  },\n'
20130515 '  \n'
20130515 '  initComponent : function(){\n'
20130515 '    \n'
20130515 '    /* \n'
20130515 '    Problem 20111206:\n'
20130515 "    When a GridPanel is the main item of the window, then it doesn't \n"
20130515 "    have it's own header but uses the window's header bar.\n"
20130515 '    We must do this in initComponent because e.g. in beforerender \n'
20130515 "    it's already to late: a header element has been created because \n"
20130515 '    there was a title.\n'
20130515 '    But Lino.Window adds itself as `this.containing_window` \n'
20130515 '    only after the GridPanel has been initialized.\n'
20130515 '    Workaround is to generate a line "params.containing_window = true;" \n'
20130515 '    in the handler function.\n'
20130515 '    */ \n'
20130515 '    //~ if (this.containing_window) {\n'
20130515 '    if (this.is_main_window) {\n'
20130515 "        //~ console.log(20111206, 'delete title',this.title,'from',this);\n"
20130515 '        //~ delete this.title;\n'
20130515 '        this.tools = undefined;  \n'
20130515 '        this.title = undefined;  /* simply deleting it \n'
20130515 "          isn't enough because that would only \n"
20130515 '          unhide the title defined in some base class. */\n'
20130515 '    } \n'
20130515 "    //~ else console.log(20111206, 'dont delete title',this.title,'from',this);\n"
20130515 '    \n'
20130515 '    /* e.g. when slave gridwindow called from a permalink */\n'
20130515 '    //~ if (this.base_params) Ext.apply(bp,this.base_params);  \n'
20130515 "    //~ bp['fmt'] = 'json';\n"
20130515 '    \n'
20130515 '    //~ function on_proxy_write( proxy, action,data, response,rs,options) {\n'
20130515 "      //~ console.log('20120814 on_proxy_write',action,data,response)\n"
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '    //~ }\n'
20130515 '    //~ function on_proxy_load( proxy, transactionObject, callbackOptions ) {\n'
20130515 "      //~ console.log('on_proxy_load',transactionObject)\n"
20130515 '    //~ }\n'
20130515 '    var proxy = new Ext.data.HttpProxy({ \n'
20130515 '      // 20120814 \n'
20130515 "      url: '/api' + this.ls_url\n"
20130515 '      ,method: "GET"\n'
20130515 "      //~ ,url: ADMIN_URL + '/restful' + this.ls_url\n"
20130515 '      //~ ,restful: true \n'
20130515 '      //~ ,listeners: {load:on_proxy_load} \n'
20130515 '      //~ ,listeners: {write:on_proxy_write} \n'
20130515 '    });\n'
20130515 '    //~ config.store = new Ext.data.JsonStore({ \n'
20130515 '    //~ this.store = new Ext.data.ArrayStore({ \n'
20130515 '    this.store = new Lino.GridStore({ \n'
20130515 '      grid_panel: this\n'
20130515 '      ,listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,remoteSort: true\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      //~ ,id: "id" \n'
20130515 '      ,proxy: proxy\n'
20130515 '      //~ autoLoad: this.containing_window ? true : false\n'
20130515 '      ,idIndex: this.pk_index\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,fields: this.ls_store_fields\n'
20130515 '      ,idProperty: this.ls_id_property \n'
20130515 '      // 20120814\n'
20130515 '      //~ ,writer : new Ext.data.JsonWriter({\n'
20130515 '        //~ writeAllFields: false\n'
20130515 '        //~ ,listful: true\n'
20130515 '      //~ })\n'
20130515 '      //~ ,restful : true\n'
20130515 '    });\n'
20130515 '      \n'
20130515 "    //~ console.log('config.pk_index',config.pk_index,config.store),\n"
20130515 '    delete this.ls_store_fields;\n'
20130515 '      \n'
20130515 '    var this_ = this;\n'
20130515 '    //~ var grid = this;\n'
20130515 "    this.store.on('load', function() {\n"
20130515 "        //~ console.log('20120814 GridStore.on(load)',this_.store);\n"
20130515 '        //~ var da = this_.store.reader.arrayData.disabled_actions;\n'
20130515 '        //~ if (da) {\n'
20130515 '            //~ this.cmenu.cascade(function(item){ \n'
20130515 '              //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '              //~ if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '            //~ });\n'
20130515 '        //~ };\n'
20130515 '        this_.set_param_values(this_.store.reader.arrayData.param_values);\n'
20130515 '        //~ this_.set_status(this_.store.reader.arrayData.status);\n'
20130515 '        //~ 20120918\n'
20130515 '        if (this_.store.reader.arrayData.no_data_text) {\n'
20130515 '            //~ this.viewConfig.emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().emptyText = this_.store.reader.arrayData.no_data_text;\n'
20130515 '            this.getView().refresh();\n'
20130515 '        }\n'
20130515 '        if (this_.containing_window)\n'
20130515 '            this_.set_window_title(this_.store.reader.arrayData.title);\n'
20130515 '            //~ this_.containing_window.setTitle(this_.store.reader.arrayData.title);\n'
20130515 '        if (!this.is_searching) { // disabled 20121025: quick_search_field may not lose focus\n'
20130515 '          this.is_searching = false;\n'
20130515 '          if (this_.selModel.getSelectedCell){\n'
20130515 '              if (this_.getStore().getCount()) // there may be no data\n'
20130515 '                  this_.selModel.select(0,0); \n'
20130515 '          } else {\n'
20130515 '              this_.selModel.selectFirstRow();\n'
20130515 '              this_.getView().focusEl.focus();\n'
20130515 '          }\n'
20130515 '        } \n'
20130515 '        //~ else console.log("is_searching -> no focussing");\n'
20130515 '        //~ var t = this.getTopToolbar();\n'
20130515 '        //~ var activePage = Math.ceil((t.cursor + t.pageSize) / t.pageSize);\n'
20130515 '        //~ this.quick_search_field.focus(); // 20121024\n'
20130515 '      }, this\n'
20130515 '    );\n'
20130515 '    var actions = Lino.build_buttons(this,this.ls_bbar_actions);\n'
20130515 '    //~ Ext.apply(config,Lino.build_buttons(this,config.ls_bbar_actions));\n'
20130515 '    //~ config.bbar, this.cmenu = Lino.build_buttons(this,config.ls_bbar_actions);\n'
20130515 '    //~ this.cmenu = new Ext.menu.Menu({items: config.bbar});\n'
20130515 '    delete this.ls_bbar_actions\n'
20130515 '    if (actions) {\n'
20130515 '        this.cmenu = actions.cmenu;\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (!this.hide_top_toolbar) {  \n'
20130515 '      var tbar = [ \n'
20130515 '        this.quick_search_field = new Ext.form.TextField({ \n'
20130515 '          //~ fieldLabel: "Search"\n'
20130515 '          listeners: { \n'
20130515 '            scope:this_\n'
20130515 '            //~ ,change:this_.search_change\n'
20130515 '            \n'
20130515 '            ,render: Lino.quicktip_renderer("Quick Search","Enter a text to use as quick search filter")\n'
20130515 '            \n'
20130515 '            //~ ,keypress: this.search_keypress \n'
20130515 '            ,blur: function() { this.is_searching = false}\n'
20130515 '          }\n'
20130515 '          ,validator:function(value) { return this_.search_validate(value) }\n'
20130515 '          //~ ,tooltip: "Enter a quick search text, then press TAB"\n'
20130515 '          //~ value: text\n'
20130515 '          //~ scope:this, \n'
20130515 '          //~ ,enableKeyEvents: true\n'
20130515 '          //~ listeners: { keypress: this.search_keypress }, \n'
20130515 '          //~ id: "seachString" \n'
20130515 '      })];\n'
20130515 '      tbar = this.add_params_panel(tbar);\n'
20130515 '      tbar = tbar.concat([\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[csv]", \n'
20130515 '          tooltip: "Export this table to a .csv file", \n'
20130515 "          iconCls: 'x-tbar-csv',\n"
20130515 '          handler: function() { \n'
20130515 '            //~ 20130116 var p = Ext.apply({},this.get_base_params());\n'
20130515 "            //~ 20130116 p.fmt = 'csv';\n"
20130515 '            //~ url += "?" + Ext.urlEncode(p);\n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "csv";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            \n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        //~ { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          //~ handler: function() { \n'
20130515 '            //~ var p = this.get_current_grid_config();\n'
20130515 '            //~ Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PRINTER";\n'
20130515 '            //~ this.add_param_values(p);\n'
20130515 '            //~ window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          //~ } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[html]", \n'
20130515 '          tooltip: "Show this table in plain html", \n'
20130515 "          iconCls: 'x-tbar-html',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            //~ since 20121226 p.$ext_requests.URL_PARAM_FORMAT = "$ext_requests.URL_FORMAT_PLAIN";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            //~ since 20121226 window.open(ADMIN_URL+\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '            window.open(\'/plain\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } },\n'
20130515 '        { scope:this, \n'
20130515 '          //~ text: "[pdf]", \n'
20130515 '          tooltip: "Show this table as a pdf document", \n'
20130515 "          iconCls: 'x-tbar-pdf',\n"
20130515 '          handler: function() { \n'
20130515 '            var p = this.get_current_grid_config();\n'
20130515 '            Ext.apply(p,this.get_base_params());\n'
20130515 '            p.fmt = "pdf";\n'
20130515 '            this.add_param_values(p);\n'
20130515 '            window.open(\'/api\'+this.ls_url + "?" + Ext.urlEncode(p)) \n'
20130515 '          } }\n'
20130515 '      ]);\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      var menu = [];\n'
20130515 '      var set_gc = function(index) {\n'
20130515 '        return function() {\n'
20130515 "          //~ console.log('set_gc() 20100812');\n"
20130515 '          this.getColumnModel().setConfig(\n'
20130515 '              this.apply_grid_config(index,this.ls_grid_configs,this.ls_columns));\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      for (var i = 0; i < this.ls_grid_configs.length;i++) {\n'
20130515 '        var gc = this.ls_grid_configs[i];\n'
20130515 '        menu.push({text:gc.label,handler:set_gc(i),scope:this})\n'
20130515 '      }\n'
20130515 '      if(menu.length > 1) {\n'
20130515 '        tbar = tbar.concat([\n'
20130515 '          { text:"View",\n'
20130515 '            menu: menu,\n'
20130515 '            tooltip:"Select another view of this report"\n'
20130515 '          }\n'
20130515 '        ]);\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      if (actions) {\n'
20130515 '        tbar = tbar.concat(actions.bbar);\n'
20130515 '          //~ this.bbar = actions.bbar;\n'
20130515 '      }\n'
20130515 '      \n'
20130515 '      this.tbar = new Ext.PagingToolbar({ \n'
20130515 '        store: this.store, \n'
20130515 '        prependButtons: true, \n'
20130515 '        //~ pageSize: this.page_length, \n'
20130515 '        pageSize: 1, \n'
20130515 '        displayInfo: true, \n'
20130515 '        beforePageText: "Page",\n'
20130515 '        afterPageText: "of {0}",\n'
20130515 '        displayMsg: "Displaying {0} - {1} of {2}",\n'
20130515 '        firstText: "Premi\xc3\xa8re page",\n'
20130515 '        lastText: "Derni\xc3\xa8re page",\n'
20130515 '        prevText: "Page pr\xc3\xa9c\xc3\xa9dente",\n'
20130515 '        nextText: "Page suivante",\n'
20130515 '        items: tbar\n'
20130515 '      });\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ var ps = this.calculatePageSize();\n'
20130515 '          //~ if (ps && ps != this.getTopToolbar().pageSize) {\n'
20130515 "              //~ // console.log('20120203 resize : pageSize',this.getTopToolbar().pageSize,'->',ps);\n"
20130515 '              //~ // this.getTopToolbar().pageSize =  ps;\n'
20130515 '              //~ cmp.refresh();\n'
20130515 '              //~ // this.getTopToolbar().doRefresh();\n'
20130515 '          //~ }\n'
20130515 '        //~ }, this);\n'
20130515 "      //~ this.on('resize', function(cmp,aw,ah,rw,rh) {\n"
20130515 '          //~ cmp.getTopToolbar().pageSize = this.calculatePageSize(aw,ah,rw,rh) || 10;\n'
20130515 '          //~ cmp.refresh();\n'
20130515 '        //~ }, this, {delay:500});\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ delete this.page_length\n'
20130515 '    \n'
20130515 '    \n'
20130515 '      \n'
20130515 '    if (this.ls_quick_edit) {\n'
20130515 '      this.selModel = new Ext.grid.CellSelectionModel()\n'
20130515 '      this.get_selected = function() {\n'
20130515 '        //~ console.log(this.getSelectionModel().selection);\n'
20130515 '        if (this.selModel.selection)\n'
20130515 '            return [ this.selModel.selection.record ];\n'
20130515 '        return [this.store.getAt(0)];\n'
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        if (this.getSelectionModel().selection) \n'
20130515 '          return this.selModel.selection.record;\n'
20130515 '        return this.store.getAt(0);\n'
20130515 '      };\n'
20130515 '    } else { \n'
20130515 '      this.selModel = new Ext.grid.RowSelectionModel() \n'
20130515 '      this.get_selected = function() {\n'
20130515 '        var sels = this.selModel.getSelections();\n'
20130515 '        if (sels.length == 0) sels = [this.store.getAt(0)];\n'
20130515 '        return sels\n'
20130515 '        //~ var sels = this.getSelectionModel().getSelections();\n'
20130515 "        //~ return Ext.pluck(sels,'id');\n"
20130515 '      };\n'
20130515 '      this.get_current_record = function() { \n'
20130515 '        var rec = this.selModel.getSelected();\n'
20130515 '        if (rec == undefined) rec = this.store.getAt(0);\n'
20130515 '        return rec\n'
20130515 '      };\n'
20130515 '    };\n'
20130515 '    delete this.ls_quick_edit;\n'
20130515 '    \n'
20130515 '    this.columns  = this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns);\n'
20130515 '    \n'
20130515 '    //~ var grid = this;\n'
20130515 '    //~ this.colModel = new Ext.grid.ColumnModel({\n'
20130515 '      //~ columns: this.apply_grid_config(this.gc_name,this.ls_grid_configs,this.ls_columns),\n'
20130515 '      //~ isCellEditable: function(col, row) {\n'
20130515 '        //~ var record = grid.store.getAt(row);\n'
20130515 "        //~ console.log('20120514',col,record); // dataIndex\n"
20130515 '        //~ var dataIndex = grid.colModel.getDataIndex(col);\n'
20130515 "        //~ if (dataIndex in record.data['disabled_fields']) {\n"
20130515 '            //~ Lino.notify("$_("This field is disabled")");\n'
20130515 '            //~ return false;\n'
20130515 '        //~ }\n'
20130515 '        //~ return Ext.grid.ColumnModel.prototype.isCellEditable.call(this, col, row);\n'
20130515 '      //~ }\n'
20130515 '    //~ });    \n'
20130515 '    \n'
20130515 '    \n'
20130515 '    Lino.GridPanel.superclass.initComponent.call(this);\n'
20130515 '    \n'
20130515 '    //~ if (this.containing_window) \n'
20130515 "        //~ this.on('afterlayout', this.refresh, this);\n"
20130515 "        //~ this.on('afterrender', this.refresh,this);\n"
20130515 '    //~ else\n'
20130515 "        //~ this.on('show', this.refresh,this);\n"
20130515 "    //~ this.on('afterlayout', function() {\n"
20130515 '      //~ if (this.id == "ext-comp-1157") \n'
20130515 '        //~ console.log("20120213 afterlayout",this); \n'
20130515 '      //~ // this.refresh();\n'
20130515 '      //~ },this);\n'
20130515 "    //~ this.on('afterrender', this.refresh);\n"
20130515 "    //~ this.on('resize', this.refresh,this,{delay:500});\n"
20130515 '    //~ this.on(\'resize\', function(){console.log("20120213 resize",arguments)},this);\n'
20130515 "    this.on('resize', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments)\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('viewready', function(){\n"
20130515 '      //~ console.log("20120213 resize",arguments);\n'
20130515 '      this.view_is_ready = true;\n'
20130515 '      this.refresh();\n'
20130515 '      },this);\n'
20130515 "    this.on('afteredit', this.on_afteredit); // 20120814\n"
20130515 "    //~ this.on('afteredit', this.new_on_afteredit);\n"
20130515 "    this.on('beforeedit', this.on_beforeedit);\n"
20130515 "    this.on('beforeedit',function(e) { this.before_row_edit(e.record)},this);\n"
20130515 "    this.on('cellcontextmenu', Lino.cell_context_menu, this);\n"
20130515 "    //~ this.on('contextmenu', Lino.grid_context_menu, this);\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ if (this.id == "ext-comp-1157") captureEvents(this);    \n'
20130515 '    \n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ onResize : function(){\n'
20130515 '      //~ console.log("20120206 GridPanel.onResize",arguments);\n'
20130515 '      //~ Lino.GridPanel.superclass.onResize.apply(this, arguments);\n'
20130515 '      //~ this.refresh();\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  \n'
20130515 '  get_status : function(){\n'
20130515 '    var st = { base_params : this.get_base_params()};\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '        st.current_page = this.getTopToolbar().current;\n'
20130515 '    }\n'
20130515 '    st.param_values = this.status_param_values;\n'
20130515 '    //~ console.log("20120213 GridPanel.get_status",st);\n'
20130515 '    return st;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* \n'
20130515 '  Lino.GridPanel.set_status() \n'
20130515 '  */\n'
20130515 '  set_status : function(status){\n'
20130515 '    //~ console.log("20120918 GridPanel.set_status",status);\n'
20130515 '    this.clear_base_params();\n'
20130515 '    if (status == undefined) status = {};\n'
20130515 '    this.set_param_values(status.param_values);\n'
20130515 '    if (status.base_params) { \n'
20130515 '      this.set_base_params(status.base_params);\n'
20130515 '    }\n'
20130515 '    if (!this.hide_top_toolbar) {\n'
20130515 '      //~ console.log("20120213 GridPanel.getTopToolbar().changePage",\n'
20130515 '          //~ status.current_page || 1);\n'
20130515 '      this.getTopToolbar().changePage(status.current_page || 1);\n'
20130515 '    }\n'
20130515 "    //~ this.fireEvent('resize');\n"
20130515 '    //~ this.refresh.defer(100,this); \n'
20130515 '    //~ this.onResize.defer(100,this); \n'
20130515 '    //~ this.refresh(); \n'
20130515 '    //~ this.doLayout(); \n'
20130515 '    //~ this.onResize(); \n'
20130515 '    //~ this.store.load();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  refresh : function(unused) { \n'
20130515 '    this.refresh_with_after();\n'
20130515 '  },\n'
20130515 '  refresh_with_after : function(after) { \n'
20130515 "    //~ Lino.notify('20120204 Lino.GridPanel.refresh');\n"
20130515 "    //~ Lino.notify('Lino.GridPanel.refresh '+this.store.proxy.url);\n"
20130515 "    //~ var bp = { fmt:'json' }\n"
20130515 '    if (this.containing_panel) {\n'
20130515 '        //~ Ext.apply(p,this.master_panel.get_master_params());\n'
20130515 '        //~ Ext.apply(options.params,this.containing_panel.get_master_params());\n'
20130515 '        this.set_base_params(this.containing_panel.get_master_params());\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    if (! this.view_is_ready) return;\n'
20130515 '    \n'
20130515 '    var options = {};\n'
20130515 '    if (after) {\n'
20130515 '        options.callback = function(r,options,success) {if(success) after()}\n'
20130515 '    }\n'
20130515 '      \n'
20130515 '    //~ if (!this.rendered) {\n'
20130515 '        //~ console.log("20120206 GridPanel.refresh() must wait until rendered",options);\n'
20130515 "        //~ this.grid_panel.on('render',this.load.createDelegate(this,options))\n"
20130515 '        //~ return;\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    this.store.load(options);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  /* pageSize depends on grid height (Trying to remove scrollbar)\n'
20130515 '  Thanks to \n'
20130515 '  - Christophe Badoit on http://www.sencha.com/forum/showthread.php?82647\n'
20130515 '  - http://www.sencha.com/forum/archive/index.php/t-37231.html\n'
20130515 '  */\n'
20130515 '  calculatePageSize : function(second_attempt) {\n'
20130515 '    //~ if (!this.rendered) { \n'
20130515 '    if (!this.view_is_ready) { \n'
20130515 "      //~ console.log('Cannot calculatePageSize() : not rendered');\n"
20130515 '      return false; }\n'
20130515 '    //~ if (!this.isVisible()) { \n'
20130515 "      //~ console.log('calculatePageSize : not visible');\n"
20130515 '      //~ return false; }\n'
20130515 '      \n'
20130515 "    //~ console.log('getFrameHeight() is',this.getFrameHeight());\n"
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('mainBody.getHeight() is',this.getView().mainBody.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() is',this.getInnerHeight());\n"
20130515 "    //~ console.log('getHeight() is',this.getHeight());\n"
20130515 "    //~ console.log('el.getHeight() is',this.getEl().getHeight());\n"
20130515 "    //~ console.log('getGridEl().getHeight() is',this.getGridEl().getHeight());\n"
20130515 "    //~ console.log('getOuterSize().height is',this.getOuterSize().height);\n"
20130515 "    //~ console.log('getBox().height is',this.getBox().height);\n"
20130515 "    //~ console.log('getResizeEl.getHeight() is',this.getResizeEl().getHeight());\n"
20130515 "    //~ console.log('getLayoutTarget().getHeight() is',this.getLayoutTarget().getHeight());\n"
20130515 '      \n'
20130515 '    var rowHeight = this.getFrameHeight();\n'
20130515 '    //~ var rowHeight = 52; // experimental value\n'
20130515 '    var row = this.view.getRow(0);\n'
20130515 '    if (row) {\n'
20130515 "      //~ console.log('20120213 yes');\n"
20130515 '      rowHeight = Ext.get(row).getHeight();\n'
20130515 '    }\n'
20130515 "    //~ console.log('rowHeight is ',rowHeight,this,caller);\n"
20130515 '    //~ this.getView().syncScroll();\n'
20130515 '    //~ this.getView().initTemplates();\n'
20130515 '    var height = this.getView().scroller.getHeight();\n'
20130515 "    //~ console.log('getView().scroller.getHeight() is',this.getView().scroller.getHeight());\n"
20130515 "    //~ console.log('getInnerHeight() - getFrameHeight() is',\n"
20130515 "      //~ this.getInnerHeight(), '-',\n"
20130515 "      //~ this.getFrameHeight(), '=',\n"
20130515 '      //~ this.getInnerHeight() - this.getFrameHeight());\n'
20130515 '    //~ var height = this.getView().mainBody.getHeight();\n'
20130515 '    //~ var height = this.getView().mainWrap.getHeight();\n'
20130515 '    //~ var height = this.getView().resizeMarker.getHeight();\n'
20130515 '    //~ this.syncSize();\n'
20130515 '    //~ var height = this.getInnerHeight() - this.getFrameHeight();\n'
20130515 '    //~ var height = this.getHeight() - this.getFrameHeight();\n'
20130515 '    height -= Ext.getScrollBarWidth(); // leave room for a possible horizontal scrollbar... \n'
20130515 '    //~ height -= this.getView().scrollOffset;\n'
20130515 '    var ps = Math.floor(height / rowHeight);\n'
20130515 "    //~ console.log('20120203 calculatePageSize():',height,'/',rowHeight,'->',ps);\n"
20130515 '    ps -= 1; // leave room for a possible phantom row\n'
20130515 '    //~ return (ps > 1 ? ps : false);\n'
20130515 '    if (ps > 1) return ps;\n'
20130515 "    //~ console.log('calculatePageSize() found less than 1 row:',height,'/',rowHeight,'->',ps);\n"
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '    return 5; // preview_limit\n'
20130515 '    //~ if (second_attempt) {\n'
20130515 "        //~ console.log('calculatePageSize() abandons after second attempt:',\n"
20130515 "          //~ height,'/',rowHeight,'->',ps);\n"
20130515 '      //~ return 5;\n'
20130515 '    //~ }\n'
20130515 '    //~ return this.calculatePageSize.defer(500,this,[true]);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  onCellDblClick : function(grid, row, col){\n'
20130515 '      //~ console.log("20120307 onCellDblClick",this,grid, row, col);\n'
20130515 '      if (this.ls_detail_handler) {\n'
20130515 "          //~ Lino.notify('show detail');\n"
20130515 '          Lino.show_detail(this);\n'
20130515 '          return false;\n'
20130515 '      }else{\n'
20130515 "        //~ console.log('startEditing');\n"
20130515 '        this.startEditing(row,col);\n'
20130515 '      }\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_base_params : function() {\n'
20130515 '    //~ return this.containing_window.config.base_params;\n'
20130515 '    //~ console.log(20120717,this.store.baseParams);\n'
20130515 '    var p = Ext.apply({},this.store.baseParams);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    //~ console.log("20120717 GRidPanel.get_base_params() returns",p);\n'
20130515 '    return p;\n'
20130515 '    //~ return this.store.baseParams;\n'
20130515 '  },\n'
20130515 '  set_base_params : function(p) {\n'
20130515 "    //~ console.log('GridPanel.set_base_params',p)\n"
20130515 '    for (k in p) this.store.setBaseParam(k,p[k]);\n'
20130515 '    //~ this.store.baseParams = p;\n'
20130515 '    if (p.query) \n'
20130515 '        this.quick_search_field.setValue(p.query);\n'
20130515 '    //~ if (p.param_values) \n'
20130515 '        //~ this.set_param_values(p.param_values);  \n'
20130515 '  },\n'
20130515 '  clear_base_params : function() {\n'
20130515 '      this.store.baseParams = {};\n'
20130515 '      Lino.insert_subst_user(this.store.baseParams);\n'
20130515 '  },\n'
20130515 '  set_base_param : function(k,v) {\n'
20130515 '    this.store.setBaseParam(k,v);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  //~ get_permalink_params : function() {\n'
20130515 '    //~ var p = {};\n'
20130515 '    //~ return p;\n'
20130515 '  //~ },\n'
20130515 '  \n'
20130515 '  before_row_edit : function(record) {},\n'
20130515 '    \n'
20130515 '  //~ search_keypress : function(){\n'
20130515 '    //~ console.log("2012124 search_keypress",arguments);\n'
20130515 '  //~ },\n'
20130515 '  search_validate : function(value) {\n'
20130515 '    if (value == this.quick_search_text) return true;\n'
20130515 '    this.is_searching = true;\n'
20130515 "    //~ console.log('search_validate',value)\n"
20130515 '    this.quick_search_text = value;\n'
20130515 "    this.set_base_param('query',value); \n"
20130515 '    //~ this.getTopToolbar().changePage(1);\n'
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '    return true;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  search_change : function(field,oldValue,newValue) {\n'
20130515 "    //~ console.log('search_change',field.getValue(),oldValue,newValue)\n"
20130515 "    this.set_base_param('query',field.getValue()); \n"
20130515 '    this.getTopToolbar().moveFirst();\n'
20130515 '    //~ this.refresh();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  apply_grid_config : function(index,grid_configs,rpt_columns) {\n'
20130515 '    //~ var rpt_columns = this.ls_columns;\n'
20130515 '    var gc = grid_configs[index];    \n'
20130515 "    //~ console.log('apply_grid_config() 20100812',name,gc);\n"
20130515 '    this.gc_name = index;\n'
20130515 '    if (gc == undefined) {\n'
20130515 '      return rpt_columns;\n'
20130515 '      //~ config.columns = config.ls_columns;\n'
20130515 '      //~ return;\n'
20130515 '    } \n'
20130515 '    //~ delete config.ls_filters\n'
20130515 '    \n'
20130515 '    //~ console.log(20100805,config.ls_columns);\n'
20130515 '    var columns = Array(gc.columns.length);\n'
20130515 '    for (var j = 0; j < rpt_columns.length;j++) {\n'
20130515 '      var col = rpt_columns[j];\n'
20130515 '      for (var i = 0; i < gc.columns.length; i++) {\n'
20130515 '        if (col.dataIndex == gc.ci[i]) {\n'
20130515 '          col.width = gc.cw[i];\n'
20130515 '          col.hidden = gc.ch[i];\n'
20130515 '          columns[i] = col;\n'
20130515 '          break;\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    //~ var columns = Array(rpt_columns.length);\n'
20130515 '    //~ for (var i = 0; i < rpt_columns.length; i++) {\n'
20130515 '      //~ columns[i] = rpt_columns[gc.columns[i]];\n'
20130515 '      //~ columns[i].width = gc.widths[i];\n'
20130515 '    //~ }\n'
20130515 '    \n'
20130515 '    //~ if (gc.hidden_cols) {\n'
20130515 '      //~ for (var i = 0; i < gc.hidden_cols.length; i++) {\n'
20130515 '        //~ var hc = gc.hidden_cols[i];\n'
20130515 '        //~ for (var j = 0; j < columns.length;j++) {\n'
20130515 '          //~ var col = columns[j];\n'
20130515 '          //~ if (col.dataIndex == hc) {\n'
20130515 '            //~ col.hidden = true;\n'
20130515 '            //~ break\n'
20130515 '          //~ }\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '    if (gc.filters) {\n'
20130515 "      //~ console.log(20100811,'config.ls_filters',config.ls_filters);\n"
20130515 "      //~ console.log(20100811,'config.ls_grid_config.filters',config.ls_grid_config.filters);\n"
20130515 '      for (var i = 0; i < gc.filters.length; i++) {\n'
20130515 '        var fv = gc.filters[i];\n'
20130515 '        for (var j = 0; j < columns.length;j++) {\n'
20130515 '          var col = columns[j];\n'
20130515 '          if (col.dataIndex == fv.field) {\n'
20130515 "            //~ console.log(20100811, f,' == ',fv);\n"
20130515 "            if (fv.type == 'string') {\n"
20130515 '              col.filter.value = fv.value;\n'
20130515 '              //~ if (fv.comparison !== undefined) f.comparison = fv.comparison;\n'
20130515 '            } else {\n'
20130515 '              //~ console.log(20100811, fv);\n'
20130515 '              col.filter.value = {};\n'
20130515 '              col.filter.value[fv.comparison] = fv.value;\n'
20130515 '            }\n'
20130515 '            break;\n'
20130515 '          }\n'
20130515 '        };\n'
20130515 '      }\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    return columns;\n'
20130515 '    //~ config.columns = cols;\n'
20130515 '    //~ delete config.ls_columns\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  get_current_grid_config : function () {\n'
20130515 '    var cm = this.getColumnModel();\n'
20130515 '    var widths = Array(cm.config.length);\n'
20130515 '    var hiddens = Array(cm.config.length);\n'
20130515 '    //~ var hiddens = Array(cm.config.length);\n'
20130515 '    var columns = Array(cm.config.length);\n'
20130515 '    //~ var columns = Array(cm.config.length);\n'
20130515 '    //~ var hidden_cols = [];\n'
20130515 '    //~ var filters = this.filters.getFilterValues();\n'
20130515 '    var p = this.filters.buildQuery(this.filters.getFilterData())\n'
20130515 '    for (var i = 0; i < cm.config.length; i++) {\n'
20130515 '      var col = cm.config[i];\n'
20130515 '      columns[i] = col.dataIndex;\n'
20130515 '      //~ hiddens[i] = col.hidden;\n'
20130515 '      widths[i] = col.width;\n'
20130515 '      hiddens[i] = col.hidden;\n'
20130515 '      //~ if (col.hidden) hidden_cols.push(col.dataIndex);\n'
20130515 '    }\n'
20130515 "    //~ p['hidden_cols'] = hidden_cols;\n"
20130515 '    p.cw = widths;\n'
20130515 '    p.ch = hiddens;\n'
20130515 '    p.ci = columns;\n'
20130515 "    //~ p['widths'] = widths;\n"
20130515 "    //~ p['hiddens'] = hiddens;\n"
20130515 "    //~ p['columns'] = columns;\n"
20130515 "    p['name'] = this.gc_name;\n"
20130515 '    //~ var gc = this.ls_grid_configs[this.gc_name];\n'
20130515 '    //~ if (gc !== undefined) \n'
20130515 "        //~ p['label'] = gc.label\n"
20130515 "    //~ console.log('20100810 save_grid_config',p);\n"
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_manage_grid_configs : function() {\n'
20130515 '    var data = [];\n'
20130515 '    for (k in this.ls_grid_configs) {\n'
20130515 '      var v = this.ls_grid_configs[k];\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i)\n'
20130515 '    }\n'
20130515 '    if (this.ls_grid_configs[this.gc_name] == undefined) {\n'
20130515 '      var v = this.get_current_grid_config();\n'
20130515 '      var i = [k,String(v.columns),String(v.hidden_cols),String(v.filters)];\n'
20130515 '      data.push(i);\n'
20130515 '    }\n'
20130515 '    //~ console.log(20100811, data);\n'
20130515 '    var main = new Ext.grid.GridPanel({\n'
20130515 '      store: new Ext.data.ArrayStore({\n'
20130515 '        idIndex:0,\n'
20130515 "        fields:['name','columns','hidden_cols','filters'],\n"
20130515 '        autoDestroy:true,\n'
20130515 '        data: data}),\n'
20130515 '      //~ autoHeight:true,\n'
20130515 '      selModel: new Ext.grid.RowSelectionModel(),\n'
20130515 '      listeners: { \n'
20130515 '        rowdblclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row doubleclicked',grid, rowIndex,e);\n"
20130515 '        },\n'
20130515 '        rowclick: function(grid,rowIndex,e) {\n'
20130515 "          console.log('row clicked',grid, rowIndex,e);\n"
20130515 '        }\n'
20130515 '      },\n'
20130515 '      columns: [ \n'
20130515 "        {dataIndex:'name',header:'Name'}, \n"
20130515 "        {dataIndex:'columns',header:'columns'}, \n"
20130515 "        {dataIndex:'hidden_cols',header:'hidden columns'}, \n"
20130515 "        {dataIndex:'filters',header:'filters'} \n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 "    var win = new Ext.Window({title:'GridConfigs Manager',layout:'fit',items:main,height:200});\n"
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  unused_edit_grid_config : function(name) {\n'
20130515 '    gc = this.ls_grid_configs[name];\n'
20130515 '    var win = new Ext.Window({\n'
20130515 "      title:'Edit Grid Config',layout:'vbox', \n"
20130515 "      //~ layoutConfig:'stretch'\n"
20130515 '      items:[\n'
20130515 "        {xtype:'text', value: gc.name},\n"
20130515 "        {xtype:'text', value: gc.columns},\n"
20130515 "        {xtype:'text', value: gc.hidden_cols},\n"
20130515 "        {xtype:'text', value: gc.filters}\n"
20130515 '      ]\n'
20130515 '    });\n'
20130515 '    win.show();\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  save_grid_config : function () {\n'
20130515 "    //~ console.log('TODO: save_grid_config',this);\n"
20130515 "    //~ p.column_widths = Ext.pluck(this.colModel.columns,'width');\n"
20130515 '    var a = { \n'
20130515 '      params:this.get_current_grid_config(), \n'
20130515 "      method:'PUT',\n"
20130515 "      url:'/grid_config' + this.ls_url,\n"
20130515 '      success: Lino.action_handler(this),\n'
20130515 '      scope: this,\n'
20130515 '      failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(a);\n'
20130515 '    //~ Lino.do_action(this,a);\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_beforeedit : function(e) {\n'
20130515 "    //~ console.log('20130128 GridPanel.on_beforeedit()',e,e.record.data.disable_editing);\n"
20130515 '    if(this.disable_editing | e.record.data.disable_editing) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This record is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    if(e.record.data.disabled_fields && e.record.data.disabled_fields[e.field]) {\n'
20130515 '      e.cancel = true;\n'
20130515 '      Lino.notify("This field is disabled");\n'
20130515 '      return;\n'
20130515 '    }\n'
20130515 '    //~ if (e.record.data.disabled_fields) {\n'
20130515 '      //~ for (i in e.record.data.disabled_fields) {\n'
20130515 '        //~ if(e.record.data.disabled_fields[i] == e.field) {\n'
20130515 '          //~ e.cancel = true;\n'
20130515 '          //~ Lino.notify(String.format(\'Field "{0}" is disabled for this record\',e.field));\n'
20130515 '          //~ return\n'
20130515 '        //~ }\n'
20130515 '      //~ }\n'
20130515 '    //~ }\n'
20130515 '  },\n'
20130515 '  save_grid_data : function() {\n'
20130515 '      //~ console.log("20120814 save_grid_data");\n'
20130515 '      this.getStore().commitChanges();\n'
20130515 '  },\n'
20130515 '  new_on_afteredit : function(e) {\n'
20130515 '      //~ this.getStore().commitChanges();\n'
20130515 '      //~ this.getStore().doUpdate();\n'
20130515 '      //~ this.getStore().loadData(data);\n'
20130515 '      console.log("20120814 new_on_afteredit",e);\n'
20130515 '  },\n'
20130515 '  on_afteredit : function(e) {\n'
20130515 '    /*\n'
20130515 '    e.grid - The grid that fired the event\n'
20130515 '    e.record - The record being edited\n'
20130515 '    e.field - The field name being edited\n'
20130515 '    e.value - The value being set\n'
20130515 '    e.originalValue - The original value for the field, before the edit.\n'
20130515 '    e.row - The grid row index\n'
20130515 '    e.column - The grid column index\n'
20130515 '    */\n'
20130515 '    var p = {};\n'
20130515 "    //~ console.log('20101130 modified: ',e.record.modified);\n"
20130515 "    //~ console.log('20101130 value: ',e.value);\n"
20130515 '    //~ var p = e.record.getChanges();\n'
20130515 "    //~ console.log('20101130 getChanges: ',e.record.getChanges());\n"
20130515 '    //~ this.before_row_edit(e.record);\n'
20130515 '    for(k in e.record.getChanges()) {\n'
20130515 '        var v = e.record.get(k);\n'
20130515 '    //~ for(k in e.record.modified) {\n'
20130515 "        //~ console.log('20101130',k,'=',v);\n"
20130515 '        //~ var cm = e.grid.getColumnModel();\n'
20130515 '        //~ var di = cm.getDataIndex(k);\n'
20130515 '        var f = e.record.fields.get(k);\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 '        //~ var v = e.record.get(di);\n'
20130515 "        if (f.type.type == 'date') {\n"
20130515 '            p[k] = Ext.util.Format.date(v, f.dateFormat);\n'
20130515 '        }else{\n'
20130515 '            p[k] = v;\n'
20130515 "            var v = e.record.get(k+'Hidden');\n"
20130515 '            if (v !== undefined) {\n'
20130515 "              p[k+'Hidden'] = v;\n"
20130515 '            }\n'
20130515 '        }\n'
20130515 '        //~ var i = cm.findColumnIndex(k);\n'
20130515 '        //~ var r = cm.getRenderer(i);\n'
20130515 '        //~ var editor = cm.getCellEditor(i,e.row);\n'
20130515 '        //~ var col = e.grid.getColumnModel().getColumnById(k);\n'
20130515 "        //~ console.log('20101130 r = ',r(v));\n"
20130515 '        //~ var f = e.record.fields[k];\n'
20130515 "        //~ console.log('20101130 f = ',f);\n"
20130515 "        //~ console.log('20101130 editor = ',editor);\n"
20130515 '        //~ p[k] = f.getValue();\n'
20130515 '        //~ p[k] = r(v);\n'
20130515 '    }\n'
20130515 "    //~ console.log('20101130 p:',p);\n"
20130515 '    //~ var cm = e.grid.getColumnModel();\n'
20130515 '    //~ var di = cm.getDataIndex(e.column);\n'
20130515 '    //~ var f = e.record.fields.get(di);\n'
20130515 "    //~ console.log('20101130 f = ',f);\n"
20130515 "    //~ if (f.type.type == 'date') e.record.set(di,Ext.util.Format.date(e.value, f.dateFormat));\n"
20130515 '    \n'
20130515 '    \n'
20130515 '    //~ var p = e.record.data;\n'
20130515 '    \n'
20130515 '    // var p = {};\n'
20130515 "    //~ p['grid_afteredit_colname'] = e.field;\n"
20130515 '    //~ p[e.field] = e.value;\n'
20130515 "    //~ console.log('20100723 GridPanel.on_afteredit()',e);\n"
20130515 '    // add value used by ForeignKeyStoreField CHOICES_HIDDEN_SUFFIX\n'
20130515 '    // not sure whether this is still needed:\n'
20130515 "    p[e.field+'Hidden'] = e.value;\n"
20130515 '    //~ p.su = Lino.subst_user;\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    // this one is needed so that this field can serve as choice context:\n'
20130515 "    e.record.data[e.field+'Hidden'] = e.value;\n"
20130515 '    // p[pk] = e.record.data[pk];\n'
20130515 '    // console.log("grid_afteredit:",e.field,\'=\',e.value);\n'
20130515 '    Ext.apply(p,this.get_base_params()); // needed for POST, ignored for PUT\n'
20130515 '    //~ Ext.apply(p,this.containing_window.config.base_params);\n'
20130515 "    //~ 20121109 p['$ext_requests.URL_PARAM_ACTION_NAME'] = 'grid';\n"
20130515 '    var self = this;\n'
20130515 '    var req = {\n'
20130515 '        params:p,\n'
20130515 "        waitMsg: 'Saving your data...',\n"
20130515 '        success: Lino.action_handler( this, function(result) {\n'
20130515 '          //~ if (result.data_record) {\n'
20130515 '          if (result.refresh_all) {\n'
20130515 '              var cw = self.get_containing_window();\n'
20130515 '              if (cw) {\n'
20130515 '                  cw.main_item.refresh();\n'
20130515 '              }\n'
20130515 '              else console.log("20120123 cannot refresh_all",self);\n'
20130515 '          } else if (result.rows) {\n'
20130515 '              //~ self.getStore().loadData(result,true);\n'
20130515 '              var r = self.getStore().reader.readRecords(result);\n'
20130515 '              if (e.record.phantom) {\n'
20130515 '                  //~ console.log("20120816 afteredit.success POST",r);\n'
20130515 '                  self.getStore().insert(e.row,r.records);\n'
20130515 '              }else{\n'
20130515 '                  //~ console.log("20120816 afteredit.success PUT",r);\n'
20130515 '                  self.getStore().doUpdate(r.records[0]);\n'
20130515 '              }\n'
20130515 '              self.getStore().rejectChanges(); /* \n'
20130515 '              get rid of the red triangles without saving the record again\n'
20130515 '              */\n'
20130515 '              //~ self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '          } else {\n'
20130515 '              self.getStore().commitChanges(); // get rid of the red triangles\n'
20130515 '              self.getStore().reload();        // reload our datastore.\n'
20130515 '          }\n'
20130515 '          }),\n'
20130515 '        scope: this,\n'
20130515 '        failure: Lino.ajax_error_handler(this)\n'
20130515 '    };\n'
20130515 '    if (e.record.phantom) {\n'
20130515 "      req.params.an = 'post'; // SubmitInsert.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'POST',\n"
20130515 "        url: '/api' + this.ls_url\n"
20130515 '      });\n'
20130515 '    } else {\n'
20130515 "      req.params.an = 'put'; // SubmitDetail.action_name\n"
20130515 '      Ext.apply(req,{\n'
20130515 "        method: 'PUT',\n"
20130515 "        url: '/api' + this.ls_url + '/' + e.record.id\n"
20130515 '      });\n'
20130515 '    }\n'
20130515 "    //~ console.log('20110406 on_afteredit',req);\n"
20130515 '    this.loadMask.show(); // 20120211\n'
20130515 '    Ext.Ajax.request(req);\n'
20130515 '  },\n'
20130515 '\n'
20130515 '  afterRender : function() {\n'
20130515 '    Lino.GridPanel.superclass.afterRender.call(this);\n'
20130515 '    // this.getView().mainBody.focus();\n'
20130515 '    // console.log(20100114,this.getView().getRows());\n'
20130515 '    // if (this.getView().getRows().length > 0) {\n'
20130515 '    //  this.getView().focusRow(1);\n'
20130515 '    // }\n'
20130515 '    //~ this.my_load_mask = new Ext.LoadMask(this.getEl(), {\n'
20130515 '        //~ msg:\'$_("Please wait...")\',\n'
20130515 '        //~ store:this.store});\n'
20130515 '      \n'
20130515 '    var tbar = this.getTopToolbar();\n'
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 "    // tbar.on('change',function() {this.getSelectionModel().selectFirstRow();this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().mainBody.focus();},this);\n"
20130515 "    // tbar.on('change',function() {this.getView().focusRow(1);},this);\n"
20130515 '    this.nav = new Ext.KeyNav(this.getEl(),{\n'
20130515 '      pageUp: function() {tbar.movePrevious(); },\n'
20130515 '      pageDown: function() {tbar.moveNext(); },\n'
20130515 '      home: function() {tbar.moveFirst(); },\n'
20130515 '      end: function() {tbar.moveLast(); },\n'
20130515 '      scope: this\n'
20130515 '    });\n'
20130515 '  },\n'
20130515 '  after_delete : function() {\n'
20130515 "    //~ console.log('Lino.GridPanel.after_delete');\n"
20130515 '    this.refresh();\n'
20130515 '  },\n'
20130515 '  add_row_listener : function(fn,scope) {\n'
20130515 "    this.getSelectionModel().addListener('rowselect',fn,scope);\n"
20130515 '  },\n'
20130515 '  postEditValue : function(value, originalValue, r, field){\n'
20130515 '    value = Lino.GridPanel.superclass.postEditValue.call(this,value,originalValue,r,field);\n'
20130515 "    //~ console.log('GridPanel.postEdit()',value, originalValue, r, field);\n"
20130515 '    return value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  set_start_value : function(v) {\n'
20130515 '      this.start_value = v;\n'
20130515 '  },\n'
20130515 '  preEditValue : function(r, field){\n'
20130515 '      if (this.start_value) {\n'
20130515 '        var v = this.start_value;\n'
20130515 '        delete this.start_value;\n'
20130515 '        this.activeEditor.selectOnFocus = false;\n'
20130515 '        return v;\n'
20130515 '      }\n'
20130515 '      var value = r.data[field];\n'
20130515 '      return this.autoEncode && Ext.isString(value) ? Ext.util.Format.htmlDecode(value) : value;\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  on_master_changed : function() {\n'
20130515 '    //~ if (! this.enabled) return;\n'
20130515 '    //~ cmp = this;\n'
20130515 "    //~ console.log('Lino.GridPanel.on_master_changed()',this.title);\n"
20130515 '    if (! this.rendered) return; // 20120213\n'
20130515 '    var todo = function() {\n'
20130515 '      if (this.disabled) return;\n'
20130515 '      //~ if (this.disabled) return;\n'
20130515 '      //~ if (this.enabled) {\n'
20130515 '          //~ var src = caller.config.url_data + "/" + record.id + ".jpg"\n'
20130515 '          //~ console.log(20111125, this.containing_window);\n'
20130515 '          //~ for (k in p) this.getStore().setBaseParam(k,p[k]);\n'
20130515 "          //~ console.log('Lino.GridPanel.on_master_changed()',this.title,p);\n"
20130515 '          this.refresh();\n'
20130515 '          //~ this.set_base_params(this.master_panel.get_master_params());\n'
20130515 '          //~ this.getStore().load(); \n'
20130515 '      //~ }\n'
20130515 '    };\n'
20130515 '    Lino.do_when_visible(this,todo.createDelegate(this));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '  \n'
20130515 '\n'
20130515 '//~ Lino.MainPanelMixin = {\n'
20130515 '  //~ tbar_items : function() {\n'
20130515 '      //~ return ;\n'
20130515 '  //~ }\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '//~ Ext.override(Lino.GridPanel,Lino.MainPanelMixin);\n'
20130515 '//~ Ext.override(Lino.FormPanel,Lino.MainPanelMixin);\n'
20130515 '\n'
20130515 '//~ Lino.grid_context_menu = function(e) {\n'
20130515 "  //~ console.log('contextmenu',arguments);\n"
20130515 '//~ }\n'
20130515 '\n'
20130515 'Lino.cell_context_menu = function(grid,row,col,e) {\n'
20130515 "  //~ console.log('20120531 cellcontextmenu',grid,row,col,e,grid.store.reader.arrayData.rows[row]);\n"
20130515 '  e.stopEvent();\n'
20130515 '  //~ grid.getView().focusCell(row,col);\n'
20130515 '  grid.getSelectionModel().select(row,col);\n'
20130515 '  //~ console.log(grid.store.getAt(row));\n'
20130515 '  //~ grid.getView().focusRow(row);\n'
20130515 '  //~ return;\n'
20130515 '  if(!grid.cmenu.el){grid.cmenu.render(); }\n'
20130515 '  //~ if(e.record.data.disabled_fields) {\n'
20130515 '  \n'
20130515 '  var da = grid.store.reader.arrayData.rows[row][grid.disabled_actions_index];\n'
20130515 '  if (da) {\n'
20130515 '      this.cmenu.cascade(function(item){ \n'
20130515 '        //~ console.log(20120531, item.itemId, da[item.itemId]);\n'
20130515 '        if (da[item.itemId]) item.disable(); else item.enable();\n'
20130515 '      });\n'
20130515 '  };\n'
20130515 '  \n'
20130515 '  var xy = e.getXY();\n'
20130515 '  xy[1] -= grid.cmenu.el.getHeight();\n'
20130515 '  grid.cmenu.showAt(xy);\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.load_main_menu = function() {\n'
20130515 '  //~ Ext.Ajax.request({\n'
20130515 "    //~ waitMsg: 'Loading main menu...',\n"
20130515 "    //~ method: 'GET',\n"
20130515 "    //~ url: '/menu',\n"
20130515 '    //~ success: Lino.on_load_menu,\n'
20130515 '    //~ failure: Lino.ajax_error_handler\n'
20130515 '  //~ });\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '//~ Lino.SlavePlugin = function(caller) {\n'
20130515 '  //~ this.caller = caller;\n'
20130515 '//~ };\n'
20130515 '\n'
20130515 'Lino.chooser_handler = function(combo,name) {\n'
20130515 '  return function(cmp,newValue,oldValue) {\n'
20130515 "    //~ console.log('Lino.chooser_handler()',cmp,oldValue,newValue);\n"
20130515 '    combo.setContextValue(name,newValue);\n'
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ComboBox = Ext.extend(Ext.form.ComboBox,{\n'
20130515 '  forceSelection: true,\n'
20130515 "  triggerAction: 'all',\n"
20130515 '  minListWidth:230,\n'
20130515 '  autoSelect: false,\n'
20130515 '  selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  submitValue: true,\n'
20130515 "  displayField: 'text', // 'text', \n"
20130515 "  valueField: 'value', // 'value',\n"
20130515 '  \n'
20130515 '  //~ initComponent : Ext.form.ComboBox.prototype.initComponent.createSequence(function() {\n'
20130515 '  initComponent : function(){\n'
20130515 '      this.contextParams = {};\n'
20130515 '      //~ Ext.form.ComboBox.initComponent(this);\n'
20130515 '      Lino.ComboBox.superclass.initComponent.call(this);\n'
20130515 '  },\n'
20130515 '  setValue : function(v,record_data){\n'
20130515 '      /*\n'
20130515 '      Based on feature request developed in http://extjs.net/forum/showthread.php?t=75751\n'
20130515 '      */\n'
20130515 '      /* `record_data` is used to get the text corresponding to this value */\n'
20130515 "      //~ if(this.name == 'city') \n"
20130515 "      //~ console.log('20120203', this.name,'.setValue(', v ,') this=', this,'record_data=',record_data);\n"
20130515 '      var text = v;\n'
20130515 '      if(this.valueField){\n'
20130515 "        if(v == null || v == '') { \n"
20130515 "            //~ if (this.name == 'birth_country') \n"
20130515 "                //~ console.log(this.name,'.setValue',v,'no lookup needed, value is empty');\n"
20130515 '            //~ v = undefined;\n'
20130515 "            v = '';\n"
20130515 "            //~ text = '';\n"
20130515 '        } else if (Ext.isDefined(record_data)) {\n'
20130515 '          text = record_data[this.name];\n'
20130515 "          //~ if (this.name == 'birth_country') \n"
20130515 "            //~ console.log(this.name,'.setValue',v,'got text ',text,' from record ',record);\n"
20130515 '        } else {\n'
20130515 "          // if(this.mode == 'remote' && !Ext.isDefined(this.store.totalLength)){\n"
20130515 "          if(this.mode == 'remote' && ( this.lastQuery === null || (!Ext.isDefined(this.store.totalLength)))){\n"
20130515 "              //~ if (this.name == 'birth_country') console.log(this.name,'.setValue',v,'store not yet loaded');\n"
20130515 "              this.store.on('load', this.setValue.createDelegate(this, arguments), null, {single: true});\n"
20130515 '              if(this.store.lastOptions === null || this.lastQuery === null){\n'
20130515 '                  var params;\n'
20130515 '                  if(this.valueParam){\n'
20130515 '                      params = {};\n'
20130515 '                      params[this.valueParam] = v;\n'
20130515 '                  }else{\n'
20130515 '                      var q = this.allQuery;\n'
20130515 '                      this.lastQuery = q;\n'
20130515 '                      this.store.setBaseParam(this.queryParam, q);\n'
20130515 '                      params = this.getParams(q);\n'
20130515 '                  }\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : call load() with params ',params);\n"
20130515 '                  this.store.load({params: params});\n'
20130515 '              //~ }else{\n'
20130515 "                  //~ if (this.name == 'birth_country') \n"
20130515 "                    //~ console.log(this.name,'.setValue',v,' : but store is loading',this.store.lastOptions);\n"
20130515 '              }\n'
20130515 '              return;\n'
20130515 '          //~ }else{\n'
20130515 "              //~ if (this.name == 'birth_country') \n"
20130515 '                //~ console.log(this.name,\'.setValue\',v,\' : store is loaded, lastQuery is "\',this.lastQuery,\'"\');\n'
20130515 '          }\n'
20130515 '          var r = this.findRecord(this.valueField, v);\n'
20130515 '          if(r){\n'
20130515 '              text = r.data[this.displayField];\n'
20130515 '          }else if(this.valueNotFoundText !== undefined){\n'
20130515 '              text = this.valueNotFoundText;\n'
20130515 '          }\n'
20130515 '        }\n'
20130515 '      }\n'
20130515 '      this.lastSelectionText = text;\n'
20130515 '      //~ this.lastSelectionText = v;\n'
20130515 '      if(this.hiddenField){\n'
20130515 '          //~ this.hiddenField.originalValue = v;\n'
20130515 '          this.hiddenField.value = v;\n'
20130515 '      }\n'
20130515 '      Ext.form.ComboBox.superclass.setValue.call(this, text);\n'
20130515 '      this.value = v; // needed for grid.afteredit\n'
20130515 '  },\n'
20130515 '  \n'
20130515 '  getParams : function(q){\n'
20130515 '    // p = Ext.form.ComboBox.superclass.getParams.call(this, q);\n'
20130515 '    // causes "Ext.form.ComboBox.superclass.getParams is undefined"\n'
20130515 '    var p = {};\n'
20130515 '    //p[this.queryParam] = q;\n'
20130515 '    if(this.pageSize){\n'
20130515 '        //~ p.start = 0;\n'
20130515 '        //~ p.limit = this.pageSize;\n'
20130515 "        p['start'] = 0;\n"
20130515 "        p['limit'] = this.pageSize;\n"
20130515 '    }\n'
20130515 '    // now my code:\n'
20130515 '    if(this.contextParams) Ext.apply(p,this.contextParams);\n'
20130515 '    //~ if(this.contextParams && this.contextValues) {\n'
20130515 '      //~ for(i = 0; i <= this.contextParams.length; i++)\n'
20130515 '        //~ p[this.contextParams[i]] = this.contextValues[i];\n'
20130515 '    //~ }\n'
20130515 '    return p;\n'
20130515 '  },\n'
20130515 '  setContextValue : function(name,value) {\n'
20130515 "    //~ console.log('setContextValue',this,this.name,':',name,'=',value);\n"
20130515 '    //~ if (this.contextValues === undefined) {\n'
20130515 '        //~ this.contextValues = Array(); // this.contextParams.length);\n'
20130515 '    //~ }\n'
20130515 '    if (this.contextParams[name] != value) {\n'
20130515 "      //~ console.log('setContextValue 1',this.contextParams);\n"
20130515 '      this.contextParams[name] = value;\n'
20130515 '      this.lastQuery = null;\n'
20130515 "      //~ console.log('setContextValue 2',this.contextParams);\n"
20130515 '    }\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ChoicesFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'local'\n"
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  forceSelection: true,\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.SimpleRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value' ], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ComplexRemoteComboStore = Ext.extend(Ext.data.JsonStore,{\n'
20130515 '  constructor: function(config){\n'
20130515 '      Lino.ComplexRemoteComboStore.superclass.constructor.call(this, Ext.apply(config, {\n'
20130515 "          totalProperty: 'count',\n"
20130515 "          root: 'rows',\n"
20130515 "          id: 'value', // ext_requests.CHOICES_VALUE_FIELD\n"
20130515 "          fields: ['value','text'], // ext_requests.CHOICES_VALUE_FIELD, // ext_requests.CHOICES_TEXT_FIELD\n"
20130515 '          listeners: { exception: Lino.on_store_exception }\n'
20130515 '      }));\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.RemoteComboFieldElement = Ext.extend(Lino.ComboBox,{\n'
20130515 "  mode: 'remote',\n"
20130515 '  //~ forceSelection:false,\n'
20130515 '  minChars: 2, // default 4 is too much\n'
20130515 '  queryDelay: 300, // default 500 is maybe slow\n'
20130515 "  queryParam: 'query', \n"
20130515 '  //~ typeAhead: true,\n'
20130515 '  //~ selectOnFocus: true, // select any existing text in the field immediately on focus.\n'
20130515 '  resizable: true\n'
20130515 '});\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Thanks to Animal for posting the basic idea:\n'
20130515 'http://www.sencha.com/forum/showthread.php?15842-2.0-SOLVED-Combobox-twintrigger-clear&p=76130&viewfull=1#post76130\n'
20130515 '\n'
20130515 '*/\n'
20130515 'Lino.TwinCombo = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "    trigger2Class : 'x-form-search-trigger',\n"
20130515 "    //~ trigger2Class : 'x-tbar-detail',\n"
20130515 '    initComponent : function() {\n'
20130515 '        //~ Lino.TwinCombo.superclass.initComponent.call(this);\n'
20130515 '        Lino.ComboBox.prototype.initComponent.call(this);\n'
20130515 '        Ext.form.TwinTriggerField.prototype.initComponent.call(this);\n'
20130515 '    },\n'
20130515 '    onTrigger2Click : function() {\n'
20130515 "        //~ console.log('onTrigger2Click',this,arguments);\n"
20130515 '    }\n'
20130515 '  });\n'
20130515 '//~ Lino.TwinCombo.prototype.initComponent = Ext.form.TwinTriggerField.prototype.initComponent;\n'
20130515 'Lino.TwinCombo.prototype.getTrigger = Ext.form.TwinTriggerField.prototype.getTrigger;\n'
20130515 'Lino.TwinCombo.prototype.getOuterSize = Ext.form.TwinTriggerField.prototype.getOuterSize;\n'
20130515 'Lino.TwinCombo.prototype.initTrigger = Ext.form.TwinTriggerField.prototype.initTrigger;\n'
20130515 'Lino.TwinCombo.prototype.onTrigger1Click = Ext.form.ComboBox.prototype.onTriggerClick;\n'
20130515 '//~ Lino.TwinCombo.prototype.onTrigger2Click = function() {\n'
20130515 "    //~ console.log('onTrigger2Click',arguments);\n"
20130515 '//~ };\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.SimpleRemoteComboFieldElement = Ext.extend(Lino.RemoteComboFieldElement,{\n'
20130515 "  displayField: 'value', \n"
20130515 '  valueField: null,\n'
20130515 '  forceSelection: false\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.Window = Ext.extend(Ext.Window,{\n'
20130515 '  //~ layout: "fit", \n'
20130515 "  closeAction : 'hide',\n"
20130515 "  renderTo: 'main_area', \n"
20130515 '  constrain: true,\n'
20130515 '  maximized: true,\n'
20130515 '  draggable: false,\n'
20130515 '  width: 700,\n'
20130515 '  height: 500,\n'
20130515 '  maximizable: false,\n'
20130515 '  constructor : function (config) {\n'
20130515 '    if (config.main_item.params_panel) {\n'
20130515 "        config.layout = 'border';\n"
20130515 "        config.main_item.region = 'center';\n"
20130515 "        config.main_item.params_panel.region = 'north';\n"
20130515 '        config.main_item.params_panel.hidden = config.main_item.params_panel_hidden;\n'
20130515 '        config.items = [config.main_item.params_panel, config.main_item];\n'
20130515 '    } else {\n'
20130515 "        config.layout = 'fit';\n"
20130515 '        config.items = config.main_item;\n'
20130515 '    }\n'
20130515 '    this.main_item = config.main_item; \n'
20130515 '    \n'
20130515 '    delete config.main_item;\n'
20130515 '    //~ delete config.params_item;\n'
20130515 '    \n'
20130515 '    //~ this.main_item = config.items.get(0);\n'
20130515 '    this.main_item.containing_window = this;\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 1');\n"
20130515 '    //~ if (Lino.current_window) { // all windows except the top are closable\n'
20130515 '    if (this.main_item.hide_window_title) { \n'
20130515 '      config.closable = false;\n'
20130515 '      config.frame = false;\n'
20130515 '      config.shadow = false;\n'
20130515 '      //~ config.border = true;\n'
20130515 '      //~ config.title = undefined;\n'
20130515 '      //~ config.tools = null;\n'
20130515 '      delete config.title;\n'
20130515 '      delete config.tools;\n'
20130515 '    } else {\n'
20130515 '      config.title = this.main_item.empty_title;\n'
20130515 '      config.closable = true;\n'
20130515 '      config.tools = [ \n'
20130515 '        { qtip: \'permalink\', handler: Lino.permalink_handler(this), id: "pin" }\n'
20130515 '      ];\n'
20130515 "      if (this.main_item.content_type && this.main_item.action_name != 'insert') {\n"
20130515 '        config.tools = [ {\n'
20130515 '          handler: Lino.help_text_editor,\n'
20130515 '          qtip: "Edit help texts for fields on this model.",\n'
20130515 '          scope: this.main_item,\n'
20130515 '          id: "gear"\n'
20130515 '        }].concat(config.tools);\n'
20130515 '      }\n'
20130515 '        \n'
20130515 '    //~ { qtip: \'\', handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: this.config.qtip, handler: Lino.save_wc_handler(this), id: "save" }, \n'
20130515 '    //~ { qtip: \'Call doLayout() on main Container.\', handler: Lino.refresh_handler(this), id: "refresh" },\n'
20130515 '    //~ if (this.main_item.params_panel) {\n'
20130515 '        //~ config.tools = config.tools.concat([ \n'
20130515 '          //~ { qtip: \'Show/hide parameter panel\', handler: this.toggle_params_panel, id: "gear", scope:this } \n'
20130515 '        //~ ]);\n'
20130515 '    //~ }\n'
20130515 '    //~ if (config.closable !== false) {\n'
20130515 '      // if undefined, will take default behaviour\n'
20130515 '      //~ config.tools = config.tools.concat([ \n'
20130515 '        //~ { qtip: \'close\', handler: this.hide, id: "close", scope:this } \n'
20130515 '      //~ ]);\n'
20130515 '    }\n'
20130515 '    \n'
20130515 '    this.main_item.config_containing_window(config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 2');\n"
20130515 '    Lino.Window.superclass.constructor.call(this,config);\n'
20130515 '    \n'
20130515 "    //~ console.log('20120110 Lino.Window.constructor() 3');\n"
20130515 '    \n'
20130515 '  },\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.main_item.init_containing_window(this);\n'
20130515 '    Lino.Window.superclass.initComponent.call(this);\n'
20130515 '  \n'
20130515 '  },\n'
20130515 '  hide : function() { \n'
20130515 '      this.main_item.do_when_clean(false,function() { \n'
20130515 '        Lino.close_window(); });\n'
20130515 '  },\n'
20130515 '  hide_really : function() { \n'
20130515 '    Lino.Window.superclass.hide.call(this);\n'
20130515 '  },\n'
20130515 '  onRender : function(ct, position){\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 1');\n"
20130515 '    Lino.Window.superclass.onRender.call(this, ct, position);\n'
20130515 "    var main_area = Ext.getCmp('main_area')\n"
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 2');\n"
20130515 '  \n'
20130515 "    this.on('show', function(win) {\n"
20130515 "        //~ console.log('20120110 Lino.Window.on show 1');\n"
20130515 "        main_area.on('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    this.on('hide', function(win) {\n"
20130515 "        main_area.un('resize', win.onWindowResize, win);\n"
20130515 '    });\n'
20130515 "    //~ console.log('20120110 Lino.Window.onRender() 3');\n"
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.unused_ParamWindow = Ext.extend(Lino.Window,{\n'
20130515 '  //~ layout: "border", \n'
20130515 '  constructor : function (config) {\n'
20130515 '    Lino.ParamWindow.superclass.constructor.call(this,config);\n'
20130515 '    this.main_item = config.items; // `items` must be a single component\n'
20130515 "    config.layout = 'border';\n"
20130515 "    this.main_item.region = 'center';\n"
20130515 "    config.params.region = 'north';\n"
20130515 '    config.items = [config.params, config.items];\n'
20130515 '    //~ delete config.params;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '(function(){\n'
20130515 "    var ns = Ext.ns('Ext.ux.plugins');\n"
20130515 '\n'
20130515 '    /**\n'
20130515 '     * @class Ext.ux.plugins.DefaultButton\n'
20130515 '     * @extends Object\n'
20130515 '     *\n'
20130515 '     * Plugin for Button that will click() the button if the user presses ENTER while\n'
20130515 "     * a component in the button's form has focus.\n"
20130515 '     *\n'
20130515 '     * @author Stephen Friedrich\n'
20130515 '     * @date 09-DEC-2009\n'
20130515 '     * @version 0.1\n'
20130515 '     *\n'
20130515 '     */\n'
20130515 '    ns.DefaultButton =  Ext.extend(Object, {\n'
20130515 '        init: function(button) {\n'
20130515 "            button.on('afterRender', setupKeyListener, button);\n"
20130515 '        }\n'
20130515 '    });\n'
20130515 '\n'
20130515 '    function setupKeyListener() {\n'
20130515 "        var formPanel = this.findParentByType('form');\n"
20130515 '        new Ext.KeyMap(formPanel.el, {\n'
20130515 '            key: Ext.EventObject.ENTER,\n'
20130515 '            shift: false,\n'
20130515 '            alt: false,\n'
20130515 '            fn: function(keyCode, e){\n'
20130515 "                if(e.target.type === 'textarea' && !e.ctrlKey) {\n"
20130515 '                    return true;\n'
20130515 '                }\n'
20130515 '\n'
20130515 "                this.el.select('button').item(0).dom.click();\n"
20130515 '                return false;\n'
20130515 '            },\n'
20130515 '            scope: this\n'
20130515 '        });\n'
20130515 '    }\n'
20130515 '\n'
20130515 "    Ext.ComponentMgr.registerPlugin('defaultButton', ns.DefaultButton);\n"
20130515 '\n'
20130515 '})(); \n'
20130515 '\n'
20130515 'Ext.override(Ext.form.BasicForm,{\n'
20130515 '    my_loadRecord : function(values){\n'
20130515 '    //~ loadRecord : function(record){\n'
20130515 "        /* Same as ExtJS's loadRecord() (setValues()), except that we \n"
20130515 '        forward also the record to field.setValue() so that Lino.Combobox \n'
20130515 '        can use it. \n'
20130515 '        */\n'
20130515 "        //~ console.log('20120918 my_loadRecord',values)\n"
20130515 '        if(Ext.isArray(values)){ \n'
20130515 '            for(var i = 0, len = values.length; i < len; i++){\n'
20130515 '                var v = values[i];\n'
20130515 '                var f = this.findField(v.id);\n'
20130515 '                if(f){\n'
20130515 '                    f.setValue(v.value,values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        f.originalValue = f.getValue();\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }else{ \n'
20130515 '            var field, id;\n'
20130515 '            for(id in values){\n'
20130515 '                if(!Ext.isFunction(values[id]) && (field = this.findField(id))){\n'
20130515 '                    field.setValue(values[id],values);\n'
20130515 '                    if(this.trackResetOnLoad){\n'
20130515 '                        field.originalValue = field.getValue();\n'
20130515 '                        //~ if (field.hiddenField) {\n'
20130515 '                          //~ field.hiddenField.originalValue = field.hiddenField.value;\n'
20130515 '                        //~ }\n'
20130515 '                    }\n'
20130515 '                }\n'
20130515 '            }\n'
20130515 '        }\n'
20130515 '        return this;\n'
20130515 '    }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'function initializeFooBarDropZone(cmp) {\n'
20130515 "    //~ console.log('initializeFooBarDropZone',cmp);\n"
20130515 '    cmp.dropTarget = new Ext.dd.DropTarget(cmp.bwrap, {\n'
20130515 "      //~ ddGroup     : 'gridDDGroup',\n"
20130515 '      notifyEnter : function(ddSource, e, data) {\n'
20130515 "        console.log('notifyEnter',ddSource,e,data);\n"
20130515 '        //Add some flare to invite drop.\n'
20130515 '        cmp.body.stopFx();\n'
20130515 '        cmp.body.highlight();\n'
20130515 '      },\n'
20130515 '      notifyDrop  : function(ddSource, e, data){\n'
20130515 "        console.log('notifyDrop',ddSource,e,data);\n"
20130515 '        // Reference the record (single selection) for readability\n'
20130515 '        //~ var selectedRecord = ddSource.dragData.selections[0];\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Load the record into the form\n'
20130515 '        //~ formPanel.getForm().my_loadRecord(selectedRecord);\n'
20130515 '\n'
20130515 '\n'
20130515 '        // Delete record from the grid.  not really required.\n'
20130515 '        //~ ddSource.grid.store.remove(selectedRecord);\n'
20130515 '\n'
20130515 '        return(true);\n'
20130515 '      }\n'
20130515 '    })\n'
20130515 '}\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.show_mti_child = function(fieldname,detail_handler) {\n'
20130515 "  //~ console.log('show_mti_child',this);\n"
20130515 '  //~ console.log(\'show_mti_child\',panel.find("main_area"));\n'
20130515 '  rec = Lino.current_window.main_item.get_current_record();\n'
20130515 '  //~ rec = panel.get_current_record();\n'
20130515 '  if (rec) {\n'
20130515 "    //~ console.log('show_mti_child',Lino.current_window,rec);\n"
20130515 '    if (rec.phantom) {\n'
20130515 "      Lino.notify('Not allowed on phantom record.');\n"
20130515 '    }else if (rec.data[fieldname]) {\n'
20130515 "      //~ console.log('show_mti_child',rec.id);\n"
20130515 '      //~ detail_handler(Lino.current_window.main_item,{},{record_id:rec.id});\n'
20130515 '      detail_handler.run(null,{record_id:rec.id});\n'
20130515 "      //~ window.open(urlroot + '/' + rec.id);\n"
20130515 "      //~ document.location = urlroot + '/' + rec.id;\n"
20130515 "      //~ window.open(urlroot + '/' + rec.id,'_blank');\n"
20130515 '    } else {\n'
20130515 '      Lino.alert("Cannot show MTI child if checkbox is off.");\n'
20130515 '    }\n'
20130515 '  } else {\n'
20130515 "    Lino.notify('No current record.');\n"
20130515 '  }\n'
20130515 '};\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelCalendars\n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelCalendars.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.CalendarMappings = {\n'
20130515 "    CalendarId:   {name:'ID',       mapping: 'id', type: 'int'},\n"
20130515 "    Title:        {name:'CalTitle', mapping: 'babel_name', type: 'string'},\n"
20130515 "    Description:  {name:'Desc',     mapping: 'description', type: 'string'},\n"
20130515 "    ColorId:      {name:'Color',    mapping: 'color', type: 'int'},\n"
20130515 "    IsHidden:     {name:'Hidden',   mapping: 'is_hidden', type: 'boolean'},    \n"
20130515 '};\n'
20130515 'Ext.ensible.cal.CalendarRecord.reconfigure();  \n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'Mappings towards lino.modlib.cal.models.PanelEvents \n'
20130515 '*/\n'
20130515 '// Sset SS = Ssite.modules.cal.PanelEvents.get_handle(Sui).store\n'
20130515 'Ext.ensible.cal.EventMappings = {\n'
20130515 "    EventId:     {name: 'ID',        mapping: 'id', type:'int'},\n"
20130515 "    CalendarId:  {name: 'CalID',     mapping: 'calendarHidden', type: 'int'},\n"
20130515 "    Title:       {name: 'EvtTitle',  mapping: 'summary'},\n"
20130515 "    StartDate:   {name: 'StartDt',   mapping: 'start_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s" },\n'
20130515 "    EndDate:     {name: 'EndDt',     mapping: 'end_dt', \n"
20130515 "      type: 'date', \n"
20130515 '      dateFormat: "Y-m-d\\TH:i:s"},\n'
20130515 "    RRule:       {name: 'RecurRule', mapping: 'rsetHidden'},\n"
20130515 "    Location:    {name: 'Location',  mapping: 'placeHidden'},\n"
20130515 "    Notes:       {name: 'Desc',      mapping: 'description'},\n"
20130515 "    Url:         {name: 'LinkUrl',   mapping: 'url'},\n"
20130515 "    IsAllDay:    {name: 'AllDay',    mapping: 'all_day', type: 'boolean'},\n"
20130515 "    Reminder:    {name: 'Reminder',  mapping: 'reminder'}\n"
20130515 '    \n'
20130515 '};\n'
20130515 'Ext.ensible.cal.EventRecord.reconfigure();\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.on_eventclick = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventclick",arguments);\n'
20130515 '  //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '  Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_editdetails = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_editdetails",arguments);\n'
20130515 '  if (rec.data.ID)\n'
20130515 '      //~ Lino.cal.Events.detail_action.run({record_id:rec.data.ID});\n'
20130515 '      Lino.cal.PanelEvents.detail.run(null,{record_id:rec.data.ID,base_params:Lino.eventStore.baseParams});\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '\n'
20130515 'Lino.format_time = function(dt) {\n'
20130515 "    return dt.getHours() + ':' + dt.getMinutes();\n"
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventdelete = function() {\n'
20130515 '  //~ console.log("Lino.on_eventdelete",arguments);\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.on_eventadd  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventadd ",arguments);\n'
20130515 '  return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventresize  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventresize ",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 'Lino.on_eventupdate  = function(cp,rec,el) {\n'
20130515 '  //~ console.log("Lino.on_eventupdate",arguments);\n'
20130515 '  //~ Lino.cal.Events.insert(cp);\n'
20130515 '  //~ return false;\n'
20130515 '}\n'
20130515 '    \n'
20130515 '\n'
20130515 '//~ Lino.eventStore = new Ext.ensible.cal.EventStore({ \n'
20130515 '//~ Lino.eventStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.eventStore = new Ext.data.JsonStore({ \n'
20130515 '  listeners: { exception: Lino.on_store_exception }\n'
20130515 "  ,url: '/restful/cal/PanelEvents'\n"
20130515 '  ,restful : true\n'
20130515 '  ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "      url: '/restful/cal/PanelEvents', \n"
20130515 '      disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '      //~ disableCaching:true,\n'
20130515 '  })\n'
20130515 '  ,fields: Ext.ensible.cal.EventRecord.prototype.fields.getRange()\n'
20130515 '  ,totalProperty: "count"\n'
20130515 '  ,root: "rows"\n'
20130515 '  ,idProperty: Ext.ensible.cal.EventMappings.EventId.mapping\n'
20130515 '  ,writer : new Ext.data.JsonWriter({\n'
20130515 '    writeAllFields: false\n'
20130515 '  })\n'
20130515 '  ,load: function(options) {\n'
20130515 '    //~ foo.bar = baz; // 20120213\n'
20130515 '      if (!options) options = {};\n'
20130515 '      if (!options.params) options.params = {};\n'
20130515 '      //~ options.params.$ext_requests.URL_PARAM_TEAM_VIEW = Lino.calendar_app.team_view_button.pressed;\n'
20130515 '      \n'
20130515 '      var view = this.cal_panel.getActiveView();\n'
20130515 '      var bounds = view.getViewBounds();\n'
20130515 "      //~ var p = {sd:'05.02.2012',ed:'11.02.2012'};\n"
20130515 '      //~ var p = {};\n'
20130515 '      options.params[view.dateParamStart] = bounds.start.format(view.dateParamFormat);\n'
20130515 '      options.params[view.dateParamEnd] = bounds.end.format(view.dateParamFormat);\n'
20130515 '      Lino.insert_subst_user(options.params);\n'
20130515 '      //~ Ext.apply(options.params,p)\n'
20130515 "      //~ console.log('20120710 eventStore.load()',this.baseParams,options);\n"
20130515 '    \n'
20130515 '    return Ext.data.JsonStore.prototype.load.call(this,options);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '//~ Lino.calendarStore = new Ext.data.ArrayStore({ \n'
20130515 'Lino.calendarStore = new Ext.data.JsonStore({ \n'
20130515 '      listeners: { exception: Lino.on_store_exception }\n'
20130515 '      ,restful : true\n'
20130515 '      ,proxy: new Ext.data.HttpProxy({ \n'
20130515 "          url: '/restful/cal/PanelCalendars?fmt=json', \n"
20130515 '          disableCaching: false // no need for cache busting when loading via Ajax\n'
20130515 '          //~ restful : true\n'
20130515 '          //~ method: "GET"\n'
20130515 '      })\n'
20130515 '      //~ ,autoLoad: true\n'
20130515 '      //~ ,remoteSort: true\n'
20130515 '      //~ ,baseParams: bp\n'
20130515 '      ,totalProperty: "count"\n'
20130515 '      ,root: "rows"\n'
20130515 '      ,fields: Ext.ensible.cal.CalendarRecord.prototype.fields.getRange()\n'
20130515 '      ,idProperty: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '      //~ ,idIndex: Ext.ensible.cal.CalendarMappings.CalendarId.mapping\n'
20130515 '    });\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarCfg = {\n'
20130515 "    dateParamFormat: 'd.m.Y',\n"
20130515 "    dateParamStart:'sd',\n"
20130515 "    dateParamEnd:'ed'\n"
20130515 '};\n'
20130515 '//~ 20120704 Lino.CalendarPanel = Ext.extend(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 '//~ Lino.CalendarPanel = Ext.extend(Lino.CalendarPanel,{\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,Lino.MainPanel);\n'
20130515 'Ext.override(Ext.ensible.cal.CalendarPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 '  ,activeItem: 1 // 0: day, 1: week\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  //~ ,disableCaching:true\n'
20130515 '  ,eventStore: Lino.eventStore\n'
20130515 '  ,calendarStore: Lino.calendarStore\n'
20130515 '  ,listeners: { \n'
20130515 '    editdetails: Lino.on_editdetails\n'
20130515 '    ,eventclick: Lino.on_eventclick\n'
20130515 '    //~ ,eventadd: Lino.on_eventadd\n'
20130515 '    //~ ,eventdelete: Lino.on_eventdelete\n'
20130515 '    //~ ,eventresize: Lino.on_eventresize\n'
20130515 '    ,afterrender : function(config) {\n'
20130515 '      //~ console.log("20120704 afterrender");\n'
20130515 '      Lino.calendarStore.load();\n'
20130515 '      //~ console.log("20120704 afterrender calls eventStore.load()",p);\n'
20130515 '      Lino.eventStore.cal_panel = this;\n'
20130515 '      //~ Lino.eventStore.load({params:p});\n'
20130515 '      Lino.eventStore.load();\n'
20130515 '      //~ Lino.CalendarPanel.superclass.constructor.call(this, config);\n'
20130515 '      //~ console.log(20120118, config,this);\n'
20130515 '    }\n'
20130515 '    }\n'
20130515 '  ,enableEditDetails: false\n'
20130515 '  //~ ,monthViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,weekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiDayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,multiWeekViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,dayViewCfg: Lino.CalendarCfg\n'
20130515 '  //~ ,initComponent : function() {\n'
20130515 "    //~ // this.on('eventadd',Lino.on_eventadd);\n"
20130515 '    //~ Lino.CalendarPanel.superclass.initComponent.call(this);\n'
20130515 '  //~ }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Ext.Panel,Lino.MainPanel);\n'
20130515 'Lino.CalendarAppPanel = Ext.extend(Lino.CalendarAppPanel,{\n'
20130515 '  //~ empty_title : "\\$ui.get_actor(\'cal.Panel\').report.label",\n'
20130515 '  empty_title : "Calendrier"\n'
20130515 "  ,ls_url: '/cal/CalendarPanel'\n"
20130515 '  ,set_status : function(status) { this.refresh();}\n'
20130515 '  ,refresh : function() {Lino.eventStore.reload();}\n'
20130515 "  ,layout: 'fit'\n"
20130515 '  ,is_loading : function() { \n'
20130515 '      var loading = Lino.calendarStore.getCount() == 0 | Lino.eventStore.getCount() == 0\n'
20130515 '      //~ console.log("CalendarPanel loading:",loading);\n'
20130515 '      return loading; \n'
20130515 '  }\n'
20130515 '  ,get_base_params : function() {\n'
20130515 '    var p = Ext.apply({},this.base_params);\n'
20130515 '    Lino.insert_subst_user(p);\n'
20130515 '    return p;\n'
20130515 '  }\n'
20130515 '  ,set_base_params : function(p) {\n'
20130515 '    this.base_params = Ext.apply({},p);\n'
20130515 '  }\n'
20130515 '  ,clear_base_params : function() {\n'
20130515 '      this.base_params = {};\n'
20130515 '      Lino.insert_subst_user(this.base_params);\n'
20130515 '  }\n'
20130515 '  ,set_base_param : function(k,v) {\n'
20130515 '      if (!this.base_params) this.base_params = {};\n'
20130515 '      this.base_params[k] = v;\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.calendar_app = function() { return {\n'
20130515 '  get_main_panel : function() {\n'
20130515 '      return new Lino.CalendarAppPanel({ items : \n'
20130515 '        //~ [{\n'
20130515 "          //~ id: 'app-header',\n"
20130515 "          //~ region: 'north',\n"
20130515 '          //~ height: 35,\n'
20130515 '          //~ border: false,\n'
20130515 "          // contentEl: 'app-header-content'\n"
20130515 '        //~ },\n'
20130515 '      {\n'
20130515 "          id: 'app-center',\n"
20130515 "          title: '...', // will be updated to the current view's date range\n"
20130515 "          region: 'center',\n"
20130515 "          layout: 'border',\n"
20130515 '          listeners: {\n'
20130515 "              'afterrender': function(){\n"
20130515 "                  Ext.getCmp('app-center').header.addClass('app-center-header');\n"
20130515 '              }\n'
20130515 '          },\n'
20130515 '          items: [{\n'
20130515 "              id:'app-west',\n"
20130515 "              region: 'west',\n"
20130515 '              width: 176,\n'
20130515 '              border: false,\n'
20130515 '              items: [{\n'
20130515 "                  xtype: 'datepicker',\n"
20130515 "                  id: 'app-nav-picker',\n"
20130515 "                  cls: 'ext-cal-nav-picker',\n"
20130515 '                  listeners: {\n'
20130515 "                      'select': {\n"
20130515 '                          fn: function(dp, dt){\n'
20130515 '                              Lino.calendarPanel.setStartDate(dt);\n'
20130515 '                          },\n'
20130515 '                          scope: this\n'
20130515 '                      }\n'
20130515 '                  }\n'
20130515 '              //~ },{ \n'
20130515 "                //~ layout:'fit',\n"
20130515 '                //~ items: [\n'
20130515 '                  //~ new Ext.form.Checkbox({\n'
20130515 '                    //~ boxLabel:"$_(\'Team view\')",\n'
20130515 '                    //~ hideLabel:true\n'
20130515 '                    //~ listeners: { click: }\n'
20130515 '                  //~ })\n'
20130515 '                //~ ]\n'
20130515 '              },{ \n'
20130515 "                layout:'form',\n"
20130515 '                items: [\n'
20130515 '                  this.team_view_button = new Ext.Button({\n'
20130515 '                    text:"Team view",\n'
20130515 '                    enableToggle:true,\n'
20130515 '                    pressed:false,\n'
20130515 '                    toggleHandler: function(btn,state) { \n'
20130515 "                      //~ console.log('20120716 teamView.toggle()');\n"
20130515 "                      Lino.eventStore.setBaseParam('tv',state);\n"
20130515 '                      Lino.eventStore.load();\n'
20130515 '                      //~ Lino.eventStore.load({params:{$ext_requests.URL_PARAM_TEAM_VIEW:state}});\n'
20130515 '                      //~ console.log("team view",state);\n'
20130515 '                    }\n'
20130515 '                  })\n'
20130515 '                ]\n'
20130515 '              },{\n'
20130515 "                  xtype: 'extensible.calendarlist',\n"
20130515 '                  store: Lino.calendarStore,\n'
20130515 '                  border: false,\n'
20130515 '                  width: 175\n'
20130515 '              }]\n'
20130515 '          },{\n'
20130515 "              xtype: 'extensible.calendarpanel',\n"
20130515 '              eventStore: Lino.eventStore,\n'
20130515 '              calendarStore: Lino.calendarStore,\n'
20130515 '              border: false,\n'
20130515 "              id:'app-calendar',\n"
20130515 "              region: 'center',\n"
20130515 '              //~ activeItem: 3, // month view\n'
20130515 '              \n'
20130515 '              // Any generic view options that should be applied to all sub views:\n'
20130515 '              viewConfig: {\n'
20130515 '                  // Lino.CalendarCfg\n'
20130515 "                  dateParamFormat: 'd.m.Y',\n"
20130515 "                  dateParamStart:'sd',\n"
20130515 "                  dateParamEnd:'ed',\n"
20130515 '                \n'
20130515 '                  //enableFx: false,\n'
20130515 '                  //ddIncrement: 10, //only applies to DayView and subclasses, but convenient to put it here\n'
20130515 '                  viewStartHour: 8,\n'
20130515 '                  viewEndHour: 18\n'
20130515 '                  //minEventDisplayMinutes: 15\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // View options specific to a certain view (if the same options exist in viewConfig\n'
20130515 '              // they will be overridden by the view-specific config):\n'
20130515 '              monthViewCfg: {\n'
20130515 '                  showHeader: true,\n'
20130515 '                  showWeekLinks: true,\n'
20130515 '                  showWeekNumbers: true,\n'
20130515 "                  eventBodyMarkup: ['{Title}',\n"
20130515 '                    //~ \'<tpl if="url">\',\n'
20130515 '                        //~ \'<a href="{url}">XX</a>\',\n'
20130515 "                    //~ '</tpl>',\n"
20130515 '                    \'<tpl if="_isReminder">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rem">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="_isRecurring">\',\n'
20130515 '                        \'<i class="ext-cal-ic ext-cal-ic-rcr">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanLeft">\',\n'
20130515 '                        \'<i class="ext-cal-spl">&#160;</i>\',\n'
20130515 "                    '</tpl>',\n"
20130515 '                    \'<tpl if="spanRight">\',\n'
20130515 '                        \'<i class="ext-cal-spr">&#160;</i>\',\n'
20130515 "                    '</tpl>'\n"
20130515 "                ].join('')\n"
20130515 '              },\n'
20130515 '              \n'
20130515 '              multiWeekViewCfg: {\n'
20130515 '                  //weekCount: 3\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              // Some optional CalendarPanel configs to experiment with:\n'
20130515 '              //readOnly: true,\n'
20130515 '              //showDayView: false,\n'
20130515 '              //showMultiDayView: true,\n'
20130515 '              //showWeekView: false,\n'
20130515 '              //showMultiWeekView: false,\n'
20130515 '              //showMonthView: false,\n'
20130515 '              //showNavBar: false,\n'
20130515 '              //showTodayText: false,\n'
20130515 '              //showTime: false,\n'
20130515 '              //editModal: true,\n'
20130515 '              //enableEditDetails: false,\n'
20130515 "              //title: 'My Calendar', // the header of the calendar, could be a subtitle for the app\n"
20130515 '              \n'
20130515 '              // Once this component inits it will set a reference to itself as an application\n'
20130515 '              // member property for easy reference in other functions within App.\n'
20130515 '              initComponent: function() {\n'
20130515 '                  Lino.calendarPanel = this;\n'
20130515 '                  this.constructor.prototype.initComponent.apply(this, arguments);\n'
20130515 '              },\n'
20130515 '              \n'
20130515 '              listeners: {\n'
20130515 "                  //~ 'eventclick': {\n"
20130515 '                      //~ fn: function(vw, rec, el){\n'
20130515 '                          //~ this.clearMsg();\n'
20130515 '                      //~ },\n'
20130515 '                      //~ scope: this\n'
20130515 '                  //~ },\n'
20130515 "                  'eventover': function(vw, rec, el){\n"
20130515 "                      //console.log('Entered evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventout': function(vw, rec, el){\n"
20130515 "                      //console.log('Leaving evt rec='+rec.data[Ext.ensible.cal.EventMappings.Title.name]+', view='+ vw.id +', el='+el.id);\n"
20130515 '                  },\n'
20130515 "                  'eventadd': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was added');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventupdate': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          //this.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventcancel': {\n"
20130515 '                      fn: function(cp, rec){\n'
20130515 '                          // edit canceled\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'viewchange': {\n"
20130515 '                      fn: function(p, vw, dateInfo){\n'
20130515 '                          if(this.editWin){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          };\n'
20130515 '                          if(dateInfo !== null){\n'
20130515 '                              // will be null when switching to the event edit form so ignore\n'
20130515 "                              Ext.getCmp('app-nav-picker').setValue(dateInfo.activeDate);\n"
20130515 '                              this.updateTitle(dateInfo.viewStart, dateInfo.viewEnd);\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'dayclick': {\n"
20130515 '                      fn: function(vw, dt, ad, el){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'rangeselect': {\n"
20130515 '                      fn: function(vw, dates, onComplete){\n'
20130515 '                          this.clearMsg();\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventmove': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          var time = rec.data[Ext.ensible.cal.EventMappings.IsAllDay.name] ? '' : ' \\\\a\\\\t g:i a';\n"
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was moved to '+\n"
20130515 "                              rec.data[Ext.ensible.cal.EventMappings.StartDate.name].format('F jS'+time));\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventresize': {\n"
20130515 '                      fn: function(vw, rec){\n'
20130515 '                          rec.commit();\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was updated');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'eventdelete': {\n"
20130515 '                      fn: function(win, rec){\n'
20130515 '                          Lino.eventStore.remove(rec);\n'
20130515 "                          this.showMsg('Event '+ rec.data[Ext.ensible.cal.EventMappings.Title.name] +' was deleted');\n"
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  },\n'
20130515 "                  'initdrag': {\n"
20130515 '                      fn: function(vw){\n'
20130515 '                          if(this.editWin && this.editWin.isVisible()){\n'
20130515 '                              this.editWin.hide();\n'
20130515 '                          }\n'
20130515 '                      },\n'
20130515 '                      scope: this\n'
20130515 '                  }\n'
20130515 '              }\n'
20130515 '          }]\n'
20130515 '        }\n'
20130515 '        //~ ]\n'
20130515 '        \n'
20130515 '      });\n'
20130515 '      \n'
20130515 '  }\n'
20130515 '  ,updateTitle: function(startDt, endDt){\n'
20130515 "      var p = Ext.getCmp('app-center');\n"
20130515 '      \n'
20130515 '      if(startDt.clearTime().getTime() == endDt.clearTime().getTime()){\n'
20130515 "          p.setTitle(startDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '      else if(startDt.getFullYear() == endDt.getFullYear()){\n'
20130515 '          if(startDt.getMonth() == endDt.getMonth()){\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('j, Y'));\n"
20130515 '          }\n'
20130515 '          else{\n'
20130515 "              p.setTitle(startDt.format('F j') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '          }\n'
20130515 '      }\n'
20130515 '      else{\n'
20130515 "          p.setTitle(startDt.format('F j, Y') + ' - ' + endDt.format('F j, Y'));\n"
20130515 '      }\n'
20130515 '  }\n'
20130515 '  // This is an application-specific way to communicate CalendarPanel event messages back to the user.\n'
20130515 '  // This could be replaced with a function to do "toast" style messages, growl messages, etc. This will\n'
20130515 "  // vary based on application requirements, which is why it's not baked into the CalendarPanel.\n"
20130515 '  ,showMsg: function(msg){\n'
20130515 '      Lino.notify(msg);\n'
20130515 "      //~ Ext.fly('app-msg').update(msg).removeClass('x-hidden');\n"
20130515 '  }\n'
20130515 '  \n'
20130515 '  ,clearMsg: function(){\n'
20130515 "      Lino.notify('');\n"
20130515 "      //~ Ext.fly('app-msg').update('').addClass('x-hidden');\n"
20130515 '  }\n'
20130515 '}\n'
20130515 '}();\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '/*\n'
20130515 'captureEvents utility by Aaron Conran\n'
20130515 '<http://www.sencha.com/learn/grid-faq/>\n'
20130515 '\n'
20130515 'Ext.onReady(function(){\n'
20130515 '    var grid = new Ext.grid.GridPanel({\n'
20130515 '        ... \n'
20130515 '    });\n'
20130515 '    captureEvents(grid);\n'
20130515 '});\n'
20130515 '*/\n'
20130515 'function captureEvents(observable) {\n'
20130515 '    Ext.util.Observable.capture(\n'
20130515 '        observable,\n'
20130515 '        function(eventName) {\n'
20130515 '            console.info(eventName);\n'
20130515 '        },\n'
20130515 '        this\n'
20130515 '    );\t\t\n'
20130515 '}\n'
20130515 ' \n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.main_menu = [ { "menu": { "items": [ { "text": "Personnes", "handler": function() {Lino.contacts.Persons.grid.run(null)} }, { "text": " \\u25b6 Clients", "handler": function() {Lino.pcsw.Clients.grid.run(null)} }, { "text": "Organisations", "handler": function() {Lino.contacts.Companies.grid.run(null)} }, { "text": "M\\u00e9nages", "handler": function() {Lino.households.Households.grid.run(null)} }, "-", { "text": "Partenaires (tous)", "handler": function() {Lino.contacts.Partners.grid.run(null)} } ] }, "text": "Contacts" }, { "menu": { "items": [ { "text": "Mon courrier sortant", "handler": function() {Lino.outbox.MyOutbox.grid.run(null)} }, { "menu": { "items": [ { "text": "Mes Envois postaux", "handler": function() {Lino.postings.MyPostings.grid.run(null)} }, { "text": "Envois postaux \\u00e0 imprimer", "handler": function() {Lino.postings.PostingsReady.grid.run(null)} }, { "text": "Envois postaux imprim\\u00e9s", "handler": function() {Lino.postings.PostingsPrinted.grid.run(null)} }, { "text": "Envois postaux envoy\\u00e9s", "handler": function() {Lino.postings.PostingsSent.grid.run(null)} } ] }, "text": "Envois postaux" }, { "text": "Mes notes", "handler": function() {Lino.notes.MyNotes.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Calendrier", "iconCls": "x-tbar-calendar", "handler": function() {Lino.cal.CalendarPanel.grid.run(null)} }, { "text": "Events", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my calendar events.") }, "handler": function() {Lino.cal.MyEvents.grid.run(null)} }, "-", { "text": "Mes T\\u00e2ches", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of all my tasks.") }, "handler": function() {Lino.cal.MyTasks.grid.run(null)} }, { "text": "To-do list", "listeners": { "render": Lino.quicktip_renderer("Foo","Table of my tasks marked \'to do\'.") }, "handler": function() {Lino.cal.MyTasksToDo.grid.run(null)} }, "-", { "text": "Mes pr\\u00e9sences", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows all my presences in calendar events, independently of their state.") }, "handler": function() {Lino.cal.MyPresences.grid.run(null)} }, { "text": "Mes invitations re\\u00e7ues", "listeners": { "render": Lino.quicktip_renderer("Foo","Shows received invitations which I must accept or reject.") }, "handler": function() {Lino.cal.MyPendingInvitations.grid.run(null)} } ] }, "text": "Calendrier" }, { "menu": { "items": [ { "text": "Clients", "listeners": { "render": Lino.quicktip_renderer("Foo","Wie Kontakte \\u25b8 Klienten, aber mit DSBE-spezifischen Kolonnen und Filterparametern.") }, "handler": function() {Lino.pcsw.IntegClients.grid.run(null)} }, { "text": "PIISs", "handler": function() {Lino.isip.MyContracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.MyContracts.grid.run(null)} }, { "text": "Employants", "handler": function() {Lino.jobs.JobProviders.grid.run(null)} }, { "text": "Emplois", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    Eine Stelle ist ein Arbeitsplatz bei einem Stellenabieter. \\n    ") }, "handler": function() {Lino.jobs.Jobs.grid.run(null)} }, { "text": "Offres d\'emploi", "handler": function() {Lino.jobs.Offers.grid.run(null)} }, { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.NewJobsOverview.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Int\\u00e9gration" }, { "menu": { "items": [ { "text": "Organisateurs de cours", "handler": function() {Lino.courses.CourseProviders.grid.run(null)} }, { "text": "Offres de cours", "handler": function() {Lino.courses.CourseOffers.grid.run(null)} }, { "text": "Demandes de cours ouvertes", "handler": function() {Lino.courses.PendingCourseRequests.grid.run(null)} } ] }, "text": "Cours" }, { "menu": { "items": [ { "text": "Situation contrats Art 60-7", "listeners": { "render": Lino.quicktip_renderer("Foo","Open a detail window on this record") }, "handler": function() {Lino.jobs.JobsOverview.show.run(null,{ "record_id": -99998 })} }, { "text": "Agents et leurs clients", "handler": function() {Lino.pcsw.UsersWithClients.grid.run(null)} } ] }, "text": "Listings" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "Mes Text Field Templates", "handler": function() {Lino.ui.MyTextFieldTemplates.grid.run(null)} } ] }, "text": "Office" }, { "menu": { "items": [ { "text": "Pays", "listeners": { "render": Lino.quicktip_renderer("Foo","\\n    A country is a geographic entity considered a \\"nation\\".\\n    ") }, "handler": function() {Lino.countries.Countries.grid.run(null)} }, { "text": "Langues", "handler": function() {Lino.countries.Languages.grid.run(null)} } ] }, "text": "Contacts" } ] }, "text": "Configuration" }, { "menu": { "items": [ { "menu": { "items": [ { "text": "PIISs", "handler": function() {Lino.isip.Contracts.grid.run(null)} }, { "text": "Contrats de travail", "handler": function() {Lino.jobs.Contracts.grid.run(null)} } ] }, "text": "Int\\u00e9gration" } ] }, "text": "Explorateur" }, { "menu": { "items": [ { "text": "About", "listeners": { "render": Lino.quicktip_renderer("Foo","Show information about this site.") }, "handler": function() {Lino.about.About.show.run(null,{ "record_id": -99998 })} } ] }, "text": "Site" }, { "text": "D\\u00e9part", "handler": function() {Lino.close_all_windows()} } ];\n'
20130515 "Ext.namespace('Lino.ui.SiteConfigs')\n"
20130515 "Ext.namespace('Lino.ui.ContentTypes')\n"
20130515 "Ext.namespace('Lino.ui.HelpTexts')\n"
20130515 "Ext.namespace('Lino.ui.TextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.Users')\n"
20130515 "Ext.namespace('Lino.users.MySettings')\n"
20130515 "Ext.namespace('Lino.users.UsersOverview')\n"
20130515 "Ext.namespace('Lino.users.Teams')\n"
20130515 "Ext.namespace('Lino.users.Memberships')\n"
20130515 "Ext.namespace('Lino.users.Authorities')\n"
20130515 "Ext.namespace('Lino.changes.Changes')\n"
20130515 "Ext.namespace('Lino.countries.Languages')\n"
20130515 "Ext.namespace('Lino.countries.Countries')\n"
20130515 "Ext.namespace('Lino.countries.Cities')\n"
20130515 "Ext.namespace('Lino.properties.PropGroups')\n"
20130515 "Ext.namespace('Lino.properties.PropTypes')\n"
20130515 "Ext.namespace('Lino.properties.Properties')\n"
20130515 "Ext.namespace('Lino.properties.PropChoices')\n"
20130515 "Ext.namespace('Lino.contacts.CompanyTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Partners')\n"
20130515 "Ext.namespace('Lino.contacts.Companies')\n"
20130515 "Ext.namespace('Lino.contacts.RoleTypes')\n"
20130515 "Ext.namespace('Lino.contacts.Roles')\n"
20130515 "Ext.namespace('Lino.postings.Postings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByState')\n"
20130515 "Ext.namespace('Lino.postings.PostingsReady')\n"
20130515 "Ext.namespace('Lino.postings.PostingsPrinted')\n"
20130515 "Ext.namespace('Lino.postings.PostingsSent')\n"
20130515 "Ext.namespace('Lino.outbox.Recipients')\n"
20130515 "Ext.namespace('Lino.outbox.Mails')\n"
20130515 "Ext.namespace('Lino.outbox.Attachments')\n"
20130515 "Ext.namespace('Lino.cal.Calendars')\n"
20130515 "Ext.namespace('Lino.cal.Subscriptions')\n"
20130515 "Ext.namespace('Lino.cal.Places')\n"
20130515 "Ext.namespace('Lino.cal.Priorities')\n"
20130515 "Ext.namespace('Lino.cal.Events')\n"
20130515 "Ext.namespace('Lino.cal.MyEvents')\n"
20130515 "Ext.namespace('Lino.cal.MyUnclearEvents')\n"
20130515 "Ext.namespace('Lino.cal.EventsAssignedToMe')\n"
20130515 "Ext.namespace('Lino.cal.MyEventsToday')\n"
20130515 "Ext.namespace('Lino.cal.Tasks')\n"
20130515 "Ext.namespace('Lino.cal.GuestRoles')\n"
20130515 "Ext.namespace('Lino.cal.Guests')\n"
20130515 "Ext.namespace('Lino.cal.PanelCalendars')\n"
20130515 "Ext.namespace('Lino.cal.PanelEvents')\n"
20130515 "Ext.namespace('Lino.uploads.UploadTypes')\n"
20130515 "Ext.namespace('Lino.uploads.Uploads')\n"
20130515 "Ext.namespace('Lino.households.Types')\n"
20130515 "Ext.namespace('Lino.households.Households')\n"
20130515 "Ext.namespace('Lino.households.Roles')\n"
20130515 "Ext.namespace('Lino.households.Members')\n"
20130515 "Ext.namespace('Lino.accounts.Charts')\n"
20130515 "Ext.namespace('Lino.accounts.Groups')\n"
20130515 "Ext.namespace('Lino.accounts.Accounts')\n"
20130515 "Ext.namespace('Lino.notes.NoteTypes')\n"
20130515 "Ext.namespace('Lino.notes.EventTypes')\n"
20130515 "Ext.namespace('Lino.notes.Notes')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledges')\n"
20130515 "Ext.namespace('Lino.cv.PersonProperties')\n"
20130515 "Ext.namespace('Lino.contacts.Persons')\n"
20130515 "Ext.namespace('Lino.pcsw.Clients')\n"
20130515 "Ext.namespace('Lino.pcsw.DebtsClients')\n"
20130515 "Ext.namespace('Lino.pcsw.IntegClients')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsTest')\n"
20130515 "Ext.namespace('Lino.pcsw.PersonGroups')\n"
20130515 "Ext.namespace('Lino.pcsw.Activities')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Exclusions')\n"
20130515 "Ext.namespace('Lino.pcsw.AidTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.OverlappingContracts')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContactTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientContacts')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.Coachings')\n"
20130515 "Ext.namespace('Lino.isip.ContractTypes')\n"
20130515 "Ext.namespace('Lino.isip.ExamPolicies')\n"
20130515 "Ext.namespace('Lino.isip.ContractEndings')\n"
20130515 "Ext.namespace('Lino.isip.Contracts')\n"
20130515 "Ext.namespace('Lino.isip.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Schedules')\n"
20130515 "Ext.namespace('Lino.jobs.Regimes')\n"
20130515 "Ext.namespace('Lino.jobs.JobProviders')\n"
20130515 "Ext.namespace('Lino.jobs.ContractTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Sectors')\n"
20130515 "Ext.namespace('Lino.jobs.Functions')\n"
20130515 "Ext.namespace('Lino.jobs.Contracts')\n"
20130515 "Ext.namespace('Lino.jobs.MyContracts')\n"
20130515 "Ext.namespace('Lino.jobs.Offers')\n"
20130515 "Ext.namespace('Lino.jobs.StudyTypes')\n"
20130515 "Ext.namespace('Lino.jobs.Studies')\n"
20130515 "Ext.namespace('Lino.jobs.Experiences')\n"
20130515 "Ext.namespace('Lino.jobs.Candidatures')\n"
20130515 "Ext.namespace('Lino.jobs.Jobs')\n"
20130515 "Ext.namespace('Lino.jobs.JobTypes')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsSearch')\n"
20130515 "Ext.namespace('Lino.courses.CourseProviders')\n"
20130515 "Ext.namespace('Lino.courses.CourseContents')\n"
20130515 "Ext.namespace('Lino.courses.Courses')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffers')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequests')\n"
20130515 "Ext.namespace('Lino.courses.PendingCourseRequests')\n"
20130515 "Ext.namespace('Lino.newcomers.Brokers')\n"
20130515 "Ext.namespace('Lino.newcomers.Faculties')\n"
20130515 "Ext.namespace('Lino.newcomers.Competences')\n"
20130515 "Ext.namespace('Lino.newcomers.NewClients')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoaches')\n"
20130515 "Ext.namespace('Lino.debts.Budgets')\n"
20130515 "Ext.namespace('Lino.debts.Actors')\n"
20130515 "Ext.namespace('Lino.debts.Entries')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByType')\n"
20130515 "Ext.namespace('Lino.cbss.Sectors')\n"
20130515 "Ext.namespace('Lino.cbss.Purposes')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.sessions.SessionTable')\n"
20130515 "Ext.namespace('Lino.ui.MyTextFieldTemplates')\n"
20130515 "Ext.namespace('Lino.users.MembershipsByUser')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesGiven')\n"
20130515 "Ext.namespace('Lino.users.AuthoritiesTaken')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCity')\n"
20130515 "Ext.namespace('Lino.countries.CitiesByCountry')\n"
20130515 "Ext.namespace('Lino.properties.PropsByGroup')\n"
20130515 "Ext.namespace('Lino.properties.PropsByType')\n"
20130515 "Ext.namespace('Lino.properties.ChoicesByType')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCity')\n"
20130515 "Ext.namespace('Lino.contacts.PartnersByCountry')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByCompany')\n"
20130515 "Ext.namespace('Lino.contacts.RolesByPerson')\n"
20130515 "Ext.namespace('Lino.postings.MyPostings')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByPartner')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientsByMail')\n"
20130515 "Ext.namespace('Lino.outbox.MyOutbox')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByUser')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByProject')\n"
20130515 "Ext.namespace('Lino.outbox.SentByPartner')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByMail')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.SubscriptionsByUser')\n"
20130515 "Ext.namespace('Lino.cal.EventsByCalendar')\n"
20130515 "Ext.namespace('Lino.cal.EventsByPlace')\n"
20130515 "Ext.namespace('Lino.cal.EventsByProject')\n"
20130515 "Ext.namespace('Lino.cal.TasksByUser')\n"
20130515 "Ext.namespace('Lino.cal.MyTasks')\n"
20130515 "Ext.namespace('Lino.cal.MyTasksToDo')\n"
20130515 "Ext.namespace('Lino.cal.TasksByProject')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByEvent')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByRole')\n"
20130515 "Ext.namespace('Lino.cal.GuestsByPartner')\n"
20130515 "Ext.namespace('Lino.cal.MyPresences')\n"
20130515 "Ext.namespace('Lino.cal.MyPendingInvitations')\n"
20130515 "Ext.namespace('Lino.uploads.MyUploads')\n"
20130515 "Ext.namespace('Lino.households.HouseholdsByType')\n"
20130515 "Ext.namespace('Lino.households.MembersByHousehold')\n"
20130515 "Ext.namespace('Lino.households.MembersByPerson')\n"
20130515 "Ext.namespace('Lino.households.MembersByRole')\n"
20130515 "Ext.namespace('Lino.accounts.GroupsByChart')\n"
20130515 "Ext.namespace('Lino.accounts.AccountsByGroup')\n"
20130515 "Ext.namespace('Lino.notes.MyNotes')\n"
20130515 "Ext.namespace('Lino.notes.NotesByType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByEventType')\n"
20130515 "Ext.namespace('Lino.notes.NotesByProject')\n"
20130515 "Ext.namespace('Lino.cv.LanguageKnowledgesByPerson')\n"
20130515 "Ext.namespace('Lino.cv.KnowledgesByLanguage')\n"
20130515 "Ext.namespace('Lino.cv.PropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.PersonPropsByProp')\n"
20130515 "Ext.namespace('Lino.cv.ConfiguredPropsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.SoftSkillsByPerson')\n"
20130515 "Ext.namespace('Lino.cv.ObstaclesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientsByNationality')\n"
20130515 "Ext.namespace('Lino.pcsw.ExclusionsByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.ContactsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByClient')\n"
20130515 "Ext.namespace('Lino.pcsw.CoachingsByUser')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByPerson')\n"
20130515 "Ext.namespace('Lino.pcsw.NotesByCompany')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.isip.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.FunctionsBySector')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByPolicy')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByJob')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByRegime')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsBySchedule')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCountry')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByCity')\n"
20130515 "Ext.namespace('Lino.jobs.StudiesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByPerson')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesBySector')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByFunction')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByJob')\n"
20130515 "Ext.namespace('Lino.jobs.CandidaturesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.ExperiencesByOffer')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByProvider')\n"
20130515 "Ext.namespace('Lino.jobs.JobsByType')\n"
20130515 "Ext.namespace('Lino.jobs.ContractsByType')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverviewByType')\n"
20130515 "Ext.namespace('Lino.courses.CoursesByOffer')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByProvider')\n"
20130515 "Ext.namespace('Lino.courses.CourseOffersByContent')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestsByContent')\n"
20130515 "Ext.namespace('Lino.courses.RequestsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.ParticipantsByCourse')\n"
20130515 "Ext.namespace('Lino.courses.CandidatesByCourse')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByUser')\n"
20130515 "Ext.namespace('Lino.newcomers.CompetencesByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.MyCompetences')\n"
20130515 "Ext.namespace('Lino.newcomers.ClientsByFaculty')\n"
20130515 "Ext.namespace('Lino.newcomers.AvailableCoachesByClient')\n"
20130515 "Ext.namespace('Lino.debts.MyBudgets')\n"
20130515 "Ext.namespace('Lino.debts.BudgetsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ActorsByPartner')\n"
20130515 "Ext.namespace('Lino.debts.EntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.ExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.IncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.LiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.AssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DistByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.MyIdentifyPersonRequests')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAccessRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyManageAccessRequests')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsRequestsByPerson')\n"
20130515 "Ext.namespace('Lino.cbss.MyRetrieveTIGroupsRequests')\n"
20130515 "Ext.namespace('Lino.uploads.UploadsByController')\n"
20130515 "Ext.namespace('Lino.postings.PostingsByController')\n"
20130515 "Ext.namespace('Lino.cal.TasksByController')\n"
20130515 "Ext.namespace('Lino.outbox.MailsByController')\n"
20130515 "Ext.namespace('Lino.changes.ChangesByMaster')\n"
20130515 "Ext.namespace('Lino.ui.HelpTextsByModel')\n"
20130515 "Ext.namespace('Lino.outbox.AttachmentsByController')\n"
20130515 "Ext.namespace('Lino.cal.EventsByController')\n"
20130515 "Ext.namespace('Lino.about.Models')\n"
20130515 "Ext.namespace('Lino.about.FieldsByModel')\n"
20130515 "Ext.namespace('Lino.about.Inspector')\n"
20130515 "Ext.namespace('Lino.about.SourceFiles')\n"
20130515 "Ext.namespace('Lino.pcsw.UsersWithClients')\n"
20130515 "Ext.namespace('Lino.debts.PrintEntriesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintExpensesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintIncomesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintLiabilitiesByBudget')\n"
20130515 "Ext.namespace('Lino.debts.PrintAssetsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.SummaryTable')\n"
20130515 "Ext.namespace('Lino.debts.ResultByBudget')\n"
20130515 "Ext.namespace('Lino.debts.DebtsByBudget')\n"
20130515 "Ext.namespace('Lino.debts.BailiffDebtsByBudget')\n"
20130515 "Ext.namespace('Lino.cbss.IdentifyPersonResult')\n"
20130515 "Ext.namespace('Lino.cbss.RetrieveTIGroupsResult')\n"
20130515 "Ext.namespace('Lino.ui.Home')\n"
20130515 "Ext.namespace('Lino.about.About')\n"
20130515 "Ext.namespace('Lino.cal.CalendarPanel')\n"
20130515 "Ext.namespace('Lino.lino.Home')\n"
20130515 "Ext.namespace('Lino.jobs.JobsOverview')\n"
20130515 "Ext.namespace('Lino.jobs.NewJobsOverview')\n"
20130515 "Ext.namespace('Lino.courses.CourseRequestStates')\n"
20130515 "Ext.namespace('Lino.postings.PostingStates')\n"
20130515 "Ext.namespace('Lino.cal.DurationUnits')\n"
20130515 "Ext.namespace('Lino.cal.TaskStates')\n"
20130515 "Ext.namespace('Lino.cal.Weekdays')\n"
20130515 "Ext.namespace('Lino.lino.UserLevels')\n"
20130515 "Ext.namespace('Lino.lino.UserProfiles')\n"
20130515 "Ext.namespace('Lino.cal.EventStates')\n"
20130515 "Ext.namespace('Lino.accounts.AccountTypes')\n"
20130515 "Ext.namespace('Lino.cv.CefLevel')\n"
20130515 "Ext.namespace('Lino.properties.HowWell')\n"
20130515 "Ext.namespace('Lino.jobs.CandidatureStates')\n"
20130515 "Ext.namespace('Lino.outbox.RecipientType')\n"
20130515 "Ext.namespace('Lino.countries.CityTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.BeIdCardTypes')\n"
20130515 "Ext.namespace('Lino.pcsw.CivilState')\n"
20130515 "Ext.namespace('Lino.pcsw.ClientStates')\n"
20130515 "Ext.namespace('Lino.cal.GuestStates')\n"
20130515 "Ext.namespace('Lino.properties.DoYouLike')\n"
20130515 "Ext.namespace('Lino.cbss.RequestLanguages')\n"
20130515 "Ext.namespace('Lino.cbss.ManageAction')\n"
20130515 "Ext.namespace('Lino.pcsw.RefusalReasons')\n"
20130515 "Ext.namespace('Lino.lino.UserGroups')\n"
20130515 "Ext.namespace('Lino.cbss.RequestStates')\n"
20130515 "Ext.namespace('Lino.lino.ChangeTypes')\n"
20130515 "Ext.namespace('Lino.cal.AccessClasses')\n"
20130515 "Ext.namespace('Lino.cbss.QueryRegister')\n"
20130515 "Ext.namespace('Lino.lino.Genders')\n"
20130515 "Ext.namespace('Lino.pcsw.ResidenceType')\n"
20130515 '\n'
20130515 '// ChoiceLists: \n'
20130515 'Lino.courses.CourseRequestStates = [ [ "10", "Open" ], [ "20", "Registered" ], [ "30", "R\\u00e9ussi" ], [ "40", "Bien r\\u00e9ussi" ], [ "50", "echec" ], [ "60", "Abandonn\\u00e9" ], [ "70", "Inactif" ] ];\n'
20130515 'Lino.postings.PostingStates = [ [ "10", "Ouvert" ], [ "20", "Pr\\u00e8t \\u00e0 imprimer" ], [ "30", "Imprim\\u00e9" ], [ "40", "Ex\\u00e9cut\\u00e9" ], [ "50", "Retour" ] ];\n'
20130515 'Lino.cal.DurationUnits = [ [ "s", "secondes" ], [ "m", "minutes" ], [ "h", "heures" ], [ "D", "jours" ], [ "W", "semaines" ], [ "M", "mois" ], [ "Y", "ann\\u00e9es" ] ];\n'
20130515 'Lino.cal.TaskStates = [ [ "10", "\\u00e0 faire" ], [ "20", "Started" ], [ "30", "accomplie" ], [ "50", "Annul\\u00e9" ] ];\n'
20130515 'Lino.cal.Weekdays = [ [ "1", "Lundi" ], [ "2", "Mardi" ], [ "3", "Mercredit" ], [ "4", "Jeudi" ], [ "5", "Vendredi" ], [ "6", "Samedi" ], [ "7", "Dimanche" ] ];\n'
20130515 'Lino.lino.UserLevels = [ [ "10", "Guest" ], [ "20", "Secr\\u00e9taire" ], [ "30", "Utilisateur" ], [ "40", "Manager" ], [ "50", "Administrateur" ], [ "90", "Expert" ] ];\n'
20130515 'Lino.lino.UserProfiles = [ [ "000", "000 (Anonyme)" ], [ "100", "100 (Agent d\'insertion)" ], [ "110", "110 (Agent d\'insertion (chef de service))" ], [ "200", "200 (Consultat nouveaux clients)" ], [ "300", "300 (Consultate m\\u00e9diateur dettes)" ], [ "500", "500 (BCSS seulement)" ], [ "900", "900 (Administrateur)" ] ];\n'
20130515 'Lino.cal.EventStates = [ [ "10", "Propos\\u00e9" ], [ "20", "Draft" ], [ "30", "Communiqu\\u00e9" ], [ "40", "Planif\\u00e9" ], [ "50", "a eu lieu" ], [ "60", "D\\u00e9plac\\u00e9" ], [ "70", "Annul\\u00e9" ], [ "80", "Absent" ] ];\n'
20130515 'Lino.accounts.AccountTypes = [ [ "A", "Actifs" ], [ "L", "Obligations" ], [ "I", "Revenus" ], [ "E", "D\\u00e9penses" ], [ "C", "Capital" ], [ "B", "Bank accounts" ] ];\n'
20130515 'Lino.cv.CefLevel = [ [ "A1", "A1 (basic language skills)" ], [ "A2", "A2 (basic language skills)" ], [ "A2+", "A2+ (basic language skills)" ], [ "B1", "B1 (independent use of language)" ], [ "B2", "B2 (independent use of language)" ], [ "B2+", "B2+ (independent use of language)" ], [ "C1", "C1 (proficient use of language)" ], [ "C2", "C2 (proficient use of language)" ], [ "C2+", "C2+ (proficient use of language)" ] ];\n'
20130515 'Lino.properties.HowWell = [ [ "0", "not at all" ], [ "1", "a bit" ], [ "2", "moderate" ], [ "3", "quite well" ], [ "4", "very well" ] ];\n'
20130515 'Lino.jobs.CandidatureStates = [ [ "10", "Active" ], [ "20", "p\\u00e9riode d\'essai" ], [ "25", "Probation failed" ], [ "27", "Travaille" ], [ "30", "Inactive" ] ];\n'
20130515 'Lino.outbox.RecipientType = [ [ "to", "to" ], [ "cc", "cc" ], [ "bcc", "bcc" ] ];\n'
20130515 'Lino.countries.CityTypes = [ [ "10", "Member State" ], [ "11", "Division" ], [ "12", "Region" ], [ "13", "Community" ], [ "14", "Territory" ], [ "20", "County" ], [ "21", "Province" ], [ "22", "Shire" ], [ "23", "Subregion" ], [ "24", "Department" ], [ "25", "Arrondissement" ], [ "26", "Prefecture" ], [ "27", "District" ], [ "28", "Secteur" ], [ "50", "Ville" ], [ "51", "Town" ], [ "52", "Municipality" ], [ "54", "Parish" ], [ "55", "Township" ], [ "56", "Quarter" ], [ "61", "Borough" ], [ "62", "Small borough" ], [ "70", "Village" ] ];\n'
20130515 'Lino.pcsw.BeIdCardTypes = [ [ "1", "Registre national" ], [ "6", "Kids card (< 12 year)" ], [ "11", "Foreigner card A" ], [ "12", "Foreigner card B" ], [ "13", "Foreigner card C" ], [ "14", "Foreigner card D" ], [ "15", "Foreigner card E" ], [ "16", "Foreigner card E+" ], [ "17", "Foreigner card F" ], [ "18", "Foreigner card F+" ] ];\n'
20130515 'Lino.pcsw.CivilState = [ [ "10", "c\\u00e9libataire" ], [ "13", "C\\u00e9libateire cohabitant" ], [ "18", "C\\u00e9libataire avec enfant" ], [ "20", "mari\\u00e9" ], [ "21", "Mari\\u00e9 (habitant seul)" ], [ "22", "Mari\\u00e9 (vivant avec autre partenaire)" ], [ "30", "veuf/veuve" ], [ "33", "Veuf cohabitant" ], [ "40", "divorc\\u00e9" ], [ "50", "s\\u00e9par\\u00e9" ] ];\n'
20130515 'Lino.pcsw.ClientStates = [ [ "10", "Nouveau" ], [ "20", "Refus\\u00e9" ], [ "30", "Accompagn\\u00e9" ], [ "50", "Ancien" ] ];\n'
20130515 'Lino.cal.GuestStates = [ [ "10", "Invit\\u00e9" ], [ "20", "Accept\\u00e9" ], [ "30", "Rejet\\u00e9" ], [ "40", "Pr\\u00e9sent" ], [ "50", "Absent" ] ];\n'
20130515 'Lino.properties.DoYouLike = [ [ "0", "certainly not" ], [ "1", "rather not" ], [ "2", "normally" ], [ "3", "quite much" ], [ "4", "very much" ] ];\n'
20130515 'Lino.cbss.RequestLanguages = [ [ "nl", "Dutch" ], [ "fr", "French" ], [ "de", "German" ] ];\n'
20130515 'Lino.cbss.ManageAction = [ [ "1", "Int\\u00e9grer" ], [ "2", "Annuler int\\u00e9gration" ], [ "3", "Listing" ] ];\n'
20130515 'Lino.pcsw.RefusalReasons = [ [ "10", "Information request (No coaching needed)" ], [ "20", "CPAS n\'est pas comp\\u00e9tent" ], [ "30", "Client n\'est plus revenu" ] ];\n'
20130515 'Lino.lino.UserGroups = [ [ "office", "office (Office)" ], [ "accounting", "accounting (Comptabilit\\u00e9)" ], [ "integ", "integ (Int\\u00e9gration)" ], [ "newcomers", "newcomers (Nouvelles demandes)" ], [ "debts", "debts (M\\u00e9diation de dettes)" ], [ "cbss", "cbss (BCSS)" ] ];\n'
20130515 'Lino.cbss.RequestStates = [ [ "10", "Ex\\u00e9cut\\u00e9" ], [ "20", "echec" ], [ "25", "Valid\\u00e9" ], [ "30", "OK" ], [ "40", "Avertissements" ], [ "50", "Erreurs" ] ];\n'
20130515 'Lino.lino.ChangeTypes = [ [ "C", "Cr\\u00e9er" ], [ "U", "Update" ], [ "D", "Supprimer" ], [ "R", "Remove child" ], [ "A", "Add child" ], [ "M", "Merge" ] ];\n'
20130515 'Lino.cal.AccessClasses = [ [ "10", "Priv\\u00e9" ], [ "20", "Montrer \\"occup\\u00e9\\"" ], [ "30", "Public" ] ];\n'
20130515 'Lino.cbss.QueryRegister = [ [ "1", "Primaire" ], [ "2", "Secondaire" ], [ "3", "Tous" ] ];\n'
20130515 'Lino.lino.Genders = [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ];\n'
20130515 'Lino.pcsw.ResidenceType = [ [ "1", "Registre national" ], [ "2", "Registre des \\u00e9trangers" ], [ "3", "Registre d\'attente " ] ];\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1534 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1535 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1536 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1537 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1538 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1539 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1534, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1535, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1536, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1537, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1538, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1539, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1534, type1535, show_past1536, show_active1537, show_coming1538, today1539 ];\n'
20130515 '    Lino.jobs.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client_state1776 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1777 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1778 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1779 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1780 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var also_obsolete1781 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1782 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1776, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1777, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1778, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1779, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1780, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var aged_from1789 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1790 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1791 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var nationality1792 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1793 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1789, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1790, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1791, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1792, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var language1798 = new Lino.TwinCombo({ "fieldLabel": "Connaissance de langue", "name": "language", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Languages.detail)}, "emptyText": "Choisir Langue...", "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/language", "method": "GET" }) }) });\n'
20130515 '    var wanted_property1799 = new Lino.TwinCombo({ "fieldLabel": "Comp\\u00e9tence requise", "name": "wanted_property", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.properties.Properties.detail)}, "emptyText": "Choisir Propri\\u00e9t\\u00e9...", "selectOnFocus": true, "hiddenName": "wanted_propertyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/wanted_property", "method": "GET" }) }) });\n'
20130515 '    var group1800 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/group", "method": "GET" }) }) });\n'
20130515 '    var only_active1801 = new Ext.form.Checkbox({ "boxLabel": "Clients actifs seulement", "listeners": { "render": Lino.quicktip_renderer("Clients actifs seulement","Show only clients in \'active\' integration phases") }, "hideLabel": true, "checked": false, "name": "only_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_3_panel1802 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1798, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": wanted_property1799, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1800, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_active1801, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1782, main_2_panel1793, main_3_panel1802 ];\n'
20130515 '    this.fields = [ client_state1776, coached_by1777, and_coached_by1778, coached_on1779, only_primary1780, also_obsolete1781, aged_from1789, aged_to1790, gender1791, nationality1792, language1798, wanted_property1799, group1800, only_active1801 ];\n'
20130515 '    Lino.pcsw.IntegClients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2454 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2455 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var job_type2456 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    this.items = [ { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2454, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2455, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2456, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2454, date2455, job_type2456 ];\n'
20130515 '    Lino.jobs.JobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from1753 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to1754 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender1755 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1756 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1757 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from1753, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to1754, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1755, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1756, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state1762 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by1763 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by1764 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on1765 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary1766 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality1767 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1768 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1762, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by1763, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by1764, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on1765, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary1766, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1767, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1757, main_2_panel1768 ];\n'
20130515 '    this.fields = [ aged_from1753, aged_to1754, gender1755, also_obsolete1756, client_state1762, coached_by1763, and_coached_by1764, coached_on1765, only_primary1766, nationality1767 ];\n'
20130515 '    Lino.pcsw.Clients.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 252,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var user1427 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var type1428 = new Lino.TwinCombo({ "fieldLabel": "Uniquement contrats de type", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var show_past1429 = new Ext.form.Checkbox({ "boxLabel": "contrats termin\\u00e9s", "hideLabel": true, "checked": true, "name": "show_past", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_active1430 = new Ext.form.Checkbox({ "boxLabel": "contrats actifs", "hideLabel": true, "checked": true, "name": "show_active", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var show_coming1431 = new Ext.form.Checkbox({ "boxLabel": "contrats \\u00e0 venir", "hideLabel": true, "checked": true, "name": "show_coming", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var today1432 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "le", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1427, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1428, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_past1429, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_active1430, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": show_coming1431, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today1432, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ user1427, type1428, show_past1429, show_active1430, show_coming1431, today1432 ];\n'
20130515 '    Lino.isip.Contracts.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var dates_from836 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Date du","Nur Termine ab diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date du</span>", "anchor": "-20", "name": "dates_from" });\n'
20130515 '    var dates_to837 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("au ","Nur Termine bis zu diesem Datum.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">au </span>", "anchor": "-20", "name": "dates_to" });\n'
20130515 '    var user838 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Responsible user</span>", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Responsible user","Nur Termine dieses Benutzers.") }, "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to839 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Attribu\\u00e9 \\u00e0</span>", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("Attribu\\u00e9 \\u00e0","Nur Termine, die diesem Benutzer zugewiesen sind.") }, "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var state840 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "state", "hiddenName": "stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Termine in diesem Bearbeitungszustand.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.EventStates });\n'
20130515 '    var unclear841 = new Ext.form.Checkbox({ "boxLabel": "Mes rendez-vous \\u00e0 clarifier", "hideLabel": true, "checked": false, "name": "unclear", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel842 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 252, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_from836, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": dates_to837, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user838, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to839, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state840, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unclear841, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel842 ];\n'
20130515 '    this.fields = [ dates_from836, dates_to837, user838, assigned_to839, state840, unclear841 ];\n'
20130515 '    Lino.cal.MyEvents.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 126,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var job_type2463 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "job_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "job_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/NewJobsOverview/job_type", "method": "GET" }) }) });\n'
20130515 '    var today2464 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "today" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_type2463, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": today2464, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ job_type2463, today2464 ];\n'
20130515 '    Lino.jobs.NewJobsOverview.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var aged_from2128 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: de","Nur Klienten, die mindestens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: de</span>", "anchor": "-20", "name": "aged_from" });\n'
20130515 '    var aged_to2129 = new Ext.form.NumberField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Age: jusque","Nur Klienten, die h\\u00f6chstens so alt sind.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Age: jusque</span>", "anchor": "-20", "name": "aged_to" });\n'
20130515 '    var gender2130 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete2131 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel2132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_from2128, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": aged_to2129, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2130, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete2131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 216, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var client_state2137 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">State</span>", "name": "client_state", "hiddenName": "client_stateHidden", "listeners": { "render": Lino.quicktip_renderer("State","Nur Klienten mit diesem Status (Aktenzustand).") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates });\n'
20130515 '    var coached_by2138 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">AI</span>", "name": "coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("AI","Nur Klienten, die eine Begleitung mit diesem Benutzer haben.") }, "selectOnFocus": true, "hiddenName": "coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/coached_by", "method": "GET" }) }) });\n'
20130515 '    var and_coached_by2139 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">et par</span>", "name": "and_coached_by", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "listeners": { "render": Lino.quicktip_renderer("et par","Nur Klienten, die auch mit diesem Benutzer eine Begleitung haben.") }, "selectOnFocus": true, "hiddenName": "and_coached_byHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/and_coached_by", "method": "GET" }) }) });\n'
20130515 '    var coached_on2140 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("Accompagn\\u00e9 le","Nur Klienten, die zu diesem Datum effektiv begleitet waren \\n(d.h. die mindestens eine aktive Begleitung an diesem Datum haben)") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Accompagn\\u00e9 le</span>", "anchor": "-20", "name": "coached_on" });\n'
20130515 '    var only_primary2141 = new Ext.form.Checkbox({ "boxLabel": "Dossiers primaires seulement", "listeners": { "render": Lino.quicktip_renderer("Dossiers primaires seulement","Nur Klienten, die eine effektive <b>prim\\u00e4re</b> Begleitung haben.") }, "hideLabel": true, "checked": false, "name": "only_primary", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var nationality2142 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/nationality", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2143 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state2137, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_by2138, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": and_coached_by2139, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": coached_on2140, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": only_primary2141, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality2142, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 261, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var request_state2150 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "name": "request_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "hiddenName": "request_stateHidden" });\n'
20130515 '    var course_content2151 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "name": "course_content", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "course_contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_content", "method": "GET" }) }) });\n'
20130515 '    var course_provider2152 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "name": "course_provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "course_providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/course_provider", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel2153 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": request_state2150, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_content2151, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course_provider2152, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel2132, main_2_panel2143, main_3_panel2153 ];\n'
20130515 '    this.fields = [ aged_from2128, aged_to2129, gender2130, also_obsolete2131, client_state2137, coached_by2138, and_coached_by2139, coached_on2140, only_primary2141, nationality2142, request_state2150, course_content2151, course_provider2152 ];\n'
20130515 '    Lino.courses.PendingCourseRequests.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoHeight: true,\n'
20130515 '  layout: "hbox",\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretchmax" },\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  autoScroll: false,\n'
20130515 '  labelWidth: 243,\n'
20130515 '  border: false,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var contract_type2420 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat de travail", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsOverviewByType/contract_type", "method": "GET" }) }) });\n'
20130515 '    var date2421 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    this.items = [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type2420, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date2421, "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ contract_type2420, date2421 ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.ParamsPanel = Ext.extend(Ext.form.FormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "fit",\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var gender1098 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Sexe</span>", "name": "gender", "hiddenName": "genderHidden", "listeners": { "render": Lino.quicktip_renderer("Sexe","Nur Personen, deren Feld \\"Geschlecht\\" ausgef\\u00fcllt ist und dem angegebenen Wert entspricht.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders });\n'
20130515 '    var also_obsolete1099 = new Ext.form.Checkbox({ "boxLabel": "aussi clients obsol\\u00e8tes", "listeners": { "render": Lino.quicktip_renderer("aussi clients obsol\\u00e8tes","Auch Datens\\u00e4tze anzeigen, die als veraltet markiert sind.") }, "hideLabel": true, "checked": false, "name": "also_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1100 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 47, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1098, "labelAlign": "top" }, { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": also_obsolete1099, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    this.items = [ main_1_panel1100 ];\n'
20130515 '    this.fields = [ gender1098, also_obsolete1099 ];\n'
20130515 '    Lino.contacts.Persons.ParamsPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 90,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Refuser",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var reason13 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "reason", "allowBlank": false, "hiddenName": "reasonHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "name": "reason" });\n'
20130515 '    var remark14 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    this.items = [ { "items": reason13, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": remark14, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ];\n'
20130515 '    this.fields = [ reason13, remark14 ];\n'
20130515 '    Lino.pcsw.Clients.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf2_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  border: false,\n'
20130515 '  layout: "vbox",\n'
20130515 '  labelWidth: 387,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  layoutConfig: { "align": "stretch" },\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'wf2',\n"
20130515 '  window_title: "Rejeter",\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var notify_subject6 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "notify_subject" });\n'
20130515 '    var notify_body7 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "notify_body" });\n'
20130515 '    var notify_silent8 = new Ext.form.Checkbox({ "boxLabel": "Don\'t send email notification", "hideLabel": true, "checked": false, "name": "notify_silent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    this.items = [ { "items": notify_subject6, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": notify_body7, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, { "items": notify_silent8, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ notify_subject6, notify_body7, notify_silent8 ];\n'
20130515 '    Lino.cal.GuestsByEvent.wf2_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to18 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/pcsw/Clients/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var pcsw_Coaching19 = new Ext.form.Checkbox({ "boxLabel": "Accompagnements", "hideLabel": true, "checked": false, "name": "pcsw_Coaching", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var cv_LanguageKnowledge20 = new Ext.form.Checkbox({ "boxLabel": "Connaissances de langue", "hideLabel": true, "checked": false, "name": "cv_LanguageKnowledge", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_1_panel21 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": pcsw_Coaching19, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cv_LanguageKnowledge20, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var properties_PersonProperty24 = new Ext.form.Checkbox({ "boxLabel": "Propri\\u00e9t\\u00e9s", "hideLabel": true, "checked": false, "name": "properties_PersonProperty", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var keep_volatiles_panel25 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Auch verg\\u00e4ngliche verkn\\u00fcpfte Objekte \\u00fcberweisen", "items": [ keep_volatiles_1_panel21, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": properties_PersonProperty24, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var reason27 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to18, "anchor": "-20", "labelAlign": "top" }, keep_volatiles_panel25, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason27, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to18, pcsw_Coaching19, cv_LanguageKnowledge20, properties_PersonProperty24, reason27 ];\n'
20130515 '    Lino.pcsw.Clients.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row_ActionFormPanel = Ext.extend(Lino.ActionFormPanel,{\n'
20130515 '  autoScroll: false,\n'
20130515 '  autoHeight: true,\n'
20130515 '  border: false,\n'
20130515 '  layout: "form",\n'
20130515 '  labelWidth: 99,\n'
20130515 '  hideCheckBoxLabels: true,\n'
20130515 '  frame: true,\n'
20130515 '  bodyBorder: false,\n'
20130515 '  labelAlign: "top",\n'
20130515 "  action_name: 'merge_row',\n"
20130515 '  window_title: "Merge",\n'
20130515 '  autoHeight: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var merge_to1 = new Lino.TwinCombo({ "fieldLabel": "nach...", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "merge_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/apchoices/contacts/Companies/merge_row/merge_to", "method": "GET" }) }), "name": "merge_to" });\n'
20130515 '    var reason2 = new Ext.form.TextField({ "fieldLabel": "Begr\\u00fcndung", "name": "reason", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    this.items = [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": merge_to1, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": reason2, "anchor": "-20", "labelAlign": "top" } ];\n'
20130515 '    this.fields = [ merge_to1, reason2 ];\n'
20130515 '    Lino.contacts.Companies.merge_row_ActionFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var start_date818 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time819 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel820 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date818, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date823 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time824 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel825 = new Ext.Panel({ "flex": 50, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date823, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time824, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var main_2_panel828 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ start_panel820, end_panel825 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var calendar829 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var project830 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel831 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar829, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project830, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel834 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary817, "anchor": "-20", "labelAlign": "top" }, main_2_panel828, main_3_panel831 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel834;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1608 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var job1609 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var main_panel1610 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1608, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1609, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1610;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1609.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1440 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1441 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1442 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1443 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1444 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var general_1_panel1445 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1440, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1441, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1442, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1443, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1444, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type1451 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1452 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1453 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1454 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel1455 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1451, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1452, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1453, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1454, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1460 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var applies_until1461 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1462 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var general_3_panel1463 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1460, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1461, "labelAlign": "top" }, { "flex": 55, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1462, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1467 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1468 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1469 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1470 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var general_4_panel1471 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1467, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1468, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1469, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1470, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid1476 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 47 });\n'
20130515 '    var cal_EventsByController_grid1483 = new Lino.cal.EventsByController.GridPanel({ "flex": 52, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ], "master_panel": this });\n'
20130515 '    var general_5_panel1484 = new Ext.Panel({ "flex": 55, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ cal_TasksByController_grid1476, cal_EventsByController_grid1483 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1485 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1445, general_2_panel1455, general_3_panel1463, general_4_panel1471, general_5_panel1484 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var stages1486 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "stages", "title": "stages" });\n'
20130515 '    var goals1487 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "goals", "title": "buts" });\n'
20130515 '    var isip_1_panel1488 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ stages1486, goals1487 ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_asd1489 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_asd", "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1490 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_dsbe", "title": "devois ISP" });\n'
20130515 '    var isip_2_panel1491 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_asd1489, duties_dsbe1490 ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var duties_company1492 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_company", "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1493 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 50, "containing_panel": this, "name": "duties_person", "title": "Devoirs personne" });\n'
20130515 '    var isip_3_panel1494 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ duties_company1492, duties_person1493 ], "region": "south", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 0, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var isip_panel1495 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "PIIS", "hideCheckBoxLabels": true, "items": [ isip_1_panel1488, isip_2_panel1491, isip_3_panel1494 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1496 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1485, isip_panel1495 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1496;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1453.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      cal_TasksByController_grid1476.on_master_changed();\n'
20130515 '      cal_EventsByController_grid1483.on_master_changed();\n'
20130515 '      stages1486.refresh();\n'
20130515 '      goals1487.refresh();\n'
20130515 '      duties_asd1489.refresh();\n'
20130515 '      duties_dsbe1490.refresh();\n'
20130515 '      duties_company1492.refresh();\n'
20130515 '      duties_person1493.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1452.on('change',Lino.chooser_handler(contact_person1453,'company'));\n"
20130515 '      Lino.isip.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1452.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 59,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var client1497 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var type1498 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ContractTypes.detail)}, "emptyText": "Choisir Type de PIIS...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1499 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel1500 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1498, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1499, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1503 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1497, "anchor": "-20", "labelAlign": "top" }, main_2_panel1500 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.isip.Contracts.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    company1499.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name2378 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2379 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2380 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel2381 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2379, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2380, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2384 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2378, "anchor": "-20", "labelAlign": "top" }, main_2_panel2381 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2384;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var subject673 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project674 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var date675 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date","\\n        The official date to be printed on the document.\\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date</span>", "name": "date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel676 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject673, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project674, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date675, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var user680 = new Lino.TwinCombo({ "fieldLabel": "exp\\u00e9diteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/user", "method": "GET" }) }) });\n'
20130515 '    var sent681 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "sent", "anchor": "-20", "value": "<br>", "name": "sent" });\n'
20130515 '    var id682 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var owner_disp683 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_2_panel684 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user680, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent681, "labelAlign": "top" }, { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id682, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp683, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var RecipientsByMail_grid695 = new Lino.outbox.RecipientsByMail.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.RecipientsByMail.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var AttachmentsByMail_htmlbox696 = new Lino.HtmlBoxPanel({ "flex": 22, "layout": "fit", "name": "AttachmentsByMail", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Pi\\u00e8ces jointes", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.outbox.AttachmentsByMail.grid) ] });\n'
20130515 '    var UploadsByController_htmlbox697 = new Lino.HtmlBoxPanel({ "flex": 22, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel698 = new Ext.Panel({ "flex": 29, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ RecipientsByMail_grid695, AttachmentsByMail_htmlbox696, UploadsByController_htmlbox697 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var body699 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 58, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel700 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel676, main_2_panel684, main_3_panel698, body699 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel700;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      RecipientsByMail_grid695.on_master_changed();\n'
20130515 '      AttachmentsByMail_htmlbox696.refresh();\n'
20130515 '      UploadsByController_htmlbox697.refresh();\n'
20130515 '      body699.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date636 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date", "anchor": "-20", "name": "date" });\n'
20130515 '    var event_type637 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type638 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var left_1_panel639 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date636, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type637, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type638, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var subject643 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project644 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company645 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var left_3_panel646 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project644, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company645, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var id649 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var user650 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/user", "method": "GET" }) }) });\n'
20130515 '    var language651 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var build_time652 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var left_4_panel653 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id649, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user650, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language651, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time652, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var body658 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 55, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var left_panel659 = new Ext.Panel({ "flex": 66, "layout": "vbox", "items": [ left_1_panel639, { "items": subject643, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, left_3_panel646, left_4_panel653, body658 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox661 = new Lino.HtmlBoxPanel({ "flex": 16, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var outbox_MailsByController_grid707 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var postings_PostingsByController_grid718 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var cal_TasksByController_grid724 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var right_panel725 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ UploadsByController_htmlbox661, outbox_MailsByController_grid707, postings_PostingsByController_grid718, cal_TasksByController_grid724 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel726 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ left_panel659, right_panel725 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel727 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel726 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel727;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body658.refresh();\n'
20130515 '      UploadsByController_htmlbox661.refresh();\n'
20130515 '      outbox_MailsByController_grid707.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid718.on_master_changed();\n'
20130515 '      cal_TasksByController_grid724.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var preview_htmlbox2461 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "preview", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2462 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ preview_htmlbox2461 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2462;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      preview_htmlbox2461.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.NewJobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name550 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id551 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language552 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel553 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix549, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name550, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id551, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language552, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity559 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }) });\n'
20130515 '    var type560 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel561 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id558, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity559, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type560, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account1565 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete567 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel568 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1565, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2566, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete567, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel572 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel553, intro_box_2_panel561, intro_box_3_panel568 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country573 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }) });\n'
20130515 '    var region574 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel575 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country573, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region574, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city578 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code579 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel580 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city578, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code579, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix583 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street584 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no585 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box586 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel587 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix583, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street584, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no585, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box586, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2592 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel593 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel575, box3_2_panel580, box3_3_panel587, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2592, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email595 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url596 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone597 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm598 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel599 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email595, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url596, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone597, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm598, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel604 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel593, box4_panel599 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks605 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var is_courseprovider606 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un organisateur de cours (<a href=\\"javascript:Lino.show_mti_child(\'is_courseprovider\',Lino.courses.CourseProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_courseprovider" });\n'
20130515 '    var is_jobprovider607 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est Employant (<a href=\\"javascript:Lino.show_mti_child(\'is_jobprovider\',Lino.jobs.JobProviders.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_jobprovider" });\n'
20130515 '    var client_contact_type608 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de contact client", "name": "client_contact_type", "pageSize": 20, "emptyText": "Choisir Type de contact client...", "selectOnFocus": true, "hiddenName": "client_contact_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }) });\n'
20130515 '    var box5_2_panel609 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 261, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_courseprovider606, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_jobprovider607, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_contact_type608, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var box5_panel613 = new Ext.Panel({ "flex": 57, "layout": "vbox", "items": [ { "items": remarks605, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 }, box5_2_panel609 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByCompany_grid619 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel620 = new Ext.Panel({ "flex": 46, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box5_panel613, contacts_RolesByCompany_grid619 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel621 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel572, address_box_panel604, bottom_box_panel620 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid741 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var main_panel742 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel621, pcsw_NotesByCompany_grid741 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel742;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region574.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city578.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid619.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid741.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country573.on('change',Lino.chooser_handler(region574,'country'));\n"
20130515 "      country573.on('change',Lino.chooser_handler(city578,'country'));\n"
20130515 "      region574.on('change',Lino.chooser_handler(city578,'region'));\n"
20130515 '      Lino.contacts.Companies.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name504 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language505 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email506 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel507 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language505, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email506, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel510 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name504, "anchor": "-20", "labelAlign": "top" }, main_2_panel507 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel510;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var title1085 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var first_name1086 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1087 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1085, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1086, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1087, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1092 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1093 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_2_panel1094 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1092, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1093, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1097 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel1088, main_2_panel1094 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1097;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2212 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2213 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var main_1_panel2214 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2212, "labelAlign": "top" }, { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2213, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2217 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2218 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2220 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2217, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2218, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2219, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2224 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2225 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2226 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2227 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2224, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2225, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2226, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2231 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2220, p2_2_panel2227 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2232 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel2214, p2_panel2231 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2232;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2212.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.lino.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2445 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var welcome_htmlbox2446 = new Lino.HtmlBoxPanel({ "flex": 10, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var UsersWithClients_htmlbox2447 = new Lino.HtmlBoxPanel({ "flex": 28, "layout": "fit", "name": "UsersWithClients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Agents et leurs clients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "tools": [ Lino.show_in_own_window_button(Lino.pcsw.UsersWithClients.grid) ] });\n'
20130515 '    var coming_reminders_htmlbox2448 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "coming_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels \\u00e0 venir", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var missed_reminders_htmlbox2449 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "missed_reminders", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Rappels rat\\u00e9s", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_4_panel2450 = new Ext.Panel({ "flex": 57, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ coming_reminders_htmlbox2448, missed_reminders_htmlbox2449 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2451 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2445, welcome_htmlbox2446, UsersWithClients_htmlbox2447, main_4_panel2450 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2451;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2445.refresh();\n'
20130515 '      welcome_htmlbox2446.refresh();\n'
20130515 '      UsersWithClients_htmlbox2447.refresh();\n'
20130515 '      coming_reminders_htmlbox2448.refresh();\n'
20130515 '      missed_reminders_htmlbox2449.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.lino.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var start_date107 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var due_date108 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Due date", "anchor": "-20", "name": "due_date" });\n'
20130515 '    var id109 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var workflow_buttons_disp110 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var main_1_panel111 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date107, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": due_date108, "labelAlign": "top" }, { "flex": 9, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id109, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp110, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var summary116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user117 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project118 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel119 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user117, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project118, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var calendar122 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/calendar", "method": "GET" }) }) });\n'
20130515 '    var owner_disp123 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var created124 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified125 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var main_4_panel126 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar122, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp123, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created124, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified125, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description131 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var main_panel132 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ main_1_panel111, { "items": summary116, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, main_3_panel119, main_4_panel126, description131 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel132;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description131.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2318 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2319 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2320 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2321 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2322 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2323 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2324 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2325 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2318, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2319, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2320, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2321, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2322, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2323, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2324, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2333 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2334 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var history2335 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var parameters_panel2336 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 52, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2333, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2334, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2335, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 99, "border": false, "labelAlign": "top" });\n'
20130515 '    var cbss_RetrieveTIGroupsResult_grid2345 = new Lino.cbss.RetrieveTIGroupsResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.RetrieveTIGroupsResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var request_panel2346 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2325, parameters_panel2336, cbss_RetrieveTIGroupsResult_grid2345 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2347 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2348 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2349 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2350 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2347, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2348, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2349, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2354 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2346, technical_panel2350 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2354;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cbss_RetrieveTIGroupsResult_grid2345.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 72,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix1808 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name1809 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id1810 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1811 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel1812 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix1808, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1809, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1810, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1811, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id1817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity1818 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type1819 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel1820 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id1817, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1818, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1819, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11824 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21825 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1826 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel1827 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11824, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21825, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1826, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel1831 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel1812, intro_box_2_panel1820, intro_box_3_panel1827 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country1832 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region1833 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel1834 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1832, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1833, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city1837 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1838 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel1839 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1837, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1838, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1842 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1843 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1844 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1845 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel1846 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1842, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1843, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1844, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1845, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21851 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel1852 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel1834, box3_2_panel1839, box3_3_panel1846, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21851, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email1854 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1855 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1856 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1857 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel1858 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1854, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1855, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1856, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1857, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel1863 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel1852, box4_panel1858 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1864 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid1865 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel1866 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1864, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid1865 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel1868 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel1831, address_box_panel1863, bottom_box_panel1866 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid1869 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var JobsByProvider_grid1943 = new Lino.jobs.JobsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.jobs.JobsByProvider.grid) ], "master_panel": this });\n'
20130515 '    var ContractsByProvider_grid1972 = new Lino.jobs.ContractsByProvider.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByProvider.grid) ] });\n'
20130515 '    var jobs_panel1973 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Emplois", "hideCheckBoxLabels": true, "items": [ JobsByProvider_grid1943, ContractsByProvider_grid1972 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1974 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1868, pcsw_NotesByCompany_grid1869, jobs_panel1973 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1974;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1833.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1837.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid1865.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid1869.on_master_changed();\n'
20130515 '      JobsByProvider_grid1943.on_master_changed();\n'
20130515 '      ContractsByProvider_grid1972.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1832.on('change',Lino.chooser_handler(region1833,'country'));\n"
20130515 "      country1832.on('change',Lino.chooser_handler(city1837,'country'));\n"
20130515 "      region1833.on('change',Lino.chooser_handler(city1837,'region'));\n"
20130515 '      Lino.jobs.JobProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 27,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var project701 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/Mails/project", "method": "GET" }) }) });\n'
20130515 '    var subject702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var body703 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 71, "containing_panel": this, "name": "body", "title": "Body" });\n'
20130515 '    var main_panel704 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ { "items": project701, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": subject702, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, body703 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel704;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body703.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.outbox.MyOutbox.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var first_name1740 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var last_name1741 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var main_1_panel1742 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1740, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1741, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id1745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var gender1746 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var language1747 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var main_3_panel1748 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1746, "labelAlign": "top" }, { "flex": 68, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1747, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel1751 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ main_1_panel1742, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1745, "anchor": "-20", "labelAlign": "top" }, main_3_panel1748 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1751;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 50,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name1104 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name1105 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var title1106 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var box1_1_panel1107 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name1104, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name1105, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1106, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1111 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/country", "method": "GET" }) }) });\n'
20130515 '    var city1112 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1113 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_2_panel1114 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1111, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1112, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1113, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix1118 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1119 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1120 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1121 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box1_3_panel1122 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1118, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1119, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1120, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1121, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21127 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box1_panel1128 = new Ext.form.FieldSet({ "flex": 61, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ box1_1_panel1107, box1_2_panel1114, box1_3_panel1122, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21127, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1130 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1131 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box2_1_panel1132 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1130, "labelAlign": "top" }, { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1131, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var phone1136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var fax1137 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var box2_3_panel1138 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1136, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1137, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 90, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gsm1141 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box2_panel1142 = new Ext.form.FieldSet({ "flex": 38, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ box2_1_panel1132, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1135, "anchor": "-20", "labelAlign": "top" }, box2_3_panel1138, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1141, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 63, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1145 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1128, box2_panel1142 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var gender1146 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var birth_date1147 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var age_disp1148 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "\\u00e2ge", "name": "age", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state1149 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Etat civil", "name": "civil_state", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.CivilState, "hiddenName": "civil_stateHidden" });\n'
20130515 '    var noble_condition1150 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Titre de noblesse","The eventual noble condition of this person. Imported from TIM.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Titre de noblesse</span>", "name": "noble_condition", "maxLength": 50, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_1_panel1151 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1146, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date1147, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": age_disp1148, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": civil_state1149, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": noble_condition1150, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_country1157 = new Lino.TwinCombo({ "fieldLabel": "Pays de naissance", "name": "birth_country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "birth_countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/birth_country", "method": "GET" }) }) });\n'
20130515 '    var birth_place1158 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Lieu de naissance", "anchor": "-20", "name": "birth_place" });\n'
20130515 '    var nationality1159 = new Lino.TwinCombo({ "fieldLabel": "Nationalit\\u00e9", "name": "nationality", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "nationalityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/nationality", "method": "GET" }) }) });\n'
20130515 '    var national_id1160 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var box3_2_panel1161 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_country1157, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_place1158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": nationality1159, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id1160, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel1166 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Naissance", "items": [ box3_1_panel1151, box3_2_panel1161 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var card_number1167 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20, "fieldLabel": "n\\u00b0", "anchor": "-20", "name": "card_number" });\n'
20130515 '    var card_valid_from1168 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "valide de", "anchor": "-20", "name": "card_valid_from" });\n'
20130515 '    var card_valid_until1169 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "card_valid_until" });\n'
20130515 '    var card_issuer1170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50, "fieldLabel": "\\u00e9mise par", "anchor": "-20", "name": "card_issuer" });\n'
20130515 '    var card_type1171 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de carte eID", "name": "card_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.BeIdCardTypes, "hiddenName": "card_typeHidden" });\n'
20130515 '    var eid_panel_1_panel1172 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Carte eID", "bodyBorder": true, "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_number1167, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_from1168, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_valid_until1169, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_issuer1170, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": card_type1171, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 225, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created1178 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1179 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box4_3_panel1180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1178, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box4_panel1183 = new Ext.Panel({ "flex": 82, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box3_panel1166, eid_panel_1_panel1172, box4_3_panel1180 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var image_htmlbox1184 = new Lino.HtmlBoxPanel({ "flex": 17, "layout": "fit", "name": "image", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var general_2_panel1185 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ box4_panel1183, image_htmlbox1184 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 0, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var general_panel1186 = new Ext.Panel({ "autoHeight": true, "layout": "form", "title": "Personne", "items": [ general_1_panel1145, general_2_panel1185 ], "frame": true, "bodyBorder": false, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "labelAlign": "top" });\n'
20130515 '    var in_belgium_since1187 = new Lino.DateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("en Belgique depuis","Since when this person in Belgium lives.\\n<b>Important:</b> help_text can be formatted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">en Belgique depuis</span>", "anchor": "-20", "name": "in_belgium_since" });\n'
20130515 '    var residence_type1188 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Type de s\\u00e9jour", "name": "residence_type", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ResidenceType, "hiddenName": "residence_typeHidden" });\n'
20130515 '    var gesdos_id1189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "N\\u00b0 GesDos", "anchor": "-20", "name": "gesdos_id" });\n'
20130515 '    var status_1_panel1190 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": in_belgium_since1187, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_type1188, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gesdos_id1189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account11194 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var status_2_panel1196 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11194, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21195, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var job_agents1199 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Agences de travail", "anchor": "-20", "name": "job_agents" });\n'
20130515 '    var group1200 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Phase d\'int\\u00e9gration", "name": "group", "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration...", "selectOnFocus": true, "hiddenName": "groupHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/group", "method": "GET" }) }) });\n'
20130515 '    var status_3_panel1201 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job_agents1199, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": group1200, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var status_panel1204 = new Ext.Panel({ "flex": 68, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ status_1_panel1190, status_2_panel1196, status_3_panel1201 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var aid_type1205 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'aide sociale", "name": "aid_type", "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale...", "selectOnFocus": true, "hiddenName": "aid_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }) });\n'
20130515 '    var income_ag1206 = new Ext.form.Checkbox({ "boxLabel": "allocation de ch\\u00f4mage", "hideLabel": true, "checked": false, "name": "income_ag", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_wg1207 = new Ext.form.Checkbox({ "boxLabel": "waiting pay", "hideLabel": true, "checked": false, "name": "income_wg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_2_panel1208 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_ag1206, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_wg1207, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_kg1211 = new Ext.form.Checkbox({ "boxLabel": "indemnisation maladie", "hideLabel": true, "checked": false, "name": "income_kg", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_rente1212 = new Ext.form.Checkbox({ "boxLabel": "persone de retraite", "hideLabel": true, "checked": false, "name": "income_rente", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_3_panel1213 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_kg1211, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_rente1212, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 198, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var income_misc1216 = new Ext.form.Checkbox({ "boxLabel": "autres revenus", "hideLabel": true, "checked": false, "name": "income_misc", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var income_panel1217 = new Ext.Panel({ "flex": 31, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": aid_type1205, "anchor": "-20", "labelAlign": "top" }, income_2_panel1208, income_3_panel1213, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": income_misc1216, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 180, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_1_panel1220 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ status_panel1204, income_panel1217 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_seeking1221 = new Ext.form.Checkbox({ "boxLabel": "cherche du travail", "hideLabel": true, "checked": false, "name": "is_seeking", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var unemployed_since1222 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Cherche du travail depuis", "anchor": "-20", "name": "unemployed_since" });\n'
20130515 '    var work_permit_suspended_until1223 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "suspendu jusque", "anchor": "-20", "name": "work_permit_suspended_until" });\n'
20130515 '    var suche_1_panel1224 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_seeking1221, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unemployed_since1222, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_suspended_until1223, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var unavailable_until1228 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Indidponible jusque", "anchor": "-20", "name": "unavailable_until" });\n'
20130515 '    var unavailable_why1229 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "raison", "anchor": "-20", "name": "unavailable_why" });\n'
20130515 '    var suche_2_panel1230 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 180, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_until1228, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": unavailable_why1229, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ExclusionsByPerson_grid1238 = new Lino.pcsw.ExclusionsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ExclusionsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 71 });\n'
20130515 '    var suche_panel1239 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Recherche de travail", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ suche_1_panel1224, suche_2_panel1230, pcsw_ExclusionsByPerson_grid1238 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var needs_residence_permit1240 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de s\\u00e9jour", "hideLabel": true, "checked": false, "name": "needs_residence_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var needs_work_permit1241 = new Ext.form.Checkbox({ "boxLabel": "A besoin d\'un permis de travail", "hideLabel": true, "checked": false, "name": "needs_work_permit", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var papers_1_panel1242 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 288, "hideCheckBoxLabels": true, "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_residence_permit1240, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": needs_work_permit1241, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var residence_permit_disp1245 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de s\\u00e9jour", "name": "residence_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var work_permit_disp1246 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Permis de travail", "name": "work_permit", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var driving_licence_disp1247 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "permis de conduire", "name": "driving_licence", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var papers_2_panel1248 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": residence_permit_disp1245, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": work_permit_disp1246, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": driving_licence_disp1247, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var UploadsByController_htmlbox1252 = new Lino.HtmlBoxPanel({ "flex": 42, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var papers_panel1253 = new Ext.form.FieldSet({ "flex": 50, "layout": "vbox", "title": "Papiers", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ papers_1_panel1242, papers_2_panel1248, UploadsByController_htmlbox1252 ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_2_panel1254 = new Ext.Panel({ "flex": 63, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ suche_panel1239, papers_panel1253 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var status_tab_panel1255 = new Ext.Panel({ "layout": "vbox", "title": "Statut", "items": [ status_tab_1_panel1220, status_tab_2_panel1254 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var workflow_buttons_disp1256 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker1257 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Interm\\u00e9diaire ", "name": "broker", "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ...", "selectOnFocus": true, "hiddenName": "brokerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/broker", "method": "GET" }) }) });\n'
20130515 '    var faculty1258 = new Lino.TwinCombo({ "fieldLabel": "Sp\\u00e9cificit\\u00e9", "name": "faculty", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.newcomers.Faculties.detail)}, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9...", "selectOnFocus": true, "hiddenName": "facultyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/faculty", "method": "GET" }) }) });\n'
20130515 '    var newcomers_left_panel1259 = new Ext.Panel({ "flex": 33, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp1256, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": broker1257, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": faculty1258, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var coaching_1_panel1278 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ newcomers_left_panel1259 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var pcsw_ContactsByClient_grid1286 = new Lino.pcsw.ContactsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.ContactsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var pcsw_CoachingsByClient_grid1294 = new Lino.pcsw.CoachingsByClient.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByClient.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var coaching_2_panel1295 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ pcsw_ContactsByClient_grid1286, pcsw_CoachingsByClient_grid1294 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var coaching_panel1296 = new Ext.Panel({ "layout": "vbox", "title": "Accompagnement", "items": [ coaching_1_panel1278, coaching_2_panel1295 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_StudiesByPerson_grid1309 = new Lino.jobs.StudiesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "master_panel": this, "listeners": { "render": Lino.quicktip_renderer("\\u00c9tudes & formations","List of studies for a given person.") }, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByPerson.grid) ] });\n'
20130515 '    var jobs_ExperiencesByPerson_grid1319 = new Lino.jobs.ExperiencesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var education_panel1320 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Formation", "hideCheckBoxLabels": true, "items": [ jobs_StudiesByPerson_grid1309, jobs_ExperiencesByPerson_grid1319 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_LanguageKnowledgesByPerson_grid1327 = new Lino.cv.LanguageKnowledgesByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.cv.LanguageKnowledgesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var courses_CourseRequestsByPerson_grid1363 = new Lino.courses.CourseRequestsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseRequestsByPerson.grid) ], "master_panel": this });\n'
20130515 '    var languages_panel1364 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Langues", "hideCheckBoxLabels": true, "items": [ cv_LanguageKnowledgesByPerson_grid1327, courses_CourseRequestsByPerson_grid1363 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cv_SkillsByPerson_grid1371 = new Lino.cv.SkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var cv_SoftSkillsByPerson_grid1378 = new Lino.cv.SoftSkillsByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.SoftSkillsByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 35 });\n'
20130515 '    var skills1379 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Autres talents", "anchor": "-20 -10", "growMax": 2000, "name": "skills" });\n'
20130515 '    var competences_1_panel1380 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_SkillsByPerson_grid1371, cv_SoftSkillsByPerson_grid1378, { "items": skills1379, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 28 } ], "region": "north", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 135, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var cv_ObstaclesByPerson_grid1388 = new Lino.cv.ObstaclesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.ObstaclesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 55 });\n'
20130515 '    var obstacles1389 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Obstacles", "anchor": "-20 -10", "growMax": 2000, "name": "obstacles" });\n'
20130515 '    var competences_2_panel1390 = new Ext.Panel({ "flex": 5, "layout": "hbox", "items": [ cv_ObstaclesByPerson_grid1388, { "items": obstacles1389, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 44 } ], "region": "center", "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 90, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var competences_panel1392 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Comp\\u00e9tences", "hideCheckBoxLabels": true, "items": [ competences_1_panel1380, competences_2_panel1390 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var jobs_CandidaturesByPerson_grid1401 = new Lino.jobs.CandidaturesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Demandes d\'emploi", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var isip_ContractsByPerson_grid1505 = new Lino.isip.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.isip.ContractsByPerson.grid) ] });\n'
20130515 '    var jobs_ContractsByPerson_grid1613 = new Lino.jobs.ContractsByPerson.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "center", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByPerson.grid) ] });\n'
20130515 '    var contracts_panel1614 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Contrats", "hideCheckBoxLabels": true, "items": [ isip_ContractsByPerson_grid1505, jobs_ContractsByPerson_grid1613 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByPerson_grid1629 = new Lino.pcsw.NotesByPerson.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Historique", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByPerson.grid) ], "master_panel": this });\n'
20130515 '    var cal_EventsByProject_grid1655 = new Lino.cal.EventsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByProject.grid) ] });\n'
20130515 '    var cal_TasksByProject_grid1678 = new Lino.cal.TasksByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByProject.grid) ], "master_panel": this });\n'
20130515 '    var calendar_panel1679 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_EventsByProject_grid1655, cal_TasksByProject_grid1678 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByProject_grid1691 = new Lino.outbox.MailsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "north", "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByProject.grid) ], "master_panel": this });\n'
20130515 '    var postings_PostingsByProject_grid1702 = new Lino.postings.PostingsByProject.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByProject.grid) ], "master_panel": this });\n'
20130515 '    var outbox_panel1703 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "title": "Correspondence", "hideCheckBoxLabels": true, "items": [ outbox_MailsByProject_grid1691, postings_PostingsByProject_grid1702 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var activity1704 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/activity", "method": "GET" }) }) });\n'
20130515 '    var client_state1705 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "client_stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.ClientStates, "name": "client_state" });\n'
20130515 '    var refusal_reason1706 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "refusal reason", "name": "refusal_reason", "selectOnFocus": true, "anchor": "-20", "store": Lino.pcsw.RefusalReasons, "hiddenName": "refusal_reasonHidden" });\n'
20130515 '    var misc_1_panel1707 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1704, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client_state1705, "labelAlign": "top" }, { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refusal_reason1706, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_cpas1711 = new Ext.form.Checkbox({ "boxLabel": "client CPAS", "hideLabel": true, "checked": false, "name": "is_cpas", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_senior1712 = new Ext.form.Checkbox({ "boxLabel": "retrait\\u00e9", "hideLabel": true, "checked": false, "name": "is_senior", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_obsolete1713 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var misc_2_panel1714 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_cpas1711, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_senior1712, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1713, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1718 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var remarks21719 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque (Bureau Social)", "anchor": "-20 -10", "growMax": 2000, "name": "remarks2" });\n'
20130515 '    var misc_3_panel1720 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 225, "hideCheckBoxLabels": true, "items": [ { "items": remarks1718, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 }, { "items": remarks21719, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 50 } ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var contacts_RolesByPerson_grid1723 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var households_MembersByPerson_grid1724 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var misc_4_panel1725 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_RolesByPerson_grid1723, households_MembersByPerson_grid1724 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var misc_panel1726 = new Ext.Panel({ "layout": "vbox", "title": "Divers", "items": [ misc_1_panel1707, misc_2_panel1714, misc_3_panel1720, misc_4_panel1725 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cbss_identify_person_disp1727 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates IdentifyPerson", "name": "cbss_identify_person", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_manage_access_disp1728 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates ManageAccess", "name": "cbss_manage_access", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_retrieve_ti_groups_disp1729 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Requ\\u00eates Tx25", "name": "cbss_retrieve_ti_groups", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var cbss_1_panel1730 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_identify_person_disp1727, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_manage_access_disp1728, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": cbss_retrieve_ti_groups_disp1729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cbss_summary_htmlbox1734 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "cbss_summary", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Sommaire BCSS", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var cbss_panel1735 = new Ext.Panel({ "layout": "vbox", "title": "BCSS", "items": [ cbss_1_panel1730, cbss_summary_htmlbox1734 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 126, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1739 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1186, status_tab_panel1255, coaching_panel1296, education_panel1320, languages_panel1364, competences_panel1392, jobs_CandidaturesByPerson_grid1401, contracts_panel1614, pcsw_NotesByPerson_grid1629, calendar_panel1679, outbox_panel1703, misc_panel1726, cbss_panel1735 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1112.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1112.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      image_htmlbox1184.refresh();\n'
20130515 '      pcsw_ExclusionsByPerson_grid1238.on_master_changed();\n'
20130515 '      UploadsByController_htmlbox1252.refresh();\n'
20130515 '      pcsw_ContactsByClient_grid1286.on_master_changed();\n'
20130515 '      pcsw_CoachingsByClient_grid1294.on_master_changed();\n'
20130515 '      jobs_StudiesByPerson_grid1309.on_master_changed();\n'
20130515 '      jobs_ExperiencesByPerson_grid1319.on_master_changed();\n'
20130515 '      cv_LanguageKnowledgesByPerson_grid1327.on_master_changed();\n'
20130515 '      courses_CourseRequestsByPerson_grid1363.on_master_changed();\n'
20130515 '      cv_SkillsByPerson_grid1371.on_master_changed();\n'
20130515 '      cv_SoftSkillsByPerson_grid1378.on_master_changed();\n'
20130515 '      cv_ObstaclesByPerson_grid1388.on_master_changed();\n'
20130515 '      jobs_CandidaturesByPerson_grid1401.on_master_changed();\n'
20130515 '      isip_ContractsByPerson_grid1505.on_master_changed();\n'
20130515 '      jobs_ContractsByPerson_grid1613.on_master_changed();\n'
20130515 '      pcsw_NotesByPerson_grid1629.on_master_changed();\n'
20130515 '      cal_EventsByProject_grid1655.on_master_changed();\n'
20130515 '      cal_TasksByProject_grid1678.on_master_changed();\n'
20130515 '      outbox_MailsByProject_grid1691.on_master_changed();\n'
20130515 '      postings_PostingsByProject_grid1702.on_master_changed();\n'
20130515 '      contacts_RolesByPerson_grid1723.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1724.on_master_changed();\n'
20130515 '      cbss_summary_htmlbox1734.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1111.on('change',Lino.chooser_handler(city1112,'country'));\n"
20130515 '      Lino.pcsw.Clients.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.pcsw.Clients.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 91,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var event_type728 = new Lino.TwinCombo({ "fieldLabel": "Event Type (Form)", "name": "event_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.EventTypes.detail)}, "emptyText": "Choisir Event Type...", "selectOnFocus": true, "hiddenName": "event_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/event_type", "method": "GET" }) }) });\n'
20130515 '    var type729 = new Lino.TwinCombo({ "fieldLabel": "Note Type (Content)", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.notes.NoteTypes.detail)}, "emptyText": "Choisir Type de note...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/type", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel730 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": event_type728, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type729, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 180, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var subject733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Subject", "anchor": "-20", "name": "subject" });\n'
20130515 '    var project734 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/project", "method": "GET" }) }) });\n'
20130515 '    var company735 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Organisation</span>", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "listeners": { "render": Lino.quicktip_renderer("Organisation","    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ") }, "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/Notes/company", "method": "GET" }) }) });\n'
20130515 '    var main_3_panel736 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project734, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company735, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel739 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 72, "autoScroll": false, "items": [ main_1_panel730, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": subject733, "anchor": "-20", "labelAlign": "top" }, main_3_panel736 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel739;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.notes.MyNotes.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 87,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2355 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var national_id2356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var language2357 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Langue", "name": "language", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.RequestLanguages, "hiddenName": "languageHidden" });\n'
20130515 '    var main_2_panel2358 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 70, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2356, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2357, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var history2361 = new Ext.form.Checkbox({ "boxLabel": "Historique", "listeners": { "render": Lino.quicktip_renderer("Historique","Whatever this means.") }, "hideLabel": true, "checked": true, "name": "history", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_panel2362 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2355, "anchor": "-20", "labelAlign": "top" }, main_2_panel2358, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": history2361, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 69,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1881 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var provider1882 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }) });\n'
20130515 '    var contract_type1883 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "contract_type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "contract_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }) });\n'
20130515 '    var type1884 = new Lino.TwinCombo({ "fieldLabel": "Type d\'emploi", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobTypes.detail)}, "emptyText": "Choisir Type d\'emploi...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }) });\n'
20130515 '    var id1885 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel1886 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1881, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1882, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contract_type1883, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1884, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1885, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var sector1892 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }) });\n'
20130515 '    var function1893 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }) });\n'
20130515 '    var capacity1894 = new Ext.form.NumberField({ "fieldLabel": "Capacit\\u00e9", "name": "capacity", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var hourly_rate1895 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var main_2_panel1896 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1892, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1893, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": capacity1894, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1895, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1901 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var CandidaturesByJob_grid1910 = new Lino.jobs.CandidaturesByJob.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByJob.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var main_3_panel1911 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1901, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 33 }, CandidaturesByJob_grid1910 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var ContractsByJob_grid1941 = new Lino.jobs.ContractsByJob.GridPanel({ "flex": 41, "hide_top_toolbar": true, "containing_panel": this, "params_panel_hidden": true, "tools": [ Lino.show_in_own_window_button(Lino.jobs.ContractsByJob.grid) ], "master_panel": this });\n'
20130515 '    var main_panel1942 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1886, main_2_panel1896, main_3_panel1911, ContractsByJob_grid1941 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1942;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1893.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      CandidaturesByJob_grid1910.on_master_changed();\n'
20130515 '      ContractsByJob_grid1941.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1892.on('change',Lino.chooser_handler(function1893,'sector'));\n"
20130515 '      Lino.jobs.Jobs.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Jobs.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name297 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var country298 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }) });\n'
20130515 '    var region299 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }) });\n'
20130515 '    var city300 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code301 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel302 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country298, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region299, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city300, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code301, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr1307 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix308 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street309 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no310 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box311 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel312 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix308, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street309, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no310, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box311, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2317 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel318 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name297, "anchor": "-20", "labelAlign": "top" }, address_box_2_panel302, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr1307, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel312, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2317, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id322 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language323 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel324 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id322, "labelAlign": "top" }, { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language323, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email327 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url328 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone329 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm330 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax331 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel332 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm330, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax331, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel335 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel324, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email327, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url328, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone329, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel332 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel339 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel318, contact_box_panel335 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks340 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var activity341 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1342 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2343 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete344 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_2_panel345 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity341, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1342, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2343, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete344, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_person350 = new Ext.form.Checkbox({ "boxLabel": "est une Personne (<a href=\\"javascript:Lino.show_mti_child(\'is_person\',Lino.contacts.Persons.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Personne","Si ce partenaire est \\u00e9galement une personne.") }, "hideLabel": true, "name": "is_person", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_company351 = new Ext.form.Checkbox({ "boxLabel": "est une Organisation (<a href=\\"javascript:Lino.show_mti_child(\'is_company\',Lino.contacts.Companies.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est une Organisation","Si ce partenaire est \\u00e9galement une organisation.") }, "hideLabel": true, "name": "is_company", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var is_household352 = new Ext.form.Checkbox({ "selectOnFocus": true, "boxLabel": "est un m\\u00e9nage (<a href=\\"javascript:Lino.show_mti_child(\'is_household\',Lino.households.Households.detail)\\">montrer</a>)", "hideLabel": true, "anchor": "-20", "name": "is_household" });\n'
20130515 '    var created353 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified354 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_3_panel355 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_person350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_company351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_household352, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created353, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified354, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel361 = new Ext.Panel({ "flex": 58, "layout": "vbox", "items": [ { "items": remarks340, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 71 }, bottom_box_2_panel345, bottom_box_3_panel355 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_panel363 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel339, bottom_box_panel361 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var changes_ChangesByMaster_grid388 = new Lino.changes.ChangesByMaster.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Changes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.changes.ChangesByMaster.grid) ], "master_panel": this });\n'
20130515 '    var main_panel503 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel363, changes_ChangesByMaster_grid388 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel503;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region299.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city300.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      changes_ChangesByMaster_grid388.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country298.on('change',Lino.chooser_handler(region299,'country'));\n"
20130515 "      country298.on('change',Lino.chooser_handler(city300,'country'));\n"
20130515 "      region299.on('change',Lino.chooser_handler(city300,'region'));\n"
20130515 '      Lino.contacts.Partners.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Partners.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 76,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2099 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var start_date2100 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var offer2101 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/Courses/offer", "method": "GET" }) }), "name": "offer" });\n'
20130515 '    var title2102 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Name", "anchor": "-20", "name": "title" });\n'
20130515 '    var main_1_panel2103 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2099, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2100, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer2101, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2102, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark2108 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Remarque", "anchor": "-20", "name": "remark" });\n'
20130515 '    var courses_ParticipantsByCourse_grid2114 = new Lino.courses.ParticipantsByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.ParticipantsByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var courses_CandidatesByCourse_grid2121 = new Lino.courses.CandidatesByCourse.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.courses.CandidatesByCourse.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var main_panel2122 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel2103, { "items": remark2108, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, courses_ParticipantsByCourse_grid2114, courses_CandidatesByCourse_grid2121 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2122;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      courses_ParticipantsByCourse_grid2114.on_master_changed();\n'
20130515 '      courses_CandidatesByCourse_grid2121.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CoursesByOffer.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var body_htmlbox2452 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "body", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var main_panel2453 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ body_htmlbox2452 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2453;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body_htmlbox2452.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.jobs.JobsOverview.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 30,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var summary134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var user135 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/user", "method": "GET" }) }) });\n'
20130515 '    var project136 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Tasks/project", "method": "GET" }) }) });\n'
20130515 '    var main_2_panel137 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user135, "labelAlign": "top" }, { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project136, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel140 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary134, "anchor": "-20", "labelAlign": "top" }, main_2_panel137 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel140;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.TasksByUser.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var isocode204 = new Ext.form.TextField({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">ISO code</span>", "name": "isocode", "boxMinWidth": Lino.chars2width(4), "listeners": { "render": Lino.quicktip_renderer("ISO code","        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.") }, "maxLength": 4, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name205 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr206 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl207 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var short_code208 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Short code","A short abbreviation for regional usage. Obsolete.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Short code</span>", "name": "short_code", "maxLength": 4, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var inscode209 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this country used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20" });\n'
20130515 '    var main_1_panel210 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": isocode204, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name205, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr206, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl207, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": short_code208, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode209, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var countries_CitiesByCountry_grid533 = new Lino.countries.CitiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 48 });\n'
20130515 '    var jobs_StudiesByCountry_grid546 = new Lino.jobs.StudiesByCountry.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCountry.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 51 });\n'
20130515 '    var main_2_panel547 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ countries_CitiesByCountry_grid533, jobs_StudiesByCountry_grid546 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel548 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel210, main_2_panel547 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel548;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      countries_CitiesByCountry_grid533.on_master_changed();\n'
20130515 '      jobs_StudiesByCountry_grid546.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Countries.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name226 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr227 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl228 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var country229 = new Lino.TwinCombo({ "fieldLabel": "Pays", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/country", "method": "GET" }) }), "name": "country" });\n'
20130515 '    var inscode230 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("INS code","The official code for this place used by statbel.fgov.be") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">INS code</span>", "name": "inscode", "maxLength": 5, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "anchor": "-20" });\n'
20130515 '    var main_1_panel231 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name226, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr227, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl228, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country229, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": inscode230, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var parent237 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Part of</span>", "name": "parent", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "listeners": { "render": Lino.quicktip_renderer("Part of","The superordinate geographic place of which this place is a part.") }, "selectOnFocus": true, "hiddenName": "parentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/parent", "method": "GET" }) }) });\n'
20130515 '    var type238 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Place Type", "name": "type", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/Cities/type", "method": "GET" }) }), "hiddenName": "typeHidden" });\n'
20130515 '    var id239 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel240 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 57, "autoHeight": true, "layout": "form", "xtype": "panel", "items": parent237, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type238, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id239, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var CitiesByCity_grid528 = new Lino.countries.CitiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.countries.CitiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 41 });\n'
20130515 '    var contacts_PartnersByCity_grid529 = new Lino.contacts.PartnersByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.PartnersByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var jobs_StudiesByCity_grid530 = new Lino.jobs.StudiesByCity.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.StudiesByCity.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel531 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ contacts_PartnersByCity_grid529, jobs_StudiesByCity_grid530 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel532 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel231, main_2_panel240, CitiesByCity_grid528, main_4_panel531 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel532;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type238.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '      CitiesByCity_grid528.on_master_changed();\n'
20130515 '      contacts_PartnersByCity_grid529.on_master_changed();\n'
20130515 '      jobs_StudiesByCity_grid530.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country229.on('change',Lino.chooser_handler(type238,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.countries.CitiesByCity.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.About.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var main_panel2444 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ { "html": "<div class=\\"htmlText\\"><span>This is <a href=\\"http://welfare.lino-framework.org\\" target=\\"_blank\\">Lino Welfare</a> 1.1.4 using <a href=\\"http://site.lino-framework.org\\" target=\\"_blank\\">djangosite</a> 0.1.4, <a href=\\"http://www.python.org/\\" target=\\"_blank\\">Python</a> 2.7.3, <a href=\\"http://www.djangoproject.com\\" target=\\"_blank\\">Django</a> 1.5.1, <a href=\\"http://babel.edgewall.org/\\" target=\\"_blank\\">Babel</a> 1.0dev-r661, <a href=\\"http://www.lino-framework.org\\" target=\\"_blank\\">Lino</a> 1.6.7, <a href=\\"http://jinja.pocoo.org/\\" target=\\"_blank\\">Jinja</a> 2.6, <a href=\\"http://sphinx-doc.org/\\" target=\\"_blank\\">Sphinx</a> 1.2b1, <a href=\\"http://labix.org/python-dateutil\\" target=\\"_blank\\">python-dateutil</a> 2.1, <a href=\\"http://pypi.python.org/pypi/odfpy\\" target=\\"_blank\\">OdfPy</a> ODFPY/0.9.6, <a href=\\"http://docutils.sourceforge.net/\\" target=\\"_blank\\">docutils</a> 0.10, <a href=\\"https://fedorahosted.org/suds/\\" target=\\"_blank\\">suds</a> 0.4, <a href=\\"http://pyyaml.org/\\" target=\\"_blank\\">PyYaml</a> 3.10, <a href=\\"http://appyframework.org/pod.html\\" target=\\"_blank\\">Appy</a> 0.8.3 (2013/02/22 15:29)</span><p>Server uptime : <b>mercredi 15 mai 2013 at 11:45:06.556847</b></p><p>Source timestamps:</p><ul><li>djangosite : <b>mercredi 15 mai 2013 at 11:02:05.242649</b></li><li>lino : <b>mercredi 15 mai 2013 at 10:57:20.598657</b></li><li>lino_welfare : <b>mercredi 15 mai 2013 at 09:04:22.174857</b></li><li>atelier : <b>mardi 14 mai 2013 at 21:14:51.339674</b></li><li>django : <b>mercredi 8 mai 2013 at 10:18:59.384324</b></li><li>north : <b>dimanche 5 mai 2013 at 22:52:00.438131</b></li></ul></div>", "xtype": "label" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2444;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.about.About.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id185 = new Ext.form.TextField({ "fieldLabel": "id", "name": "id", "maxLength": 3, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "anchor": "-20", "allowBlank": false });\n'
20130515 '    var iso2186 = new Ext.form.TextField({ "fieldLabel": "iso2", "name": "iso2", "maxLength": 2, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "anchor": "-20" });\n'
20130515 '    var name187 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr188 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel190 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id185, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": iso2186, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name187, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr188, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl189, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cv_KnowledgesByLanguage_grid202 = new Lino.cv.KnowledgesByLanguage.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cv.KnowledgesByLanguage.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var main_panel203 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel190, cv_KnowledgesByLanguage_grid202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel203;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cv_KnowledgesByLanguage_grid202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.countries.Languages.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 77,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var prefix2017 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "prefix", "anchor": "-20", "name": "prefix" });\n'
20130515 '    var name2018 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id2019 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language2020 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var intro_box_1_panel2021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": prefix2017, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2018, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2019, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language2020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var vat_id2026 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "N\\u00b0 de TVA", "anchor": "-20", "name": "vat_id" });\n'
20130515 '    var activity2027 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }) });\n'
20130515 '    var type2028 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }) });\n'
20130515 '    var intro_box_2_panel2029 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": vat_id2026, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity2027, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2028, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var bank_account12033 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account22034 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete2035 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var intro_box_3_panel2036 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account12033, "labelAlign": "top" }, { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account22034, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete2035, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var intro_box_panel2040 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ intro_box_1_panel2021, intro_box_2_panel2029, intro_box_3_panel2036 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var country2041 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }) });\n'
20130515 '    var region2042 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel2043 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country2041, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region2042, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city2046 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code2047 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel2048 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city2046, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code2047, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix2051 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street2052 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no2053 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box2054 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel2055 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix2051, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street2052, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no2053, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box2054, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr22060 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var box3_panel2061 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel2043, box3_2_panel2048, box3_3_panel2055, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr22060, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email2063 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url2064 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone2065 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm2066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel2067 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email2063, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url2064, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone2065, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm2066, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel2072 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel2061, box4_panel2067 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks2073 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByCompany_grid2074 = new Lino.contacts.RolesByCompany.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByCompany.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 42 });\n'
20130515 '    var bottom_box_panel2075 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks2073, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 57 }, contacts_RolesByCompany_grid2074 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel2077 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_panel2040, address_box_panel2072, bottom_box_panel2075 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_NotesByCompany_grid2078 = new Lino.pcsw.NotesByCompany.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Events/Notes", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.pcsw.NotesByCompany.grid) ], "master_panel": this });\n'
20130515 '    var CourseOffersByProvider_grid2126 = new Lino.courses.CourseOffersByProvider.GridPanel({ "listeners": { "activate": Lino.on_tab_activate }, "hide_top_toolbar": true, "title": "Offres de cours", "containing_panel": this, "tools": [ Lino.show_in_own_window_button(Lino.courses.CourseOffersByProvider.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2127 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel2077, pcsw_NotesByCompany_grid2078, CourseOffersByProvider_grid2126 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2127;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region2042.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2046.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByCompany_grid2074.on_master_changed();\n'
20130515 '      pcsw_NotesByCompany_grid2078.on_master_changed();\n'
20130515 '      CourseOffersByProvider_grid2126.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2041.on('change',Lino.chooser_handler(region2042,'country'));\n"
20130515 "      country2041.on('change',Lino.chooser_handler(city2046,'country'));\n"
20130515 "      region2042.on('change',Lino.chooser_handler(city2046,'region'));\n"
20130515 '      Lino.courses.CourseProviders.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseProviders.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username38 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var id39 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var profile40 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var box1_1_panel41 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username38, "labelAlign": "top" }, { "flex": 6, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id39, "labelAlign": "top" }, { "flex": 63, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile40, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name45 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name46 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var partner47 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel48 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name45, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name46, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner47, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email52 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var language53 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_3_panel54 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 51, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email52, "labelAlign": "top" }, { "flex": 48, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language53, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var created57 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified58 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var box1_4_panel59 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created57, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified58, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box1_panel62 = new Ext.Panel({ "flex": 66, "autoHeight": true, "border": false, "layout": "form", "hideCheckBoxLabels": true, "items": [ box1_1_panel41, box1_2_panel48, box1_3_panel54, box1_4_panel59 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel66 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel62 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks67 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var AuthoritiesGiven_grid70 = new Lino.users.AuthoritiesGiven.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.users.AuthoritiesGiven.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 33 });\n'
20130515 '    var general_2_panel71 = new Ext.Panel({ "flex": 50, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks67, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, AuthoritiesGiven_grid70 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel73 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel66, general_2_panel71 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var calendar74 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Calendrier par d\\u00e9faut</span>", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "listeners": { "render": Lino.quicktip_renderer("Calendrier par d\\u00e9faut","Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.") }, "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/calendar", "method": "GET" }) }) });\n'
20130515 '    var access_class75 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s par d\\u00e9faut</span>", "allowBlank": false, "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s par d\\u00e9faut","The default access class for your calendar events and tasks.") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses, "name": "access_class" });\n'
20130515 '    var cal_left_1_panel76 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 234, "hideCheckBoxLabels": true, "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar74, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class75, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_SubscriptionsByUser_grid83 = new Lino.cal.SubscriptionsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.SubscriptionsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 83 });\n'
20130515 '    var cal_left_panel84 = new Ext.Panel({ "flex": 33, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ cal_left_1_panel76, cal_SubscriptionsByUser_grid83 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByUser_grid142 = new Lino.cal.TasksByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var cal_1_panel143 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Calendrier", "hideCheckBoxLabels": true, "items": [ cal_left_panel84, cal_TasksByUser_grid142 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var newcomer_quota144 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Quota nouvelles demandes","Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Quota nouvelles demandes</span>", "name": "newcomer_quota", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var coaching_type145 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Service</span>", "name": "coaching_type", "pageSize": 20, "emptyText": "Choisir Service...", "listeners": { "render": Lino.quicktip_renderer("Service","The default CoachingType used when creating Coachings.") }, "selectOnFocus": true, "hiddenName": "coaching_typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/coaching_type", "method": "GET" }) }) });\n'
20130515 '    var coaching_supervisor146 = new Ext.form.Checkbox({ "boxLabel": "Notify me when a coach has been assigned", "listeners": { "render": Lino.quicktip_renderer("Notify me when a coach has been assigned","Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.") }, "hideLabel": true, "checked": false, "name": "coaching_supervisor", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var newcomers_CompetencesByUser_grid152 = new Lino.newcomers.CompetencesByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.newcomers.CompetencesByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var coaching_a_panel153 = new Ext.Panel({ "flex": 33, "layout": "vbox", "items": [ { "items": newcomer_quota144, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_type145, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "items": coaching_supervisor146, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, newcomers_CompetencesByUser_grid152 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 369, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var pcsw_CoachingsByUser_grid164 = new Lino.pcsw.CoachingsByUser.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.pcsw.CoachingsByUser.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var coaching_1_panel165 = new Ext.Panel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "layout": "hbox", "title": "Accompagnement", "hideCheckBoxLabels": true, "items": [ coaching_a_panel153, pcsw_CoachingsByUser_grid164 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel166 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel73, cal_1_panel143, coaching_1_panel165 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel166;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      AuthoritiesGiven_grid70.on_master_changed();\n'
20130515 '      cal_SubscriptionsByUser_grid83.on_master_changed();\n'
20130515 '      cal_TasksByUser_grid142.on_master_changed();\n'
20130515 '      newcomers_CompetencesByUser_grid152.on_master_changed();\n'
20130515 '      pcsw_CoachingsByUser_grid164.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.Home.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var quick_links_htmlbox2440 = new Lino.HtmlBoxPanel({ "flex": 1, "layout": "fit", "name": "quick_links", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "north", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var welcome_htmlbox2441 = new Lino.HtmlBoxPanel({ "flex": 3, "layout": "fit", "name": "welcome", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "region": "center", "title": "Bienvenue", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "split": true });\n'
20130515 '    var main_panel2442 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ quick_links_htmlbox2440, welcome_htmlbox2441 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2442;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      quick_links_htmlbox2440.refresh();\n'
20130515 '      welcome_htmlbox2441.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.Home.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 10,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var time372 = new Ext.form.DisplayField({ "fieldLabel": "time", "name": "time", "selectOnFocus": true, "anchor": "-20", "value": "<br>", "allowBlank": false });\n'
20130515 '    var user373 = new Lino.TwinCombo({ "fieldLabel": "Utilisateur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/Changes/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var type374 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Change Type", "allowBlank": false, "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.ChangeTypes, "name": "type" });\n'
20130515 '    var master_disp375 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Signal\\u00e9tique", "anchor": "-20", "name": "master" });\n'
20130515 '    var object_disp376 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Object", "anchor": "-20", "name": "object" });\n'
20130515 '    var id377 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel378 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": time372, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user373, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type374, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": master_disp375, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": object_disp376, "labelAlign": "top" }, { "flex": 7, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id377, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var diff385 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Changes", "anchor": "-20 -10", "growMax": 2000, "name": "diff" });\n'
20130515 '    var main_panel386 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 72, "hideCheckBoxLabels": true, "items": [ main_1_panel378, { "items": diff385, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 83 } ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel386;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.changes.ChangesByMaster.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 79,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2084 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var title2085 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "title", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var content2086 = new Lino.TwinCombo({ "fieldLabel": "Contenu de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var provider2087 = new Lino.TwinCombo({ "fieldLabel": "Organisateur de cours", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseProviders.detail)}, "emptyText": "Choisir Organisateur de cours...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "name": "provider" });\n'
20130515 '    var main_1_panel2088 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2084, "labelAlign": "top" }, { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title2085, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content2086, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider2087, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 198, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2093 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "center", "title": "Description", "name": "description" });\n'
20130515 '    var CoursesByOffer_grid2124 = new Lino.courses.CoursesByOffer.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "south", "tools": [ Lino.show_in_own_window_button(Lino.courses.CoursesByOffer.grid) ], "master_panel": this });\n'
20130515 '    var main_panel2125 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ main_1_panel2088, description2093, CoursesByOffer_grid2124 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2125;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2093.refresh();\n'
20130515 '      CoursesByOffer_grid2124.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.courses.CourseOffers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var last_name998 = new Ext.form.TextField({ "fieldLabel": "Nom de famille", "name": "last_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var first_name999 = new Ext.form.TextField({ "fieldLabel": "Pr\\u00e9nom", "name": "first_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var gender1000 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var title1001 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Allocution", "anchor": "-20", "name": "title" });\n'
20130515 '    var name_box_panel1002 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name998, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name999, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender1000, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": title1001, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var country1007 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }) });\n'
20130515 '    var region1008 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }) });\n'
20130515 '    var city1009 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code1010 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_2_panel1011 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country1007, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region1008, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city1009, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code1010, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr11016 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne avant le nom de rue","Address line before street") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne avant le nom de rue</span>", "name": "addr1", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_prefix1017 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street1018 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no1019 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box1020 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var address_box_4_panel1021 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix1017, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street1018, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no1019, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box1020, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr21026 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var address_box_panel1027 = new Ext.form.FieldSet({ "flex": 66, "autoHeight": true, "layout": "form", "title": "Addresse", "items": [ name_box_panel1002, address_box_2_panel1011, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr11016, "anchor": "-20", "labelAlign": "top" }, address_box_4_panel1021, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr21026, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var id1030 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var language1031 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var info_box_panel1032 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1030, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1031, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var email1035 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url1036 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone1037 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm1038 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var fax1039 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Fax", "anchor": "-20", "name": "fax" });\n'
20130515 '    var contact_box_5_panel1040 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm1038, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": fax1039, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 36, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var contact_box_panel1043 = new Ext.form.FieldSet({ "flex": 33, "autoHeight": true, "layout": "form", "title": "Contact", "items": [ info_box_panel1032, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email1035, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url1036, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone1037, "anchor": "-20", "labelAlign": "top" }, contact_box_5_panel1040 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var general_1_panel1047 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ address_box_panel1027, contact_box_panel1043 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var activity1048 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account11049 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account21050 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var is_obsolete1051 = new Ext.form.Checkbox({ "boxLabel": "obsolete", "listeners": { "render": Lino.quicktip_renderer("obsolete","Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.") }, "hideLabel": true, "checked": false, "name": "is_obsolete", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var bottom_box_1_panel1052 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity1048, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account11049, "labelAlign": "top" }, { "flex": 29, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account21050, "labelAlign": "top" }, { "flex": 13, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_obsolete1051, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var is_client1057 = new Ext.form.Checkbox({ "boxLabel": "est un client (<a href=\\"javascript:Lino.show_mti_child(\'is_client\',Lino.pcsw.Clients.detail)\\">montrer</a>)", "listeners": { "render": Lino.quicktip_renderer("est un client","Whether this Person is a Client.") }, "hideLabel": true, "name": "is_client", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var created1058 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified1059 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var bottom_box_2_panel1060 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": is_client1057, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created1058, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified1059, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks1064 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var contacts_RolesByPerson_grid1069 = new Lino.contacts.RolesByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.contacts.RolesByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 27 });\n'
20130515 '    var households_MembersByPerson_grid1076 = new Lino.households.MembersByPerson.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByPerson.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 36 });\n'
20130515 '    var bottom_box_3_panel1077 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks1064, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 36 }, contacts_RolesByPerson_grid1069, households_MembersByPerson_grid1076 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var bottom_box_panel1079 = new Ext.Panel({ "flex": 58, "border": false, "layout": "vbox", "bodyBorder": false, "hideCheckBoxLabels": true, "items": [ bottom_box_1_panel1052, bottom_box_2_panel1060, bottom_box_3_panel1077 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": true, "labelAlign": "top" });\n'
20130515 '    var general_panel1080 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel1047, bottom_box_panel1079 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1084 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel1080 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1084;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region1008.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city1009.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      contacts_RolesByPerson_grid1069.on_master_changed();\n'
20130515 '      households_MembersByPerson_grid1076.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1007.on('change',Lino.chooser_handler(region1008,'country'));\n"
20130515 "      country1007.on('change',Lino.chooser_handler(city1009,'country'));\n"
20130515 "      region1008.on('change',Lino.chooser_handler(city1009,'region'));\n"
20130515 '      Lino.contacts.Persons.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Persons.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 20,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name743 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language744 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var email745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_2_panel746 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language744, "labelAlign": "top" }, { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email745, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type749 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type de soci\\u00e9t\\u00e9", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'organisation...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }) });\n'
20130515 '    var id750 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_3_panel751 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 80, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type749, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id750, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 144, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel754 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 45, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": name743, "anchor": "-20", "labelAlign": "top" }, main_2_panel746, main_3_panel751 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel754;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.contacts.Companies.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var username167 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Username","\\n        Required. Must be unique. \\n        ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Username</span>", "name": "username", "maxLength": 30, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var email168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "adresse e-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var main_1_panel169 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username167, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email168, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name172 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var main_2_panel174 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name172, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name173, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var partner177 = new Lino.TwinCombo({ "fieldLabel": "Partenaire", "name": "partner", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Partners.detail)}, "emptyText": "Choisir Partenaire...", "selectOnFocus": true, "hiddenName": "partnerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/Users/partner", "method": "GET" }) }) });\n'
20130515 '    var language178 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "selectOnFocus": true, "hiddenName": "languageHidden", "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var profile179 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "User Profile", "name": "profile", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.UserProfiles, "hiddenName": "profileHidden" });\n'
20130515 '    var main_4_panel180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language178, "labelAlign": "top" }, { "flex": 69, "autoHeight": true, "layout": "form", "xtype": "panel", "items": profile179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel183 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 99, "autoScroll": false, "items": [ main_1_panel169, main_2_panel174, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": partner177, "anchor": "-20", "labelAlign": "top" }, main_4_panel180 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel183;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.users.MySettings.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2407 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2408 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2409 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2407, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2408, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type2412 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var valid_until2413 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2414 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 71, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2412, "labelAlign": "top" }, { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2413, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 126, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var description2417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var main_panel2418 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 108, "autoScroll": false, "items": [ main_1_panel2409, main_2_panel2414, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2417, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2418;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 67,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id1547 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var client1548 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "clientHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "name": "client" });\n'
20130515 '    var user1549 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }) });\n'
20130515 '    var user_asd1550 = new Lino.TwinCombo({ "fieldLabel": "Responsable (SSG)", "name": "user_asd", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "user_asdHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }) });\n'
20130515 '    var language1551 = new Lino.ChoicesFieldElement({ "fieldLabel": "Langue", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var box1_1_panel1552 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 162, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1547, "labelAlign": "top" }, { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": client1548, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user1549, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user_asd1550, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language1551, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var job1558 = new Lino.TwinCombo({ "fieldLabel": "Emploi", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Jobs.detail)}, "emptyText": "Choisir Emploi...", "selectOnFocus": true, "hiddenName": "jobHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "name": "job" });\n'
20130515 '    var type1559 = new Lino.TwinCombo({ "fieldLabel": "Type de contrat", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.ContractTypes.detail)}, "emptyText": "Choisir Type de contrat de travail...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }) });\n'
20130515 '    var company1560 = new Lino.TwinCombo({ "fieldLabel": "Organisation", "name": "company", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Companies.detail)}, "emptyText": "Choisir Organisation...", "selectOnFocus": true, "hiddenName": "companyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }) });\n'
20130515 '    var contact_person1561 = new Lino.TwinCombo({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_person", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.contacts.Persons.detail)}, "emptyText": "Choisir Personne...", "selectOnFocus": true, "hiddenName": "contact_personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }) });\n'
20130515 '    var contact_role1562 = new Lino.RemoteComboFieldElement({ "fieldLabel": "repr\\u00e9sent\\u00e9 par", "name": "contact_role", "pageSize": 20, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "contact_roleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }) });\n'
20130515 '    var box1_2_panel1563 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": job1558, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type1559, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": company1560, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_person1561, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": contact_role1562, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var applies_from1569 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de contrat", "anchor": "-20", "name": "applies_from" });\n'
20130515 '    var duration1570 = new Lino.SimpleRemoteComboFieldElement({ "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "fieldLabel": "dur\\u00e9e (jours)", "name": "duration", "selectOnFocus": true, "anchor": "-20", "value": null });\n'
20130515 '    var applies_until1571 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin pr\\u00e9vue", "anchor": "-20", "name": "applies_until" });\n'
20130515 '    var exam_policy1572 = new Lino.TwinCombo({ "fieldLabel": "M\\u00e9thode d\'examination", "name": "exam_policy", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.isip.ExamPolicies.detail)}, "emptyText": "Choisir M\\u00e9thode d\'examination...", "selectOnFocus": true, "hiddenName": "exam_policyHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }) });\n'
20130515 '    var box1_3_panel1573 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_from1569, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": duration1570, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": applies_until1571, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": exam_policy1572, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var regime1578 = new Lino.TwinCombo({ "fieldLabel": "R\\u00e9gime de travail", "name": "regime", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Regimes.detail)}, "emptyText": "Choisir R\\u00e9gime de travail...", "selectOnFocus": true, "hiddenName": "regimeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }) });\n'
20130515 '    var schedule1579 = new Lino.TwinCombo({ "fieldLabel": "Horaire", "name": "schedule", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Schedules.detail)}, "emptyText": "Choisir Horaire...", "selectOnFocus": true, "hiddenName": "scheduleHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }) });\n'
20130515 '    var hourly_rate1580 = new Ext.form.NumberField({ "decimalPrecision": 2, "fieldLabel": "co\\u00fbr horaire", "name": "hourly_rate", "decimalSeparator": ",", "selectOnFocus": true, "anchor": "-20", "allowBlank": true });\n'
20130515 '    var refund_rate1581 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "tarif de remboursement", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }), "name": "refund_rate" });\n'
20130515 '    var box1_4_panel1582 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 207, "hideCheckBoxLabels": true, "items": [ { "flex": 28, "autoHeight": true, "layout": "form", "xtype": "panel", "items": regime1578, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": schedule1579, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": hourly_rate1580, "labelAlign": "top" }, { "flex": 14, "autoHeight": true, "layout": "form", "xtype": "panel", "items": refund_rate1581, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var reference_person1587 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "persone de r\\u00e9f\\u00e9rence", "anchor": "-20", "name": "reference_person" });\n'
20130515 '    var build_time1588 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "build time", "anchor": "-20", "value": "<br>", "name": "build_time" });\n'
20130515 '    var box1_5_panel1589 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 189, "hideCheckBoxLabels": true, "items": [ { "flex": 56, "autoHeight": true, "layout": "form", "xtype": "panel", "items": reference_person1587, "labelAlign": "top" }, { "flex": 43, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_time1588, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var date_decided1592 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9cid\\u00e9 le", "anchor": "-20", "name": "date_decided" });\n'
20130515 '    var date_issued1593 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9livr\\u00e9 le", "anchor": "-20", "name": "date_issued" });\n'
20130515 '    var date_ended1594 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var ending1595 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Cause d\'abandon", "name": "ending", "pageSize": 20, "emptyText": "Choisir Cause d\'abandon...", "selectOnFocus": true, "hiddenName": "endingHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }) });\n'
20130515 '    var box1_6_panel1596 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 144, "hideCheckBoxLabels": true, "items": [ { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_decided1592, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_issued1593, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1594, "labelAlign": "top" }, { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ending1595, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var responsibilities1601 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 45, "containing_panel": this, "name": "responsibilities", "title": "responsabilit\\u00e9s" });\n'
20130515 '    var box1_panel1602 = new Ext.Panel({ "flex": 70, "layout": "vbox", "items": [ box1_1_panel1552, box1_2_panel1563, box1_3_panel1573, box1_4_panel1582, box1_5_panel1589, box1_6_panel1596, responsibilities1601 ], "frame": true, "layoutConfig": { "align": "stretch" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 0, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var cal_EventsByController_grid1603 = new Lino.cal.EventsByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "containing_panel": this, "region": "north", "params_panel_hidden": true, "master_panel": this, "split": true, "tools": [ Lino.show_in_own_window_button(Lino.cal.EventsByController.grid) ] });\n'
20130515 '    var cal_TasksByController_grid1604 = new Lino.cal.TasksByController.GridPanel({ "flex": 5, "hide_top_toolbar": true, "split": true, "containing_panel": this, "region": "center", "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "master_panel": this });\n'
20130515 '    var right_panel1605 = new Lino.VBorderPanel({ "flex": 30, "border": false, "hideCheckBoxLabels": true, "items": [ cal_EventsByController_grid1603, cal_TasksByController_grid1604 ], "frame": true, "autoScroll": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_1_panel1606 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box1_panel1602, right_panel1605 ], "frame": false, "layoutConfig": { "align": "stretch" }, "labelAlign": "top" });\n'
20130515 '    var main_panel1607 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "fit", "hideCheckBoxLabels": true, "items": [ main_1_panel1606 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1607;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1561.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1601.refresh();\n'
20130515 '      cal_EventsByController_grid1603.on_master_changed();\n'
20130515 '      cal_TasksByController_grid1604.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1560.on('change',Lino.chooser_handler(contact_person1561,'company'));\n"
20130515 '      Lino.jobs.Contracts.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Contracts.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    job1558.on("change",function(){this.save()},this);\n'
20130515 '    company1560.on("change",function(){this.save()},this);\n'
20130515 '    contact_person1561.on("change",function(){this.save()},this);\n'
20130515 '    contact_role1562.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name920 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl922 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var main_1_panel923 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name920, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr921, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl922, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 153, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var type927 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var invite_team_members928 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color929 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var main_2_panel930 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type927, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members928, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color929, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 72, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel934 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "autoScroll": false, "items": [ main_1_panel923, main_2_panel930 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel934;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2233 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2234 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2235 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2236 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2237 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2238 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2239 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2240 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2233, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2234, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2235, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2236, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2237, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2238, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2239, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var action2248 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2249 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2250 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2251 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2248, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2249, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2250, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2255 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2256 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2257 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2255, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2256, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2260 = new Ext.form.FieldSet({ "flex": 37, "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2251, p1_2_panel2257 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2261 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2262 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2263 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2264 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2261, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2262, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2263, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2268 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2269 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2270 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2271 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2268, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2269, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2270, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2275 = new Ext.form.FieldSet({ "flex": 62, "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2264, proof_2_panel2271 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2276 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2260, proof_panel2275 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var result_htmlbox2277 = new Lino.HtmlBoxPanel({ "flex": 50, "layout": "fit", "name": "result", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "R\\u015bultat", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var request_panel2278 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2240, parameters_panel2276, result_htmlbox2277 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "labelWidth": 72, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2286 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2278 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2286;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2255.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      result_htmlbox2277.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2234.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2158 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var person2159 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var user2160 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "name": "user" });\n'
20130515 '    var environment2161 = new Ext.form.TextField({ "disabled": true, "fieldLabel": "T/A/B", "name": "environment", "maxLength": 4, "boxMinWidth": Lino.chars2width(4), "anchor": "-20" });\n'
20130515 '    var sent2162 = new Ext.form.DisplayField({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("Ex\\u00e9cut\\u00e9","The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ex\\u00e9cut\\u00e9</span>", "name": "sent", "anchor": "-20", "value": "<br>" });\n'
20130515 '    var status2163 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "fieldLabel": "State", "name": "status", "anchor": "-20", "store": Lino.cbss.RequestStates, "hiddenName": "statusHidden" });\n'
20130515 '    var ticket2164 = new Ext.form.TextField({ "disabled": true, "maxLength": 36, "fieldLabel": "Ticket", "anchor": "-20", "name": "ticket" });\n'
20130515 '    var info_1_panel2165 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Information requ\\u00eate", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2158, "labelAlign": "top" }, { "flex": 21, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2159, "labelAlign": "top" }, { "flex": 15, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2160, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": environment2161, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sent2162, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": status2163, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": ticket2164, "labelAlign": "top" } ], "hideCheckBoxLabels": true, "labelWidth": 72, "border": false, "labelAlign": "top" });\n'
20130515 '    var national_id2173 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "NISS", "anchor": "-20", "name": "national_id" });\n'
20130515 '    var p1_panel2175 = new Ext.form.FieldSet({ "flex": 25, "layout": "vbox", "title": "avec NISS", "layoutConfig": { "align": "stretch" }, "frame": true, "bodyBorder": false, "autoScroll": false, "items": [ { "items": national_id2173, "autoHeight": true, "layout": "form", "xtype": "panel", "labelAlign": "top" }, { "flex": 50, "html": "<br/>", "xtype": "label" } ], "hideCheckBoxLabels": true, "labelWidth": 45, "border": false, "labelAlign": "top" });\n'
20130515 '    var first_name2177 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var middle_name2178 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Middle name","Whatever this means...") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Middle name</span>", "name": "middle_name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var last_name2179 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var p2_1_panel2180 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2177, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": middle_name2178, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2179, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var birth_date2184 = new Lino.IncompleteDateField({ "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "name": "birth_date", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var tolerance2185 = new Ext.form.NumberField({ "listeners": { "render": Lino.quicktip_renderer("Tol\\u00e9rance","\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Tol\\u00e9rance</span>", "name": "tolerance", "selectOnFocus": true, "anchor": "-20", "value": 0, "allowBlank": false });\n'
20130515 '    var gender2186 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Sexe", "name": "gender", "selectOnFocus": true, "anchor": "-20", "store": Lino.lino.Genders, "hiddenName": "genderHidden" });\n'
20130515 '    var p2_2_panel2187 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2184, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": tolerance2185, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": gender2186, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p2_panel2191 = new Ext.form.FieldSet({ "flex": 75, "autoHeight": true, "layout": "form", "title": "Recherche phon\\u00e9tique", "items": [ p2_1_panel2180, p2_2_panel2187 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var parameters_panel2192 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "hbox", "title": "Param\\u00e8tres", "layoutConfig": { "align": "stretchmax" }, "frame": false, "bodyBorder": true, "autoScroll": false, "items": [ p1_panel2175, p2_panel2191 ], "hideCheckBoxLabels": true, "border": false, "labelAlign": "top" });\n'
20130515 '    var IdentifyPersonResult_grid2202 = new Lino.cbss.IdentifyPersonResult.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cbss.IdentifyPersonResult.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var request_panel2203 = new Ext.Panel({ "layout": "vbox", "title": "Requ\\u00eate", "items": [ info_1_panel2165, parameters_panel2192, IdentifyPersonResult_grid2202 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var response_xml2204 = new Ext.form.TextArea({ "disabled": true, "listeners": { "render": Lino.quicktip_renderer("R\\u00e9ponse","The raw XML response received. \\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">R\\u00e9ponse</span>", "name": "response_xml", "growMax": 2000, "anchor": "-20 -10" });\n'
20130515 '    var info_messages2205 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages info", "anchor": "-20 -10", "growMax": 2000, "name": "info_messages" });\n'
20130515 '    var debug_messages2206 = new Ext.form.TextArea({ "disabled": true, "fieldLabel": "Messages debug", "anchor": "-20 -10", "growMax": 2000, "name": "debug_messages" });\n'
20130515 '    var technical_panel2207 = new Lino.VBorderPanel({ "autoScroll": false, "listeners": { "activate": Lino.on_tab_activate }, "border": false, "labelWidth": 135, "title": "Technique", "hideCheckBoxLabels": true, "items": [ { "flex": 5, "layout": "form", "xtype": "panel", "items": response_xml2204, "region": "north", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": info_messages2205, "region": "center", "labelAlign": "top", "split": true }, { "flex": 5, "layout": "form", "xtype": "panel", "items": debug_messages2206, "region": "south", "labelAlign": "top", "split": true } ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2211 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ request_panel2203, technical_panel2207 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2211;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      IdentifyPersonResult_grid2202.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2159.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 26,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var file2386 = Lino.file_field_handler(this,{ "fieldLabel": "File", "name": "file", "maxLength": 100, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2387 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/user", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2388 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 63, "hideCheckBoxLabels": true, "items": [ { "flex": 58, "autoHeight": true, "layout": "form", "xtype": "panel", "items": file2386, "labelAlign": "top" }, { "flex": 41, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2387, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var type2391 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Type d\'upload", "name": "type", "pageSize": 20, "emptyText": "Choisir Type d\'upload...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/Uploads/type", "method": "GET" }) }) });\n'
20130515 '    var description2392 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description", "anchor": "-20", "name": "description" });\n'
20130515 '    var valid_until2393 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "expire le", "anchor": "-20", "name": "valid_until" });\n'
20130515 '    var main_2_panel2394 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 126, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type2391, "labelAlign": "top" }, { "flex": 42, "autoHeight": true, "layout": "form", "xtype": "panel", "items": description2392, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": valid_until2393, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var modified2398 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var created2399 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var owner_disp2400 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var main_3_panel2401 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified2398, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created2399, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp2400, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var cal_TasksByController_grid2405 = new Lino.cal.TasksByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.TasksByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2406 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2388, main_2_panel2394, main_3_panel2401, cal_TasksByController_grid2405 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2406;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      cal_TasksByController_grid2405.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.uploads.MyUploads.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  disable_editing: true,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var app_disp2425 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "app_label", "name": "app", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp2426 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "name", "name": "name", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp2427 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "docstring", "name": "docstring", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows2428 = new Ext.form.NumberField({ "disabled": true, "fieldLabel": "Rows", "anchor": "-20", "name": "rows" });\n'
20130515 '    var main_1_panel2429 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": app_disp2425, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_disp2426, "labelAlign": "top" }, { "flex": 31, "autoHeight": true, "layout": "form", "xtype": "panel", "items": docstring_disp2427, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": rows2428, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var about_FieldsByModel_grid2438 = new Lino.about.FieldsByModel.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.about.FieldsByModel.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 62 });\n'
20130515 '    var main_panel2439 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel2429, about_FieldsByModel_grid2438 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2439;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      about_FieldsByModel_grid2438.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.about.Models.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 66,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var name1975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100, "fieldLabel": "Name", "anchor": "-20", "name": "name" });\n'
20130515 '    var provider1976 = new Lino.TwinCombo({ "fieldLabel": "Employant", "name": "provider", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.JobProviders.detail)}, "emptyText": "Choisir Employant...", "selectOnFocus": true, "hiddenName": "providerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }) });\n'
20130515 '    var sector1977 = new Lino.TwinCombo({ "fieldLabel": "Secteur d\'activit\\u00e9", "name": "sector", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Sectors.detail)}, "emptyText": "Choisir Secteur d\'activit\\u00e9...", "selectOnFocus": true, "hiddenName": "sectorHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }) });\n'
20130515 '    var function1978 = new Lino.TwinCombo({ "fieldLabel": "Fonction", "name": "function", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.jobs.Functions.detail)}, "emptyText": "Choisir Fonction...", "selectOnFocus": true, "hiddenName": "functionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel1979 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name1975, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": provider1976, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sector1977, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": function1978, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var selection_from1984 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "D\\u00e9but de s\\u00e9lection", "anchor": "-20", "name": "selection_from" });\n'
20130515 '    var selection_until1985 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Fin de s\\u00e9lection", "anchor": "-20", "name": "selection_until" });\n'
20130515 '    var start_date1986 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_2_panel1987 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 171, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_from1984, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": selection_until1985, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date1986, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1991 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var ExperiencesByOffer_grid2003 = new Lino.jobs.ExperiencesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.ExperiencesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var CandidaturesByOffer_grid2013 = new Lino.jobs.CandidaturesByOffer.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.jobs.CandidaturesByOffer.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var main_4_panel2014 = new Ext.Panel({ "flex": 41, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ ExperiencesByOffer_grid2003, CandidaturesByOffer_grid2013 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel2015 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ main_1_panel1979, main_2_panel1987, { "items": remark1991, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 41 }, main_4_panel2014 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2015;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1978.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '      ExperiencesByOffer_grid2003.on_master_changed();\n'
20130515 '      CandidaturesByOffer_grid2013.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1977.on('change',Lino.chooser_handler(function1978,'sector'));\n"
20130515 '      Lino.jobs.Offers.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.jobs.Offers.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 75,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var date_submitted1338 = new Lino.DateField({ "listeners": { "render": Lino.quicktip_renderer("Date d\\u00e9ntr\\u00e9e","When this request has been submitted.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Date d\\u00e9ntr\\u00e9e</span>", "name": "date_submitted", "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var person1339 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Client</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "listeners": { "render": Lino.quicktip_renderer("Client","Le client qui d\\u00e9sire suivre un cours.") }, "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var content1340 = new Lino.TwinCombo({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Contenu</span>", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseContents.detail)}, "emptyText": "Choisir Contenu de cours...", "listeners": { "render": Lino.quicktip_renderer("Contenu","Der gew\\u00fcnschte Kursinhalt.)") }, "selectOnFocus": true, "hiddenName": "contentHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/content", "method": "GET" }) }), "name": "content" });\n'
20130515 '    var offer1341 = new Lino.TwinCombo({ "fieldLabel": "Offre de cours", "name": "offer", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.CourseOffers.detail)}, "emptyText": "Choisir Offre de cours...", "selectOnFocus": true, "hiddenName": "offerHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/offer", "method": "GET" }) }) });\n'
20130515 '    var urgent1342 = new Ext.form.Checkbox({ "boxLabel": "cause professionnelle", "listeners": { "render": Lino.quicktip_renderer("cause professionnelle","Check this if the request is needed for job search.") }, "hideLabel": true, "checked": false, "name": "urgent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_1_panel1343 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 198, "hideCheckBoxLabels": true, "items": [ { "flex": 10, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_submitted1338, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": person1339, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": content1340, "labelAlign": "top" }, { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": offer1341, "labelAlign": "top" }, { "flex": 12, "autoHeight": true, "layout": "form", "xtype": "panel", "items": urgent1342, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var course1349 = new Lino.TwinCombo({ "fieldLabel": "Cours trouv\\u00e9", "name": "course", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.courses.Courses.detail)}, "emptyText": "Choisir Cours...", "selectOnFocus": true, "hiddenName": "courseHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequests/course", "method": "GET" }) }) });\n'
20130515 '    var state1350 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "State", "allowBlank": false, "hiddenName": "stateHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.courses.CourseRequestStates, "name": "state" });\n'
20130515 '    var date_ended1351 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "date_ended" });\n'
20130515 '    var id1352 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_2_panel1353 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": course1349, "labelAlign": "top" }, { "flex": 26, "autoHeight": true, "layout": "form", "xtype": "panel", "items": state1350, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": date_ended1351, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id1352, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remark1358 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarque", "anchor": "-20 -10", "growMax": 2000, "name": "remark" });\n'
20130515 '    var UploadsByController_htmlbox1359 = new Lino.HtmlBoxPanel({ "flex": 33, "ls_bbar_actions": [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true } ], "name": "UploadsByController", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Uploads", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden", "ls_insert_handler": Lino.uploads.UploadsByController.insert, "layout": "fit", "tools": [ Lino.show_in_own_window_button(Lino.uploads.UploadsByController.grid) ] });\n'
20130515 '    var main_3_panel1360 = new Ext.Panel({ "flex": 71, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "items": remark1358, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 66 }, UploadsByController_htmlbox1359 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var main_panel1362 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel1343, main_2_panel1353, main_3_panel1360 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel1362;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1341.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '      UploadsByController_htmlbox1359.refresh();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1340.on('change',Lino.chooser_handler(offer1341,'content'));\n"
20130515 '      Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.courses.PendingCourseRequests.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    offer1341.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 1,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var id2365 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var name2366 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var user2367 = new Lino.TwinCombo({ "fieldLabel": "Auteur", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/user", "method": "GET" }) }) });\n'
20130515 '    var team2368 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Team</span>", "name": "team", "pageSize": 20, "emptyText": "Choisir Team...", "listeners": { "render": Lino.quicktip_renderer("Team","If not empty, then this template is reserved to members of this team.") }, "selectOnFocus": true, "hiddenName": "teamHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/TextFieldTemplates/team", "method": "GET" }) }) });\n'
20130515 '    var main_1_panel2369 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id2365, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name2366, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user2367, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": team2368, "labelAlign": "top" } ], "region": "north", "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "split": true, "autoScroll": false, "labelWidth": 108, "border": false, "frame": false, "labelAlign": "top" });\n'
20130515 '    var description2374 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Description", "anchor": "-20 -10", "growMax": 2000, "name": "description" });\n'
20130515 '    var text2375 = new Lino.RichTextPanel({ "flex": 5, "split": true, "containing_panel": this, "selectOnFocus": true, "region": "south", "title": "Texte mod\\u00e8le", "name": "text" });\n'
20130515 '    var main_panel2376 = new Lino.VBorderPanel({ "autoScroll": false, "border": false, "labelWidth": 108, "hideCheckBoxLabels": true, "items": [ main_1_panel2369, { "flex": 5, "layout": "form", "xtype": "panel", "items": description2374, "region": "center", "labelAlign": "top", "split": true }, text2375 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2376;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text2375.refresh();\n'
20130515 '    }\n'
20130515 '    Lino.ui.MyTextFieldTemplates.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.InsertFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  autoHeight: true,\n'
20130515 '  content_type: 88,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var person2287 = new Lino.TwinCombo({ "fieldLabel": "Client", "allowBlank": false, "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "personHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "name": "person" });\n'
20130515 '    var action2288 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Action", "allowBlank": false, "hiddenName": "actionHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.ManageAction, "name": "action" });\n'
20130515 '    var start_date2289 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode du", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var end_date2290 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false, "fieldLabel": "P\\u00e9riode au", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var p1_1_panel2291 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": action2288, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date2289, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date2290, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 99, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var purpose2295 = new Lino.RemoteComboFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Code fonction</span>", "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction...", "listeners": { "render": Lino.quicktip_renderer("Code fonction","The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.") }, "selectOnFocus": true, "hiddenName": "purposeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "name": "purpose" });\n'
20130515 '    var query_register2296 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "Query Register", "allowBlank": false, "hiddenName": "query_registerHidden", "selectOnFocus": true, "anchor": "-20", "store": Lino.cbss.QueryRegister, "name": "query_register" });\n'
20130515 '    var p1_2_panel2297 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 62, "autoHeight": true, "layout": "form", "xtype": "panel", "items": purpose2295, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": query_register2296, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 135, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var p1_panel2300 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Action demand\\u00e9e", "items": [ p1_1_panel2291, p1_2_panel2297 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var national_id2301 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("NISS","The SSIN of the person to register/unregister/list.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">NISS</span>", "name": "national_id", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var sis_card_no2302 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte SIS","The number of the SIS card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte SIS</span>", "name": "sis_card_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var id_card_no2303 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("No carte eID","The number of the ID card used to authenticate the person.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">No carte eID</span>", "name": "id_card_no", "maxLength": 20, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var proof_1_panel2304 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": national_id2301, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": sis_card_no2302, "labelAlign": "top" }, { "flex": 39, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id_card_no2303, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 117, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var first_name2308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Pr\\u00e9nom", "anchor": "-20", "name": "first_name" });\n'
20130515 '    var last_name2309 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Nom de famille", "anchor": "-20", "name": "last_name" });\n'
20130515 '    var birth_date2310 = new Lino.IncompleteDateField({ "selectOnFocus": true, "listeners": { "render": Lino.quicktip_renderer("date de naissance","Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">date de naissance</span>", "anchor": "-20", "name": "birth_date" });\n'
20130515 '    var proof_2_panel2311 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": first_name2308, "labelAlign": "top" }, { "flex": 38, "autoHeight": true, "layout": "form", "xtype": "panel", "items": last_name2309, "labelAlign": "top" }, { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": birth_date2310, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 162, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var proof_panel2315 = new Ext.form.FieldSet({ "autoHeight": true, "layout": "form", "title": "Preuve d\'identification", "items": [ proof_1_panel2304, proof_2_panel2311 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var main_panel2316 = new Ext.Panel({ "hideCheckBoxLabels": true, "autoHeight": true, "border": false, "layout": "form", "labelWidth": 63, "autoScroll": false, "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": person2287, "anchor": "-20", "labelAlign": "top" }, p1_panel2300, proof_panel2315 ], "frame": true, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel2316;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose2295.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    Lino.cbss.ManageAccessRequests.InsertFormPanel.superclass.initComponent.call(this);\n'
20130515 '    // active_fields:\n'
20130515 '    person2287.on("change",function(){this.save()},this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 35,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type850 = new Lino.ChoicesFieldElement({ "fieldLabel": "Type", "allowBlank": false, "value": "local", "hiddenName": "typeHidden", "selectOnFocus": true, "anchor": "-20", "store": [ [ "local", "Local Calendar" ], [ "google", "Google Calendar" ] ], "name": "type" });\n'
20130515 '    var name851 = new Ext.form.TextField({ "fieldLabel": "Description", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var name_fr852 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (fr)", "anchor": "-20", "name": "name_fr" });\n'
20130515 '    var name_nl853 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Description (nl)", "anchor": "-20", "name": "name_nl" });\n'
20130515 '    var id854 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var main_1_panel855 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ { "flex": 22, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type850, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name851, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_fr852, "labelAlign": "top" }, { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name_nl853, "labelAlign": "top" }, { "flex": 5, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id854, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var url_template861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL template", "anchor": "-20", "name": "url_template" });\n'
20130515 '    var username862 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "Username", "anchor": "-20", "name": "username" });\n'
20130515 '    var password863 = new Ext.form.TextField({ "fieldLabel": "Password", "name": "password", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "inputType": "password" });\n'
20130515 '    var main_2_panel864 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": url_template861, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": username862, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": password863, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var readonly868 = new Ext.form.Checkbox({ "boxLabel": "read-only", "hideLabel": true, "checked": false, "name": "readonly", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var invite_team_members869 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Team", "name": "invite_team_members", "pageSize": 20, "emptyText": "Choisir Team...", "selectOnFocus": true, "hiddenName": "invite_team_membersHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/invite_team_members", "method": "GET" }) }) });\n'
20130515 '    var color870 = new Ext.form.NumberField({ "fieldLabel": "Couleur", "name": "color", "selectOnFocus": true, "anchor": "-20", "value": 1, "allowBlank": false });\n'
20130515 '    var start_date871 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var main_3_panel872 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 23, "autoHeight": true, "layout": "form", "xtype": "panel", "items": readonly868, "labelAlign": "top" }, { "flex": 46, "autoHeight": true, "layout": "form", "xtype": "panel", "items": invite_team_members869, "labelAlign": "top" }, { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": color870, "labelAlign": "top" }, { "flex": 18, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date871, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var build_method877 = new Lino.ChoicesFieldElement({ "fieldLabel": "M\\u00e9thode de construction", "name": "build_method", "selectOnFocus": true, "anchor": "-20", "store": [ [ "appyodt", "AppyOdtBuildMethod" ], [ "appypdf", "AppyPdfBuildMethod" ], [ "appyrtf", "AppyRtfBuildMethod" ], [ "latex", "LatexBuildMethod" ], [ "pisa", "PisaBuildMethod" ], [ "rtf", "RtfBuildMethod" ] ], "hiddenName": "build_methodHidden" });\n'
20130515 '    var template878 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "fieldLabel": "Mod\\u00e8le", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/template", "method": "GET" }) }), "name": "template" });\n'
20130515 '    var email_template879 = new Lino.SimpleRemoteComboFieldElement({ "listeners": { "render": Lino.quicktip_renderer("Email template","The name of the file to be used as template \\nwhen creating an email from a mailable of this type.\\n") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Email template</span>", "name": "email_template", "selectOnFocus": true, "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Calendars/email_template", "method": "GET" }) }) });\n'
20130515 '    var attach_to_email880 = new Ext.form.Checkbox({ "boxLabel": "Attach to email", "listeners": { "render": Lino.quicktip_renderer("Attach to email","Whether the printable file should be attached to the email\\nwhen creating an email from a mailable of this type.\\n") }, "hideLabel": true, "checked": false, "name": "attach_to_email", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var main_4_panel881 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 216, "hideCheckBoxLabels": true, "items": [ { "flex": 40, "autoHeight": true, "layout": "form", "xtype": "panel", "items": build_method877, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": template878, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": email_template879, "labelAlign": "top" }, { "flex": 20, "autoHeight": true, "layout": "form", "xtype": "panel", "items": attach_to_email880, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var main_panel919 = new Ext.Panel({ "autoScroll": false, "border": false, "layout": "vbox", "hideCheckBoxLabels": true, "items": [ main_1_panel855, main_2_panel864, main_3_panel872, main_4_panel881 ], "frame": true, "layoutConfig": { "align": "stretch" }, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel919;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      template878.setContextValue('build_method',record ? record.data['build_methodHidden'] : undefined);\n"
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      build_method877.on('change',Lino.chooser_handler(template878,'build_method'));\n"
20130515 '      Lino.cal.PanelCalendars.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.cal.PanelCalendars.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 41,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var type935 = new Lino.TwinCombo({ "fieldLabel": "Type de m\\u00e9nage", "name": "type", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.households.Types.detail)}, "emptyText": "Choisir Type de m\\u00e9nage...", "selectOnFocus": true, "hiddenName": "typeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }) });\n'
20130515 '    var name936 = new Ext.form.TextField({ "fieldLabel": "Name", "name": "name", "maxLength": 200, "selectOnFocus": true, "anchor": "-20", "allowBlank": false });\n'
20130515 '    var language937 = new Lino.ChoicesFieldElement({ "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Langue</span>", "allowBlank": false, "value": "de", "hiddenName": "languageHidden", "listeners": { "render": Lino.quicktip_renderer("Langue","Die Sprache, in der Dokumente ausgestellt werden sollen.") }, "selectOnFocus": true, "anchor": "-20", "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "name": "language" });\n'
20130515 '    var id938 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var intro_box_1_panel939 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 35, "autoHeight": true, "layout": "form", "xtype": "panel", "items": type935, "labelAlign": "top" }, { "flex": 37, "autoHeight": true, "layout": "form", "xtype": "panel", "items": name936, "labelAlign": "top" }, { "flex": 17, "autoHeight": true, "layout": "form", "xtype": "panel", "items": language937, "labelAlign": "top" }, { "flex": 8, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id938, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var country944 = new Lino.TwinCombo({ "fieldLabel": "Pays", "name": "country", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Countries.detail)}, "emptyText": "Choisir Pays...", "selectOnFocus": true, "hiddenName": "countryHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }) });\n'
20130515 '    var region945 = new Lino.TwinCombo({ "fieldLabel": "Region", "name": "region", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "regionHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }) });\n'
20130515 '    var box3_1_panel946 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": country944, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": region945, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 63, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var city949 = new Lino.TwinCombo({ "forceSelection": false, "fieldLabel": "Place", "name": "city", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.countries.Cities.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "cityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }) });\n'
20130515 '    var zip_code950 = new Ext.form.TextField({ "fieldLabel": "Zip code", "name": "zip_code", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_2_panel951 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 66, "autoHeight": true, "layout": "form", "xtype": "panel", "items": city949, "labelAlign": "top" }, { "flex": 33, "autoHeight": true, "layout": "form", "xtype": "panel", "items": zip_code950, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 81, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var street_prefix954 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Pr\\u00e9fixe rue","Text to print before name of street, but to ignore for sorting.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Pr\\u00e9fixe rue</span>", "name": "street_prefix", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street955 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Rue","Name of street. Without house number.") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Rue</span>", "name": "street", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var street_no956 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("N\\u00b0","House number") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">N\\u00b0</span>", "name": "street_no", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var street_box957 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("bo\\u00eete","Text to print after :attr:`steet_no` on the same line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">bo\\u00eete</span>", "name": "street_box", "maxLength": 10, "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "anchor": "-20" });\n'
20130515 '    var box3_3_panel958 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 30, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_prefix954, "labelAlign": "top" }, { "flex": 36, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street955, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_no956, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": street_box957, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 108, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var addr2963 = new Ext.form.TextField({ "listeners": { "render": Lino.quicktip_renderer("Ligne apr\\u00e8s le nom de rue","Address line to print below street line") }, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Ligne apr\\u00e8s le nom de rue</span>", "name": "addr2", "maxLength": 200, "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var activity964 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Activit\\u00e9", "name": "activity", "pageSize": 20, "emptyText": "Choisir Activit\\u00e9...", "selectOnFocus": true, "hiddenName": "activityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }) });\n'
20130515 '    var bank_account1965 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 1", "anchor": "-20", "name": "bank_account1" });\n'
20130515 '    var bank_account2966 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40, "fieldLabel": "Compte en banque 2", "anchor": "-20", "name": "bank_account2" });\n'
20130515 '    var box3_5_panel967 = new Ext.Panel({ "autoHeight": true, "layout": "hbox", "items": [ { "flex": 45, "autoHeight": true, "layout": "form", "xtype": "panel", "items": activity964, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account1965, "labelAlign": "top" }, { "flex": 27, "autoHeight": true, "layout": "form", "xtype": "panel", "items": bank_account2966, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "hideCheckBoxLabels": true, "autoScroll": false, "labelWidth": 171, "border": false, "anchor": "-20", "labelAlign": "top" });\n'
20130515 '    var box3_panel971 = new Ext.Panel({ "flex": 62, "autoHeight": true, "layout": "form", "items": [ box3_1_panel946, box3_2_panel951, box3_3_panel958, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": addr2963, "anchor": "-20", "labelAlign": "top" }, box3_5_panel967 ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 234, "border": false, "labelAlign": "top" });\n'
20130515 '    var email973 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75, "fieldLabel": "E-mail", "anchor": "-20", "name": "email" });\n'
20130515 '    var url974 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "URL", "anchor": "-20", "name": "url" });\n'
20130515 '    var phone975 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "T\\u00e9l\\u00e9phone", "anchor": "-20", "name": "phone" });\n'
20130515 '    var gsm976 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "GSM", "anchor": "-20", "name": "gsm" });\n'
20130515 '    var box4_panel977 = new Ext.Panel({ "flex": 37, "autoHeight": true, "layout": "form", "items": [ { "autoHeight": true, "layout": "form", "xtype": "panel", "items": email973, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": url974, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": phone975, "anchor": "-20", "labelAlign": "top" }, { "autoHeight": true, "layout": "form", "xtype": "panel", "items": gsm976, "anchor": "-20", "labelAlign": "top" } ], "frame": true, "bodyBorder": false, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 90, "border": false, "labelAlign": "top" });\n'
20130515 '    var address_box_panel982 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ box3_panel971, box4_panel977 ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var remarks983 = new Ext.form.TextArea({ "selectOnFocus": true, "fieldLabel": "Remarques", "anchor": "-20 -10", "growMax": 2000, "name": "remarks" });\n'
20130515 '    var households_MembersByHousehold_grid990 = new Lino.households.MembersByHousehold.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.households.MembersByHousehold.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var bottom_box_panel991 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 90, "hideCheckBoxLabels": true, "items": [ { "items": remarks983, "labelAlign": "top", "layout": "form", "xtype": "panel", "flex": 49 }, households_MembersByHousehold_grid990 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel993 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ intro_box_1_panel939, address_box_panel982, bottom_box_panel991 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel997 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel993 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel997;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region945.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city949.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      households_MembersByHousehold_grid990.on_master_changed();\n'
20130515 '    }\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country944.on('change',Lino.chooser_handler(region945,'country'));\n"
20130515 "      country944.on('change',Lino.chooser_handler(city949,'country'));\n"
20130515 "      region945.on('change',Lino.chooser_handler(city949,'region'));\n"
20130515 '      Lino.households.Households.DetailFormPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    Lino.households.Households.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.DetailFormPanel = Ext.extend(Lino.FormPanel,{\n'
20130515 "  layout: 'fit',\n"
20130515 '  auto_save: true,\n'
20130515 '  content_type: 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var containing_panel = this;\n'
20130515 '    var calendar756 = new Lino.TwinCombo({ "fieldLabel": "Calendrier", "name": "calendar", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Calendars.detail)}, "emptyText": "Choisir Calendrier...", "selectOnFocus": true, "hiddenName": "calendarHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/calendar", "method": "GET" }) }) });\n'
20130515 '    var summary757 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200, "fieldLabel": "R\\u00e9sum\\u00e9", "anchor": "-20", "name": "summary" });\n'
20130515 '    var project758 = new Lino.TwinCombo({ "fieldLabel": "Client", "name": "project", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.pcsw.Clients.detail)}, "emptyText": "Choisir Client...", "selectOnFocus": true, "hiddenName": "projectHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/project", "method": "GET" }) }) });\n'
20130515 '    var general_1_panel759 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 99, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": calendar756, "labelAlign": "top" }, { "flex": 34, "autoHeight": true, "layout": "form", "xtype": "panel", "items": summary757, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": project758, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var start_date763 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date d\\u00e9but", "anchor": "-20", "name": "start_date" });\n'
20130515 '    var start_time764 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de d\\u00e9but", "anchor": "-20", "name": "start_time" });\n'
20130515 '    var start_panel765 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_date763, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": start_time764, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 135, "border": false, "labelAlign": "top" });\n'
20130515 '    var end_date768 = new Lino.DateField({ "selectOnFocus": true, "fieldLabel": "Date de fin", "anchor": "-20", "name": "end_date" });\n'
20130515 '    var end_time769 = new Lino.TimeField({ "selectOnFocus": true, "fieldLabel": "Heure de fin", "anchor": "-20", "name": "end_time" });\n'
20130515 '    var end_panel770 = new Ext.Panel({ "flex": 25, "autoHeight": true, "layout": "hbox", "items": [ { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_date768, "labelAlign": "top" }, { "flex": 50, "autoHeight": true, "layout": "form", "xtype": "panel", "items": end_time769, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "autoScroll": false, "hideCheckBoxLabels": true, "labelWidth": 117, "border": false, "labelAlign": "top" });\n'
20130515 '    var user773 = new Lino.TwinCombo({ "fieldLabel": "Responsible user", "name": "user", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "userHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/user", "method": "GET" }) }) });\n'
20130515 '    var assigned_to774 = new Lino.TwinCombo({ "fieldLabel": "Attribu\\u00e9 \\u00e0", "name": "assigned_to", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.users.Users.detail)}, "emptyText": "Choisir Utilisateur...", "selectOnFocus": true, "hiddenName": "assigned_toHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/assigned_to", "method": "GET" }) }) });\n'
20130515 '    var general_2_panel775 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 153, "hideCheckBoxLabels": true, "items": [ start_panel765, end_panel770, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": user773, "labelAlign": "top" }, { "flex": 24, "autoHeight": true, "layout": "form", "xtype": "panel", "items": assigned_to774, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var place778 = new Lino.TwinCombo({ "fieldLabel": "Place", "name": "place", "pageSize": 20, "onTrigger2Click": function(e){ Lino.show_fk_detail(this,Lino.cal.Places.detail)}, "emptyText": "Choisir Place...", "selectOnFocus": true, "hiddenName": "placeHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/place", "method": "GET" }) }) });\n'
20130515 '    var priority779 = new Lino.RemoteComboFieldElement({ "fieldLabel": "Priorit\\u00e9", "name": "priority", "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9...", "selectOnFocus": true, "hiddenName": "priorityHidden", "anchor": "-20", "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/Events/priority", "method": "GET" }) }) });\n'
20130515 '    var access_class780 = new Lino.ChoicesFieldElement({ "forceSelection": true, "fieldLabel": "<span style=\\"border-bottom: 1px dotted #000000;\\">Classe d\'acc\\u00e8s</span>", "name": "access_class", "hiddenName": "access_classHidden", "listeners": { "render": Lino.quicktip_renderer("Classe d\'acc\\u00e8s","Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".") }, "selectOnFocus": true, "anchor": "-20", "store": Lino.cal.AccessClasses });\n'
20130515 '    var transparent781 = new Ext.form.Checkbox({ "boxLabel": "non bloquant", "listeners": { "render": Lino.quicktip_renderer("non bloquant","Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.") }, "hideLabel": true, "checked": false, "name": "transparent", "selectOnFocus": true, "anchor": "-20" });\n'
20130515 '    var general_3_panel782 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 135, "hideCheckBoxLabels": true, "items": [ { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": place778, "labelAlign": "top" }, { "flex": 32, "autoHeight": true, "layout": "form", "xtype": "panel", "items": priority779, "labelAlign": "top" }, { "flex": 19, "autoHeight": true, "layout": "form", "xtype": "panel", "items": access_class780, "labelAlign": "top" }, { "flex": 16, "autoHeight": true, "layout": "form", "xtype": "panel", "items": transparent781, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var owner_disp787 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Contr\\u00f4l\\u00e9 par", "anchor": "-20", "name": "owner" });\n'
20130515 '    var workflow_buttons_disp788 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Workflow", "name": "workflow_buttons", "anchor": "-20", "value": "<br/>", "always_enabled": true });\n'
20130515 '    var general_4_panel789 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 117, "hideCheckBoxLabels": true, "items": [ { "flex": 25, "autoHeight": true, "layout": "form", "xtype": "panel", "items": owner_disp787, "labelAlign": "top" }, { "flex": 75, "autoHeight": true, "layout": "form", "xtype": "panel", "items": workflow_buttons_disp788, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var description792 = new Lino.RichTextPanel({ "selectOnFocus": true, "flex": 33, "containing_panel": this, "name": "description", "title": "Description" });\n'
20130515 '    var GuestsByEvent_grid802 = new Lino.cal.GuestsByEvent.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.cal.GuestsByEvent.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 66 });\n'
20130515 '    var general_5_panel803 = new Ext.Panel({ "flex": 45, "border": false, "layout": "hbox", "labelWidth": 0, "hideCheckBoxLabels": true, "items": [ description792, GuestsByEvent_grid802 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var general_panel804 = new Ext.Panel({ "layout": "vbox", "title": "G\\u00e9n\\u00e9ral", "items": [ general_1_panel759, general_2_panel775, general_3_panel782, general_4_panel789, general_5_panel803 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var id805 = new Ext.form.NumberField({ "selectOnFocus": true, "fieldLabel": "ID", "anchor": "-20", "name": "id" });\n'
20130515 '    var created806 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Cr\\u00e9\\u00e9", "anchor": "-20", "value": "<br>", "name": "created" });\n'
20130515 '    var modified807 = new Ext.form.DisplayField({ "disabled": true, "fieldLabel": "Modified", "anchor": "-20", "value": "<br>", "name": "modified" });\n'
20130515 '    var more_1_panel808 = new Ext.Panel({ "autoScroll": false, "autoHeight": true, "border": false, "layout": "hbox", "labelWidth": 81, "hideCheckBoxLabels": true, "items": [ { "flex": 11, "autoHeight": true, "layout": "form", "xtype": "panel", "items": id805, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": created806, "labelAlign": "top" }, { "flex": 44, "autoHeight": true, "layout": "form", "xtype": "panel", "items": modified807, "labelAlign": "top" } ], "frame": false, "layoutConfig": { "align": "stretchmax" }, "labelAlign": "top" });\n'
20130515 '    var outbox_MailsByController_grid812 = new Lino.outbox.MailsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.outbox.MailsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var postings_PostingsByController_grid813 = new Lino.postings.PostingsByController.GridPanel({ "tools": [ Lino.show_in_own_window_button(Lino.postings.PostingsByController.grid) ], "containing_panel": this, "hide_top_toolbar": true, "master_panel": this, "flex": 50 });\n'
20130515 '    var more_2_panel814 = new Ext.Panel({ "flex": 83, "border": false, "layout": "hbox", "hideCheckBoxLabels": true, "items": [ outbox_MailsByController_grid812, postings_PostingsByController_grid813 ], "autoScroll": false, "layoutConfig": { "align": "stretch" }, "frame": false, "labelAlign": "top" });\n'
20130515 '    var more_panel815 = new Ext.Panel({ "layout": "vbox", "title": "Plus", "items": [ more_1_panel808, more_2_panel814 ], "frame": true, "layoutConfig": { "align": "stretch" }, "hideCheckBoxLabels": true, "listeners": { "activate": Lino.on_tab_activate }, "autoScroll": false, "border": false, "bodyBorder": false, "labelAlign": "top" });\n'
20130515 '    var main_panel816 = new Ext.TabPanel({ "hideCheckBoxLabels": true, "border": false, "split": true, "autoScroll": false, "items": [ general_panel804, more_panel815 ], "activeTab": 0, "bodyBorder": false, "frame": true, "labelAlign": "top" });\n'
20130515 '    this.items = main_panel816;\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description792.refresh();\n'
20130515 '      GuestsByEvent_grid802.on_master_changed();\n'
20130515 '      outbox_MailsByController_grid812.on_master_changed();\n'
20130515 '      postings_PostingsByController_grid813.on_master_changed();\n'
20130515 '    }\n'
20130515 '    Lino.cal.MyEvents.DetailFormPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.merge_row = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(70), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.merge_row_ActionFormPanel({});\n'
20130515 '});\n'
20130515 'Lino.cal.GuestStates.wf2 = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(15) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.wf2_ActionFormPanel({});\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.MySettings\n'
20130515 'Lino.users.MySettings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/MySettings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  title : "Utilisateurs",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "username" }, { "name": "profile" }, \'profileHidden\', { "name": "first_name" }, { "name": "last_name" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "password" }, { "name": "email" }, { "name": "remarks" }, { "name": "language" }, \'languageHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "access_class" }, \'access_classHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "coaching_type" }, \'coaching_typeHidden\', { "type": "boolean", "name": "coaching_supervisor" }, { "type": "int", "name": "newcomer_quota" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 7,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 24,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var username2468 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 30 });\n'
20130515 '    var profile2469 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.UserProfiles });\n'
20130515 '    var first_name2470 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var last_name2471 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 30 });\n'
20130515 '    var id2472 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2473 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2474 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var password2475 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 128 });\n'
20130515 '    var email2476 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var remarks2477 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var language2478 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ] });\n'
20130515 '    var partner2479 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var access_class2480 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.AccessClasses });\n'
20130515 '    var calendar2481 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var coaching_type2482 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/MySettings/coaching_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var coaching_supervisor2483 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var newcomer_quota2484 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Username", "editable": true, "tooltip": "\\n        Required. Must be unique. \\n        ", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "username", "editor": username2468 }, { "colIndex": 1, "sortable": true, "header": "User Profile", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(47), "dataIndex": "profile", "editor": profile2469 }, { "colIndex": 2, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2470 }, { "colIndex": 3, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2471 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2472, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Password", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "password", "hidden": true, "editor": password2475 }, { "colIndex": 8, "sortable": true, "header": "adresse e-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2476 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remarks2477, "dataIndex": "remarks" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2478 }, { "colIndex": 11, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2479, "dataIndex": "partner" }, { "colIndex": 12, "sortable": true, "header": "Classe d\'acc\\u00e8s par d\\u00e9faut", "editable": true, "tooltip": "The default access class for your calendar events and tasks.", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class2480 }, { "colIndex": 13, "sortable": true, "header": "Calendrier par d\\u00e9faut", "editable": true, "tooltip": "Le calendrier par d\\u00e9faut pour vos rendez-vous et t\\u00e2ches.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2481 }, { "colIndex": 14, "sortable": true, "header": "Service", "editable": true, "tooltip": "The default CoachingType used when creating Coachings.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "coaching_type", "editor": coaching_type2482 }, { "colIndex": 15, "sortable": false, "xtype": "checkcolumn", "header": "Notify me when a coach has been assigned", "editable": true, "tooltip": "Wenn ein Neuantrag einem Begleiter zugewiesen wurde, wird au\\u00dfer dem Begleiter auch dieser Benutzer benachrichtigt.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "coaching_supervisor" }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Arbeitszeit dieser Benutzer f\\u00fcr Neuantr\\u00e4ge zur Verf\\u00fcgung steht\\n(100 = ganztags, 50 = halbtags, 0 = gar nicht).\\nWenn zwei Benutzer die gleiche Belastungspunktzahl haben, \\naber einer davon sich nur zu 50% um Neuantr\\u00e4ge k\\u00fcmmert, \\ngilt er als doppelt so belastet wie sein Kollege.\\n", "filter": { "type": "numeric" }, "header": "Quota nouvelles demandes", "dataIndex": "newcomer_quota", "width": Lino.chars2width(6), "editor": newcomer_quota2484 }) ];\n'
20130515 '    Lino.users.MySettings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detailPanel = Ext.extend(Lino.users.MySettings.DetailFormPanel,{\n'
20130515 '  empty_title: "Utilisateurs",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "update_reminders", "menu_item_text": "Update Reminders", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'update_reminders\',\'GET\'), "text": "Update Reminders", "overflowText": "Update Reminders", "auto_save": true } ],\n'
20130515 '  ls_url: "/users/MySettings",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.users.MySettings.detail;\n'
20130515 '    this.ls_insert_handler = Lino.users.Users.insert;\n'
20130515 '    Lino.users.MySettings.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.MySettings.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.users.MySettings.detailPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Languages\n'
20130515 'Lino.countries.Languages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Languages",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Langues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "id" }, { "name": "iso2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 12,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2486 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2487 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2488 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2489 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "allowBlank": false, "maxLength": 3 });\n'
20130515 '    var iso22490 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(2), "maxLength": 2 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2486 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2487 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2488 }, { "colIndex": 3, "sortable": true, "header": "id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "id", "editor": id2489 }, { "colIndex": 4, "sortable": true, "header": "iso2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso2", "editor": iso22490 } ];\n'
20130515 '    Lino.countries.Languages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insertPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Langues",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Languages.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detailPanel = Ext.extend(Lino.countries.Languages.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Langues",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Languages",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Languages.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Languages.insert;\n'
20130515 '    Lino.countries.Languages.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Languages.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Languages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Languages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.Countries\n'
20130515 'Lino.countries.Countries.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/Countries",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pays",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "isocode" }, { "name": "short_code" }, { "name": "iso3" }, { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 11,\n'
20130515 '  ls_id_property : "isocode",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2492 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr2493 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl2494 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var isocode2495 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "allowBlank": false, "maxLength": 4 });\n'
20130515 '    var short_code2496 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var iso32497 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    var inscode2498 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(3), "maxLength": 3 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2492 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr2493 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl2494 }, { "colIndex": 3, "sortable": true, "header": "ISO code", "editable": true, "tooltip": "        The two-letter code for this country as defined by ISO 3166-1. \\n        For countries that no longer exist it may be a 4-letter code.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "isocode", "editor": isocode2495 }, { "colIndex": 4, "sortable": true, "header": "Short code", "editable": true, "tooltip": "A short abbreviation for regional usage. Obsolete.", "filter": { "type": "string" }, "width": Lino.chars2width(6), "dataIndex": "short_code", "editor": short_code2496 }, { "colIndex": 5, "sortable": true, "header": "ISO-3 code", "editable": true, "tooltip": "The three-letter code for this country as defined by ISO 3166-1.", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "iso3", "editor": iso32497 }, { "colIndex": 6, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this country used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(5), "dataIndex": "inscode", "editor": inscode2498 } ];\n'
20130515 '    Lino.countries.Countries.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insertPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Pays",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.Countries.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detailPanel = Ext.extend(Lino.countries.Countries.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Pays",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/Countries",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.Countries.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.Countries.insert;\n'
20130515 '    Lino.countries.Countries.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.Countries.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.Countries.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.Countries.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.PropChoices\n'
20130515 'Lino.properties.PropChoices.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/PropChoices",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "type" }, \'typeHidden\', { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2500 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var type2501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/properties/PropChoices/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type de propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value2502 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text2503 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr2504 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl2505 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2500, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Type de propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2501 }, { "colIndex": 2, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value2502 }, { "colIndex": 3, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text2503 }, { "colIndex": 4, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr2504 }, { "colIndex": 5, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl2505 } ];\n'
20130515 '    Lino.properties.PropChoices.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.PropChoices.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.PropChoices.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Partners\n'
20130515 'Lino.contacts.Partners.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Partners",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 29,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2507 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2508 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2509 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2510 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2511 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2512 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2514 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12515 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2517 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2518 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2519 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22520 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2521 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2522 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2523 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2524 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2525 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2526 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2527 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2528 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Partners/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12529 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var id2531 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2512.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2512.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2513.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2511.on('change',Lino.chooser_handler(city2512,'country'));\n"
20130515 "      region2513.on('change',Lino.chooser_handler(city2512,'region'));\n"
20130515 "      country2511.on('change',Lino.chooser_handler(region2513,'country'));\n"
20130515 '      Lino.contacts.Partners.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2507 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2508 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2511, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2512 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2513 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2514 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12515 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2516 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2517 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2518 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2519 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22520 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2521 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2522 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2523 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2524 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2525 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2526, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2528 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12529 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22530 }, new Lino.NullNumberColumn({ "colIndex": 24, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2531, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Partners.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Partners.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Partners",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Partners.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Partners.insert;\n'
20130515 '    Lino.contacts.Partners.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Partners.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Partners.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Partners.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Companies\n'
20130515 'Lino.contacts.Companies.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Companies",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 20,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2533 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2534 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2535 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2536 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2538 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2539 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2540 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12541 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2542 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2544 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2545 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22546 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2547 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2548 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2549 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2550 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2551 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2552 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2553 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12555 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22556 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2557 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2558 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2560 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Companies/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2561 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2538.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2538.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2539.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2537.on('change',Lino.chooser_handler(city2538,'country'));\n"
20130515 "      region2539.on('change',Lino.chooser_handler(city2538,'region'));\n"
20130515 "      country2537.on('change',Lino.chooser_handler(region2539,'country'));\n"
20130515 '      Lino.contacts.Companies.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2533 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2534 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2537, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2538 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2539 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2540 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12541 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2542 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2543 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2544 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2545 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22546 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2547 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2548 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2549 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2550 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2551 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2552, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2554 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12555 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22556 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2557 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2558 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2559 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2560 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2561, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.Companies.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisations",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Companies.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detailPanel = Ext.extend(Lino.contacts.Companies.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisations",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Companies",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Companies.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Companies.insert;\n'
20130515 '    Lino.contacts.Companies.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Companies.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Companies.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Companies.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByState\n'
20130515 'Lino.postings.PostingsByState.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByState",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2563 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2564 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2565 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2566 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2567 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2568 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2569 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByState/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2571 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2572 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2569.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2568.on('change',Lino.chooser_handler(owner_id2569,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByState.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2563, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2564 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2565, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2567, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2568 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2569 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2570, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2571 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByState.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByState.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByState.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByState.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByState",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsReady\n'
20130515 'Lino.postings.PostingsReady.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsReady",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux \\u00e0 imprimer",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2574 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2575 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2576 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2577 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2578 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsReady/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2582 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2583 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2580.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2579.on('change',Lino.chooser_handler(owner_id2580,'owner_type'));\n"
20130515 '      Lino.postings.PostingsReady.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2574, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2575 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2576, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2578, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2579 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2580 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2581, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2582 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsReady.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsReady.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsReady.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsReady.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsReady",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsPrinted\n'
20130515 'Lino.postings.PostingsPrinted.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsPrinted",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux imprim\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2585 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2588 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2589 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2590 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2592 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsPrinted/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2593 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2594 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2591.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2590.on('change',Lino.chooser_handler(owner_id2591,'owner_type'));\n"
20130515 '      Lino.postings.PostingsPrinted.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2585, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2586 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2587, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2589, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2590 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2591 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2592, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2593 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsPrinted.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsPrinted.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsPrinted.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsPrinted.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsPrinted",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsSent\n'
20130515 'Lino.postings.PostingsSent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsSent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux envoy\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "partner" }, \'partnerHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date2596 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var user2597 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var partner2598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var workflow_buttons_disp2599 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2600 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project2603 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsSent/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state2604 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var owner_disp2605 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2602.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2601.on('change',Lino.chooser_handler(owner_id2602,'owner_type'));\n"
20130515 '      Lino.postings.PostingsSent.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date2596, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2597 }, { "colIndex": 2, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner2598, "dataIndex": "partner" }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2600, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type2601 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id2602 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2603, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state2604 }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsSent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsSent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsSent.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsSent.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsSent",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEvents\n'
20130515 'Lino.cal.MyEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "calendar" }, \'calendarHidden\', { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2607 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2608 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var calendar2609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var project2610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2611 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2612 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2613 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2616 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2617 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2618 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2619 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2620 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2621 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class2623 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2624 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2625 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2626 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2629 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2631 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2614.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2621.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2613.on('change',Lino.chooser_handler(owner_id2614,'owner_type'));\n"
20130515 '      Lino.cal.MyEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2607, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2608 }, { "colIndex": 2, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2609 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2610, "dataIndex": "project" }, { "colIndex": 4, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2611 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2612, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2613 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2614 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2615 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2619 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2620 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2621, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2622 }, { "colIndex": 16, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2623 }, new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2624 }), new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 19, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 20, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2627 }, { "colIndex": 21, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2628 }, { "colIndex": 22, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2629 }, { "colIndex": 23, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2630 }, { "width": Lino.chars2width(11), "colIndex": 24, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEvents.insert;\n'
20130515 '    Lino.cal.MyEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyUnclearEvents\n'
20130515 'Lino.cal.MyUnclearEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyUnclearEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2633 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2634 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2635 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2636 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2637 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2638 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2641 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2642 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2643 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2644 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2645 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2646 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2647 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2648 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2650 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2651 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2652 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2653 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2656 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyUnclearEvents/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2658 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2640.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2647.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2639.on('change',Lino.chooser_handler(owner_id2640,'owner_type'));\n"
20130515 '      Lino.cal.MyUnclearEvents.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2633, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2634 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2635, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2636 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2638, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2639 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2640 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2641 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2645 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2646 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2647, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2648 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2649 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2650 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2651 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2654 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2655 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2656 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2657 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyUnclearEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyUnclearEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyUnclearEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous \\u00e0 clarifier",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyUnclearEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyUnclearEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyUnclearEvents.insert;\n'
20130515 '    Lino.cal.MyUnclearEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyUnclearEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyUnclearEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyUnclearEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyUnclearEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsAssignedToMe\n'
20130515 'Lino.cal.EventsAssignedToMe.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsAssignedToMe",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "project" }, \'projectHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time2661 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var project2662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var summary2663 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2669 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2670 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time2671 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date2672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2674 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2675 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2676 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2677 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2678 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2679 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2680 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2681 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2683 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2684 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsAssignedToMe/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2685 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2674.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2666.on('change',Lino.chooser_handler(owner_id2667,'owner_type'));\n"
20130515 '      Lino.cal.EventsAssignedToMe.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2660, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2661 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2662, "dataIndex": "project" }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2663 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2666 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2667 }, { "colIndex": 8, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2668 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 11, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2672 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2673 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2674, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2675 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2676 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2677 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2678 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2681 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2682 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2683 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2684 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsAssignedToMe.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsAssignedToMe.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsAssignedToMe",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsAssignedToMe",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsAssignedToMe.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsAssignedToMe.insert;\n'
20130515 '    Lino.cal.EventsAssignedToMe.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsAssignedToMe.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsAssignedToMe.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsAssignedToMe.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyEventsToday\n'
20130515 'Lino.cal.MyEventsToday.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyEventsToday",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes rendez-vous aujourd\'hui",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "build_time" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_time2687 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary2688 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp2689 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id2690 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type2691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id2692 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user2693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var created2694 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project2696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var build_time2697 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_date2698 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date2699 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time2700 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description2701 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid2702 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar2703 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class2704 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence2705 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type2706 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent2707 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place2708 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority2709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state2710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to2711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyEventsToday/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp2712 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id2692.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description2701.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type2691.on('change',Lino.chooser_handler(owner_id2692,'owner_type'));\n"
20130515 '      Lino.cal.MyEventsToday.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(9), "colIndex": 0, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time2687 }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary2688 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2690, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type2691 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id2692 }, { "colIndex": 6, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2693 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project2696, "dataIndex": "project" }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date2698, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date2699 }, { "colIndex": 13, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time2700 }, { "colIndex": 14, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2701, "dataIndex": "description" }, { "colIndex": 15, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid2702 }, { "colIndex": 16, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2703 }, { "colIndex": 17, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class2704 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence2705 }), new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 21, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2708 }, { "colIndex": 22, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority2709 }, { "colIndex": 23, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state2710 }, { "colIndex": 24, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to2711 }, { "width": Lino.chars2width(11), "colIndex": 25, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.MyEventsToday.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes rendez-vous aujourd\'hui",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.MyEventsToday.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyEventsToday",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes rendez-vous aujourd\'hui",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/MyEventsToday",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyEventsToday.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyEventsToday.insert;\n'
20130515 '    Lino.cal.MyEventsToday.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyEventsToday.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyEventsToday.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyEventsToday.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.MyEventsToday.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelCalendars\n'
20130515 'Lino.cal.PanelCalendars.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelCalendars",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Calendriers",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "babel_name" }, { "name": "description" }, { "type": "int", "name": "color" }, { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 35,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2714 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var babel_name_disp2715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var description2716 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var color2717 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var is_hidden_disp2718 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2716.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2714, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "babel_name", "header": "babel_name", "editable": false }, { "colIndex": 2, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2716, "dataIndex": "description" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Couleur", "dataIndex": "color", "width": Lino.chars2width(6), "editor": color2717 }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "is_hidden", "header": "Invisible", "editable": false } ];\n'
20130515 '    Lino.cal.PanelCalendars.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insertPanel = Ext.extend(Lino.cal.PanelCalendars.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Calendriers",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detailPanel = Ext.extend(Lino.cal.PanelCalendars.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Calendriers",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelCalendars",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelCalendars.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelCalendars.insert;\n'
20130515 '    Lino.cal.PanelCalendars.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelCalendars.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelCalendars.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelCalendars.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.PanelEvents\n'
20130515 'Lino.cal.PanelEvents.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/PanelEvents",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "start_dt" }, { "name": "end_dt" }, { "name": "summary" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "place" }, \'placeHidden\', { "name": "calendar" }, \'calendarHidden\', { "name": "url" }, { "type": "boolean", "name": "all_day" }, { "name": "reminder" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2720 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var start_dt2721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_dt2722 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var summary2723 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var description2724 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var user2725 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var place2726 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var calendar2727 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/PanelEvents/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var url_disp2728 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var all_day2729 = new Ext.form.Checkbox({ "disabled": true });\n'
20130515 '    var reminder_disp2730 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2724.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2720, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": false, "dataIndex": "start_dt", "header": "D\\u00e9but", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": false, "dataIndex": "end_dt", "header": "Fin", "editable": false }, { "width": Lino.chars2width(5), "colIndex": 3, "sortable": false, "dataIndex": "summary", "header": "R\\u00e9sum\\u00e9", "editable": false }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description2724, "dataIndex": "description" }, { "colIndex": 5, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2725 }, { "colIndex": 6, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place2726 }, { "colIndex": 7, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar2727 }, { "width": Lino.chars2width(31), "colIndex": 8, "sortable": false, "dataIndex": "url", "header": "Link URL", "editable": false }, { "header": "journ\\u00e9e enti\\u00e8re", "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "width": Lino.chars2width(11), "editable": false, "dataIndex": "all_day" }, { "width": Lino.chars2width(31), "colIndex": 10, "sortable": false, "dataIndex": "reminder", "header": "Rappel", "editable": false } ];\n'
20130515 '    Lino.cal.PanelEvents.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.PanelEvents.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.PanelEvents.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/PanelEvents",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/PanelEvents",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.PanelEvents.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.PanelEvents.insert;\n'
20130515 '    Lino.cal.PanelEvents.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.PanelEvents.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.PanelEvents.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.PanelEvents.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.PanelEvents.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.Households\n'
20130515 'Lino.households.Households.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/Households",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 32,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2732 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2733 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2734 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2735 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2736 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2737 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2738 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2739 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12740 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2741 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2743 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2744 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22745 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2746 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2747 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2749 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2750 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2751 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2752 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12754 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2756 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2757 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/Households/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de m\\u00e9nage..." });\n'
20130515 '    var id2758 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2737.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2737.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2738.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2736.on('change',Lino.chooser_handler(city2737,'country'));\n"
20130515 "      region2738.on('change',Lino.chooser_handler(city2737,'region'));\n"
20130515 "      country2736.on('change',Lino.chooser_handler(region2738,'country'));\n"
20130515 '      Lino.households.Households.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2732 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2733 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2736, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2737 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2738 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2739 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12740 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2741 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2742 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2743 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2744 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22745 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2746 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2747 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2748 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2749 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2750 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2751, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2753 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12754 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22755 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2756 }, { "colIndex": 25, "sortable": true, "header": "Type de m\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2757 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2758, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.Households.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.Households.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.Households.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/Households",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.Households.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.Households.insert;\n'
20130515 '    Lino.households.Households.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.Households.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.Households.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.Households.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.Persons\n'
20130515 'Lino.contacts.Persons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/Persons",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "address_column" }, { "name": "email" }, { "name": "phone" }, { "name": "gsm" }, { "type": "int", "name": "id" }, { "name": "language" }, \'languageHidden\', { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "url" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 39,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2760 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_column_disp2761 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2762 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2763 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2764 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2765 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var language2766 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var created2767 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2768 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2769 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2770 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2771 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2772 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2773 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12774 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2776 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2777 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2778 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22779 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var url2780 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2781 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2782 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2783 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/Persons/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12785 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22786 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2787 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2788 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2789 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2790 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2791 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2770.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2770.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2771.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2769.on('change',Lino.chooser_handler(city2770,'country'));\n"
20130515 "      region2771.on('change',Lino.chooser_handler(city2770,'region'));\n"
20130515 "      country2769.on('change',Lino.chooser_handler(region2771,'country'));\n"
20130515 '      Lino.contacts.Persons.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "colIndex": 2, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2762 }, { "colIndex": 3, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2763 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2764 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2765, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2766 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2769, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2770 }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2771 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2772 }, { "colIndex": 13, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2773 }, { "colIndex": 14, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12774 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2775 }, { "colIndex": 16, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2776 }, { "colIndex": 17, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2777 }, { "colIndex": 18, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2778 }, { "colIndex": 19, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22779 }, { "colIndex": 20, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2780 }, { "colIndex": 21, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2781 }, { "colIndex": 22, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2782, "dataIndex": "remarks" }, { "colIndex": 23, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 24, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2784 }, { "colIndex": 25, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12785 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22786 }, { "colIndex": 27, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2787 }, { "colIndex": 28, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2788 }, { "colIndex": 29, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2789 }, { "colIndex": 30, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2790 }, { "colIndex": 31, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2791 } ];\n'
20130515 '    Lino.contacts.Persons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insertPanel = Ext.extend(Lino.contacts.Persons.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Personnes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.Persons.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detailPanel = Ext.extend(Lino.contacts.Persons.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Personnes",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/Persons",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.Persons.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.Persons.insert;\n'
20130515 '    Lino.contacts.Persons.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.Persons.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.Persons.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.Persons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.contacts.Persons.ParamsPanel({});\n'
20130515 '  return new Lino.contacts.Persons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.Clients\n'
20130515 'Lino.pcsw.Clients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/Clients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "client_state" }, \'client_stateHidden\', { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2793 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var client_state2794 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var national_id2795 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2797 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2798 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2800 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2801 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12802 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/Clients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2804 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state2794 }, { "colIndex": 2, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2795 }, { "colIndex": 3, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2796 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 5, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 6, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2799 }, { "colIndex": 7, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2800 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2801, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 9, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12802 }, { "colIndex": 10, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2803 }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2804 } ];\n'
20130515 '    Lino.pcsw.Clients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.Clients.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.Clients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/Clients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/Clients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.Clients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.Clients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.Clients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.Clients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.Clients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.Clients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.IntegClients\n'
20130515 'Lino.pcsw.IntegClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/IntegClients",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "national_id" }, { "name": "gsm" }, { "name": "address_column" }, { "name": "age" }, { "name": "email" }, { "name": "phone" }, { "type": "int", "name": "id" }, { "name": "bank_account1" }, { "name": "aid_type" }, \'aid_typeHidden\', { "name": "language" }, \'languageHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp2806 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var applies_from2807 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var applies_until2808 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var national_id2809 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2810 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var address_column_disp2811 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var age_disp2812 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var email2813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var phone2814 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2815 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var bank_account12816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var aid_type2817 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/IntegClients/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var language2818 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat d\\u00e9bute", "dataIndex": "applies_from", "width": Lino.chars2width(9) }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Contrat se termine", "dataIndex": "applies_until", "width": Lino.chars2width(9) }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "national_id", "editor": national_id2809 }, { "colIndex": 4, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "gsm", "editor": gsm2810 }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 6, "sortable": false, "dataIndex": "age", "header": "\\u00e2ge", "editable": false }, { "colIndex": 7, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2813 }, { "colIndex": 8, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "phone", "editor": phone2814 }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2815, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12816 }, { "colIndex": 11, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type2817 }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "language", "editor": language2818 } ];\n'
20130515 '    Lino.pcsw.IntegClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.IntegClients.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/IntegClients",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/IntegClients",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.IntegClients.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.Clients.insert;\n'
20130515 '    Lino.pcsw.IntegClients.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.IntegClients.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.IntegClients.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.IntegClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.IntegClients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.IntegClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.OverlappingContracts\n'
20130515 'Lino.pcsw.OverlappingContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/OverlappingContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contrats chevauchants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 21,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2820 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created2821 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2822 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2823 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2825 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2826 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name2827 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr12828 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2829 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2830 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2831 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2832 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22833 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2834 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email2835 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url2836 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2839 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2840 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2841 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2842 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/OverlappingContracts/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12843 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22844 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name2845 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name2846 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender2847 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date2848 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title2849 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2824.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2824.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2825.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2823.on('change',Lino.chooser_handler(city2824,'country'));\n"
20130515 "      region2825.on('change',Lino.chooser_handler(city2824,'region'));\n"
20130515 "      country2823.on('change',Lino.chooser_handler(region2825,'country'));\n"
20130515 '      Lino.pcsw.OverlappingContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2820, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 3, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2823, "dataIndex": "country" }, { "colIndex": 4, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2824 }, { "colIndex": 5, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2825 }, { "colIndex": 6, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2826 }, { "colIndex": 7, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2827 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12828 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2829 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2830 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2831 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2832 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22833 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2834 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2835 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2836 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2837 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2838 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2839 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2840, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2842 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12843 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22844 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name2845 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name2846 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender2847 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date2848 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2849 } ];\n'
20130515 '    Lino.pcsw.OverlappingContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.OverlappingContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.OverlappingContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.Contracts\n'
20130515 'Lino.isip.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2851 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2852 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2853 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2854 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2855 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2856 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2857 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2858 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2859 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2860 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12861 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22862 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2863 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2864 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2865 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2866 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2867 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2868 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2869 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2870 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2871 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2872 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2873 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2874 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2875 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2859.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2870.refresh();\n'
20130515 '      goals2871.refresh();\n'
20130515 '      duties_asd2872.refresh();\n'
20130515 '      duties_dsbe2873.refresh();\n'
20130515 '      duties_company2874.refresh();\n'
20130515 '      duties_person2875.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2858.on('change',Lino.chooser_handler(contact_person2859,'company'));\n"
20130515 '      Lino.isip.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2851, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2852, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2853, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2854, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2855 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2856 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2858, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2859, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2860 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12861, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22862, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2863 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2864 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2865 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2866 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2867 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2868 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2869 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2870, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2871, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2872, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2873, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2874, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2875, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.Contracts.insert;\n'
20130515 '    Lino.isip.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.MyContracts\n'
20130515 'Lino.isip.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 38,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2877 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from2878 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2879 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2880 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user2881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time2883 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2884 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2885 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2886 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12887 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22888 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2889 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2890 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2891 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2893 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2895 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages2896 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals2897 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd2898 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe2899 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company2900 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person2901 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2885.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages2896.refresh();\n'
20130515 '      goals2897.refresh();\n'
20130515 '      duties_asd2898.refresh();\n'
20130515 '      duties_dsbe2899.refresh();\n'
20130515 '      duties_company2900.refresh();\n'
20130515 '      duties_person2901.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2884.on('change',Lino.chooser_handler(contact_person2885,'company'));\n"
20130515 '      Lino.isip.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2877, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2878, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2879, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2880, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2881 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2882 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2884, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2885, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2886 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12887, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22888, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2889 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2890 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2891 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2892 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2893 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2894 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2895 }, { "colIndex": 19, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages2896, "dataIndex": "stages" }, { "colIndex": 20, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals2897, "dataIndex": "goals" }, { "colIndex": 21, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd2898, "dataIndex": "duties_asd" }, { "colIndex": 22, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe2899, "dataIndex": "duties_dsbe" }, { "colIndex": 23, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company2900, "dataIndex": "duties_company" }, { "colIndex": 24, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person2901, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.MyContracts.insert;\n'
20130515 '    Lino.isip.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobProviders\n'
20130515 'Lino.jobs.JobProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Employants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 72,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name2903 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email2904 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created2905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified2906 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country2907 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city2908 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region2909 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code2910 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr12911 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix2912 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street2913 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no2914 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box2915 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr22916 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language2917 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url2918 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone2919 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm2920 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax2921 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks2922 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete2923 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity2924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account12925 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account22926 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix2927 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id2928 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type2929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type2930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id2931 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city2908.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city2908.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region2909.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country2907.on('change',Lino.chooser_handler(city2908,'country'));\n"
20130515 "      region2909.on('change',Lino.chooser_handler(city2908,'region'));\n"
20130515 "      country2907.on('change',Lino.chooser_handler(region2909,'country'));\n"
20130515 '      Lino.jobs.JobProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2903 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email2904 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country2907, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city2908 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region2909 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code2910 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr12911 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix2912 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street2913 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no2914 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box2915 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr22916 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2917 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url2918 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone2919 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm2920 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax2921 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2922, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity2924 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account12925 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account22926 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix2927 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id2928 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2929 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type2930 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2931, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Employants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detailPanel = Ext.extend(Lino.jobs.JobProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Employants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobProviders.insert;\n'
20130515 '    Lino.jobs.JobProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Contracts\n'
20130515 'Lino.jobs.Contracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Contracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2933 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job2934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from2935 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until2936 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user2937 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type2938 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time2939 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2940 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2941 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2942 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12943 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client2945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language2946 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided2947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2948 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2950 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2951 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2952 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration2953 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2956 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2957 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Contracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2958 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2959 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2960 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2941.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2959.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2940.on('change',Lino.chooser_handler(contact_person2941,'company'));\n"
20130515 '      Lino.jobs.Contracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2933, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2934, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2935, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2936, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2937 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2938 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2940, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2941, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2942 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12943, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22944, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2945, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2946 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2947 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2948 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2949 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2950 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2951 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2952 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2953 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2954 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2955 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2956 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2957 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2958 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2959, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2960, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Contracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Contracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/Contracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Contracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Contracts.insert;\n'
20130515 '    Lino.jobs.Contracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Contracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Contracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Contracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.Contracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.MyContracts\n'
20130515 'Lino.jobs.MyContracts.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/MyContracts",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from2962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client2963 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var id2965 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user2966 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var build_time2967 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company2968 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person2969 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role2970 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer12971 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer22972 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language2973 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until2974 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided2975 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued2976 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd2977 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy2978 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending2979 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended2980 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type2981 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var duration2982 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime2983 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule2984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate2985 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate2986 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/MyContracts/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person2987 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities2988 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark2989 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person2969.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities2988.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company2968.on('change',Lino.chooser_handler(contact_person2969,'company'));\n"
20130515 '      Lino.jobs.MyContracts.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from2962, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client2963, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2964, "dataIndex": "job" }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2965, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user2966 }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company2968, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person2969, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role2970 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer12971, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer22972, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language2973 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until2974, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided2975 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued2976 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd2977 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy2978 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending2979 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended2980 }, { "colIndex": 19, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type2981 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration2982 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime2983 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule2984 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate2985 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate2986 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person2987 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities2988, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2989, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.MyContracts.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.MyContracts.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/MyContracts",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.MyContracts.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.MyContracts.insert;\n'
20130515 '    Lino.jobs.MyContracts.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.MyContracts.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.MyContracts.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.MyContracts.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.MyContracts.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Offers\n'
20130515 'Lino.jobs.Offers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Offers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres d\'emploi",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "type": "date", "name": "selection_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "selection_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 66,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2991 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2992 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var name2994 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var provider2995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Offers/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var selection_from2996 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var selection_until2997 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_date2998 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark2999 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2993.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2992.on('change',Lino.chooser_handler(function2993,'sector'));\n"
20130515 '      Lino.jobs.Offers.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2991, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2992 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2993 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name2994 }, { "colIndex": 4, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider2995, "dataIndex": "provider" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de s\\u00e9lection", "editor": selection_from2996, "width": Lino.chars2width(9), "dataIndex": "selection_from" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin de s\\u00e9lection", "editor": selection_until2997, "width": Lino.chars2width(9), "dataIndex": "selection_until" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2998, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2999, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.Offers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insertPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres d\'emploi",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Offers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detailPanel = Ext.extend(Lino.jobs.Offers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres d\'emploi",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Offers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Offers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Offers.insert;\n'
20130515 '    Lino.jobs.Offers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Offers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Offers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Offers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.Jobs\n'
20130515 'Lino.jobs.Jobs.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/Jobs",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3001 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3002 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3003 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3004 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type3005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type3006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/Jobs/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3007 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3008 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3009 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3010 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3004.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3003.on('change',Lino.chooser_handler(function3004,'sector'));\n"
20130515 '      Lino.jobs.Jobs.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3001 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3002, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3003 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3004 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3005 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3006 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3007 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3008 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3009, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3010, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.Jobs.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.Jobs.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/Jobs",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.Jobs.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.Jobs.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.Jobs.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.Jobs.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.Jobs.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsSearch\n'
20130515 'Lino.jobs.ContractsSearch.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsSearch",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Recherche contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "client" }, \'clientHidden\', { "name": "client__city" }, \'client__cityHidden\', { "name": "client__national_id" }, { "name": "client__gender" }, \'client__genderHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 49,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3012 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3013 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3014 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var job3015 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var client3016 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var client__city3017 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var client__national_id3018 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var client__gender3019 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(1), "maxLength": 1 });\n'
20130515 '    var user3020 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3021 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3022 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3023 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3024 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3025 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13026 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23027 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3028 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3029 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3030 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3031 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3032 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3033 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3034 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3035 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3036 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3037 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3038 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3039 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsSearch/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3040 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3041 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3042 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3024.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3041.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3023.on('change',Lino.chooser_handler(contact_person3024,'company'));\n"
20130515 '      Lino.jobs.ContractsSearch.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3012, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3013, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3014, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3015, "dataIndex": "job" }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3016, "dataIndex": "client" }, { "filter": { "type": "string" }, "width": Lino.chars2width(21), "colIndex": 5, "sortable": true, "dataIndex": "client__city", "header": "Place", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "client__national_id", "header": "NISS", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(5), "colIndex": 7, "sortable": true, "dataIndex": "client__gender", "header": "Sexe", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3020 }, { "colIndex": 9, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3021 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3023, "dataIndex": "company" }, { "colIndex": 12, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3024, "dataIndex": "contact_person" }, { "colIndex": 13, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3025 }, { "colIndex": 14, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13026, "dataIndex": "signer1" }, { "colIndex": 15, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23027, "dataIndex": "signer2" }, { "colIndex": 16, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3028 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3029 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3030 }, { "colIndex": 19, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3031 }, { "colIndex": 20, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3032 }, { "colIndex": 21, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3033 }, { "colIndex": 22, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3034 }, { "colIndex": 23, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3035 }, { "colIndex": 24, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3036 }, { "colIndex": 25, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3037 }, new Lino.NullNumberColumn({ "colIndex": 26, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3038 }), { "colIndex": 27, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3039 }, { "colIndex": 28, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3040 }, { "colIndex": 29, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3041, "dataIndex": "responsibilities" }, { "colIndex": 30, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3042, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsSearch.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Recherche contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Recherche contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsSearch",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsSearch.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsSearch.insert;\n'
20130515 '    Lino.jobs.ContractsSearch.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsSearch.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsSearch.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsSearch.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsSearch.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseProviders\n'
20130515 'Lino.courses.CourseProviders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseProviders",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Organisateurs de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "name": "vat_id" }, { "name": "type" }, \'typeHidden\', { "name": "client_contact_type" }, \'client_contact_typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 35,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 77,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 37,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3044 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3045 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3046 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3047 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3048 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3049 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3050 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3051 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13052 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3053 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3054 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3055 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3056 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23057 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3058 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3059 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3060 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3061 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3062 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3063 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3064 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13066 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23067 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3068 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var vat_id3069 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type3070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'organisation..." });\n'
20130515 '    var client_contact_type3071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseProviders/client_contact_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var id3072 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3049.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3049.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3050.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3048.on('change',Lino.chooser_handler(city3049,'country'));\n"
20130515 "      region3050.on('change',Lino.chooser_handler(city3049,'region'));\n"
20130515 "      country3048.on('change',Lino.chooser_handler(region3050,'country'));\n"
20130515 '      Lino.courses.CourseProviders.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3044 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3045 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3048, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3049 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3050 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3051 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13052 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3053 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3054 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3055 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3056 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23057 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3058 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3059 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3060 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3061 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3062 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3063, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3065 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13066 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23067 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3068 }, { "colIndex": 25, "sortable": true, "header": "N\\u00b0 de TVA", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "vat_id", "editor": vat_id3069 }, { "colIndex": 26, "sortable": true, "header": "Type de soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3070 }, { "colIndex": 27, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "client_contact_type", "editor": client_contact_type3071 }, new Lino.NullNumberColumn({ "colIndex": 28, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3072, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseProviders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insertPanel = Ext.extend(Lino.contacts.Companies.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Organisateurs de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseProviders.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detailPanel = Ext.extend(Lino.courses.CourseProviders.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Organisateurs de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseProviders",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseProviders.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseProviders.insert;\n'
20130515 '    Lino.courses.CourseProviders.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseProviders.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseProviders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseProviders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffers\n'
20130515 'Lino.courses.CourseOffers.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffers",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3075 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content3076 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var provider3077 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffers/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3078 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3078.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3074, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3075 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3076 }, { "colIndex": 3, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3077, "dataIndex": "provider" }, { "colIndex": 4, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3078, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffers.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffers.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffers",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffers.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffers.insert;\n'
20130515 '    Lino.courses.CourseOffers.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffers.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffers.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffers.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.PendingCourseRequests\n'
20130515 'Lino.courses.PendingCourseRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/PendingCourseRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demandes de cours ouvertes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "person" }, \'personHidden\', { "type": "int", "name": "age" }, { "name": "address" }, { "name": "person__gsm" }, { "name": "person__phone" }, { "name": "person__coaches" }, { "name": "content" }, \'contentHidden\', { "type": "boolean", "name": "urgent" }, { "name": "remark" }, { "type": "int", "name": "a16" }, { "type": "int", "name": "a25" }, { "type": "int", "name": "a31" }, { "type": "int", "name": "a41" }, { "type": "int", "name": "a51" }, { "type": "int", "name": "a61" }, { "type": "int", "name": "ax" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 20,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 22,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted3080 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp3081 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person3082 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var age3083 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var address_disp3084 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var person__gsm3085 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__phone3086 = new Ext.form.TextField({ "disabled": true, "maxLength": 200 });\n'
20130515 '    var person__coaches_disp3087 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content3088 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/PendingCourseRequests/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var urgent3089 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var remark3090 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var a163091 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a253092 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a313093 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a413094 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a513095 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var a613096 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var ax3097 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3080 }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3082, "dataIndex": "person" }, new Lino.NullNumberColumn({ "header": "\\u00e2ge", "colIndex": 3, "sortable": false, "dataIndex": "age", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "person__gsm", "header": "GSM", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "person__phone", "header": "T\\u00e9l\\u00e9phone", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 7, "sortable": false, "dataIndex": "person__coaches", "header": "Accompagnants", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3088 }, { "colIndex": 9, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 10, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3090, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "header": "16-24", "colIndex": 11, "sortable": false, "dataIndex": "a16", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "25-30", "colIndex": 12, "sortable": false, "dataIndex": "a25", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "31-40", "colIndex": 13, "sortable": false, "dataIndex": "a31", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "41-50", "colIndex": 14, "sortable": false, "dataIndex": "a41", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "51-60", "colIndex": 15, "sortable": false, "dataIndex": "a51", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": ">61", "colIndex": 16, "sortable": false, "dataIndex": "a61", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "age inconnu", "colIndex": 17, "sortable": false, "dataIndex": "ax", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.courses.PendingCourseRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demandes de cours ouvertes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.PendingCourseRequests.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/PendingCourseRequests",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demandes de cours ouvertes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/PendingCourseRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.PendingCourseRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.PendingCourseRequests.insert;\n'
20130515 '    Lino.courses.PendingCourseRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.PendingCourseRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.PendingCourseRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.PendingCourseRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.courses.PendingCourseRequests.ParamsPanel({});\n'
20130515 '  return new Lino.courses.PendingCourseRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonRequests\n'
20130515 'Lino.cbss.IdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 25,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3099 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3100 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3101 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3102 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3103 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3104 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3105 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3106 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3107 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3108 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3109 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3110 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3111 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3112 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3113 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3114 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3115 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3116 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3117 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3118 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3099, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3100 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3101, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3110 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3111 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3112 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3113 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3114 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3115 }, { "colIndex": 17, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3116 }, { "colIndex": 18, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3117 }, new Lino.NullNumberColumn({ "colIndex": 19, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3118 }) ];\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.IdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequests\n'
20130515 'Lino.cbss.ManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 31,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3120 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3121 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3122 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3123 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3124 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3125 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3126 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3127 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3128 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3129 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3130 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3131 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3132 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3133 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3134 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3135 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3136 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3137 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3138 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3139 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3140 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3141 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3142 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3138.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3137.on('change',Lino.chooser_handler(purpose3138,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3120, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3121 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3122, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 4, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 5, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 6, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 7, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 11, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3131 }, { "colIndex": 12, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3132 }, { "colIndex": 13, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3133 }, { "colIndex": 14, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3134 }, { "colIndex": 15, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3135 }, { "colIndex": 16, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3136 }, { "colIndex": 17, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 18, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3138 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3139, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 20, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3140, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 21, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3141 }, { "colIndex": 22, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3142 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3144 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3145 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3146 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3147 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3148 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3149 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3150 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3151 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3152 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3153 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3144, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3145 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3146, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3147 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3148 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class sessions.SessionTable\n'
20130515 'Lino.sessions.SessionTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/sessions/SessionTable",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "sessions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "session_key" }, { "name": "session_data" }, { "name": "expire_date" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 4,\n'
20130515 '  ls_id_property : "session_key",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var session_key3155 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 40 });\n'
20130515 '    var session_data3156 = new Ext.form.TextArea({ "selectOnFocus": true, "allowBlank": false, "growMax": 2000 });\n'
20130515 '    var expire_date3157 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "cl\\u00e9 de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "session_key", "editor": session_key3155 }, { "colIndex": 1, "sortable": false, "header": "donn\\u00e9es de session", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": session_data3156, "dataIndex": "session_data" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "expire_date", "header": "date d\'expiration", "editable": true, "editor": expire_date3157 } ];\n'
20130515 '    Lino.sessions.SessionTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.sessions.SessionTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.sessions.SessionTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class ui.MyTextFieldTemplates\n'
20130515 'Lino.ui.MyTextFieldTemplates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/ui/MyTextFieldTemplates",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Text Field Templates",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "name" }, { "name": "description" }, { "name": "team" }, \'teamHidden\', { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 1,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3159 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var name3160 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var description3161 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var team3162 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/ui/MyTextFieldTemplates/team", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Team..." });\n'
20130515 '    var text3163 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Texte mod\\u00e8le" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      text3163.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3159, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3160 }, { "colIndex": 2, "sortable": false, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3161, "dataIndex": "description" }, { "colIndex": 3, "sortable": true, "header": "Team", "editable": true, "tooltip": "If not empty, then this template is reserved to members of this team.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "team", "editor": team3162 }, { "colIndex": 4, "sortable": false, "header": "text", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": text3163, "dataIndex": "text" } ];\n'
20130515 '    Lino.ui.MyTextFieldTemplates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insertPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Text Field Templates",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detailPanel = Ext.extend(Lino.ui.MyTextFieldTemplates.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Text Field Templates",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/ui/MyTextFieldTemplates",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.MyTextFieldTemplates.detail;\n'
20130515 '    this.ls_insert_handler = Lino.ui.MyTextFieldTemplates.insert;\n'
20130515 '    Lino.ui.MyTextFieldTemplates.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.MyTextFieldTemplates.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.ui.MyTextFieldTemplates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.ui.MyTextFieldTemplates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesGiven\n'
20130515 'Lino.users.AuthoritiesGiven.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesGiven",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations accord\\u00e9es",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "authorized" }, \'authorizedHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var authorized68 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesGiven/authorized", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      authorized68.setContextValue('mk',bp['mk']);\n"
20130515 "      authorized68.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Utilisateur", "editable": true, "tooltip": "The user who gets authority to act in your name.", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "authorized", "editor": authorized68 } ];\n'
20130515 '    Lino.users.AuthoritiesGiven.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesGiven.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesGiven.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class users.AuthoritiesTaken\n'
20130515 'Lino.users.AuthoritiesTaken.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/users/AuthoritiesTaken",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Procurations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 2,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 8,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3165 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/users/AuthoritiesTaken/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3165 } ];\n'
20130515 '    Lino.users.AuthoritiesTaken.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.users.AuthoritiesTaken.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.users.AuthoritiesTaken.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCity\n'
20130515 'Lino.countries.CitiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Subdivisions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name244 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr245 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl246 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code248 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id249 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCity/country", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var inscode251 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      type247.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country250.on('change',Lino.chooser_handler(type247,'country'));\n"
20130515 '      Lino.countries.CitiesByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name244 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr245 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl246 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type247 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code248 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id249, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country250, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode251 } ];\n'
20130515 '    Lino.countries.CitiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Subdivisions",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Subdivisions",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCity.insert;\n'
20130515 '    Lino.countries.CitiesByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CitiesByCountry\n'
20130515 'Lino.countries.CitiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/countries/CitiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Places",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "type" }, \'typeHidden\', { "name": "zip_code" }, { "type": "int", "name": "id" }, { "name": "parent" }, \'parentHidden\', { "name": "inscode" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 13,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name217 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr218 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl219 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type220 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/type", "method": "GET" }) }) });\n'
20130515 '    var zip_code221 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(8), "maxLength": 8 });\n'
20130515 '    var id222 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var parent223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/countries/CitiesByCountry/parent", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var inscode224 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      type220.setContextValue('mk',bp['mk']);\n"
20130515 "      type220.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name217 }, { "colIndex": 1, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr218 }, { "colIndex": 2, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl219 }, { "colIndex": 3, "sortable": true, "header": "Place Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type220 }, { "colIndex": 4, "sortable": true, "header": "zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "zip_code", "editor": zip_code221 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id222, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Part of", "editable": true, "tooltip": "The superordinate geographic place of which this place is a part.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "parent", "editor": parent223 }, { "colIndex": 7, "sortable": true, "header": "INS code", "editable": true, "tooltip": "The official code for this place used by statbel.fgov.be", "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "inscode", "editor": inscode224 } ];\n'
20130515 '    Lino.countries.CitiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insertPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Places",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detailPanel = Ext.extend(Lino.countries.CitiesByCity.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Places",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/countries/CitiesByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.countries.CitiesByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.countries.CitiesByCountry.insert;\n'
20130515 '    Lino.countries.CitiesByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CitiesByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.countries.CitiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CitiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.ChoicesByType\n'
20130515 'Lino.properties.ChoicesByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/properties/ChoicesByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Choix de propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "text" }, { "name": "text_fr" }, { "name": "text_nl" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 17,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3167 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var text3168 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_fr3169 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var text_nl3170 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3171 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "value", "editor": value3167 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text", "editor": text3168 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_fr", "editor": text_fr3169 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "text_nl", "editor": text_nl3170 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3171, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.properties.ChoicesByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.ChoicesByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.ChoicesByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCity\n'
20130515 'Lino.contacts.PartnersByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var street272 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no273 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box274 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr2275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name276 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id278 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created279 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified280 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var region282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code283 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr1284 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix285 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email286 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url287 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone288 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax290 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks291 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete292 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity293 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCity/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account1294 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account2295 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      region282.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country281.on('change',Lino.chooser_handler(region282,'country'));\n"
20130515 '      Lino.contacts.PartnersByCity.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street272 }, { "colIndex": 1, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no273 }, { "colIndex": 2, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box274 }, { "colIndex": 3, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr2275 }, { "colIndex": 4, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name276 }, { "colIndex": 5, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language277 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id278, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 9, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country281, "dataIndex": "country" }, { "colIndex": 10, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region282 }, { "colIndex": 11, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code283 }, { "colIndex": 12, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr1284 }, { "colIndex": 13, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix285 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email286 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url287 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone288 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm289 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax290 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks291, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity293 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account1294 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account2295 } ];\n'
20130515 '    Lino.contacts.PartnersByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCity",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCity.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCity.insert;\n'
20130515 '    Lino.contacts.PartnersByCity.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCity.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.PartnersByCountry\n'
20130515 'Lino.contacts.PartnersByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/PartnersByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Partenaires",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "name" }, { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 23,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3173 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3174 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3175 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3176 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var language3177 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3178 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3179 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3180 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3181 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3182 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13183 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3184 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_box3185 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23186 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3187 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3188 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3189 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3190 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3191 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3192 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3193 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3194 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/PartnersByCountry/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13195 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23196 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city3173.setContextValue('mk',bp['mk']);\n"
20130515 "      city3173.setContextValue('mt',bp['mt']);\n"
20130515 "      city3173.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 '      var bp = this.get_base_params();\n'
20130515 "      region3181.setContextValue('mk',bp['mk']);\n"
20130515 "      region3181.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      region3181.on('change',Lino.chooser_handler(city3173,'region'));\n"
20130515 '      Lino.contacts.PartnersByCountry.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3173 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3174 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3175 }, { "colIndex": 3, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3176 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3177 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3178, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3181 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3182 }, { "colIndex": 10, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13183 }, { "colIndex": 11, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3184 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3185 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23186 }, { "colIndex": 14, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3187 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3188 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3189 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3190 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3191 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3192, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3194 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13195 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23196 } ];\n'
20130515 '    Lino.contacts.PartnersByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Partenaires",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detailPanel = Ext.extend(Lino.contacts.Partners.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Partenaires",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/contacts/PartnersByCountry",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.contacts.PartnersByCountry.detail;\n'
20130515 '    this.ls_insert_handler = Lino.contacts.PartnersByCountry.insert;\n'
20130515 '    Lino.contacts.PartnersByCountry.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.PartnersByCountry.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.contacts.PartnersByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.PartnersByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByCompany\n'
20130515 'Lino.contacts.RolesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Personnes de contact",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var type616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id617 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person615, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type616 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id617, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class contacts.RolesByPerson\n'
20130515 'Lino.contacts.RolesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/contacts/RolesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "contact pour",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, \'companyHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 22,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1065 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/company", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var type1066 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/contacts/RolesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var id1067 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1065, "dataIndex": "company" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1066 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1067, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.contacts.RolesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.contacts.RolesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.contacts.RolesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.MyPostings\n'
20130515 'Lino.postings.MyPostings.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/MyPostings",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3198 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner3199 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state3200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3201 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3202 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3203 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3204 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3205 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/MyPostings/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var owner_disp3206 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3204.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3203.on('change',Lino.chooser_handler(owner_id3204,'owner_type'));\n"
20130515 '      Lino.postings.MyPostings.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3198, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3199, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3200 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3202, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3203 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3204 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3205, "dataIndex": "project" }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.MyPostings.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.MyPostings.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.MyPostings.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.MyPostings.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/MyPostings",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByPartner\n'
20130515 'Lino.postings.PostingsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3208 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3209 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var state3210 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp3211 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3212 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3213 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3214 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user3215 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project3216 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByPartner/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3214.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3213.on('change',Lino.chooser_handler(owner_id3214,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByPartner.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date3208, "width": Lino.chars2width(9), "dataIndex": "date" }, { "width": Lino.chars2width(11), "colIndex": 1, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state3210 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3212, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3213 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3214 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3215 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3216, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByPartner.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByPartner",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByProject\n'
20130515 'Lino.postings.PostingsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1692 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner1693 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state1694 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp1695 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1696 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user1699 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1700 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1698.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1697.on('change',Lino.chooser_handler(owner_id1698,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date1692, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner1693, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state1694 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1696, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1697 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1698 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1699 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.postings.PostingsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByProject.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByProject",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientsByMail\n'
20130515 'Lino.outbox.RecipientsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/RecipientsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Recipients",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "address" }, { "name": "name" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 28,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner689 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/RecipientsByMail/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var address690 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var name691 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var type692 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.outbox.RecipientType });\n'
20130515 '    var id693 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner689, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "Addresse", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "address", "editor": address690 }, { "colIndex": 2, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "name", "editor": name691 }, { "colIndex": 3, "sortable": true, "header": "Recipient Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "type", "editor": type692 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id693, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.outbox.RecipientsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MyOutbox\n'
20130515 'Lino.outbox.MyOutbox.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MyOutbox",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Mon courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "owner" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3218 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox3219 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject3220 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3221 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3222 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3223 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/owner_id", "method": "GET" }) }) });\n'
20130515 '    var project3224 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MyOutbox/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date3225 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var owner_disp3226 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var body3227 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3219.refresh();\n'
20130515 "      owner_id3223.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body3227.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3222.on('change',Lino.chooser_handler(owner_id3223,'owner_type'));\n"
20130515 '      Lino.outbox.MyOutbox.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3220 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3221, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3222 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3223 }, { "colIndex": 6, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3224, "dataIndex": "project" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date3225 }, { "width": Lino.chars2width(11), "colIndex": 8, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3227, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MyOutbox.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mon courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mon courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MyOutbox",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MyOutbox.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MyOutbox.insert;\n'
20130515 '    Lino.outbox.MyOutbox.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MyOutbox.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MyOutbox.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MyOutbox.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByUser\n'
20130515 'Lino.outbox.MailsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "recipients" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3229 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3230 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox3231 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox3231.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3230 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByUser.insert;\n'
20130515 '    Lino.outbox.MailsByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByProject\n'
20130515 'Lino.outbox.MailsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "subject" }, { "name": "recipients" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "body" }, { "name": "sent" }, { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1680 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var subject1681 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var recipients_htmlbox1682 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var user1683 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id1684 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1685 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var body1687 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var sent1688 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var owner_disp1689 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox1682.refresh();\n'
20130515 "      owner_id1686.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body1687.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1685.on('change',Lino.chooser_handler(owner_id1686,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date1680 }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1681 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 3, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1683 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1684, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1685 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1686 }, { "colIndex": 7, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1687, "dataIndex": "body" }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 9, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.MailsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByProject.insert;\n'
20130515 '    Lino.outbox.MailsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.SentByPartner\n'
20130515 'Lino.outbox.SentByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/SentByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Courrier sortant",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "subject" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent3233 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var subject3234 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/SentByPartner/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3234 }, { "colIndex": 2, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3235 } ];\n'
20130515 '    Lino.outbox.SentByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Courrier sortant",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Courrier sortant",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/SentByPartner",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.SentByPartner.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.SentByPartner.insert;\n'
20130515 '    Lino.outbox.SentByPartner.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.SentByPartner.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.SentByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.SentByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.AttachmentsByMail\n'
20130515 'Lino.outbox.AttachmentsByMail.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/AttachmentsByMail",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Pi\\u00e8ces jointes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 29,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3237 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3238 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3239 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/AttachmentsByMail/owner_id", "method": "GET" }) }) });\n'
20130515 '    var owner_disp3240 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3239.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3238.on('change',Lino.chooser_handler(owner_id3239,'owner_type'));\n"
20130515 '      Lino.outbox.AttachmentsByMail.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3237, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3238 }, { "colIndex": 2, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3239 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.outbox.AttachmentsByMail.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.AttachmentsByMail.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.AttachmentsByMail.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.SubscriptionsByUser\n'
20130515 'Lino.cal.SubscriptionsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/SubscriptionsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Abonnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "calendar" }, \'calendarHidden\', { "type": "boolean", "name": "is_hidden" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 37,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id79 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var calendar80 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/SubscriptionsByUser/calendar", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var is_hidden81 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id79, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Calendrier", "editable": true, "tooltip": "The calendar you want to subscribe to.\\nYou can subscribe to *non-private* calendars of *other* users.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar80 }, { "colIndex": 2, "sortable": false, "xtype": "checkcolumn", "header": "cach\\u00e9", "editable": true, "tooltip": "Activer cette case pour ne pas afficher ce calendrier en ouvrant le panneau.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_hidden" } ];\n'
20130515 '    Lino.cal.SubscriptionsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.SubscriptionsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.SubscriptionsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByProject\n'
20130515 'Lino.cal.EventsByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "calendar" }, \'calendarHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "build_time" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "end_time" }, { "name": "description" }, { "name": "uid" }, { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "boolean", "name": "transparent" }, { "name": "place" }, \'placeHidden\', { "name": "priority" }, \'priorityHidden\', { "name": "state" }, \'stateHidden\', { "name": "assigned_to" }, \'assigned_toHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 34,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1630 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1631 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var user1632 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1633 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1634 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var id1635 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1636 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1638 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1639 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var build_time1640 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var end_date1641 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_time1642 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1643 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1644 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var access_class1645 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1646 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1647 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var transparent1648 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var place1649 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/place", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var priority1650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/priority", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Priorit\\u00e9..." });\n'
20130515 '    var state1651 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.EventStates });\n'
20130515 '    var assigned_to1652 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/EventsByProject/assigned_to", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp1653 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1637.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1643.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1636.on('change',Lino.chooser_handler(owner_id1637,'owner_type'));\n"
20130515 '      Lino.cal.EventsByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1630, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1631 }, { "colIndex": 2, "sortable": true, "header": "Responsible user", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1632 }, { "colIndex": 3, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1633 }, { "colIndex": 4, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1634 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1635, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "hidden": true, "editor": owner_type1636 }, { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "hidden": true, "editor": owner_id1637 }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "end_date", "hidden": true, "width": Lino.chars2width(9), "editor": end_date1641 }, { "colIndex": 12, "sortable": true, "header": "Heure de fin", "editable": true, "width": Lino.chars2width(9), "dataIndex": "end_time", "hidden": true, "editor": end_time1642 }, { "colIndex": 13, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": description1643, "dataIndex": "description" }, { "colIndex": 14, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "hidden": true, "editor": uid1644 }, { "colIndex": 15, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "hidden": true, "editor": access_class1645 }, new Lino.NullNumberColumn({ "colIndex": 16, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "hidden": true, "width": Lino.chars2width(6), "editor": sequence1646 }), new Lino.NullNumberColumn({ "colIndex": 17, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "hidden": true, "width": Lino.chars2width(6) }), { "colIndex": 18, "sortable": false, "xtype": "checkcolumn", "header": "non bloquant", "editable": true, "tooltip": "Indique que ce rendez-vous n\'emp\\u00eache pas d\'avoir d\'autres rendez-vous en m\\u00eame temps.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "transparent", "hidden": true }, { "colIndex": 19, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "place", "hidden": true, "editor": place1649 }, { "colIndex": 20, "sortable": true, "header": "Priorit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "priority", "hidden": true, "editor": priority1650 }, { "colIndex": 21, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(15), "dataIndex": "state", "editor": state1651 }, { "colIndex": 22, "sortable": true, "header": "Attribu\\u00e9 \\u00e0", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "assigned_to", "editor": assigned_to1652 }, { "width": Lino.chars2width(11), "colIndex": 23, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "hidden": true, "editable": false } ];\n'
20130515 '    Lino.cal.EventsByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByProject.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByProject",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByProject.insert;\n'
20130515 '    Lino.cal.EventsByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByUser\n'
20130515 'Lino.cal.TasksByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date85 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary86 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp87 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id88 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type89 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id90 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created91 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified92 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project93 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time94 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description95 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid96 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar97 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByUser/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class98 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence99 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type100 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date101 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time102 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent103 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state104 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp105 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id90.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description95.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type89.on('change',Lino.chooser_handler(owner_id90,'owner_type'));\n"
20130515 '      Lino.cal.TasksByUser.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date85, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary86 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id88, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type89 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id90 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project93, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time94 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description95, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid96 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar97 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class98 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence99 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date101, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time102 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent103 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state104 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByUser.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByUser.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByUser",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByUser",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByUser.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByUser.insert;\n'
20130515 '    Lino.cal.TasksByUser.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByUser.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasks\n'
20130515 'Lino.cal.MyTasks.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasks",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3242 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3243 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3244 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3245 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3246 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3247 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3248 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3249 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3250 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3251 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3252 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3253 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3254 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasks/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3255 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3256 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3257 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3258 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3259 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3260 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3261 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3262 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3247.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3252.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3246.on('change',Lino.chooser_handler(owner_id3247,'owner_type'));\n"
20130515 '      Lino.cal.MyTasks.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3242, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3243 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3245, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3246 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3247 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3250, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3251 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3252, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3253 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3254 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3255 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3256 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3258, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3259 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3260 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3261 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasks.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasks.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasks.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasks",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasks",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasks.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasks.insert;\n'
20130515 '    Lino.cal.MyTasks.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasks.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasks.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasks.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyTasksToDo\n'
20130515 'Lino.cal.MyTasksToDo.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyTasksToDo",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "To-do list",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "project" }, \'projectHidden\', { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date3264 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary3265 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp3266 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3267 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3268 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3269 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3270 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3271 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var project3272 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var start_time3273 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description3274 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid3275 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar3276 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyTasksToDo/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class3277 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence3278 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type3279 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date3280 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time3281 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent3282 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state3283 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp3284 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3269.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description3274.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3268.on('change',Lino.chooser_handler(owner_id3269,'owner_type'));\n"
20130515 '      Lino.cal.MyTasksToDo.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date3264, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary3265 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3267, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3268 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3269 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3272, "dataIndex": "project" }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time3273 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3274, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid3275 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar3276 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class3277 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence3278 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date3280, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time3281 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent3282 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state3283 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.MyTasksToDo.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau To-do list",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.MyTasksToDo.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyTasksToDo",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail To-do list",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/MyTasksToDo",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.MyTasksToDo.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.MyTasksToDo.insert;\n'
20130515 '    Lino.cal.MyTasksToDo.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyTasksToDo.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.MyTasksToDo.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyTasksToDo.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByProject\n'
20130515 'Lino.cal.TasksByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "start_time" }, { "name": "description" }, { "name": "uid" }, { "name": "calendar" }, \'calendarHidden\', { "name": "access_class" }, \'access_classHidden\', { "type": "int", "name": "sequence" }, { "type": "int", "name": "auto_type" }, { "type": "date", "name": "due_date", "dateFormat": "d.m.Y" }, { "name": "due_time" }, { "type": "int", "name": "percent" }, { "name": "state" }, \'stateHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 28,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1656 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var summary1658 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1659 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1660 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1661 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created1663 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified1664 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var start_time1665 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var description1666 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    var uid1667 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var calendar1668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/TasksByProject/calendar", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Calendrier..." });\n'
20130515 '    var access_class1669 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cal.AccessClasses });\n'
20130515 '    var sequence1670 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    var auto_type1671 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var due_date1672 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var due_time1673 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var percent1674 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var state1675 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.TaskStates });\n'
20130515 '    var owner_disp1676 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id1662.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      description1666.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1661.on('change',Lino.chooser_handler(owner_id1662,'owner_type'));\n"
20130515 '      Lino.cal.TasksByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1656, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1657 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1658 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1660, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1661 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1662 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "width": Lino.chars2width(9), "colIndex": 9, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1665 }, { "colIndex": 10, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description1666, "dataIndex": "description" }, { "colIndex": 11, "sortable": true, "header": "UID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "uid", "editor": uid1667 }, { "colIndex": 12, "sortable": true, "header": "Calendrier", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "calendar", "editor": calendar1668 }, { "colIndex": 13, "sortable": true, "header": "Classe d\'acc\\u00e8s", "editable": true, "tooltip": "Public, priv\\u00e9 ou \\"marquer occup\\u00e9\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "access_class", "editor": access_class1669 }, new Lino.NullNumberColumn({ "colIndex": 14, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Version", "dataIndex": "sequence", "width": Lino.chars2width(6), "editor": sequence1670 }), new Lino.NullNumberColumn({ "colIndex": 15, "sortable": true, "format": "0", "editable": false, "filter": { "type": "numeric" }, "header": "auto type", "dataIndex": "auto_type", "width": Lino.chars2width(6) }), { "colIndex": 16, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Due date", "editor": due_date1672, "width": Lino.chars2width(9), "dataIndex": "due_date" }, { "width": Lino.chars2width(9), "colIndex": 17, "sortable": true, "dataIndex": "due_time", "header": "Heure d\'\\u00e9ch\\u00e9ance", "editable": true, "editor": due_time1673 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Dur\\u00e9e (valeur)", "dataIndex": "percent", "width": Lino.chars2width(6), "editor": percent1674 }), { "colIndex": 19, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "state", "editor": state1675 }, { "width": Lino.chars2width(11), "colIndex": 20, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.cal.TasksByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByProject.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByProject",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByProject.insert;\n'
20130515 '    Lino.cal.TasksByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByEvent\n'
20130515 'Lino.cal.GuestsByEvent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByEvent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner793 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role794 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp795 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event797 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByEvent/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id798 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time799 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner793, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role794 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark796 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event797 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id798, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state800 } ];\n'
20130515 '    Lino.cal.GuestsByEvent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByEvent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByEvent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByEvent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByEvent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByRole\n'
20130515 'Lino.cal.GuestsByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "partner" }, \'partnerHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "name": "event" }, \'eventHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var partner3286 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/partner", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var role3287 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3288 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3289 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var event3290 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByRole/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var id3291 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3292 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3293 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Partenaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner3286, "dataIndex": "partner" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3287 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3289 }, { "colIndex": 4, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3290 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3291, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3293 } ];\n'
20130515 '    Lino.cal.GuestsByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByRole.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByRole",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.GuestsByPartner\n'
20130515 'Lino.cal.GuestsByPartner.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/GuestsByPartner",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "event" }, \'eventHidden\', { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event3295 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var role3296 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/GuestsByPartner/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3297 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3299 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3300 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var state3301 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3295 }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3296 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3298 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3299, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3301 } ];\n'
20130515 '    Lino.cal.GuestsByPartner.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.GuestsByPartner.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/GuestsByPartner",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.GuestsByPartner.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.GuestsByPartner.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPresences\n'
20130515 'Lino.cal.MyPresences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPresences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes pr\\u00e9sences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3303 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3304 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3305 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3306 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3307 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3308 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3309 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3310 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3311 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPresences/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3312 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3306 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3308 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3309, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3311 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3312 } ];\n'
20130515 '    Lino.cal.MyPresences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPresences.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPresences",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPresences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPresences.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.MyPendingInvitations\n'
20130515 'Lino.cal.MyPendingInvitations.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/MyPendingInvitations",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Mes invitations re\\u00e7ues",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "event__start_date", "dateFormat": "d.m.Y" }, { "name": "event__start_time" }, { "name": "event_summary" }, { "name": "role" }, \'roleHidden\', { "name": "workflow_buttons" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "event" }, \'eventHidden\', { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 31,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var event__start_date3314 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var event__start_time3315 = new Lino.TimeField({ "disabled": true });\n'
20130515 '    var event_summary_disp3316 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var role3317 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le de participant..." });\n'
20130515 '    var workflow_buttons_disp3318 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var remark3319 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3320 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3321 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var event3322 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cal/MyPendingInvitations/event", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Event..." });\n'
20130515 '    var state3323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cal.GuestStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "dataIndex": "event__start_date", "width": Lino.chars2width(9) }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "event__start_time", "header": "Heure de d\\u00e9but", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "event_summary", "header": "Rendez-vous", "editable": false }, { "colIndex": 3, "sortable": true, "header": "R\\u00f4le", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role3317 }, { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3319 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3320, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "Rendez-vous", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event", "editor": event3322 }, { "colIndex": 9, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "state", "editor": state3323 } ];\n'
20130515 '    Lino.cal.MyPendingInvitations.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.MyPendingInvitations.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/MyPendingInvitations",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.MyPendingInvitations.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.MyPendingInvitations.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.MyUploads\n'
20130515 'Lino.uploads.MyUploads.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/MyUploads",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Mes Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "description" }, { "name": "user" }, \'userHidden\', { "name": "owner" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "name": "type" }, \'typeHidden\', { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 17,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3325 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var description3326 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3327 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var owner_disp3328 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var id3329 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3332 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3333 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3334 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var type3335 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/MyUploads/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var valid_until3336 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3331.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3330.on('change',Lino.chooser_handler(owner_id3331,'owner_type'));\n"
20130515 '      Lino.uploads.MyUploads.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3325 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3326 }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3327 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3329, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3330 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3331 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3335 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3336, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.MyUploads.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.MyUploads.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/MyUploads",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.MyUploads.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.MyUploads.insert;\n'
20130515 '    Lino.uploads.MyUploads.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.MyUploads.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.MyUploads.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.MyUploads.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.HouseholdsByType\n'
20130515 'Lino.households.HouseholdsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/HouseholdsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "M\\u00e9nages",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "email" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "prefix" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 30,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 41,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 32,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3338 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var email3339 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var created3340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3342 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3343 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3344 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3345 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13346 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3347 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3348 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3349 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3350 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23351 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3352 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var url3353 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3354 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3355 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3356 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3357 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3358 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3359 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/HouseholdsByType/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13360 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23361 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var prefix3362 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3363 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3343.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3343.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3344.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3342.on('change',Lino.chooser_handler(city3343,'country'));\n"
20130515 "      region3344.on('change',Lino.chooser_handler(city3343,'region'));\n"
20130515 "      country3342.on('change',Lino.chooser_handler(region3344,'country'));\n"
20130515 '      Lino.households.HouseholdsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3338 }, { "colIndex": 1, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3339 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 3, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3342, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3343 }, { "colIndex": 6, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3344 }, { "colIndex": 7, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3345 }, { "colIndex": 8, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13346 }, { "colIndex": 9, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3347 }, { "colIndex": 10, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3348 }, { "colIndex": 11, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3349 }, { "colIndex": 12, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3350 }, { "colIndex": 13, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23351 }, { "colIndex": 14, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3352 }, { "colIndex": 15, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3353 }, { "colIndex": 16, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3354 }, { "colIndex": 17, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3355 }, { "colIndex": 18, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3356 }, { "colIndex": 19, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3357, "dataIndex": "remarks" }, { "colIndex": 20, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 21, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3359 }, { "colIndex": 22, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13360 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23361 }, { "colIndex": 24, "sortable": true, "header": "prefix", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "prefix", "editor": prefix3362 }, new Lino.NullNumberColumn({ "colIndex": 25, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3363, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.HouseholdsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insertPanel = Ext.extend(Lino.contacts.Partners.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau M\\u00e9nages",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detailPanel = Ext.extend(Lino.households.Households.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail M\\u00e9nages",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/households/HouseholdsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.households.HouseholdsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.households.HouseholdsByType.insert;\n'
20130515 '    Lino.households.HouseholdsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.HouseholdsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.households.HouseholdsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.HouseholdsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByHousehold\n'
20130515 'Lino.households.MembersByHousehold.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByHousehold",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person984 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var role985 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByHousehold/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date986 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date987 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id988 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person984, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role985 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date986, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date987, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id988, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByHousehold.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByHousehold.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByHousehold.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByPerson\n'
20130515 'Lino.households.MembersByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membre de ",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "household" }, \'householdHidden\', { "name": "role" }, \'roleHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var household1070 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var role1071 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByPerson/role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00f4le dans m\\u00e9nage..." });\n'
20130515 '    var start_date1072 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1073 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id1074 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household1070, "dataIndex": "household" }, { "colIndex": 1, "sortable": true, "header": "R\\u00f4le dans m\\u00e9nage", "editable": true, "tooltip": "The Role of this Person in this Household.\\nList of choices is configured in `Configure --> Households --> Roles`.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "role", "editor": role1071 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date1072, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date1073, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1074, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class households.MembersByRole\n'
20130515 'Lino.households.MembersByRole.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/households/MembersByRole",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Membres de m\\u00e9nage",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "household" }, \'householdHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 39,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 8,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person3365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var household3366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/households/MembersByRole/household", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir M\\u00e9nage..." });\n'
20130515 '    var start_date3367 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date3368 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var id3369 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Personne", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.contacts.Persons.detail\'), "editor": person3365, "dataIndex": "person" }, { "colIndex": 1, "sortable": true, "header": "M\\u00e9nage", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'householdHidden\',\'Lino.households.Households.detail\'), "editor": household3366, "dataIndex": "household" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "From", "editor": start_date3367, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Until", "editor": end_date3368, "width": Lino.chars2width(9), "dataIndex": "end_date" }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3369, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.households.MembersByRole.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.households.MembersByRole.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.households.MembersByRole.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountsByGroup\n'
20130515 'Lino.accounts.AccountsByGroup.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/accounts/AccountsByGroup",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comptes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "ref" }, { "name": "name" }, { "name": "name_fr" }, { "name": "name_nl" }, { "name": "default_amount" }, { "name": "periods" }, { "type": "boolean", "name": "required_for_household" }, { "type": "boolean", "name": "required_for_person" }, { "name": "group" }, \'groupHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 43,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var ref3371 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(5), "maxLength": 5 });\n'
20130515 '    var name3372 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var name_fr3373 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name_nl3374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var default_amount3375 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var periods3376 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": true, "value": 1, "allowDecimals": false });\n'
20130515 '    var required_for_household3377 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var required_for_person3378 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3379 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/accounts/AccountsByGroup/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de comptes..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "ref", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(7), "dataIndex": "ref", "editor": ref3371 }, { "colIndex": 1, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3372 }, { "colIndex": 2, "sortable": true, "header": "Description (fr)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_fr", "editor": name_fr3373 }, { "colIndex": 3, "sortable": true, "header": "Description (nl)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name_nl", "editor": name_nl3374 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "header": "Default amount", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "default_amount", "editor": default_amount3375 }), new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0/i", "editable": true, "tooltip": "For how many months the entered amount counts. \\nFor example 1 means a monthly amount, 12 a yearly amount.", "filter": { "type": "numeric" }, "header": "P\\u00e9riodes", "dataIndex": "periods", "width": Lino.chars2width(6), "editor": periods3376 }), { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour m\\u00e9nages", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_household" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "obligatoire pour personnes", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "required_for_person" }, { "colIndex": 8, "sortable": true, "header": "Groupe de comptes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3379 } ];\n'
20130515 '    Lino.accounts.AccountsByGroup.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountsByGroup.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountsByGroup.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.accounts.AccountsByGroup.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.accounts.AccountsByGroup.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/accounts/AccountsByGroup",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.MyNotes\n'
20130515 'Lino.notes.MyNotes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/MyNotes",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Mes notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "project" }, \'projectHidden\', { "name": "body" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3381 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var project3385 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var body3386 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var id3387 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3388 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3389 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3390 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3391 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3392 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/MyNotes/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3393 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3386.refresh();\n'
20130515 "      owner_id3389.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3388.on('change',Lino.chooser_handler(owner_id3389,'owner_type'));\n"
20130515 '      Lino.notes.MyNotes.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3381, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3382 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3383 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3384 }, { "colIndex": 4, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project3385, "dataIndex": "project" }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3386, "dataIndex": "body" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3387, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3388 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3389 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3391 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3392, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.MyNotes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.MyNotes.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/MyNotes",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.MyNotes.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.MyNotes.insert;\n'
20130515 '    Lino.notes.MyNotes.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.MyNotes.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.MyNotes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.MyNotes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class notes.NotesByProject\n'
20130515 'Lino.notes.NotesByProject.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/notes/NotesByProject",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "company" }, \'companyHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date3395 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type3396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type3397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject3398 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body3399 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user3400 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3401 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3402 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3403 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time3404 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language3405 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var company3406 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/notes/NotesByProject/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var owner_disp3407 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body3399.refresh();\n'
20130515 "      owner_id3403.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3402.on('change',Lino.chooser_handler(owner_id3403,'owner_type'));\n"
20130515 '      Lino.notes.NotesByProject.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date3395, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type3396 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3397 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject3398 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body3399, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3400 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3401, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 7, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3402 }, { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3403 }, { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3405 }, { "colIndex": 11, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3406, "dataIndex": "company" }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.notes.NotesByProject.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.notes.NotesByProject.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/notes/NotesByProject",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.notes.NotesByProject.detail;\n'
20130515 '    this.ls_insert_handler = Lino.notes.NotesByProject.insert;\n'
20130515 '    Lino.notes.NotesByProject.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.notes.NotesByProject.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.notes.NotesByProject.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.notes.NotesByProject.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.LanguageKnowledgesByPerson\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/LanguageKnowledgesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var language1321 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/LanguageKnowledgesByPerson/language", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var native1322 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken1323 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written1324 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level1325 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1321, "dataIndex": "language" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken1323 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written1324 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level1325 } ];\n'
20130515 '    Lino.cv.LanguageKnowledgesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.LanguageKnowledgesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.LanguageKnowledgesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.KnowledgesByLanguage\n'
20130515 'Lino.cv.KnowledgesByLanguage.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/KnowledgesByLanguage",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Connaissances de langue",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "type": "boolean", "name": "native" }, { "name": "spoken" }, \'spokenHidden\', { "name": "written" }, \'writtenHidden\', { "name": "cef_level" }, \'cef_levelHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 56,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person196 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/KnowledgesByLanguage/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var native197 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var spoken198 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var written199 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.properties.HowWell });\n'
20130515 '    var cef_level200 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cv.CefLevel });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person196, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "xtype": "checkcolumn", "header": "Langue maternelle", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "native" }, { "colIndex": 2, "sortable": true, "header": "oral", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "spoken", "editor": spoken198 }, { "colIndex": 3, "sortable": true, "header": "\\u00e9crit", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "written", "editor": written199 }, { "colIndex": 4, "sortable": true, "header": "Niveau CEF", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(37), "dataIndex": "cef_level", "editor": cef_level200 } ];\n'
20130515 '    Lino.cv.KnowledgesByLanguage.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.KnowledgesByLanguage.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.KnowledgesByLanguage.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.PropsByPerson\n'
20130515 'Lino.cv.PropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/PropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3411 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3412 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3413 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/PropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3409.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3410.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3413.on('change',Lino.chooser_handler(property3409,'group'));\n"
20130515 "      property3409.on('change',Lino.chooser_handler(value3410,'property'));\n"
20130515 '      Lino.cv.PropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3409 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3410 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3411 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3412, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3413 } ];\n'
20130515 '    Lino.cv.PropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.PropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.PropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ConfiguredPropsByPerson\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ConfiguredPropsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Propri\\u00e9t\\u00e9s",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property3415 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value3416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark3417 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id3418 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group3419 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ConfiguredPropsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property3415.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value3416.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group3419.on('change',Lino.chooser_handler(property3415,'group'));\n"
20130515 "      property3415.on('change',Lino.chooser_handler(value3416,'property'));\n"
20130515 '      Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property3415 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value3416 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark3417 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id3418, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group3419 } ];\n'
20130515 '    Lino.cv.ConfiguredPropsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ConfiguredPropsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ConfiguredPropsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SkillsByPerson\n'
20130515 'Lino.cv.SkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1366 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1367 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1368 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1365.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1366.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1369.on('change',Lino.chooser_handler(property1365,'group'));\n"
20130515 "      property1365.on('change',Lino.chooser_handler(value1366,'property'));\n"
20130515 '      Lino.cv.SkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1365 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1366 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1367 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1368, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1369 } ];\n'
20130515 '    Lino.cv.SkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.SoftSkillsByPerson\n'
20130515 'Lino.cv.SoftSkillsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/SoftSkillsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Comp\\u00e9tences sociales",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1372 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1373 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1374 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1375 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1376 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/SoftSkillsByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1372.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1373.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1376.on('change',Lino.chooser_handler(property1372,'group'));\n"
20130515 "      property1372.on('change',Lino.chooser_handler(value1373,'property'));\n"
20130515 '      Lino.cv.SoftSkillsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1372 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1373 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1374 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1375, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1376 } ];\n'
20130515 '    Lino.cv.SoftSkillsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.SoftSkillsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.SoftSkillsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.ObstaclesByPerson\n'
20130515 'Lino.cv.ObstaclesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cv/ObstaclesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Obstacles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "property" }, \'propertyHidden\', { "name": "value" }, \'valueHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "group" }, \'groupHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 18,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var property1382 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/property", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Propri\\u00e9t\\u00e9..." });\n'
20130515 '    var value1383 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/value", "method": "GET" }) }) });\n'
20130515 '    var remark1384 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id1385 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var group1386 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cv/ObstaclesByPerson/group", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Groupe de propri\\u00e9t\\u00e9s..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      property1382.setContextValue('group',record ? record.data['groupHidden'] : undefined);\n"
20130515 "      value1383.setContextValue('property',record ? record.data['propertyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      group1386.on('change',Lino.chooser_handler(property1382,'group'));\n"
20130515 "      property1382.on('change',Lino.chooser_handler(value1383,'property'));\n"
20130515 '      Lino.cv.ObstaclesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Propri\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "property", "editor": property1382 }, { "colIndex": 1, "sortable": true, "header": "Valeur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "value", "editor": value1383 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1384 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1385, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Groupe de propri\\u00e9t\\u00e9s", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "hidden": true, "editor": group1386 } ];\n'
20130515 '    Lino.cv.ObstaclesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.ObstaclesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.ObstaclesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ClientsByNationality\n'
20130515 'Lino.pcsw.ClientsByNationality.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ClientsByNationality",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "city" }, \'cityHidden\', { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "name" }, { "name": "country" }, \'countryHidden\', { "name": "language" }, \'languageHidden\', { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "broker" }, \'brokerHidden\', { "name": "faculty" }, \'facultyHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 90,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var city3421 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var street3422 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3423 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3424 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23425 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var name3426 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var country3427 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var language3428 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var id3429 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3430 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3431 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var region3432 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3433 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr13434 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3435 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var email3436 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3437 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3438 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3439 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3440 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3441 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3442 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3443 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13444 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23445 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3446 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3447 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3448 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3449 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3450 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23451 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3452 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3453 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3454 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3455 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3456 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3457 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3458 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3459 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3460 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3461 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var card_number3462 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3463 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3464 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3465 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3466 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3467 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3468 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3469 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3470 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3471 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3472 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3473 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3474 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3475 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3476 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3477 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3478 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3479 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3480 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3481 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3482 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3483 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3484 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3485 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3486 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3487 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3488 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    var broker3489 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var faculty3490 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ClientsByNationality/faculty", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3421.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3421.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3432.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3427.on('change',Lino.chooser_handler(city3421,'country'));\n"
20130515 "      region3432.on('change',Lino.chooser_handler(city3421,'region'));\n"
20130515 "      country3427.on('change',Lino.chooser_handler(region3432,'country'));\n"
20130515 '      Lino.pcsw.ClientsByNationality.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3421 }, { "colIndex": 1, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3422 }, { "colIndex": 2, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3423 }, { "colIndex": 3, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3424 }, { "colIndex": 4, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23425 }, { "colIndex": 5, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3426 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3427, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3428 }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3429, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 9, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 11, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3432 }, { "colIndex": 12, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3433 }, { "colIndex": 13, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13434 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3435 }, { "colIndex": 15, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3436 }, { "colIndex": 16, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3437 }, { "colIndex": 17, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3438 }, { "colIndex": 18, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3439 }, { "colIndex": 19, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3440 }, { "colIndex": 20, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3441, "dataIndex": "remarks" }, { "colIndex": 21, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 22, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3443 }, { "colIndex": 23, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13444 }, { "colIndex": 24, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23445 }, { "colIndex": 25, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3446 }, { "colIndex": 26, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3447 }, { "colIndex": 27, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3448 }, { "colIndex": 28, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3449 }, { "colIndex": 29, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3450 }, { "colIndex": 30, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23451, "dataIndex": "remarks2" }, { "colIndex": 31, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3452 }, { "colIndex": 32, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 33, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 34, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3455 }, { "colIndex": 35, "sortable": true, "header": "Lieu de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3456 }, { "colIndex": 36, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3457, "dataIndex": "birth_country" }, { "colIndex": 37, "sortable": true, "header": "Etat civil'
20130515 '", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3458 }, { "colIndex": 38, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3459 }, { "colIndex": 39, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3460, "dataIndex": "health_insurance" }, { "colIndex": 40, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3461, "dataIndex": "pharmacy" }, { "colIndex": 41, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3462 }, { "colIndex": 42, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3463, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 43, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3464, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 44, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3465 }, { "colIndex": 45, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3466 }, { "colIndex": 46, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3467 }, { "colIndex": 47, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3468 }, { "colIndex": 48, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3469, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 49, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3470, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 50, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 51, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3473, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 53, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3474 }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 56, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 57, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 60, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3481, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 61, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3482 }, { "colIndex": 62, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3483, "dataIndex": "obstacles" }, { "colIndex": 63, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3484, "dataIndex": "skills" }, { "colIndex": 64, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3485 }, { "colIndex": 65, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3486 }, { "colIndex": 66, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3487 }, { "colIndex": 67, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3488 }, { "colIndex": 68, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3489 }, { "colIndex": 69, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3490 } ];\n'
20130515 '    Lino.pcsw.ClientsByNationality.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.pcsw.ClientsByNationality.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/pcsw/ClientsByNationality",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/ClientsByNationality",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.ClientsByNationality.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.ClientsByNationality.insert;\n'
20130515 '    Lino.pcsw.ClientsByNationality.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ClientsByNationality.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.ClientsByNationality.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.pcsw.ClientsByNationality.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ExclusionsByPerson\n'
20130515 'Lino.pcsw.ExclusionsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ExclusionsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "exclusions",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "excluded_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "excluded_until", "dateFormat": "d.m.Y" }, { "name": "type" }, \'typeHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 46,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var excluded_from1233 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var excluded_until1234 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var type1235 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ExclusionsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Exclusion Type..." });\n'
20130515 '    var remark1236 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "de", "editor": excluded_from1233, "width": Lino.chars2width(9), "dataIndex": "excluded_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": excluded_until1234, "width": Lino.chars2width(9), "dataIndex": "excluded_until" }, { "colIndex": 2, "sortable": true, "header": "Raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1235 }, { "colIndex": 3, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark1236 } ];\n'
20130515 '    Lino.pcsw.ExclusionsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ExclusionsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ExclusionsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ContactsByClient\n'
20130515 'Lino.pcsw.ContactsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/ContactsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Contacts",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 9,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 54,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1279 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contact client..." });\n'
20130515 '    var company1280 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1281 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1282 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/ContactsByClient/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1283 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1284 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      company1280.setContextValue('type',record ? record.data['typeHidden'] : undefined);\n"
20130515 "      contact_person1281.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      type1279.on('change',Lino.chooser_handler(company1280,'type'));\n"
20130515 "      company1280.on('change',Lino.chooser_handler(contact_person1281,'company'));\n"
20130515 '      Lino.pcsw.ContactsByClient.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type de contact client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1279 }, { "colIndex": 1, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1280, "dataIndex": "company" }, { "colIndex": 2, "sortable": true, "header": "Personne de contact", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1281, "dataIndex": "contact_person" }, { "colIndex": 3, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1282 }, { "colIndex": 4, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1283, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1284, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.ContactsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ContactsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ContactsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByClient\n'
20130515 'Lino.pcsw.CoachingsByClient.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByClient",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "type": "boolean", "name": "primary" }, { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1287 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date1288 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1289 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var primary1290 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var type1291 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByClient/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var id1292 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date1287, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date1288, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Accompagnant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "user", "editor": user1289 }, { "colIndex": 3, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, { "colIndex": 4, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "type", "editor": type1291 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1292, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByClient.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByClient.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByClient.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.CoachingsByUser\n'
20130515 'Lino.pcsw.CoachingsByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/CoachingsByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Accompagnements",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "type" }, \'typeHidden\', { "type": "boolean", "name": "primary" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 49,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date157 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var end_date158 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client159 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type160 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/CoachingsByUser/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Service..." });\n'
20130515 '    var primary161 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var id162 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Accompagn\\u00e9 depuis", "editor": start_date157, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": end_date158, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client159, "dataIndex": "client" }, { "colIndex": 3, "sortable": true, "header": "Service", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type160 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "Primaire", "editable": true, "tooltip": "There\'s at most one primary coach per client. \\nEnabling this field will automatically make the other coachings non-primary.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "primary" }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id162, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.pcsw.CoachingsByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.CoachingsByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.CoachingsByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByPerson\n'
20130515 'Lino.pcsw.NotesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "name": "company" }, \'companyHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date1615 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var event_type1616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type1617 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject1618 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body1619 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user1620 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var company1621 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var id1622 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type1623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id1624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByPerson/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time1625 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language1626 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp1627 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body1619.refresh();\n'
20130515 "      owner_id1624.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type1623.on('change',Lino.chooser_handler(owner_id1624,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date1615, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type1616 }, { "colIndex": 2, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1617 }, { "colIndex": 3, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject1618 }, { "colIndex": 4, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body1619, "dataIndex": "body" }, { "colIndex": 5, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1620 }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "tooltip": "    An optional third-party Organization that is related to this Note.\\n    The note will then be visible in that company\'s history panel.\\n    ", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1621, "dataIndex": "company" }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1622, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type1623 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id1624 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1626 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByPerson.insert;\n'
20130515 '    Lino.pcsw.NotesByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.NotesByCompany\n'
20130515 'Lino.pcsw.NotesByCompany.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/pcsw/NotesByCompany",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events/Notes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "project" }, \'projectHidden\', { "name": "event_type" }, \'event_typeHidden\', { "name": "type" }, \'typeHidden\', { "name": "subject" }, { "name": "body" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "build_time" }, { "name": "language" }, \'languageHidden\', { "name": "owner" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 91,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 21,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date622 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var project623 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var event_type624 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/event_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Event Type..." });\n'
20130515 '    var type625 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de note..." });\n'
20130515 '    var subject626 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var body627 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    var user628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id629 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type630 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/pcsw/NotesByCompany/owner_id", "method": "GET" }) }) });\n'
20130515 '    var build_time632 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var language633 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var owner_disp634 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      body627.refresh();\n'
20130515 "      owner_id631.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type630.on('change',Lino.chooser_handler(owner_id631,'owner_type'));\n"
20130515 '      Lino.pcsw.NotesByCompany.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "editor": date622, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project623, "dataIndex": "project" }, { "colIndex": 2, "sortable": true, "header": "Event Type (Form)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "event_type", "editor": event_type624 }, { "colIndex": 3, "sortable": true, "header": "Note Type (Content)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type625 }, { "colIndex": 4, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject626 }, { "colIndex": 5, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body627, "dataIndex": "body" }, { "colIndex": 6, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user628 }, new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id629, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 8, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type630 }, { "colIndex": 9, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id631 }, { "width": Lino.chars2width(17), "colIndex": 10, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language633 }, { "width": Lino.chars2width(11), "colIndex": 12, "sortable": false, "dataIndex": "owner", "header": "Contr\\u00f4l\\u00e9 par", "editable": false } ];\n'
20130515 '    Lino.pcsw.NotesByCompany.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insertPanel = Ext.extend(Lino.notes.MyNotes.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events/Notes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detailPanel = Ext.extend(Lino.notes.MyNotes.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events/Notes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/pcsw/NotesByCompany",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.pcsw.NotesByCompany.detail;\n'
20130515 '    this.ls_insert_handler = Lino.pcsw.NotesByCompany.insert;\n'
20130515 '    Lino.pcsw.NotesByCompany.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.NotesByCompany.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.pcsw.NotesByCompany.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.NotesByCompany.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPerson\n'
20130515 'Lino.isip.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from1402 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1403 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1404 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1405 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var id1406 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1407 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1408 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1409 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1410 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11411 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21412 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1413 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1414 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1415 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1416 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1417 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1418 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1419 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages1420 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals1421 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd1422 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe1423 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company1424 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person1425 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1409.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages1420.refresh();\n'
20130515 '      goals1421.refresh();\n'
20130515 '      duties_asd1422.refresh();\n'
20130515 '      duties_dsbe1423.refresh();\n'
20130515 '      duties_company1424.refresh();\n'
20130515 '      duties_person1425.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1408.on('change',Lino.chooser_handler(contact_person1409,'company'));\n"
20130515 '      Lino.isip.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1402, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1403, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1404 }, { "colIndex": 3, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1405 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1406, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 6, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1408, "dataIndex": "company" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1409, "dataIndex": "contact_person" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1410 }, { "colIndex": 9, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11411, "dataIndex": "signer1" }, { "colIndex": 10, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21412, "dataIndex": "signer2" }, { "colIndex": 11, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1413 }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1414 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1415 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1416 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1417 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1418 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1419 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages1420, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals1421, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd1422, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe1423, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company1424, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person1425, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPerson.insert;\n'
20130515 '    Lino.isip.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByPolicy\n'
20130515 'Lino.isip.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3492 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var applies_from3493 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3494 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3495 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3496 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3497 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de PIIS..." });\n'
20130515 '    var build_time3498 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3499 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3500 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3501 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13502 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23503 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3504 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3505 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3506 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3507 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3508 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3509 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3510 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3511 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3512 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3513 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3514 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3515 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3500.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3510.refresh();\n'
20130515 '      goals3511.refresh();\n'
20130515 '      duties_asd3512.refresh();\n'
20130515 '      duties_dsbe3513.refresh();\n'
20130515 '      duties_company3514.refresh();\n'
20130515 '      duties_person3515.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3499.on('change',Lino.chooser_handler(contact_person3500,'company'));\n"
20130515 '      Lino.isip.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3492, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3493, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3494, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3495, "dataIndex": "client" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3496 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3497 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3499, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3500, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3501 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13502, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23503, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3504 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3505 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3506 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3507 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3508 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3509 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3510, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3511, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3512, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3513, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3514, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3515, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByPolicy.insert;\n'
20130515 '    Lino.isip.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class isip.ContractsByType\n'
20130515 'Lino.isip.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/isip/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "PIISs",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "name": "client" }, \'clientHidden\', { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "stages" }, { "name": "goals" }, { "name": "duties_asd" }, { "name": "duties_dsbe" }, { "name": "duties_company" }, { "name": "duties_person" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 59,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 36,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var applies_from3517 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var client3518 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var user3519 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3520 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3521 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3524 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13525 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language3527 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var applies_until3528 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_decided3529 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3530 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3531 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3532 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3533 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/isip/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3534 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var stages3535 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "stages" });\n'
20130515 '    var goals3536 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "buts" });\n'
20130515 '    var duties_asd3537 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs SSG" });\n'
20130515 '    var duties_dsbe3538 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devois ISP" });\n'
20130515 '    var duties_company3539 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "devoirs entreprise" });\n'
20130515 '    var duties_person3540 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Devoirs personne" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3523.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      stages3535.refresh();\n'
20130515 '      goals3536.refresh();\n'
20130515 '      duties_asd3537.refresh();\n'
20130515 '      duties_dsbe3538.refresh();\n'
20130515 '      duties_company3539.refresh();\n'
20130515 '      duties_person3540.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3522.on('change',Lino.chooser_handler(contact_person3523,'company'));\n"
20130515 '      Lino.isip.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3517, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3518, "dataIndex": "client" }, { "colIndex": 2, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3519 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3520, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 5, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3522, "dataIndex": "company" }, { "colIndex": 6, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3523, "dataIndex": "contact_person" }, { "colIndex": 7, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3524 }, { "colIndex": 8, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13525, "dataIndex": "signer1" }, { "colIndex": 9, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23526, "dataIndex": "signer2" }, { "colIndex": 10, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3527 }, { "colIndex": 11, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3528, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 12, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3529 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3530 }, { "colIndex": 14, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3531 }, { "colIndex": 15, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3532 }, { "colIndex": 16, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3533 }, { "colIndex": 17, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3534 }, { "colIndex": 18, "sortable": false, "header": "stages", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": stages3535, "dataIndex": "stages" }, { "colIndex": 19, "sortable": false, "header": "goals", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": goals3536, "dataIndex": "goals" }, { "colIndex": 20, "sortable": false, "header": "duties_asd", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_asd3537, "dataIndex": "duties_asd" }, { "colIndex": 21, "sortable": false, "header": "duties_dsbe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_dsbe3538, "dataIndex": "duties_dsbe" }, { "colIndex": 22, "sortable": false, "header": "duties_company", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_company3539, "dataIndex": "duties_company" }, { "colIndex": 23, "sortable": false, "header": "duties_person", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": duties_person3540, "dataIndex": "duties_person" } ];\n'
20130515 '    Lino.isip.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insertPanel = Ext.extend(Lino.isip.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau PIISs",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.isip.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detailPanel = Ext.extend(Lino.isip.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail PIISs",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/isip/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.isip.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.isip.ContractsByType.insert;\n'
20130515 '    Lino.isip.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.isip.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.isip.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.isip.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.isip.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.isip.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPerson\n'
20130515 'Lino.jobs.ContractsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job1506 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1507 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1508 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1509 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1510 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1511 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1512 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1513 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11516 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21517 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1518 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1519 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1520 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1521 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1522 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1524 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1525 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1526 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1527 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1528 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1529 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPerson/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1530 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1531 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1532 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1514.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1531.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1513.on('change',Lino.chooser_handler(contact_person1514,'company'));\n"
20130515 '      Lino.jobs.ContractsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1506, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1507, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1508, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1509 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1510 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1511, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "hidden": true, "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1513, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": contact_person1514, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "hidden": true, "editor": contact_role1515 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11516, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21517, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "hidden": true, "editor": language1518 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1519 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1520 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1521 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1522 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1523 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1524 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "hidden": true, "editor": duration1525 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "hidden": true, "editor": regime1526 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "hidden": true, "editor": schedule1527 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "hidden": true, "editor": hourly_rate1528 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1529 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "hidden": true, "editor": reference_person1530 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": responsibilities1531, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "hidden": true, "editor": remark1532, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPerson.insert;\n'
20130515 '    Lino.jobs.ContractsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByProvider\n'
20130515 'Lino.jobs.ContractsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1944 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job1945 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from1946 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1947 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1948 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1949 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1950 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1951 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var contact_person1952 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1953 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11954 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21955 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1956 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1957 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1958 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1959 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1960 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1961 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1962 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1963 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1964 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1965 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1966 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1967 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByProvider/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1968 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1969 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1970 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      contact_person1952.setContextValue('mk',bp['mk']);\n"
20130515 "      contact_person1952.setContextValue('mt',bp['mt']);\n"
20130515 '      responsibilities1969.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1944, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1945, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1946, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1947, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1948 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1949 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1950, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1952, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1953 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11954, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21955, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1956 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1957 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1958 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1959 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1960 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1961 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1962 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1963 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1964 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1965 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1966 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1967 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1968 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1969, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1970, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByProvider.insert;\n'
20130515 '    Lino.jobs.ContractsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByPolicy\n'
20130515 'Lino.jobs.ContractsByPolicy.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByPolicy",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3542 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3543 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3544 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3545 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3546 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3547 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3548 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3549 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3550 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3551 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13552 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23553 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3554 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3555 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3556 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3557 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3558 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var ending3559 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3560 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3561 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3562 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3563 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3564 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3565 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByPolicy/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3566 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3567 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3568 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3550.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3567.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3549.on('change',Lino.chooser_handler(contact_person3550,'company'));\n"
20130515 '      Lino.jobs.ContractsByPolicy.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3542, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3543, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3544, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3545, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3546 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3547 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3549, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3550, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3551 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13552, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23553, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3554, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3555 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3556 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3557 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3558 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3559 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3560 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3561 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3562 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3563 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3564 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3565 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3566 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3567, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3568, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByPolicy.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByPolicy",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByPolicy.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByPolicy.insert;\n'
20130515 '    Lino.jobs.ContractsByPolicy.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByPolicy.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByPolicy.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByPolicy.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByJob\n'
20130515 'Lino.jobs.ContractsByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "client" }, \'clientHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var client1913 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var applies_from1914 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until1915 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user1916 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type1917 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id1918 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time1919 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company1920 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person1921 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role1922 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer11923 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer21924 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var language1925 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided1926 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued1927 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd1928 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy1929 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending1930 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended1931 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration1932 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime1933 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule1934 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate1935 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate1936 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByJob/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person1937 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities1938 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark1939 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person1921.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities1938.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company1920.on('change',Lino.chooser_handler(contact_person1921,'company'));\n"
20130515 '      Lino.jobs.ContractsByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client1913, "dataIndex": "client" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from1914, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until1915, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user1916 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1917 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1918, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company1920, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person1921, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role1922 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer11923, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer21924, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language1925 }, { "colIndex": 13, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided1926 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued1927 }, { "colIndex": 15, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd1928 }, { "colIndex": 16, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy1929 }, { "colIndex": 17, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending1930 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended1931 }, { "colIndex": 19, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration1932 }, { "colIndex": 20, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime1933 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule1934 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1935 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate1936 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person1937 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities1938, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1939, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByJob",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByJob.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByJob.insert;\n'
20130515 '    Lino.jobs.ContractsByJob.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByJob.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByJob.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByRegime\n'
20130515 'Lino.jobs.ContractsByRegime.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByRegime",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3570 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3571 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3572 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3573 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3574 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3575 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3576 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3577 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3578 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3579 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13580 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23581 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3582 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3583 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3584 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3585 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3586 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3587 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3588 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3589 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3590 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var schedule3591 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3592 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3593 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByRegime/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3594 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3595 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3596 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3578.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3595.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3577.on('change',Lino.chooser_handler(contact_person3578,'company'));\n"
20130515 '      Lino.jobs.ContractsByRegime.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3570, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3571, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3572, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3573 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3574 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3575, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3577, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3578, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3579 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13580, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23581, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3582, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3583 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3584 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3585 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3586 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3587 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3588 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3589 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3590 }, { "colIndex": 21, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3591 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3592 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3593 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3594 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3595, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3596, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByRegime.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByRegime",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByRegime.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByRegime.insert;\n'
20130515 '    Lino.jobs.ContractsByRegime.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByRegime.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByRegime.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByRegime.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByRegime.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsBySchedule\n'
20130515 'Lino.jobs.ContractsBySchedule.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsBySchedule",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "type": "int", "name": "id" }, { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 8,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 42,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job3598 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3599 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3600 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3601 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3602 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var id3603 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var build_time3604 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3605 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3606 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3607 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13608 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23609 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3610 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3611 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3612 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3613 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3614 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3615 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3616 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3617 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3618 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3619 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var hourly_rate3620 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3621 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsBySchedule/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3622 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3623 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3624 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3606.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3623.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3605.on('change',Lino.chooser_handler(contact_person3606,'company'));\n"
20130515 '      Lino.jobs.ContractsBySchedule.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3598, "dataIndex": "job" }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3599, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3600, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3601 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3602 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3603, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3605, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3606, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3607 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13608, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23609, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3610, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3611 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3612 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3613 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3614 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3615 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3616 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3617 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3618 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3619 }, new Lino.NullNumberColumn({ "colIndex": 22, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3620 }), { "colIndex": 23, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3621 }, { "colIndex": 24, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3622 }, { "colIndex": 25, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3623, "dataIndex": "responsibilities" }, { "colIndex": 26, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3624, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsBySchedule.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsBySchedule",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsBySchedule.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsBySchedule.insert;\n'
20130515 '    Lino.jobs.ContractsBySchedule.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsBySchedule.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsBySchedule.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsBySchedule.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCountry\n'
20130515 'Lino.jobs.StudiesByCountry.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCountry",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "city" }, \'cityHidden\', { "name": "person" }, \'personHidden\', { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id534 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var city535 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var person536 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var type537 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content538 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started539 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped540 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success541 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language542 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCountry/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school543 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks544 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      city535.setContextValue('mk',bp['mk']);\n"
20130515 "      city535.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id534, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city535 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person536, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type537 }, { "colIndex": 4, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content538 }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started539, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped540, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 7, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 8, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language542, "dataIndex": "language" }, { "colIndex": 9, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school543 }, { "colIndex": 10, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks544, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.StudiesByCountry.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCountry.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCountry.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByCity\n'
20130515 'Lino.jobs.StudiesByCity.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByCity",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "school" }, { "name": "type" }, \'typeHidden\', { "name": "person" }, \'personHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "country" }, \'countryHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var school513 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var type514 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var person515 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var content516 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started517 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped518 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var success519 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language520 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var remarks521 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id522 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var country523 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByCity/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school513 }, { "colIndex": 1, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type514 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person515, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content516 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started517, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped518, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language520, "dataIndex": "language" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks521, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id522, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 10, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country523, "dataIndex": "country" } ];\n'
20130515 '    Lino.jobs.StudiesByCity.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByCity.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByCity.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.StudiesByPerson\n'
20130515 'Lino.jobs.StudiesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/StudiesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "\\u00c9tudes & formations",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "type" }, \'typeHidden\', { "name": "content" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "type": "boolean", "name": "success" }, { "name": "language" }, \'languageHidden\', { "name": "school" }, { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 65,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var type1297 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Type d\'\\u00e9tude..." });\n'
20130515 '    var content1298 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var started1299 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1300 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var country1301 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city1302 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var success1303 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var language1304 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/StudiesByPerson/language", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Langue..." });\n'
20130515 '    var school1305 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks1306 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1307 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city1302.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country1301.on('change',Lino.chooser_handler(city1302,'country'));\n"
20130515 '      Lino.jobs.StudiesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Type d\'\\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1297 }, { "colIndex": 1, "sortable": true, "header": "Contenu des \\u00e9tudes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "content", "editor": content1298 }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1299, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1300, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 4, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1301, "dataIndex": "country" }, { "colIndex": 5, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city1302 }, { "colIndex": 6, "sortable": false, "xtype": "checkcolumn", "header": "Succ\\u00e8s", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "success" }, { "colIndex": 7, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'languageHidden\',\'Lino.countries.Languages.detail\'), "editor": language1304, "dataIndex": "language" }, { "colIndex": 8, "sortable": true, "header": "Ecole", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "school", "editor": school1305 }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1306, "dataIndex": "remarks" }, new Lino.NullNumberColumn({ "colIndex": 10, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1307, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.StudiesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.StudiesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.StudiesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByFunction\n'
20130515 'Lino.jobs.ExperiencesByFunction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByFunction",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3626 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector3627 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var person3628 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company3629 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title3630 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country3631 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByFunction/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started3632 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped3633 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks3634 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3626, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3627 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3628, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company3629 }, { "colIndex": 4, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3630 }, { "colIndex": 5, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3631, "dataIndex": "country" }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started3632, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped3633, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 8, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3634, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByFunction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByFunction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByFunction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByPerson\n'
20130515 'Lino.jobs.ExperiencesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Exp\\u00e9riences professionnelles",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "company" }, { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "country" }, \'countryHidden\', { "name": "remarks" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var company1310 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var started1311 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped1312 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var title1313 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector1314 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1315 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var country1316 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByPerson/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var remarks1317 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1315.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1314.on('change',Lino.chooser_handler(function1315,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1310 }, { "colIndex": 1, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1311, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped1312, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 3, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1313 }, { "colIndex": 4, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1314 }, { "colIndex": 5, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1315 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1316, "dataIndex": "country" }, { "colIndex": 7, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks1317, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByPerson\n'
20130515 'Lino.jobs.CandidaturesByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "job" }, \'jobHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1393 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var job1394 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var state1395 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1396 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1397 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByPerson/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1398 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1399 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1397.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1396.on('change',Lino.chooser_handler(function1397,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1393 }, { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job1394, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1395 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1396 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1397 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1398, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1399, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByJob\n'
20130515 'Lino.jobs.CandidaturesByJob.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByJob",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidatures",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "person" }, \'personHidden\', { "name": "state" }, \'stateHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 10,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 12,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1902 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var person1903 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var state1904 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    var sector1905 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1906 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByJob/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var remark1907 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1908 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1906.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1905.on('change',Lino.chooser_handler(function1906,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByJob.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted1902 }, { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1903, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state1904 }, { "colIndex": 3, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1905 }, { "colIndex": 4, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1906 }, { "colIndex": 5, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1907, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1908, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.CandidaturesByJob.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByJob.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByJob.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidaturesByOffer\n'
20130515 'Lino.jobs.CandidaturesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/CandidaturesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "job" }, \'jobHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "name": "state" }, \'stateHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 63,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2004 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector2005 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function2006 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person2007 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var job2008 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/CandidaturesByOffer/job", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var date_submitted2009 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var remark2010 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var state2011 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.jobs.CandidatureStates });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function2006.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector2005.on('change',Lino.chooser_handler(function2006,'sector'));\n"
20130515 '      Lino.jobs.CandidaturesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2004, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector2005 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function2006 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2007, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job2008, "dataIndex": "job" }, { "colIndex": 5, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "Date when the IA introduced this candidature.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2009 }, { "colIndex": 6, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark2010, "dataIndex": "remark" }, { "colIndex": 7, "sortable": true, "header": "Candidature state", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(20), "dataIndex": "state", "editor": state2011 } ];\n'
20130515 '    Lino.jobs.CandidaturesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidaturesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidaturesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ExperiencesByOffer\n'
20130515 'Lino.jobs.ExperiencesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ExperiencesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "person" }, \'personHidden\', { "name": "company" }, { "name": "title" }, { "name": "country" }, \'countryHidden\', { "type": "date", "name": "started", "dateFormat": "d.m.Y" }, { "type": "date", "name": "stopped", "dateFormat": "d.m.Y" }, { "name": "remarks" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 68,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id1992 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var sector1993 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1994 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var person1995 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var company1996 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var title1997 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var country1998 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ExperiencesByOffer/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var started1999 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var stopped2000 = new Lino.DateField({ "selectOnFocus": true, "format": "m/Y", "plugins": "monthPickerPlugin" });\n'
20130515 '    var remarks2001 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1994.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1993.on('change',Lino.chooser_handler(function1994,'sector'));\n"
20130515 '      Lino.jobs.ExperiencesByOffer.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1992, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1993 }, { "colIndex": 2, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1994 }, { "colIndex": 3, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person1995, "dataIndex": "person" }, { "colIndex": 4, "sortable": true, "header": "Soci\\u00e9t\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "company", "editor": company1996 }, { "colIndex": 5, "sortable": true, "header": "Intitul\\u00e9 de la fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title1997 }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country1998, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "commenc\\u00e9", "editor": started1999, "width": Lino.chars2width(9), "dataIndex": "started" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "arr\\u00eat\\u00e9", "editor": stopped2000, "width": Lino.chars2width(9), "dataIndex": "stopped" }, { "colIndex": 9, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks2001, "dataIndex": "remarks" } ];\n'
20130515 '    Lino.jobs.ExperiencesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ExperiencesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ExperiencesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByProvider\n'
20130515 'Lino.jobs.JobsByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "type" }, \'typeHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 14,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name1870 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider1871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector1872 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function1873 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var type1874 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'emploi..." });\n'
20130515 '    var contract_type1875 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByProvider/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate1876 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity1877 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark1878 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1879 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function1873.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector1872.on('change',Lino.chooser_handler(function1873,'sector'));\n"
20130515 '      Lino.jobs.JobsByProvider.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name1870 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider1871, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector1872 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function1873 }, { "colIndex": 4, "sortable": true, "header": "Type d\'emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type1874 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type1875 }, new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate1876 }), new Lino.NullNumberColumn({ "colIndex": 7, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity1877 }), { "colIndex": 8, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark1878, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 9, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1879, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByProvider.insert;\n'
20130515 '    Lino.jobs.JobsByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsByType\n'
20130515 'Lino.jobs.JobsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Emplois",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "provider" }, \'providerHidden\', { "name": "sector" }, \'sectorHidden\', { "name": "function" }, \'functionHidden\', { "name": "contract_type" }, \'contract_typeHidden\', { "name": "hourly_rate" }, { "type": "int", "name": "capacity" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name3636 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var provider3637 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/provider", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Employant..." });\n'
20130515 '    var sector3638 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/sector", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Secteur d\'activit\\u00e9..." });\n'
20130515 '    var function3639 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/function", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var contract_type3640 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/JobsByType/contract_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var hourly_rate3641 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var capacity3642 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 1 });\n'
20130515 '    var remark3643 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id3644 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      function3639.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3638.on('change',Lino.chooser_handler(function3639,'sector'));\n"
20130515 '      Lino.jobs.JobsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3636 }, { "colIndex": 1, "sortable": true, "header": "Employant", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.jobs.JobProviders.detail\'), "editor": provider3637, "dataIndex": "provider" }, { "colIndex": 2, "sortable": true, "header": "Secteur d\'activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector", "editor": sector3638 }, { "colIndex": 3, "sortable": true, "header": "Fonction", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "function", "editor": function3639 }, { "colIndex": 4, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contract_type", "editor": contract_type3640 }, new Lino.NullNumberColumn({ "colIndex": 5, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3641 }), new Lino.NullNumberColumn({ "colIndex": 6, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "Capacit\\u00e9", "dataIndex": "capacity", "width": Lino.chars2width(6), "editor": capacity3642 }), { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3643, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3644, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.jobs.JobsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insertPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Emplois",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.JobsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Emplois",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/JobsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.JobsByType.insert;\n'
20130515 '    Lino.jobs.JobsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.ContractsByType\n'
20130515 'Lino.jobs.ContractsByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/ContractsByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  title : "Contrats de travail",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "job" }, \'jobHidden\', { "type": "date", "name": "applies_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "applies_until", "dateFormat": "d.m.Y" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "build_time" }, { "name": "company" }, \'companyHidden\', { "name": "contact_person" }, \'contact_personHidden\', { "name": "contact_role" }, \'contact_roleHidden\', { "name": "signer1" }, \'signer1Hidden\', { "name": "signer2" }, \'signer2Hidden\', { "name": "client" }, \'clientHidden\', { "name": "language" }, \'languageHidden\', { "type": "date", "name": "date_decided", "dateFormat": "d.m.Y" }, { "type": "date", "name": "date_issued", "dateFormat": "d.m.Y" }, { "name": "user_asd" }, \'user_asdHidden\', { "name": "exam_policy" }, \'exam_policyHidden\', { "name": "ending" }, \'endingHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "type": "int", "name": "duration" }, { "name": "regime" }, \'regimeHidden\', { "name": "schedule" }, \'scheduleHidden\', { "name": "hourly_rate" }, { "name": "refund_rate" }, { "name": "reference_person" }, { "name": "responsibilities" }, { "name": "remark" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 67,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 44,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3646 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var job3647 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/job", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Emploi..." });\n'
20130515 '    var applies_from3648 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var applies_until3649 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user3650 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type3651 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type de contrat de travail..." });\n'
20130515 '    var build_time3652 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var company3653 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/company", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var contact_person3654 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_person", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var contact_role3655 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/contact_role", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Fonction..." });\n'
20130515 '    var signer13656 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer1", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var signer23657 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/signer2", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Personne..." });\n'
20130515 '    var client3658 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/client", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var language3659 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var date_decided3660 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var date_issued3661 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var user_asd3662 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/user_asd", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var exam_policy3663 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/exam_policy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir M\\u00e9thode d\'examination..." });\n'
20130515 '    var ending3664 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/ending", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cause d\'abandon..." });\n'
20130515 '    var date_ended3665 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var duration3666 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/duration", "method": "GET" }) }), "value": null });\n'
20130515 '    var regime3667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/regime", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir R\\u00e9gime de travail..." });\n'
20130515 '    var schedule3668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/schedule", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Horaire..." });\n'
20130515 '    var hourly_rate3669 = new Ext.form.NumberField({ "selectOnFocus": true, "decimalPrecision": 2, "allowBlank": true, "decimalSeparator": "," });\n'
20130515 '    var refund_rate3670 = new Lino.SimpleRemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/jobs/ContractsByType/refund_rate", "method": "GET" }) }) });\n'
20130515 '    var reference_person3671 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var responsibilities3672 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "responsabilit\\u00e9s" });\n'
20130515 '    var remark3673 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      contact_person3654.setContextValue('company',record ? record.data['companyHidden'] : undefined);\n"
20130515 '      responsibilities3672.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      company3653.on('change',Lino.chooser_handler(contact_person3654,'company'));\n"
20130515 '      Lino.jobs.ContractsByType.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3646, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Emploi", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'jobHidden\',\'Lino.jobs.Jobs.detail\'), "editor": job3647, "dataIndex": "job" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9but de contrat", "editor": applies_from3648, "width": Lino.chars2width(9), "dataIndex": "applies_from" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Fin pr\\u00e9vue", "editor": applies_until3649, "width": Lino.chars2width(9), "dataIndex": "applies_until" }, { "colIndex": 4, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3650 }, { "colIndex": 5, "sortable": true, "header": "Type de contrat", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3651 }, { "width": Lino.chars2width(17), "colIndex": 6, "sortable": true, "dataIndex": "build_time", "header": "build time", "editable": false }, { "colIndex": 7, "sortable": true, "header": "Organisation", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'companyHidden\',\'Lino.contacts.Companies.detail\'), "editor": company3653, "dataIndex": "company" }, { "colIndex": 8, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'contact_personHidden\',\'Lino.contacts.Persons.detail\'), "editor": contact_person3654, "dataIndex": "contact_person" }, { "colIndex": 9, "sortable": true, "header": "repr\\u00e9sent\\u00e9 par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "contact_role", "editor": contact_role3655 }, { "colIndex": 10, "sortable": true, "header": "Secr\\u00e9taire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer1Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer13656, "dataIndex": "signer1" }, { "colIndex": 11, "sortable": true, "header": "President", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'signer2Hidden\',\'Lino.contacts.Persons.detail\'), "hidden": true, "editor": signer23657, "dataIndex": "signer2" }, { "colIndex": 12, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'clientHidden\',\'Lino.pcsw.Clients.detail\'), "editor": client3658, "dataIndex": "client" }, { "colIndex": 13, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3659 }, { "colIndex": 14, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9cid\\u00e9 le", "dataIndex": "date_decided", "hidden": true, "width": Lino.chars2width(9), "editor": date_decided3660 }, { "colIndex": 15, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "D\\u00e9livr\\u00e9 le", "dataIndex": "date_issued", "hidden": true, "width": Lino.chars2width(9), "editor": date_issued3661 }, { "colIndex": 16, "sortable": true, "header": "Responsable (SSG)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user_asd", "hidden": true, "editor": user_asd3662 }, { "colIndex": 17, "sortable": true, "header": "M\\u00e9thode d\'examination", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "exam_policy", "hidden": true, "editor": exam_policy3663 }, { "colIndex": 18, "sortable": true, "header": "Cause d\'abandon", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "ending", "hidden": true, "editor": ending3664 }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "dataIndex": "date_ended", "hidden": true, "width": Lino.chars2width(9), "editor": date_ended3665 }, { "colIndex": 20, "sortable": true, "header": "dur\\u00e9e (jours)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "duration", "editor": duration3666 }, { "colIndex": 21, "sortable": true, "header": "R\\u00e9gime de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "regime", "editor": regime3667 }, { "colIndex": 22, "sortable": true, "header": "Horaire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "schedule", "editor": schedule3668 }, new Lino.NullNumberColumn({ "colIndex": 23, "sortable": true, "header": "co\\u00fbr horaire", "editable": true, "filter": { "type": "numeric" }, "width": Lino.chars2width(13), "dataIndex": "hourly_rate", "editor": hourly_rate3669 }), { "colIndex": 24, "sortable": true, "header": "tarif de remboursement", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "refund_rate", "editor": refund_rate3670 }, { "colIndex": 25, "sortable": true, "header": "persone de r\\u00e9f\\u00e9rence", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "reference_person", "editor": reference_person3671 }, { "colIndex": 26, "sortable": false, "header": "responsibilities", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": responsibilities3672, "dataIndex": "responsibilities" }, { "colIndex": 27, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3673, "dataIndex": "remark" } ];\n'
20130515 '    Lino.jobs.ContractsByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insertPanel = Ext.extend(Lino.jobs.Contracts.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Contrats de travail",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detailPanel = Ext.extend(Lino.jobs.Contracts.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Contrats de travail",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/ContractsByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.ContractsByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.ContractsByType.insert;\n'
20130515 '    Lino.jobs.ContractsByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.ContractsByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.ContractsByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.ContractsByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.Contracts.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.ContractsByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.JobsOverviewByType\n'
20130515 'Lino.jobs.JobsOverviewByType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/jobs/JobsOverviewByType",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Situation contrats Art 60-7",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  disable_editing : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "job_desc" }, { "name": "working" }, { "name": "probation" }, { "name": "candidates" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 69,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var job_desc_disp3675 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var working_disp3676 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var probation_disp3677 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var candidates_disp3678 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(21), "colIndex": 0, "sortable": false, "dataIndex": "job_desc", "header": "Emploi", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "working", "header": "Travaille", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "probation", "header": "p\\u00e9riode d\'essai", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "candidates", "header": "Candidats", "editable": false } ];\n'
20130515 '    Lino.jobs.JobsOverviewByType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detailPanel = Ext.extend(Lino.jobs.Jobs.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Situation contrats Art 60-7",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/jobs/JobsOverviewByType",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverviewByType.detail;\n'
20130515 '    this.ls_insert_handler = Lino.jobs.Jobs.insert;\n'
20130515 '    Lino.jobs.JobsOverviewByType.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverviewByType.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.jobs.JobsOverviewByType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverviewByType.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverviewByType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CoursesByOffer\n'
20130515 'Lino.courses.CoursesByOffer.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CoursesByOffer",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  title : "Cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "title" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 76,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date2094 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var title2095 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remark2096 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id2097 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de d\\u00e9but", "editor": start_date2094, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2095 }, { "colIndex": 2, "sortable": true, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "remark", "editor": remark2096 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2097, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CoursesByOffer.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insertPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detailPanel = Ext.extend(Lino.courses.CoursesByOffer.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_participants", "menu_item_text": "Liste des participants", "must_save": true, "tooltip": "Liste des participants", "panel_btn_handler": Lino.row_action_handler(\'print_participants\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des participants", "auto_save": true }, { "itemId": "print_candidates", "menu_item_text": "Liste des candidats", "must_save": true, "tooltip": "Liste des candidats", "panel_btn_handler": Lino.row_action_handler(\'print_candidates\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Liste des candidats", "auto_save": true } ],\n'
20130515 '  ls_url: "/courses/CoursesByOffer",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CoursesByOffer.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CoursesByOffer.insert;\n'
20130515 '    Lino.courses.CoursesByOffer.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CoursesByOffer.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CoursesByOffer.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CoursesByOffer.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByProvider\n'
20130515 'Lino.courses.CourseOffersByProvider.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByProvider",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "content" }, \'contentHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id2079 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title2080 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var content2081 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByProvider/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var description2082 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description2082.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id2079, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title2080 }, { "colIndex": 2, "sortable": true, "header": "Contenu de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2081 }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description2082, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByProvider.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByProvider",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByProvider.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByProvider.insert;\n'
20130515 '    Lino.courses.CourseOffersByProvider.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByProvider.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByProvider.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByProvider.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseOffersByContent\n'
20130515 'Lino.courses.CourseOffersByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseOffersByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Offres de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "title" }, { "name": "provider" }, \'providerHidden\', { "name": "description" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 79,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3680 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var title3681 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var provider3682 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseOffersByContent/provider", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Organisateur de cours..." });\n'
20130515 '    var description3683 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Description" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      description3683.refresh();\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3680, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3681 }, { "colIndex": 2, "sortable": true, "header": "Organisateur de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'providerHidden\',\'Lino.courses.CourseProviders.detail\'), "editor": provider3682, "dataIndex": "provider" }, { "colIndex": 3, "sortable": false, "header": "description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": description3683, "dataIndex": "description" } ];\n'
20130515 '    Lino.courses.CourseOffersByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insertPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Offres de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detailPanel = Ext.extend(Lino.courses.CourseOffers.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Offres de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseOffersByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseOffersByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseOffersByContent.insert;\n'
20130515 '    Lino.courses.CourseOffersByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseOffersByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseOffersByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseOffersByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByPerson\n'
20130515 'Lino.courses.CourseRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "content" }, \'contentHidden\', { "name": "offer" }, \'offerHidden\', { "name": "course" }, \'courseHidden\', { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "remark" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 12,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date_submitted1328 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var content1329 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var offer1330 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var course1331 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByPerson/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var urgent1332 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state1333 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var date_ended1334 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var remark1335 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var id1336 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer1330.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content1329.on('change',Lino.chooser_handler(offer1330,'content'));\n"
20130515 '      Lino.courses.CourseRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(11), "editor": date_submitted1328 }, { "colIndex": 1, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "content", "editor": content1329 }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer1330, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course1331 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state1333 }, { "colIndex": 6, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended1334, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "renderer": Lino.text_renderer, "editor": remark1335, "dataIndex": "remark" }, new Lino.NullNumberColumn({ "colIndex": 8, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "hidden": true, "editor": id1336, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.courses.CourseRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByPerson.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByPerson",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByPerson.insert;\n'
20130515 '    Lino.courses.CourseRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestsByContent\n'
20130515 'Lino.courses.CourseRequestsByContent.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CourseRequestsByContent",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "course" }, \'courseHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3685 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3686 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3687 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var date_submitted3688 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3689 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3690 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var course3691 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CourseRequestsByContent/course", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Cours..." });\n'
20130515 '    var remark3692 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3693 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      var bp = this.get_base_params();\n'
20130515 "      offer3687.setContextValue('mk',bp['mk']);\n"
20130515 "      offer3687.setContextValue('mt',bp['mt']);\n"
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3685, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3686, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3687, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3688 }, { "colIndex": 4, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 5, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3690 }, { "colIndex": 6, "sortable": true, "header": "Cours trouv\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "course", "editor": course3691 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3692, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3693, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.CourseRequestsByContent.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestsByContent.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestsByContent",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CourseRequestsByContent",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CourseRequestsByContent.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CourseRequestsByContent.insert;\n'
20130515 '    Lino.courses.CourseRequestsByContent.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestsByContent.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CourseRequestsByContent.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestsByContent.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.RequestsByCourse\n'
20130515 'Lino.courses.RequestsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/RequestsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Demande de cours",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "offer" }, \'offerHidden\', { "name": "content" }, \'contentHidden\', { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "urgent" }, { "name": "state" }, \'stateHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 14,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3695 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3696 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var offer3697 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/offer", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Offre de cours..." });\n'
20130515 '    var content3698 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/RequestsByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    var date_submitted3699 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var urgent3700 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var state3701 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.courses.CourseRequestStates });\n'
20130515 '    var remark3702 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended3703 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      offer3697.setContextValue('content',record ? record.data['contentHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      content3698.on('change',Lino.chooser_handler(offer3697,'content'));\n"
20130515 '      Lino.courses.RequestsByCourse.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3695, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3696, "dataIndex": "person" }, { "colIndex": 2, "sortable": true, "header": "Offre de cours", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'offerHidden\',\'Lino.courses.CourseOffers.detail\'), "editor": offer3697, "dataIndex": "offer" }, { "colIndex": 3, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content3698 }, { "colIndex": 4, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted3699 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "cause professionnelle", "editable": true, "tooltip": "Check this if the request is needed for job search.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "urgent" }, { "colIndex": 6, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "state", "editor": state3701 }, { "colIndex": 7, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remark3702, "dataIndex": "remark" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended3703, "width": Lino.chars2width(9), "dataIndex": "date_ended" } ];\n'
20130515 '    Lino.courses.RequestsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Demande de cours",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.RequestsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/RequestsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Demande de cours",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/RequestsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.RequestsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.RequestsByCourse.insert;\n'
20130515 '    Lino.courses.RequestsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.RequestsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.RequestsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.RequestsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.ParticipantsByCourse\n'
20130515 'Lino.courses.ParticipantsByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/ParticipantsByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Participants",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_ended", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 7,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2109 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/ParticipantsByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2110 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_ended2111 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var workflow_buttons_disp2112 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2109, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2110, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date de fin", "editor": date_ended2111, "width": Lino.chars2width(9), "dataIndex": "date_ended" }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false } ];\n'
20130515 '    Lino.courses.ParticipantsByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Participants",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.ParticipantsByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/ParticipantsByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Participants",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/ParticipantsByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.ParticipantsByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.ParticipantsByCourse.insert;\n'
20130515 '    Lino.courses.ParticipantsByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.ParticipantsByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.ParticipantsByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.ParticipantsByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CandidatesByCourse\n'
20130515 'Lino.courses.CandidatesByCourse.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/courses/CandidatesByCourse",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Candidats",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "person" }, \'personHidden\', { "name": "remark" }, { "type": "date", "name": "date_submitted", "dateFormat": "d.m.Y" }, { "name": "workflow_buttons" }, { "name": "content" }, \'contentHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 7,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 75,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 9,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var person2115 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var remark2116 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var date_submitted2117 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var workflow_buttons_disp2118 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var content2119 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/courses/CandidatesByCourse/content", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Contenu de cours..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Client", "editable": true, "tooltip": "Le client qui d\\u00e9sire suivre un cours.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person2115, "dataIndex": "person" }, { "colIndex": 1, "sortable": false, "header": "Remarque", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.text_renderer, "editor": remark2116, "dataIndex": "remark" }, { "colIndex": 2, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "When this request has been submitted.", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9ntr\\u00e9e", "dataIndex": "date_submitted", "width": Lino.chars2width(9), "editor": date_submitted2117 }, { "width": Lino.chars2width(61), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, { "colIndex": 4, "sortable": true, "header": "Contenu", "editable": true, "tooltip": "Der gew\\u00fcnschte Kursinhalt.)", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "content", "editor": content2119 } ];\n'
20130515 '    Lino.courses.CandidatesByCourse.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insertPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Candidats",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CandidatesByCourse.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CandidatesByCourse",pk,"wf7");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detailPanel = Ext.extend(Lino.courses.PendingCourseRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Candidats",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/courses/CandidatesByCourse",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.courses.CandidatesByCourse.detail;\n'
20130515 '    this.ls_insert_handler = Lino.courses.CandidatesByCourse.insert;\n'
20130515 '    Lino.courses.CandidatesByCourse.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CandidatesByCourse.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.courses.CandidatesByCourse.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CandidatesByCourse.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.CompetencesByUser\n'
20130515 'Lino.newcomers.CompetencesByUser.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/CompetencesByUser",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno147 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty148 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/CompetencesByUser/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight149 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id150 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno147 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty148 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight149 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id150, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.CompetencesByUser.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.CompetencesByUser.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.CompetencesByUser.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.CompetencesByUser.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.CompetencesByUser.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/CompetencesByUser",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.MyCompetences\n'
20130515 'Lino.newcomers.MyCompetences.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/MyCompetences",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "move_up", "menu_item_text": "Up", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_up\',\'GET\'), "text": "Up", "overflowText": "Up", "auto_save": true }, { "itemId": "move_down", "menu_item_text": "Down", "must_save": true, "panel_btn_handler": Lino.row_action_handler(\'move_down\',\'GET\'), "text": "Down", "overflowText": "Down", "auto_save": true } ],\n'
20130515 '  title : "Mes Comp\\u00e9tences",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "seqno" }, { "name": "faculty" }, \'facultyHidden\', { "type": "int", "name": "weight" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 80,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var seqno3705 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var faculty3706 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/MyCompetences/faculty", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Sp\\u00e9cificit\\u00e9..." });\n'
20130515 '    var weight3707 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var id3708 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "N\\u00b0 de s\\u00e9q", "dataIndex": "seqno", "width": Lino.chars2width(6), "editor": seqno3705 }), { "colIndex": 1, "sortable": true, "header": "Sp\\u00e9cificit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "faculty", "editor": faculty3706 }, new Lino.NullNumberColumn({ "colIndex": 2, "sortable": true, "format": "0", "editable": true, "tooltip": "Wieviel Aufwand mir pers\\u00f6nlich ein Neuantrag in diesem Fachbereich verursacht\\n(0 = gar kein Aufwand, 10 = maximaler Aufwand).", "filter": { "type": "numeric" }, "header": "Work effort", "dataIndex": "weight", "width": Lino.chars2width(6), "editor": weight3707 }), new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3708, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.newcomers.MyCompetences.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.MyCompetences.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.MyCompetences.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.MyCompetences.move_up = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_up");\n'
20130515 '};\n'
20130515 'Lino.newcomers.MyCompetences.move_down = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/MyCompetences",pk,"move_down");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class newcomers.ClientsByFaculty\n'
20130515 'Lino.newcomers.ClientsByFaculty.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/newcomers/ClientsByFaculty",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  title : "Clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name_column" }, { "name": "broker" }, \'brokerHidden\', { "name": "address_column" }, { "type": "int", "name": "id" }, { "name": "created" }, { "name": "modified" }, { "name": "country" }, \'countryHidden\', { "name": "city" }, \'cityHidden\', { "name": "region" }, \'regionHidden\', { "name": "zip_code" }, { "name": "name" }, { "name": "addr1" }, { "name": "street_prefix" }, { "name": "street" }, { "name": "street_no" }, { "name": "street_box" }, { "name": "addr2" }, { "name": "language" }, \'languageHidden\', { "name": "email" }, { "name": "url" }, { "name": "phone" }, { "name": "gsm" }, { "name": "fax" }, { "name": "remarks" }, { "type": "boolean", "name": "is_obsolete" }, { "name": "activity" }, \'activityHidden\', { "name": "bank_account1" }, { "name": "bank_account2" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, \'genderHidden\', { "name": "birth_date" }, { "name": "title" }, { "name": "remarks2" }, { "name": "gesdos_id" }, { "type": "boolean", "name": "is_cpas" }, { "type": "boolean", "name": "is_senior" }, { "name": "group" }, \'groupHidden\', { "name": "birth_place" }, { "name": "birth_country" }, \'birth_countryHidden\', { "name": "civil_state" }, \'civil_stateHidden\', { "name": "national_id" }, { "name": "health_insurance" }, \'health_insuranceHidden\', { "name": "pharmacy" }, \'pharmacyHidden\', { "name": "nationality" }, \'nationalityHidden\', { "name": "card_number" }, { "type": "date", "name": "card_valid_from", "dateFormat": "d.m.Y" }, { "type": "date", "name": "card_valid_until", "dateFormat": "d.m.Y" }, { "name": "card_type" }, \'card_typeHidden\', { "name": "card_issuer" }, { "name": "noble_condition" }, { "name": "residence_type" }, \'residence_typeHidden\', { "type": "date", "name": "in_belgium_since", "dateFormat": "d.m.Y" }, { "type": "date", "name": "unemployed_since", "dateFormat": "d.m.Y" }, { "type": "boolean", "name": "needs_residence_permit" }, { "type": "boolean", "name": "needs_work_permit" }, { "type": "date", "name": "work_permit_suspended_until", "dateFormat": "d.m.Y" }, { "name": "aid_type" }, \'aid_typeHidden\', { "type": "boolean", "name": "income_ag" }, { "type": "boolean", "name": "income_wg" }, { "type": "boolean", "name": "income_kg" }, { "type": "boolean", "name": "income_rente" }, { "type": "boolean", "name": "income_misc" }, { "type": "boolean", "name": "is_seeking" }, { "type": "date", "name": "unavailable_until", "dateFormat": "d.m.Y" }, { "name": "unavailable_why" }, { "name": "obstacles" }, { "name": "skills" }, { "name": "job_agents" }, { "name": "job_office_contact" }, \'job_office_contactHidden\', { "name": "client_state" }, \'client_stateHidden\', { "name": "refusal_reason" }, \'refusal_reasonHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 50,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 92,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_column_disp3710 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var broker3711 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/broker", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Interm\\u00e9diaire ..." });\n'
20130515 '    var address_column_disp3712 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id3713 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var created3714 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3715 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var country3716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var city3717 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "forceSelection": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/city", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var region3718 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/region", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Place..." });\n'
20130515 '    var zip_code3719 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var name3720 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var addr13721 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_prefix3722 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street3723 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var street_no3724 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var street_box3725 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var addr23726 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3727 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "store": [ [ "de", "German" ], [ "fr", "French" ], [ "nl", "Dutch" ] ], "allowBlank": false, "value": "de" });\n'
20130515 '    var email3728 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 75 });\n'
20130515 '    var url3729 = new Lino.URLField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var phone3730 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gsm3731 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var fax3732 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks3733 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var is_obsolete3734 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var activity3735 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/activity", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Activit\\u00e9..." });\n'
20130515 '    var bank_account13736 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var bank_account23737 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var first_name3738 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var last_name3739 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var gender3740 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var birth_date3741 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var title3742 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var remarks23743 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var gesdos_id3744 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 40 });\n'
20130515 '    var is_cpas3745 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_senior3746 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var group3747 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/group", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Phase d\'int\\u00e9gration..." });\n'
20130515 '    var birth_place3748 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_country3749 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/birth_country", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var civil_state3750 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.CivilState });\n'
20130515 '    var national_id3751 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var health_insurance3752 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/health_insurance", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var pharmacy3753 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/pharmacy", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Organisation..." });\n'
20130515 '    var nationality3754 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/nationality", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Pays..." });\n'
20130515 '    var card_number3755 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var card_valid_from3756 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_valid_until3757 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var card_type3758 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.BeIdCardTypes });\n'
20130515 '    var card_issuer3759 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var noble_condition3760 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 50 });\n'
20130515 '    var residence_type3761 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.ResidenceType });\n'
20130515 '    var in_belgium_since3762 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unemployed_since3763 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var needs_residence_permit3764 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var needs_work_permit3765 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var work_permit_suspended_until3766 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var aid_type3767 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/aid_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'aide sociale..." });\n'
20130515 '    var income_ag3768 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_wg3769 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_kg3770 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_rente3771 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var income_misc3772 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var is_seeking3773 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": false });\n'
20130515 '    var unavailable_until3774 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var unavailable_why3775 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var obstacles3776 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var skills3777 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var job_agents3778 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 100 });\n'
20130515 '    var job_office_contact3779 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/newcomers/ClientsByFaculty/job_office_contact", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Personne de contact..." });\n'
20130515 '    var client_state3780 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.pcsw.ClientStates });\n'
20130515 '    var refusal_reason3781 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.pcsw.RefusalReasons });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      city3717.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 "      city3717.setContextValue('region',record ? record.data['regionHidden'] : undefined);\n"
20130515 "      region3718.setContextValue('country',record ? record.data['countryHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      country3716.on('change',Lino.chooser_handler(city3717,'country'));\n"
20130515 "      region3718.on('change',Lino.chooser_handler(city3717,'region'));\n"
20130515 "      country3716.on('change',Lino.chooser_handler(region3718,'country'));\n"
20130515 '      Lino.newcomers.ClientsByFaculty.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name_column", "header": "Name", "editable": false }, { "colIndex": 1, "sortable": true, "header": "Interm\\u00e9diaire ", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "broker", "editor": broker3711 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "address_column", "header": "Addresse", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3713, "width": Lino.chars2width(6), "dataIndex": "id" }), { "width": Lino.chars2width(17), "colIndex": 4, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "hidden": true, "editable": false }, { "width": Lino.chars2width(17), "colIndex": 5, "sortable": true, "dataIndex": "modified", "header": "Modified", "hidden": true, "editable": false }, { "colIndex": 6, "sortable": true, "header": "Pays", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'countryHidden\',\'Lino.countries.Countries.detail\'), "editor": country3716, "dataIndex": "country" }, { "colIndex": 7, "sortable": true, "header": "Place", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "city", "editor": city3717 }, { "colIndex": 8, "sortable": true, "header": "Region", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "region", "editor": region3718 }, { "colIndex": 9, "sortable": true, "header": "Zip code", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "zip_code", "editor": zip_code3719 }, { "colIndex": 10, "sortable": true, "header": "Name", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "name", "editor": name3720 }, { "colIndex": 11, "sortable": true, "header": "Ligne avant le nom de rue", "editable": true, "tooltip": "Address line before street", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr1", "editor": addr13721 }, { "colIndex": 12, "sortable": true, "header": "Pr\\u00e9fixe rue", "editable": true, "tooltip": "Text to print before name of street, but to ignore for sorting.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street_prefix", "editor": street_prefix3722 }, { "colIndex": 13, "sortable": true, "header": "Rue", "editable": true, "tooltip": "Name of street. Without house number.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "street", "editor": street3723 }, { "colIndex": 14, "sortable": true, "header": "N\\u00b0", "editable": true, "tooltip": "House number", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_no", "editor": street_no3724 }, { "colIndex": 15, "sortable": true, "header": "bo\\u00eete", "editable": true, "tooltip": "Text to print after :attr:`steet_no` on the same line", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "street_box", "editor": street_box3725 }, { "colIndex": 16, "sortable": true, "header": "Ligne apr\\u00e8s le nom de rue", "editable": true, "tooltip": "Address line to print below street line", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "addr2", "editor": addr23726 }, { "colIndex": 17, "sortable": true, "header": "Langue", "editable": true, "tooltip": "Die Sprache, in der Dokumente ausgestellt werden sollen.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "language", "editor": language3727 }, { "colIndex": 18, "sortable": true, "header": "E-mail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "email", "editor": email3728 }, { "colIndex": 19, "sortable": true, "header": "URL", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "url", "editor": url3729 }, { "colIndex": 20, "sortable": true, "header": "T\\u00e9l\\u00e9phone", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "phone", "editor": phone3730 }, { "colIndex": 21, "sortable": true, "header": "GSM", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gsm", "editor": gsm3731 }, { "colIndex": 22, "sortable": true, "header": "Fax", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "fax", "editor": fax3732 }, { "colIndex": 23, "sortable": false, "header": "Remarques", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks3733, "dataIndex": "remarks" }, { "colIndex": 24, "sortable": false, "xtype": "checkcolumn", "header": "obsolete", "editable": true, "tooltip": "Altf\\u00e4lle sind Partner, deren Stammdaten nicht mehr gepflegt werden und \\nf\\u00fcr neue Operationen nicht benutzt werden k\\u00f6nnen.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_obsolete" }, { "colIndex": 25, "sortable": true, "header": "Activit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "activity", "hidden": true, "editor": activity3735 }, { "colIndex": 26, "sortable": true, "header": "Compte en banque 1", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account1", "hidden": true, "editor": bank_account13736 }, { "colIndex": 27, "sortable": true, "header": "Compte en banque 2", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "bank_account2", "hidden": true, "editor": bank_account23737 }, { "colIndex": 28, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3738 }, { "colIndex": 29, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3739 }, { "colIndex": 30, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3740 }, { "colIndex": 31, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3741 }, { "colIndex": 32, "sortable": true, "header": "Allocution", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "title", "editor": title3742 }, { "colIndex": 33, "sortable": false, "header": "Remarque (Bureau Social)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": remarks23743, "dataIndex": "remarks2" }, { "colIndex": 34, "sortable": true, "header": "N\\u00b0 GesDos", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "gesdos_id", "editor": gesdos_id3744 }, { "colIndex": 35, "sortable": false, "xtype": "checkcolumn", "header": "client CPAS", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_cpas" }, { "colIndex": 36, "sortable": false, "xtype": "checkcolumn", "header": "retrait\\u00e9", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_senior" }, { "colIndex": 37, "sortable": true, "header": "Phase d\'int\\u00e9gration", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "group", "editor": group3747 }, { "colIndex": 38, "sortable": true, "header": "Lieu de naissance", "editable": true,'
20130515 ' "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "birth_place", "editor": birth_place3748 }, { "colIndex": 39, "sortable": true, "header": "Pays de naissance", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'birth_countryHidden\',\'Lino.countries.Countries.detail\'), "editor": birth_country3749, "dataIndex": "birth_country" }, { "colIndex": 40, "sortable": true, "header": "Etat civil", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(41), "dataIndex": "civil_state", "editor": civil_state3750 }, { "colIndex": 41, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3751 }, { "colIndex": 42, "sortable": true, "header": "Caisse d\'assurance maladie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'health_insuranceHidden\',\'Lino.contacts.Companies.detail\'), "editor": health_insurance3752, "dataIndex": "health_insurance" }, { "colIndex": 43, "sortable": true, "header": "Pharmacie", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'pharmacyHidden\',\'Lino.contacts.Companies.detail\'), "editor": pharmacy3753, "dataIndex": "pharmacy" }, { "colIndex": 44, "sortable": true, "header": "Nationalit\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'nationalityHidden\',\'Lino.countries.Countries.detail\'), "editor": nationality3754, "dataIndex": "nationality" }, { "colIndex": 45, "sortable": true, "header": "Num\\u00e9ro de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_number", "editor": card_number3755 }, { "colIndex": 46, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Carte eID valable depuis", "editor": card_valid_from3756, "width": Lino.chars2width(9), "dataIndex": "card_valid_from" }, { "colIndex": 47, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "au ", "editor": card_valid_until3757, "width": Lino.chars2width(9), "dataIndex": "card_valid_until" }, { "colIndex": 48, "sortable": true, "header": "Type de carte eID", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(25), "dataIndex": "card_type", "editor": card_type3758 }, { "colIndex": 49, "sortable": true, "header": "carte eID \\u00e9mise par", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "card_issuer", "editor": card_issuer3759 }, { "colIndex": 50, "sortable": true, "header": "Titre de noblesse", "editable": true, "tooltip": "The eventual noble condition of this person. Imported from TIM.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "noble_condition", "editor": noble_condition3760 }, { "colIndex": 51, "sortable": true, "header": "Type de s\\u00e9jour", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(26), "dataIndex": "residence_type", "editor": residence_type3761 }, { "colIndex": 52, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "en Belgique depuis", "editor": in_belgium_since3762, "width": Lino.chars2width(9), "dataIndex": "in_belgium_since" }, { "colIndex": 53, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Cherche du travail depuis", "editor": unemployed_since3763, "width": Lino.chars2width(9), "dataIndex": "unemployed_since" }, { "colIndex": 54, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de s\\u00e9jour", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_residence_permit" }, { "colIndex": 55, "sortable": false, "xtype": "checkcolumn", "header": "A besoin d\'un permis de travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "needs_work_permit" }, { "colIndex": 56, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "suspendu jusque", "editor": work_permit_suspended_until3766, "width": Lino.chars2width(9), "dataIndex": "work_permit_suspended_until" }, { "colIndex": 57, "sortable": true, "header": "Type d\'aide sociale", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "aid_type", "editor": aid_type3767 }, { "colIndex": 58, "sortable": false, "xtype": "checkcolumn", "header": "allocation de ch\\u00f4mage", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_ag" }, { "colIndex": 59, "sortable": false, "xtype": "checkcolumn", "header": "waiting pay", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_wg" }, { "colIndex": 60, "sortable": false, "xtype": "checkcolumn", "header": "indemnisation maladie", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_kg" }, { "colIndex": 61, "sortable": false, "xtype": "checkcolumn", "header": "persone de retraite", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_rente" }, { "colIndex": 62, "sortable": false, "xtype": "checkcolumn", "header": "autres revenus", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "income_misc" }, { "colIndex": 63, "sortable": false, "xtype": "checkcolumn", "header": "cherche du travail", "editable": true, "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "is_seeking" }, { "colIndex": 64, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Indidponible jusque", "editor": unavailable_until3774, "width": Lino.chars2width(9), "dataIndex": "unavailable_until" }, { "colIndex": 65, "sortable": true, "header": "raison", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "unavailable_why", "editor": unavailable_why3775 }, { "colIndex": 66, "sortable": false, "header": "Obstacles", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": obstacles3776, "dataIndex": "obstacles" }, { "colIndex": 67, "sortable": false, "header": "Autres talents", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": skills3777, "dataIndex": "skills" }, { "colIndex": 68, "sortable": true, "header": "Agences de travail", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "job_agents", "editor": job_agents3778 }, { "colIndex": 69, "sortable": true, "header": "Personne de contacte ALE ?", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "job_office_contact", "editor": job_office_contact3779 }, { "colIndex": 70, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "client_state", "editor": client_state3780 }, { "colIndex": 71, "sortable": true, "header": "refusal reason", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(44), "dataIndex": "refusal_reason", "editor": refusal_reason3781 } ];\n'
20130515 '    Lino.newcomers.ClientsByFaculty.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insertPanel = Ext.extend(Lino.pcsw.Clients.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Clients",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.newcomers.ClientsByFaculty.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/newcomers/ClientsByFaculty",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detailPanel = Ext.extend(Lino.pcsw.Clients.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Clients",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_eid_content", "menu_item_text": "fiche eID", "must_save": true, "tooltip": "fiche eID", "panel_btn_handler": Lino.row_action_handler(\'print_eid_content\',\'GET\'), "iconCls": "x-tbar-vcard", "overflowText": "fiche eID", "auto_save": true } ],\n'
20130515 '  ls_url: "/newcomers/ClientsByFaculty",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.newcomers.ClientsByFaculty.detail;\n'
20130515 '    this.ls_insert_handler = Lino.newcomers.ClientsByFaculty.insert;\n'
20130515 '    Lino.newcomers.ClientsByFaculty.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.newcomers.ClientsByFaculty.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.newcomers.ClientsByFaculty.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.pcsw.Clients.ParamsPanel({});\n'
20130515 '  return new Lino.newcomers.ClientsByFaculty.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyIdentifyPersonRequests\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3783 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3784 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyIdentifyPersonRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3785 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3786 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3787 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3788 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3789 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3790 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3791 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3792 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3793 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3794 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3795 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3796 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3797 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3798 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3799 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3800 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3801 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3783, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3784, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3793 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3794 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3795 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3796 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3797 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3798 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3799 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3800 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3801 }) ];\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyIdentifyPersonRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyIdentifyPersonRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyIdentifyPersonRequests.insert;\n'
20130515 '    Lino.cbss.MyIdentifyPersonRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyIdentifyPersonRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyIdentifyPersonRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyRequestsByPerson\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates IdentifyPerson",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "type": "int", "name": "id" }, { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "middle_name" }, { "name": "gender" }, \'genderHidden\', { "type": "int", "name": "tolerance" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 5,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 90,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 23,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3803 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/IdentifyRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3804 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3805 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var id3806 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var environment3807 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3808 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3809 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3810 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3811 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3812 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3813 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var birth_date3814 = new Lino.IncompleteDateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var sis_card_no3815 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3816 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3817 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3818 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var middle_name3819 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var gender3820 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.lino.Genders });\n'
20130515 '    var tolerance3821 = new Ext.form.NumberField({ "selectOnFocus": true, "allowBlank": false, "value": 0 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3803 }, { "width": Lino.chars2width(17), "colIndex": 1, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 2, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3806, "width": Lino.chars2width(6), "dataIndex": "id" }), { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3813 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3814 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3815 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3816 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3817 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3818 }, { "colIndex": 16, "sortable": true, "header": "Middle name", "editable": true, "tooltip": "Whatever this means...", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "middle_name", "editor": middle_name3819 }, { "colIndex": 17, "sortable": true, "header": "Sexe", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "gender", "editor": gender3820 }, new Lino.NullNumberColumn({ "colIndex": 18, "sortable": true, "format": "0", "editable": true, "tooltip": "\\n      Falls Monat oder Tag des Geburtsdatums unbekannt sind, \\n      um wieviel Monate bzw. Tage die Suche nach unten/oben ausgeweitet wird.\\n      G\\u00fcltige Werte: 0 bis 10.\\n      ", "filter": { "type": "numeric" }, "header": "Tol\\u00e9rance", "dataIndex": "tolerance", "width": Lino.chars2width(6), "editor": tolerance3821 }) ];\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates IdentifyPerson",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.IdentifyPersonRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates IdentifyPerson",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/IdentifyRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.IdentifyRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.IdentifyRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.IdentifyRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.IdentifyRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAccessRequestsByPerson\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3823 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3824 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var sent3825 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3826 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3827 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3828 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3829 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3830 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3831 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3832 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3833 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3834 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3835 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3836 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3837 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3838 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3839 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3840 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/ManageAccessRequestsByPerson/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3841 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3842 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3843 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3844 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3840.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3839.on('change',Lino.chooser_handler(purpose3840,'sector'));\n"
20130515 '      Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3823, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3824 }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3833 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3834 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3835 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3836 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3837 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3838 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3840 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3841, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3842, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3843 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3844 } ];\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/ManageAccessRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.ManageAccessRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.ManageAccessRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.ManageAccessRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.ManageAccessRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAccessRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyManageAccessRequests\n'
20130515 'Lino.cbss.MyManageAccessRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyManageAccessRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates ManageAccess",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "person" }, \'personHidden\', { "name": "sent" }, { "name": "status" }, \'statusHidden\', { "name": "environment" }, { "name": "ticket" }, { "name": "request_xml" }, { "name": "response_xml" }, { "name": "debug_messages" }, { "name": "info_messages" }, { "name": "national_id" }, { "name": "birth_date" }, { "name": "sis_card_no" }, { "name": "id_card_no" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "sector" }, \'sectorHidden\', { "name": "purpose" }, \'purposeHidden\', { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "type": "date", "name": "end_date", "dateFormat": "d.m.Y" }, { "name": "action" }, \'actionHidden\', { "name": "query_register" }, \'query_registerHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 88,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 29,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3846 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var person3847 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var sent3848 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var status3849 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var environment3850 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    var ticket3851 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var request_xml3852 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var response_xml3853 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var debug_messages3854 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var info_messages3855 = new Ext.form.TextArea({ "disabled": true, "growMax": 2000 });\n'
20130515 '    var national_id3856 = new Ext.form.TextField({ "selectOnFocus": true, "allowBlank": false, "maxLength": 200 });\n'
20130515 '    var birth_date3857 = new Lino.IncompleteDateField({ "selectOnFocus": true });\n'
20130515 '    var sis_card_no3858 = new Ext.form.TextField({ "selectOnFocus": true, "boxMinWidth": Lino.chars2width(10), "maxLength": 10 });\n'
20130515 '    var id_card_no3859 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 20 });\n'
20130515 '    var first_name3860 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var last_name3861 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var sector3862 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Secteur..." });\n'
20130515 '    var purpose3863 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyManageAccessRequests/purpose", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Code fonction..." });\n'
20130515 '    var start_date3864 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var end_date3865 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var action3866 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.ManageAction });\n'
20130515 '    var query_register3867 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.cbss.QueryRegister });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      purpose3863.setContextValue('sector',record ? record.data['sectorHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      sector3862.on('change',Lino.chooser_handler(purpose3863,'sector'));\n"
20130515 '      Lino.cbss.MyManageAccessRequests.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3846, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3847, "dataIndex": "person" }, { "width": Lino.chars2width(17), "colIndex": 2, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 3, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 4, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 5, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "colIndex": 6, "sortable": false, "header": "Requ\\u00eate", "editable": false, "tooltip": "The raw XML string that has (or would have) been sent.", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "request_xml", "renderer": Lino.text_renderer }, { "colIndex": 7, "sortable": false, "header": "R\\u00e9ponse", "editable": false, "tooltip": "The raw XML response received. \\n", "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "response_xml", "renderer": Lino.text_renderer }, { "colIndex": 8, "sortable": false, "header": "Messages debug", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "debug_messages", "renderer": Lino.text_renderer }, { "colIndex": 9, "sortable": false, "header": "Messages info", "editable": false, "filter": { "type": "string" }, "width": Lino.chars2width(61), "dataIndex": "info_messages", "renderer": Lino.text_renderer }, { "colIndex": 10, "sortable": true, "header": "NISS", "editable": true, "tooltip": "The SSIN of the person to register/unregister/list.\\n", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3856 }, { "colIndex": 11, "sortable": true, "header": "date de naissance", "editable": true, "tooltip": "Uncomplete dates are allowed, e.g. \\n\\"00.00.1980\\" means \\"some day in 1980\\", \\n\\"00.07.1980\\" means \\"in July 1980\\"\\nor \\"23.07.0000\\" means \\"on a 23th of July\\".", "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "birth_date", "editor": birth_date3857 }, { "colIndex": 12, "sortable": true, "header": "No carte SIS", "editable": true, "tooltip": "The number of the SIS card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(12), "dataIndex": "sis_card_no", "editor": sis_card_no3858 }, { "colIndex": 13, "sortable": true, "header": "No carte eID", "editable": true, "tooltip": "The number of the ID card used to authenticate the person.", "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "id_card_no", "editor": id_card_no3859 }, { "colIndex": 14, "sortable": true, "header": "Pr\\u00e9nom", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "first_name", "editor": first_name3860 }, { "colIndex": 15, "sortable": true, "header": "Nom de famille", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "last_name", "editor": last_name3861 }, { "colIndex": 16, "sortable": true, "header": "Secteur", "editable": false, "tooltip": "For register and unregister this element is ignored. \\nIt can be used for list, \\nwhen information about sectors is required.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "sector" }, { "colIndex": 17, "sortable": true, "header": "Code fonction", "editable": true, "tooltip": "The purpose for which the inscription needs to be \\nregistered/unregistered or listed. \\nFor listing this field is optional, \\nfor register/unregister it is mandatory.", "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "purpose", "editor": purpose3863 }, { "colIndex": 18, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode du", "editor": start_date3864, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 19, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "P\\u00e9riode au", "editor": end_date3865, "width": Lino.chars2width(9), "dataIndex": "end_date" }, { "colIndex": 20, "sortable": true, "header": "Action", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(14), "dataIndex": "action", "editor": action3866 }, { "colIndex": 21, "sortable": true, "header": "Query Register", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(13), "dataIndex": "query_register", "editor": query_register3867 } ];\n'
20130515 '    Lino.cbss.MyManageAccessRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insertPanel = Ext.extend(Lino.cbss.ManageAccessRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates ManageAccess",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detailPanel = Ext.extend(Lino.cbss.ManageAccessRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates ManageAccess",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyManageAccessRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyManageAccessRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyManageAccessRequests.insert;\n'
20130515 '    Lino.cbss.MyManageAccessRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyManageAccessRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyManageAccessRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyManageAccessRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsRequestsByPerson\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3869 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3870 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3871 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/RetrieveTIGroupsRequestsByPerson/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3872 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3873 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3874 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3875 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3876 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3877 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3878 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3869, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3870 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3871, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3872 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3873 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/RetrieveTIGroupsRequestsByPerson",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.RetrieveTIGroupsRequestsByPerson.insert;\n'
20130515 '    Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.RetrieveTIGroupsRequestsByPerson.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsRequestsByPerson.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.MyRetrieveTIGroupsRequests\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Mes Requ\\u00eates Tx25",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "int", "name": "id" }, { "name": "user" }, \'userHidden\', { "name": "person" }, \'personHidden\', { "name": "national_id" }, { "name": "language" }, \'languageHidden\', { "type": "boolean", "name": "history" }, { "name": "status" }, \'statusHidden\', { "name": "ticket" }, { "name": "sent" }, { "name": "environment" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 0,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 87,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var id3880 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var user3881 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var person3882 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/cbss/MyRetrieveTIGroupsRequests/person", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var national_id3883 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var language3884 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "store": Lino.cbss.RequestLanguages });\n'
20130515 '    var history3885 = new Ext.form.Checkbox({ "selectOnFocus": true, "checked": true });\n'
20130515 '    var status3886 = new Lino.ChoicesFieldElement({ "disabled": true, "forceSelection": true, "store": Lino.cbss.RequestStates });\n'
20130515 '    var ticket3887 = new Ext.form.TextField({ "disabled": true, "maxLength": 36 });\n'
20130515 '    var sent3888 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var environment3889 = new Ext.form.TextField({ "disabled": true, "boxMinWidth": Lino.chars2width(4), "maxLength": 4 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ new Lino.NullNumberColumn({ "colIndex": 0, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3880, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 1, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3881 }, { "colIndex": 2, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'personHidden\',\'Lino.pcsw.Clients.detail\'), "editor": person3882, "dataIndex": "person" }, { "colIndex": 3, "sortable": true, "header": "NISS", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "national_id", "editor": national_id3883 }, { "colIndex": 4, "sortable": true, "header": "Langue", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(10), "dataIndex": "language", "editor": language3884 }, { "colIndex": 5, "sortable": false, "xtype": "checkcolumn", "header": "Historique", "editable": true, "tooltip": "Whatever this means.", "filter": { "type": "boolean" }, "width": Lino.chars2width(11), "dataIndex": "history" }, { "filter": { "type": "string" }, "width": Lino.chars2width(13), "colIndex": 6, "sortable": true, "dataIndex": "status", "header": "State", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 7, "sortable": true, "dataIndex": "ticket", "header": "Ticket", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "sent", "header": "Ex\\u00e9cut\\u00e9", "editable": false, "tooltip": "The date and time when this request has been executed. \\nThis is empty for requests than haven\'t been sent.\\nRead-only." }, { "filter": { "type": "string" }, "width": Lino.chars2width(6), "colIndex": 9, "sortable": true, "dataIndex": "environment", "header": "T/A/B", "editable": false } ];\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Mes Requ\\u00eates Tx25",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(40), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel = Ext.extend(Lino.cbss.RetrieveTIGroupsRequests.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Mes Requ\\u00eates Tx25",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/cbss/MyRetrieveTIGroupsRequests",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cbss.MyRetrieveTIGroupsRequests.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cbss.MyRetrieveTIGroupsRequests.insert;\n'
20130515 '    Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cbss.MyRetrieveTIGroupsRequests.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.MyRetrieveTIGroupsRequests.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class uploads.UploadsByController\n'
20130515 'Lino.uploads.UploadsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/uploads/UploadsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Uploads",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "file" }, { "name": "type" }, \'typeHidden\', { "name": "description" }, { "name": "user" }, \'userHidden\', { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "created" }, { "name": "modified" }, { "name": "mimetype" }, { "type": "date", "name": "valid_until", "dateFormat": "d.m.Y" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 26,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var file3891 = Lino.file_field_handler(this,{ "selectOnFocus": true, "allowBlank": false, "maxLength": 100 });\n'
20130515 '    var type3892 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Type d\'upload..." });\n'
20130515 '    var description3893 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var user3894 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var id3895 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type3896 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id3897 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/uploads/UploadsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var created3898 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var modified3899 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var mimetype3900 = new Ext.form.TextField({ "disabled": true, "maxLength": 64 });\n'
20130515 '    var valid_until3901 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id3897.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type3896.on('change',Lino.chooser_handler(owner_id3897,'owner_type'));\n"
20130515 '      Lino.uploads.UploadsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "header": "File", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "file", "editor": file3891 }, { "colIndex": 1, "sortable": true, "header": "Type d\'upload", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "type", "editor": type3892 }, { "colIndex": 2, "sortable": true, "header": "Description", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "description", "editor": description3893 }, { "colIndex": 3, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user3894 }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id3895, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type3896 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id3897 }, { "width": Lino.chars2width(17), "colIndex": 7, "sortable": true, "dataIndex": "created", "header": "Cr\\u00e9\\u00e9", "editable": false }, { "width": Lino.chars2width(17), "colIndex": 8, "sortable": true, "dataIndex": "modified", "header": "Modified", "editable": false }, { "filter": { "type": "string" }, "width": Lino.chars2width(22), "colIndex": 9, "sortable": true, "dataIndex": "mimetype", "header": "MIME type", "editable": false }, { "colIndex": 10, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "expire le", "editor": valid_until3901, "width": Lino.chars2width(9), "dataIndex": "valid_until" } ];\n'
20130515 '    Lino.uploads.UploadsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insertPanel = Ext.extend(Lino.uploads.MyUploads.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Uploads",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detailPanel = Ext.extend(Lino.uploads.MyUploads.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Uploads",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/uploads/UploadsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.uploads.UploadsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.uploads.UploadsByController.insert;\n'
20130515 '    Lino.uploads.UploadsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.uploads.UploadsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.uploads.UploadsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.uploads.UploadsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingsByController\n'
20130515 'Lino.postings.PostingsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/postings/PostingsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "print_action", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'print_action\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  title : "Envois postaux",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "partner" }, \'partnerHidden\', { "name": "state" }, \'stateHidden\', { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 6,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 38,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 16,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var date708 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var partner709 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/partner", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Partenaire..." });\n'
20130515 '    var state710 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.postings.PostingStates });\n'
20130515 '    var workflow_buttons_disp711 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id712 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type713 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id714 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user715 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project716 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/postings/PostingsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      owner_id714.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type713.on('change',Lino.chooser_handler(owner_id714,'owner_type'));\n"
20130515 '      Lino.postings.PostingsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "date", "editor": date708, "width": Lino.chars2width(9), "dataIndex": "date" }, { "colIndex": 1, "sortable": true, "header": "Destinataire", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'partnerHidden\',\'Lino.contacts.Partners.detail\'), "editor": partner709, "dataIndex": "partner" }, { "colIndex": 2, "sortable": true, "header": "State", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(18), "dataIndex": "state", "editor": state710 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id712, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type713 }, { "colIndex": 6, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id714 }, { "colIndex": 7, "sortable": true, "header": "Auteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user715 }, { "colIndex": 8, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project716, "dataIndex": "project" } ];\n'
20130515 '    Lino.postings.PostingsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 'Lino.postings.PostingsByController.print_action = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/postings/PostingsByController",pk,"print_action");\n'
20130515 '};\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.TasksByController\n'
20130515 'Lino.cal.TasksByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/TasksByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "T\\u00e2ches",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 30,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date719 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var summary720 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp721 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id722 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date719, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "colIndex": 1, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary720 }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id722, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.TasksByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insertPanel = Ext.extend(Lino.cal.TasksByUser.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau T\\u00e2ches",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(50), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.TasksByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.TasksByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/TasksByController",pk,"wf3");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detailPanel = Ext.extend(Lino.cal.TasksByUser.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail T\\u00e2ches",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/TasksByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.TasksByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.TasksByController.insert;\n'
20130515 '    Lino.cal.TasksByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.TasksByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.TasksByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.TasksByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.MailsByController\n'
20130515 'Lino.outbox.MailsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/outbox/MailsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  title : "Outgoing Mails",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "sent" }, { "name": "recipients" }, { "name": "subject" }, { "type": "int", "name": "id" }, { "name": "owner_type" }, \'owner_typeHidden\', { "name": "owner_id" }, \'owner_idHidden\', { "name": "user" }, \'userHidden\', { "name": "project" }, \'projectHidden\', { "type": "date", "name": "date", "dateFormat": "d.m.Y" }, { "name": "body" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 3,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 27,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 15,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var sent662 = new Ext.form.DisplayField({ "disabled": true, "value": "<br>" });\n'
20130515 '    var recipients_htmlbox663 = new Lino.HtmlBoxPanel({ "layout": "fit", "name": "recipients", "containing_panel": this, "items": new Ext.BoxComponent({autoScroll:true}), "title": "Recipients", "master_panel": this, "value": "<br/>", "always_enabled": true, "bodyStyle": "overflow-x:hidden" });\n'
20130515 '    var subject664 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var id665 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    var owner_type666 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_type", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var owner_id667 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/owner_id", "method": "GET" }) }) });\n'
20130515 '    var user668 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/user", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var project669 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/outbox/MailsByController/project", "method": "GET" }) }), "pageSize": 20, "emptyText": "Choisir Client..." });\n'
20130515 '    var date670 = new Lino.DateField({ "selectOnFocus": true, "allowBlank": false });\n'
20130515 '    var body671 = new Lino.RichTextPanel({ "selectOnFocus": true, "containing_panel": this, "title": "Body" });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '      recipients_htmlbox663.refresh();\n'
20130515 "      owner_id667.setContextValue('owner_type',record ? record.data['owner_typeHidden'] : undefined);\n"
20130515 '      body671.refresh();\n'
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      owner_type666.on('change',Lino.chooser_handler(owner_id667,'owner_type'));\n"
20130515 '      Lino.outbox.MailsByController.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "sent", "header": "sent", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "recipients", "header": "Recipients", "editable": false }, { "colIndex": 2, "sortable": true, "header": "Subject", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "subject", "editor": subject664 }, new Lino.NullNumberColumn({ "colIndex": 3, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id665, "width": Lino.chars2width(6), "dataIndex": "id" }), { "colIndex": 4, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (type)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "owner_type", "editor": owner_type666 }, { "colIndex": 5, "sortable": true, "header": "Contr\\u00f4l\\u00e9 par (object)", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "owner_id", "editor": owner_id667 }, { "colIndex": 6, "sortable": true, "header": "exp\\u00e9diteur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user668 }, { "colIndex": 7, "sortable": true, "header": "Client", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "renderer": Lino.fk_renderer(\'projectHidden\',\'Lino.pcsw.Clients.detail\'), "editor": project669, "dataIndex": "project" }, { "colIndex": 8, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "tooltip": "\\n        The official date to be printed on the document.\\n        ", "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date", "dataIndex": "date", "width": Lino.chars2width(9), "editor": date670 }, { "colIndex": 9, "sortable": false, "header": "body", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": body671, "dataIndex": "body" } ];\n'
20130515 '    Lino.outbox.MailsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insertPanel = Ext.extend(Lino.outbox.MyOutbox.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Outgoing Mails",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.outbox.MailsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detailPanel = Ext.extend(Lino.outbox.MyOutbox.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Outgoing Mails",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "send_mail", "menu_item_text": "Envoyer", "must_save": true, "tooltip": "Envoyer", "panel_btn_handler": Lino.row_action_handler(\'send_mail\',\'GET\'), "iconCls": "x-tbar-email_send", "overflowText": "Envoyer", "auto_save": true } ],\n'
20130515 '  ls_url: "/outbox/MailsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.outbox.MailsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.outbox.MailsByController.insert;\n'
20130515 '    Lino.outbox.MailsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.MailsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.outbox.MailsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.MailsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class changes.ChangesByMaster\n'
20130515 'Lino.changes.ChangesByMaster.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/changes/ChangesByMaster",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  title : "Changes",\n'
20130515 '  page_length : 20,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "time" }, { "name": "user" }, \'userHidden\', { "name": "type" }, \'typeHidden\', { "name": "object" }, { "name": "diff" }, { "name": "object_type" }, \'object_typeHidden\', { "name": "object_id" }, \'object_idHidden\', { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 11,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 10,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 13,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var time364 = new Ext.form.DisplayField({ "selectOnFocus": true, "allowBlank": false, "value": "<br>" });\n'
20130515 '    var user365 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/user", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var type366 = new Lino.ChoicesFieldElement({ "selectOnFocus": true, "forceSelection": true, "allowBlank": false, "store": Lino.lino.ChangeTypes });\n'
20130515 '    var object_disp367 = new Ext.form.DisplayField({ "disabled": true });\n'
20130515 '    var diff368 = new Ext.form.TextArea({ "selectOnFocus": true, "growMax": 2000 });\n'
20130515 '    var object_type369 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_type", "method": "GET" }) }), "allowBlank": false, "pageSize": 20, "emptyText": "Choisir type de contenu..." });\n'
20130515 '    var object_id370 = new Lino.RemoteComboFieldElement({ "selectOnFocus": true, "allowBlank": false, "store": new Lino.ComplexRemoteComboStore({ "proxy": new Ext.data.HttpProxy({ "url": "/choices/changes/ChangesByMaster/object_id", "method": "GET" }) }) });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 "      object_id370.setContextValue('object_type',record ? record.data['object_typeHidden'] : undefined);\n"
20130515 '    };\n'
20130515 '    this.onRender = function(ct, position) {\n'
20130515 "      object_type369.on('change',Lino.chooser_handler(object_id370,'object_type'));\n"
20130515 '      Lino.changes.ChangesByMaster.GridPanel.superclass.onRender.call(this, ct, position);\n'
20130515 '    }\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(17), "colIndex": 0, "sortable": true, "dataIndex": "time", "header": "time", "editable": true, "editor": time364 }, { "colIndex": 1, "sortable": true, "header": "Utilisateur", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "user", "editor": user365 }, { "colIndex": 2, "sortable": true, "header": "Change Type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(16), "dataIndex": "type", "editor": type366 }, { "width": Lino.chars2width(11), "colIndex": 3, "sortable": false, "dataIndex": "object", "header": "Object", "editable": false }, { "colIndex": 4, "sortable": false, "header": "Changes", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(61), "renderer": Lino.text_renderer, "editor": diff368, "dataIndex": "diff" }, { "colIndex": 5, "sortable": true, "header": "Object type", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(21), "dataIndex": "object_type", "editor": object_type369 }, { "colIndex": 6, "sortable": true, "header": "object id", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(11), "dataIndex": "object_id", "editor": object_id370 } ];\n'
20130515 '    Lino.changes.ChangesByMaster.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insertPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "Nouveau Changes",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.insert = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.insertPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detailPanel = Ext.extend(Lino.changes.ChangesByMaster.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Changes",\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false } ],\n'
20130515 '  ls_url: "/changes/ChangesByMaster",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.changes.ChangesByMaster.detail;\n'
20130515 '    this.ls_insert_handler = Lino.changes.ChangesByMaster.insert;\n'
20130515 '    Lino.changes.ChangesByMaster.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.changes.ChangesByMaster.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.changes.ChangesByMaster.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.changes.ChangesByMaster.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.EventsByController\n'
20130515 'Lino.cal.EventsByController.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  viewConfig : { "getRowClass": Lino.getRowClass, "emptyText": "No data to display." },\n'
20130515 '  ls_url : "/cal/EventsByController",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  title : "Events",\n'
20130515 '  page_length : 20,\n'
20130515 '  params_panel_hidden : true,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "type": "date", "name": "start_date", "dateFormat": "d.m.Y" }, { "name": "start_time" }, { "name": "summary" }, { "name": "workflow_buttons" }, { "type": "int", "name": "id" }, { "name": "disabled_fields" }, { "name": "disabled_actions" }, { "name": "disable_editing" } ],\n'
20130515 '  pk_index : 4,\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  content_type : 36,\n'
20130515 '  ls_id_property : "id",\n'
20130515 '  gc_name : 0,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var start_date1477 = new Lino.DateField({ "selectOnFocus": true });\n'
20130515 '    var start_time1478 = new Lino.TimeField({ "selectOnFocus": true });\n'
20130515 '    var summary1479 = new Ext.form.TextField({ "selectOnFocus": true, "maxLength": 200 });\n'
20130515 '    var workflow_buttons_disp1480 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var id1481 = new Ext.form.NumberField({ "selectOnFocus": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "colIndex": 0, "sortable": true, "xtype": "datecolumn", "format": "d.m.Y", "editable": true, "filter": { "type": "date", "dateFormat": "d.m.Y" }, "header": "Date d\\u00e9but", "editor": start_date1477, "width": Lino.chars2width(9), "dataIndex": "start_date" }, { "width": Lino.chars2width(9), "colIndex": 1, "sortable": true, "dataIndex": "start_time", "header": "Heure de d\\u00e9but", "editable": true, "editor": start_time1478 }, { "colIndex": 2, "sortable": true, "header": "R\\u00e9sum\\u00e9", "editable": true, "filter": { "type": "string" }, "width": Lino.chars2width(22), "dataIndex": "summary", "editor": summary1479 }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "workflow_buttons", "header": "Workflow", "editable": false }, new Lino.NullNumberColumn({ "colIndex": 4, "sortable": true, "format": "0", "editable": true, "filter": { "type": "numeric" }, "header": "ID", "renderer": Lino.id_renderer, "editor": id1481, "width": Lino.chars2width(6), "dataIndex": "id" }) ];\n'
20130515 '    Lino.cal.EventsByController.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insertPanel = Ext.extend(Lino.cal.MyEvents.InsertFormPanel,{\n'
20130515 '  empty_title: "Nouveau Events",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "post", "menu_item_text": "Cr\\u00e9er", "tooltip": "Create the record and open a detail window on it", "panel_btn_handler": function(panel){panel.save(null,true,\'post\')}, "text": "Cr\\u00e9er", "overflowText": "Cr\\u00e9er", "auto_save": false }, { "itemId": "poststay", "menu_item_text": "Create without detail", "tooltip": "Don\'t open a detail window on the new record", "panel_btn_handler": function(panel){panel.save(null,false,\'poststay\')}, "text": "Create without detail", "overflowText": "Create without detail", "auto_save": false } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "insert",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.insertPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.insert = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "autoHeight": true, "maximizable": true, "modal": true, "maximized": false },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.cal.EventsByController.insertPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.cal.EventsByController.wf8 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/cal/EventsByController",pk,"wf8");\n'
20130515 '};\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detailPanel = Ext.extend(Lino.cal.MyEvents.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Events",\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "put", "menu_item_text": "Enregistrer", "tooltip": "Save changes in this form", "panel_btn_handler": function(panel){panel.save(null,false,\'put\')}, "iconCls": "x-tbar-save", "overflowText": "Enregistrer", "auto_save": false }, { "itemId": "insert", "menu_item_text": "Nouveau", "must_save": true, "tooltip": "Insert a new record", "panel_btn_handler": function(panel){Lino.show_insert(panel)}, "iconCls": "x-tbar-new", "overflowText": "Nouveau", "auto_save": true }, { "itemId": "duplicate", "menu_item_text": "Dupliquer", "must_save": true, "tooltip": "Dupliquer", "panel_btn_handler": Lino.row_action_handler(\'duplicate\',\'GET\'), "iconCls": "x-tbar-duplicate", "overflowText": "Dupliquer", "auto_save": true }, { "itemId": null, "menu_item_text": "Supprimer", "tooltip": "Delete this record", "panel_btn_handler": Lino.delete_selected, "iconCls": "x-tbar-delete", "overflowText": "Supprimer", "auto_save": false }, { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true }, { "itemId": "do_clear_cache", "menu_item_text": "Effacer la cache", "must_save": true, "tooltip": "Effacer la cache", "panel_btn_handler": Lino.row_action_handler(\'do_clear_cache\',\'GET\'), "iconCls": "x-tbar-clearcache", "overflowText": "Effacer la cache", "auto_save": true }, { "itemId": "create_postings", "menu_item_text": "C\\u00e9er envoi postal", "must_save": true, "tooltip": "Create classical mail postings from this", "panel_btn_handler": Lino.row_action_handler(\'create_postings\',\'GET\'), "iconCls": "x-tbar-create-postings", "overflowText": "C\\u00e9er envoi postal", "auto_save": true } ],\n'
20130515 '  ls_url: "/cal/EventsByController",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.cal.EventsByController.detail;\n'
20130515 '    this.ls_insert_handler = Lino.cal.EventsByController.insert;\n'
20130515 '    Lino.cal.EventsByController.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.EventsByController.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.EventsByController.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.EventsByController.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.cal.MyEvents.ParamsPanel({});\n'
20130515 '  return new Lino.cal.EventsByController.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.Models\n'
20130515 'Lino.about.Models.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/Models",\n'
20130515 '  ls_bbar_actions : [ { "itemId": "detail", "menu_item_text": "D\\u00e9tail", "tooltip": "Open a detail window on this record", "panel_btn_handler": Lino.show_detail, "iconCls": "x-tbar-detail", "overflowText": "D\\u00e9tail", "auto_save": true } ],\n'
20130515 '  title : "Models",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "app" }, { "name": "name" }, { "name": "docstring" }, { "name": "rows" }, { "name": "detail_action" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 6,\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var app_disp3903 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var name_disp3904 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var docstring_disp3905 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var rows3906 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var detail_action_disp3907 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "app", "header": "app_label", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "docstring", "header": "docstring", "editable": false }, new Lino.NullNumberColumn({ "header": "Rows", "colIndex": 3, "sortable": false, "dataIndex": "rows", "format": "0", "editable": false, "width": Lino.chars2width(6) }), { "width": Lino.chars2width(31), "colIndex": 4, "sortable": false, "dataIndex": "detail_action", "header": "detail_action", "editable": false } ];\n'
20130515 '    Lino.about.Models.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 '\n'
20130515 'Lino.about.Models.detailPanel = Ext.extend(Lino.about.Models.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9tail Models",\n'
20130515 '  ls_bbar_actions: [  ],\n'
20130515 '  ls_url: "/about/Models",\n'
20130515 '  action_name: "detail",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.Models.detail;\n'
20130515 '    Lino.about.Models.detailPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.Models.detail = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.detailPanel(p);\n'
20130515 '});\n'
20130515 'Lino.about.Models.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.Models.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.FieldsByModel\n'
20130515 'Lino.about.FieldsByModel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/FieldsByModel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Fields",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "name" }, { "name": "verbose_name" }, { "name": "help_text_column" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var name_disp2434 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var verbose_name_disp2435 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var help_text_column_disp2436 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 1, "sortable": false, "dataIndex": "verbose_name", "header": "verbose name", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 2, "sortable": false, "dataIndex": "help_text_column", "header": "help text", "editable": false } ];\n'
20130515 '    Lino.about.FieldsByModel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.FieldsByModel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.FieldsByModel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class about.SourceFiles\n'
20130515 'Lino.about.SourceFiles.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/about/SourceFiles",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Source files",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "module_name" }, { "type": "int", "name": "code_lines" }, { "type": "int", "name": "doc_lines" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var module_name3909 = new Ext.form.TextField({ "disabled": true, "maxLength": null });\n'
20130515 '    var code_lines3910 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var doc_lines3911 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(5), "colIndex": 0, "sortable": false, "dataIndex": "module_name", "header": "module name", "editable": false }, new Lino.NullNumberColumn({ "header": "Code", "colIndex": 1, "sortable": false, "dataIndex": "code_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "doc", "colIndex": 2, "sortable": false, "dataIndex": "doc_lines", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.about.SourceFiles.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.SourceFiles.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.about.SourceFiles.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.UsersWithClients\n'
20130515 'Lino.pcsw.UsersWithClients.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/UsersWithClients",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Agents et leurs clients",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "user" }, \'userHidden\', { "name": "G1" }, { "name": "G2" }, { "name": "G4" }, { "name": "G4bis" }, { "name": "G9" }, { "name": "primary_clients" }, { "name": "active_clients" }, { "name": "row_total" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 11,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var user3913 = new Lino.RemoteComboFieldElement({ "disabled": true, "store": new Lino.ComplexRemoteComboStore({  }), "pageSize": 20, "emptyText": "Choisir Utilisateur..." });\n'
20130515 '    var G13914 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G23915 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G43916 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G4bis3917 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var G93918 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var primary_clients3919 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var active_clients3920 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    var row_total3921 = new Ext.form.NumberField({ "disabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "user", "header": "Accompagnant", "editable": false }, new Lino.NullNumberColumn({ "header": "Bilan", "colIndex": 1, "sortable": false, "dataIndex": "G1", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Formation", "colIndex": 2, "sortable": false, "dataIndex": "G2", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Recherche", "colIndex": 3, "sortable": false, "dataIndex": "G4", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Travail", "colIndex": 4, "sortable": false, "dataIndex": "G4bis", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Standby", "colIndex": 5, "sortable": false, "dataIndex": "G9", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Dossiers complets", "colIndex": 6, "sortable": false, "dataIndex": "primary_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Clients actifs", "colIndex": 7, "sortable": false, "dataIndex": "active_clients", "format": "0", "editable": false, "width": Lino.chars2width(6) }), new Lino.NullNumberColumn({ "header": "Total", "colIndex": 8, "sortable": false, "dataIndex": "row_total", "format": "0", "editable": false, "width": Lino.chars2width(6) }) ];\n'
20130515 '    Lino.pcsw.UsersWithClients.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.UsersWithClients.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.UsersWithClients.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class debts.SummaryTable\n'
20130515 'Lino.debts.SummaryTable.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/debts/SummaryTable",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "SummaryTable",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "desc" }, { "name": "amount" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "forceFit": true, "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 3,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var desc_disp3923 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var amount3924 = new Ext.form.NumberField({ "disabled": true, "decimalPrecision": 2, "decimalSeparator": "," });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(31), "colIndex": 0, "sortable": false, "dataIndex": "desc", "header": "Description", "editable": false }, new Lino.NullNumberColumn({ "width": Lino.chars2width(13), "colIndex": 1, "sortable": false, "dataIndex": "amount", "header": "Montant", "editable": false }) ];\n'
20130515 '    Lino.debts.SummaryTable.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.debts.SummaryTable.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.debts.SummaryTable.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.IdentifyPersonResult\n'
20130515 'Lino.cbss.IdentifyPersonResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/IdentifyPersonResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "national_id" }, { "name": "last_name" }, { "name": "first_name" }, { "name": "address" }, { "name": "birth_date" }, { "name": "birth_location" }, { "name": "civil_state" }, { "name": "gender" }, \'genderHidden\', { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 10,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var national_id_disp2193 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var last_name_disp2194 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var first_name_disp2195 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var address_disp2196 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_date_disp2197 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var birth_location_disp2198 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var civil_state_disp2199 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var gender2200 = new Lino.ChoicesFieldElement({ "disabled": true, "store": [ [ "M", "Masculin" ], [ "F", "F\\u00e9minin" ] ] });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(11), "colIndex": 0, "sortable": false, "dataIndex": "national_id", "header": "NISS", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 1, "sortable": false, "dataIndex": "last_name", "header": "Nom de famille", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 2, "sortable": false, "dataIndex": "first_name", "header": "Pr\\u00e9nom", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 3, "sortable": false, "dataIndex": "address", "header": "Addresse", "editable": false }, { "width": Lino.chars2width(11), "colIndex": 4, "sortable": false, "dataIndex": "birth_date", "header": "date de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 5, "sortable": false, "dataIndex": "birth_location", "header": "Lieu de naissance", "editable": false }, { "width": Lino.chars2width(31), "colIndex": 6, "sortable": false, "dataIndex": "civil_state", "header": "Etat civil", "editable": false }, { "width": Lino.chars2width(21), "colIndex": 7, "sortable": false, "dataIndex": "gender", "header": "Sexe", "editable": false } ];\n'
20130515 '    Lino.cbss.IdentifyPersonResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.IdentifyPersonResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.IdentifyPersonResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RetrieveTIGroupsResult\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RetrieveTIGroupsResult",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "R\\u00e9sultats",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "group" }, { "name": "type" }, { "type": "date", "name": "since", "dateFormat": "d.m.Y" }, { "name": "info" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 5,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var group_disp2340 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var type_disp2341 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    var since2342 = new Lino.DateField({ "disabled": true });\n'
20130515 '    var info_disp2343 = new Ext.form.DisplayField({ "disabled": true, "value": "<br/>", "always_enabled": true });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(19), "colIndex": 0, "sortable": false, "dataIndex": "group", "header": "Groupe", "editable": false }, { "width": Lino.chars2width(6), "colIndex": 1, "sortable": false, "dataIndex": "type", "header": "TI", "editable": false }, { "colIndex": 2, "sortable": false, "xtype": "datecolumn", "format": "d.m.Y", "editable": false, "header": "Depuis", "dataIndex": "since", "width": Lino.chars2width(15) }, { "width": Lino.chars2width(51), "colIndex": 3, "sortable": false, "dataIndex": "info", "header": "Information", "editable": false } ];\n'
20130515 '    Lino.cbss.RetrieveTIGroupsResult.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RetrieveTIGroupsResult.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RetrieveTIGroupsResult.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.showPanel = Ext.extend(Lino.ui.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/ui/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.ui.Home.show;\n'
20130515 '    Lino.ui.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.ui.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.ui.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.showPanel = Ext.extend(Lino.about.About.DetailFormPanel,{\n'
20130515 '  empty_title: "About",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/about/About",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.about.About.show;\n'
20130515 '    Lino.about.About.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.about.About.show = new Lino.WindowAction({ "draggable": true, "width": Lino.chars2width(60), "maximizable": true, "modal": true, "maximized": false, "height": Lino.rows2height(20) },function(){\n'
20130515 '  var p = { "is_main_window": true, "hide_top_toolbar": true };\n'
20130515 '  return new Lino.about.About.showPanel(p);\n'
20130515 '});\n'
20130515 'Lino.cal.CalendarPanel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  return Lino.calendar_app.get_main_panel();\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.showPanel = Ext.extend(Lino.lino.Home.DetailFormPanel,{\n'
20130515 '  empty_title: "D\\u00e9part",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/lino/Home",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.lino.Home.show;\n'
20130515 '    Lino.lino.Home.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Home.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "hide_window_title": true, "hide_top_toolbar": true, "is_main_window": true };\n'
20130515 '  return new Lino.lino.Home.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.showPanel = Ext.extend(Lino.jobs.JobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/JobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.JobsOverview.show;\n'
20130515 '    Lino.jobs.JobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.JobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.JobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.JobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.showPanel = Ext.extend(Lino.jobs.NewJobsOverview.DetailFormPanel,{\n'
20130515 '  empty_title: "Situation contrats Art 60-7",\n'
20130515 '  hide_navigator: true,\n'
20130515 '  params_panel_hidden: true,\n'
20130515 '  ls_bbar_actions: [ { "itemId": "do_print", "menu_item_text": "Imprimer", "must_save": true, "tooltip": "Imprimer", "panel_btn_handler": Lino.row_action_handler(\'do_print\',\'GET\'), "iconCls": "x-tbar-print", "overflowText": "Imprimer", "auto_save": true } ],\n'
20130515 '  ls_url: "/jobs/NewJobsOverview",\n'
20130515 '  initComponent : function() {\n'
20130515 '    this.ls_detail_handler = Lino.jobs.NewJobsOverview.show;\n'
20130515 '    Lino.jobs.NewJobsOverview.showPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.NewJobsOverview.show = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  p.params_panel = new Lino.jobs.NewJobsOverview.ParamsPanel({});\n'
20130515 '  return new Lino.jobs.NewJobsOverview.showPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class courses.CourseRequestStates\n'
20130515 'Lino.courses.CourseRequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/courses/CourseRequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3926 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3927 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3928 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.courses.CourseRequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.courses.CourseRequestStates.wf1 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf1");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf2 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf2");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf3 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf3");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf4 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf4");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf5 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf5");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf6 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf6");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.wf7 = function(rp,pk) { \n'
20130515 '  Lino.run_row_action(rp,"/courses/CourseRequestStates",pk,"wf7");\n'
20130515 '};\n'
20130515 'Lino.courses.CourseRequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.courses.CourseRequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class postings.PostingStates\n'
20130515 'Lino.postings.PostingStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/postings/PostingStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3930 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3931 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3932 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.postings.PostingStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.postings.PostingStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.postings.PostingStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.DurationUnits\n'
20130515 'Lino.cal.DurationUnits.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/DurationUnits",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DurationUnits",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3934 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3935 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3936 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.DurationUnits.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.DurationUnits.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.DurationUnits.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.Weekdays\n'
20130515 'Lino.cal.Weekdays.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/Weekdays",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Weekdays",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3938 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3939 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3940 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.Weekdays.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.Weekdays.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.Weekdays.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class accounts.AccountTypes\n'
20130515 'Lino.accounts.AccountTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/accounts/AccountTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccountTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3942 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3943 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3944 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.accounts.AccountTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.accounts.AccountTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.accounts.AccountTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cv.CefLevel\n'
20130515 'Lino.cv.CefLevel.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cv/CefLevel",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CEF levels",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3946 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3947 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3948 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cv.CefLevel.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cv.CefLevel.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cv.CefLevel.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.HowWell\n'
20130515 'Lino.properties.HowWell.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/HowWell",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "HowWell",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3950 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3951 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3952 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.HowWell.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.HowWell.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.HowWell.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class jobs.CandidatureStates\n'
20130515 'Lino.jobs.CandidatureStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/jobs/CandidatureStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Candidature states",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3954 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3955 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3956 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.jobs.CandidatureStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.jobs.CandidatureStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.jobs.CandidatureStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class outbox.RecipientType\n'
20130515 'Lino.outbox.RecipientType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/outbox/RecipientType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RecipientType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3958 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3959 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3960 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.outbox.RecipientType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.outbox.RecipientType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.outbox.RecipientType.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class countries.CityTypes\n'
20130515 'Lino.countries.CityTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/countries/CityTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "CityTypes",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3962 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3963 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3964 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.countries.CityTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.countries.CityTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.countries.CityTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class properties.DoYouLike\n'
20130515 'Lino.properties.DoYouLike.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/properties/DoYouLike",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "DoYouLike",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3966 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3967 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3968 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.properties.DoYouLike.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.properties.DoYouLike.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.properties.DoYouLike.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestLanguages\n'
20130515 'Lino.cbss.RequestLanguages.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestLanguages",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RequestLanguages",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3970 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3971 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3972 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestLanguages.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestLanguages.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestLanguages.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.ManageAction\n'
20130515 'Lino.cbss.ManageAction.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/ManageAction",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ManageAction",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3974 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3975 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3976 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.ManageAction.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.ManageAction.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.ManageAction.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.RefusalReasons\n'
20130515 'Lino.pcsw.RefusalReasons.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/RefusalReasons",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "RefusalReasons",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3978 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3979 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3980 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.RefusalReasons.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.RefusalReasons.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.RefusalReasons.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.RequestStates\n'
20130515 'Lino.cbss.RequestStates.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/RequestStates",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "States",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3982 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3983 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3984 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.RequestStates.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.RequestStates.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.RequestStates.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.ChangeTypes\n'
20130515 'Lino.lino.ChangeTypes.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/ChangeTypes",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Change Types",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3986 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3987 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3988 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.ChangeTypes.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.ChangeTypes.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.ChangeTypes.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cal.AccessClasses\n'
20130515 'Lino.cal.AccessClasses.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cal/AccessClasses",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "AccessClasses",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3990 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3991 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3992 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cal.AccessClasses.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cal.AccessClasses.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cal.AccessClasses.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class cbss.QueryRegister\n'
20130515 'Lino.cbss.QueryRegister.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/cbss/QueryRegister",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "QueryRegister",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3994 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3995 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text3996 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.cbss.QueryRegister.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.cbss.QueryRegister.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.cbss.QueryRegister.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class lino.Genders\n'
20130515 'Lino.lino.Genders.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/lino/Genders",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "Genders",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value3998 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name3999 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4000 = new Ext.form.TextFNo Lino in response
Retry userdocs/gen/screenshots/nl/cal.CalendarPanel.jpg (3 attempts left)
ield({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.lino.Genders.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.lino.Genders.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.lino.Genders.GridPanel(p);\n'
20130515 '});\n'
20130515 '\n'
20130515 '// js_render_GridPanel_class pcsw.ResidenceType\n'
20130515 'Lino.pcsw.ResidenceType.GridPanel = Ext.extend(Lino.GridPanel,{\n'
20130515 '  ls_url : "/pcsw/ResidenceType",\n'
20130515 '  ls_bbar_actions : [  ],\n'
20130515 '  title : "ResidenceType",\n'
20130515 '  page_length : 20,\n'
20130515 '  gc_name : 0,\n'
20130515 '  stripeRows : true,\n'
20130515 '  ls_quick_edit : true,\n'
20130515 '  ls_store_fields : [ { "name": "value" }, { "name": "name" }, { "name": "text" }, { "name": "disabled_fields" }, { "name": "disabled_actions" } ],\n'
20130515 '  ls_grid_configs : [  ],\n'
20130515 '  viewConfig : { "emptyText": "No data to display." },\n'
20130515 '  disable_editing : true,\n'
20130515 '  disabled_actions_index : 4,\n'
20130515 '  initComponent : function() {\n'
20130515 '    var ww = this.containing_window;\n'
20130515 '    var value4002 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var name4003 = new Ext.form.TextField({ "disabled": true, "maxLength": 20 });\n'
20130515 '    var text4004 = new Ext.form.TextField({ "disabled": true, "maxLength": 50 });\n'
20130515 '    this.before_row_edit = function(record) {\n'
20130515 '    };\n'
20130515 '    this.ls_columns = [ { "width": Lino.chars2width(22), "colIndex": 0, "sortable": false, "dataIndex": "value", "header": "value", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 1, "sortable": false, "dataIndex": "name", "header": "name", "editable": false }, { "width": Lino.chars2width(22), "colIndex": 2, "sortable": false, "dataIndex": "text", "header": "text", "editable": false } ];\n'
20130515 '    Lino.pcsw.ResidenceType.GridPanel.superclass.initComponent.call(this);\n'
20130515 '  }\n'
20130515 '});\n'
20130515 '\n'
20130515 'Lino.pcsw.ResidenceType.grid = new Lino.WindowAction({  },function(){\n'
20130515 '  var p = { "is_main_window": true };\n'
20130515 '  return new Lino.pcsw.ResidenceType.GridPanel(p);\n'
20130515 '});\n'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:49 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "count": 5, "rows": [ { "babel_name": "Rencontres internes avec client", "description": "", "color": 20, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 1 }, { "babel_name": "Rencontres client externes", "description": "", "color": 1, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 2 }, { "babel_name": "R\\u00e9unions internes", "description": "", "color": 4, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 3 }, { "babel_name": "R\\u00e9unions externes", "description": "", "color": 8, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 4 }, { "babel_name": "Coordinations en \\u00e9quipe", "description": "", "color": 12, "disable_editing": false, "is_hidden": false, "disabled_fields": { "is_hidden": true, "id": true }, "disabled_actions": {  }, "id": 5 } ] }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:49 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "count": 8, "rows": [ { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Propos\\u00e9) Diner avec SAFFRE Luc (112)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-14T08:30:00", "end_dt": "2013-05-14T09:30:00", "id": 66, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Draft) Souper avec AUSDEMWALD Alfons (116)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-15T09:40:00", "end_dt": "2013-05-15T10:55:00", "id": 67, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Communiqu\\u00e9) Petit-d\\u00e9jeuner avec BASTIAENSEN Laurent (117)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-16T10:20:00", "end_dt": "2013-05-16T11:50:00", "id": 68, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Planif\\u00e9) Rencontre avec COLLARD Charlotte (118)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 4, "calendar": "R\\u00e9unions externes", "start_dt": "2013-05-16T11:10:00", "end_dt": "2013-05-16T12:55:00", "id": 69, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(a eu lieu) Consultation avec CHANTRAINE Marc (120)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 5, "calendar": "Coordinations en \\u00e9quipe", "start_dt": "2013-05-17T13:30:00", "end_dt": "2013-05-17T15:30:00", "id": 70, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(D\\u00e9plac\\u00e9) S\\u00e9minaire avec DERICUM Daniel (121)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-18T08:30:00", "end_dt": "2013-05-18T11:00:00", "id": 71, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Annul\\u00e9) Evaluation avec DEMEULENAERE Doroth\\u00e9e (122)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-18T09:40:00", "end_dt": "2013-05-18T12:40:00", "id": 72, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Absent) Premi\\u00e8re rencontre avec DOBBELSTEIN-DEMEULENAERE Doroth\\u00e9e (123)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-19T10:20:00", "end_dt": "2013-05-19T11:20:00", "id": 73, "reminder": false } ] }'
20130515 authenticate alicia,1234
20130515 'HTTP/1.0 200 OK\r\n'
20130515 'Date: Wed, 15 May 2013 08:45:49 GMT\r\n'
20130515 'Server: WSGIServer/0.1 Python/2.7.3\r\n'
20130515 'Vary: Cookie, Accept-Language\r\nContent-Type: application/json\r\nContent-Language: fr\r\n\r\n'
20130515 '{ "count": 8, "rows": [ { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Propos\\u00e9) Diner avec SAFFRE Luc (112)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-14T08:30:00", "end_dt": "2013-05-14T09:30:00", "id": 66, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Draft) Souper avec AUSDEMWALD Alfons (116)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-15T09:40:00", "end_dt": "2013-05-15T10:55:00", "id": 67, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Communiqu\\u00e9) Petit-d\\u00e9jeuner avec BASTIAENSEN Laurent (117)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-16T10:20:00", "end_dt": "2013-05-16T11:50:00", "id": 68, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Planif\\u00e9) Rencontre avec COLLARD Charlotte (118)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 4, "calendar": "R\\u00e9unions externes", "start_dt": "2013-05-16T11:10:00", "end_dt": "2013-05-16T12:55:00", "id": 69, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(a eu lieu) Consultation avec CHANTRAINE Marc (120)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 5, "calendar": "Coordinations en \\u00e9quipe", "start_dt": "2013-05-17T13:30:00", "end_dt": "2013-05-17T15:30:00", "id": 70, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(D\\u00e9plac\\u00e9) S\\u00e9minaire avec DERICUM Daniel (121)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 1, "calendar": "Rencontres internes avec client", "start_dt": "2013-05-18T08:30:00", "end_dt": "2013-05-18T11:00:00", "id": 71, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary":Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen57" style="display: none; "></div><div id="ext-comp-1099" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-tl"><div class="x-window-tr"><div class="x-window-tc"><div class="x-window-header x-unselectable" id="ext-gen49" style="-webkit-user-select: none; "><div class="x-tool x-tool-close" id="ext-gen55">&nbsp;</div><div class="x-tool x-tool-pin" id="ext-gen54">&nbsp;</div><span class="x-window-header-text" id="ext-gen58">Calendrier</span></div></div></div></div><div class="x-window-bwrap" id="ext-gen50"><div class="x-window-ml"><div class="x-window-mr"><div class="x-window-mc" id="ext-gen53"><div class="x-window-body" id="ext-gen51" style="width: 1018px; height: 679px; "><div id="ext-comp-1082" class=" x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen60"><div class="x-panel-body x-panel-body-noheader" id="ext-gen61" style="width: 1012px; height: 677px; "><div id="app-center" class=" x-panel" style="width: 1012px; "><div class="x-panel-header x-unselectable app-center-header" id="ext-gen63" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen66">Mai 13 - 19, 2013</span></div><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-border-layout-ct" id="ext-gen65" style="width: 1006px; height: 650px; "><div id="app-west" class=" x-panel x-panel-noborder x-border-panel" style="width: 176px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder" id="ext-gen69" style="width: 172px; height: 650px; "><div class="x-date-picker x-unselectable ext-cal-nav-picker" id="ext-gen70" style="-webkit-user-select: none; width: 175px; "><table cellspacing="0" id="ext-gen71" style="width: 175px; "><tbody><tr><td class="x-date-left"><a href="#" title="Mois précédent (CTRL+Flèche gauche)" id="ext-gen72" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td><td class="x-date-middle" align="center" id="ext-gen75"><table id="ext-comp-1100" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class=" x-btn-arrow" unselectable="on" id="ext-gen77"><button type="button" id="ext-gen76" class=" x-btn-text">Mai 2013</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-date-right"><a href="#" title="Mois suivant (CTRL+Flèche droite)" id="ext-gen73" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td></tr><tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr><th><span>L</span></th><th><span>M</span></th><th><span>M</span></th><th><span>J</span></th><th><span>V</span></th><th><span>S</span></th><th><span>D</span></th></tr></thead><tbody><tr><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>10</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>11</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>12</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>13</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>14</span></em></a></td><td class="x-date-active x-date-today x-date-selected" title="Aujourd'hui"><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>15</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>16</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>17</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>18</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>19</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>20</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>21</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>22</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>23</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>24</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>25</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>26</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>27</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>28</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>31</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td></tr><tr><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td></tr></tbody></table></td></tr><tr><td colspan="3" class="x-date-bottom" align="center" id="ext-gen78"><table id="ext-comp-1101" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen79" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table><div class="x-date-mp" id="ext-gen74"></div></div><div id="ext-comp-1083" class=" x-panel"><div class="x-panel-bwrap" id="ext-gen80"><div class="x-panel-body x-panel-body-noheader" id="ext-gen81"><table id="ext-comp-1081" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen89" class=" x-btn-text">Team view</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></div></div><div id="ext-comp-1084" class=" x-panel x-calendar-list x-panel-noborder" style="width: 175px; "><div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen83" style="-webkit-user-select: none; "><div class="x-tool x-tool-toggle" id="ext-gen86">&nbsp;</div><span class="x-panel-header-text" id="ext-gen87">Agendas</span></div><div class="x-panel-bwrap" id="ext-gen84"><div class="x-panel-body x-panel-body-noborder" id="ext-gen85" style="width: 171px; height: auto; "><ul class="x-unselectable"><li id="ext-comp-1084__1" class="ext-cal-evr x-cal-20-ad ">Rencontres internes avec client<em>&nbsp;</em></li><li id="ext-comp-1084__2" class="ext-cal-evr x-cal-1-ad ">Rencontres client externes<em>&nbsp;</em></li><li id="ext-comp-1084__3" class="ext-cal-evr x-cal-4-ad ">Réunions internes<em>&nbsp;</em></li><li id="ext-comp-1084__4" class="ext-cal-evr x-cal-8-ad ">Réunions externes<em>&nbsp;</em></li><li id="ext-comp-1084__5" class="ext-cal-evr x-cal-12-ad ">Coordinations en équipe<em>&nbsp;</em></li></ul></div></div></div></div></div></div><div id="app-calendar" class=" x-panel x-cal-panel x-panel-noborder x-border-panel" style="width: 834px; left: 176px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen90"><div class="x-panel-tbar x-panel-tbar-noheader x-panel-tbar-noborder" id="ext-gen91" style="width: 834px; "><div id="ext-comp-1085" class="x-toolbar x-small-editor ext-cal-toolbar x-toolbar-layout-ct" style="width: 828px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen98"><table id="app-calendar-tb-today" cellspacing="0" class="x-btn  x-btn-noicon x-item-disabled" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen99" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen100"><table id="app-calendar-tb-prev" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen101" class=" x-btn-text x-tbar-page-prev">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen102"><table id="app-calendar-tb-next" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen103" class=" x-btn-text x-tbar-page-next">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen104"><div class="xtb-text" id="ext-comp-1086">Aller au :</div></td><td class="x-toolbar-cell" id="ext-gen105"><div class="x-form-field-wrap x-form-field-trigger-wrap" id="ext-gen106" style="width: 94px; "><input type="text" size="10" autocomplete="off" id="app-calendar-tb-jump-dt" name="app-calendar-tb-jump-dt" class="x-form-text x-form-field" style="width: 69px; "><img src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif" alt="" class="x-form-trigger x-form-date-trigger" id="ext-gen107"></div></td><td class="x-toolbar-cell" id="ext-gen108"><table id="app-calendar-tb-jump" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen109" class=" x-btn-text">Ok</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen110"><table id="app-calendar-tb-day" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen111" class=" x-btn-text">Jour</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen112"><table id="app-calendar-tb-week" cellspacing="0" class="x-btn  x-btn-noicon x-btn-pressed" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen113" class=" x-btn-text">Semaine</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen114"><table id="app-calendar-tb-multiweek" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen115" class=" x-btn-text">2 semaines</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen116"><table id="app-calendar-tb-month" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen117" class=" x-btn-text">Mois</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-cal-body" id="ext-gen92" style="width: 830px; height: 622px; "><div id="app-calendar-week" class=" ext-cal-dayview ext-cal-ct" style="width: 830px; height: 622px; "><div id="app-calendar-week-hd" class=" ext-cal-day-header ext-cal-monthview ext-cal-ct x-unselectable" style="-webkit-user-select: none; height: 52px; "><div class="ext-cal-hd-ct"><table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0"><tbody><tr><td class="ext-cal-gutter"></td><td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner" id="ext-gen144" style="height: 50px; "><div id="app-calendar-week-hd-wk-0" class="ext-cal-wk-ct" style="top:0%; height:100%;"><table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0" id="ext-gen145" style="height: 49px; "><tbody><tr><td id="app-calendar-week-hd-day-20130513" class="ext-cal-day  ext-cal-day-first">&nbsp;</td><td id="app-calendar-week-hd-day-20130514" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130515" class="ext-cal-day  ext-cal-day-today">&nbsp;</td><td id="app-calendar-week-hd-day-20130516" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130517" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130518" class="ext-cal-day  ext-cal-day-we">&nbsp;</td><td id="app-calendar-week-hd-day-20130519" class="ext-cal-day  ext-cal-day-we">&nbsp;</td></tr></tbody></table><table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0" id="ext-gen143"><tbody><tr><td id="app-calendar-week-hd-ev-day-20130513" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>13 Mai 2013</div></td><td id="app-calendar-week-hd-ev-day-20130514" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Mar 14</div></td><td id="app-calendar-week-hd-ev-day-20130515" class="ext-cal-dtitle  ext-cal-dtitle-today ext-cal-dtitle-first"><div>Aujourd'hui <span id="app-calendar-week-hd-clock" class="ext-cal-dtitle-time">11:45</span></div></td><td id="app-calendar-week-hd-ev-day-20130516" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Jeu 16</div></td><td id="app-calendar-week-hd-ev-day-20130517" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Ven 17</div></td><td id="app-calendar-week-hd-ev-day-20130518" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Sam 18</div></td><td id="app-calendar-week-hd-ev-day-20130519" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Dim 19</div></td></tr><tr id="ext-gen142"><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130513" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130514" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130515" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130516" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130517" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130518" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130519" rowspan="2">&nbsp;</td></tr></tbody></table></div></div></td><td class="ext-cal-gutter-rt"></td></tr></tbody></table></div></div><div id="app-calendar-week-bd" class=" ext-cal-body-ct x-unselectable" style="-webkit-user-select: none; height: 569px; "><table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:420px;"><tbody><tr height="1"><td class="ext-cal-gutter"></td><td colspan="7"><div class="ext-cal-bg-rows"><div class="ext-cal-bg-rows-inner"><div class="ext-cal-bg-row ext-row-1" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-2" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-3" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-4" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-5" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-6" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-7" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-8" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-9" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-10" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div></div></div></td></tr><tr><td class="ext-cal-day-times"><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">8:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">9:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">10:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">11:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">12:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">13:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">14:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">15:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">16:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">17:00</div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130513" class="ext-cal-day-col-gutter" style="height:420px;"></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130514" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-66 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 22px; height: 40px;"><div class="ext-evt-bd">8:30 (Proposé) Diner avec SAFFRE Luc (112)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130515" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-67 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 71px; height: 50.5px;"><div class="ext-evt-bd">9:40 (Draft) Souper avec AUSDEMWALD Alfons (116)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130516" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-68 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 99px; height: 60.99999999999999px;"><div class="ext-evt-bd">10:20 (Communiqué) Petit-déjeuner avec BASTIAENSEN Laurent (117)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-69 x-cal-8 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 134px; height: 71.5px;"><div class="ext-evt-bd">11:10 (Planifé) Rencontre avec COLLARD Charlotte (118)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130517" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-70 x-cal-12 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 231.99999999999997px; height: 82px;"><div class="ext-evt-bd">13:30 (a eu lieu) Consultation avec CHANTRAINE Marc (120)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130518" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-71 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 22px; height: 103px;"><div class="ext-evt-bd">8:30 (Déplacé) Séminaire avec DERICUM Daniel (121)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-72 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 71px; height: 123.99999999999999px;"><div class="ext-evt-bd">9:40 (Annulé) Evaluation avec DEMEULENAERE Dorothée (122)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130519" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-73 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 99px; height: 40px;"><div class="ext-evt-bd">10:20 (Absent) Première rencontre avec DOBBELSTEIN-DEMEULENAERE Dorothée (123)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-window-bl x-panel-nofooter" id="ext-gen52"><div class="x-window-br"><div class="x-window-bc"></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen56">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen118" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen119" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen120" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen121" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen122" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen123" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen124" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen125" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div id="ext-gen95" class="ext-dd-drag-proxy x-dd-drag-proxy x-dd-drop-nodrop" style="position: absolute; z-index: 15000; visibility: hidden; left: -10000px; top: -10000px; "><div class="x-dd-drop-icon"></div><div class="ext-dd-ghost-ct"><div class="x-dd-drag-ghost" id="ext-gen96"></div><div class="ext-dd-msg" id="ext-gen97"></div></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1099-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/nl/cal.CalendarPanel.jpg (2 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen57" style="display: none; "></div><div id="ext-comp-1099" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-tl"><div class="x-window-tr"><div class="x-window-tc"><div class="x-window-header x-unselectable" id="ext-gen49" style="-webkit-user-select: none; "><div class="x-tool x-tool-close" id="ext-gen55">&nbsp;</div><div class="x-tool x-tool-pin" id="ext-gen54">&nbsp;</div><span class="x-window-header-text" id="ext-gen58">Calendrier</span></div></div></div></div><div class="x-window-bwrap" id="ext-gen50"><div class="x-window-ml"><div class="x-window-mr"><div class="x-window-mc" id="ext-gen53"><div class="x-window-body" id="ext-gen51" style="width: 1018px; height: 679px; "><div id="ext-comp-1082" class=" x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen60"><div class="x-panel-body x-panel-body-noheader" id="ext-gen61" style="width: 1012px; height: 677px; "><div id="app-center" class=" x-panel" style="width: 1012px; "><div class="x-panel-header x-unselectable app-center-header" id="ext-gen63" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen66">Mai 13 - 19, 2013</span></div><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-border-layout-ct" id="ext-gen65" style="width: 1006px; height: 650px; "><div id="app-west" class=" x-panel x-panel-noborder x-border-panel" style="width: 176px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder" id="ext-gen69" style="width: 172px; height: 650px; "><div class="x-date-picker x-unselectable ext-cal-nav-picker" id="ext-gen70" style="-webkit-user-select: none; width: 175px; "><table cellspacing="0" id="ext-gen71" style="width: 175px; "><tbody><tr><td class="x-date-left"><a href="#" title="Mois précédent (CTRL+Flèche gauche)" id="ext-gen72" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td><td class="x-date-middle" align="center" id="ext-gen75"><table id="ext-comp-1100" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class=" x-btn-arrow" unselectable="on" id="ext-gen77"><button type="button" id="ext-gen76" class=" x-btn-text">Mai 2013</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-date-right"><a href="#" title="Mois suivant (CTRL+Flèche droite)" id="ext-gen73" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td></tr><tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr><th><span>L</span></th><th><span>M</span></th><th><span>M</span></th><th><span>J</span></th><th><span>V</span></th><th><span>S</span></th><th><span>D</span></th></tr></thead><tbody><tr><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>10</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>11</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>12</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>13</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>14</span></em></a></td><td class="x-date-active x-date-today x-date-selected" title="Aujourd'hui"><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>15</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>16</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>17</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>18</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>19</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>20</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>21</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>22</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>23</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>24</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>25</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>26</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>27</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>28</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>31</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td></tr><tr><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td></tr></tbody></table></td></tr><tr><td colspan="3" class="x-date-bottom" align="center" id="ext-gen78"><table id="ext-comp-1101" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen79" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table><div class="x-date-mp" id="ext-gen74"></div></div><div id="ext-comp-1083" class=" x-panel"><div class="x-panel-bwrap" id="ext-gen80"><div class="x-panel-body x-panel-body-noheader" id="ext-gen81"><table id="ext-comp-1081" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen89" class=" x-btn-text">Team view</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></div></div><div id="ext-comp-1084" class=" x-panel x-calendar-list x-panel-noborder" style="width: 175px; "><div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen83" style="-webkit-user-select: none; "><div class="x-tool x-tool-toggle" id="ext-gen86">&nbsp;</div><span class="x-panel-header-text" id="ext-gen87">Agendas</span></div><div class="x-panel-bwrap" id="ext-gen84"><div class="x-panel-body x-panel-body-noborder" id="ext-gen85" style="width: 171px; height: auto; "><ul class="x-unselectable"><li id="ext-comp-1084__1" class="ext-cal-evr x-cal-20-ad ">Rencontres internes avec client<em>&nbsp;</em></li><li id="ext-comp-1084__2" class="ext-cal-evr x-cal-1-ad ">Rencontres client externes<em>&nbsp;</em></li><li id="ext-comp-1084__3" class="ext-cal-evr x-cal-4-ad ">Réunions internes<em>&nbsp;</em></li><li id="ext-comp-1084__4" class="ext-cal-evr x-cal-8-ad ">Réunions externes<em>&nbsp;</em></li><li id="ext-comp-1084__5" class="ext-cal-evr x-cal-12-ad ">Coordinations en équipe<em>&nbsp;</em></li></ul></div></div></div></div></div></div><div id="app-calendar" class=" x-panel x-cal-panel x-panel-noborder x-border-panel" style="width: 834px; left: 176px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen90"><div class="x-panel-tbar x-panel-tbar-noheader x-panel-tbar-noborder" id="ext-gen91" style="width: 834px; "><div id="ext-comp-1085" class="x-toolbar x-small-editor ext-cal-toolbar x-toolbar-layout-ct" style="width: 828px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen98"><table id="app-calendar-tb-today" cellspacing="0" class="x-btn  x-btn-noicon x-item-disabled" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen99" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen100"><table id="app-calendar-tb-prev" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen101" class=" x-btn-text x-tbar-page-prev">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen102"><table id="app-calendar-tb-next" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen103" class=" x-btn-text x-tbar-page-next">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen104"><div class="xtb-text" id="ext-comp-1086">Aller au :</div></td><td class="x-toolbar-cell" id="ext-gen105"><div class="x-form-field-wrap x-form-field-trigger-wrap" id="ext-gen106" style="width: 94px; "><input type="text" size="10" autocomplete="off" id="app-calendar-tb-jump-dt" name="app-calendar-tb-jump-dt" class="x-form-text x-form-field" style="width: 69px; "><img src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif" alt="" class="x-form-trigger x-form-date-trigger" id="ext-gen107"></div></td><td class="x-toolbar-cell" id="ext-gen108"><table id="app-calendar-tb-jump" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen109" class=" x-btn-text">Ok</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen110"><table id="app-calendar-tb-day" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen111" class=" x-btn-text">Jour</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen112"><table id="app-calendar-tb-week" cellspacing="0" class="x-btn  x-btn-noicon x-btn-pressed" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen113" class=" x-btn-text">Semaine</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen114"><table id="app-calendar-tb-multiweek" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen115" class=" x-btn-text">2 semaines</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen116"><table id="app-calendar-tb-month" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen117" class=" x-btn-text">Mois</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-cal-body" id="ext-gen92" style="width: 830px; height: 622px; "><div id="app-calendar-week" class=" ext-cal-dayview ext-cal-ct" style="width: 830px; height: 622px; "><div id="app-calendar-week-hd" class=" ext-cal-day-header ext-cal-monthview ext-cal-ct x-unselectable" style="-webkit-user-select: none; height: 52px; "><div class="ext-cal-hd-ct"><table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0"><tbody><tr><td class="ext-cal-gutter"></td><td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner" id="ext-gen144" style="height: 50px; "><div id="app-calendar-week-hd-wk-0" class="ext-cal-wk-ct" style="top:0%; height:100%;"><table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0" id="ext-gen145" style="height: 49px; "><tbody><tr><td id="app-calendar-week-hd-day-20130513" class="ext-cal-day  ext-cal-day-first">&nbsp;</td><td id="app-calendar-week-hd-day-20130514" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130515" class="ext-cal-day  ext-cal-day-today">&nbsp;</td><td id="app-calendar-week-hd-day-20130516" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130517" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130518" class="ext-cal-day  ext-cal-day-we">&nbsp;</td><td id="app-calendar-week-hd-day-20130519" class="ext-cal-day  ext-cal-day-we">&nbsp;</td></tr></tbody></table><table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0" id="ext-gen143"><tbody><tr><td id="app-calendar-week-hd-ev-day-20130513" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>13 Mai 2013</div></td><td id="app-calendar-week-hd-ev-day-20130514" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Mar 14</div></td><td id="app-calendar-week-hd-ev-day-20130515" class="ext-cal-dtitle  ext-cal-dtitle-today ext-cal-dtitle-first"><div>Aujourd'hui <span id="app-calendar-week-hd-clock" class="ext-cal-dtitle-time">11:45</span></div></td><td id="app-calendar-week-hd-ev-day-20130516" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Jeu 16</div></td><td id="app-calendar-week-hd-ev-day-20130517" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Ven 17</div></td><td id="app-calendar-week-hd-ev-day-20130518" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Sam 18</div></td><td id="app-calendar-week-hd-ev-day-20130519" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Dim 19</div></td></tr><tr id="ext-gen142"><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130513" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130514" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130515" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130516" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130517" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130518" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130519" rowspan="2">&nbsp;</td></tr></tbody></table></div></div></td><td class="ext-cal-gutter-rt"></td></tr></tbody></table></div></div><div id="app-calendar-week-bd" class=" ext-cal-body-ct x-unselectable" style="-webkit-user-select: none; height: 569px; "><table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:420px;"><tbody><tr height="1"><td class="ext-cal-gutter"></td><td colspan="7"><div class="ext-cal-bg-rows"><div class="ext-cal-bg-rows-inner"><div class="ext-cal-bg-row ext-row-1" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-2" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-3" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-4" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-5" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-6" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-7" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-8" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-9" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-10" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div></div></div></td></tr><tr><td class="ext-cal-day-times"><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">8:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">9:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">10:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">11:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">12:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">13:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">14:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">15:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">16:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">17:00</div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130513" class="ext-cal-day-col-gutter" style="height:420px;"></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130514" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-66 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 22px; height: 40px;"><div class="ext-evt-bd">8:30 (Proposé) Diner avec SAFFRE Luc (112)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130515" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-67 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 71px; height: 50.5px;"><div class="ext-evt-bd">9:40 (Draft) Souper avec AUSDEMWALD Alfons (116)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130516" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-68 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 99px; height: 60.99999999999999px;"><div class="ext-evt-bd">10:20 (Communiqué) Petit-déjeuner avec BASTIAENSEN Laurent (117)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-69 x-cal-8 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 134px; height: 71.5px;"><div class="ext-evt-bd">11:10 (Planifé) Rencontre avec COLLARD Charlotte (118)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130517" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-70 x-cal-12 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 231.99999999999997px; height: 82px;"><div class="ext-evt-bd">13:30 (a eu lieu) Consultation avec CHANTRAINE Marc (120)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130518" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-71 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 22px; height: 103px;"><div class="ext-evt-bd">8:30 (Déplacé) Séminaire avec DERICUM Daniel (121)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-72 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 71px; height: 123.99999999999999px;"><div class="ext-evt-bd">9:40 (Annulé) Evaluation avec DEMEULENAERE Dorothée (122)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130519" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-73 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 99px; height: 40px;"><div class="ext-evt-bd">10:20 (Absent) Première rencontre avec DOBBELSTEIN-DEMEULENAERE Dorothée (123)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-window-bl x-panel-nofooter" id="ext-gen52"><div class="x-window-br"><div class="x-window-bc"></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen56">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen118" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen119" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen120" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen121" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen122" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen123" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen124" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen125" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div id="ext-gen95" class="ext-dd-drag-proxy x-dd-drag-proxy x-dd-drop-nodrop" style="position: absolute; z-index: 15000; visibility: hidden; left: -10000px; top: -10000px; "><div class="x-dd-drop-icon"></div><div class="ext-dd-ghost-ct"><div class="x-dd-drag-ghost" id="ext-gen96"></div><div class="ext-dd-msg" id="ext-gen97"></div></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1099-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Retry userdocs/gen/screenshots/nl/cal.CalendarPanel.jpg (1 attempts left)
Lino.current_window still loading in  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="title">Lino-Welfare</title>
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="http://ext.ensible.com/deploy/1.0.2/resources/css/extensible-all.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/GridFilters.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/css/RangeMenu.css">
<link rel="stylesheet" type="text/css" href="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css" href="/media/lino/extjs/lino.css">
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/ext-all-debug.js"></script>
<script type="text/javascript" src="/media/extensible/extensible-all-debug.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/src/locale/ext-lang-fr.js"></script>
<script type="text/javascript" src="/media/extensible/src/locale/extensible-lang-fr.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/statusbar/StatusBar.js"></script>
<script type="text/javascript" src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/media/lino/tinymce/Ext.ux.TinyMCE.js"></script>
<script language="javascript" type="text/javascript">
tinymce.init({
        theme : "advanced"
        // , mode : "textareas"
});
</script>
<script type="text/javascript" src="/media/lino/extjs/Ext.ux.form.DateTime.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/menu/ListMenu.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="/media/cache/js/lino_100_fr.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Lino.set_subst_user();
Lino.user = { "name": "Alicia Allmanns", "id": 6 };
Lino.main_menu = Lino.main_menu.concat(['->',{ "menu": { "items": [ { "text": "My settings", "handler": function(){Lino.users.MySettings.detail.run(null,{ "record_id": 6 })} }, { "text": "Log out", "handler": Lino.logout }, { "text": "Change password", "handler": Lino.change_password }, { "text": "Forgot password", "handler": Lino.forgot_password } ] }, "text": "Alicia Allmanns" }]);
  Lino.viewport = new Lino.Viewport({items:{ "bbar": { "items": Lino.status_bar, "xtype": "toolbar" }, "tbar": Lino.main_menu, "layout": "fit", "items": { "autoScroll": true, "region": "center", "layout": "fit", "xtype": "container", "id": "main_area" } }});
  Lino.viewport.render("body");
Lino.cal.CalendarPanel.grid.run(null,{ "base_params": {  } })
}); // end of onReady()
</script></head><body class="   ext-webkit ext-safari ext-safari4 ext-linux" id="ext-gen3"><div id="ext-comp-1004" class=" x-panel" style="width: 1024px; "><div class="x-panel-bwrap" id="ext-gen12"><div class="x-panel-tbar x-panel-tbar-noheader" id="ext-gen13" style="width: 1024px; "><div id="ext-comp-1005" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen19"><table id="ext-comp-1006" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen20" class=" x-btn-text">Contacts</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen21"><table id="ext-comp-1014" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen22" class=" x-btn-text">Office</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen23"><table id="ext-comp-1024" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen24" class=" x-btn-text">Calendrier</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen25"><table id="ext-comp-1034" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen26" class=" x-btn-text">Intégration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen27"><table id="ext-comp-1043" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen28" class=" x-btn-text">Cours</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen29"><table id="ext-comp-1048" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen30" class=" x-btn-text">Listings</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen31"><table id="ext-comp-1052" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen32" class=" x-btn-text">Configuration</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen33"><table id="ext-comp-1061" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen34" class=" x-btn-text">Explorateur</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen35"><table id="ext-comp-1067" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen36" class=" x-btn-text">Site</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen37"><table id="ext-comp-1070" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen38" class=" x-btn-text">Départ</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen39"><table id="ext-comp-1072" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="x-btn-arrow" unselectable="on"><button type="button" id="ext-gen40" class=" x-btn-text">Alicia Allmanns</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader" id="ext-gen14" style="width: 1018px; height: 711px; "><div id="main_area" style="overflow-x: auto; overflow-y: auto; width: 1018px; height: 711px; " class=" x-window-maximized-ct"><div class="x-window-proxy" id="ext-gen57" style="display: none; "></div><div id="ext-comp-1099" class=" x-window x-resizable-pinned x-window-maximized" style="position: absolute; width: 1018px; display: block; left: 0px; top: 0px; visibility: visible; z-index: 9003; "><div class="x-window-tl"><div class="x-window-tr"><div class="x-window-tc"><div class="x-window-header x-unselectable" id="ext-gen49" style="-webkit-user-select: none; "><div class="x-tool x-tool-close" id="ext-gen55">&nbsp;</div><div class="x-tool x-tool-pin" id="ext-gen54">&nbsp;</div><span class="x-window-header-text" id="ext-gen58">Calendrier</span></div></div></div></div><div class="x-window-bwrap" id="ext-gen50"><div class="x-window-ml"><div class="x-window-mr"><div class="x-window-mc" id="ext-gen53"><div class="x-window-body" id="ext-gen51" style="width: 1018px; height: 679px; "><div id="ext-comp-1082" class=" x-panel" style="width: 1018px; "><div class="x-panel-bwrap" id="ext-gen60"><div class="x-panel-body x-panel-body-noheader" id="ext-gen61" style="width: 1012px; height: 677px; "><div id="app-center" class=" x-panel" style="width: 1012px; "><div class="x-panel-header x-unselectable app-center-header" id="ext-gen63" style="-webkit-user-select: none; "><span class="x-panel-header-text" id="ext-gen66">Mai 13 - 19, 2013</span></div><div class="x-panel-bwrap" id="ext-gen64"><div class="x-panel-body x-border-layout-ct" id="ext-gen65" style="width: 1006px; height: 650px; "><div id="app-west" class=" x-panel x-panel-noborder x-border-panel" style="width: 176px; left: 0px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen68"><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder" id="ext-gen69" style="width: 172px; height: 650px; "><div class="x-date-picker x-unselectable ext-cal-nav-picker" id="ext-gen70" style="-webkit-user-select: none; width: 175px; "><table cellspacing="0" id="ext-gen71" style="width: 175px; "><tbody><tr><td class="x-date-left"><a href="#" title="Mois précédent (CTRL+Flèche gauche)" id="ext-gen72" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td><td class="x-date-middle" align="center" id="ext-gen75"><table id="ext-comp-1100" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class=" x-btn-arrow" unselectable="on" id="ext-gen77"><button type="button" id="ext-gen76" class=" x-btn-text">Mai 2013</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-date-right"><a href="#" title="Mois suivant (CTRL+Flèche droite)" id="ext-gen73" style="-webkit-user-select: none; " class=" x-unselectable">&nbsp;</a></td></tr><tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr><th><span>L</span></th><th><span>M</span></th><th><span>M</span></th><th><span>J</span></th><th><span>V</span></th><th><span>S</span></th><th><span>D</span></th></tr></thead><tbody><tr><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-prevday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>10</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>11</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>12</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>13</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>14</span></em></a></td><td class="x-date-active x-date-today x-date-selected" title="Aujourd'hui"><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>15</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>16</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>17</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>18</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>19</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>20</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>21</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>22</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>23</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>24</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>25</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>26</span></em></a></td></tr><tr><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>27</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>28</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>29</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>30</span></em></a></td><td class="x-date-active" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>31</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>1</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>2</span></em></a></td></tr><tr><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>3</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>4</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>5</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>6</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>7</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>8</span></em></a></td><td class="x-date-nextday" title=""><a href="#" hidefocus="on" class="x-date-date" tabindex="1"><em><span>9</span></em></a></td></tr></tbody></table></td></tr><tr><td colspan="3" class="x-date-bottom" align="center" id="ext-gen78"><table id="ext-comp-1101" cellspacing="0" class="x-btn x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen79" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table><div class="x-date-mp" id="ext-gen74"></div></div><div id="ext-comp-1083" class=" x-panel"><div class="x-panel-bwrap" id="ext-gen80"><div class="x-panel-body x-panel-body-noheader" id="ext-gen81"><table id="ext-comp-1081" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen89" class=" x-btn-text">Team view</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></div></div><div id="ext-comp-1084" class=" x-panel x-calendar-list x-panel-noborder" style="width: 175px; "><div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen83" style="-webkit-user-select: none; "><div class="x-tool x-tool-toggle" id="ext-gen86">&nbsp;</div><span class="x-panel-header-text" id="ext-gen87">Agendas</span></div><div class="x-panel-bwrap" id="ext-gen84"><div class="x-panel-body x-panel-body-noborder" id="ext-gen85" style="width: 171px; height: auto; "><ul class="x-unselectable"><li id="ext-comp-1084__1" class="ext-cal-evr x-cal-20-ad ">Rencontres internes avec client<em>&nbsp;</em></li><li id="ext-comp-1084__2" class="ext-cal-evr x-cal-1-ad ">Rencontres client externes<em>&nbsp;</em></li><li id="ext-comp-1084__3" class="ext-cal-evr x-cal-4-ad ">Réunions internes<em>&nbsp;</em></li><li id="ext-comp-1084__4" class="ext-cal-evr x-cal-8-ad ">Réunions externes<em>&nbsp;</em></li><li id="ext-comp-1084__5" class="ext-cal-evr x-cal-12-ad ">Coordinations en équipe<em>&nbsp;</em></li></ul></div></div></div></div></div></div><div id="app-calendar" class=" x-panel x-cal-panel x-panel-noborder x-border-panel" style="width: 834px; left: 176px; top: 0px; "><div class="x-panel-bwrap" id="ext-gen90"><div class="x-panel-tbar x-panel-tbar-noheader x-panel-tbar-noborder" id="ext-gen91" style="width: 834px; "><div id="ext-comp-1085" class="x-toolbar x-small-editor ext-cal-toolbar x-toolbar-layout-ct" style="width: 828px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen98"><table id="app-calendar-tb-today" cellspacing="0" class="x-btn  x-btn-noicon x-item-disabled" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen99" class=" x-btn-text">Aujourd'hui</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen100"><table id="app-calendar-tb-prev" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen101" class=" x-btn-text x-tbar-page-prev">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen102"><table id="app-calendar-tb-next" cellspacing="0" class="x-btn  x-btn-icon"><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen103" class=" x-btn-text x-tbar-page-next">&nbsp;</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen104"><div class="xtb-text" id="ext-comp-1086">Aller au :</div></td><td class="x-toolbar-cell" id="ext-gen105"><div class="x-form-field-wrap x-form-field-trigger-wrap" id="ext-gen106" style="width: 94px; "><input type="text" size="10" autocomplete="off" id="app-calendar-tb-jump-dt" name="app-calendar-tb-jump-dt" class="x-form-text x-form-field" style="width: 69px; "><img src="http://extjs-public.googlecode.com/svn/tags/extjs-3.3.1/release/resources/images/default/s.gif" alt="" class="x-form-trigger x-form-date-trigger" id="ext-gen107"></div></td><td class="x-toolbar-cell" id="ext-gen108"><table id="app-calendar-tb-jump" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen109" class=" x-btn-text">Ok</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"><td class="x-toolbar-cell" id="ext-gen110"><table id="app-calendar-tb-day" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen111" class=" x-btn-text">Jour</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen112"><table id="app-calendar-tb-week" cellspacing="0" class="x-btn  x-btn-noicon x-btn-pressed" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen113" class=" x-btn-text">Semaine</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen114"><table id="app-calendar-tb-multiweek" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen115" class=" x-btn-text">2 semaines</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td><td class="x-toolbar-cell" id="ext-gen116"><table id="app-calendar-tb-month" cellspacing="0" class="x-btn  x-btn-noicon" style="width: auto; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc"><em class="" unselectable="on"><button type="button" id="ext-gen117" class=" x-btn-text">Mois</button></em></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></td></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div><div class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-cal-body" id="ext-gen92" style="width: 830px; height: 622px; "><div id="app-calendar-week" class=" ext-cal-dayview ext-cal-ct" style="width: 830px; height: 622px; "><div id="app-calendar-week-hd" class=" ext-cal-day-header ext-cal-monthview ext-cal-ct x-unselectable" style="-webkit-user-select: none; height: 52px; "><div class="ext-cal-hd-ct"><table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0"><tbody><tr><td class="ext-cal-gutter"></td><td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner" id="ext-gen144" style="height: 50px; "><div id="app-calendar-week-hd-wk-0" class="ext-cal-wk-ct" style="top:0%; height:100%;"><table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0" id="ext-gen145" style="height: 49px; "><tbody><tr><td id="app-calendar-week-hd-day-20130513" class="ext-cal-day  ext-cal-day-first">&nbsp;</td><td id="app-calendar-week-hd-day-20130514" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130515" class="ext-cal-day  ext-cal-day-today">&nbsp;</td><td id="app-calendar-week-hd-day-20130516" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130517" class="ext-cal-day ">&nbsp;</td><td id="app-calendar-week-hd-day-20130518" class="ext-cal-day  ext-cal-day-we">&nbsp;</td><td id="app-calendar-week-hd-day-20130519" class="ext-cal-day  ext-cal-day-we">&nbsp;</td></tr></tbody></table><table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0" id="ext-gen143"><tbody><tr><td id="app-calendar-week-hd-ev-day-20130513" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>13 Mai 2013</div></td><td id="app-calendar-week-hd-ev-day-20130514" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Mar 14</div></td><td id="app-calendar-week-hd-ev-day-20130515" class="ext-cal-dtitle  ext-cal-dtitle-today ext-cal-dtitle-first"><div>Aujourd'hui <span id="app-calendar-week-hd-clock" class="ext-cal-dtitle-time">11:45</span></div></td><td id="app-calendar-week-hd-ev-day-20130516" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Jeu 16</div></td><td id="app-calendar-week-hd-ev-day-20130517" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Ven 17</div></td><td id="app-calendar-week-hd-ev-day-20130518" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Sam 18</div></td><td id="app-calendar-week-hd-ev-day-20130519" class="ext-cal-dtitle  ext-cal-dtitle-first"><div>Dim 19</div></td></tr><tr id="ext-gen142"><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130513" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130514" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130515" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130516" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130517" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130518" rowspan="2">&nbsp;</td><td class="ext-cal-ev" id="app-calendar-week-hd-empty-day-20130519" rowspan="2">&nbsp;</td></tr></tbody></table></div></div></td><td class="ext-cal-gutter-rt"></td></tr></tbody></table></div></div><div id="app-calendar-week-bd" class=" ext-cal-body-ct x-unselectable" style="-webkit-user-select: none; height: 569px; "><table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0" style="height:420px;"><tbody><tr height="1"><td class="ext-cal-gutter"></td><td colspan="7"><div class="ext-cal-bg-rows"><div class="ext-cal-bg-rows-inner"><div class="ext-cal-bg-row ext-row-1" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-2" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-3" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-4" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-5" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-6" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-7" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-8" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-9" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div><div class="ext-cal-bg-row ext-row-10" style="height:42px;"><div class="ext-cal-bg-row-div " style="height:20px;"></div></div></div></div></td></tr><tr><td class="ext-cal-day-times"><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">8:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">9:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">10:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">11:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">12:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">13:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">14:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">15:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">16:00</div></div><div class="ext-cal-bg-row" style="height:42px;"><div class="ext-cal-day-time-inner" style="height:41px;">17:00</div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130513" class="ext-cal-day-col-gutter" style="height:420px;"></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130514" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-66 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 22px; height: 40px;"><div class="ext-evt-bd">8:30 (Proposé) Diner avec SAFFRE Luc (112)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130515" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-67 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 71px; height: 50.5px;"><div class="ext-evt-bd">9:40 (Draft) Souper avec AUSDEMWALD Alfons (116)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130516" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-68 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 99px; height: 60.99999999999999px;"><div class="ext-evt-bd">10:20 (Communiqué) Petit-déjeuner avec BASTIAENSEN Laurent (117)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-69 x-cal-8 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 134px; height: 71.5px;"><div class="ext-evt-bd">11:10 (Planifé) Rencontre avec COLLARD Charlotte (118)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130517" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-70 x-cal-12 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 231.99999999999997px; height: 82px;"><div class="ext-evt-bd">13:30 (a eu lieu) Consultation avec CHANTRAINE Marc (120)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130518" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-71 x-cal-20 ext-cal-evt ext-cal-evr" style="left: 0%; width: 50%; top: 22px; height: 103px;"><div class="ext-evt-bd">8:30 (Déplacé) Séminaire avec DERICUM Daniel (121)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div><div id="" class="app-calendar-week-bd-evt-72 x-cal-1 ext-cal-evt ext-cal-evr" style="left: 50%; width: 50%; top: 71px; height: 123.99999999999999px;"><div class="ext-evt-bd">9:40 (Annulé) Evaluation avec DEMEULENAERE Dorothée (122)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td><td class="ext-cal-day-col"><div class="ext-cal-day-col-inner"><div id="app-calendar-week-bd-day-col-20130519" class="ext-cal-day-col-gutter" style="height:420px;"><div id="" class="app-calendar-week-bd-evt-73 x-cal-4 ext-cal-evt ext-cal-evr" style="left: 0%; width: 100%; top: 99px; height: 40px;"><div class="ext-evt-bd">10:20 (Absent) Première rencontre avec DOBBELSTEIN-DEMEULENAERE Dorothée (123)</div><div class="ext-evt-rsz"><div class="ext-evt-rsz-h">&nbsp;</div></div></div></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="x-window-bl x-panel-nofooter" id="ext-gen52"><div class="x-window-br"><div class="x-window-bc"></div></div></div></div><a href="#" class="x-dlg-focus" tabindex="-1" id="ext-gen56">&nbsp;</a><div class="x-resizable-handle x-resizable-handle-north x-unselectable x-window-handle" id="ext-gen118" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-south x-unselectable x-window-handle" id="ext-gen119" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-east x-unselectable x-window-handle" id="ext-gen120" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-west x-unselectable x-window-handle" id="ext-gen121" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northeast x-unselectable x-window-handle" id="ext-gen122" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-northwest x-unselectable x-window-handle" id="ext-gen123" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southeast x-unselectable x-window-handle" id="ext-gen124" style="-webkit-user-select: none; "></div><div class="x-resizable-handle x-resizable-handle-southwest x-unselectable x-window-handle" id="ext-gen125" style="-webkit-user-select: none; "></div></div></div></div><div class="x-panel-bbar" id="ext-gen15" style="width: 1024px; "><div id="ext-comp-1078" class="x-toolbar x-small-editor x-toolbar-layout-ct" style="width: 1018px; "><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen41"><div id="ext-comp-1001" class="x-toolbar x-small-editor x-statusbar x-toolbar-layout-ct"><table cellspacing="0" class="x-toolbar-ct"><tbody><tr><td class="x-toolbar-left" align="left"><table cellspacing="0"><tbody><tr class="x-toolbar-left-row"><td class="x-toolbar-cell" id="ext-gen43"><div class="xtb-text x-status-text " id="ext-comp-1079">Lino version 1.6.7.</div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></td><td class="x-toolbar-right" align="right"><table cellspacing="0" class="x-toolbar-right-ct"><tbody><tr><td><table cellspacing="0"><tbody><tr class="x-toolbar-right-row"></tr></tbody></table></td><td><table cellspacing="0"><tbody><tr class="x-toolbar-extras-row"></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
<div id="body"></div>
<div id="ext-comp-1002" class=" x-tip" style="position: absolute; z-index: 20002; visibility: hidden; display: none; "><div class="x-tip-tl"><div class="x-tip-tr"><div class="x-tip-tc"><div class="x-tip-header x-unselectable" id="ext-gen4" style="-webkit-user-select: none; "><span class="x-tip-header-text"></span></div></div></div></div><div class="x-tip-bwrap" id="ext-gen5"><div class="x-tip-ml"><div class="x-tip-mr"><div class="x-tip-mc" id="ext-gen8"><div class="x-tip-body" id="ext-gen6" style="height: auto; "></div></div></div></div><div class="x-tip-bl x-panel-nofooter" id="ext-gen7"><div class="x-tip-br"><div class="x-tip-bc"></div></div></div></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen9" style="z-index: 20003; "></div></div><div id="ext-gen95" class="ext-dd-drag-proxy x-dd-drag-proxy x-dd-drop-nodrop" style="position: absolute; z-index: 15000; visibility: hidden; left: -10000px; top: -10000px; "><div class="x-dd-drop-icon"></div><div class="ext-dd-ghost-ct"><div class="x-dd-drag-ghost" id="ext-gen96"></div><div class="ext-dd-msg" id="ext-gen97"></div></div></div><div class="x-resizable-proxy x-unselectable" id="ext-comp-1099-rzproxy" style="-webkit-user-select: none; z-index: 9007; "></div></body>
Giving up userdocs/gen/screenshots/nl/cal.CalendarPanel.jpg
Rendering to userdocs/gen/screenshots/nl/cal.CalendarPanel.jpg false
0
0
0
0
0
0
 "(Annul\\u00e9) Evaluation avec DEMEULENAERE Doroth\\u00e9e (122)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 2, "calendar": "Rencontres client externes", "start_dt": "2013-05-18T09:40:00", "end_dt": "2013-05-18T12:40:00", "id": 72, "reminder": false }, { "disabled_fields": { "id": true, "modified": true, "created": true }, "description": "", "url": "foo", "disabled_actions": { "do_clear_cache": true }, "placeHidden": null, "userHidden": 6, "all_day": false, "disable_editing": false, "summary": "(Absent) Premi\\u00e8re rencontre avec DOBBELSTEIN-DEMEULENAERE Doroth\\u00e9e (123)", "place": null, "user": "Alicia Allmanns", "calendarHidden": 3, "calendar": "R\\u00e9unions internes", "start_dt": "2013-05-19T10:20:00", "end_dt": "2013-05-19T11:20:00", "id": 73, "reminder": false } ] }'
